index.891a4bc8.js 2.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. var Kne=Object.defineProperty;var Jne=(e,t,n)=>t in e?Kne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ere=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var h$=(e,t,n)=>(Jne(e,typeof t!="symbol"?t+"":t,n),n);var KUe=ere((Al,Ml)=>{const tre=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}};tre();function sN(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function Vt(e){if(xt(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Gt(r)?ire(r):Vt(r);if(o)for(const i in o)t[i]=o[i]}return t}else{if(Gt(e))return e;if(Pn(e))return e}}const nre=/;(?![^(]*\))/g,rre=/:([^]+)/,ore=/\/\*.*?\*\//gs;function ire(e){const t={};return e.replace(ore,"").split(nre).forEach(n=>{if(n){const r=n.split(rre);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function J(e){let t="";if(Gt(e))t=e;else if(xt(e))for(let n=0;n<e.length;n++){const r=J(e[n]);r&&(t+=r+" ")}else if(Pn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ic(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Gt(t)&&(e.class=J(t)),n&&(e.style=Vt(n)),e}const are="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",sre=sN(are);function AF(e){return!!e||e===""}function lre(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Py(e[r],t[r]);return n}function Py(e,t){if(e===t)return!0;let n=ev(e),r=ev(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=fO(e),r=fO(t),n||r)return e===t;if(n=xt(e),r=xt(t),n||r)return n&&r?lre(e,t):!1;if(n=Pn(e),r=Pn(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const a in e){const s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!Py(e[a],t[a]))return!1}}return String(e)===String(t)}function MF(e,t){return e.findIndex(n=>Py(n,t))}const ut=e=>Gt(e)?e:e==null?"":xt(e)||Pn(e)&&(e.toString===NF||!nn(e.toString))?JSON.stringify(e,RF,2):String(e),RF=(e,t)=>t&&t.__v_isRef?RF(e,t.value):fy(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Q2(t)?{[`Set(${t.size})`]:[...t.values()]}:Pn(t)&&!xt(t)&&!Ek(t)?String(t):t,Yo={},cy=[],Br=()=>{},ure=()=>!1,cre=/^on[^a-z]/,z2=e=>cre.test(e),lN=e=>e.startsWith("onUpdate:"),ca=Object.assign,uN=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fre=Object.prototype.hasOwnProperty,ir=(e,t)=>fre.call(e,t),xt=Array.isArray,fy=e=>s1(e)==="[object Map]",Q2=e=>s1(e)==="[object Set]",ev=e=>s1(e)==="[object Date]",nn=e=>typeof e=="function",Gt=e=>typeof e=="string",fO=e=>typeof e=="symbol",Pn=e=>e!==null&&typeof e=="object",dO=e=>Pn(e)&&nn(e.then)&&nn(e.catch),NF=Object.prototype.toString,s1=e=>NF.call(e),Wx=e=>s1(e).slice(8,-1),Ek=e=>s1(e)==="[object Object]",cN=e=>Gt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yx=sN(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),W2=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},dre=/-(\w)/g,xu=W2(e=>e.replace(dre,(t,n)=>n?n.toUpperCase():"")),hre=/\B([A-Z])/g,dp=W2(e=>e.replace(hre,"-$1").toLowerCase()),l1=W2(e=>e.charAt(0).toUpperCase()+e.slice(1)),B_=W2(e=>e?`on${l1(e)}`:""),hO=(e,t)=>!Object.is(e,t),Zx=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Tk=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},AA=e=>{const t=parseFloat(e);return isNaN(t)?e:t},pre=e=>{const t=Gt(e)?Number(e):NaN;return isNaN(t)?e:t};let I8;const gre=()=>I8||(I8=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let kl;class IF{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=kl,!t&&kl&&(this.index=(kl.scopes||(kl.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=kl;try{return kl=this,t()}finally{kl=n}}}on(){kl=this}off(){kl=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function vre(e){return new IF(e)}function mre(e,t=kl){t&&t.active&&t.effects.push(e)}function DF(){return kl}function jF(e){kl&&kl.cleanups.push(e)}const fN=e=>{const t=new Set(e);return t.w=0,t.n=0,t},LF=e=>(e.w&Wh)>0,BF=e=>(e.n&Wh)>0,yre=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Wh},bre=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];LF(o)&&!BF(o)?o.delete(e):t[n++]=o,o.w&=~Wh,o.n&=~Wh}t.length=n}},Pk=new WeakMap;let E_=0,Wh=1;const MA=30;let oc;const Zg=Symbol(""),RA=Symbol("");class dN{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,mre(this,r)}run(){if(!this.active)return this.fn();let t=oc,n=Ih;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=oc,oc=this,Ih=!0,Wh=1<<++E_,E_<=MA?yre(this):D8(this),this.fn()}finally{E_<=MA&&bre(this),Wh=1<<--E_,oc=this.parent,Ih=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){oc===this?this.deferStop=!0:this.active&&(D8(this),this.onStop&&this.onStop(),this.active=!1)}}function D8(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ih=!0;const VF=[];function t0(){VF.push(Ih),Ih=!1}function n0(){const e=VF.pop();Ih=e===void 0?!0:e}function Js(e,t,n){if(Ih&&oc){let r=Pk.get(e);r||Pk.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=fN()),FF(o)}}function FF(e,t){let n=!1;E_<=MA?BF(e)||(e.n|=Wh,n=!LF(e)):n=!e.has(oc),n&&(e.add(oc),oc.deps.push(e))}function ud(e,t,n,r,o,i){const a=Pk.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(n==="length"&&xt(e)){const l=Number(r);a.forEach((u,d)=>{(d==="length"||d>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(a.get(n)),t){case"add":xt(e)?cN(n)&&s.push(a.get("length")):(s.push(a.get(Zg)),fy(e)&&s.push(a.get(RA)));break;case"delete":xt(e)||(s.push(a.get(Zg)),fy(e)&&s.push(a.get(RA)));break;case"set":fy(e)&&s.push(a.get(Zg));break}if(s.length===1)s[0]&&NA(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);NA(fN(l))}}function NA(e,t){const n=xt(e)?e:[...e];for(const r of n)r.computed&&j8(r);for(const r of n)r.computed||j8(r)}function j8(e,t){(e!==oc||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function _re(e,t){var n;return(n=Pk.get(e))===null||n===void 0?void 0:n.get(t)}const Ore=sN("__proto__,__v_isRef,__isVue"),zF=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(fO)),wre=hN(),Sre=hN(!1,!0),xre=hN(!0),L8=kre();function kre(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=cr(this);for(let i=0,a=this.length;i<a;i++)Js(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(cr)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){t0();const r=cr(this)[t].apply(this,n);return n0(),r}}),e}function Cre(e){const t=cr(this);return Js(t,"has",e),t.hasOwnProperty(e)}function hN(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?zre:UF:t?ZF:YF).get(r))return r;const a=xt(r);if(!e){if(a&&ir(L8,o))return Reflect.get(L8,o,i);if(o==="hasOwnProperty")return Cre}const s=Reflect.get(r,o,i);return(fO(o)?zF.has(o):Ore(o))||(e||Js(r,"get",o),t)?s:Jr(s)?a&&cN(o)?s:s.value:Pn(s)?e?u1(s):nr(s):s}}const Ere=QF(),Tre=QF(!0);function QF(e=!1){return function(n,r,o,i){let a=n[r];if($y(a)&&Jr(a)&&!Jr(o))return!1;if(!e&&(!$k(o)&&!$y(o)&&(a=cr(a),o=cr(o)),!xt(n)&&Jr(a)&&!Jr(o)))return a.value=o,!0;const s=xt(n)&&cN(r)?Number(r)<n.length:ir(n,r),l=Reflect.set(n,r,o,i);return n===cr(i)&&(s?hO(o,a)&&ud(n,"set",r,o):ud(n,"add",r,o)),l}}function Pre(e,t){const n=ir(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&ud(e,"delete",t,void 0),r}function $re(e,t){const n=Reflect.has(e,t);return(!fO(t)||!zF.has(t))&&Js(e,"has",t),n}function Are(e){return Js(e,"iterate",xt(e)?"length":Zg),Reflect.ownKeys(e)}const WF={get:wre,set:Ere,deleteProperty:Pre,has:$re,ownKeys:Are},Mre={get:xre,set(e,t){return!0},deleteProperty(e,t){return!0}},Rre=ca({},WF,{get:Sre,set:Tre}),pN=e=>e,Y2=e=>Reflect.getPrototypeOf(e);function GS(e,t,n=!1,r=!1){e=e.__v_raw;const o=cr(e),i=cr(t);n||(t!==i&&Js(o,"get",t),Js(o,"get",i));const{has:a}=Y2(o),s=r?pN:n?mN:pO;if(a.call(o,t))return s(e.get(t));if(a.call(o,i))return s(e.get(i));e!==o&&e.get(t)}function qS(e,t=!1){const n=this.__v_raw,r=cr(n),o=cr(e);return t||(e!==o&&Js(r,"has",e),Js(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function KS(e,t=!1){return e=e.__v_raw,!t&&Js(cr(e),"iterate",Zg),Reflect.get(e,"size",e)}function B8(e){e=cr(e);const t=cr(this);return Y2(t).has.call(t,e)||(t.add(e),ud(t,"add",e,e)),this}function V8(e,t){t=cr(t);const n=cr(this),{has:r,get:o}=Y2(n);let i=r.call(n,e);i||(e=cr(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?hO(t,a)&&ud(n,"set",e,t):ud(n,"add",e,t),this}function F8(e){const t=cr(this),{has:n,get:r}=Y2(t);let o=n.call(t,e);o||(e=cr(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&ud(t,"delete",e,void 0),i}function z8(){const e=cr(this),t=e.size!==0,n=e.clear();return t&&ud(e,"clear",void 0,void 0),n}function JS(e,t){return function(r,o){const i=this,a=i.__v_raw,s=cr(a),l=t?pN:e?mN:pO;return!e&&Js(s,"iterate",Zg),a.forEach((u,d)=>r.call(o,l(u),l(d),i))}}function ex(e,t,n){return function(...r){const o=this.__v_raw,i=cr(o),a=fy(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=o[e](...r),d=n?pN:t?mN:pO;return!t&&Js(i,"iterate",l?RA:Zg),{next(){const{value:p,done:v}=u.next();return v?{value:p,done:v}:{value:s?[d(p[0]),d(p[1])]:d(p),done:v}},[Symbol.iterator](){return this}}}}function vh(e){return function(...t){return e==="delete"?!1:this}}function Nre(){const e={get(i){return GS(this,i)},get size(){return KS(this)},has:qS,add:B8,set:V8,delete:F8,clear:z8,forEach:JS(!1,!1)},t={get(i){return GS(this,i,!1,!0)},get size(){return KS(this)},has:qS,add:B8,set:V8,delete:F8,clear:z8,forEach:JS(!1,!0)},n={get(i){return GS(this,i,!0)},get size(){return KS(this,!0)},has(i){return qS.call(this,i,!0)},add:vh("add"),set:vh("set"),delete:vh("delete"),clear:vh("clear"),forEach:JS(!0,!1)},r={get(i){return GS(this,i,!0,!0)},get size(){return KS(this,!0)},has(i){return qS.call(this,i,!0)},add:vh("add"),set:vh("set"),delete:vh("delete"),clear:vh("clear"),forEach:JS(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ex(i,!1,!1),n[i]=ex(i,!0,!1),t[i]=ex(i,!1,!0),r[i]=ex(i,!0,!0)}),[e,n,t,r]}const[Ire,Dre,jre,Lre]=Nre();function gN(e,t){const n=t?e?Lre:jre:e?Dre:Ire;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ir(n,o)&&o in r?n:r,o,i)}const Bre={get:gN(!1,!1)},Vre={get:gN(!1,!0)},Fre={get:gN(!0,!1)},YF=new WeakMap,ZF=new WeakMap,UF=new WeakMap,zre=new WeakMap;function Qre(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wre(e){return e.__v_skip||!Object.isExtensible(e)?0:Qre(Wx(e))}function nr(e){return $y(e)?e:vN(e,!1,WF,Bre,YF)}function HF(e){return vN(e,!1,Rre,Vre,ZF)}function u1(e){return vN(e,!0,Mre,Fre,UF)}function vN(e,t,n,r,o){if(!Pn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=Wre(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return o.set(e,s),s}function dy(e){return $y(e)?dy(e.__v_raw):!!(e&&e.__v_isReactive)}function $y(e){return!!(e&&e.__v_isReadonly)}function $k(e){return!!(e&&e.__v_isShallow)}function XF(e){return dy(e)||$y(e)}function cr(e){const t=e&&e.__v_raw;return t?cr(t):e}function sd(e){return Tk(e,"__v_skip",!0),e}const pO=e=>Pn(e)?nr(e):e,mN=e=>Pn(e)?u1(e):e;function yN(e){Ih&&oc&&(e=cr(e),FF(e.dep||(e.dep=fN())))}function bN(e,t){e=cr(e);const n=e.dep;n&&NA(n)}function Jr(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return GF(e,!1)}function Kr(e){return GF(e,!0)}function GF(e,t){return Jr(e)?e:new Yre(e,t)}class Yre{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:cr(t),this._value=n?t:pO(t)}get value(){return yN(this),this._value}set value(t){const n=this.__v_isShallow||$k(t)||$y(t);t=n?t:cr(t),hO(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:pO(t),bN(this))}}function m(e){return Jr(e)?e.value:e}const Zre={get:(e,t,n)=>m(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Jr(o)&&!Jr(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function qF(e){return dy(e)?e:new Proxy(e,Zre)}class Ure{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>yN(this),()=>bN(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Hre(e){return new Ure(e)}function ea(e){const t=xt(e)?new Array(e.length):{};for(const n in e)t[n]=xr(e,n);return t}class Xre{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return _re(cr(this._object),this._key)}}function xr(e,t,n){const r=e[t];return Jr(r)?r:new Xre(e,t,n)}var KF;class Gre{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[KF]=!1,this._dirty=!0,this.effect=new dN(t,()=>{this._dirty||(this._dirty=!0,bN(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=cr(this);return yN(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}KF="__v_isReadonly";function qre(e,t,n=!1){let r,o;const i=nn(e);return i?(r=e,o=Br):(r=e.get,o=e.set),new Gre(r,o,i||!o,n)}function Kre(e,...t){}function Dh(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Z2(i,t,n)}return o}function bu(e,t,n,r){if(nn(e)){const i=Dh(e,t,n,r);return i&&dO(i)&&i.catch(a=>{Z2(a,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(bu(e[i],t,n,r));return o}function Z2(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,s=n;for(;i;){const u=i.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,a,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Dh(l,null,10,[e,a,s]);return}}Jre(e,n,o,r)}function Jre(e,t,n,r=!0){console.error(e)}let gO=!1,IA=!1;const Ka=[];let Kc=0;const hy=[];let rd=null,Tg=0;const JF=Promise.resolve();let _N=null;function zt(e){const t=_N||JF;return e?t.then(this?e.bind(this):e):t}function eoe(e){let t=Kc+1,n=Ka.length;for(;t<n;){const r=t+n>>>1;vO(Ka[r])<e?t=r+1:n=r}return t}function ON(e){(!Ka.length||!Ka.includes(e,gO&&e.allowRecurse?Kc+1:Kc))&&(e.id==null?Ka.push(e):Ka.splice(eoe(e.id),0,e),ez())}function ez(){!gO&&!IA&&(IA=!0,_N=JF.then(nz))}function toe(e){const t=Ka.indexOf(e);t>Kc&&Ka.splice(t,1)}function noe(e){xt(e)?hy.push(...e):(!rd||!rd.includes(e,e.allowRecurse?Tg+1:Tg))&&hy.push(e),ez()}function Q8(e,t=gO?Kc+1:0){for(;t<Ka.length;t++){const n=Ka[t];n&&n.pre&&(Ka.splice(t,1),t--,n())}}function tz(e){if(hy.length){const t=[...new Set(hy)];if(hy.length=0,rd){rd.push(...t);return}for(rd=t,rd.sort((n,r)=>vO(n)-vO(r)),Tg=0;Tg<rd.length;Tg++)rd[Tg]();rd=null,Tg=0}}const vO=e=>e.id==null?1/0:e.id,roe=(e,t)=>{const n=vO(e)-vO(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function nz(e){IA=!1,gO=!0,Ka.sort(roe);const t=Br;try{for(Kc=0;Kc<Ka.length;Kc++){const n=Ka[Kc];n&&n.active!==!1&&Dh(n,null,14)}}finally{Kc=0,Ka.length=0,tz(),gO=!1,_N=null,(Ka.length||hy.length)&&nz()}}function ooe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Yo;let o=n;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in r){const d=`${a==="modelValue"?"model":a}Modifiers`,{number:p,trim:v}=r[d]||Yo;v&&(o=n.map(y=>Gt(y)?y.trim():y)),p&&(o=n.map(AA))}let s,l=r[s=B_(t)]||r[s=B_(xu(t))];!l&&i&&(l=r[s=B_(dp(t))]),l&&bu(l,e,6,o);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,bu(u,e,6,o)}}function rz(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!nn(e)){const l=u=>{const d=rz(u,t,!0);d&&(s=!0,ca(a,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Pn(e)&&r.set(e,null),null):(xt(i)?i.forEach(l=>a[l]=null):ca(a,i),Pn(e)&&r.set(e,a),a)}function U2(e,t){return!e||!z2(t)?!1:(t=t.slice(2).replace(/Once$/,""),ir(e,t[0].toLowerCase()+t.slice(1))||ir(e,dp(t))||ir(e,t))}let Na=null,H2=null;function Ak(e){const t=Na;return Na=e,H2=e&&e.type.__scopeId||null,t}function ioe(e){H2=e}function aoe(){H2=null}function ue(e,t=Na,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&e5(-1);const i=Ak(t);let a;try{a=e(...o)}finally{Ak(i),r._d&&e5(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function p$(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:l,emit:u,render:d,renderCache:p,data:v,setupState:y,ctx:w,inheritAttrs:b}=e;let k,C;const T=Ak(e);try{if(n.shapeFlag&4){const P=o||r;k=Gc(d.call(P,P,p,i,y,v,w)),C=l}else{const P=t;k=Gc(P.length>1?P(i,{attrs:l,slots:s,emit:u}):P(i,null)),C=t.props?l:soe(l)}}catch(P){Q_.length=0,Z2(P,e,1),k=re(ws)}let $=k;if(C&&b!==!1){const P=Object.keys(C),{shapeFlag:A}=$;P.length&&A&7&&(a&&P.some(lN)&&(C=loe(C,a)),$=cd($,C))}return n.dirs&&($=cd($),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),k=$,Ak(T),k}const soe=e=>{let t;for(const n in e)(n==="class"||n==="style"||z2(n))&&((t||(t={}))[n]=e[n]);return t},loe=(e,t)=>{const n={};for(const r in e)(!lN(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function uoe(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?W8(r,a,u):!!a;if(l&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const v=d[p];if(a[v]!==r[v]&&!U2(u,v))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?W8(r,a,u):!0:!!a;return!1}function W8(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!U2(n,i))return!0}return!1}function coe({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const foe=e=>e.__isSuspense;function doe(e,t){t&&t.pendingBranch?xt(e)?t.effects.push(...e):t.effects.push(e):noe(e)}function Wn(e,t){if(Ci){let n=Ci.provides;const r=Ci.parent&&Ci.parent.provides;r===n&&(n=Ci.provides=Object.create(r)),n[e]=t}}function Tt(e,t,n=!1){const r=Ci||Na;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&nn(t)?t.call(r.proxy):t}}function Ia(e,t){return wN(e,null,t)}const tx={};function at(e,t,n){return wN(e,t,n)}function wN(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=Yo){const s=DF()===(Ci==null?void 0:Ci.scope)?Ci:null;let l,u=!1,d=!1;if(Jr(e)?(l=()=>e.value,u=$k(e)):dy(e)?(l=()=>e,r=!0):xt(e)?(d=!0,u=e.some($=>dy($)||$k($)),l=()=>e.map($=>{if(Jr($))return $.value;if(dy($))return jg($);if(nn($))return Dh($,s,2)})):nn(e)?t?l=()=>Dh(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return p&&p(),bu(e,s,3,[v])}:l=Br,t&&r){const $=l;l=()=>jg($())}let p,v=$=>{p=C.onStop=()=>{Dh($,s,4)}},y;if(_O)if(v=Br,t?n&&bu(t,s,3,[l(),d?[]:void 0,v]):l(),o==="sync"){const $=Joe();y=$.__watcherHandles||($.__watcherHandles=[])}else return Br;let w=d?new Array(e.length).fill(tx):tx;const b=()=>{if(!!C.active)if(t){const $=C.run();(r||u||(d?$.some((P,A)=>hO(P,w[A])):hO($,w)))&&(p&&p(),bu(t,s,3,[$,w===tx?void 0:d&&w[0]===tx?[]:w,v]),w=$)}else C.run()};b.allowRecurse=!!t;let k;o==="sync"?k=b:o==="post"?k=()=>zs(b,s&&s.suspense):(b.pre=!0,s&&(b.id=s.uid),k=()=>ON(b));const C=new dN(l,k);t?n?b():w=C.run():o==="post"?zs(C.run.bind(C),s&&s.suspense):C.run();const T=()=>{C.stop(),s&&s.scope&&uN(s.scope.effects,C)};return y&&y.push(T),T}function hoe(e,t,n){const r=this.proxy,o=Gt(e)?e.includes(".")?oz(r,e):()=>r[e]:e.bind(r,r);let i;nn(t)?i=t:(i=t.handler,n=t);const a=Ci;Ay(this);const s=wN(o,i.bind(r),n);return a?Ay(a):Ug(),s}function oz(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function jg(e,t){if(!Pn(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Jr(e))jg(e.value,t);else if(xt(e))for(let n=0;n<e.length;n++)jg(e[n],t);else if(Q2(e)||fy(e))e.forEach(n=>{jg(n,t)});else if(Ek(e))for(const n in e)jg(e[n],t);return e}function iz(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vn(()=>{e.isMounted=!0}),Ur(()=>{e.isUnmounting=!0}),e}const au=[Function,Array],poe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:au,onEnter:au,onAfterEnter:au,onEnterCancelled:au,onBeforeLeave:au,onLeave:au,onAfterLeave:au,onLeaveCancelled:au,onBeforeAppear:au,onAppear:au,onAfterAppear:au,onAppearCancelled:au},setup(e,{slots:t}){const n=Cn(),r=iz();let o;return()=>{const i=t.default&&SN(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==ws){a=b;break}}const s=cr(e),{mode:l}=s;if(r.isLeaving)return g$(a);const u=Y8(a);if(!u)return g$(a);const d=mO(u,s,r,n);yO(u,d);const p=n.subTree,v=p&&Y8(p);let y=!1;const{getTransitionKey:w}=u.type;if(w){const b=w();o===void 0?o=b:b!==o&&(o=b,y=!0)}if(v&&v.type!==ws&&(!Pg(u,v)||y)){const b=mO(v,s,r,n);if(yO(v,b),l==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},g$(a);l==="in-out"&&u.type!==ws&&(b.delayLeave=(k,C,T)=>{const $=sz(r,v);$[String(v.key)]=v,k._leaveCb=()=>{C(),k._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=T})}return a}}},az=poe;function sz(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function mO(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:v,onAfterLeave:y,onLeaveCancelled:w,onBeforeAppear:b,onAppear:k,onAfterAppear:C,onAppearCancelled:T}=t,$=String(e.key),P=sz(n,e),A=(N,I)=>{N&&bu(N,r,9,I)},R=(N,I)=>{const D=I[1];A(N,I),xt(N)?N.every(L=>L.length<=1)&&D():N.length<=1&&D()},B={mode:i,persisted:a,beforeEnter(N){let I=s;if(!n.isMounted)if(o)I=b||s;else return;N._leaveCb&&N._leaveCb(!0);const D=P[$];D&&Pg(e,D)&&D.el._leaveCb&&D.el._leaveCb(),A(I,[N])},enter(N){let I=l,D=u,L=d;if(!n.isMounted)if(o)I=k||l,D=C||u,L=T||d;else return;let z=!1;const q=N._enterCb=ae=>{z||(z=!0,ae?A(L,[N]):A(D,[N]),B.delayedLeave&&B.delayedLeave(),N._enterCb=void 0)};I?R(I,[N,q]):q()},leave(N,I){const D=String(e.key);if(N._enterCb&&N._enterCb(!0),n.isUnmounting)return I();A(p,[N]);let L=!1;const z=N._leaveCb=q=>{L||(L=!0,I(),q?A(w,[N]):A(y,[N]),N._leaveCb=void 0,P[D]===e&&delete P[D])};P[D]=e,v?R(v,[N,z]):z()},clone(N){return mO(N,t,n,r)}};return B}function g$(e){if(X2(e))return e=cd(e),e.children=null,e}function Y8(e){return X2(e)?e.children?e.children[0]:void 0:e}function yO(e,t){e.shapeFlag&6&&e.component?yO(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function SN(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Pt?(a.patchFlag&128&&o++,r=r.concat(SN(a.children,t,s))):(t||a.type!==ws)&&r.push(s!=null?cd(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Se(e){return nn(e)?{setup:e,name:e.name}:e}const V_=e=>!!e.type.__asyncLoader,X2=e=>e.type.__isKeepAlive;function xN(e,t){uz(e,"a",t)}function lz(e,t){uz(e,"da",t)}function uz(e,t,n=Ci){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(G2(t,r,n),n){let o=n.parent;for(;o&&o.parent;)X2(o.parent.vnode)&&goe(r,t,n,o),o=o.parent}}function goe(e,t,n,r){const o=G2(t,e,r,!0);hp(()=>{uN(r[t],o)},n)}function G2(e,t,n=Ci,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;t0(),Ay(n);const s=bu(t,n,e,a);return Ug(),n0(),s});return r?o.unshift(i):o.push(i),i}}const yd=e=>(t,n=Ci)=>(!_O||e==="sp")&&G2(e,(...r)=>t(...r),n),q2=yd("bm"),vn=yd("m"),cz=yd("bu"),gc=yd("u"),Ur=yd("bum"),hp=yd("um"),voe=yd("sp"),moe=yd("rtg"),yoe=yd("rtc");function boe(e,t=Ci){G2("ec",e,t)}function yn(e,t){const n=Na;if(n===null)return e;const r=eC(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,s,l,u=Yo]=t[i];a&&(nn(a)&&(a={mounted:a,updated:a}),a.deep&&jg(s),o.push({dir:a,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function _g(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const s=o[a];i&&(s.oldValue=i[a].value);let l=s.dir[r];l&&(t0(),bu(l,n,8,[e.el,s,e,t]),n0())}}const kN="components",_oe="directives";function Tn(e,t){return CN(kN,e,!0,t)||e}const fz=Symbol();function Dn(e){return Gt(e)?CN(kN,e,!1)||e:e||fz}function K2(e){return CN(_oe,e)}function CN(e,t,n=!0,r=!1){const o=Na||Ci;if(o){const i=o.type;if(e===kN){const s=Goe(i,!1);if(s&&(s===t||s===xu(t)||s===l1(xu(t))))return i}const a=Z8(o[e]||i[e],t)||Z8(o.appContext[e],t);return!a&&r?i:a}}function Z8(e,t){return e&&(e[t]||e[xu(t)]||e[l1(xu(t))])}function _n(e,t,n,r){let o;const i=n&&n[r];if(xt(e)||Gt(e)){o=new Array(e.length);for(let a=0,s=e.length;a<s;a++)o[a]=t(e[a],a,void 0,i&&i[a])}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i&&i[a])}else if(Pn(e))if(e[Symbol.iterator])o=Array.from(e,(a,s)=>t(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);o=new Array(a.length);for(let s=0,l=a.length;s<l;s++){const u=a[s];o[s]=t(e[u],u,s,i&&i[s])}}else o=[];return n&&(n[r]=o),o}function Il(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(xt(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function He(e,t,n={},r,o){if(Na.isCE||Na.parent&&V_(Na.parent)&&Na.parent.isCE)return t!=="default"&&(n.name=t),re("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Z();const a=i&&dz(i(n)),s=Fe(Pt,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function dz(e){return e.some(t=>bo(t)?!(t.type===ws||t.type===Pt&&!dz(t.children)):!0)?e:null}function Ooe(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:B_(r)]=e[r];return n}const DA=e=>e?Sz(e)?eC(e)||e.proxy:DA(e.parent):null,F_=ca(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>DA(e.parent),$root:e=>DA(e.root),$emit:e=>e.emit,$options:e=>EN(e),$forceUpdate:e=>e.f||(e.f=()=>ON(e.update)),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>hoe.bind(e)}),v$=(e,t)=>e!==Yo&&!e.__isScriptSetup&&ir(e,t),woe={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const y=a[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(v$(r,t))return a[t]=1,r[t];if(o!==Yo&&ir(o,t))return a[t]=2,o[t];if((u=e.propsOptions[0])&&ir(u,t))return a[t]=3,i[t];if(n!==Yo&&ir(n,t))return a[t]=4,n[t];jA&&(a[t]=0)}}const d=F_[t];let p,v;if(d)return t==="$attrs"&&Js(e,"get",t),d(e);if((p=s.__cssModules)&&(p=p[t]))return p;if(n!==Yo&&ir(n,t))return a[t]=4,n[t];if(v=l.config.globalProperties,ir(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return v$(o,t)?(o[t]=n,!0):r!==Yo&&ir(r,t)?(r[t]=n,!0):ir(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let s;return!!n[a]||e!==Yo&&ir(e,a)||v$(t,a)||(s=i[0])&&ir(s,a)||ir(r,a)||ir(F_,a)||ir(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ir(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let jA=!0;function Soe(e){const t=EN(e),n=e.proxy,r=e.ctx;jA=!1,t.beforeCreate&&U8(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:l,inject:u,created:d,beforeMount:p,mounted:v,beforeUpdate:y,updated:w,activated:b,deactivated:k,beforeDestroy:C,beforeUnmount:T,destroyed:$,unmounted:P,render:A,renderTracked:R,renderTriggered:B,errorCaptured:N,serverPrefetch:I,expose:D,inheritAttrs:L,components:z,directives:q,filters:ae}=t;if(u&&xoe(u,r,null,e.appContext.config.unwrapInjectedRef),a)for(const ne in a){const X=a[ne];nn(X)&&(r[ne]=X.bind(n))}if(o){const ne=o.call(n,n);Pn(ne)&&(e.data=nr(ne))}if(jA=!0,i)for(const ne in i){const X=i[ne],V=nn(X)?X.bind(n,n):nn(X.get)?X.get.bind(n,n):Br,G=!nn(X)&&nn(X.set)?X.set.bind(n):Br,se=W({get:V,set:G});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>se.value,set:he=>se.value=he})}if(s)for(const ne in s)hz(s[ne],r,n,ne);if(l){const ne=nn(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(X=>{Wn(X,ne[X])})}d&&U8(d,e,"c");function H(ne,X){xt(X)?X.forEach(V=>ne(V.bind(n))):X&&ne(X.bind(n))}if(H(q2,p),H(vn,v),H(cz,y),H(gc,w),H(xN,b),H(lz,k),H(boe,N),H(yoe,R),H(moe,B),H(Ur,T),H(hp,P),H(voe,I),xt(D))if(D.length){const ne=e.exposed||(e.exposed={});D.forEach(X=>{Object.defineProperty(ne,X,{get:()=>n[X],set:V=>n[X]=V})})}else e.exposed||(e.exposed={});A&&e.render===Br&&(e.render=A),L!=null&&(e.inheritAttrs=L),z&&(e.components=z),q&&(e.directives=q)}function xoe(e,t,n=Br,r=!1){xt(e)&&(e=LA(e));for(const o in e){const i=e[o];let a;Pn(i)?"default"in i?a=Tt(i.from||o,i.default,!0):a=Tt(i.from||o):a=Tt(i),Jr(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[o]=a}}function U8(e,t,n){bu(xt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function hz(e,t,n,r){const o=r.includes(".")?oz(n,r):()=>n[r];if(Gt(e)){const i=t[e];nn(i)&&at(o,i)}else if(nn(e))at(o,e.bind(n));else if(Pn(e))if(xt(e))e.forEach(i=>hz(i,t,n,r));else{const i=nn(e.handler)?e.handler.bind(n):t[e.handler];nn(i)&&at(o,i,e)}}function EN(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>Mk(l,u,a,!0)),Mk(l,t,a)),Pn(t)&&i.set(t,l),l}function Mk(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Mk(e,i,n,!0),o&&o.forEach(a=>Mk(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=koe[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const koe={data:H8,props:Cg,emits:Cg,methods:Cg,computed:Cg,beforeCreate:bs,created:bs,beforeMount:bs,mounted:bs,beforeUpdate:bs,updated:bs,beforeDestroy:bs,beforeUnmount:bs,destroyed:bs,unmounted:bs,activated:bs,deactivated:bs,errorCaptured:bs,serverPrefetch:bs,components:Cg,directives:Cg,watch:Eoe,provide:H8,inject:Coe};function H8(e,t){return t?e?function(){return ca(nn(e)?e.call(this,this):e,nn(t)?t.call(this,this):t)}:t:e}function Coe(e,t){return Cg(LA(e),LA(t))}function LA(e){if(xt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function bs(e,t){return e?[...new Set([].concat(e,t))]:t}function Cg(e,t){return e?ca(ca(Object.create(null),e),t):t}function Eoe(e,t){if(!e)return t;if(!t)return e;const n=ca(Object.create(null),e);for(const r in t)n[r]=bs(e[r],t[r]);return n}function Toe(e,t,n,r=!1){const o={},i={};Tk(i,J2,1),e.propsDefaults=Object.create(null),pz(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:HF(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Poe(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=cr(o),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let v=d[p];if(U2(e.emitsOptions,v))continue;const y=t[v];if(l)if(ir(i,v))y!==i[v]&&(i[v]=y,u=!0);else{const w=xu(v);o[w]=BA(l,s,w,y,e,!1)}else y!==i[v]&&(i[v]=y,u=!0)}}}else{pz(e,t,o,i)&&(u=!0);let d;for(const p in s)(!t||!ir(t,p)&&((d=dp(p))===p||!ir(t,d)))&&(l?n&&(n[p]!==void 0||n[d]!==void 0)&&(o[p]=BA(l,s,p,void 0,e,!0)):delete o[p]);if(i!==s)for(const p in i)(!t||!ir(t,p)&&!0)&&(delete i[p],u=!0)}u&&ud(e,"set","$attrs")}function pz(e,t,n,r){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(Yx(l))continue;const u=t[l];let d;o&&ir(o,d=xu(l))?!i||!i.includes(d)?n[d]=u:(s||(s={}))[d]=u:U2(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(i){const l=cr(n),u=s||Yo;for(let d=0;d<i.length;d++){const p=i[d];n[p]=BA(o,l,p,u[p],e,!ir(u,p))}}return a}function BA(e,t,n,r,o,i){const a=e[n];if(a!=null){const s=ir(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&nn(l)){const{propsDefaults:u}=o;n in u?r=u[n]:(Ay(o),r=u[n]=l.call(null,t),Ug())}else r=l}a[0]&&(i&&!s?r=!1:a[1]&&(r===""||r===dp(n))&&(r=!0))}return r}function gz(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,a={},s=[];let l=!1;if(!nn(e)){const d=p=>{l=!0;const[v,y]=gz(p,t,!0);ca(a,v),y&&s.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!l)return Pn(e)&&r.set(e,cy),cy;if(xt(i))for(let d=0;d<i.length;d++){const p=xu(i[d]);X8(p)&&(a[p]=Yo)}else if(i)for(const d in i){const p=xu(d);if(X8(p)){const v=i[d],y=a[p]=xt(v)||nn(v)?{type:v}:Object.assign({},v);if(y){const w=K8(Boolean,y.type),b=K8(String,y.type);y[0]=w>-1,y[1]=b<0||w<b,(w>-1||ir(y,"default"))&&s.push(p)}}}const u=[a,s];return Pn(e)&&r.set(e,u),u}function X8(e){return e[0]!=="$"}function G8(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function q8(e,t){return G8(e)===G8(t)}function K8(e,t){return xt(t)?t.findIndex(n=>q8(n,e)):nn(t)&&q8(t,e)?0:-1}const vz=e=>e[0]==="_"||e==="$stable",TN=e=>xt(e)?e.map(Gc):[Gc(e)],$oe=(e,t,n)=>{if(t._n)return t;const r=ue((...o)=>TN(t(...o)),n);return r._c=!1,r},mz=(e,t,n)=>{const r=e._ctx;for(const o in e){if(vz(o))continue;const i=e[o];if(nn(i))t[o]=$oe(o,i,r);else if(i!=null){const a=TN(i);t[o]=()=>a}}},yz=(e,t)=>{const n=TN(t);e.slots.default=()=>n},Aoe=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=cr(t),Tk(t,"_",n)):mz(t,e.slots={})}else e.slots={},t&&yz(e,t);Tk(e.slots,J2,1)},Moe=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Yo;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(ca(o,t),!n&&s===1&&delete o._):(i=!t.$stable,mz(t,o)),a=t}else t&&(yz(e,t),a={default:1});if(i)for(const s in o)!vz(s)&&!(s in a)&&delete o[s]};function bz(){return{app:null,config:{isNativeTag:ure,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Roe=0;function Noe(e,t){return function(r,o=null){nn(r)||(r=Object.assign({},r)),o!=null&&!Pn(o)&&(o=null);const i=bz(),a=new Set;let s=!1;const l=i.app={_uid:Roe++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:eie,get config(){return i.config},set config(u){},use(u,...d){return a.has(u)||(u&&nn(u.install)?(a.add(u),u.install(l,...d)):nn(u)&&(a.add(u),u(l,...d))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,d){return d?(i.components[u]=d,l):i.components[u]},directive(u,d){return d?(i.directives[u]=d,l):i.directives[u]},mount(u,d,p){if(!s){const v=re(r,o);return v.appContext=i,d&&t?t(v,u):e(v,u,p),s=!0,l._container=u,u.__vue_app__=l,eC(v.component)||v.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,d){return i.provides[u]=d,l}};return l}}function VA(e,t,n,r,o=!1){if(xt(e)){e.forEach((v,y)=>VA(v,t&&(xt(t)?t[y]:t),n,r,o));return}if(V_(r)&&!o)return;const i=r.shapeFlag&4?eC(r.component)||r.component.proxy:r.el,a=o?null:i,{i:s,r:l}=e,u=t&&t.r,d=s.refs===Yo?s.refs={}:s.refs,p=s.setupState;if(u!=null&&u!==l&&(Gt(u)?(d[u]=null,ir(p,u)&&(p[u]=null)):Jr(u)&&(u.value=null)),nn(l))Dh(l,s,12,[a,d]);else{const v=Gt(l),y=Jr(l);if(v||y){const w=()=>{if(e.f){const b=v?ir(p,l)?p[l]:d[l]:l.value;o?xt(b)&&uN(b,i):xt(b)?b.includes(i)||b.push(i):v?(d[l]=[i],ir(p,l)&&(p[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else v?(d[l]=a,ir(p,l)&&(p[l]=a)):y&&(l.value=a,e.k&&(d[e.k]=a))};a?(w.id=-1,zs(w,n)):w()}}}const zs=doe;function Ioe(e){return Doe(e)}function Doe(e,t){const n=gre();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:l,setText:u,setElementText:d,parentNode:p,nextSibling:v,setScopeId:y=Br,insertStaticContent:w}=e,b=(fe,oe,ke,We=null,et=null,Ve=null,Me=!1,Ke=null,be=!!oe.dynamicChildren)=>{if(fe===oe)return;fe&&!Pg(fe,oe)&&(We=$e(fe),he(fe,et,Ve,!0),fe=null),oe.patchFlag===-2&&(be=!1,oe.dynamicChildren=null);const{type:qe,ref:ct,shapeFlag:Je}=oe;switch(qe){case r0:k(fe,oe,ke,We);break;case ws:C(fe,oe,ke,We);break;case m$:fe==null&&T(oe,ke,We,Me);break;case Pt:z(fe,oe,ke,We,et,Ve,Me,Ke,be);break;default:Je&1?A(fe,oe,ke,We,et,Ve,Me,Ke,be):Je&6?q(fe,oe,ke,We,et,Ve,Me,Ke,be):(Je&64||Je&128)&&qe.process(fe,oe,ke,We,et,Ve,Me,Ke,be,me)}ct!=null&&et&&VA(ct,fe&&fe.ref,Ve,oe||fe,!oe)},k=(fe,oe,ke,We)=>{if(fe==null)r(oe.el=s(oe.children),ke,We);else{const et=oe.el=fe.el;oe.children!==fe.children&&u(et,oe.children)}},C=(fe,oe,ke,We)=>{fe==null?r(oe.el=l(oe.children||""),ke,We):oe.el=fe.el},T=(fe,oe,ke,We)=>{[fe.el,fe.anchor]=w(fe.children,oe,ke,We,fe.el,fe.anchor)},$=({el:fe,anchor:oe},ke,We)=>{let et;for(;fe&&fe!==oe;)et=v(fe),r(fe,ke,We),fe=et;r(oe,ke,We)},P=({el:fe,anchor:oe})=>{let ke;for(;fe&&fe!==oe;)ke=v(fe),o(fe),fe=ke;o(oe)},A=(fe,oe,ke,We,et,Ve,Me,Ke,be)=>{Me=Me||oe.type==="svg",fe==null?R(oe,ke,We,et,Ve,Me,Ke,be):I(fe,oe,et,Ve,Me,Ke,be)},R=(fe,oe,ke,We,et,Ve,Me,Ke)=>{let be,qe;const{type:ct,props:Je,shapeFlag:Xe,transition:gt,dirs:Ct}=fe;if(be=fe.el=a(fe.type,Ve,Je&&Je.is,Je),Xe&8?d(be,fe.children):Xe&16&&N(fe.children,be,null,We,et,Ve&&ct!=="foreignObject",Me,Ke),Ct&&_g(fe,null,We,"created"),B(be,fe,fe.scopeId,Me,We),Je){for(const Et in Je)Et!=="value"&&!Yx(Et)&&i(be,Et,null,Je[Et],Ve,fe.children,We,et,ze);"value"in Je&&i(be,"value",null,Je.value),(qe=Je.onVnodeBeforeMount)&&Yc(qe,We,fe)}Ct&&_g(fe,null,We,"beforeMount");const Zt=(!et||et&&!et.pendingBranch)&&gt&&!gt.persisted;Zt&&gt.beforeEnter(be),r(be,oe,ke),((qe=Je&&Je.onVnodeMounted)||Zt||Ct)&&zs(()=>{qe&&Yc(qe,We,fe),Zt&&gt.enter(be),Ct&&_g(fe,null,We,"mounted")},et)},B=(fe,oe,ke,We,et)=>{if(ke&&y(fe,ke),We)for(let Ve=0;Ve<We.length;Ve++)y(fe,We[Ve]);if(et){let Ve=et.subTree;if(oe===Ve){const Me=et.vnode;B(fe,Me,Me.scopeId,Me.slotScopeIds,et.parent)}}},N=(fe,oe,ke,We,et,Ve,Me,Ke,be=0)=>{for(let qe=be;qe<fe.length;qe++){const ct=fe[qe]=Ke?Sh(fe[qe]):Gc(fe[qe]);b(null,ct,oe,ke,We,et,Ve,Me,Ke)}},I=(fe,oe,ke,We,et,Ve,Me)=>{const Ke=oe.el=fe.el;let{patchFlag:be,dynamicChildren:qe,dirs:ct}=oe;be|=fe.patchFlag&16;const Je=fe.props||Yo,Xe=oe.props||Yo;let gt;ke&&Og(ke,!1),(gt=Xe.onVnodeBeforeUpdate)&&Yc(gt,ke,oe,fe),ct&&_g(oe,fe,ke,"beforeUpdate"),ke&&Og(ke,!0);const Ct=et&&oe.type!=="foreignObject";if(qe?D(fe.dynamicChildren,qe,Ke,ke,We,Ct,Ve):Me||X(fe,oe,Ke,null,ke,We,Ct,Ve,!1),be>0){if(be&16)L(Ke,oe,Je,Xe,ke,We,et);else if(be&2&&Je.class!==Xe.class&&i(Ke,"class",null,Xe.class,et),be&4&&i(Ke,"style",Je.style,Xe.style,et),be&8){const Zt=oe.dynamicProps;for(let Et=0;Et<Zt.length;Et++){const ln=Zt[Et],Ee=Je[ln],Ze=Xe[ln];(Ze!==Ee||ln==="value")&&i(Ke,ln,Ee,Ze,et,fe.children,ke,We,ze)}}be&1&&fe.children!==oe.children&&d(Ke,oe.children)}else!Me&&qe==null&&L(Ke,oe,Je,Xe,ke,We,et);((gt=Xe.onVnodeUpdated)||ct)&&zs(()=>{gt&&Yc(gt,ke,oe,fe),ct&&_g(oe,fe,ke,"updated")},We)},D=(fe,oe,ke,We,et,Ve,Me)=>{for(let Ke=0;Ke<oe.length;Ke++){const be=fe[Ke],qe=oe[Ke],ct=be.el&&(be.type===Pt||!Pg(be,qe)||be.shapeFlag&70)?p(be.el):ke;b(be,qe,ct,null,We,et,Ve,Me,!0)}},L=(fe,oe,ke,We,et,Ve,Me)=>{if(ke!==We){if(ke!==Yo)for(const Ke in ke)!Yx(Ke)&&!(Ke in We)&&i(fe,Ke,ke[Ke],null,Me,oe.children,et,Ve,ze);for(const Ke in We){if(Yx(Ke))continue;const be=We[Ke],qe=ke[Ke];be!==qe&&Ke!=="value"&&i(fe,Ke,qe,be,Me,oe.children,et,Ve,ze)}"value"in We&&i(fe,"value",ke.value,We.value)}},z=(fe,oe,ke,We,et,Ve,Me,Ke,be)=>{const qe=oe.el=fe?fe.el:s(""),ct=oe.anchor=fe?fe.anchor:s("");let{patchFlag:Je,dynamicChildren:Xe,slotScopeIds:gt}=oe;gt&&(Ke=Ke?Ke.concat(gt):gt),fe==null?(r(qe,ke,We),r(ct,ke,We),N(oe.children,ke,ct,et,Ve,Me,Ke,be)):Je>0&&Je&64&&Xe&&fe.dynamicChildren?(D(fe.dynamicChildren,Xe,ke,et,Ve,Me,Ke),(oe.key!=null||et&&oe===et.subTree)&&PN(fe,oe,!0)):X(fe,oe,ke,ct,et,Ve,Me,Ke,be)},q=(fe,oe,ke,We,et,Ve,Me,Ke,be)=>{oe.slotScopeIds=Ke,fe==null?oe.shapeFlag&512?et.ctx.activate(oe,ke,We,Me,be):ae(oe,ke,We,et,Ve,Me,be):K(fe,oe,be)},ae=(fe,oe,ke,We,et,Ve,Me)=>{const Ke=fe.component=Zoe(fe,We,et);if(X2(fe)&&(Ke.ctx.renderer=me),Uoe(Ke),Ke.asyncDep){if(et&&et.registerDep(Ke,H),!fe.el){const be=Ke.subTree=re(ws);C(null,be,oe,ke)}return}H(Ke,fe,oe,ke,et,Ve,Me)},K=(fe,oe,ke)=>{const We=oe.component=fe.component;if(uoe(fe,oe,ke))if(We.asyncDep&&!We.asyncResolved){ne(We,oe,ke);return}else We.next=oe,toe(We.update),We.update();else oe.el=fe.el,We.vnode=oe},H=(fe,oe,ke,We,et,Ve,Me)=>{const Ke=()=>{if(fe.isMounted){let{next:ct,bu:Je,u:Xe,parent:gt,vnode:Ct}=fe,Zt=ct,Et;Og(fe,!1),ct?(ct.el=Ct.el,ne(fe,ct,Me)):ct=Ct,Je&&Zx(Je),(Et=ct.props&&ct.props.onVnodeBeforeUpdate)&&Yc(Et,gt,ct,Ct),Og(fe,!0);const ln=p$(fe),Ee=fe.subTree;fe.subTree=ln,b(Ee,ln,p(Ee.el),$e(Ee),fe,et,Ve),ct.el=ln.el,Zt===null&&coe(fe,ln.el),Xe&&zs(Xe,et),(Et=ct.props&&ct.props.onVnodeUpdated)&&zs(()=>Yc(Et,gt,ct,Ct),et)}else{let ct;const{el:Je,props:Xe}=oe,{bm:gt,m:Ct,parent:Zt}=fe,Et=V_(oe);if(Og(fe,!1),gt&&Zx(gt),!Et&&(ct=Xe&&Xe.onVnodeBeforeMount)&&Yc(ct,Zt,oe),Og(fe,!0),Je&&we){const ln=()=>{fe.subTree=p$(fe),we(Je,fe.subTree,fe,et,null)};Et?oe.type.__asyncLoader().then(()=>!fe.isUnmounted&&ln()):ln()}else{const ln=fe.subTree=p$(fe);b(null,ln,ke,We,fe,et,Ve),oe.el=ln.el}if(Ct&&zs(Ct,et),!Et&&(ct=Xe&&Xe.onVnodeMounted)){const ln=oe;zs(()=>Yc(ct,Zt,ln),et)}(oe.shapeFlag&256||Zt&&V_(Zt.vnode)&&Zt.vnode.shapeFlag&256)&&fe.a&&zs(fe.a,et),fe.isMounted=!0,oe=ke=We=null}},be=fe.effect=new dN(Ke,()=>ON(qe),fe.scope),qe=fe.update=()=>be.run();qe.id=fe.uid,Og(fe,!0),qe()},ne=(fe,oe,ke)=>{oe.component=fe;const We=fe.vnode.props;fe.vnode=oe,fe.next=null,Poe(fe,oe.props,We,ke),Moe(fe,oe.children,ke),t0(),Q8(),n0()},X=(fe,oe,ke,We,et,Ve,Me,Ke,be=!1)=>{const qe=fe&&fe.children,ct=fe?fe.shapeFlag:0,Je=oe.children,{patchFlag:Xe,shapeFlag:gt}=oe;if(Xe>0){if(Xe&128){G(qe,Je,ke,We,et,Ve,Me,Ke,be);return}else if(Xe&256){V(qe,Je,ke,We,et,Ve,Me,Ke,be);return}}gt&8?(ct&16&&ze(qe,et,Ve),Je!==qe&&d(ke,Je)):ct&16?gt&16?G(qe,Je,ke,We,et,Ve,Me,Ke,be):ze(qe,et,Ve,!0):(ct&8&&d(ke,""),gt&16&&N(Je,ke,We,et,Ve,Me,Ke,be))},V=(fe,oe,ke,We,et,Ve,Me,Ke,be)=>{fe=fe||cy,oe=oe||cy;const qe=fe.length,ct=oe.length,Je=Math.min(qe,ct);let Xe;for(Xe=0;Xe<Je;Xe++){const gt=oe[Xe]=be?Sh(oe[Xe]):Gc(oe[Xe]);b(fe[Xe],gt,ke,null,et,Ve,Me,Ke,be)}qe>ct?ze(fe,et,Ve,!0,!1,Je):N(oe,ke,We,et,Ve,Me,Ke,be,Je)},G=(fe,oe,ke,We,et,Ve,Me,Ke,be)=>{let qe=0;const ct=oe.length;let Je=fe.length-1,Xe=ct-1;for(;qe<=Je&&qe<=Xe;){const gt=fe[qe],Ct=oe[qe]=be?Sh(oe[qe]):Gc(oe[qe]);if(Pg(gt,Ct))b(gt,Ct,ke,null,et,Ve,Me,Ke,be);else break;qe++}for(;qe<=Je&&qe<=Xe;){const gt=fe[Je],Ct=oe[Xe]=be?Sh(oe[Xe]):Gc(oe[Xe]);if(Pg(gt,Ct))b(gt,Ct,ke,null,et,Ve,Me,Ke,be);else break;Je--,Xe--}if(qe>Je){if(qe<=Xe){const gt=Xe+1,Ct=gt<ct?oe[gt].el:We;for(;qe<=Xe;)b(null,oe[qe]=be?Sh(oe[qe]):Gc(oe[qe]),ke,Ct,et,Ve,Me,Ke,be),qe++}}else if(qe>Xe)for(;qe<=Je;)he(fe[qe],et,Ve,!0),qe++;else{const gt=qe,Ct=qe,Zt=new Map;for(qe=Ct;qe<=Xe;qe++){const Ue=oe[qe]=be?Sh(oe[qe]):Gc(oe[qe]);Ue.key!=null&&Zt.set(Ue.key,qe)}let Et,ln=0;const Ee=Xe-Ct+1;let Ze=!1,ye=0;const Le=new Array(Ee);for(qe=0;qe<Ee;qe++)Le[qe]=0;for(qe=gt;qe<=Je;qe++){const Ue=fe[qe];if(ln>=Ee){he(Ue,et,Ve,!0);continue}let rt;if(Ue.key!=null)rt=Zt.get(Ue.key);else for(Et=Ct;Et<=Xe;Et++)if(Le[Et-Ct]===0&&Pg(Ue,oe[Et])){rt=Et;break}rt===void 0?he(Ue,et,Ve,!0):(Le[rt-Ct]=qe+1,rt>=ye?ye=rt:Ze=!0,b(Ue,oe[rt],ke,null,et,Ve,Me,Ke,be),ln++)}const xe=Ze?joe(Le):cy;for(Et=xe.length-1,qe=Ee-1;qe>=0;qe--){const Ue=Ct+qe,rt=oe[Ue],Ft=Ue+1<ct?oe[Ue+1].el:We;Le[qe]===0?b(null,rt,ke,Ft,et,Ve,Me,Ke,be):Ze&&(Et<0||qe!==xe[Et]?se(rt,ke,Ft,2):Et--)}}},se=(fe,oe,ke,We,et=null)=>{const{el:Ve,type:Me,transition:Ke,children:be,shapeFlag:qe}=fe;if(qe&6){se(fe.component.subTree,oe,ke,We);return}if(qe&128){fe.suspense.move(oe,ke,We);return}if(qe&64){Me.move(fe,oe,ke,me);return}if(Me===Pt){r(Ve,oe,ke);for(let Je=0;Je<be.length;Je++)se(be[Je],oe,ke,We);r(fe.anchor,oe,ke);return}if(Me===m$){$(fe,oe,ke);return}if(We!==2&&qe&1&&Ke)if(We===0)Ke.beforeEnter(Ve),r(Ve,oe,ke),zs(()=>Ke.enter(Ve),et);else{const{leave:Je,delayLeave:Xe,afterLeave:gt}=Ke,Ct=()=>r(Ve,oe,ke),Zt=()=>{Je(Ve,()=>{Ct(),gt&&gt()})};Xe?Xe(Ve,Ct,Zt):Zt()}else r(Ve,oe,ke)},he=(fe,oe,ke,We=!1,et=!1)=>{const{type:Ve,props:Me,ref:Ke,children:be,dynamicChildren:qe,shapeFlag:ct,patchFlag:Je,dirs:Xe}=fe;if(Ke!=null&&VA(Ke,null,ke,fe,!0),ct&256){oe.ctx.deactivate(fe);return}const gt=ct&1&&Xe,Ct=!V_(fe);let Zt;if(Ct&&(Zt=Me&&Me.onVnodeBeforeUnmount)&&Yc(Zt,oe,fe),ct&6)De(fe.component,ke,We);else{if(ct&128){fe.suspense.unmount(ke,We);return}gt&&_g(fe,null,oe,"beforeUnmount"),ct&64?fe.type.remove(fe,oe,ke,et,me,We):qe&&(Ve!==Pt||Je>0&&Je&64)?ze(qe,oe,ke,!1,!0):(Ve===Pt&&Je&384||!et&&ct&16)&&ze(be,oe,ke),We&&pe(fe)}(Ct&&(Zt=Me&&Me.onVnodeUnmounted)||gt)&&zs(()=>{Zt&&Yc(Zt,oe,fe),gt&&_g(fe,null,oe,"unmounted")},ke)},pe=fe=>{const{type:oe,el:ke,anchor:We,transition:et}=fe;if(oe===Pt){Be(ke,We);return}if(oe===m$){P(fe);return}const Ve=()=>{o(ke),et&&!et.persisted&&et.afterLeave&&et.afterLeave()};if(fe.shapeFlag&1&&et&&!et.persisted){const{leave:Me,delayLeave:Ke}=et,be=()=>Me(ke,Ve);Ke?Ke(fe.el,Ve,be):be()}else Ve()},Be=(fe,oe)=>{let ke;for(;fe!==oe;)ke=v(fe),o(fe),fe=ke;o(oe)},De=(fe,oe,ke)=>{const{bum:We,scope:et,update:Ve,subTree:Me,um:Ke}=fe;We&&Zx(We),et.stop(),Ve&&(Ve.active=!1,he(Me,fe,oe,ke)),Ke&&zs(Ke,oe),zs(()=>{fe.isUnmounted=!0},oe),oe&&oe.pendingBranch&&!oe.isUnmounted&&fe.asyncDep&&!fe.asyncResolved&&fe.suspenseId===oe.pendingId&&(oe.deps--,oe.deps===0&&oe.resolve())},ze=(fe,oe,ke,We=!1,et=!1,Ve=0)=>{for(let Me=Ve;Me<fe.length;Me++)he(fe[Me],oe,ke,We,et)},$e=fe=>fe.shapeFlag&6?$e(fe.component.subTree):fe.shapeFlag&128?fe.suspense.next():v(fe.anchor||fe.el),_e=(fe,oe,ke)=>{fe==null?oe._vnode&&he(oe._vnode,null,null,!0):b(oe._vnode||null,fe,oe,null,null,null,ke),Q8(),tz(),oe._vnode=fe},me={p:b,um:he,m:se,r:pe,mt:ae,mc:N,pc:X,pbc:D,n:$e,o:e};let Re,we;return t&&([Re,we]=t(me)),{render:_e,hydrate:Re,createApp:Noe(_e,Re)}}function Og({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function PN(e,t,n=!1){const r=e.children,o=t.children;if(xt(r)&&xt(o))for(let i=0;i<r.length;i++){const a=r[i];let s=o[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[i]=Sh(o[i]),s.el=a.el),n||PN(a,s)),s.type===r0&&(s.el=a.el)}}function joe(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<u?i=s+1:a=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const Loe=e=>e.__isTeleport,z_=e=>e&&(e.disabled||e.disabled===""),J8=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,FA=(e,t)=>{const n=e&&e.to;return Gt(n)?t?t(n):null:n},Boe={__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,u){const{mc:d,pc:p,pbc:v,o:{insert:y,querySelector:w,createText:b,createComment:k}}=u,C=z_(t.props);let{shapeFlag:T,children:$,dynamicChildren:P}=t;if(e==null){const A=t.el=b(""),R=t.anchor=b("");y(A,n,r),y(R,n,r);const B=t.target=FA(t.props,w),N=t.targetAnchor=b("");B&&(y(N,B),a=a||J8(B));const I=(D,L)=>{T&16&&d($,D,L,o,i,a,s,l)};C?I(n,R):B&&I(B,N)}else{t.el=e.el;const A=t.anchor=e.anchor,R=t.target=e.target,B=t.targetAnchor=e.targetAnchor,N=z_(e.props),I=N?n:R,D=N?A:B;if(a=a||J8(R),P?(v(e.dynamicChildren,P,I,o,i,a,s),PN(e,t,!0)):l||p(e,t,I,D,o,i,a,s,!1),C)N||nx(t,n,A,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const L=t.target=FA(t.props,w);L&&nx(t,L,null,u,0)}else N&&nx(t,R,B,u,1)}_z(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:d,target:p,props:v}=e;if(p&&i(d),(a||!z_(v))&&(i(u),s&16))for(let y=0;y<l.length;y++){const w=l[y];o(w,t,n,!0,!!w.dynamicChildren)}},move:nx,hydrate:Voe};function nx(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:d}=e,p=i===2;if(p&&r(a,t,n),(!p||z_(d))&&l&16)for(let v=0;v<u.length;v++)o(u[v],t,n,2);p&&r(s,t,n)}function Voe(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l}},u){const d=t.target=FA(t.props,l);if(d){const p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(z_(t.props))t.anchor=u(a(e),t,s(e),n,r,o,i),t.targetAnchor=p;else{t.anchor=a(e);let v=p;for(;v;)if(v=a(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,d._lpa=t.targetAnchor&&a(t.targetAnchor);break}u(p,t,d,n,r,o,i)}_z(t)}return t.anchor&&a(t.anchor)}const Foe=Boe;function _z(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Pt=Symbol(void 0),r0=Symbol(void 0),ws=Symbol(void 0),m$=Symbol(void 0),Q_=[];let ac=null;function Z(e=!1){Q_.push(ac=e?null:[])}function zoe(){Q_.pop(),ac=Q_[Q_.length-1]||null}let bO=1;function e5(e){bO+=e}function Oz(e){return e.dynamicChildren=bO>0?ac||cy:null,zoe(),bO>0&&ac&&ac.push(e),e}function ce(e,t,n,r,o,i){return Oz(ve(e,t,n,r,o,i,!0))}function Fe(e,t,n,r,o){return Oz(re(e,t,n,r,o,!0))}function bo(e){return e?e.__v_isVNode===!0:!1}function Pg(e,t){return e.type===t.type&&e.key===t.key}const J2="__vInternal",wz=({key:e})=>e!=null?e:null,Ux=({ref:e,ref_key:t,ref_for:n})=>e!=null?Gt(e)||Jr(e)||nn(e)?{i:Na,r:e,k:t,f:!!n}:e:null;function ve(e,t=null,n=null,r=0,o=null,i=e===Pt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wz(t),ref:t&&Ux(t),scopeId:H2,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Na};return s?($N(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Gt(n)?8:16),bO>0&&!a&&ac&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&ac.push(l),l}const re=Qoe;function Qoe(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===fz)&&(e=ws),bo(e)){const s=cd(e,t,!0);return n&&$N(s,n),bO>0&&!i&&ac&&(s.shapeFlag&6?ac[ac.indexOf(e)]=s:ac.push(s)),s.patchFlag|=-2,s}if(qoe(e)&&(e=e.__vccOpts),t){t=Yh(t);let{class:s,style:l}=t;s&&!Gt(s)&&(t.class=J(s)),Pn(l)&&(XF(l)&&!xt(l)&&(l=ca({},l)),t.style=Vt(l))}const a=Gt(e)?1:foe(e)?128:Loe(e)?64:Pn(e)?4:nn(e)?2:0;return ve(e,t,n,r,o,a,i,!0)}function Yh(e){return e?XF(e)||J2 in e?ca({},e):e:null}function cd(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,s=t?In(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&wz(s),ref:t&&t.ref?n&&o?xt(o)?o.concat(Ux(t)):[o,Ux(t)]:Ux(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pt?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cd(e.ssContent),ssFallback:e.ssFallback&&cd(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function St(e=" ",t=0){return re(r0,null,e,t)}function je(e="",t=!1){return t?(Z(),Fe(ws,null,e)):re(ws,null,e)}function Gc(e){return e==null||typeof e=="boolean"?re(ws):xt(e)?re(Pt,null,e.slice()):typeof e=="object"?Sh(e):re(r0,null,String(e))}function Sh(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cd(e)}function $N(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(xt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),$N(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(J2 in t)?t._ctx=Na:o===3&&Na&&(Na.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else nn(t)?(t={default:t,_ctx:Na},n=32):(t=String(t),r&64?(n=16,t=[St(t)]):n=8);e.children=t,e.shapeFlag|=n}function In(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=J([t.class,r.class]));else if(o==="style")t.style=Vt([t.style,r.style]);else if(z2(o)){const i=t[o],a=r[o];a&&i!==a&&!(xt(i)&&i.includes(a))&&(t[o]=i?[].concat(i,a):a)}else o!==""&&(t[o]=r[o])}return t}function Yc(e,t,n,r=null){bu(e,t,7,[n,r])}const Woe=bz();let Yoe=0;function Zoe(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||Woe,i={uid:Yoe++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new IF(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:gz(r,o),emitsOptions:rz(r,o),emit:null,emitted:null,propsDefaults:Yo,inheritAttrs:r.inheritAttrs,ctx:Yo,data:Yo,props:Yo,attrs:Yo,slots:Yo,refs:Yo,setupState:Yo,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ooe.bind(null,i),e.ce&&e.ce(i),i}let Ci=null;const Cn=()=>Ci||Na,Ay=e=>{Ci=e,e.scope.on()},Ug=()=>{Ci&&Ci.scope.off(),Ci=null};function Sz(e){return e.vnode.shapeFlag&4}let _O=!1;function Uoe(e,t=!1){_O=t;const{props:n,children:r}=e.vnode,o=Sz(e);Toe(e,n,o,t),Aoe(e,r);const i=o?Hoe(e,t):void 0;return _O=!1,i}function Hoe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=sd(new Proxy(e.ctx,woe));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?kz(e):null;Ay(e),t0();const i=Dh(r,e,0,[e.props,o]);if(n0(),Ug(),dO(i)){if(i.then(Ug,Ug),t)return i.then(a=>{t5(e,a,t)}).catch(a=>{Z2(a,e,0)});e.asyncDep=i}else t5(e,i,t)}else xz(e,t)}function t5(e,t,n){nn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pn(t)&&(e.setupState=qF(t)),xz(e,n)}let n5;function xz(e,t,n){const r=e.type;if(!e.render){if(!t&&n5&&!r.render){const o=r.template||EN(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=ca(ca({isCustomElement:i,delimiters:s},a),l);r.render=n5(o,u)}}e.render=r.render||Br}Ay(e),t0(),Soe(e),n0(),Ug()}function Xoe(e){return new Proxy(e.attrs,{get(t,n){return Js(e,"get","$attrs"),t[n]}})}function kz(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Xoe(e))},slots:e.slots,emit:e.emit,expose:t}}function eC(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(qF(sd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in F_)return F_[n](e)},has(t,n){return n in t||n in F_}}))}function Goe(e,t=!0){return nn(e)?e.displayName||e.name:e.name||t&&e.__name}function qoe(e){return nn(e)&&"__vccOpts"in e}const W=(e,t)=>qre(e,t,_O);function zi(){return Cz().slots}function vv(){return Cz().attrs}function Cz(){const e=Cn();return e.setupContext||(e.setupContext=kz(e))}function Yt(e,t,n){const r=arguments.length;return r===2?Pn(t)&&!xt(t)?bo(t)?re(e,null,[t]):re(e,t):re(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&bo(n)&&(n=[n]),re(e,t,n))}const Koe=Symbol(""),Joe=()=>Tt(Koe),eie="3.2.47",tie="http://www.w3.org/2000/svg",$g=typeof document!="undefined"?document:null,r5=$g&&$g.createElement("template"),nie={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?$g.createElementNS(tie,e):$g.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>$g.createTextNode(e),createComment:e=>$g.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$g.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{r5.innerHTML=r?`<svg>${e}</svg>`:e;const s=r5.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function rie(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function oie(e,t,n){const r=e.style,o=Gt(n);if(n&&!o){if(t&&!Gt(t))for(const i in t)n[i]==null&&zA(r,i,"");for(const i in n)zA(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const o5=/\s*!important$/;function zA(e,t,n){if(xt(n))n.forEach(r=>zA(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=iie(e,t);o5.test(n)?e.setProperty(dp(r),n.replace(o5,""),"important"):e[r]=n}}const i5=["Webkit","Moz","ms"],y$={};function iie(e,t){const n=y$[t];if(n)return n;let r=xu(t);if(r!=="filter"&&r in e)return y$[t]=r;r=l1(r);for(let o=0;o<i5.length;o++){const i=i5[o]+r;if(i in e)return y$[t]=i}return t}const a5="http://www.w3.org/1999/xlink";function aie(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(a5,t.slice(6,t.length)):e.setAttributeNS(a5,t,n);else{const i=sre(t);n==null||i&&!AF(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function sie(e,t,n,r,o,i,a){if(t==="innerHTML"||t==="textContent"){r&&a(r,o,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n==null?"":n;(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=AF(n):n==null&&l==="string"?(n="",s=!0):l==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Ch(e,t,n,r){e.addEventListener(t,n,r)}function lie(e,t,n,r){e.removeEventListener(t,n,r)}function uie(e,t,n,r,o=null){const i=e._vei||(e._vei={}),a=i[t];if(r&&a)a.value=r;else{const[s,l]=cie(t);if(r){const u=i[t]=hie(r,o);Ch(e,s,u,l)}else a&&(lie(e,s,a,l),i[t]=void 0)}}const s5=/(?:Once|Passive|Capture)$/;function cie(e){let t;if(s5.test(e)){t={};let r;for(;r=e.match(s5);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):dp(e.slice(2)),t]}let b$=0;const fie=Promise.resolve(),die=()=>b$||(fie.then(()=>b$=0),b$=Date.now());function hie(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;bu(pie(r,n.value),t,5,[r])};return n.value=e,n.attached=die(),n}function pie(e,t){if(xt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const l5=/^on[a-z]/,gie=(e,t,n,r,o=!1,i,a,s,l)=>{t==="class"?rie(e,r,o):t==="style"?oie(e,n,r):z2(t)?lN(t)||uie(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vie(e,t,r,o))?sie(e,t,r,i,a,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),aie(e,t,r,o))};function vie(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&l5.test(t)&&nn(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||l5.test(t)&&Gt(n)?!1:t in e}const mh="transition",d_="animation",Pi=(e,{slots:t})=>Yt(az,Tz(e),t);Pi.displayName="Transition";const Ez={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},mie=Pi.props=ca({},az.props,Ez),wg=(e,t=[])=>{xt(e)?e.forEach(n=>n(...t)):e&&e(...t)},u5=e=>e?xt(e)?e.some(t=>t.length>1):e.length>1:!1;function Tz(e){const t={};for(const z in e)z in Ez||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:d=s,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,w=yie(o),b=w&&w[0],k=w&&w[1],{onBeforeEnter:C,onEnter:T,onEnterCancelled:$,onLeave:P,onLeaveCancelled:A,onBeforeAppear:R=C,onAppear:B=T,onAppearCancelled:N=$}=t,I=(z,q,ae)=>{bh(z,q?d:s),bh(z,q?u:a),ae&&ae()},D=(z,q)=>{z._isLeaving=!1,bh(z,p),bh(z,y),bh(z,v),q&&q()},L=z=>(q,ae)=>{const K=z?B:T,H=()=>I(q,z,ae);wg(K,[q,H]),c5(()=>{bh(q,z?l:i),nd(q,z?d:s),u5(K)||f5(q,r,b,H)})};return ca(t,{onBeforeEnter(z){wg(C,[z]),nd(z,i),nd(z,a)},onBeforeAppear(z){wg(R,[z]),nd(z,l),nd(z,u)},onEnter:L(!1),onAppear:L(!0),onLeave(z,q){z._isLeaving=!0;const ae=()=>D(z,q);nd(z,p),$z(),nd(z,v),c5(()=>{!z._isLeaving||(bh(z,p),nd(z,y),u5(P)||f5(z,r,k,ae))}),wg(P,[z,ae])},onEnterCancelled(z){I(z,!1),wg($,[z])},onAppearCancelled(z){I(z,!0),wg(N,[z])},onLeaveCancelled(z){D(z),wg(A,[z])}})}function yie(e){if(e==null)return null;if(Pn(e))return[_$(e.enter),_$(e.leave)];{const t=_$(e);return[t,t]}}function _$(e){return pre(e)}function nd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function bh(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function c5(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bie=0;function f5(e,t,n,r){const o=e._endId=++bie,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=Pz(e,t);if(!a)return r();const u=a+"end";let d=0;const p=()=>{e.removeEventListener(u,v),i()},v=y=>{y.target===e&&++d>=l&&p()};setTimeout(()=>{d<l&&p()},s+1),e.addEventListener(u,v)}function Pz(e,t){const n=window.getComputedStyle(e),r=w=>(n[w]||"").split(", "),o=r(`${mh}Delay`),i=r(`${mh}Duration`),a=d5(o,i),s=r(`${d_}Delay`),l=r(`${d_}Duration`),u=d5(s,l);let d=null,p=0,v=0;t===mh?a>0&&(d=mh,p=a,v=i.length):t===d_?u>0&&(d=d_,p=u,v=l.length):(p=Math.max(a,u),d=p>0?a>u?mh:d_:null,v=d?d===mh?i.length:l.length:0);const y=d===mh&&/\b(transform|all)(,|$)/.test(r(`${mh}Property`).toString());return{type:d,timeout:p,propCount:v,hasTransform:y}}function d5(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>h5(n)+h5(e[r])))}function h5(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function $z(){return document.body.offsetHeight}const Az=new WeakMap,Mz=new WeakMap,Rz={name:"TransitionGroup",props:ca({},mie,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Cn(),r=iz();let o,i;return gc(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!xie(o[0].el,n.vnode.el,a))return;o.forEach(Oie),o.forEach(wie);const s=o.filter(Sie);$z(),s.forEach(l=>{const u=l.el,d=u.style;nd(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const p=u._moveCb=v=>{v&&v.target!==u||(!v||/transform$/.test(v.propertyName))&&(u.removeEventListener("transitionend",p),u._moveCb=null,bh(u,a))};u.addEventListener("transitionend",p)})}),()=>{const a=cr(e),s=Tz(a);let l=a.tag||Pt;o=i,i=t.default?SN(t.default()):[];for(let u=0;u<i.length;u++){const d=i[u];d.key!=null&&yO(d,mO(d,s,r,n))}if(o)for(let u=0;u<o.length;u++){const d=o[u];yO(d,mO(d,s,r,n)),Az.set(d,d.el.getBoundingClientRect())}return re(l,null,i)}}},_ie=e=>delete e.mode;Rz.props;const Nz=Rz;function Oie(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function wie(e){Mz.set(e,e.el.getBoundingClientRect())}function Sie(e){const t=Az.get(e),n=Mz.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function xie(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=Pz(r);return o.removeChild(r),i}const My=e=>{const t=e.props["onUpdate:modelValue"]||!1;return xt(t)?n=>Zx(t,n):t};function kie(e){e.target.composing=!0}function p5(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const AN={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=My(o);const i=r||o.props&&o.props.type==="number";Ch(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=AA(s)),e._assign(s)}),n&&Ch(e,"change",()=>{e.value=e.value.trim()}),t||(Ch(e,"compositionstart",kie),Ch(e,"compositionend",p5),Ch(e,"change",p5))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=My(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&AA(e.value)===t))return;const a=t==null?"":t;e.value!==a&&(e.value=a)}},Rk={deep:!0,created(e,t,n){e._assign=My(n),Ch(e,"change",()=>{const r=e._modelValue,o=Dz(e),i=e.checked,a=e._assign;if(xt(r)){const s=MF(r,o),l=s!==-1;if(i&&!l)a(r.concat(o));else if(!i&&l){const u=[...r];u.splice(s,1),a(u)}}else if(Q2(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(jz(e,i))})},mounted:g5,beforeUpdate(e,t,n){e._assign=My(n),g5(e,t,n)}};function g5(e,{value:t,oldValue:n},r){e._modelValue=t,xt(t)?e.checked=MF(t,r.props.value)>-1:Q2(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Py(t,jz(e,!0)))}const Iz={created(e,{value:t},n){e.checked=Py(t,n.props.value),e._assign=My(n),Ch(e,"change",()=>{e._assign(Dz(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=My(r),t!==n&&(e.checked=Py(t,r.props.value))}};function Dz(e){return"_value"in e?e._value:e.value}function jz(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Cie=["ctrl","shift","alt","meta"],Eie={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Cie.some(n=>e[`${n}Key`]&&!t.includes(n))},tn=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const i=Eie[t[o]];if(i&&i(n,t))return}return e(n,...r)},Tie={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vr=(e,t)=>n=>{if(!("key"in n))return;const r=dp(n.key);if(t.some(o=>o===r||Tie[o]===r))return e(n)},hr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):h_(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),h_(e,!0),r.enter(e)):r.leave(e,()=>{h_(e,!1)}):h_(e,t))},beforeUnmount(e,{value:t}){h_(e,t)}};function h_(e,t){e.style.display=t?e._vod:"none"}const Pie=ca({patchProp:gie},nie);let v5;function Lz(){return v5||(v5=Ioe(Pie))}const Zh=(...e)=>{Lz().render(...e)},tC=(...e)=>{const t=Lz().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=$ie(r);if(!o)return;const i=t._component;!nn(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function $ie(e){return Gt(e)?document.querySelector(e):e}const Aie='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Mie=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,m5=e=>Array.from(e.querySelectorAll(Aie)).filter(t=>Rie(t)&&Mie(t)),Rie=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Hx=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e},Bz=e=>!e.getAttribute("aria-owns"),Vz=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n),i=Array.prototype.indexOf.call(o,e);return o[i+t]||null},Xx=e=>{!e||(e.focus(),!Bz(e)&&e.click())},Lo=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const i=e==null?void 0:e(o);if(n===!1||!i)return t==null?void 0:t(o)},y5=e=>t=>t.pointerType==="mouse"?e(t):void 0;var Nie=Object.defineProperty,Iie=Object.defineProperties,Die=Object.getOwnPropertyDescriptors,b5=Object.getOwnPropertySymbols,jie=Object.prototype.hasOwnProperty,Lie=Object.prototype.propertyIsEnumerable,_5=(e,t,n)=>t in e?Nie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bie=(e,t)=>{for(var n in t||(t={}))jie.call(t,n)&&_5(e,n,t[n]);if(b5)for(var n of b5(t))Lie.call(t,n)&&_5(e,n,t[n]);return e},Vie=(e,t)=>Iie(e,Die(t));function O5(e,t){var n;const r=Kr();return Ia(()=>{r.value=e()},Vie(Bie({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),u1(r)}var w5;const tr=typeof window!="undefined",Fie=e=>typeof e!="undefined",S5=e=>typeof e=="function",zie=e=>typeof e=="string",O$=()=>{},x5=tr&&((w5=window==null?void 0:window.navigator)==null?void 0:w5.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function tv(e){return typeof e=="function"?e():m(e)}function Fz(e,t){function n(...r){e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})}return n}function Qie(e,t={}){let n,r;return i=>{const a=tv(e),s=tv(t.maxWait);if(n&&clearTimeout(n),a<=0||s!==void 0&&s<=0)return r&&(clearTimeout(r),r=null),i();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,i()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,i()},a)}}function Wie(e,t=!0,n=!0){let r=0,o,i=!0;const a=()=>{o&&(clearTimeout(o),o=void 0)};return l=>{const u=tv(e),d=Date.now()-r;if(a(),u<=0)return r=Date.now(),l();d>u&&(n||!i)?(r=Date.now(),l()):t&&(o=setTimeout(()=>{r=Date.now(),i=!0,a(),l()},u)),!n&&!o&&(o=setTimeout(()=>i=!0,u)),i=!1}}function Yie(e){return e}function Zie(e,t){let n,r,o;const i=ee(!0),a=()=>{i.value=!0,o()};at(e,a,{flush:"sync"});const s=S5(t)?t:t.get,l=S5(t)?void 0:t.set,u=Hre((d,p)=>(r=d,o=p,{get(){return i.value&&(n=s(),i.value=!1),r(),n},set(v){l==null||l(v)}}));return Object.isExtensible(u)&&(u.trigger=a),u}function c1(e){return DF()?(jF(e),!0):!1}function Uie(e,t=200,n={}){return Fz(Qie(t,n),e)}function Hie(e,t=200,n={}){if(t<=0)return e;const r=ee(e.value),o=Uie(()=>{r.value=e.value},t,n);return at(e,()=>o()),r}function zz(e,t=200,n=!1,r=!0){return Fz(Wie(t,n,r),e)}function MN(e,t=!0){Cn()?vn(e):t?e():zt(e)}function nv(e,t,n={}){const{immediate:r=!0}=n,o=ee(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){o.value=!1,a()}function l(...u){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...u)},tv(t))}return r&&(o.value=!0,tr&&l()),c1(s),{isPending:o,start:l,stop:s}}function Zs(e){var t;const n=tv(e);return(t=n==null?void 0:n.$el)!=null?t:n}const pp=tr?window:void 0,Xie=tr?window.document:void 0;function Ar(...e){let t,n,r,o;if(zie(e[0])?([n,r,o]=e,t=pp):[t,n,r,o]=e,!t)return O$;let i=O$;const a=at(()=>Zs(t),l=>{i(),l&&(l.addEventListener(n,r,o),i=()=>{l.removeEventListener(n,r,o),i=O$})},{immediate:!0,flush:"post"}),s=()=>{a(),i()};return c1(s),s}function RN(e,t,n={}){const{window:r=pp,ignore:o,capture:i=!0,detectIframe:a=!1}=n;if(!r)return;const s=ee(!0);let l;const u=v=>{r.clearTimeout(l);const y=Zs(e),w=v.composedPath();!y||y===v.target||w.includes(y)||!s.value||o&&o.length>0&&o.some(b=>{const k=Zs(b);return k&&(v.target===k||w.includes(k))})||t(v)},d=[Ar(r,"click",u,{passive:!0,capture:i}),Ar(r,"pointerdown",v=>{const y=Zs(e);s.value=!!y&&!v.composedPath().includes(y)},{passive:!0}),Ar(r,"pointerup",v=>{if(v.button===0){const y=v.composedPath();v.composedPath=()=>y,l=r.setTimeout(()=>u(v),50)}},{passive:!0}),a&&Ar(r,"blur",v=>{var y;const w=Zs(e);((y=document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(w!=null&&w.contains(document.activeElement))&&t(v)})].filter(Boolean);return()=>d.forEach(v=>v())}function Gie(e={}){const{window:t=pp}=e,n=Zie(()=>null,()=>t==null?void 0:t.document.activeElement);return t&&(Ar(t,"blur",n.trigger,!0),Ar(t,"focus",n.trigger,!0)),n}function Qz(e,t=!1){const n=ee(),r=()=>n.value=Boolean(e());return r(),MN(r,t),n}const QA=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},WA="__vueuse_ssr_handlers__";QA[WA]=QA[WA]||{};QA[WA];function qie(e,t,{window:n=pp,initialValue:r=""}={}){const o=ee(r),i=W(()=>{var a;return Zs(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return at([i,()=>tv(e)],([a,s])=>{var l;if(a&&n){const u=(l=n.getComputedStyle(a).getPropertyValue(s))==null?void 0:l.trim();o.value=u||r}},{immediate:!0}),at(o,a=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(tv(e),a)}),o}function Kie({document:e=Xie}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return Ar(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var k5=Object.getOwnPropertySymbols,Jie=Object.prototype.hasOwnProperty,eae=Object.prototype.propertyIsEnumerable,tae=(e,t)=>{var n={};for(var r in e)Jie.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&k5)for(var r of k5(e))t.indexOf(r)<0&&eae.call(e,r)&&(n[r]=e[r]);return n};function _o(e,t,n={}){const r=n,{window:o=pp}=r,i=tae(r,["window"]);let a;const s=Qz(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=at(()=>Zs(e),p=>{l(),s.value&&o&&p&&(a=new ResizeObserver(t),a.observe(p,i))},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return c1(d),{isSupported:s,stop:d}}function C5(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=ee(0),s=ee(0),l=ee(0),u=ee(0),d=ee(0),p=ee(0),v=ee(0),y=ee(0);function w(){const b=Zs(e);if(!b){n&&(a.value=0,s.value=0,l.value=0,u.value=0,d.value=0,p.value=0,v.value=0,y.value=0);return}const k=b.getBoundingClientRect();a.value=k.height,s.value=k.bottom,l.value=k.left,u.value=k.right,d.value=k.top,p.value=k.width,v.value=k.x,y.value=k.y}return _o(e,w),at(()=>Zs(e),b=>!b&&w()),o&&Ar("scroll",w,{passive:!0}),r&&Ar("resize",w,{passive:!0}),MN(()=>{i&&w()}),{height:a,bottom:s,left:l,right:u,top:d,width:p,x:v,y,update:w}}var E5=Object.getOwnPropertySymbols,nae=Object.prototype.hasOwnProperty,rae=Object.prototype.propertyIsEnumerable,oae=(e,t)=>{var n={};for(var r in e)nae.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&E5)for(var r of E5(e))t.indexOf(r)<0&&rae.call(e,r)&&(n[r]=e[r]);return n};function Wz(e,t,n={}){const r=n,{window:o=pp}=r,i=oae(r,["window"]);let a;const s=Qz(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=at(()=>Zs(e),p=>{l(),s.value&&o&&p&&(a=new MutationObserver(t),a.observe(p,i))},{immediate:!0}),d=()=>{l(),u()};return c1(d),{isSupported:s,stop:d}}var T5;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(T5||(T5={}));var iae=Object.defineProperty,P5=Object.getOwnPropertySymbols,aae=Object.prototype.hasOwnProperty,sae=Object.prototype.propertyIsEnumerable,$5=(e,t,n)=>t in e?iae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lae=(e,t)=>{for(var n in t||(t={}))aae.call(t,n)&&$5(e,n,t[n]);if(P5)for(var n of P5(t))sae.call(t,n)&&$5(e,n,t[n]);return e};const uae={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};lae({linear:Yie},uae);function Yz(e,t,n,r={}){var o,i,a;const{passive:s=!1,eventName:l,deep:u=!1,defaultValue:d}=r,p=Cn(),v=n||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((a=(i=p==null?void 0:p.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(p==null?void 0:p.proxy));let y=l;t||(t="modelValue"),y=l||y||`update:${t.toString()}`;const w=()=>Fie(e[t])?e[t]:d;if(s){const b=ee(w());return at(()=>e[t],k=>b.value=k),at(b,k=>{(k!==e[t]||u)&&v(y,k)},{deep:u}),b}else return W({get(){return w()},set(b){v(y,b)}})}function cae({window:e=pp}={}){if(!e)return ee(!1);const t=ee(e.document.hasFocus());return Ar(e,"blur",()=>{t.value=!1}),Ar(e,"focus",()=>{t.value=!0}),t}function fae(e={}){const{window:t=pp,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0}=e,i=ee(n),a=ee(r),s=()=>{t&&(i.value=t.innerWidth,a.value=t.innerHeight)};return s(),MN(s),Ar("resize",s,{passive:!0}),o&&Ar("orientationchange",s,{passive:!0}),{width:i,height:a}}const NN=()=>tr&&/firefox/i.test(window.navigator.userAgent),dae=(e,t)=>{if(!tr||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},A5=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},YA=(e,t)=>Math.abs(A5(e)-A5(t)),IN=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};function hae(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}var pae=typeof global=="object"&&global&&global.Object===Object&&global,Zz=pae,gae=typeof self=="object"&&self&&self.Object===Object&&self,vae=Zz||gae||Function("return this")(),da=vae,mae=da.Symbol,is=mae,Uz=Object.prototype,yae=Uz.hasOwnProperty,bae=Uz.toString,p_=is?is.toStringTag:void 0;function _ae(e){var t=yae.call(e,p_),n=e[p_];try{e[p_]=void 0;var r=!0}catch{}var o=bae.call(e);return r&&(t?e[p_]=n:delete e[p_]),o}var Oae=Object.prototype,wae=Oae.toString;function Sae(e){return wae.call(e)}var xae="[object Null]",kae="[object Undefined]",M5=is?is.toStringTag:void 0;function $s(e){return e==null?e===void 0?kae:xae:M5&&M5 in Object(e)?_ae(e):Sae(e)}function yi(e){return e!=null&&typeof e=="object"}var Cae="[object Symbol]";function Dl(e){return typeof e=="symbol"||yi(e)&&$s(e)==Cae}var Eae=0/0;function R5(e){return typeof e=="number"?e:Dl(e)?Eae:+e}function ni(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Tae=Array.isArray,yr=Tae,Pae=1/0,N5=is?is.prototype:void 0,I5=N5?N5.toString:void 0;function jl(e){if(typeof e=="string")return e;if(yr(e))return ni(e,jl)+"";if(Dl(e))return I5?I5.call(e):"";var t=e+"";return t=="0"&&1/e==-Pae?"-0":t}function nC(e,t){return function(n,r){var o;if(n===void 0&&r===void 0)return t;if(n!==void 0&&(o=n),r!==void 0){if(o===void 0)return r;typeof n=="string"||typeof r=="string"?(n=jl(n),r=jl(r)):(n=R5(n),r=R5(r)),o=e(n,r)}return o}}var $ae=nC(function(e,t){return e+t},0),Aae=$ae,Mae=/\s/;function Hz(e){for(var t=e.length;t--&&Mae.test(e.charAt(t)););return t}var Rae=/^\s+/;function Xz(e){return e&&e.slice(0,Hz(e)+1).replace(Rae,"")}function ri(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var D5=0/0,Nae=/^[-+]0x[0-9a-f]+$/i,Iae=/^0b[01]+$/i,Dae=/^0o[0-7]+$/i,jae=parseInt;function _u(e){if(typeof e=="number")return e;if(Dl(e))return D5;if(ri(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ri(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Xz(e);var n=Iae.test(e);return n||Dae.test(e)?jae(e.slice(2),n?2:8):Nae.test(e)?D5:+e}var j5=1/0,Lae=17976931348623157e292;function ld(e){if(!e)return e===0?e:0;if(e=_u(e),e===j5||e===-j5){var t=e<0?-1:1;return t*Lae}return e===e?e:0}function kr(e){var t=ld(e),n=t%1;return t===t?n?t-n:t:0}var Bae="Expected a function";function Vae(e,t){if(typeof t!="function")throw new TypeError(Bae);return e=kr(e),function(){if(--e<1)return t.apply(this,arguments)}}function As(e){return e}var Fae="[object AsyncFunction]",zae="[object Function]",Qae="[object GeneratorFunction]",Wae="[object Proxy]";function bd(e){if(!ri(e))return!1;var t=$s(e);return t==zae||t==Qae||t==Fae||t==Wae}var Yae=da["__core-js_shared__"],Gx=Yae,L5=function(){var e=/[^.]+$/.exec(Gx&&Gx.keys&&Gx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Zae(e){return!!L5&&L5 in e}var Uae=Function.prototype,Hae=Uae.toString;function mv(e){if(e!=null){try{return Hae.call(e)}catch{}try{return e+""}catch{}}return""}var Xae=/[\\^$.*+?()[\]{}|]/g,Gae=/^\[object .+?Constructor\]$/,qae=Function.prototype,Kae=Object.prototype,Jae=qae.toString,ese=Kae.hasOwnProperty,tse=RegExp("^"+Jae.call(ese).replace(Xae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gz(e){if(!ri(e)||Zae(e))return!1;var t=bd(e)?tse:Gae;return t.test(mv(e))}function nse(e,t){return e==null?void 0:e[t]}function yv(e,t){var n=nse(e,t);return Gz(n)?n:void 0}var rse=yv(da,"WeakMap"),OO=rse,ose=OO&&new OO,Nk=ose,ise=Nk?function(e,t){return Nk.set(e,t),e}:As,qz=ise,B5=Object.create,ase=function(){function e(){}return function(t){if(!ri(t))return{};if(B5)return B5(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),o0=ase;function wO(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=o0(e.prototype),r=e.apply(n,t);return ri(r)?r:n}}var sse=1;function lse(e,t,n){var r=t&sse,o=wO(e);function i(){var a=this&&this!==da&&this instanceof i?o:e;return a.apply(r?n:this,arguments)}return i}function Ll(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var use=Math.max;function Kz(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=use(i-a,0),d=Array(l+u),p=!r;++s<l;)d[s]=t[s];for(;++o<a;)(p||o<i)&&(d[n[o]]=e[o]);for(;u--;)d[s++]=e[o++];return d}var cse=Math.max;function Jz(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,d=cse(i-s,0),p=Array(d+u),v=!r;++o<d;)p[o]=e[o];for(var y=o;++l<u;)p[y+l]=t[l];for(;++a<s;)(v||o<i)&&(p[y+n[a]]=e[o++]);return p}function fse(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function rC(){}var dse=4294967295;function Yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=dse,this.__views__=[]}Yr.prototype=o0(rC.prototype);Yr.prototype.constructor=Yr;function DN(){}var hse=Nk?function(e){return Nk.get(e)}:DN,jN=hse,pse={},py=pse,gse=Object.prototype,vse=gse.hasOwnProperty;function qx(e){for(var t=e.name+"",n=py[t],r=vse.call(py,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function ku(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}ku.prototype=o0(rC.prototype);ku.prototype.constructor=ku;function Xs(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function e7(e){if(e instanceof Yr)return e.clone();var t=new ku(e.__wrapped__,e.__chain__);return t.__actions__=Xs(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var mse=Object.prototype,yse=mse.hasOwnProperty;function Pe(e){if(yi(e)&&!yr(e)&&!(e instanceof Yr)){if(e instanceof ku)return e;if(yse.call(e,"__wrapped__"))return e7(e)}return new ku(e)}Pe.prototype=rC.prototype;Pe.prototype.constructor=Pe;function ZA(e){var t=qx(e),n=Pe[t];if(typeof n!="function"||!(t in Yr.prototype))return!1;if(e===n)return!0;var r=jN(n);return!!r&&e===r[0]}var bse=800,_se=16,Ose=Date.now;function t7(e){var t=0,n=0;return function(){var r=Ose(),o=_se-(r-n);if(n=r,o>0){if(++t>=bse)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var wse=t7(qz),n7=wse,Sse=/\{\n\/\* \[wrapped with (.+)\] \*/,xse=/,? & /;function kse(e){var t=e.match(Sse);return t?t[1].split(xse):[]}var Cse=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Ese(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Cse,`{
  2. /* [wrapped with `+t+`] */
  3. `)}function LN(e){return function(){return e}}var Tse=function(){try{var e=yv(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ik=Tse,Pse=Ik?function(e,t){return Ik(e,"toString",{configurable:!0,enumerable:!1,value:LN(t),writable:!0})}:As,$se=Pse,Ase=t7($se),BN=Ase;function Mu(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function oC(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function r7(e){return e!==e}function Mse(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function i0(e,t,n){return t===t?Mse(e,t,n):oC(e,r7,n)}function iC(e,t){var n=e==null?0:e.length;return!!n&&i0(e,t,0)>-1}var Rse=1,Nse=2,Ise=8,Dse=16,jse=32,Lse=64,Bse=128,Vse=256,Fse=512,zse=[["ary",Bse],["bind",Rse],["bindKey",Nse],["curry",Ise],["curryRight",Dse],["flip",Fse],["partial",jse],["partialRight",Lse],["rearg",Vse]];function Qse(e,t){return Mu(zse,function(n){var r="_."+n[0];t&n[1]&&!iC(e,r)&&e.push(r)}),e.sort()}function o7(e,t,n){var r=t+"";return BN(e,Ese(r,Qse(kse(r),n)))}var Wse=1,Yse=2,Zse=4,Use=8,V5=32,F5=64;function i7(e,t,n,r,o,i,a,s,l,u){var d=t&Use,p=d?a:void 0,v=d?void 0:a,y=d?i:void 0,w=d?void 0:i;t|=d?V5:F5,t&=~(d?F5:V5),t&Zse||(t&=~(Wse|Yse));var b=[e,t,o,y,p,w,v,s,l,u],k=n.apply(void 0,b);return ZA(e)&&n7(k,b),k.placeholder=r,o7(k,e,t)}function a0(e){var t=e;return t.placeholder}var Hse=9007199254740991,Xse=/^(?:0|[1-9]\d*)$/;function _d(e,t){var n=typeof e;return t=t==null?Hse:t,!!t&&(n=="number"||n!="symbol"&&Xse.test(e))&&e>-1&&e%1==0&&e<t}var Gse=Math.min;function qse(e,t){for(var n=e.length,r=Gse(t.length,n),o=Xs(e);r--;){var i=t[r];e[r]=_d(i,n)?o[i]:void 0}return e}var z5="__lodash_placeholder__";function Uh(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];(a===t||a===z5)&&(e[n]=z5,i[o++]=n)}return i}var Kse=1,Jse=2,ele=8,tle=16,nle=128,rle=512;function aC(e,t,n,r,o,i,a,s,l,u){var d=t&nle,p=t&Kse,v=t&Jse,y=t&(ele|tle),w=t&rle,b=v?void 0:wO(e);function k(){for(var C=arguments.length,T=Array(C),$=C;$--;)T[$]=arguments[$];if(y)var P=a0(k),A=fse(T,P);if(r&&(T=Kz(T,r,o,y)),i&&(T=Jz(T,i,a,y)),C-=A,y&&C<u){var R=Uh(T,P);return i7(e,t,aC,k.placeholder,n,T,R,s,l,u-C)}var B=p?n:this,N=v?B[e]:e;return C=T.length,s?T=qse(T,s):w&&C>1&&T.reverse(),d&&l<C&&(T.length=l),this&&this!==da&&this instanceof k&&(N=b||wO(N)),N.apply(B,T)}return k}function ole(e,t,n){var r=wO(e);function o(){for(var i=arguments.length,a=Array(i),s=i,l=a0(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:Uh(a,l);if(i-=u.length,i<n)return i7(e,t,aC,o.placeholder,void 0,a,u,void 0,void 0,n-i);var d=this&&this!==da&&this instanceof o?r:e;return Ll(d,this,a)}return o}var ile=1;function ale(e,t,n,r){var o=t&ile,i=wO(e);function a(){for(var s=-1,l=arguments.length,u=-1,d=r.length,p=Array(d+l),v=this&&this!==da&&this instanceof a?i:e;++u<d;)p[u]=r[u];for(;l--;)p[u++]=arguments[++s];return Ll(v,o?n:this,p)}return a}var Q5="__lodash_placeholder__",w$=1,sle=2,lle=4,W5=8,g_=128,Y5=256,ule=Math.min;function cle(e,t){var n=e[1],r=t[1],o=n|r,i=o<(w$|sle|g_),a=r==g_&&n==W5||r==g_&&n==Y5&&e[7].length<=t[8]||r==(g_|Y5)&&t[7].length<=t[8]&&n==W5;if(!(i||a))return e;r&w$&&(e[2]=t[2],o|=n&w$?0:lle);var s=t[3];if(s){var l=e[3];e[3]=l?Kz(l,s,t[4]):s,e[4]=l?Uh(e[3],Q5):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?Jz(l,s,t[6]):s,e[6]=l?Uh(e[5],Q5):t[6]),s=t[7],s&&(e[7]=s),r&g_&&(e[8]=e[8]==null?t[8]:ule(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}var fle="Expected a function",Z5=1,dle=2,S$=8,x$=16,k$=32,U5=64,H5=Math.max;function Od(e,t,n,r,o,i,a,s){var l=t&dle;if(!l&&typeof e!="function")throw new TypeError(fle);var u=r?r.length:0;if(u||(t&=~(k$|U5),r=o=void 0),a=a===void 0?a:H5(kr(a),0),s=s===void 0?s:kr(s),u-=o?o.length:0,t&U5){var d=r,p=o;r=o=void 0}var v=l?void 0:jN(e),y=[e,t,n,r,o,d,p,i,a,s];if(v&&cle(y,v),e=y[0],t=y[1],n=y[2],r=y[3],o=y[4],s=y[9]=y[9]===void 0?l?0:e.length:H5(y[9]-u,0),!s&&t&(S$|x$)&&(t&=~(S$|x$)),!t||t==Z5)var w=lse(e,t,n);else t==S$||t==x$?w=ole(e,t,s):(t==k$||t==(Z5|k$))&&!o.length?w=ale(e,t,n,r):w=aC.apply(void 0,y);var b=v?qz:n7;return o7(b(w,y),e,t)}var hle=128;function a7(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,Od(e,hle,void 0,void 0,void 0,void 0,t)}function wd(e,t,n){t=="__proto__"&&Ik?Ik(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function vc(e,t){return e===t||e!==e&&t!==t}var ple=Object.prototype,gle=ple.hasOwnProperty;function f1(e,t,n){var r=e[t];(!(gle.call(e,t)&&vc(r,n))||n===void 0&&!(t in e))&&wd(e,t,n)}function mf(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?wd(n,s,l):f1(n,s,l)}return n}var X5=Math.max;function s7(e,t,n){return t=X5(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=X5(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),Ll(e,this,s)}}function Nr(e,t){return BN(s7(e,t,As),e+"")}var vle=9007199254740991;function sC(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vle}function nl(e){return e!=null&&sC(e.length)&&!bd(e)}function Es(e,t,n){if(!ri(n))return!1;var r=typeof t;return(r=="number"?nl(n)&&_d(t,n.length):r=="string"&&t in n)?vc(n[t],e):!1}function s0(e){return Nr(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&Es(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var mle=Object.prototype;function d1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mle;return e===n}function VN(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var yle="[object Arguments]";function G5(e){return yi(e)&&$s(e)==yle}var l7=Object.prototype,ble=l7.hasOwnProperty,_le=l7.propertyIsEnumerable,Ole=G5(function(){return arguments}())?G5:function(e){return yi(e)&&ble.call(e,"callee")&&!_le.call(e,"callee")},rv=Ole;function FN(){return!1}var u7=typeof Al=="object"&&Al&&!Al.nodeType&&Al,q5=u7&&typeof Ml=="object"&&Ml&&!Ml.nodeType&&Ml,wle=q5&&q5.exports===u7,K5=wle?da.Buffer:void 0,Sle=K5?K5.isBuffer:void 0,xle=Sle||FN,Hh=xle,kle="[object Arguments]",Cle="[object Array]",Ele="[object Boolean]",Tle="[object Date]",Ple="[object Error]",$le="[object Function]",Ale="[object Map]",Mle="[object Number]",Rle="[object Object]",Nle="[object RegExp]",Ile="[object Set]",Dle="[object String]",jle="[object WeakMap]",Lle="[object ArrayBuffer]",Ble="[object DataView]",Vle="[object Float32Array]",Fle="[object Float64Array]",zle="[object Int8Array]",Qle="[object Int16Array]",Wle="[object Int32Array]",Yle="[object Uint8Array]",Zle="[object Uint8ClampedArray]",Ule="[object Uint16Array]",Hle="[object Uint32Array]",Qo={};Qo[Vle]=Qo[Fle]=Qo[zle]=Qo[Qle]=Qo[Wle]=Qo[Yle]=Qo[Zle]=Qo[Ule]=Qo[Hle]=!0;Qo[kle]=Qo[Cle]=Qo[Lle]=Qo[Ele]=Qo[Ble]=Qo[Tle]=Qo[Ple]=Qo[$le]=Qo[Ale]=Qo[Mle]=Qo[Rle]=Qo[Nle]=Qo[Ile]=Qo[Dle]=Qo[jle]=!1;function Xle(e){return yi(e)&&sC(e.length)&&!!Qo[$s(e)]}function Bl(e){return function(t){return e(t)}}var c7=typeof Al=="object"&&Al&&!Al.nodeType&&Al,W_=c7&&typeof Ml=="object"&&Ml&&!Ml.nodeType&&Ml,Gle=W_&&W_.exports===c7,C$=Gle&&Zz.process,qle=function(){try{var e=W_&&W_.require&&W_.require("util").types;return e||C$&&C$.binding&&C$.binding("util")}catch{}}(),Cu=qle,J5=Cu&&Cu.isTypedArray,Kle=J5?Bl(J5):Xle,l0=Kle,Jle=Object.prototype,eue=Jle.hasOwnProperty;function f7(e,t){var n=yr(e),r=!n&&rv(e),o=!n&&!r&&Hh(e),i=!n&&!r&&!o&&l0(e),a=n||r||o||i,s=a?VN(e.length,String):[],l=s.length;for(var u in e)(t||eue.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_d(u,l)))&&s.push(u);return s}function d7(e,t){return function(n){return e(t(n))}}var tue=d7(Object.keys,Object),nue=tue,rue=Object.prototype,oue=rue.hasOwnProperty;function zN(e){if(!d1(e))return nue(e);var t=[];for(var n in Object(e))oue.call(e,n)&&n!="constructor"&&t.push(n);return t}function ra(e){return nl(e)?f7(e):zN(e)}var iue=Object.prototype,aue=iue.hasOwnProperty,sue=s0(function(e,t){if(d1(t)||nl(t)){mf(t,ra(t),e);return}for(var n in t)aue.call(t,n)&&f1(e,n,t[n])}),lue=sue;function uue(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var cue=Object.prototype,fue=cue.hasOwnProperty;function due(e){if(!ri(e))return uue(e);var t=d1(e),n=[];for(var r in e)r=="constructor"&&(t||!fue.call(e,r))||n.push(r);return n}function rl(e){return nl(e)?f7(e,!0):due(e)}var hue=s0(function(e,t){mf(t,rl(t),e)}),eL=hue,pue=s0(function(e,t,n,r){mf(t,rl(t),e,r)}),Dk=pue,gue=s0(function(e,t,n,r){mf(t,ra(t),e,r)}),vue=gue,mue=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yue=/^\w*$/;function QN(e,t){if(yr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Dl(e)?!0:yue.test(e)||!mue.test(e)||t!=null&&e in Object(t)}var bue=yv(Object,"create"),SO=bue;function _ue(){this.__data__=SO?SO(null):{},this.size=0}function Oue(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wue="__lodash_hash_undefined__",Sue=Object.prototype,xue=Sue.hasOwnProperty;function kue(e){var t=this.__data__;if(SO){var n=t[e];return n===wue?void 0:n}return xue.call(t,e)?t[e]:void 0}var Cue=Object.prototype,Eue=Cue.hasOwnProperty;function Tue(e){var t=this.__data__;return SO?t[e]!==void 0:Eue.call(t,e)}var Pue="__lodash_hash_undefined__";function $ue(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=SO&&t===void 0?Pue:t,this}function ov(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ov.prototype.clear=_ue;ov.prototype.delete=Oue;ov.prototype.get=kue;ov.prototype.has=Tue;ov.prototype.set=$ue;function Aue(){this.__data__=[],this.size=0}function lC(e,t){for(var n=e.length;n--;)if(vc(e[n][0],t))return n;return-1}var Mue=Array.prototype,Rue=Mue.splice;function Nue(e){var t=this.__data__,n=lC(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Rue.call(t,n,1),--this.size,!0}function Iue(e){var t=this.__data__,n=lC(t,e);return n<0?void 0:t[n][1]}function Due(e){return lC(this.__data__,e)>-1}function jue(e,t){var n=this.__data__,r=lC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Sd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sd.prototype.clear=Aue;Sd.prototype.delete=Nue;Sd.prototype.get=Iue;Sd.prototype.has=Due;Sd.prototype.set=jue;var Lue=yv(da,"Map"),xO=Lue;function Bue(){this.size=0,this.__data__={hash:new ov,map:new(xO||Sd),string:new ov}}function Vue(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function uC(e,t){var n=e.__data__;return Vue(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Fue(e){var t=uC(this,e).delete(e);return this.size-=t?1:0,t}function zue(e){return uC(this,e).get(e)}function Que(e){return uC(this,e).has(e)}function Wue(e,t){var n=uC(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function xd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xd.prototype.clear=Bue;xd.prototype.delete=Fue;xd.prototype.get=zue;xd.prototype.has=Que;xd.prototype.set=Wue;var Yue="Expected a function";function h1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Yue);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(h1.Cache||xd),n}h1.Cache=xd;var Zue=500;function Uue(e){var t=h1(e,function(r){return n.size===Zue&&n.clear(),r}),n=t.cache;return t}var Hue=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xue=/\\(\\)?/g,Gue=Uue(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Hue,function(n,r,o,i){t.push(o?i.replace(Xue,"$1"):r||n)}),t}),h7=Gue;function fo(e){return e==null?"":jl(e)}function gp(e,t){return yr(e)?e:QN(e,t)?[e]:h7(fo(e))}var que=1/0;function yf(e){if(typeof e=="string"||Dl(e))return e;var t=e+"";return t=="0"&&1/e==-que?"-0":t}function bv(e,t){t=gp(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[yf(t[n++])];return n&&n==r?e:void 0}function Ao(e,t,n){var r=e==null?void 0:bv(e,t);return r===void 0?n:r}function WN(e,t){for(var n=-1,r=t.length,o=Array(r),i=e==null;++n<r;)o[n]=i?void 0:Ao(e,t[n]);return o}function vp(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var tL=is?is.isConcatSpreadable:void 0;function Kue(e){return yr(e)||rv(e)||!!(tL&&e&&e[tL])}function La(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Kue),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?La(s,t-1,n,r,o):vp(o,s):r||(o[o.length]=s)}return o}function YN(e){var t=e==null?0:e.length;return t?La(e,1):[]}function kd(e){return BN(s7(e,void 0,YN),e+"")}var Jue=kd(WN),ece=Jue,tce=d7(Object.getPrototypeOf,Object),cC=tce,nce="[object Object]",rce=Function.prototype,oce=Object.prototype,p7=rce.toString,ice=oce.hasOwnProperty,ace=p7.call(Object);function p1(e){if(!yi(e)||$s(e)!=nce)return!1;var t=cC(e);if(t===null)return!0;var n=ice.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&p7.call(n)==ace}var sce="[object DOMException]",lce="[object Error]";function ZN(e){if(!yi(e))return!1;var t=$s(e);return t==lce||t==sce||typeof e.message=="string"&&typeof e.name=="string"&&!p1(e)}var uce=Nr(function(e,t){try{return Ll(e,void 0,t)}catch(n){return ZN(n)?n:new Error(n)}}),g7=uce,cce="Expected a function";function v7(e,t){var n;if(typeof t!="function")throw new TypeError(cce);return e=kr(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var fce=1,dce=32,UN=Nr(function(e,t,n){var r=fce;if(n.length){var o=Uh(n,a0(UN));r|=dce}return Od(e,r,t,n,o)});UN.placeholder={};var m7=UN,hce=kd(function(e,t){return Mu(t,function(n){n=yf(n),wd(e,n,m7(e[n],e))}),e}),pce=hce,gce=1,vce=2,mce=32,HN=Nr(function(e,t,n){var r=gce|vce;if(n.length){var o=Uh(n,a0(HN));r|=mce}return Od(t,r,e,n,o)});HN.placeholder={};var yce=HN;function Eu(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function mp(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Eu(e,t,n)}var bce="\\ud800-\\udfff",_ce="\\u0300-\\u036f",Oce="\\ufe20-\\ufe2f",wce="\\u20d0-\\u20ff",Sce=_ce+Oce+wce,xce="\\ufe0e\\ufe0f",kce="\\u200d",Cce=RegExp("["+kce+bce+Sce+xce+"]");function u0(e){return Cce.test(e)}function Ece(e){return e.split("")}var y7="\\ud800-\\udfff",Tce="\\u0300-\\u036f",Pce="\\ufe20-\\ufe2f",$ce="\\u20d0-\\u20ff",Ace=Tce+Pce+$ce,Mce="\\ufe0e\\ufe0f",Rce="["+y7+"]",UA="["+Ace+"]",HA="\\ud83c[\\udffb-\\udfff]",Nce="(?:"+UA+"|"+HA+")",b7="[^"+y7+"]",_7="(?:\\ud83c[\\udde6-\\uddff]){2}",O7="[\\ud800-\\udbff][\\udc00-\\udfff]",Ice="\\u200d",w7=Nce+"?",S7="["+Mce+"]?",Dce="(?:"+Ice+"(?:"+[b7,_7,O7].join("|")+")"+S7+w7+")*",jce=S7+w7+Dce,Lce="(?:"+[b7+UA+"?",UA,_7,O7,Rce].join("|")+")",Bce=RegExp(HA+"(?="+HA+")|"+Lce+jce,"g");function Vce(e){return e.match(Bce)||[]}function fc(e){return u0(e)?Vce(e):Ece(e)}function x7(e){return function(t){t=fo(t);var n=u0(t)?fc(t):void 0,r=n?n[0]:t.charAt(0),o=n?mp(n,1).join(""):t.slice(1);return r[e]()+o}}var Fce=x7("toUpperCase"),XN=Fce;function k7(e){return XN(fo(e).toLowerCase())}function GN(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function qN(e){return function(t){return e==null?void 0:e[t]}}var zce={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Qce=qN(zce),Wce=Qce,Yce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zce="\\u0300-\\u036f",Uce="\\ufe20-\\ufe2f",Hce="\\u20d0-\\u20ff",Xce=Zce+Uce+Hce,Gce="["+Xce+"]",qce=RegExp(Gce,"g");function C7(e){return e=fo(e),e&&e.replace(Yce,Wce).replace(qce,"")}var Kce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Jce(e){return e.match(Kce)||[]}var efe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function tfe(e){return efe.test(e)}var E7="\\ud800-\\udfff",nfe="\\u0300-\\u036f",rfe="\\ufe20-\\ufe2f",ofe="\\u20d0-\\u20ff",ife=nfe+rfe+ofe,T7="\\u2700-\\u27bf",P7="a-z\\xdf-\\xf6\\xf8-\\xff",afe="\\xac\\xb1\\xd7\\xf7",sfe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lfe="\\u2000-\\u206f",ufe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$7="A-Z\\xc0-\\xd6\\xd8-\\xde",cfe="\\ufe0e\\ufe0f",A7=afe+sfe+lfe+ufe,M7="['\u2019]",nL="["+A7+"]",ffe="["+ife+"]",R7="\\d+",dfe="["+T7+"]",N7="["+P7+"]",I7="[^"+E7+A7+R7+T7+P7+$7+"]",hfe="\\ud83c[\\udffb-\\udfff]",pfe="(?:"+ffe+"|"+hfe+")",gfe="[^"+E7+"]",D7="(?:\\ud83c[\\udde6-\\uddff]){2}",j7="[\\ud800-\\udbff][\\udc00-\\udfff]",Hm="["+$7+"]",vfe="\\u200d",rL="(?:"+N7+"|"+I7+")",mfe="(?:"+Hm+"|"+I7+")",oL="(?:"+M7+"(?:d|ll|m|re|s|t|ve))?",iL="(?:"+M7+"(?:D|LL|M|RE|S|T|VE))?",L7=pfe+"?",B7="["+cfe+"]?",yfe="(?:"+vfe+"(?:"+[gfe,D7,j7].join("|")+")"+B7+L7+")*",bfe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_fe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ofe=B7+L7+yfe,wfe="(?:"+[dfe,D7,j7].join("|")+")"+Ofe,Sfe=RegExp([Hm+"?"+N7+"+"+oL+"(?="+[nL,Hm,"$"].join("|")+")",mfe+"+"+iL+"(?="+[nL,Hm+rL,"$"].join("|")+")",Hm+"?"+rL+"+"+oL,Hm+"+"+iL,_fe,bfe,R7,wfe].join("|"),"g");function xfe(e){return e.match(Sfe)||[]}function V7(e,t,n){return e=fo(e),t=n?void 0:t,t===void 0?tfe(e)?xfe(e):Jce(e):e.match(t)||[]}var kfe="['\u2019]",Cfe=RegExp(kfe,"g");function c0(e){return function(t){return GN(V7(C7(t).replace(Cfe,"")),e,"")}}var Efe=c0(function(e,t,n){return t=t.toLowerCase(),e+(n?k7(t):t)}),Tfe=Efe;function Ma(){if(!arguments.length)return[];var e=arguments[0];return yr(e)?e:[e]}var Pfe=da.isFinite,$fe=Math.min;function KN(e){var t=Math[e];return function(n,r){if(n=_u(n),r=r==null?0:$fe(kr(r),292),r&&Pfe(n)){var o=(fo(n)+"e").split("e"),i=t(o[0]+"e"+(+o[1]+r));return o=(fo(i)+"e").split("e"),+(o[0]+"e"+(+o[1]-r))}return t(n)}}var Afe=KN("ceil"),Mfe=Afe;function F7(e){var t=Pe(e);return t.__chain__=!0,t}var Rfe=Math.ceil,Nfe=Math.max;function Ife(e,t,n){(n?Es(e,t,n):t===void 0)?t=1:t=Nfe(kr(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(Rfe(r/t));o<r;)a[i++]=Eu(e,o,o+=t);return a}function _v(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function Dfe(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=_u(n),n=n===n?n:0),t!==void 0&&(t=_u(t),t=t===t?t:0),_v(_u(e),t,n)}function jfe(){this.__data__=new Sd,this.size=0}function Lfe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Bfe(e){return this.__data__.get(e)}function Vfe(e){return this.__data__.has(e)}var Ffe=200;function zfe(e,t){var n=this.__data__;if(n instanceof Sd){var r=n.__data__;if(!xO||r.length<Ffe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xd(r)}return n.set(e,t),this.size=n.size,this}function uc(e){var t=this.__data__=new Sd(e);this.size=t.size}uc.prototype.clear=jfe;uc.prototype.delete=Lfe;uc.prototype.get=Bfe;uc.prototype.has=Vfe;uc.prototype.set=zfe;function z7(e,t){return e&&mf(t,ra(t),e)}function Qfe(e,t){return e&&mf(t,rl(t),e)}var Q7=typeof Al=="object"&&Al&&!Al.nodeType&&Al,aL=Q7&&typeof Ml=="object"&&Ml&&!Ml.nodeType&&Ml,Wfe=aL&&aL.exports===Q7,sL=Wfe?da.Buffer:void 0,lL=sL?sL.allocUnsafe:void 0;function W7(e,t){if(t)return e.slice();var n=e.length,r=lL?lL(n):new e.constructor(n);return e.copy(r),r}function yp(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function JN(){return[]}var Yfe=Object.prototype,Zfe=Yfe.propertyIsEnumerable,uL=Object.getOwnPropertySymbols,Ufe=uL?function(e){return e==null?[]:(e=Object(e),yp(uL(e),function(t){return Zfe.call(e,t)}))}:JN,eI=Ufe;function Hfe(e,t){return mf(e,eI(e),t)}var Xfe=Object.getOwnPropertySymbols,Gfe=Xfe?function(e){for(var t=[];e;)vp(t,eI(e)),e=cC(e);return t}:JN,Y7=Gfe;function qfe(e,t){return mf(e,Y7(e),t)}function Z7(e,t,n){var r=t(e);return yr(e)?r:vp(r,n(e))}function XA(e){return Z7(e,ra,eI)}function tI(e){return Z7(e,rl,Y7)}var Kfe=yv(da,"DataView"),GA=Kfe,Jfe=yv(da,"Promise"),qA=Jfe,ede=yv(da,"Set"),gy=ede,cL="[object Map]",tde="[object Object]",fL="[object Promise]",dL="[object Set]",hL="[object WeakMap]",pL="[object DataView]",nde=mv(GA),rde=mv(xO),ode=mv(qA),ide=mv(gy),ade=mv(OO),Eg=$s;(GA&&Eg(new GA(new ArrayBuffer(1)))!=pL||xO&&Eg(new xO)!=cL||qA&&Eg(qA.resolve())!=fL||gy&&Eg(new gy)!=dL||OO&&Eg(new OO)!=hL)&&(Eg=function(e){var t=$s(e),n=t==tde?e.constructor:void 0,r=n?mv(n):"";if(r)switch(r){case nde:return pL;case rde:return cL;case ode:return fL;case ide:return dL;case ade:return hL}return t});var uf=Eg,sde=Object.prototype,lde=sde.hasOwnProperty;function ude(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&lde.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var cde=da.Uint8Array,jk=cde;function nI(e){var t=new e.constructor(e.byteLength);return new jk(t).set(new jk(e)),t}function fde(e,t){var n=t?nI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var dde=/\w*$/;function hde(e){var t=new e.constructor(e.source,dde.exec(e));return t.lastIndex=e.lastIndex,t}var gL=is?is.prototype:void 0,vL=gL?gL.valueOf:void 0;function pde(e){return vL?Object(vL.call(e)):{}}function U7(e,t){var n=t?nI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var gde="[object Boolean]",vde="[object Date]",mde="[object Map]",yde="[object Number]",bde="[object RegExp]",_de="[object Set]",Ode="[object String]",wde="[object Symbol]",Sde="[object ArrayBuffer]",xde="[object DataView]",kde="[object Float32Array]",Cde="[object Float64Array]",Ede="[object Int8Array]",Tde="[object Int16Array]",Pde="[object Int32Array]",$de="[object Uint8Array]",Ade="[object Uint8ClampedArray]",Mde="[object Uint16Array]",Rde="[object Uint32Array]";function Nde(e,t,n){var r=e.constructor;switch(t){case Sde:return nI(e);case gde:case vde:return new r(+e);case xde:return fde(e,n);case kde:case Cde:case Ede:case Tde:case Pde:case $de:case Ade:case Mde:case Rde:return U7(e,n);case mde:return new r;case yde:case Ode:return new r(e);case bde:return hde(e);case _de:return new r;case wde:return pde(e)}}function H7(e){return typeof e.constructor=="function"&&!d1(e)?o0(cC(e)):{}}var Ide="[object Map]";function Dde(e){return yi(e)&&uf(e)==Ide}var mL=Cu&&Cu.isMap,jde=mL?Bl(mL):Dde,X7=jde,Lde="[object Set]";function Bde(e){return yi(e)&&uf(e)==Lde}var yL=Cu&&Cu.isSet,Vde=yL?Bl(yL):Bde,G7=Vde,Fde=1,zde=2,Qde=4,q7="[object Arguments]",Wde="[object Array]",Yde="[object Boolean]",Zde="[object Date]",Ude="[object Error]",K7="[object Function]",Hde="[object GeneratorFunction]",Xde="[object Map]",Gde="[object Number]",J7="[object Object]",qde="[object RegExp]",Kde="[object Set]",Jde="[object String]",ehe="[object Symbol]",the="[object WeakMap]",nhe="[object ArrayBuffer]",rhe="[object DataView]",ohe="[object Float32Array]",ihe="[object Float64Array]",ahe="[object Int8Array]",she="[object Int16Array]",lhe="[object Int32Array]",uhe="[object Uint8Array]",che="[object Uint8ClampedArray]",fhe="[object Uint16Array]",dhe="[object Uint32Array]",Do={};Do[q7]=Do[Wde]=Do[nhe]=Do[rhe]=Do[Yde]=Do[Zde]=Do[ohe]=Do[ihe]=Do[ahe]=Do[she]=Do[lhe]=Do[Xde]=Do[Gde]=Do[J7]=Do[qde]=Do[Kde]=Do[Jde]=Do[ehe]=Do[uhe]=Do[che]=Do[fhe]=Do[dhe]=!0;Do[Ude]=Do[K7]=Do[the]=!1;function Ou(e,t,n,r,o,i){var a,s=t&Fde,l=t&zde,u=t&Qde;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!ri(e))return e;var d=yr(e);if(d){if(a=ude(e),!s)return Xs(e,a)}else{var p=uf(e),v=p==K7||p==Hde;if(Hh(e))return W7(e,s);if(p==J7||p==q7||v&&!o){if(a=l||v?{}:H7(e),!s)return l?qfe(e,Qfe(a,e)):Hfe(e,z7(a,e))}else{if(!Do[p])return o?e:{};a=Nde(e,p,s)}}i||(i=new uc);var y=i.get(e);if(y)return y;i.set(e,a),G7(e)?e.forEach(function(k){a.add(Ou(k,t,n,k,e,i))}):X7(e)&&e.forEach(function(k,C){a.set(C,Ou(k,t,n,C,e,i))});var w=u?l?tI:XA:l?rl:ra,b=d?void 0:w(e);return Mu(b||e,function(k,C){b&&(C=k,k=e[C]),f1(a,C,Ou(k,t,n,C,e,i))}),a}var hhe=4;function KA(e){return Ou(e,hhe)}var phe=1,ghe=4;function kO(e){return Ou(e,phe|ghe)}var vhe=1,mhe=4;function yhe(e,t){return t=typeof t=="function"?t:void 0,Ou(e,vhe|mhe,t)}var bhe=4;function _he(e,t){return t=typeof t=="function"?t:void 0,Ou(e,bhe,t)}function Ohe(){return new ku(this.value(),this.__chain__)}function whe(e){for(var t=-1,n=e==null?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function She(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return vp(yr(n)?Xs(n):[n],La(t,1))}var xhe="__lodash_hash_undefined__";function khe(e){return this.__data__.set(e,xhe),this}function Che(e){return this.__data__.has(e)}function iv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new xd;++t<n;)this.add(e[t])}iv.prototype.add=iv.prototype.push=khe;iv.prototype.has=Che;function rI(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 CO(e,t){return e.has(t)}var Ehe=1,The=2;function eQ(e,t,n,r,o,i){var a=n&Ehe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var p=-1,v=!0,y=n&The?new iv:void 0;for(i.set(e,t),i.set(t,e);++p<s;){var w=e[p],b=t[p];if(r)var k=a?r(b,w,p,t,e,i):r(w,b,p,e,t,i);if(k!==void 0){if(k)continue;v=!1;break}if(y){if(!rI(t,function(C,T){if(!CO(y,T)&&(w===C||o(w,C,n,r,i)))return y.push(T)})){v=!1;break}}else if(!(w===b||o(w,b,n,r,i))){v=!1;break}}return i.delete(e),i.delete(t),v}function oI(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function fC(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Phe=1,$he=2,Ahe="[object Boolean]",Mhe="[object Date]",Rhe="[object Error]",Nhe="[object Map]",Ihe="[object Number]",Dhe="[object RegExp]",jhe="[object Set]",Lhe="[object String]",Bhe="[object Symbol]",Vhe="[object ArrayBuffer]",Fhe="[object DataView]",bL=is?is.prototype:void 0,E$=bL?bL.valueOf:void 0;function zhe(e,t,n,r,o,i,a){switch(n){case Fhe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Vhe:return!(e.byteLength!=t.byteLength||!i(new jk(e),new jk(t)));case Ahe:case Mhe:case Ihe:return vc(+e,+t);case Rhe:return e.name==t.name&&e.message==t.message;case Dhe:case Lhe:return e==t+"";case Nhe:var s=oI;case jhe:var l=r&Phe;if(s||(s=fC),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=$he,a.set(e,t);var d=eQ(s(e),s(t),r,o,i,a);return a.delete(e),d;case Bhe:if(E$)return E$.call(e)==E$.call(t)}return!1}var Qhe=1,Whe=Object.prototype,Yhe=Whe.hasOwnProperty;function Zhe(e,t,n,r,o,i){var a=n&Qhe,s=XA(e),l=s.length,u=XA(t),d=u.length;if(l!=d&&!a)return!1;for(var p=l;p--;){var v=s[p];if(!(a?v in t:Yhe.call(t,v)))return!1}var y=i.get(e),w=i.get(t);if(y&&w)return y==t&&w==e;var b=!0;i.set(e,t),i.set(t,e);for(var k=a;++p<l;){v=s[p];var C=e[v],T=t[v];if(r)var $=a?r(T,C,v,t,e,i):r(C,T,v,e,t,i);if(!($===void 0?C===T||o(C,T,n,r,i):$)){b=!1;break}k||(k=v=="constructor")}if(b&&!k){var P=e.constructor,A=t.constructor;P!=A&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof A=="function"&&A instanceof A)&&(b=!1)}return i.delete(e),i.delete(t),b}var Uhe=1,_L="[object Arguments]",OL="[object Array]",rx="[object Object]",Hhe=Object.prototype,wL=Hhe.hasOwnProperty;function Xhe(e,t,n,r,o,i){var a=yr(e),s=yr(t),l=a?OL:uf(e),u=s?OL:uf(t);l=l==_L?rx:l,u=u==_L?rx:u;var d=l==rx,p=u==rx,v=l==u;if(v&&Hh(e)){if(!Hh(t))return!1;a=!0,d=!1}if(v&&!d)return i||(i=new uc),a||l0(e)?eQ(e,t,n,r,o,i):zhe(e,t,l,n,r,o,i);if(!(n&Uhe)){var y=d&&wL.call(e,"__wrapped__"),w=p&&wL.call(t,"__wrapped__");if(y||w){var b=y?e.value():e,k=w?t.value():t;return i||(i=new uc),o(b,k,n,r,i)}}return v?(i||(i=new uc),Zhe(e,t,n,r,o,i)):!1}function g1(e,t,n,r,o){return e===t?!0:e==null||t==null||!yi(e)&&!yi(t)?e!==e&&t!==t:Xhe(e,t,n,r,g1,o)}var Ghe=1,qhe=2;function iI(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var l=s[0],u=e[l],d=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var p=new uc;if(r)var v=r(u,d,l,e,t,p);if(!(v===void 0?g1(d,u,Ghe|qhe,r,p):v))return!1}}return!0}function tQ(e){return e===e&&!ri(e)}function aI(e){for(var t=ra(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,tQ(o)]}return t}function nQ(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function rQ(e){var t=aI(e);return t.length==1&&t[0][2]?nQ(t[0][0],t[0][1]):function(n){return n===e||iI(n,e,t)}}function Khe(e,t){return e!=null&&t in Object(e)}function oQ(e,t,n){t=gp(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=yf(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&sC(o)&&_d(a,o)&&(yr(e)||rv(e)))}function sI(e,t){return e!=null&&oQ(e,t,Khe)}var Jhe=1,epe=2;function iQ(e,t){return QN(e)&&tQ(t)?nQ(yf(e),t):function(n){var r=Ao(n,e);return r===void 0&&r===t?sI(n,e):g1(t,r,Jhe|epe)}}function lI(e){return function(t){return t==null?void 0:t[e]}}function tpe(e){return function(t){return bv(t,e)}}function aQ(e){return QN(e)?lI(yf(e)):tpe(e)}function gr(e){return typeof e=="function"?e:e==null?As:typeof e=="object"?yr(e)?iQ(e[0],e[1]):rQ(e):aQ(e)}var npe="Expected a function";function rpe(e){var t=e==null?0:e.length,n=gr;return e=t?ni(e,function(r){if(typeof r[1]!="function")throw new TypeError(npe);return[n(r[0]),r[1]]}):[],Nr(function(r){for(var o=-1;++o<t;){var i=e[o];if(Ll(i[0],this,r))return Ll(i[1],this,r)}})}function sQ(e,t,n){var r=n.length;if(e==null)return!r;for(e=Object(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===void 0&&!(o in e)||!i(a))return!1}return!0}function ope(e){var t=ra(e);return function(n){return sQ(n,e,t)}}var ipe=1;function ape(e){return ope(Ou(e,ipe))}function spe(e,t){return t==null||sQ(e,t,ra(t))}function lpe(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function lQ(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(n(i[l],l,i)===!1)break}return t}}var upe=lQ(),uI=upe;function bf(e,t){return e&&uI(e,t,ra)}function uQ(e,t){return function(n,r){if(n==null)return n;if(!nl(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var cpe=uQ(bf),bp=cpe;function fpe(e,t,n,r){return bp(e,function(o,i,a){t(r,o,n(o),a)}),r}function dC(e,t){return function(n,r){var o=yr(n)?lpe:fpe,i=t?t():{};return o(n,e,gr(r),i)}}var dpe=Object.prototype,hpe=dpe.hasOwnProperty,ppe=dC(function(e,t,n){hpe.call(e,n)?++e[n]:wd(e,n,1)}),gpe=ppe;function vpe(e,t){var n=o0(e);return t==null?n:z7(n,t)}var mpe=8;function cI(e,t,n){t=n?void 0:t;var r=Od(e,mpe,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=cI.placeholder,r}cI.placeholder={};var ype=16;function fI(e,t,n){t=n?void 0:t;var r=Od(e,ype,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=fI.placeholder,r}fI.placeholder={};var bpe=function(){return da.Date.now()},Kx=bpe,_pe="Expected a function",Ope=Math.max,wpe=Math.min;function Ts(e,t,n){var r,o,i,a,s,l,u=0,d=!1,p=!1,v=!0;if(typeof e!="function")throw new TypeError(_pe);t=_u(t)||0,ri(n)&&(d=!!n.leading,p="maxWait"in n,i=p?Ope(_u(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v);function y(R){var B=r,N=o;return r=o=void 0,u=R,a=e.apply(N,B),a}function w(R){return u=R,s=setTimeout(C,t),d?y(R):a}function b(R){var B=R-l,N=R-u,I=t-B;return p?wpe(I,i-N):I}function k(R){var B=R-l,N=R-u;return l===void 0||B>=t||B<0||p&&N>=i}function C(){var R=Kx();if(k(R))return T(R);s=setTimeout(C,b(R))}function T(R){return s=void 0,v&&r?y(R):(r=o=void 0,a)}function $(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0}function P(){return s===void 0?a:T(Kx())}function A(){var R=Kx(),B=k(R);if(r=arguments,o=this,l=R,B){if(s===void 0)return w(l);if(p)return clearTimeout(s),s=setTimeout(C,t),y(l)}return s===void 0&&(s=setTimeout(C,t)),a}return A.cancel=$,A.flush=P,A}function Spe(e,t){return e==null||e!==e?t:e}var cQ=Object.prototype,xpe=cQ.hasOwnProperty,kpe=Nr(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Es(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=rl(i),s=-1,l=a.length;++s<l;){var u=a[s],d=e[u];(d===void 0||vc(d,cQ[u])&&!xpe.call(e,u))&&(e[u]=i[u])}return e}),Cpe=kpe;function JA(e,t,n){(n!==void 0&&!vc(e[t],n)||n===void 0&&!(t in e))&&wd(e,t,n)}function Ti(e){return yi(e)&&nl(e)}function eM(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function fQ(e){return mf(e,rl(e))}function Epe(e,t,n,r,o,i,a){var s=eM(e,n),l=eM(t,n),u=a.get(l);if(u){JA(e,n,u);return}var d=i?i(s,l,n+"",e,t,a):void 0,p=d===void 0;if(p){var v=yr(l),y=!v&&Hh(l),w=!v&&!y&&l0(l);d=l,v||y||w?yr(s)?d=s:Ti(s)?d=Xs(s):y?(p=!1,d=W7(l,!0)):w?(p=!1,d=U7(l,!0)):d=[]:p1(l)||rv(l)?(d=s,rv(s)?d=fQ(s):(!ri(s)||bd(s))&&(d=H7(l))):p=!1}p&&(a.set(l,d),o(d,l,r,i,a),a.delete(l)),JA(e,n,d)}function hC(e,t,n,r,o){e!==t&&uI(t,function(i,a){if(o||(o=new uc),ri(i))Epe(e,t,a,n,hC,r,o);else{var s=r?r(eM(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),JA(e,a,s)}},rl)}function dQ(e,t,n,r,o,i){return ri(e)&&ri(t)&&(i.set(t,e),hC(e,t,void 0,dQ,i),i.delete(t)),e}var Tpe=s0(function(e,t,n,r){hC(e,t,n,r)}),hQ=Tpe,Ppe=Nr(function(e){return e.push(void 0,dQ),Ll(hQ,void 0,e)}),$pe=Ppe,Ape="Expected a function";function pQ(e,t,n){if(typeof e!="function")throw new TypeError(Ape);return setTimeout(function(){e.apply(void 0,n)},t)}var Mpe=Nr(function(e,t){return pQ(e,1,t)}),Rpe=Mpe,Npe=Nr(function(e,t,n){return pQ(e,_u(t)||0,n)}),Ipe=Npe;function dI(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var Dpe=200;function v1(e,t,n,r){var o=-1,i=iC,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=ni(t,Bl(n))),r?(i=dI,a=!1):t.length>=Dpe&&(i=CO,a=!1,t=new iv(t));e:for(;++o<s;){var d=e[o],p=n==null?d:n(d);if(d=r||d!==0?d:0,a&&p===p){for(var v=u;v--;)if(t[v]===p)continue e;l.push(d)}else i(t,p,r)||l.push(d)}return l}var jpe=Nr(function(e,t){return Ti(e)?v1(e,La(t,1,Ti,!0)):[]}),Lpe=jpe;function Vl(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Bpe=Nr(function(e,t){var n=Vl(t);return Ti(n)&&(n=void 0),Ti(e)?v1(e,La(t,1,Ti,!0),gr(n)):[]}),Vpe=Bpe,Fpe=Nr(function(e,t){var n=Vl(t);return Ti(n)&&(n=void 0),Ti(e)?v1(e,La(t,1,Ti,!0),void 0,n):[]}),zpe=Fpe,Qpe=nC(function(e,t){return e/t},1),Wpe=Qpe;function Ype(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:kr(t),Eu(e,t<0?0:t,r)):[]}function Zpe(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:kr(t),t=r-t,Eu(e,0,t<0?0:t)):[]}function pC(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Eu(e,r?0:i,r?i+1:o):Eu(e,r?i+1:0,r?o:i)}function Upe(e,t){return e&&e.length?pC(e,gr(t),!0,!0):[]}function Hpe(e,t){return e&&e.length?pC(e,gr(t),!0):[]}function _f(e){return typeof e=="function"?e:As}function SL(e,t){var n=yr(e)?Mu:bp;return n(e,_f(t))}function Xpe(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}var Gpe=lQ(!0),gQ=Gpe;function hI(e,t){return e&&gQ(e,t,ra)}var qpe=uQ(hI,!0),vQ=qpe;function xL(e,t){var n=yr(e)?Xpe:vQ;return n(e,_f(t))}function Kpe(e,t,n){e=fo(e),t=jl(t);var r=e.length;n=n===void 0?r:_v(kr(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function Jpe(e,t){return ni(t,function(n){return[n,e[n]]})}function ege(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var tge="[object Map]",nge="[object Set]";function mQ(e){return function(t){var n=uf(t);return n==tge?oI(t):n==nge?ege(t):Jpe(t,e(t))}}var rge=mQ(ra),kL=rge,oge=mQ(rl),CL=oge,ige={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},age=qN(ige),sge=age,yQ=/[&<>"']/g,lge=RegExp(yQ.source);function bQ(e){return e=fo(e),e&&lge.test(e)?e.replace(yQ,sge):e}var _Q=/[\\^$.*+?()[\]{}|]/g,uge=RegExp(_Q.source);function cge(e){return e=fo(e),e&&uge.test(e)?e.replace(_Q,"\\$&"):e}function OQ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function fge(e,t){var n=!0;return bp(e,function(r,o,i){return n=!!t(r,o,i),n}),n}function dge(e,t,n){var r=yr(e)?OQ:fge;return n&&Es(e,t,n)&&(t=void 0),r(e,gr(t))}var hge=4294967295;function wQ(e){return e?_v(kr(e),0,hge):0}function pge(e,t,n,r){var o=e.length;for(n=kr(n),n<0&&(n=-n>o?0:o+n),r=r===void 0||r>o?o:kr(r),r<0&&(r+=o),r=n>r?0:wQ(r);n<r;)e[n++]=t;return e}function gge(e,t,n,r){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&Es(e,t,n)&&(n=0,r=o),pge(e,t,n,r)):[]}function SQ(e,t){var n=[];return bp(e,function(r,o,i){t(r,o,i)&&n.push(r)}),n}function vge(e,t){var n=yr(e)?yp:SQ;return n(e,gr(t))}function xQ(e){return function(t,n,r){var o=Object(t);if(!nl(t)){var i=gr(n);t=ra(t),n=function(s){return i(o[s],s,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var mge=Math.max;function kQ(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:kr(n);return o<0&&(o=mge(r+o,0)),oC(e,gr(t),o)}var yge=xQ(kQ),bge=yge;function CQ(e,t,n){var r;return n(e,function(o,i,a){if(t(o,i,a))return r=i,!1}),r}function _ge(e,t){return CQ(e,gr(t),bf)}var Oge=Math.max,wge=Math.min;function gC(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r-1;return n!==void 0&&(o=kr(n),o=n<0?Oge(r+o,0):wge(o,r-1)),oC(e,gr(t),o,!0)}var Sge=xQ(gC),xge=Sge;function kge(e,t){return CQ(e,gr(t),hI)}function EL(e){return e&&e.length?e[0]:void 0}function EQ(e,t){var n=-1,r=nl(e)?Array(e.length):[];return bp(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function vC(e,t){var n=yr(e)?ni:EQ;return n(e,gr(t))}function TQ(e,t){return La(vC(e,t),1)}var Cge=1/0;function Ege(e,t){return La(vC(e,t),Cge)}function Tge(e,t,n){return n=n===void 0?1:kr(n),La(vC(e,t),n)}var Pge=1/0;function PQ(e){var t=e==null?0:e.length;return t?La(e,Pge):[]}function $ge(e,t){var n=e==null?0:e.length;return n?(t=t===void 0?1:kr(t),La(e,t)):[]}var Age=512;function Mge(e){return Od(e,Age)}var Rge=KN("floor"),Nge=Rge,Ige="Expected a function",Dge=8,jge=32,Lge=128,Bge=256;function $Q(e){return kd(function(t){var n=t.length,r=n,o=ku.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if(typeof i!="function")throw new TypeError(Ige);if(o&&!a&&qx(i)=="wrapper")var a=new ku([],!0)}for(r=a?r:n;++r<n;){i=t[r];var s=qx(i),l=s=="wrapper"?jN(i):void 0;l&&ZA(l[0])&&l[1]==(Lge|Dge|jge|Bge)&&!l[4].length&&l[9]==1?a=a[qx(l[0])].apply(a,l[3]):a=i.length==1&&ZA(i)?a[s]():a.thru(i)}return function(){var u=arguments,d=u[0];if(a&&u.length==1&&yr(d))return a.plant(d).value();for(var p=0,v=n?t[p].apply(this,u):d;++p<n;)v=t[p].call(this,v);return v}})}var Vge=$Q(),Fge=Vge,zge=$Q(!0),Qge=zge;function Wge(e,t){return e==null?e:uI(e,_f(t),rl)}function Yge(e,t){return e==null?e:gQ(e,_f(t),rl)}function Zge(e,t){return e&&bf(e,_f(t))}function Uge(e,t){return e&&hI(e,_f(t))}function Ry(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function mC(e,t){return yp(t,function(n){return bd(e[n])})}function Hge(e){return e==null?[]:mC(e,ra(e))}function Xge(e){return e==null?[]:mC(e,rl(e))}var Gge=Object.prototype,qge=Gge.hasOwnProperty,Kge=dC(function(e,t,n){qge.call(e,n)?e[n].push(t):wd(e,n,[t])}),Jge=Kge;function pI(e,t){return e>t}function yC(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=_u(t),n=_u(n)),e(t,n)}}var eve=yC(pI),tve=eve,nve=yC(function(e,t){return e>=t}),rve=nve,ove=Object.prototype,ive=ove.hasOwnProperty;function ave(e,t){return e!=null&&ive.call(e,t)}function sve(e,t){return e!=null&&oQ(e,t,ave)}var lve=Math.max,uve=Math.min;function cve(e,t,n){return e>=uve(t,n)&&e<lve(t,n)}function fve(e,t,n){return t=ld(t),n===void 0?(n=t,t=0):n=ld(n),e=_u(e),cve(e,t,n)}var dve="[object String]";function bC(e){return typeof e=="string"||!yr(e)&&yi(e)&&$s(e)==dve}function gI(e,t){return ni(t,function(n){return e[n]})}function f0(e){return e==null?[]:gI(e,ra(e))}var hve=Math.max;function pve(e,t,n,r){e=nl(e)?e:f0(e),n=n&&!r?kr(n):0;var o=e.length;return n<0&&(n=hve(o+n,0)),bC(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&i0(e,t,n)>-1}var gve=Math.max;function vve(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:kr(n);return o<0&&(o=gve(r+o,0)),i0(e,t,o)}function mve(e){var t=e==null?0:e.length;return t?Eu(e,0,-1):[]}var yve=Math.min;function vI(e,t,n){for(var r=n?dI:iC,o=e[0].length,i=e.length,a=i,s=Array(i),l=1/0,u=[];a--;){var d=e[a];a&&t&&(d=ni(d,Bl(t))),l=yve(d.length,l),s[a]=!n&&(t||o>=120&&d.length>=120)?new iv(a&&d):void 0}d=e[0];var p=-1,v=s[0];e:for(;++p<o&&u.length<l;){var y=d[p],w=t?t(y):y;if(y=n||y!==0?y:0,!(v?CO(v,w):r(u,w,n))){for(a=i;--a;){var b=s[a];if(!(b?CO(b,w):r(e[a],w,n)))continue e}v&&v.push(w),u.push(y)}}return u}function mI(e){return Ti(e)?e:[]}var bve=Nr(function(e){var t=ni(e,mI);return t.length&&t[0]===e[0]?vI(t):[]}),_ve=bve,Ove=Nr(function(e){var t=Vl(e),n=ni(e,mI);return t===Vl(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?vI(n,gr(t)):[]}),wve=Ove,Sve=Nr(function(e){var t=Vl(e),n=ni(e,mI);return t=typeof t=="function"?t:void 0,t&&n.pop(),n.length&&n[0]===e[0]?vI(n,void 0,t):[]}),xve=Sve;function kve(e,t,n,r){return bf(e,function(o,i,a){t(r,n(o),i,a)}),r}function AQ(e,t){return function(n,r){return kve(n,e,t(r),{})}}var Cve=Object.prototype,Eve=Cve.toString,Tve=AQ(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Eve.call(t)),e[t]=n},LN(As)),Pve=Tve,MQ=Object.prototype,$ve=MQ.hasOwnProperty,Ave=MQ.toString,Mve=AQ(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ave.call(t)),$ve.call(e,t)?e[t].push(n):e[t]=[n]},gr),Rve=Mve;function RQ(e,t){return t.length<2?e:bv(e,Eu(t,0,-1))}function m1(e,t,n){t=gp(t,e),e=RQ(e,t);var r=e==null?e:e[yf(Vl(t))];return r==null?void 0:Ll(r,e,n)}var Nve=Nr(m1),Ive=Nve,Dve=Nr(function(e,t,n){var r=-1,o=typeof t=="function",i=nl(e)?Array(e.length):[];return bp(e,function(a){i[++r]=o?Ll(t,a,n):m1(a,t,n)}),i}),jve=Dve,Lve="[object ArrayBuffer]";function Bve(e){return yi(e)&&$s(e)==Lve}var TL=Cu&&Cu.isArrayBuffer,Vve=TL?Bl(TL):Bve,Fve=Vve,zve="[object Boolean]";function Qve(e){return e===!0||e===!1||yi(e)&&$s(e)==zve}var Wve="[object Date]";function Yve(e){return yi(e)&&$s(e)==Wve}var PL=Cu&&Cu.isDate,Zve=PL?Bl(PL):Yve,Uve=Zve;function Hve(e){return yi(e)&&e.nodeType===1&&!p1(e)}var Xve="[object Map]",Gve="[object Set]",qve=Object.prototype,Kve=qve.hasOwnProperty;function Jve(e){if(e==null)return!0;if(nl(e)&&(yr(e)||typeof e=="string"||typeof e.splice=="function"||Hh(e)||l0(e)||rv(e)))return!e.length;var t=uf(e);if(t==Xve||t==Gve)return!e.size;if(d1(e))return!zN(e).length;for(var n in e)if(Kve.call(e,n))return!1;return!0}function rs(e,t){return g1(e,t)}function eme(e,t,n){n=typeof n=="function"?n:void 0;var r=n?n(e,t):void 0;return r===void 0?g1(e,t,void 0,n):!!r}var tme=da.isFinite;function nme(e){return typeof e=="number"&&tme(e)}function NQ(e){return typeof e=="number"&&e==kr(e)}function rme(e,t){return e===t||iI(e,t,aI(t))}function ome(e,t,n){return n=typeof n=="function"?n:void 0,iI(e,t,aI(t),n)}var ime="[object Number]";function IQ(e){return typeof e=="number"||yi(e)&&$s(e)==ime}function ame(e){return IQ(e)&&e!=+e}var sme=Gx?bd:FN,lme=sme,ume="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function cme(e){if(lme(e))throw new Error(ume);return Gz(e)}function Vi(e){return e==null}function fme(e){return e===null}var dme="[object RegExp]";function hme(e){return yi(e)&&$s(e)==dme}var $L=Cu&&Cu.isRegExp,pme=$L?Bl($L):hme,yI=pme,AL=9007199254740991;function gme(e){return NQ(e)&&e>=-AL&&e<=AL}function bI(e){return e===void 0}var vme="[object WeakMap]";function mme(e){return yi(e)&&uf(e)==vme}var yme="[object WeakSet]";function bme(e){return yi(e)&&$s(e)==yme}var _me=1;function Ome(e){return gr(typeof e=="function"?e:Ou(e,_me))}var wme=Array.prototype,Sme=wme.join;function xme(e,t){return e==null?"":Sme.call(e,t)}var kme=c0(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Cme=kme,Eme=dC(function(e,t,n){wd(e,n,t)}),Tme=Eme;function Pme(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}var $me=Math.max,Ame=Math.min;function Mme(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r;return n!==void 0&&(o=kr(n),o=o<0?$me(r+o,0):Ame(o,r-1)),t===t?Pme(e,t,o):oC(e,r7,o,!0)}var Rme=c0(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Nme=Rme,Ime=x7("toLowerCase"),Dme=Ime;function _I(e,t){return e<t}var jme=yC(_I),Lme=jme,Bme=yC(function(e,t){return e<=t}),Vme=Bme;function Fme(e,t){var n={};return t=gr(t),bf(e,function(r,o,i){wd(n,t(r,o,i),r)}),n}function zme(e,t){var n={};return t=gr(t),bf(e,function(r,o,i){wd(n,o,t(r,o,i))}),n}var Qme=1;function Wme(e){return rQ(Ou(e,Qme))}var Yme=1;function Zme(e,t){return iQ(e,Ou(t,Yme))}function _C(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(a!=null&&(s===void 0?a===a&&!Dl(a):n(a,s)))var s=a,l=i}return l}function Ume(e){return e&&e.length?_C(e,As,pI):void 0}function Hme(e,t){return e&&e.length?_C(e,gr(t),pI):void 0}function OI(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==void 0&&(n=n===void 0?i:n+i)}return n}var Xme=0/0;function DQ(e,t){var n=e==null?0:e.length;return n?OI(e,t)/n:Xme}function Gme(e){return DQ(e,As)}function qme(e,t){return DQ(e,gr(t))}var Kme=s0(function(e,t,n){hC(e,t,n)}),jQ=Kme,Jme=Nr(function(e,t){return function(n){return m1(n,e,t)}}),eye=Jme,tye=Nr(function(e,t){return function(n){return m1(e,n,t)}}),nye=tye;function rye(e){return e&&e.length?_C(e,As,_I):void 0}function oye(e,t){return e&&e.length?_C(e,gr(t),_I):void 0}function LQ(e,t,n){var r=ra(t),o=mC(t,r),i=!(ri(n)&&"chain"in n)||!!n.chain,a=bd(e);return Mu(o,function(s){var l=t[s];e[s]=l,a&&(e.prototype[s]=function(){var u=this.__chain__;if(i||u){var d=e(this.__wrapped__),p=d.__actions__=Xs(this.__actions__);return p.push({func:l,args:arguments,thisArg:e}),d.__chain__=u,d}return l.apply(e,vp([this.value()],arguments))})}),e}var iye=nC(function(e,t){return e*t},1),aye=iye,sye="Expected a function";function y1(e){if(typeof e!="function")throw new TypeError(sye);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function lye(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var uye="[object Map]",cye="[object Set]",T$=is?is.iterator:void 0;function BQ(e){if(!e)return[];if(nl(e))return bC(e)?fc(e):Xs(e);if(T$&&e[T$])return lye(e[T$]());var t=uf(e),n=t==uye?oI:t==cye?fC:f0;return n(e)}function fye(){this.__values__===void 0&&(this.__values__=BQ(this.value()));var e=this.__index__>=this.__values__.length,t=e?void 0:this.__values__[this.__index__++];return{done:e,value:t}}function VQ(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,_d(t,n)?e[t]:void 0}function dye(e,t){return e&&e.length?VQ(e,kr(t)):void 0}function hye(e){return e=kr(e),Nr(function(t){return VQ(t,e)})}function wI(e,t){return t=gp(t,e),e=RQ(e,t),e==null||delete e[yf(Vl(t))]}function pye(e){return p1(e)?void 0:e}var gye=1,vye=2,mye=4,yye=kd(function(e,t){var n={};if(e==null)return n;var r=!1;t=ni(t,function(i){return i=gp(i,e),r||(r=i.length>1),i}),mf(e,tI(e),n),r&&(n=Ou(n,gye|vye|mye,pye));for(var o=t.length;o--;)wI(n,t[o]);return n}),FQ=yye;function b1(e,t,n,r){if(!ri(e))return e;t=gp(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=yf(t[o]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var d=s[l];u=r?r(d,l,s):void 0,u===void 0&&(u=ri(d)?d:_d(t[o+1])?[]:{})}f1(s,l,u),s=s[l]}return e}function zQ(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=bv(e,a);n(s,a)&&b1(i,gp(a,e),s)}return i}function QQ(e,t){if(e==null)return{};var n=ni(tI(e),function(r){return[r]});return t=gr(t),zQ(e,n,function(r,o){return t(r,o[0])})}function bye(e,t){return QQ(e,y1(gr(t)))}function _ye(e){return v7(2,e)}function Oye(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function WQ(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e===e,i=Dl(e),a=t!==void 0,s=t===null,l=t===t,u=Dl(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}function wye(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=WQ(o[r],i[r]);if(l){if(r>=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}function YQ(e,t,n){t.length?t=ni(t,function(i){return yr(i)?function(a){return bv(a,i.length===1?i[0]:i)}:i}):t=[As];var r=-1;t=ni(t,Bl(gr));var o=EQ(e,function(i,a,s){var l=ni(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return Oye(o,function(i,a){return wye(i,a,n)})}function Sye(e,t,n,r){return e==null?[]:(yr(t)||(t=t==null?[]:[t]),n=r?void 0:n,yr(n)||(n=n==null?[]:[n]),YQ(e,t,n))}function SI(e){return kd(function(t){return t=ni(t,Bl(gr)),Nr(function(n){var r=this;return e(t,function(o){return Ll(o,r,n)})})})}var xye=SI(ni),kye=xye,Cye=Nr,Eye=Cye,Tye=Math.min,Pye=Eye(function(e,t){t=t.length==1&&yr(t[0])?ni(t[0],Bl(gr)):ni(La(t,1),Bl(gr));var n=t.length;return Nr(function(r){for(var o=-1,i=Tye(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Ll(e,this,r)})}),$ye=Pye,Aye=SI(OQ),Mye=Aye,Rye=SI(rI),Nye=Rye,Iye=9007199254740991,Dye=Math.floor;function tM(e,t){var n="";if(!e||t<1||t>Iye)return n;do t%2&&(n+=e),t=Dye(t/2),t&&(e+=e);while(t);return n}var jye=lI("length"),Lye=jye,ZQ="\\ud800-\\udfff",Bye="\\u0300-\\u036f",Vye="\\ufe20-\\ufe2f",Fye="\\u20d0-\\u20ff",zye=Bye+Vye+Fye,Qye="\\ufe0e\\ufe0f",Wye="["+ZQ+"]",nM="["+zye+"]",rM="\\ud83c[\\udffb-\\udfff]",Yye="(?:"+nM+"|"+rM+")",UQ="[^"+ZQ+"]",HQ="(?:\\ud83c[\\udde6-\\uddff]){2}",XQ="[\\ud800-\\udbff][\\udc00-\\udfff]",Zye="\\u200d",GQ=Yye+"?",qQ="["+Qye+"]?",Uye="(?:"+Zye+"(?:"+[UQ,HQ,XQ].join("|")+")"+qQ+GQ+")*",Hye=qQ+GQ+Uye,Xye="(?:"+[UQ+nM+"?",nM,HQ,XQ,Wye].join("|")+")",ML=RegExp(rM+"(?="+rM+")|"+Xye+Hye,"g");function Gye(e){for(var t=ML.lastIndex=0;ML.test(e);)++t;return t}function d0(e){return u0(e)?Gye(e):Lye(e)}var qye=Math.ceil;function Lk(e,t){t=t===void 0?" ":jl(t);var n=t.length;if(n<2)return n?tM(t,e):t;var r=tM(t,qye(e/d0(t)));return u0(t)?mp(fc(r),0,e).join(""):r.slice(0,e)}var Kye=Math.ceil,Jye=Math.floor;function e0e(e,t,n){e=fo(e),t=kr(t);var r=t?d0(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Lk(Jye(o),n)+e+Lk(Kye(o),n)}function t0e(e,t,n){e=fo(e),t=kr(t);var r=t?d0(e):0;return t&&r<t?e+Lk(t-r,n):e}function n0e(e,t,n){e=fo(e),t=kr(t);var r=t?d0(e):0;return t&&r<t?Lk(t-r,n)+e:e}var r0e=/^\s+/,o0e=da.parseInt;function i0e(e,t,n){return n||t==null?t=0:t&&(t=+t),o0e(fo(e).replace(r0e,""),t||0)}var a0e=32,xI=Nr(function(e,t){var n=Uh(t,a0(xI));return Od(e,a0e,void 0,t,n)});xI.placeholder={};var KQ=xI,s0e=64,kI=Nr(function(e,t){var n=Uh(t,a0(kI));return Od(e,s0e,void 0,t,n)});kI.placeholder={};var l0e=kI,u0e=dC(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),c0e=u0e;function f0e(e,t){return zQ(e,t,function(n,r){return sI(e,r)})}var d0e=kd(function(e,t){return e==null?{}:f0e(e,t)}),pu=d0e;function h0e(e){for(var t,n=this;n instanceof rC;){var r=e7(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function p0e(e){return function(t){return e==null?void 0:bv(e,t)}}function g0e(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var v0e=Array.prototype,RL=v0e.splice;function CI(e,t,n,r){var o=r?g0e:i0,i=-1,a=t.length,s=e;for(e===t&&(t=Xs(t)),n&&(s=ni(e,Bl(n)));++i<a;)for(var l=0,u=t[i],d=n?n(u):u;(l=o(s,d,l,r))>-1;)s!==e&&RL.call(s,l,1),RL.call(e,l,1);return e}function JQ(e,t){return e&&e.length&&t&&t.length?CI(e,t):e}var m0e=Nr(JQ),y0e=m0e;function b0e(e,t,n){return e&&e.length&&t&&t.length?CI(e,t,gr(n)):e}function _0e(e,t,n){return e&&e.length&&t&&t.length?CI(e,t,void 0,n):e}var O0e=Array.prototype,w0e=O0e.splice;function eW(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;_d(o)?w0e.call(e,o,1):wI(e,o)}}return e}var S0e=kd(function(e,t){var n=e==null?0:e.length,r=WN(e,t);return eW(e,ni(t,function(o){return _d(o,n)?+o:o}).sort(WQ)),r}),x0e=S0e,k0e=Math.floor,C0e=Math.random;function EI(e,t){return e+k0e(C0e()*(t-e+1))}var E0e=parseFloat,T0e=Math.min,P0e=Math.random;function $0e(e,t,n){if(n&&typeof n!="boolean"&&Es(e,t,n)&&(t=n=void 0),n===void 0&&(typeof t=="boolean"?(n=t,t=void 0):typeof e=="boolean"&&(n=e,e=void 0)),e===void 0&&t===void 0?(e=0,t=1):(e=ld(e),t===void 0?(t=e,e=0):t=ld(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=P0e();return T0e(e+o*(t-e+E0e("1e-"+((o+"").length-1))),t)}return EI(e,t)}var A0e=Math.ceil,M0e=Math.max;function R0e(e,t,n,r){for(var o=-1,i=M0e(A0e((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}function tW(e){return function(t,n,r){return r&&typeof r!="number"&&Es(t,n,r)&&(n=r=void 0),t=ld(t),n===void 0?(n=t,t=0):n=ld(n),r=r===void 0?t<n?1:-1:ld(r),R0e(t,n,r,e)}}var N0e=tW(),I0e=N0e,D0e=tW(!0),j0e=D0e,L0e=256,B0e=kd(function(e,t){return Od(e,L0e,void 0,void 0,void 0,t)}),V0e=B0e;function nW(e,t,n,r,o){return o(e,function(i,a,s){n=r?(r=!1,i):t(n,i,a,s)}),n}function F0e(e,t,n){var r=yr(e)?GN:nW,o=arguments.length<3;return r(e,gr(t),n,o,bp)}function z0e(e,t,n,r){var o=e==null?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Q0e(e,t,n){var r=yr(e)?z0e:nW,o=arguments.length<3;return r(e,gr(t),n,o,vQ)}function W0e(e,t){var n=yr(e)?yp:SQ;return n(e,y1(gr(t)))}function Y0e(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,o=[],i=e.length;for(t=gr(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return eW(e,o),n}function Z0e(e,t,n){return(n?Es(e,t,n):t===void 0)?t=1:t=kr(t),tM(fo(e),t)}function U0e(){var e=arguments,t=fo(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var H0e="Expected a function";function X0e(e,t){if(typeof e!="function")throw new TypeError(H0e);return t=t===void 0?t:kr(t),Nr(e,t)}function G0e(e,t,n){t=gp(t,e);var r=-1,o=t.length;for(o||(o=1,e=void 0);++r<o;){var i=e==null?void 0:e[yf(t[r])];i===void 0&&(r=o,i=n),e=bd(i)?i.call(e):i}return e}var q0e=Array.prototype,K0e=q0e.reverse;function oM(e){return e==null?e:K0e.call(e)}var J0e=KN("round"),ebe=J0e;function rW(e){var t=e.length;return t?e[EI(0,t-1)]:void 0}function tbe(e){return rW(f0(e))}function nbe(e){var t=yr(e)?rW:tbe;return t(e)}function OC(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=EI(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function rbe(e,t){return OC(Xs(e),_v(t,0,e.length))}function obe(e,t){var n=f0(e);return OC(n,_v(t,0,n.length))}function ibe(e,t,n){(n?Es(e,t,n):t===void 0)?t=1:t=kr(t);var r=yr(e)?rbe:obe;return r(e,t)}function oW(e,t,n){return e==null?e:b1(e,t,n)}function abe(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:b1(e,t,n,r)}function sbe(e){return OC(Xs(e))}function lbe(e){return OC(f0(e))}function ube(e){var t=yr(e)?sbe:lbe;return t(e)}var cbe="[object Map]",fbe="[object Set]";function dbe(e){if(e==null)return 0;if(nl(e))return bC(e)?d0(e):e.length;var t=uf(e);return t==cbe||t==fbe?e.size:zN(e).length}function hbe(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&Es(e,t,n)?(t=0,n=r):(t=t==null?0:kr(t),n=n===void 0?r:kr(n)),Eu(e,t,n)):[]}var pbe=c0(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),gbe=pbe;function vbe(e,t){var n;return bp(e,function(r,o,i){return n=t(r,o,i),!n}),!!n}function mbe(e,t,n){var r=yr(e)?rI:vbe;return n&&Es(e,t,n)&&(t=void 0),r(e,gr(t))}var ybe=Nr(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Es(e,t[0],t[1])?t=[]:n>2&&Es(t[0],t[1],t[2])&&(t=[t[0]]),YQ(e,La(t,1),[])}),bbe=ybe,_be=4294967295,Obe=_be-1,wbe=Math.floor,Sbe=Math.min;function TI(e,t,n,r){var o=0,i=e==null?0:e.length;if(i===0)return 0;t=n(t);for(var a=t!==t,s=t===null,l=Dl(t),u=t===void 0;o<i;){var d=wbe((o+i)/2),p=n(e[d]),v=p!==void 0,y=p===null,w=p===p,b=Dl(p);if(a)var k=r||w;else u?k=w&&(r||v):s?k=w&&v&&(r||!y):l?k=w&&v&&!y&&(r||!b):y||b?k=!1:k=r?p<=t:p<t;k?o=d+1:i=d}return Sbe(i,Obe)}var xbe=4294967295,kbe=xbe>>>1;function wC(e,t,n){var r=0,o=e==null?r:e.length;if(typeof t=="number"&&t===t&&o<=kbe){for(;r<o;){var i=r+o>>>1,a=e[i];a!==null&&!Dl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return TI(e,t,As,n)}function Cbe(e,t){return wC(e,t)}function Ebe(e,t,n){return TI(e,t,gr(n))}function Tbe(e,t){var n=e==null?0:e.length;if(n){var r=wC(e,t);if(r<n&&vc(e[r],t))return r}return-1}function Pbe(e,t){return wC(e,t,!0)}function $be(e,t,n){return TI(e,t,gr(n),!0)}function Abe(e,t){var n=e==null?0:e.length;if(n){var r=wC(e,t,!0)-1;if(vc(e[r],t))return r}return-1}function iW(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!vc(s,l)){var l=s;i[o++]=a===0?0:a}}return i}function Mbe(e){return e&&e.length?iW(e):[]}function Rbe(e,t){return e&&e.length?iW(e,gr(t)):[]}var Nbe=4294967295;function Ibe(e,t,n){return n&&typeof n!="number"&&Es(e,t,n)&&(t=n=void 0),n=n===void 0?Nbe:n>>>0,n?(e=fo(e),e&&(typeof t=="string"||t!=null&&!yI(t))&&(t=jl(t),!t&&u0(e))?mp(fc(e),0,n):e.split(t,n)):[]}var Dbe="Expected a function",jbe=Math.max;function Lbe(e,t){if(typeof e!="function")throw new TypeError(Dbe);return t=t==null?0:jbe(kr(t),0),Nr(function(n){var r=n[t],o=mp(n,0,t);return r&&vp(o,r),Ll(e,this,o)})}var Bbe=c0(function(e,t,n){return e+(n?" ":"")+XN(t)}),Vbe=Bbe;function Fbe(e,t,n){return e=fo(e),n=n==null?0:_v(kr(n),0,e.length),t=jl(t),e.slice(n,n+t.length)==t}function zbe(){return{}}function Qbe(){return""}function Wbe(){return!0}var Ybe=nC(function(e,t){return e-t},0),Zbe=Ybe;function Ube(e){return e&&e.length?OI(e,As):0}function Hbe(e,t){return e&&e.length?OI(e,gr(t)):0}function Xbe(e){var t=e==null?0:e.length;return t?Eu(e,1,t):[]}function Gbe(e,t,n){return e&&e.length?(t=n||t===void 0?1:kr(t),Eu(e,0,t<0?0:t)):[]}function qbe(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:kr(t),t=r-t,Eu(e,t<0?0:t,r)):[]}function Kbe(e,t){return e&&e.length?pC(e,gr(t),!1,!0):[]}function Jbe(e,t){return e&&e.length?pC(e,gr(t)):[]}function e_e(e,t){return t(e),e}var aW=Object.prototype,t_e=aW.hasOwnProperty;function NL(e,t,n,r){return e===void 0||vc(e,aW[n])&&!t_e.call(r,n)?t:e}var n_e={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function r_e(e){return"\\"+n_e[e]}var o_e=/<%=([\s\S]+?)%>/g,sW=o_e,i_e=/<%-([\s\S]+?)%>/g,a_e=i_e,s_e=/<%([\s\S]+?)%>/g,l_e=s_e,u_e={escape:a_e,evaluate:l_e,interpolate:sW,variable:"",imports:{_:{escape:bQ}}},iM=u_e,c_e="Invalid `variable` option passed into `_.template`",f_e=/\b__p \+= '';/g,d_e=/\b(__p \+=) '' \+/g,h_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,p_e=/[()=,{}\[\]\/\s]/,g_e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ox=/($^)/,v_e=/['\n\r\u2028\u2029\\]/g,m_e=Object.prototype,IL=m_e.hasOwnProperty;function y_e(e,t,n){var r=iM.imports._.templateSettings||iM;n&&Es(e,t,n)&&(t=void 0),e=fo(e),t=Dk({},t,r,NL);var o=Dk({},t.imports,r.imports,NL),i=ra(o),a=gI(o,i),s,l,u=0,d=t.interpolate||ox,p="__p += '",v=RegExp((t.escape||ox).source+"|"+d.source+"|"+(d===sW?g_e:ox).source+"|"+(t.evaluate||ox).source+"|$","g"),y=IL.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
  4. `:"";e.replace(v,function(k,C,T,$,P,A){return T||(T=$),p+=e.slice(u,A).replace(v_e,r_e),C&&(s=!0,p+=`' +
  5. __e(`+C+`) +
  6. '`),P&&(l=!0,p+=`';
  7. `+P+`;
  8. __p += '`),T&&(p+=`' +
  9. ((__t = (`+T+`)) == null ? '' : __t) +
  10. '`),u=A+k.length,k}),p+=`';
  11. `;var w=IL.call(t,"variable")&&t.variable;if(!w)p=`with (obj) {
  12. `+p+`
  13. }
  14. `;else if(p_e.test(w))throw new Error(c_e);p=(l?p.replace(f_e,""):p).replace(d_e,"$1").replace(h_e,"$1;"),p="function("+(w||"obj")+`) {
  15. `+(w?"":`obj || (obj = {});
  16. `)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
  17. function print() { __p += __j.call(arguments, '') }
  18. `:`;
  19. `)+p+`return __p
  20. }`;var b=g7(function(){return Function(i,y+"return "+p).apply(void 0,a)});if(b.source=p,ZN(b))throw b;return b}var b_e="Expected a function";function jh(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(b_e);return ri(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ts(e,t,{leading:r,maxWait:t,trailing:o})}function _1(e,t){return t(e)}var __e=9007199254740991,P$=4294967295,O_e=Math.min;function w_e(e,t){if(e=kr(e),e<1||e>__e)return[];var n=P$,r=O_e(e,P$);t=_f(t),e-=P$;for(var o=VN(r,t);++n<e;)t(n);return o}function S_e(){return this}function lW(e,t){var n=e;return n instanceof Yr&&(n=n.value()),GN(t,function(r,o){return o.func.apply(o.thisArg,vp([r],o.args))},n)}function $$(){return lW(this.__wrapped__,this.__actions__)}function x_e(e){return fo(e).toLowerCase()}function k_e(e){return yr(e)?ni(e,yf):Dl(e)?[e]:Xs(h7(fo(e)))}var DL=9007199254740991;function C_e(e){return e?_v(kr(e),-DL,DL):e===0?e:0}function E_e(e){return fo(e).toUpperCase()}function T_e(e,t,n){var r=yr(e),o=r||Hh(e)||l0(e);if(t=gr(t),n==null){var i=e&&e.constructor;o?n=r?new i:[]:ri(e)?n=bd(i)?o0(cC(e)):{}:n={}}return(o?Mu:bf)(e,function(a,s,l){return t(n,a,s,l)}),n}function uW(e,t){for(var n=e.length;n--&&i0(t,e[n],0)>-1;);return n}function cW(e,t){for(var n=-1,r=e.length;++n<r&&i0(t,e[n],0)>-1;);return n}function P_e(e,t,n){if(e=fo(e),e&&(n||t===void 0))return Xz(e);if(!e||!(t=jl(t)))return e;var r=fc(e),o=fc(t),i=cW(r,o),a=uW(r,o)+1;return mp(r,i,a).join("")}function $_e(e,t,n){if(e=fo(e),e&&(n||t===void 0))return e.slice(0,Hz(e)+1);if(!e||!(t=jl(t)))return e;var r=fc(e),o=uW(r,fc(t))+1;return mp(r,0,o).join("")}var A_e=/^\s+/;function M_e(e,t,n){if(e=fo(e),e&&(n||t===void 0))return e.replace(A_e,"");if(!e||!(t=jl(t)))return e;var r=fc(e),o=cW(r,fc(t));return mp(r,o).join("")}var R_e=30,N_e="...",I_e=/\w*$/;function D_e(e,t){var n=R_e,r=N_e;if(ri(t)){var o="separator"in t?t.separator:o;n="length"in t?kr(t.length):n,r="omission"in t?jl(t.omission):r}e=fo(e);var i=e.length;if(u0(e)){var a=fc(e);i=a.length}if(n>=i)return e;var s=n-d0(r);if(s<1)return r;var l=a?mp(a,0,s).join(""):e.slice(0,s);if(o===void 0)return l+r;if(a&&(s+=l.length-s),yI(o)){if(e.slice(s).search(o)){var u,d=l;for(o.global||(o=RegExp(o.source,fo(I_e.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;l=l.slice(0,p===void 0?s:p)}}else if(e.indexOf(jl(o),s)!=s){var v=l.lastIndexOf(o);v>-1&&(l=l.slice(0,v))}return l+r}function j_e(e){return a7(e,1)}var L_e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},B_e=qN(L_e),V_e=B_e,fW=/&(?:amp|lt|gt|quot|#39);/g,F_e=RegExp(fW.source);function z_e(e){return e=fo(e),e&&F_e.test(e)?e.replace(fW,V_e):e}var Q_e=1/0,W_e=gy&&1/fC(new gy([,-0]))[1]==Q_e?function(e){return new gy(e)}:DN,Y_e=W_e,Z_e=200;function Xh(e,t,n){var r=-1,o=iC,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=dI;else if(i>=Z_e){var u=t?null:Y_e(e);if(u)return fC(u);a=!1,o=CO,l=new iv}else l=t?[]:s;e:for(;++r<i;){var d=e[r],p=t?t(d):d;if(d=n||d!==0?d:0,a&&p===p){for(var v=l.length;v--;)if(l[v]===p)continue e;t&&l.push(p),s.push(d)}else o(l,p,n)||(l!==s&&l.push(p),s.push(d))}return s}var U_e=Nr(function(e){return Xh(La(e,1,Ti,!0))}),Jx=U_e,H_e=Nr(function(e){var t=Vl(e);return Ti(t)&&(t=void 0),Xh(La(e,1,Ti,!0),gr(t))}),X_e=H_e,G_e=Nr(function(e){var t=Vl(e);return t=typeof t=="function"?t:void 0,Xh(La(e,1,Ti,!0),void 0,t)}),q_e=G_e;function K_e(e){return e&&e.length?Xh(e):[]}function J_e(e,t){return e&&e.length?Xh(e,gr(t)):[]}function eOe(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?Xh(e,void 0,t):[]}var tOe=0;function nOe(e){var t=++tOe;return fo(e)+t}function rOe(e,t){return e==null?!0:wI(e,t)}var oOe=Math.max;function PI(e){if(!(e&&e.length))return[];var t=0;return e=yp(e,function(n){if(Ti(n))return t=oOe(n.length,t),!0}),VN(t,function(n){return ni(e,lI(n))})}function dW(e,t){if(!(e&&e.length))return[];var n=PI(e);return t==null?n:ni(n,function(r){return Ll(t,void 0,r)})}function hW(e,t,n,r){return b1(e,t,n(bv(e,t)),r)}function iOe(e,t,n){return e==null?e:hW(e,t,_f(n))}function aOe(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:hW(e,t,_f(n),r)}var sOe=c0(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),lOe=sOe;function uOe(e){return e==null?[]:gI(e,rl(e))}var cOe=Nr(function(e,t){return Ti(e)?v1(e,t):[]}),fOe=cOe;function dOe(e,t){return KQ(_f(t),e)}var hOe=kd(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(i){return WN(i,e)};return t>1||this.__actions__.length||!(r instanceof Yr)||!_d(n)?this.thru(o):(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:_1,args:[o],thisArg:void 0}),new ku(r,this.__chain__).thru(function(i){return t&&!i.length&&i.push(void 0),i}))}),pOe=hOe;function gOe(){return F7(this)}function vOe(){var e=this.__wrapped__;if(e instanceof Yr){var t=e;return this.__actions__.length&&(t=new Yr(this)),t=t.reverse(),t.__actions__.push({func:_1,args:[oM],thisArg:void 0}),new ku(t,this.__chain__)}return this.thru(oM)}function $I(e,t,n){var r=e.length;if(r<2)return r?Xh(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=v1(i[o]||a,e[s],t,n));return Xh(La(i,1),t,n)}var mOe=Nr(function(e){return $I(yp(e,Ti))}),yOe=mOe,bOe=Nr(function(e){var t=Vl(e);return Ti(t)&&(t=void 0),$I(yp(e,Ti),gr(t))}),_Oe=bOe,OOe=Nr(function(e){var t=Vl(e);return t=typeof t=="function"?t:void 0,$I(yp(e,Ti),void 0,t)}),wOe=OOe,SOe=Nr(PI),xOe=SOe;function pW(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}function kOe(e,t){return pW(e||[],t||[],f1)}function COe(e,t){return pW(e||[],t||[],b1)}var EOe=Nr(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n=typeof n=="function"?(e.pop(),n):void 0,dW(e,n)}),TOe=EOe,Mn={chunk:Ife,compact:whe,concat:She,difference:Lpe,differenceBy:Vpe,differenceWith:zpe,drop:Ype,dropRight:Zpe,dropRightWhile:Upe,dropWhile:Hpe,fill:gge,findIndex:kQ,findLastIndex:gC,first:EL,flatten:YN,flattenDeep:PQ,flattenDepth:$ge,fromPairs:Ry,head:EL,indexOf:vve,initial:mve,intersection:_ve,intersectionBy:wve,intersectionWith:xve,join:xme,last:Vl,lastIndexOf:Mme,nth:dye,pull:y0e,pullAll:JQ,pullAllBy:b0e,pullAllWith:_0e,pullAt:x0e,remove:Y0e,reverse:oM,slice:hbe,sortedIndex:Cbe,sortedIndexBy:Ebe,sortedIndexOf:Tbe,sortedLastIndex:Pbe,sortedLastIndexBy:$be,sortedLastIndexOf:Abe,sortedUniq:Mbe,sortedUniqBy:Rbe,tail:Xbe,take:Gbe,takeRight:qbe,takeRightWhile:Kbe,takeWhile:Jbe,union:Jx,unionBy:X_e,unionWith:q_e,uniq:K_e,uniqBy:J_e,uniqWith:eOe,unzip:PI,unzipWith:dW,without:fOe,xor:yOe,xorBy:_Oe,xorWith:wOe,zip:xOe,zipObject:kOe,zipObjectDeep:COe,zipWith:TOe},wo={countBy:gpe,each:SL,eachRight:xL,every:dge,filter:vge,find:bge,findLast:xge,flatMap:TQ,flatMapDeep:Ege,flatMapDepth:Tge,forEach:SL,forEachRight:xL,groupBy:Jge,includes:pve,invokeMap:jve,keyBy:Tme,map:vC,orderBy:Sye,partition:c0e,reduce:F0e,reduceRight:Q0e,reject:W0e,sample:nbe,sampleSize:ibe,shuffle:ube,size:dbe,some:mbe,sortBy:bbe},POe={now:Kx},_i={after:Vae,ary:a7,before:v7,bind:m7,bindKey:yce,curry:cI,curryRight:fI,debounce:Ts,defer:Rpe,delay:Ipe,flip:Mge,memoize:h1,negate:y1,once:_ye,overArgs:$ye,partial:KQ,partialRight:l0e,rearg:V0e,rest:X0e,spread:Lbe,throttle:jh,unary:j_e,wrap:dOe},Gn={castArray:Ma,clone:KA,cloneDeep:kO,cloneDeepWith:yhe,cloneWith:_he,conformsTo:spe,eq:vc,gt:tve,gte:rve,isArguments:rv,isArray:yr,isArrayBuffer:Fve,isArrayLike:nl,isArrayLikeObject:Ti,isBoolean:Qve,isBuffer:Hh,isDate:Uve,isElement:Hve,isEmpty:Jve,isEqual:rs,isEqualWith:eme,isError:ZN,isFinite:nme,isFunction:bd,isInteger:NQ,isLength:sC,isMap:X7,isMatch:rme,isMatchWith:ome,isNaN:ame,isNative:cme,isNil:Vi,isNull:fme,isNumber:IQ,isObject:ri,isObjectLike:yi,isPlainObject:p1,isRegExp:yI,isSafeInteger:gme,isSet:G7,isString:bC,isSymbol:Dl,isTypedArray:l0,isUndefined:bI,isWeakMap:mme,isWeakSet:bme,lt:Lme,lte:Vme,toArray:BQ,toFinite:ld,toInteger:kr,toLength:wQ,toNumber:_u,toPlainObject:fQ,toSafeInteger:C_e,toString:fo},Ms={add:Aae,ceil:Mfe,divide:Wpe,floor:Nge,max:Ume,maxBy:Hme,mean:Gme,meanBy:qme,min:rye,minBy:oye,multiply:aye,round:ebe,subtract:Zbe,sum:Ube,sumBy:Hbe},AI={clamp:Dfe,inRange:fve,random:$0e},pr={assign:lue,assignIn:eL,assignInWith:Dk,assignWith:vue,at:ece,create:vpe,defaults:Cpe,defaultsDeep:$pe,entries:kL,entriesIn:CL,extend:eL,extendWith:Dk,findKey:_ge,findLastKey:kge,forIn:Wge,forInRight:Yge,forOwn:Zge,forOwnRight:Uge,functions:Hge,functionsIn:Xge,get:Ao,has:sve,hasIn:sI,invert:Pve,invertBy:Rve,invoke:Ive,keys:ra,keysIn:rl,mapKeys:Fme,mapValues:zme,merge:jQ,mergeWith:hQ,omit:FQ,omitBy:bye,pick:pu,pickBy:QQ,result:G0e,set:oW,setWith:abe,toPairs:kL,toPairsIn:CL,transform:T_e,unset:rOe,update:iOe,updateWith:aOe,values:f0,valuesIn:uOe},Of={at:pOe,chain:F7,commit:Ohe,lodash:Pe,next:fye,plant:h0e,reverse:vOe,tap:e_e,thru:_1,toIterator:S_e,toJSON:$$,value:$$,valueOf:$$,wrapperChain:gOe},uo={camelCase:Tfe,capitalize:k7,deburr:C7,endsWith:Kpe,escape:bQ,escapeRegExp:cge,kebabCase:Cme,lowerCase:Nme,lowerFirst:Dme,pad:e0e,padEnd:t0e,padStart:n0e,parseInt:i0e,repeat:Z0e,replace:U0e,snakeCase:gbe,split:Ibe,startCase:Vbe,startsWith:Fbe,template:y_e,templateSettings:iM,toLower:x_e,toUpper:E_e,trim:P_e,trimEnd:$_e,trimStart:M_e,truncate:D_e,unescape:z_e,upperCase:lOe,upperFirst:XN,words:V7},ho={attempt:g7,bindAll:pce,cond:rpe,conforms:ape,constant:LN,defaultTo:Spe,flow:Fge,flowRight:Qge,identity:As,iteratee:Ome,matches:Wme,matchesProperty:Zme,method:eye,methodOf:nye,mixin:LQ,noop:DN,nthArg:hye,over:kye,overEvery:Mye,overSome:Nye,property:aQ,propertyOf:p0e,range:I0e,rangeRight:j0e,stubArray:JN,stubFalse:FN,stubObject:zbe,stubString:Qbe,stubTrue:Wbe,times:w_e,toPath:k_e,uniqueId:nOe};function $Oe(){var e=new Yr(this.__wrapped__);return e.__actions__=Xs(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Xs(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Xs(this.__views__),e}function AOe(){if(this.__filtered__){var e=new Yr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}var MOe=Math.max,ROe=Math.min;function NOe(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=ROe(t,e+a);break;case"takeRight":e=MOe(e,t-a);break}}return{start:e,end:t}}var IOe=1,DOe=2,jOe=Math.min;function LOe(){var e=this.__wrapped__.value(),t=this.__dir__,n=yr(e),r=t<0,o=n?e.length:0,i=NOe(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,d=this.__iteratees__,p=d.length,v=0,y=jOe(l,this.__takeCount__);if(!n||!r&&o==l&&y==l)return lW(e,this.__actions__);var w=[];e:for(;l--&&v<y;){u+=t;for(var b=-1,k=e[u];++b<p;){var C=d[b],T=C.iteratee,$=C.type,P=T(k);if($==DOe)k=P;else if(!P){if($==IOe)continue e;break e}}w[v++]=k}return w}/**
  21. * @license
  22. * Lodash (Custom Build) <https://lodash.com/>
  23. * Build: `lodash modularize exports="es" -o ./`
  24. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  25. * Released under MIT license <https://lodash.com/license>
  26. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  27. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  28. */var BOe="4.17.21",VOe=2,FOe=1,zOe=3,gW=4294967295,QOe=Array.prototype,WOe=Object.prototype,vW=WOe.hasOwnProperty,jL=is?is.iterator:void 0,YOe=Math.max,LL=Math.min,MI=function(e){return function(t,n,r){if(r==null){var o=ri(n),i=o&&ra(n),a=i&&i.length&&mC(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(LQ);Pe.after=_i.after;Pe.ary=_i.ary;Pe.assign=pr.assign;Pe.assignIn=pr.assignIn;Pe.assignInWith=pr.assignInWith;Pe.assignWith=pr.assignWith;Pe.at=pr.at;Pe.before=_i.before;Pe.bind=_i.bind;Pe.bindAll=ho.bindAll;Pe.bindKey=_i.bindKey;Pe.castArray=Gn.castArray;Pe.chain=Of.chain;Pe.chunk=Mn.chunk;Pe.compact=Mn.compact;Pe.concat=Mn.concat;Pe.cond=ho.cond;Pe.conforms=ho.conforms;Pe.constant=ho.constant;Pe.countBy=wo.countBy;Pe.create=pr.create;Pe.curry=_i.curry;Pe.curryRight=_i.curryRight;Pe.debounce=_i.debounce;Pe.defaults=pr.defaults;Pe.defaultsDeep=pr.defaultsDeep;Pe.defer=_i.defer;Pe.delay=_i.delay;Pe.difference=Mn.difference;Pe.differenceBy=Mn.differenceBy;Pe.differenceWith=Mn.differenceWith;Pe.drop=Mn.drop;Pe.dropRight=Mn.dropRight;Pe.dropRightWhile=Mn.dropRightWhile;Pe.dropWhile=Mn.dropWhile;Pe.fill=Mn.fill;Pe.filter=wo.filter;Pe.flatMap=wo.flatMap;Pe.flatMapDeep=wo.flatMapDeep;Pe.flatMapDepth=wo.flatMapDepth;Pe.flatten=Mn.flatten;Pe.flattenDeep=Mn.flattenDeep;Pe.flattenDepth=Mn.flattenDepth;Pe.flip=_i.flip;Pe.flow=ho.flow;Pe.flowRight=ho.flowRight;Pe.fromPairs=Mn.fromPairs;Pe.functions=pr.functions;Pe.functionsIn=pr.functionsIn;Pe.groupBy=wo.groupBy;Pe.initial=Mn.initial;Pe.intersection=Mn.intersection;Pe.intersectionBy=Mn.intersectionBy;Pe.intersectionWith=Mn.intersectionWith;Pe.invert=pr.invert;Pe.invertBy=pr.invertBy;Pe.invokeMap=wo.invokeMap;Pe.iteratee=ho.iteratee;Pe.keyBy=wo.keyBy;Pe.keys=ra;Pe.keysIn=pr.keysIn;Pe.map=wo.map;Pe.mapKeys=pr.mapKeys;Pe.mapValues=pr.mapValues;Pe.matches=ho.matches;Pe.matchesProperty=ho.matchesProperty;Pe.memoize=_i.memoize;Pe.merge=pr.merge;Pe.mergeWith=pr.mergeWith;Pe.method=ho.method;Pe.methodOf=ho.methodOf;Pe.mixin=MI;Pe.negate=y1;Pe.nthArg=ho.nthArg;Pe.omit=pr.omit;Pe.omitBy=pr.omitBy;Pe.once=_i.once;Pe.orderBy=wo.orderBy;Pe.over=ho.over;Pe.overArgs=_i.overArgs;Pe.overEvery=ho.overEvery;Pe.overSome=ho.overSome;Pe.partial=_i.partial;Pe.partialRight=_i.partialRight;Pe.partition=wo.partition;Pe.pick=pr.pick;Pe.pickBy=pr.pickBy;Pe.property=ho.property;Pe.propertyOf=ho.propertyOf;Pe.pull=Mn.pull;Pe.pullAll=Mn.pullAll;Pe.pullAllBy=Mn.pullAllBy;Pe.pullAllWith=Mn.pullAllWith;Pe.pullAt=Mn.pullAt;Pe.range=ho.range;Pe.rangeRight=ho.rangeRight;Pe.rearg=_i.rearg;Pe.reject=wo.reject;Pe.remove=Mn.remove;Pe.rest=_i.rest;Pe.reverse=Mn.reverse;Pe.sampleSize=wo.sampleSize;Pe.set=pr.set;Pe.setWith=pr.setWith;Pe.shuffle=wo.shuffle;Pe.slice=Mn.slice;Pe.sortBy=wo.sortBy;Pe.sortedUniq=Mn.sortedUniq;Pe.sortedUniqBy=Mn.sortedUniqBy;Pe.split=uo.split;Pe.spread=_i.spread;Pe.tail=Mn.tail;Pe.take=Mn.take;Pe.takeRight=Mn.takeRight;Pe.takeRightWhile=Mn.takeRightWhile;Pe.takeWhile=Mn.takeWhile;Pe.tap=Of.tap;Pe.throttle=_i.throttle;Pe.thru=_1;Pe.toArray=Gn.toArray;Pe.toPairs=pr.toPairs;Pe.toPairsIn=pr.toPairsIn;Pe.toPath=ho.toPath;Pe.toPlainObject=Gn.toPlainObject;Pe.transform=pr.transform;Pe.unary=_i.unary;Pe.union=Mn.union;Pe.unionBy=Mn.unionBy;Pe.unionWith=Mn.unionWith;Pe.uniq=Mn.uniq;Pe.uniqBy=Mn.uniqBy;Pe.uniqWith=Mn.uniqWith;Pe.unset=pr.unset;Pe.unzip=Mn.unzip;Pe.unzipWith=Mn.unzipWith;Pe.update=pr.update;Pe.updateWith=pr.updateWith;Pe.values=pr.values;Pe.valuesIn=pr.valuesIn;Pe.without=Mn.without;Pe.words=uo.words;Pe.wrap=_i.wrap;Pe.xor=Mn.xor;Pe.xorBy=Mn.xorBy;Pe.xorWith=Mn.xorWith;Pe.zip=Mn.zip;Pe.zipObject=Mn.zipObject;Pe.zipObjectDeep=Mn.zipObjectDeep;Pe.zipWith=Mn.zipWith;Pe.entries=pr.toPairs;Pe.entriesIn=pr.toPairsIn;Pe.extend=pr.assignIn;Pe.extendWith=pr.assignInWith;MI(Pe,Pe);Pe.add=Ms.add;Pe.attempt=ho.attempt;Pe.camelCase=uo.camelCase;Pe.capitalize=uo.capitalize;Pe.ceil=Ms.ceil;Pe.clamp=AI.clamp;Pe.clone=Gn.clone;Pe.cloneDeep=Gn.cloneDeep;Pe.cloneDeepWith=Gn.cloneDeepWith;Pe.cloneWith=Gn.cloneWith;Pe.conformsTo=Gn.conformsTo;Pe.deburr=uo.deburr;Pe.defaultTo=ho.defaultTo;Pe.divide=Ms.divide;Pe.endsWith=uo.endsWith;Pe.eq=Gn.eq;Pe.escape=uo.escape;Pe.escapeRegExp=uo.escapeRegExp;Pe.every=wo.every;Pe.find=wo.find;Pe.findIndex=Mn.findIndex;Pe.findKey=pr.findKey;Pe.findLast=wo.findLast;Pe.findLastIndex=Mn.findLastIndex;Pe.findLastKey=pr.findLastKey;Pe.floor=Ms.floor;Pe.forEach=wo.forEach;Pe.forEachRight=wo.forEachRight;Pe.forIn=pr.forIn;Pe.forInRight=pr.forInRight;Pe.forOwn=pr.forOwn;Pe.forOwnRight=pr.forOwnRight;Pe.get=pr.get;Pe.gt=Gn.gt;Pe.gte=Gn.gte;Pe.has=pr.has;Pe.hasIn=pr.hasIn;Pe.head=Mn.head;Pe.identity=As;Pe.includes=wo.includes;Pe.indexOf=Mn.indexOf;Pe.inRange=AI.inRange;Pe.invoke=pr.invoke;Pe.isArguments=Gn.isArguments;Pe.isArray=yr;Pe.isArrayBuffer=Gn.isArrayBuffer;Pe.isArrayLike=Gn.isArrayLike;Pe.isArrayLikeObject=Gn.isArrayLikeObject;Pe.isBoolean=Gn.isBoolean;Pe.isBuffer=Gn.isBuffer;Pe.isDate=Gn.isDate;Pe.isElement=Gn.isElement;Pe.isEmpty=Gn.isEmpty;Pe.isEqual=Gn.isEqual;Pe.isEqualWith=Gn.isEqualWith;Pe.isError=Gn.isError;Pe.isFinite=Gn.isFinite;Pe.isFunction=Gn.isFunction;Pe.isInteger=Gn.isInteger;Pe.isLength=Gn.isLength;Pe.isMap=Gn.isMap;Pe.isMatch=Gn.isMatch;Pe.isMatchWith=Gn.isMatchWith;Pe.isNaN=Gn.isNaN;Pe.isNative=Gn.isNative;Pe.isNil=Gn.isNil;Pe.isNull=Gn.isNull;Pe.isNumber=Gn.isNumber;Pe.isObject=ri;Pe.isObjectLike=Gn.isObjectLike;Pe.isPlainObject=Gn.isPlainObject;Pe.isRegExp=Gn.isRegExp;Pe.isSafeInteger=Gn.isSafeInteger;Pe.isSet=Gn.isSet;Pe.isString=Gn.isString;Pe.isSymbol=Gn.isSymbol;Pe.isTypedArray=Gn.isTypedArray;Pe.isUndefined=Gn.isUndefined;Pe.isWeakMap=Gn.isWeakMap;Pe.isWeakSet=Gn.isWeakSet;Pe.join=Mn.join;Pe.kebabCase=uo.kebabCase;Pe.last=Vl;Pe.lastIndexOf=Mn.lastIndexOf;Pe.lowerCase=uo.lowerCase;Pe.lowerFirst=uo.lowerFirst;Pe.lt=Gn.lt;Pe.lte=Gn.lte;Pe.max=Ms.max;Pe.maxBy=Ms.maxBy;Pe.mean=Ms.mean;Pe.meanBy=Ms.meanBy;Pe.min=Ms.min;Pe.minBy=Ms.minBy;Pe.stubArray=ho.stubArray;Pe.stubFalse=ho.stubFalse;Pe.stubObject=ho.stubObject;Pe.stubString=ho.stubString;Pe.stubTrue=ho.stubTrue;Pe.multiply=Ms.multiply;Pe.nth=Mn.nth;Pe.noop=ho.noop;Pe.now=POe.now;Pe.pad=uo.pad;Pe.padEnd=uo.padEnd;Pe.padStart=uo.padStart;Pe.parseInt=uo.parseInt;Pe.random=AI.random;Pe.reduce=wo.reduce;Pe.reduceRight=wo.reduceRight;Pe.repeat=uo.repeat;Pe.replace=uo.replace;Pe.result=pr.result;Pe.round=Ms.round;Pe.sample=wo.sample;Pe.size=wo.size;Pe.snakeCase=uo.snakeCase;Pe.some=wo.some;Pe.sortedIndex=Mn.sortedIndex;Pe.sortedIndexBy=Mn.sortedIndexBy;Pe.sortedIndexOf=Mn.sortedIndexOf;Pe.sortedLastIndex=Mn.sortedLastIndex;Pe.sortedLastIndexBy=Mn.sortedLastIndexBy;Pe.sortedLastIndexOf=Mn.sortedLastIndexOf;Pe.startCase=uo.startCase;Pe.startsWith=uo.startsWith;Pe.subtract=Ms.subtract;Pe.sum=Ms.sum;Pe.sumBy=Ms.sumBy;Pe.template=uo.template;Pe.times=ho.times;Pe.toFinite=Gn.toFinite;Pe.toInteger=kr;Pe.toLength=Gn.toLength;Pe.toLower=uo.toLower;Pe.toNumber=Gn.toNumber;Pe.toSafeInteger=Gn.toSafeInteger;Pe.toString=Gn.toString;Pe.toUpper=uo.toUpper;Pe.trim=uo.trim;Pe.trimEnd=uo.trimEnd;Pe.trimStart=uo.trimStart;Pe.truncate=uo.truncate;Pe.unescape=uo.unescape;Pe.uniqueId=ho.uniqueId;Pe.upperCase=uo.upperCase;Pe.upperFirst=uo.upperFirst;Pe.each=wo.forEach;Pe.eachRight=wo.forEachRight;Pe.first=Mn.head;MI(Pe,function(){var e={};return bf(Pe,function(t,n){vW.call(Pe.prototype,n)||(e[n]=t)}),e}(),{chain:!1});Pe.VERSION=BOe;(Pe.templateSettings=uo.templateSettings).imports._=Pe;Mu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Pe[e].placeholder=Pe});Mu(["drop","take"],function(e,t){Yr.prototype[e]=function(n){n=n===void 0?1:YOe(kr(n),0);var r=this.__filtered__&&!t?new Yr(this):this.clone();return r.__filtered__?r.__takeCount__=LL(n,r.__takeCount__):r.__views__.push({size:LL(n,gW),type:e+(r.__dir__<0?"Right":"")}),r},Yr.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}});Mu(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==FOe||n==zOe;Yr.prototype[e]=function(o){var i=this.clone();return i.__iteratees__.push({iteratee:gr(o),type:n}),i.__filtered__=i.__filtered__||r,i}});Mu(["head","last"],function(e,t){var n="take"+(t?"Right":"");Yr.prototype[e]=function(){return this[n](1).value()[0]}});Mu(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Yr.prototype[e]=function(){return this.__filtered__?new Yr(this):this[n](1)}});Yr.prototype.compact=function(){return this.filter(As)};Yr.prototype.find=function(e){return this.filter(e).head()};Yr.prototype.findLast=function(e){return this.reverse().find(e)};Yr.prototype.invokeMap=Nr(function(e,t){return typeof e=="function"?new Yr(this):this.map(function(n){return m1(n,e,t)})});Yr.prototype.reject=function(e){return this.filter(y1(gr(e)))};Yr.prototype.slice=function(e,t){e=kr(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==void 0&&(t=kr(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)};Yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Yr.prototype.toArray=function(){return this.take(gW)};bf(Yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Pe[r?"take"+(t=="last"?"Right":""):t],i=r||/^find/.test(t);!o||(Pe.prototype[t]=function(){var a=this.__wrapped__,s=r?[1]:arguments,l=a instanceof Yr,u=s[0],d=l||yr(a),p=function(C){var T=o.apply(Pe,vp([C],s));return r&&v?T[0]:T};d&&n&&typeof u=="function"&&u.length!=1&&(l=d=!1);var v=this.__chain__,y=!!this.__actions__.length,w=i&&!v,b=l&&!y;if(!i&&d){a=b?a:new Yr(this);var k=e.apply(a,s);return k.__actions__.push({func:_1,args:[p],thisArg:void 0}),new ku(k,v)}return w&&b?e.apply(this,s):(k=this.thru(p),w?r?k.value()[0]:k.value():k)})});Mu(["pop","push","shift","sort","splice","unshift"],function(e){var t=QOe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Pe.prototype[e]=function(){var o=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(yr(i)?i:[],o)}return this[n](function(a){return t.apply(yr(a)?a:[],o)})}});bf(Yr.prototype,function(e,t){var n=Pe[t];if(n){var r=n.name+"";vW.call(py,r)||(py[r]=[]),py[r].push({name:t,func:n})}});py[aC(void 0,VOe).name]=[{name:"wrapper",func:void 0}];Yr.prototype.clone=$Oe;Yr.prototype.reverse=AOe;Yr.prototype.value=LOe;Pe.prototype.at=Of.at;Pe.prototype.chain=Of.wrapperChain;Pe.prototype.commit=Of.commit;Pe.prototype.next=Of.next;Pe.prototype.plant=Of.plant;Pe.prototype.reverse=Of.reverse;Pe.prototype.toJSON=Pe.prototype.valueOf=Pe.prototype.value=Of.value;Pe.prototype.first=Pe.prototype.head;jL&&(Pe.prototype[jL]=Of.toIterator);const Bo=e=>e===void 0,Uo=e=>typeof e=="boolean",en=e=>typeof e=="number",fu=e=>!e&&e!==0||xt(e)&&e.length===0||Pn(e)&&!Object.keys(e).length,Rl=e=>typeof Element=="undefined"?!1:e instanceof Element,av=e=>Vi(e),ZOe=e=>Gt(e)?!Number.isNaN(Number(e)):!1,SC=e=>e===window,Gh=e=>tr?window.requestAnimationFrame(e):setTimeout(e,16),sv=e=>tr?window.cancelAnimationFrame(e):clearTimeout(e),RI=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Jc=e=>l1(e),Ny=e=>Object.keys(e),UOe=e=>Object.entries(e),ek=(e,t,n)=>({get value(){return Ao(e,t,n)},set value(r){oW(e,t,r)}});class HOe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function $i(e,t){throw new HOe(`[${e}] ${t}`)}const mW=(e="")=>e.split(" ").filter(t=>!!t.trim()),Us=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},gu=(e,t)=>{!e||!t.trim()||e.classList.add(...mW(t))},os=(e,t)=>{!e||!t.trim()||e.classList.remove(...mW(t))},Eh=(e,t)=>{var n;if(!tr||!e||!t)return"";let r=xu(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function Vo(e,t="px"){if(!e)return"";if(en(e)||ZOe(e))return`${e}${t}`;if(Gt(e))return e}const XOe=(e,t)=>{if(!tr)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Eh(e,n);return["scroll","auto","overlay"].some(o=>r.includes(o))},NI=(e,t)=>{if(!tr)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(XOe(n,t))return n;n=n.parentNode}return n};let ix;const yW=e=>{var t;if(!tr)return 0;if(ix!==void 0)return ix;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const i=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),ix=r-i,ix};function II(e,t){if(!tr)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const o=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=o+t.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;o<a?e.scrollTop=o:i>s&&(e.scrollTop=i-e.clientHeight)}function GOe(e,t,n,r,o){const i=Date.now();let a;const s=()=>{const u=Date.now()-i,d=hae(u>r?r:u,t,n,r);SC(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,u<r?a=Gh(s):typeof o=="function"&&o()};return s(),()=>{a&&sv(a)}}const BL=(e,t)=>SC(t)?e.ownerDocument.documentElement:t,VL=e=>SC(e)?window.scrollY:e.scrollTop,ax=e=>{if(!tr||e==="")return null;if(Gt(e))try{return document.querySelector(e)}catch{return null}return e};/*! Element Plus Icons Vue v2.3.1 */var qOe=Se({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Cd=qOe,KOe=Se({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),qh=KOe,JOe=Se({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Ss=JOe,e1e=Se({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),DI=e1e,t1e=Se({name:"Back",__name:"back",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),ve("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),n1e=t1e,r1e=Se({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),o1e=r1e,i1e=Se({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),jI=i1e,a1e=Se({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),s1e=a1e,l1e=Se({name:"Check",__name:"check",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),h0=l1e,u1e=Se({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),c1e=u1e,f1e=Se({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ve("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),LI=f1e,d1e=Se({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),BI=d1e,h1e=Se({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),ve("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),_p=h1e,p1e=Se({name:"Clock",__name:"clock",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ve("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),ve("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),bW=p1e,g1e=Se({name:"Close",__name:"close",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),el=g1e,v1e=Se({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),Kh=v1e,m1e=Se({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),Jh=m1e,y1e=Se({name:"Delete",__name:"delete",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),_W=y1e,b1e=Se({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),_1e=b1e,O1e=Se({name:"Document",__name:"document",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),w1e=O1e,S1e=Se({name:"Edit",__name:"edit",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),ve("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),x1e=S1e,k1e=Se({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),OW=k1e,C1e=Se({name:"Hide",__name:"hide",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),ve("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),E1e=C1e,T1e=Se({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),VI=T1e,P1e=Se({name:"Loading",__name:"loading",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),cf=P1e,$1e=Se({name:"Minus",__name:"minus",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),A1e=$1e,M1e=Se({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Y_=M1e,R1e=Se({name:"More",__name:"more",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),N1e=R1e,I1e=Se({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),D1e=I1e,j1e=Se({name:"Plus",__name:"plus",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Bk=j1e,L1e=Se({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),B1e=L1e,V1e=Se({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),F1e=V1e,z1e=Se({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),wW=z1e,Q1e=Se({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),W1e=Q1e,Y1e=Se({name:"Search",__name:"search",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),SW=Y1e,Z1e=Se({name:"Setting",__name:"setting",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),U1e=Z1e,H1e=Se({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),X1e=H1e,G1e=Se({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),q1e=G1e,K1e=Se({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),sx=K1e,J1e=Se({name:"Star",__name:"star",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),ewe=J1e,twe=Se({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),xW=twe,nwe=Se({name:"View",__name:"view",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),kW=nwe,rwe=Se({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),xC=rwe,owe=Se({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),CW=owe,iwe=Se({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(Z(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),awe=iwe;const EW="__epPropKey",Ie=e=>e,swe=e=>Pn(e)&&!!e[EW],mc=(e,t)=>{if(!Pn(e)||swe(e))return e;const{values:n,required:r,default:o,type:i,validator:a}=e,l={type:i,required:!!r,validator:n||a?u=>{let d=!1,p=[];if(n&&(p=Array.from(n),ir(e,"default")&&p.push(o),d||(d=p.includes(u))),a&&(d||(d=a(u))),!d&&p.length>0){const v=[...new Set(p)].map(y=>JSON.stringify(y)).join(", ");Kre(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[EW]:!0};return ir(e,"default")&&(l.default=o),l},pt=e=>Ry(Object.entries(e).map(([t,n])=>[t,mc(n,t)])),Fr=Ie([String,Object,Function]),FI={Close:el},zI={Close:el,SuccessFilled:xW,InfoFilled:VI,WarningFilled:xC,CircleCloseFilled:BI},ep={success:xW,warning:xC,error:BI,info:VI},QI={validating:cf,success:LI,error:_p},pn=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},TW=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),lwe=(e,t)=>(e.install=n=>{n.directive(t,e)},e),So=e=>(e.install=Br,e),kC=(...e)=>t=>{e.forEach(n=>{nn(n)?n(t):n.value=t})},Qt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},uwe=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],A$=["sun","mon","tue","wed","thu","fri","sat"],En="update:modelValue",ao="change",xs="input",FL=Symbol("INSTALLED_KEY"),wf=["","default","small","large"],PW=e=>["",...wf].includes(e);var lu=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(lu||{});function aM(e){return bo(e)&&e.type===Pt}function cwe(e){return bo(e)&&e.type===ws}function fwe(e){return bo(e)&&!aM(e)&&!cwe(e)}const dwe=e=>{if(!bo(e))return{};const t=e.props||{},n=(bo(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(o=>{ir(n[o],"default")&&(r[o]=n[o].default)}),Object.keys(t).forEach(o=>{r[xu(o)]=t[o]}),r},hwe=e=>{if(!xt(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Lh=e=>{const t=xt(e)?e:[e],n=[];return t.forEach(r=>{var o;xt(r)?n.push(...Lh(r)):bo(r)&&xt(r.children)?n.push(...Lh(r.children)):(n.push(r),bo(r)&&((o=r.component)==null?void 0:o.subTree)&&n.push(...Lh(r.component.subTree)))}),n},zL=e=>[...new Set(e)],Os=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],pwe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Oo=e=>e;function gwe(e){let t=0;const n=(...r)=>{t&&sv(t),t=Gh(()=>{e(...r),t=0})};return n.cancel=()=>{sv(t),t=0},n}const vwe=["class","style"],mwe=/^on[A-Z]/,WI=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=W(()=>((n==null?void 0:n.value)||[]).concat(vwe)),o=Cn();return W(o?()=>{var i;return Ry(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&mwe.test(a))))}:()=>({}))},Bh=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},a)=>{at(()=>m(a),s=>{},{immediate:!0})},$W=(e,t,n,r)=>{let o={offsetX:0,offsetY:0};const i=u=>{const d=u.clientX,p=u.clientY,{offsetX:v,offsetY:y}=o,w=e.value.getBoundingClientRect(),b=w.left,k=w.top,C=w.width,T=w.height,$=document.documentElement.clientWidth,P=document.documentElement.clientHeight,A=-b+v,R=-k+y,B=$-b-C+v,N=P-k-T+y,I=L=>{let z=v+L.clientX-d,q=y+L.clientY-p;r!=null&&r.value||(z=Math.min(Math.max(z,A),B),q=Math.min(Math.max(q,R),N)),o={offsetX:z,offsetY:q},e.value&&(e.value.style.transform=`translate(${Vo(z)}, ${Vo(q)})`)},D=()=>{document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",D)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",D)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)},l=()=>{o={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return vn(()=>{Ia(()=>{n.value?a():s()})}),Ur(()=>{s()}),{resetPostion:l}};var ywe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const bwe=e=>(t,n)=>_we(t,n,m(e)),_we=(e,t,n)=>Ao(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var i;return`${(i=t==null?void 0:t[o])!=null?i:`{${o}}`}`}),Owe=e=>{const t=W(()=>m(e).name),n=Jr(e)?e:ee(e);return{lang:t,locale:n,t:bwe(e)}},AW=Symbol("localeContextKey"),rr=e=>{const t=e||Tt(AW,ee());return Owe(W(()=>t.value||ywe))},Z_="el",wwe="is-",Sg=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},MW=Symbol("namespaceContextKey"),YI=e=>{const t=e||(Cn()?Tt(MW,ee(Z_)):ee(Z_));return W(()=>m(t)||Z_)},lt=(e,t)=>{const n=YI(t);return{namespace:n,b:(b="")=>Sg(n.value,e,b,"",""),e:b=>b?Sg(n.value,e,"",b,""):"",m:b=>b?Sg(n.value,e,"","",b):"",be:(b,k)=>b&&k?Sg(n.value,e,b,k,""):"",em:(b,k)=>b&&k?Sg(n.value,e,"",b,k):"",bm:(b,k)=>b&&k?Sg(n.value,e,b,"",k):"",bem:(b,k,C)=>b&&k&&C?Sg(n.value,e,b,k,C):"",is:(b,...k)=>{const C=k.length>=1?k[0]:!0;return b&&C?`${wwe}${b}`:""},cssVar:b=>{const k={};for(const C in b)b[C]&&(k[`--${n.value}-${C}`]=b[C]);return k},cssVarName:b=>`--${n.value}-${b}`,cssVarBlock:b=>{const k={};for(const C in b)b[C]&&(k[`--${n.value}-${e}-${C}`]=b[C]);return k},cssVarBlockName:b=>`--${n.value}-${e}-${b}`}},ZI=(e,t={})=>{Jr(e)||$i("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||lt("popup"),r=W(()=>n.bm("parent","hidden"));if(!tr||Us(document.body,r.value))return;let o=0,i=!1,a="0";const s=()=>{setTimeout(()=>{os(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=a)},200)};at(e,l=>{if(!l){s();return}i=!Us(document.body,r.value),i&&(a=document.body.style.width),o=yW(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=Eh(document.body,"overflowY");o>0&&(u||d==="scroll")&&i&&(document.body.style.width=`calc(100% - ${o}px)`),gu(document.body,r.value)}),jF(()=>s())},Swe=mc({type:Ie(Boolean),default:null}),xwe=mc({type:Ie(Function)}),kwe=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:Swe,[n]:xwe};return{useModelToggle:({indicator:a,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:d,onHide:p})=>{const v=Cn(),{emit:y}=v,w=v.props,b=W(()=>nn(w[n])),k=W(()=>w[e]===null),C=B=>{a.value!==!0&&(a.value=!0,s&&(s.value=B),nn(d)&&d(B))},T=B=>{a.value!==!1&&(a.value=!1,s&&(s.value=B),nn(p)&&p(B))},$=B=>{if(w.disabled===!0||nn(u)&&!u())return;const N=b.value&&tr;N&&y(t,!0),(k.value||!N)&&C(B)},P=B=>{if(w.disabled===!0||!tr)return;const N=b.value&&tr;N&&y(t,!1),(k.value||!N)&&T(B)},A=B=>{!Uo(B)||(w.disabled&&B?b.value&&y(t,!1):a.value!==B&&(B?C():T()))},R=()=>{a.value?P():$()};return at(()=>w[e],A),l&&v.appContext.config.globalProperties.$route!==void 0&&at(()=>({...v.proxy.$route}),()=>{l.value&&a.value&&P()}),vn(()=>{A(w[e])}),{hide:P,show:$,toggle:R,hasUpdateHandler:b}},useModelToggleProps:o,useModelToggleEmits:r}},RW=e=>{const t=Cn();return W(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var Gs="top",Tu="bottom",Pu="right",qs="left",UI="auto",O1=[Gs,Tu,Pu,qs],Iy="start",EO="end",Cwe="clippingParents",NW="viewport",v_="popper",Ewe="reference",QL=O1.reduce(function(e,t){return e.concat([t+"-"+Iy,t+"-"+EO])},[]),Ov=[].concat(O1,[UI]).reduce(function(e,t){return e.concat([t,t+"-"+Iy,t+"-"+EO])},[]),Twe="beforeRead",Pwe="read",$we="afterRead",Awe="beforeMain",Mwe="main",Rwe="afterMain",Nwe="beforeWrite",Iwe="write",Dwe="afterWrite",jwe=[Twe,Pwe,$we,Awe,Mwe,Rwe,Nwe,Iwe,Dwe];function ff(e){return e?(e.nodeName||"").toLowerCase():null}function yc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dy(e){var t=yc(e).Element;return e instanceof t||e instanceof Element}function wu(e){var t=yc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HI(e){if(typeof ShadowRoot=="undefined")return!1;var t=yc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Lwe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!wu(i)||!ff(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Bwe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!wu(o)||!ff(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var IW={name:"applyStyles",enabled:!0,phase:"write",fn:Lwe,effect:Bwe,requires:["computeStyles"]};function sf(e){return e.split("-")[0]}var Hg=Math.max,Vk=Math.min,jy=Math.round;function Ly(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(wu(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=jy(n.width)/a||1),i>0&&(o=jy(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function XI(e){var t=Ly(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function DW(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HI(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fd(e){return yc(e).getComputedStyle(e)}function Vwe(e){return["table","td","th"].indexOf(ff(e))>=0}function Op(e){return((Dy(e)?e.ownerDocument:e.document)||window.document).documentElement}function CC(e){return ff(e)==="html"?e:e.assignedSlot||e.parentNode||(HI(e)?e.host:null)||Op(e)}function WL(e){return!wu(e)||fd(e).position==="fixed"?null:e.offsetParent}function Fwe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&wu(e)){var r=fd(e);if(r.position==="fixed")return null}var o=CC(e);for(HI(o)&&(o=o.host);wu(o)&&["html","body"].indexOf(ff(o))<0;){var i=fd(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function w1(e){for(var t=yc(e),n=WL(e);n&&Vwe(n)&&fd(n).position==="static";)n=WL(n);return n&&(ff(n)==="html"||ff(n)==="body"&&fd(n).position==="static")?t:n||Fwe(e)||t}function GI(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function U_(e,t,n){return Hg(e,Vk(t,n))}function zwe(e,t,n){var r=U_(e,t,n);return r>n?n:r}function jW(){return{top:0,right:0,bottom:0,left:0}}function LW(e){return Object.assign({},jW(),e)}function BW(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Qwe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,LW(typeof e!="number"?e:BW(e,O1))};function Wwe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=sf(n.placement),l=GI(s),u=[qs,Pu].indexOf(s)>=0,d=u?"height":"width";if(!(!i||!a)){var p=Qwe(o.padding,n),v=XI(i),y=l==="y"?Gs:qs,w=l==="y"?Tu:Pu,b=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],k=a[l]-n.rects.reference[l],C=w1(i),T=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,$=b/2-k/2,P=p[y],A=T-v[d]-p[w],R=T/2-v[d]/2+$,B=U_(P,R,A),N=l;n.modifiersData[r]=(t={},t[N]=B,t.centerOffset=B-R,t)}}function Ywe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!DW(t.elements.popper,o)||(t.elements.arrow=o))}var Zwe={name:"arrow",enabled:!0,phase:"main",fn:Wwe,effect:Ywe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function By(e){return e.split("-")[1]}var Uwe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hwe(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:jy(t*o)/o||0,y:jy(n*o)/o||0}}function YL(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,v=a.x,y=v===void 0?0:v,w=a.y,b=w===void 0?0:w,k=typeof d=="function"?d({x:y,y:b}):{x:y,y:b};y=k.x,b=k.y;var C=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),$=qs,P=Gs,A=window;if(u){var R=w1(n),B="clientHeight",N="clientWidth";if(R===yc(n)&&(R=Op(n),fd(R).position!=="static"&&s==="absolute"&&(B="scrollHeight",N="scrollWidth")),R=R,o===Gs||(o===qs||o===Pu)&&i===EO){P=Tu;var I=p&&R===A&&A.visualViewport?A.visualViewport.height:R[B];b-=I-r.height,b*=l?1:-1}if(o===qs||(o===Gs||o===Tu)&&i===EO){$=Pu;var D=p&&R===A&&A.visualViewport?A.visualViewport.width:R[N];y-=D-r.width,y*=l?1:-1}}var L=Object.assign({position:s},u&&Uwe),z=d===!0?Hwe({x:y,y:b}):{x:y,y:b};if(y=z.x,b=z.y,l){var q;return Object.assign({},L,(q={},q[P]=T?"0":"",q[$]=C?"0":"",q.transform=(A.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",q))}return Object.assign({},L,(t={},t[P]=T?b+"px":"",t[$]=C?y+"px":"",t.transform="",t))}function Xwe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:sf(t.placement),variation:By(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,YL(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,YL(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var VW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xwe,data:{}},lx={passive:!0};function Gwe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=yc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,lx)}),s&&l.addEventListener("resize",n.update,lx),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,lx)}),s&&l.removeEventListener("resize",n.update,lx)}}var FW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Gwe,data:{}},qwe={left:"right",right:"left",bottom:"top",top:"bottom"};function tk(e){return e.replace(/left|right|bottom|top/g,function(t){return qwe[t]})}var Kwe={start:"end",end:"start"};function ZL(e){return e.replace(/start|end/g,function(t){return Kwe[t]})}function qI(e){var t=yc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function KI(e){return Ly(Op(e)).left+qI(e).scrollLeft}function Jwe(e){var t=yc(e),n=Op(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+KI(e),y:s}}function eSe(e){var t,n=Op(e),r=qI(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Hg(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Hg(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+KI(e),l=-r.scrollTop;return fd(o||n).direction==="rtl"&&(s+=Hg(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function JI(e){var t=fd(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zW(e){return["html","body","#document"].indexOf(ff(e))>=0?e.ownerDocument.body:wu(e)&&JI(e)?e:zW(CC(e))}function H_(e,t){var n;t===void 0&&(t=[]);var r=zW(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=yc(r),a=o?[i].concat(i.visualViewport||[],JI(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(H_(CC(a)))}function sM(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tSe(e){var t=Ly(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function UL(e,t){return t===NW?sM(Jwe(e)):Dy(t)?tSe(t):sM(eSe(Op(e)))}function nSe(e){var t=H_(CC(e)),n=["absolute","fixed"].indexOf(fd(e).position)>=0,r=n&&wu(e)?w1(e):e;return Dy(r)?t.filter(function(o){return Dy(o)&&DW(o,r)&&ff(o)!=="body"}):[]}function rSe(e,t,n){var r=t==="clippingParents"?nSe(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce(function(s,l){var u=UL(e,l);return s.top=Hg(u.top,s.top),s.right=Vk(u.right,s.right),s.bottom=Vk(u.bottom,s.bottom),s.left=Hg(u.left,s.left),s},UL(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function QW(e){var t=e.reference,n=e.element,r=e.placement,o=r?sf(r):null,i=r?By(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Gs:l={x:a,y:t.y-n.height};break;case Tu:l={x:a,y:t.y+t.height};break;case Pu:l={x:t.x+t.width,y:s};break;case qs:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?GI(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Iy:l[u]=l[u]-(t[d]/2-n[d]/2);break;case EO:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function TO(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,a=i===void 0?Cwe:i,s=n.rootBoundary,l=s===void 0?NW:s,u=n.elementContext,d=u===void 0?v_:u,p=n.altBoundary,v=p===void 0?!1:p,y=n.padding,w=y===void 0?0:y,b=LW(typeof w!="number"?w:BW(w,O1)),k=d===v_?Ewe:v_,C=e.rects.popper,T=e.elements[v?k:d],$=rSe(Dy(T)?T:T.contextElement||Op(e.elements.popper),a,l),P=Ly(e.elements.reference),A=QW({reference:P,element:C,strategy:"absolute",placement:o}),R=sM(Object.assign({},C,A)),B=d===v_?R:P,N={top:$.top-B.top+b.top,bottom:B.bottom-$.bottom+b.bottom,left:$.left-B.left+b.left,right:B.right-$.right+b.right},I=e.modifiersData.offset;if(d===v_&&I){var D=I[o];Object.keys(N).forEach(function(L){var z=[Pu,Tu].indexOf(L)>=0?1:-1,q=[Gs,Tu].indexOf(L)>=0?"y":"x";N[L]+=D[q]*z})}return N}function oSe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Ov:l,d=By(r),p=d?s?QL:QL.filter(function(w){return By(w)===d}):O1,v=p.filter(function(w){return u.indexOf(w)>=0});v.length===0&&(v=p);var y=v.reduce(function(w,b){return w[b]=TO(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[sf(b)],w},{});return Object.keys(y).sort(function(w,b){return y[w]-y[b]})}function iSe(e){if(sf(e)===UI)return[];var t=tk(e);return[ZL(e),t,ZL(t)]}function aSe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,w=y===void 0?!0:y,b=n.allowedAutoPlacements,k=t.options.placement,C=sf(k),T=C===k,$=l||(T||!w?[tk(k)]:iSe(k)),P=[k].concat($).reduce(function(Be,De){return Be.concat(sf(De)===UI?oSe(t,{placement:De,boundary:d,rootBoundary:p,padding:u,flipVariations:w,allowedAutoPlacements:b}):De)},[]),A=t.rects.reference,R=t.rects.popper,B=new Map,N=!0,I=P[0],D=0;D<P.length;D++){var L=P[D],z=sf(L),q=By(L)===Iy,ae=[Gs,Tu].indexOf(z)>=0,K=ae?"width":"height",H=TO(t,{placement:L,boundary:d,rootBoundary:p,altBoundary:v,padding:u}),ne=ae?q?Pu:qs:q?Tu:Gs;A[K]>R[K]&&(ne=tk(ne));var X=tk(ne),V=[];if(i&&V.push(H[z]<=0),s&&V.push(H[ne]<=0,H[X]<=0),V.every(function(Be){return Be})){I=L,N=!1;break}B.set(L,V)}if(N)for(var G=w?3:1,se=function(Be){var De=P.find(function(ze){var $e=B.get(ze);if($e)return $e.slice(0,Be).every(function(_e){return _e})});if(De)return I=De,"break"},he=G;he>0;he--){var pe=se(he);if(pe==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}var sSe={name:"flip",enabled:!0,phase:"main",fn:aSe,requiresIfExists:["offset"],data:{_skip:!1}};function HL(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function XL(e){return[Gs,Pu,Tu,qs].some(function(t){return e[t]>=0})}function lSe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=TO(t,{elementContext:"reference"}),s=TO(t,{altBoundary:!0}),l=HL(a,r),u=HL(s,o,i),d=XL(l),p=XL(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var uSe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lSe};function cSe(e,t,n){var r=sf(e),o=[qs,Gs].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[qs,Pu].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function fSe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Ov.reduce(function(d,p){return d[p]=cSe(p,t.rects,i),d},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var dSe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fSe};function hSe(e){var t=e.state,n=e.name;t.modifiersData[n]=QW({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var WW={name:"popperOffsets",enabled:!0,phase:"read",fn:hSe,data:{}};function pSe(e){return e==="x"?"y":"x"}function gSe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,v=n.tether,y=v===void 0?!0:v,w=n.tetherOffset,b=w===void 0?0:w,k=TO(t,{boundary:l,rootBoundary:u,padding:p,altBoundary:d}),C=sf(t.placement),T=By(t.placement),$=!T,P=GI(C),A=pSe(P),R=t.modifiersData.popperOffsets,B=t.rects.reference,N=t.rects.popper,I=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,D=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(R){if(i){var q,ae=P==="y"?Gs:qs,K=P==="y"?Tu:Pu,H=P==="y"?"height":"width",ne=R[P],X=ne+k[ae],V=ne-k[K],G=y?-N[H]/2:0,se=T===Iy?B[H]:N[H],he=T===Iy?-N[H]:-B[H],pe=t.elements.arrow,Be=y&&pe?XI(pe):{width:0,height:0},De=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jW(),ze=De[ae],$e=De[K],_e=U_(0,B[H],Be[H]),me=$?B[H]/2-G-_e-ze-D.mainAxis:se-_e-ze-D.mainAxis,Re=$?-B[H]/2+G+_e+$e+D.mainAxis:he+_e+$e+D.mainAxis,we=t.elements.arrow&&w1(t.elements.arrow),fe=we?P==="y"?we.clientTop||0:we.clientLeft||0:0,oe=(q=L==null?void 0:L[P])!=null?q:0,ke=ne+me-oe-fe,We=ne+Re-oe,et=U_(y?Vk(X,ke):X,ne,y?Hg(V,We):V);R[P]=et,z[P]=et-ne}if(s){var Ve,Me=P==="x"?Gs:qs,Ke=P==="x"?Tu:Pu,be=R[A],qe=A==="y"?"height":"width",ct=be+k[Me],Je=be-k[Ke],Xe=[Gs,qs].indexOf(C)!==-1,gt=(Ve=L==null?void 0:L[A])!=null?Ve:0,Ct=Xe?ct:be-B[qe]-N[qe]-gt+D.altAxis,Zt=Xe?be+B[qe]+N[qe]-gt-D.altAxis:Je,Et=y&&Xe?zwe(Ct,be,Zt):U_(y?Ct:ct,be,y?Zt:Je);R[A]=Et,z[A]=Et-be}t.modifiersData[r]=z}}var vSe={name:"preventOverflow",enabled:!0,phase:"main",fn:gSe,requiresIfExists:["offset"]};function mSe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ySe(e){return e===yc(e)||!wu(e)?qI(e):mSe(e)}function bSe(e){var t=e.getBoundingClientRect(),n=jy(t.width)/e.offsetWidth||1,r=jy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function _Se(e,t,n){n===void 0&&(n=!1);var r=wu(t),o=wu(t)&&bSe(t),i=Op(t),a=Ly(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ff(t)!=="body"||JI(i))&&(s=ySe(t)),wu(t)?(l=Ly(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=KI(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function OSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function wSe(e){var t=OSe(e);return jwe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function SSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xSe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var GL={placement:"bottom",modifiers:[],strategy:"absolute"};function qL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function e3(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?GL:o;return function(a,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},GL,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},d=[],p=!1,v={state:u,setOptions:function(b){var k=typeof b=="function"?b(u.options):b;w(),u.options=Object.assign({},i,u.options,k),u.scrollParents={reference:Dy(a)?H_(a):a.contextElement?H_(a.contextElement):[],popper:H_(s)};var C=wSe(xSe([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(T){return T.enabled}),y(),v.update()},forceUpdate:function(){if(!p){var b=u.elements,k=b.reference,C=b.popper;if(qL(k,C)){u.rects={reference:_Se(k,w1(C),u.options.strategy==="fixed"),popper:XI(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var T=0;T<u.orderedModifiers.length;T++){if(u.reset===!0){u.reset=!1,T=-1;continue}var $=u.orderedModifiers[T],P=$.fn,A=$.options,R=A===void 0?{}:A,B=$.name;typeof P=="function"&&(u=P({state:u,options:R,name:B,instance:v})||u)}}}},update:SSe(function(){return new Promise(function(b){v.forceUpdate(),b(u)})}),destroy:function(){w(),p=!0}};if(!qL(a,s))return v;v.setOptions(l).then(function(b){!p&&l.onFirstUpdate&&l.onFirstUpdate(b)});function y(){u.orderedModifiers.forEach(function(b){var k=b.name,C=b.options,T=C===void 0?{}:C,$=b.effect;if(typeof $=="function"){var P=$({state:u,name:k,instance:v,options:T}),A=function(){};d.push(P||A)}})}function w(){d.forEach(function(b){return b()}),d=[]}return v}}e3();var kSe=[FW,WW,VW,IW];e3({defaultModifiers:kSe});var CSe=[FW,WW,VW,IW,dSe,sSe,vSe,Zwe,uSe],ESe=e3({defaultModifiers:CSe});const TSe=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=PSe(l);Object.assign(a.value,u)},requires:["computeStyles"]},o=W(()=>{const{onFirstUpdate:l,placement:u,strategy:d,modifiers:p}=m(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:d||"absolute",modifiers:[...p||[],r,{name:"applyStyles",enabled:!1}]}}),i=Kr(),a=ee({styles:{popper:{position:m(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{!i.value||(i.value.destroy(),i.value=void 0)};return at(o,l=>{const u=m(i);u&&u.setOptions(l)},{deep:!0}),at([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=ESe(l,u,m(o)))}),Ur(()=>{s()}),{state:W(()=>{var l;return{...((l=m(i))==null?void 0:l.state)||{}}}),styles:W(()=>m(a).styles),attributes:W(()=>m(a).attributes),update:()=>{var l;return(l=m(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=m(i))==null?void 0:l.forceUpdate()},instanceRef:W(()=>m(i))}};function PSe(e){const t=Object.keys(e.elements),n=Ry(t.map(o=>[o,e.styles[o]||{}])),r=Ry(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const t3=e=>{if(!e)return{onClick:Br,onMousedown:Br,onMouseup:Br};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}},$Se=(e,t=0)=>{if(t===0)return e;const n=ee(!1);let r=null;const o=()=>{r&&clearTimeout(r),r=setTimeout(()=>{n.value=e.value},t)};return vn(o),at(()=>e.value,i=>{i?o():n.value=i}),n};function KL(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return c1(()=>n()),{registerTimeout:t,cancelTimeout:n}}const JL={prefix:Math.floor(Math.random()*1e4),current:0},ASe=Symbol("elIdInjection"),n3=()=>Cn()?Tt(ASe,JL):JL,ja=e=>{const t=n3(),n=YI();return W(()=>m(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Xm=[];const e6=e=>{const t=e;t.key===Qt.esc&&Xm.forEach(n=>n(t))},MSe=e=>{vn(()=>{Xm.length===0&&document.addEventListener("keydown",e6),tr&&Xm.push(e)}),Ur(()=>{Xm=Xm.filter(t=>t!==e),Xm.length===0&&tr&&document.removeEventListener("keydown",e6)})};let t6;const YW=()=>{const e=YI(),t=n3(),n=W(()=>`${e.value}-popper-container-${t.prefix}`),r=W(()=>`#${n.value}`);return{id:n,selector:r}},RSe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},NSe=()=>{const{id:e,selector:t}=YW();return q2(()=>{!tr||!t6&&!document.body.querySelector(t.value)&&(t6=RSe(e.value))}),{id:e,selector:t}},ISe=pt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),DSe=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:i}=KL(),{registerTimeout:a,cancelTimeout:s}=KL();return{onOpen:d=>{i(()=>{r(d);const p=m(n);en(p)&&p>0&&a(()=>{o(d)},p)},m(e))},onClose:d=>{s(),i(()=>{o(d)},m(t))}}},ZW=Symbol("elForwardRef"),jSe=e=>{Wn(ZW,{setForwardRef:n=>{e.value=n}})},LSe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),n6={current:0},r6=ee(0),UW=2e3,o6=Symbol("elZIndexContextKey"),HW=Symbol("zIndexContextKey"),p0=e=>{const t=Cn()?Tt(o6,n6):n6,n=e||(Cn()?Tt(HW,void 0):void 0),r=W(()=>{const a=m(n);return en(a)?a:UW}),o=W(()=>r.value+r6.value),i=()=>(t.current++,r6.value=t.current,o.value);return!tr&&Tt(o6),{initialZIndex:r,currentZIndex:o,nextZIndex:i}},Vy=Math.min,Xg=Math.max,Fk=Math.round,ux=Math.floor,tp=e=>({x:e,y:e}),BSe={left:"right",right:"left",bottom:"top",top:"bottom"},VSe={start:"end",end:"start"};function lM(e,t,n){return Xg(e,Vy(t,n))}function S1(e,t){return typeof e=="function"?e(t):e}function lv(e){return e.split("-")[0]}function x1(e){return e.split("-")[1]}function XW(e){return e==="x"?"y":"x"}function r3(e){return e==="y"?"height":"width"}function EC(e){return["top","bottom"].includes(lv(e))?"y":"x"}function o3(e){return XW(EC(e))}function FSe(e,t,n){n===void 0&&(n=!1);const r=x1(e),o=o3(e),i=r3(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=zk(a)),[a,zk(a)]}function zSe(e){const t=zk(e);return[uM(e),t,uM(t)]}function uM(e){return e.replace(/start|end/g,t=>VSe[t])}function QSe(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function WSe(e,t,n,r){const o=x1(e);let i=QSe(lv(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(uM)))),i}function zk(e){return e.replace(/left|right|bottom|top/g,t=>BSe[t])}function YSe(e){return{top:0,right:0,bottom:0,left:0,...e}}function GW(e){return typeof e!="number"?YSe(e):{top:e,right:e,bottom:e,left:e}}function Qk(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function i6(e,t,n){let{reference:r,floating:o}=e;const i=EC(t),a=o3(t),s=r3(a),l=lv(t),u=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,v=r[s]/2-o[s]/2;let y;switch(l){case"top":y={x:d,y:r.y-o.height};break;case"bottom":y={x:d,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-o.width,y:p};break;default:y={x:r.x,y:r.y}}switch(x1(t)){case"start":y[a]-=v*(n&&u?-1:1);break;case"end":y[a]+=v*(n&&u?-1:1);break}return y}const ZSe=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=i6(u,r,l),v=r,y={},w=0;for(let b=0;b<s.length;b++){const{name:k,fn:C}=s[b],{x:T,y:$,data:P,reset:A}=await C({x:d,y:p,initialPlacement:r,placement:v,strategy:o,middlewareData:y,rects:u,platform:a,elements:{reference:e,floating:t}});if(d=T!=null?T:d,p=$!=null?$:p,y={...y,[k]:{...y[k],...P}},A&&w<=50){w++,typeof A=="object"&&(A.placement&&(v=A.placement),A.rects&&(u=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:d,y:p}=i6(u,v,l)),b=-1;continue}}return{x:d,y:p,placement:v,strategy:o,middlewareData:y}};async function i3(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:v=!1,padding:y=0}=S1(t,e),w=GW(y),k=s[v?p==="floating"?"reference":"floating":p],C=Qk(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(k)))==null||n?k:k.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),T=p==="floating"?{...a.floating,x:r,y:o}:a.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),P=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},A=Qk(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:$,strategy:l}):T);return{top:(C.top-A.top+w.top)/P.y,bottom:(A.bottom-C.bottom+w.bottom)/P.y,left:(C.left-A.left+w.left)/P.x,right:(A.right-C.right+w.right)/P.x}}const qW=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=S1(e,t)||{};if(u==null)return{};const p=GW(d),v={x:n,y:r},y=o3(o),w=r3(y),b=await a.getDimensions(u),k=y==="y",C=k?"top":"left",T=k?"bottom":"right",$=k?"clientHeight":"clientWidth",P=i.reference[w]+i.reference[y]-v[y]-i.floating[w],A=v[y]-i.reference[y],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let B=R?R[$]:0;(!B||!await(a.isElement==null?void 0:a.isElement(R)))&&(B=s.floating[$]||i.floating[w]);const N=P/2-A/2,I=B/2-b[w]/2-1,D=Vy(p[C],I),L=Vy(p[T],I),z=D,q=B-b[w]-L,ae=B/2-b[w]/2+N,K=lM(z,ae,q),H=!l.arrow&&x1(o)!=null&&ae!=K&&i.reference[w]/2-(ae<z?D:L)-b[w]/2<0,ne=H?ae<z?ae-z:ae-q:0;return{[y]:v[y]+ne,data:{[y]:K,centerOffset:ae-K-ne,...H&&{alignmentOffset:ne}},reset:H}}}),USe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:b=!0,...k}=S1(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const C=lv(o),T=lv(s)===s,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),P=v||(T||!b?[zk(s)]:zSe(s));!v&&w!=="none"&&P.push(...WSe(s,b,w,$));const A=[s,...P],R=await i3(t,k),B=[];let N=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&B.push(R[C]),p){const z=FSe(o,a,$);B.push(R[z[0]],R[z[1]])}if(N=[...N,{placement:o,overflows:B}],!B.every(z=>z<=0)){var I,D;const z=(((I=i.flip)==null?void 0:I.index)||0)+1,q=A[z];if(q)return{data:{index:z,overflows:N},reset:{placement:q}};let ae=(D=N.filter(K=>K.overflows[0]<=0).sort((K,H)=>K.overflows[1]-H.overflows[1])[0])==null?void 0:D.placement;if(!ae)switch(y){case"bestFit":{var L;const K=(L=N.map(H=>[H.placement,H.overflows.filter(ne=>ne>0).reduce((ne,X)=>ne+X,0)]).sort((H,ne)=>H[1]-ne[1])[0])==null?void 0:L[0];K&&(ae=K);break}case"initialPlacement":ae=s;break}if(o!==ae)return{reset:{placement:ae}}}return{}}}};async function HSe(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=lv(n),s=x1(n),l=EC(n)==="y",u=["left","top"].includes(a)?-1:1,d=i&&l?-1:1,p=S1(t,e);let{mainAxis:v,crossAxis:y,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return s&&typeof w=="number"&&(y=s==="end"?w*-1:w),l?{x:y*d,y:v*u}:{x:v*u,y:y*d}}const KW=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await HSe(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},XSe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:k=>{let{x:C,y:T}=k;return{x:C,y:T}}},...l}=S1(e,t),u={x:n,y:r},d=await i3(t,l),p=EC(lv(o)),v=XW(p);let y=u[v],w=u[p];if(i){const k=v==="y"?"top":"left",C=v==="y"?"bottom":"right",T=y+d[k],$=y-d[C];y=lM(T,y,$)}if(a){const k=p==="y"?"top":"left",C=p==="y"?"bottom":"right",T=w+d[k],$=w-d[C];w=lM(T,w,$)}const b=s.fn({...t,[v]:y,[p]:w});return{...b,data:{x:b.x-n,y:b.y-r}}}}};function np(e){return JW(e)?(e.nodeName||"").toLowerCase():"#document"}function Nl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ed(e){var t;return(t=(JW(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function JW(e){return e instanceof Node||e instanceof Nl(e).Node}function dd(e){return e instanceof Element||e instanceof Nl(e).Element}function df(e){return e instanceof HTMLElement||e instanceof Nl(e).HTMLElement}function a6(e){return typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Nl(e).ShadowRoot}function k1(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$u(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function GSe(e){return["table","td","th"].includes(np(e))}function a3(e){const t=s3(),n=$u(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function qSe(e){let t=Fy(e);for(;df(t)&&!TC(t);){if(a3(t))return t;t=Fy(t)}return null}function s3(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function TC(e){return["html","body","#document"].includes(np(e))}function $u(e){return Nl(e).getComputedStyle(e)}function PC(e){return dd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Fy(e){if(np(e)==="html")return e;const t=e.assignedSlot||e.parentNode||a6(e)&&e.host||Ed(e);return a6(t)?t.host:t}function eY(e){const t=Fy(e);return TC(t)?e.ownerDocument?e.ownerDocument.body:e.body:df(t)&&k1(t)?t:eY(t)}function PO(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=eY(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Nl(o);return i?t.concat(a,a.visualViewport||[],k1(o)?o:[],a.frameElement&&n?PO(a.frameElement):[]):t.concat(o,PO(o,[],n))}function tY(e){const t=$u(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=df(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Fk(n)!==i||Fk(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function l3(e){return dd(e)?e:e.contextElement}function vy(e){const t=l3(e);if(!df(t))return tp(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tY(t);let a=(i?Fk(n.width):n.width)/r,s=(i?Fk(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const KSe=tp(0);function nY(e){const t=Nl(e);return!s3()||!t.visualViewport?KSe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function JSe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nl(e)?!1:t}function uv(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=l3(e);let a=tp(1);t&&(r?dd(r)&&(a=vy(r)):a=vy(e));const s=JSe(i,n,r)?nY(i):tp(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(i){const v=Nl(i),y=r&&dd(r)?Nl(r):r;let w=v.frameElement;for(;w&&r&&y!==v;){const b=vy(w),k=w.getBoundingClientRect(),C=$u(w),T=k.left+(w.clientLeft+parseFloat(C.paddingLeft))*b.x,$=k.top+(w.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,p*=b.y,l+=T,u+=$,w=Nl(w).frameElement}}return Qk({width:d,height:p,x:l,y:u})}function exe(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=df(n),i=Ed(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=tp(1);const l=tp(0);if((o||!o&&r!=="fixed")&&((np(n)!=="body"||k1(i))&&(a=PC(n)),df(n))){const u=uv(n);s=vy(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function txe(e){return Array.from(e.getClientRects())}function rY(e){return uv(Ed(e)).left+PC(e).scrollLeft}function nxe(e){const t=Ed(e),n=PC(e),r=e.ownerDocument.body,o=Xg(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xg(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+rY(e);const s=-n.scrollTop;return $u(r).direction==="rtl"&&(a+=Xg(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function rxe(e,t){const n=Nl(e),r=Ed(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=s3();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function oxe(e,t){const n=uv(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=df(e)?vy(e):tp(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:a,height:s,x:l,y:u}}function s6(e,t,n){let r;if(t==="viewport")r=rxe(e,n);else if(t==="document")r=nxe(Ed(e));else if(dd(t))r=oxe(t,n);else{const o=nY(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Qk(r)}function oY(e,t){const n=Fy(e);return n===t||!dd(n)||TC(n)?!1:$u(n).position==="fixed"||oY(n,t)}function ixe(e,t){const n=t.get(e);if(n)return n;let r=PO(e,[],!1).filter(s=>dd(s)&&np(s)!=="body"),o=null;const i=$u(e).position==="fixed";let a=i?Fy(e):e;for(;dd(a)&&!TC(a);){const s=$u(a),l=a3(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||k1(a)&&!l&&oY(e,a))?r=r.filter(d=>d!==a):o=s,a=Fy(a)}return t.set(e,r),r}function axe(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ixe(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,d)=>{const p=s6(t,d,o);return u.top=Xg(p.top,u.top),u.right=Vy(p.right,u.right),u.bottom=Vy(p.bottom,u.bottom),u.left=Xg(p.left,u.left),u},s6(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function sxe(e){return tY(e)}function lxe(e,t,n){const r=df(t),o=Ed(t),i=n==="fixed",a=uv(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=tp(0);if(r||!r&&!i)if((np(t)!=="body"||k1(o))&&(s=PC(t)),r){const u=uv(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=rY(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function l6(e,t){return!df(e)||$u(e).position==="fixed"?null:t?t(e):e.offsetParent}function iY(e,t){const n=Nl(e);if(!df(e))return n;let r=l6(e,t);for(;r&&GSe(r)&&$u(r).position==="static";)r=l6(r,t);return r&&(np(r)==="html"||np(r)==="body"&&$u(r).position==="static"&&!a3(r))?n:r||qSe(e)||n}const uxe=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||iY,i=this.getDimensions;return{reference:lxe(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function cxe(e){return $u(e).direction==="rtl"}const fxe={convertOffsetParentRelativeRectToViewportRelativeRect:exe,getDocumentElement:Ed,getClippingRect:axe,getOffsetParent:iY,getElementRects:uxe,getClientRects:txe,getDimensions:sxe,getScale:vy,isElement:dd,isRTL:cxe};function dxe(e,t){let n=null,r;const o=Ed(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:u,top:d,width:p,height:v}=e.getBoundingClientRect();if(s||t(),!p||!v)return;const y=ux(d),w=ux(o.clientWidth-(u+p)),b=ux(o.clientHeight-(d+v)),k=ux(u),T={rootMargin:-y+"px "+-w+"px "+-b+"px "+-k+"px",threshold:Xg(0,Vy(1,l))||1};let $=!0;function P(A){const R=A[0].intersectionRatio;if(R!==l){if(!$)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(P,{...T,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,T)}n.observe(e)}return a(!0),i}function hxe(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=l3(e),d=o||i?[...u?PO(u):[],...PO(t)]:[];d.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),i&&C.addEventListener("resize",n)});const p=u&&s?dxe(u,n):null;let v=-1,y=null;a&&(y=new ResizeObserver(C=>{let[T]=C;T&&T.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{y&&y.observe(t)})),n()}),u&&!l&&y.observe(u),y.observe(t));let w,b=l?uv(e):null;l&&k();function k(){const C=uv(e);b&&(C.x!==b.x||C.y!==b.y||C.width!==b.width||C.height!==b.height)&&n(),b=C,w=requestAnimationFrame(k)}return n(),()=>{d.forEach(C=>{o&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),p&&p(),y&&y.disconnect(),y=null,l&&cancelAnimationFrame(w)}}const aY=(e,t,n)=>{const r=new Map,o={platform:fxe,...n},i={...o.platform,_c:r};return ZSe(e,t,{...o,platform:i})};pt({});const pxe=e=>{if(!tr)return;if(!e)return e;const t=Zs(e);return t||(Jr(e)?t:e)},gxe=({middleware:e,placement:t,strategy:n})=>{const r=ee(),o=ee(),i=ee(),a=ee(),s=ee({}),l={x:i,y:a,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!tr)return;const d=pxe(r),p=Zs(o);if(!d||!p)return;const v=await aY(d,p,{placement:m(t),strategy:m(n),middleware:m(e)});Ny(l).forEach(y=>{l[y].value=v[y]})};return vn(()=>{Ia(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:o}},vxe=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=m(e);return r?qW({element:r,padding:t}).fn(n):{}}});function mxe(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:i,value:a}=e.value;if(o==null||i==null)return;const s=a.slice(0,Math.max(0,o)),l=a.slice(Math.max(0,i));t={selectionStart:o,selectionEnd:i,value:a,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:i,afterTxt:a,selectionStart:s}=t;if(i==null||a==null||s==null)return;let l=o.length;if(o.endsWith(a))l=o.length-a.length;else if(o.startsWith(i))l=i.length;else{const u=i[s-1],d=o.indexOf(u,s-1);d!==-1&&(l=d+1)}e.value.setSelectionRange(l,l)}return[n,r]}const yxe=(e,t,n)=>Lh(e.subTree).filter(i=>{var a;return bo(i)&&((a=i.type)==null?void 0:a.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),u3=(e,t)=>{const n={},r=Kr([]);return{children:r,addChild:a=>{n[a.uid]=a,r.value=yxe(e,t,n)},removeChild:a=>{delete n[a],r.value=r.value.filter(s=>s.uid!==a)}}},Ai=mc({type:String,values:wf,required:!1}),sY=Symbol("size"),lY=()=>{const e=Tt(sY,{});return W(()=>m(e.size)||"")};function C1(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:o}={}){const i=Cn(),{emit:a}=i,s=Kr(),l=ee(!1),u=v=>{(nn(t)?t(v):!1)||l.value||(l.value=!0,a("focus",v),n==null||n())},d=v=>{var y;(nn(r)?r(v):!1)||v.relatedTarget&&((y=s.value)==null?void 0:y.contains(v.relatedTarget))||(l.value=!1,a("blur",v),o==null||o())},p=()=>{var v,y;((v=s.value)==null?void 0:v.contains(document.activeElement))&&s.value!==document.activeElement||(y=e.value)==null||y.focus()};return at(s,v=>{v&&v.setAttribute("tabindex","-1")}),Ar(s,"focus",u,!0),Ar(s,"blur",d,!0),Ar(s,"click",p,!0),{isFocused:l,wrapperRef:s,handleFocus:u,handleBlur:d}}function $C({afterComposition:e,emit:t}){const n=ee(!1),r=s=>{t==null||t("compositionstart",s),n.value=!0},o=s=>{var l;t==null||t("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,d=u[u.length-1]||"";n.value=!pwe(d)},i=s=>{t==null||t("compositionend",s),n.value&&(n.value=!1,zt(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?i(s):o(s)},handleCompositionStart:r,handleCompositionUpdate:o,handleCompositionEnd:i}}const uY=Symbol("emptyValuesContextKey"),bxe=["",void 0,null],_xe=void 0,g0=pt({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>nn(e)?!e():!e}}),AC=(e,t)=>{const n=Cn()?Tt(uY,ee({})):ee({}),r=W(()=>e.emptyValues||n.value.emptyValues||bxe),o=W(()=>nn(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:nn(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:_xe),i=a=>r.value.includes(a);return r.value.includes(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:i}},Oxe=pt({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ha=e=>pu(Oxe,e),cY=Symbol(),Wk=ee();function MC(e,t=void 0){const n=Cn()?Tt(cY,Wk):Wk;return e?W(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function RC(e,t){const n=MC(),r=lt(e,W(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Z_})),o=rr(W(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=p0(W(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||UW})),a=W(()=>{var s;return m(t)||((s=n.value)==null?void 0:s.size)||""});return c3(W(()=>m(n)||{})),{ns:r,locale:o,zIndex:i,size:a}}const c3=(e,t,n=!1)=>{var r;const o=!!Cn(),i=o?MC():void 0,a=(r=t==null?void 0:t.provide)!=null?r:o?Wn:void 0;if(!a)return;const s=W(()=>{const l=m(e);return i!=null&&i.value?wxe(i.value,l):l});return a(cY,s),a(AW,W(()=>s.value.locale)),a(MW,W(()=>s.value.namespace)),a(HW,W(()=>s.value.zIndex)),a(sY,{size:W(()=>s.value.size||"")}),a(uY,W(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!Wk.value)&&(Wk.value=s.value),s},wxe=(e,t)=>{const n=[...new Set([...Ny(e),...Ny(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},Sxe=pt({a11y:{type:Boolean,default:!0},locale:{type:Ie(Object)},size:Ai,button:{type:Ie(Object)},experimentalFeatures:{type:Ie(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Ie(Object)},zIndex:Number,namespace:{type:String,default:"el"},...g0}),cM={},xxe=Se({name:"ElConfigProvider",props:Sxe,setup(e,{slots:t}){at(()=>e.message,r=>{Object.assign(cM,r!=null?r:{})},{immediate:!0,deep:!0});const n=c3(e);return()=>He(t,"default",{config:n==null?void 0:n.value})}}),kxe=pn(xxe),Cxe="2.8.0",Exe=(e=[])=>({version:Cxe,install:(n,r)=>{n[FL]||(n[FL]=!0,e.forEach(o=>n.use(o)),r&&c3(r,n,!0))}}),Txe=pt({zIndex:{type:Ie([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Pxe={scroll:({scrollTop:e,fixed:t})=>en(e)&&Uo(t),[ao]:e=>Uo(e)};var vt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const fY="ElAffix",$xe=Se({name:fY}),Axe=Se({...$xe,props:Txe,emits:Pxe,setup(e,{expose:t,emit:n}){const r=e,o=lt("affix"),i=Kr(),a=Kr(),s=Kr(),{height:l}=fae(),{height:u,width:d,top:p,bottom:v,update:y}=C5(a,{windowScroll:!1}),w=C5(i),b=ee(!1),k=ee(0),C=ee(0),T=W(()=>({height:b.value?`${u.value}px`:"",width:b.value?`${d.value}px`:""})),$=W(()=>{if(!b.value)return{};const R=r.offset?Vo(r.offset):0;return{height:`${u.value}px`,width:`${d.value}px`,top:r.position==="top"?R:"",bottom:r.position==="bottom"?R:"",transform:C.value?`translateY(${C.value}px)`:"",zIndex:r.zIndex}}),P=()=>{if(!!s.value)if(k.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const R=w.bottom.value-r.offset-u.value;b.value=r.offset>p.value&&w.bottom.value>0,C.value=R<0?R:0}else b.value=r.offset>p.value;else if(r.target){const R=l.value-w.top.value-r.offset-u.value;b.value=l.value-r.offset<v.value&&l.value>w.top.value,C.value=R<0?-R:0}else b.value=l.value-r.offset<v.value},A=()=>{y(),n("scroll",{scrollTop:k.value,fixed:b.value})};return at(b,R=>n("change",R)),vn(()=>{var R;r.target?(i.value=(R=document.querySelector(r.target))!=null?R:void 0,i.value||$i(fY,`Target does not exist: ${r.target}`)):i.value=document.documentElement,s.value=NI(a.value,!0),y()}),Ar(s,"scroll",A),Ia(P),t({update:P,updateRoot:y}),(R,B)=>(Z(),ce("div",{ref_key:"root",ref:a,class:J(m(o).b()),style:Vt(m(T))},[ve("div",{class:J({[m(o).m("fixed")]:b.value}),style:Vt(m($))},[He(R.$slots,"default")],6)],6))}});var Mxe=vt(Axe,[["__file","affix.vue"]]);const Rxe=pn(Mxe),Nxe=pt({size:{type:Ie([Number,String])},color:{type:String}}),Ixe=Se({name:"ElIcon",inheritAttrs:!1}),Dxe=Se({...Ixe,props:Nxe,setup(e){const t=e,n=lt("icon"),r=W(()=>{const{size:o,color:i}=t;return!o&&!i?{}:{fontSize:Bo(o)?void 0:Vo(o),"--color":i}});return(o,i)=>(Z(),ce("i",In({class:m(n).b(),style:m(r)},o.$attrs),[He(o.$slots,"default")],16))}});var jxe=vt(Dxe,[["__file","icon.vue"]]);const jt=pn(jxe),Lxe=["light","dark"],Bxe=pt({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Ny(ep),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Lxe,default:"light"}}),Vxe={close:e=>e instanceof MouseEvent},Fxe=Se({name:"ElAlert"}),zxe=Se({...Fxe,props:Bxe,emits:Vxe,setup(e,{emit:t}){const n=e,{Close:r}=zI,o=zi(),i=lt("alert"),a=ee(!0),s=W(()=>ep[n.type]),l=W(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!o.default}]),u=W(()=>({"with-description":n.description||o.default})),d=p=>{a.value=!1,t("close",p)};return(p,v)=>(Z(),Fe(Pi,{name:m(i).b("fade"),persisted:""},{default:ue(()=>[yn(ve("div",{class:J([m(i).b(),m(i).m(p.type),m(i).is("center",p.center),m(i).is(p.effect)]),role:"alert"},[p.showIcon&&m(s)?(Z(),Fe(m(jt),{key:0,class:J(m(l))},{default:ue(()=>[(Z(),Fe(Dn(m(s))))]),_:1},8,["class"])):je("v-if",!0),ve("div",{class:J(m(i).e("content"))},[p.title||p.$slots.title?(Z(),ce("span",{key:0,class:J([m(i).e("title"),m(u)])},[He(p.$slots,"title",{},()=>[St(ut(p.title),1)])],2)):je("v-if",!0),p.$slots.default||p.description?(Z(),ce("p",{key:1,class:J(m(i).e("description"))},[He(p.$slots,"default",{},()=>[St(ut(p.description),1)])],2)):je("v-if",!0),p.closable?(Z(),ce(Pt,{key:2},[p.closeText?(Z(),ce("div",{key:0,class:J([m(i).e("close-btn"),m(i).is("customed")]),onClick:d},ut(p.closeText),3)):(Z(),Fe(m(jt),{key:1,class:J(m(i).e("close-btn")),onClick:d},{default:ue(()=>[re(m(r))]),_:1},8,["class"]))],64)):je("v-if",!0)],2)],2),[[hr,a.value]])]),_:3},8,["name"]))}});var Qxe=vt(zxe,[["__file","alert.vue"]]);const dY=pn(Qxe),wv=Symbol("formContextKey"),hf=Symbol("formItemContextKey"),bi=(e,t={})=>{const n=ee(void 0),r=t.prop?n:RW("size"),o=t.global?n:lY(),i=t.form?{size:void 0}:Tt(wv,void 0),a=t.formItem?{size:void 0}:Tt(hf,void 0);return W(()=>r.value||m(e)||(a==null?void 0:a.size)||(i==null?void 0:i.size)||o.value||"")},Rs=e=>{const t=RW("disabled"),n=Tt(wv,void 0);return W(()=>t.value||m(e)||(n==null?void 0:n.disabled)||!1)},as=()=>{const e=Tt(wv,void 0),t=Tt(hf,void 0);return{form:e,formItem:t}},bc=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=ee(!1)),r||(r=ee(!1));const o=ee();let i;const a=W(()=>{var s;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return vn(()=>{i=at([xr(e,"id"),n],([s,l])=>{const u=s!=null?s:l?void 0:ja().value;u!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(r!=null&&r.value)&&!l&&u&&t.addInputId(u)),o.value=u)},{immediate:!0})}),hp(()=>{i&&i(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:a,inputId:o}},Wxe=pt({size:{type:String,values:wf},disabled:Boolean}),Yxe=pt({...Wxe,model:Object,rules:{type:Ie(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),Zxe={validate:(e,t,n)=>(xt(e)||Gt(e))&&Uo(t)&&Gt(n)};function Uxe(){const e=ee([]),t=W(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const a=e.value.indexOf(i);return a===-1&&t.value,a}function r(i,a){if(i&&a){const s=n(a);e.value.splice(s,1,i)}else i&&e.value.push(i)}function o(i){const a=n(i);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:o}}const cx=(e,t)=>{const n=Ma(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},Hxe="ElForm",Xxe=Se({name:Hxe}),Gxe=Se({...Xxe,props:Yxe,emits:Zxe,setup(e,{expose:t,emit:n}){const r=e,o=[],i=bi(),a=lt("form"),s=W(()=>{const{labelPosition:$,inline:P}=r;return[a.b(),a.m(i.value||"default"),{[a.m(`label-${$}`)]:$,[a.m("inline")]:P}]}),l=$=>o.find(P=>P.prop===$),u=$=>{o.push($)},d=$=>{$.prop&&o.splice(o.indexOf($),1)},p=($=[])=>{!r.model||cx(o,$).forEach(P=>P.resetField())},v=($=[])=>{cx(o,$).forEach(P=>P.clearValidate())},y=W(()=>!!r.model),w=$=>{if(o.length===0)return[];const P=cx(o,$);return P.length?P:[]},b=async $=>C(void 0,$),k=async($=[])=>{if(!y.value)return!1;const P=w($);if(P.length===0)return!0;let A={};for(const R of P)try{await R.validate("")}catch(B){A={...A,...B}}return Object.keys(A).length===0?!0:Promise.reject(A)},C=async($=[],P)=>{const A=!nn(P);try{const R=await k($);return R===!0&&await(P==null?void 0:P(R)),R}catch(R){if(R instanceof Error)throw R;const B=R;return r.scrollToError&&T(Object.keys(B)[0]),await(P==null?void 0:P(!1,B)),A&&Promise.reject(B)}},T=$=>{var P;const A=cx(o,$)[0];A&&((P=A.$el)==null||P.scrollIntoView(r.scrollIntoViewOptions))};return at(()=>r.rules,()=>{r.validateOnRuleChange&&b().catch($=>void 0)},{deep:!0}),Wn(wv,nr({...ea(r),emit:n,resetFields:p,clearValidate:v,validateField:C,getField:l,addField:u,removeField:d,...Uxe()})),t({validate:b,validateField:C,resetFields:p,clearValidate:v,scrollToField:T,fields:o}),($,P)=>(Z(),ce("form",{class:J(m(s))},[He($.$slots,"default")],2))}});var qxe=vt(Gxe,[["__file","form.vue"]]);function Lg(){return Lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lg.apply(this,arguments)}function Kxe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$O(e,t)}function fM(e){return fM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fM(e)}function $O(e,t){return $O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},$O(e,t)}function Jxe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nk(e,t,n){return Jxe()?nk=Reflect.construct.bind():nk=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),u=new l;return a&&$O(u,a.prototype),u},nk.apply(null,arguments)}function eke(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function dM(e){var t=typeof Map=="function"?new Map:void 0;return dM=function(r){if(r===null||!eke(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return nk(r,arguments,fM(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),$O(o,r)},dM(e)}var tke=/%[sdj%]/g,nke=function(){};typeof process!="undefined"&&process.env;function hM(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Pl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(tke,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function rke(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ta(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||rke(t)&&typeof e=="string"&&!e)}function oke(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function u6(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function ike(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var c6=function(e){Kxe(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(dM(Error));function ake(e,t,n,r,o){if(t.first){var i=new Promise(function(v,y){var w=function(C){return r(C),C.length?y(new c6(C,hM(C))):v(o)},b=ike(e);u6(b,n,w)});return i.catch(function(v){return v}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],p=new Promise(function(v,y){var w=function(k){if(d.push.apply(d,k),u++,u===l)return r(d),d.length?y(new c6(d,hM(d))):v(o)};s.length||(r(d),v(o)),s.forEach(function(b){var k=e[b];a.indexOf(b)!==-1?u6(k,n,w):oke(k,n,w)})});return p.catch(function(v){return v}),p}function ske(e){return!!(e&&e.message!==void 0)}function lke(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function f6(e,t){return function(n){var r;return e.fullFields?r=lke(t,e.fullFields):r=t[n.field||e.fullField],ske(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function d6(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Lg({},e[n],r):e[n]=r}}return e}var hY=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||ta(n,a||t.type))&&o.push(Pl(i.messages.required,t.fullField))},uke=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Pl(i.messages.whitespace,t.fullField))},fx,cke=function(){if(fx)return fx;var e="[a-fA-F\\d:]",t=function(P){return P&&P.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
  29. (?:
  30. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  31. (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
  32. (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
  33. (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
  34. (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
  35. (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
  36. (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
  37. (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
  38. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  39. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(P){return P&&P.exact?i:new RegExp("(?:"+t(P)+n+t(P)+")|(?:"+t(P)+o+t(P)+")","g")};l.v4=function($){return $&&$.exact?a:new RegExp(""+t($)+n+t($),"g")},l.v6=function($){return $&&$.exact?s:new RegExp(""+t($)+o+t($),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",p=l.v4().source,v=l.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",w="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",k="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',T="(?:"+u+"|www\\.)"+d+"(?:localhost|"+p+"|"+v+"|"+y+w+b+")"+k+C;return fx=new RegExp("(?:^"+T+"$)","i"),fx},h6={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},T_={integer:function(t){return T_.number(t)&&parseInt(t,10)===t},float:function(t){return T_.number(t)&&!T_.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!T_.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(h6.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cke())},hex:function(t){return typeof t=="string"&&!!t.match(h6.hex)}},fke=function(t,n,r,o,i){if(t.required&&n===void 0){hY(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?T_[s](n)||o.push(Pl(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Pl(i.messages.types[s],t.fullField,t.type))},dke=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,p=null,v=typeof n=="number",y=typeof n=="string",w=Array.isArray(n);if(v?p="number":y?p="string":w&&(p="array"),!p)return!1;w&&(d=n.length),y&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(Pl(i.messages[p].len,t.fullField,t.len)):s&&!l&&d<t.min?o.push(Pl(i.messages[p].min,t.fullField,t.min)):l&&!s&&d>t.max?o.push(Pl(i.messages[p].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&o.push(Pl(i.messages[p].range,t.fullField,t.min,t.max))},Fm="enum",hke=function(t,n,r,o,i){t[Fm]=Array.isArray(t[Fm])?t[Fm]:[],t[Fm].indexOf(n)===-1&&o.push(Pl(i.messages[Fm],t.fullField,t[Fm].join(", ")))},pke=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Pl(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Pl(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Wr={required:hY,whitespace:uke,type:fke,range:dke,enum:hke,pattern:pke},gke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n,"string")&&!t.required)return r();Wr.required(t,n,o,a,i,"string"),ta(n,"string")||(Wr.type(t,n,o,a,i),Wr.range(t,n,o,a,i),Wr.pattern(t,n,o,a,i),t.whitespace===!0&&Wr.whitespace(t,n,o,a,i))}r(a)},vke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n)&&!t.required)return r();Wr.required(t,n,o,a,i),n!==void 0&&Wr.type(t,n,o,a,i)}r(a)},mke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),ta(n)&&!t.required)return r();Wr.required(t,n,o,a,i),n!==void 0&&(Wr.type(t,n,o,a,i),Wr.range(t,n,o,a,i))}r(a)},yke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n)&&!t.required)return r();Wr.required(t,n,o,a,i),n!==void 0&&Wr.type(t,n,o,a,i)}r(a)},bke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n)&&!t.required)return r();Wr.required(t,n,o,a,i),ta(n)||Wr.type(t,n,o,a,i)}r(a)},_ke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n)&&!t.required)return r();Wr.required(t,n,o,a,i),n!==void 0&&(Wr.type(t,n,o,a,i),Wr.range(t,n,o,a,i))}r(a)},Oke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n)&&!t.required)return r();Wr.required(t,n,o,a,i),n!==void 0&&(Wr.type(t,n,o,a,i),Wr.range(t,n,o,a,i))}r(a)},wke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Wr.required(t,n,o,a,i,"array"),n!=null&&(Wr.type(t,n,o,a,i),Wr.range(t,n,o,a,i))}r(a)},Ske=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n)&&!t.required)return r();Wr.required(t,n,o,a,i),n!==void 0&&Wr.type(t,n,o,a,i)}r(a)},xke="enum",kke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n)&&!t.required)return r();Wr.required(t,n,o,a,i),n!==void 0&&Wr[xke](t,n,o,a,i)}r(a)},Cke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n,"string")&&!t.required)return r();Wr.required(t,n,o,a,i),ta(n,"string")||Wr.pattern(t,n,o,a,i)}r(a)},Eke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n,"date")&&!t.required)return r();if(Wr.required(t,n,o,a,i),!ta(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Wr.type(t,l,o,a,i),l&&Wr.range(t,l.getTime(),o,a,i)}}r(a)},Tke=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Wr.required(t,n,o,a,i,s),r(a)},M$=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ta(n,a)&&!t.required)return r();Wr.required(t,n,o,s,i,a),ta(n,a)||Wr.type(t,n,o,s,i)}r(s)},Pke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ta(n)&&!t.required)return r();Wr.required(t,n,o,a,i)}r(a)},X_={string:gke,method:vke,number:mke,boolean:yke,regexp:bke,integer:_ke,float:Oke,array:wke,object:Ske,enum:kke,pattern:Cke,date:Eke,url:M$,hex:M$,email:M$,required:Tke,any:Pke};function pM(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var gM=pM(),E1=function(){function e(n){this.rules=null,this._messages=gM,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=d6(pM(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function d(b){var k=[],C={};function T(P){if(Array.isArray(P)){var A;k=(A=k).concat.apply(A,P)}else k.push(P)}for(var $=0;$<b.length;$++)T(b[$]);k.length?(C=hM(k),u(k,C)):u(null,s)}if(l.messages){var p=this.messages();p===gM&&(p=pM()),d6(p,l.messages),l.messages=p}else l.messages=this.messages();var v={},y=l.keys||Object.keys(this.rules);y.forEach(function(b){var k=a.rules[b],C=s[b];k.forEach(function(T){var $=T;typeof $.transform=="function"&&(s===r&&(s=Lg({},s)),C=s[b]=$.transform(C)),typeof $=="function"?$={validator:$}:$=Lg({},$),$.validator=a.getValidationMethod($),$.validator&&($.field=b,$.fullField=$.fullField||b,$.type=a.getType($),v[b]=v[b]||[],v[b].push({rule:$,value:C,source:s,field:b}))})});var w={};return ake(v,l,function(b,k){var C=b.rule,T=(C.type==="object"||C.type==="array")&&(typeof C.fields=="object"||typeof C.defaultField=="object");T=T&&(C.required||!C.required&&b.value),C.field=b.field;function $(R,B){return Lg({},B,{fullField:C.fullField+"."+R,fullFields:C.fullFields?[].concat(C.fullFields,[R]):[R]})}function P(R){R===void 0&&(R=[]);var B=Array.isArray(R)?R:[R];!l.suppressWarning&&B.length&&e.warning("async-validator:",B),B.length&&C.message!==void 0&&(B=[].concat(C.message));var N=B.map(f6(C,s));if(l.first&&N.length)return w[C.field]=1,k(N);if(!T)k(N);else{if(C.required&&!b.value)return C.message!==void 0?N=[].concat(C.message).map(f6(C,s)):l.error&&(N=[l.error(C,Pl(l.messages.required,C.field))]),k(N);var I={};C.defaultField&&Object.keys(b.value).map(function(z){I[z]=C.defaultField}),I=Lg({},I,b.rule.fields);var D={};Object.keys(I).forEach(function(z){var q=I[z],ae=Array.isArray(q)?q:[q];D[z]=ae.map($.bind(null,z))});var L=new e(D);L.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),L.validate(b.value,b.rule.options||l,function(z){var q=[];N&&N.length&&q.push.apply(q,N),z&&z.length&&q.push.apply(q,z),k(q.length?q:null)})}}var A;if(C.asyncValidator)A=C.asyncValidator(C,b.value,P,b.source,l);else if(C.validator){try{A=C.validator(C,b.value,P,b.source,l)}catch(R){console.error==null||console.error(R),l.suppressValidatorError||setTimeout(function(){throw R},0),P(R.message)}A===!0?P():A===!1?P(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||(C.fullField||C.field)+" fails"):A instanceof Array?P(A):A instanceof Error&&P(A.message)}A&&A.then&&A.then(function(){return P()},function(R){return P(R)})},function(b){d(b)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!X_.hasOwnProperty(r.type))throw new Error(Pl("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?X_.required:X_[this.getType(r)]||void 0},e}();E1.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");X_[t]=n};E1.warning=nke;E1.messages=gM;E1.validators=X_;const $ke=["","error","validating","success"],Ake=pt({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Ie([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Ie([Object,Array])},error:String,validateStatus:{type:String,values:$ke},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:wf}}),p6="ElLabelWrap";var Mke=Se({name:p6,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Tt(wv,void 0),r=Tt(hf);r||$i(p6,"usage: <el-form-item><label-wrap /></el-form-item>");const o=lt("form"),i=ee(),a=ee(0),s=()=>{var d;if((d=i.value)!=null&&d.firstElementChild){const p=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(p))}else return 0},l=(d="update")=>{zt(()=>{t.default&&e.isAutoWidth&&(d==="update"?a.value=s():d==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>l("update");return vn(()=>{u()}),Ur(()=>{l("remove")}),gc(()=>u()),at(a,(d,p)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,p))}),_o(W(()=>{var d,p;return(p=(d=i.value)==null?void 0:d.firstElementChild)!=null?p:null}),u),()=>{var d,p;if(!t)return null;const{isAutoWidth:v}=e;if(v){const y=n==null?void 0:n.autoLabelWidth,w=r==null?void 0:r.hasLabel,b={};if(w&&y&&y!=="auto"){const k=Math.max(0,Number.parseInt(y,10)-a.value),T=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";k&&(b[T]=`${k}px`)}return re("div",{ref:i,class:[o.be("item","label-wrap")],style:b},[(d=t.default)==null?void 0:d.call(t)])}else return re(Pt,{ref:i},[(p=t.default)==null?void 0:p.call(t)])}}});const Rke=Se({name:"ElFormItem"}),Nke=Se({...Rke,props:Ake,setup(e,{expose:t}){const n=e,r=zi(),o=Tt(wv,void 0),i=Tt(hf,void 0),a=bi(void 0,{formItem:!1}),s=lt("form-item"),l=ja().value,u=ee([]),d=ee(""),p=Hie(d,100),v=ee(""),y=ee();let w,b=!1;const k=W(()=>n.labelPosition||(o==null?void 0:o.labelPosition)),C=W(()=>{if(k.value==="top")return{};const _e=Vo(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return _e?{width:_e}:{}}),T=W(()=>{if(k.value==="top"||(o==null?void 0:o.inline))return{};if(!n.label&&!n.labelWidth&&D)return{};const _e=Vo(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return!n.label&&!r.label?{marginLeft:_e}:{}}),$=W(()=>[s.b(),s.m(a.value),s.is("error",d.value==="error"),s.is("validating",d.value==="validating"),s.is("success",d.value==="success"),s.is("required",K.value||n.required),s.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:o==null?void 0:o.statusIcon,[s.m(`label-${k.value}`)]:k.value}]),P=W(()=>Uo(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),A=W(()=>[s.e("error"),{[s.em("error","inline")]:P.value}]),R=W(()=>n.prop?Gt(n.prop)?n.prop:n.prop.join("."):""),B=W(()=>!!(n.label||r.label)),N=W(()=>n.for||(u.value.length===1?u.value[0]:void 0)),I=W(()=>!N.value&&B.value),D=!!i,L=W(()=>{const _e=o==null?void 0:o.model;if(!(!_e||!n.prop))return ek(_e,n.prop).value}),z=W(()=>{const{required:_e}=n,me=[];n.rules&&me.push(...Ma(n.rules));const Re=o==null?void 0:o.rules;if(Re&&n.prop){const we=ek(Re,n.prop).value;we&&me.push(...Ma(we))}if(_e!==void 0){const we=me.map((fe,oe)=>[fe,oe]).filter(([fe])=>Object.keys(fe).includes("required"));if(we.length>0)for(const[fe,oe]of we)fe.required!==_e&&(me[oe]={...fe,required:_e});else me.push({required:_e})}return me}),q=W(()=>z.value.length>0),ae=_e=>z.value.filter(Re=>!Re.trigger||!_e?!0:Array.isArray(Re.trigger)?Re.trigger.includes(_e):Re.trigger===_e).map(({trigger:Re,...we})=>we),K=W(()=>z.value.some(_e=>_e.required)),H=W(()=>{var _e;return p.value==="error"&&n.showMessage&&((_e=o==null?void 0:o.showMessage)!=null?_e:!0)}),ne=W(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),X=_e=>{d.value=_e},V=_e=>{var me,Re;const{errors:we,fields:fe}=_e;(!we||!fe)&&console.error(_e),X("error"),v.value=we?(Re=(me=we==null?void 0:we[0])==null?void 0:me.message)!=null?Re:`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,v.value)},G=()=>{X("success"),o==null||o.emit("validate",n.prop,!0,"")},se=async _e=>{const me=R.value;return new E1({[me]:_e}).validate({[me]:L.value},{firstFields:!0}).then(()=>(G(),!0)).catch(we=>(V(we),Promise.reject(we)))},he=async(_e,me)=>{if(b||!n.prop)return!1;const Re=nn(me);if(!q.value)return me==null||me(!1),!1;const we=ae(_e);return we.length===0?(me==null||me(!0),!0):(X("validating"),se(we).then(()=>(me==null||me(!0),!0)).catch(fe=>{const{fields:oe}=fe;return me==null||me(!1,oe),Re?!1:Promise.reject(oe)}))},pe=()=>{X(""),v.value="",b=!1},Be=async()=>{const _e=o==null?void 0:o.model;if(!_e||!n.prop)return;const me=ek(_e,n.prop);b=!0,me.value=KA(w),await zt(),pe(),b=!1},De=_e=>{u.value.includes(_e)||u.value.push(_e)},ze=_e=>{u.value=u.value.filter(me=>me!==_e)};at(()=>n.error,_e=>{v.value=_e||"",X(_e?"error":"")},{immediate:!0}),at(()=>n.validateStatus,_e=>X(_e||""));const $e=nr({...ea(n),$el:y,size:a,validateState:d,labelId:l,inputIds:u,isGroup:I,hasLabel:B,fieldValue:L,addInputId:De,removeInputId:ze,resetField:Be,clearValidate:pe,validate:he});return Wn(hf,$e),vn(()=>{n.prop&&(o==null||o.addField($e),w=KA(L.value))}),Ur(()=>{o==null||o.removeField($e)}),t({size:a,validateMessage:v,validateState:d,validate:he,clearValidate:pe,resetField:Be}),(_e,me)=>{var Re;return Z(),ce("div",{ref_key:"formItemRef",ref:y,class:J(m($)),role:m(I)?"group":void 0,"aria-labelledby":m(I)?m(l):void 0},[re(m(Mke),{"is-auto-width":m(C).width==="auto","update-all":((Re=m(o))==null?void 0:Re.labelWidth)==="auto"},{default:ue(()=>[m(B)?(Z(),Fe(Dn(m(N)?"label":"div"),{key:0,id:m(l),for:m(N),class:J(m(s).e("label")),style:Vt(m(C))},{default:ue(()=>[He(_e.$slots,"label",{label:m(ne)},()=>[St(ut(m(ne)),1)])]),_:3},8,["id","for","class","style"])):je("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ve("div",{class:J(m(s).e("content")),style:Vt(m(T))},[He(_e.$slots,"default"),re(Nz,{name:`${m(s).namespace.value}-zoom-in-top`},{default:ue(()=>[m(H)?He(_e.$slots,"error",{key:0,error:v.value},()=>[ve("div",{class:J(m(A))},ut(v.value),3)]):je("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var pY=vt(Nke,[["__file","form-item.vue"]]);const Sf=pn(qxe,{FormItem:pY}),xf=So(pY);let nc;const Ike=`
  40. height:0 !important;
  41. visibility:hidden !important;
  42. ${NN()?"":"overflow:hidden !important;"}
  43. position:absolute !important;
  44. z-index:-1000 !important;
  45. top:0 !important;
  46. right:0 !important;
  47. `,Dke=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function jke(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Dke.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function g6(e,t=1,n){var r;nc||(nc=document.createElement("textarea"),document.body.appendChild(nc));const{paddingSize:o,borderSize:i,boxSizing:a,contextStyle:s}=jke(e);nc.setAttribute("style",`${s};${Ike}`),nc.value=e.value||e.placeholder||"";let l=nc.scrollHeight;const u={};a==="border-box"?l=l+i:a==="content-box"&&(l=l-o),nc.value="";const d=nc.scrollHeight-o;if(en(t)){let p=d*t;a==="border-box"&&(p=p+o+i),l=Math.max(p,l),u.minHeight=`${p}px`}if(en(n)){let p=d*n;a==="border-box"&&(p=p+o+i),l=Math.min(p,l)}return u.height=`${l}px`,(r=nc.parentNode)==null||r.removeChild(nc),nc=void 0,u}const f3=pt({id:{type:String,default:void 0},size:Ai,disabled:Boolean,modelValue:{type:Ie([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ie([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:Fr},prefixIcon:{type:Fr},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ie([Object,Array,String]),default:()=>Oo({})},autofocus:Boolean,rows:{type:Number,default:2},...ha(["ariaLabel"])}),Lke={[En]:e=>Gt(e),input:e=>Gt(e),change:e=>Gt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Bke=Se({name:"ElInput",inheritAttrs:!1}),Vke=Se({...Bke,props:f3,emits:Lke,setup(e,{expose:t,emit:n}){const r=e,o=vv(),i=zi(),a=W(()=>{const Je={};return r.containerRole==="combobox"&&(Je["aria-haspopup"]=o["aria-haspopup"],Je["aria-owns"]=o["aria-owns"],Je["aria-expanded"]=o["aria-expanded"]),Je}),s=W(()=>[r.type==="textarea"?k.b():b.b(),b.m(y.value),b.is("disabled",w.value),b.is("exceed",se.value),{[b.b("group")]:i.prepend||i.append,[b.m("prefix")]:i.prefix||r.prefixIcon,[b.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[b.bm("suffix","password-clear")]:ne.value&&X.value,[b.b("hidden")]:r.type==="hidden"},o.class]),l=W(()=>[b.e("wrapper"),b.is("focus",I.value)]),u=WI({excludeKeys:W(()=>Object.keys(a.value))}),{form:d,formItem:p}=as(),{inputId:v}=bc(r,{formItemContext:p}),y=bi(),w=Rs(),b=lt("input"),k=lt("textarea"),C=Kr(),T=Kr(),$=ee(!1),P=ee(!1),A=ee(),R=Kr(r.inputStyle),B=W(()=>C.value||T.value),{wrapperRef:N,isFocused:I}=C1(B,{afterBlur(){var Je;r.validateEvent&&((Je=p==null?void 0:p.validate)==null||Je.call(p,"blur").catch(Xe=>void 0))}}),D=W(()=>{var Je;return(Je=d==null?void 0:d.statusIcon)!=null?Je:!1}),L=W(()=>(p==null?void 0:p.validateState)||""),z=W(()=>L.value&&QI[L.value]),q=W(()=>P.value?kW:E1e),ae=W(()=>[o.style]),K=W(()=>[r.inputStyle,R.value,{resize:r.resize}]),H=W(()=>Vi(r.modelValue)?"":String(r.modelValue)),ne=W(()=>r.clearable&&!w.value&&!r.readonly&&!!H.value&&(I.value||$.value)),X=W(()=>r.showPassword&&!w.value&&!r.readonly&&!!H.value&&(!!H.value||I.value)),V=W(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!w.value&&!r.readonly&&!r.showPassword),G=W(()=>H.value.length),se=W(()=>!!V.value&&G.value>Number(r.maxlength)),he=W(()=>!!i.suffix||!!r.suffixIcon||ne.value||r.showPassword||V.value||!!L.value&&D.value),[pe,Be]=mxe(C);_o(T,Je=>{if($e(),!V.value||r.resize!=="both")return;const Xe=Je[0],{width:gt}=Xe.contentRect;A.value={right:`calc(100% - ${gt+15+6}px)`}});const De=()=>{const{type:Je,autosize:Xe}=r;if(!(!tr||Je!=="textarea"||!T.value))if(Xe){const gt=Pn(Xe)?Xe.minRows:void 0,Ct=Pn(Xe)?Xe.maxRows:void 0,Zt=g6(T.value,gt,Ct);R.value={overflowY:"hidden",...Zt},zt(()=>{T.value.offsetHeight,R.value=Zt})}else R.value={minHeight:g6(T.value).minHeight}},$e=(Je=>{let Xe=!1;return()=>{var gt;if(Xe||!r.autosize)return;((gt=T.value)==null?void 0:gt.offsetParent)===null||(Je(),Xe=!0)}})(De),_e=()=>{const Je=B.value,Xe=r.formatter?r.formatter(H.value):H.value;!Je||Je.value===Xe||(Je.value=Xe)},me=async Je=>{pe();let{value:Xe}=Je.target;if(r.formatter&&(Xe=r.parser?r.parser(Xe):Xe),!we.value){if(Xe===H.value){_e();return}n(En,Xe),n("input",Xe),await zt(),_e(),Be()}},Re=Je=>{n("change",Je.target.value)},{isComposing:we,handleCompositionStart:fe,handleCompositionUpdate:oe,handleCompositionEnd:ke}=$C({emit:n,afterComposition:me}),We=()=>{P.value=!P.value,et()},et=async()=>{var Je;await zt(),(Je=B.value)==null||Je.focus()},Ve=()=>{var Je;return(Je=B.value)==null?void 0:Je.blur()},Me=Je=>{$.value=!1,n("mouseleave",Je)},Ke=Je=>{$.value=!0,n("mouseenter",Je)},be=Je=>{n("keydown",Je)},qe=()=>{var Je;(Je=B.value)==null||Je.select()},ct=()=>{n(En,""),n("change",""),n("clear"),n("input","")};return at(()=>r.modelValue,()=>{var Je;zt(()=>De()),r.validateEvent&&((Je=p==null?void 0:p.validate)==null||Je.call(p,"change").catch(Xe=>void 0))}),at(H,()=>_e()),at(()=>r.type,async()=>{await zt(),_e(),De()}),vn(()=>{!r.formatter&&r.parser,_e(),zt(De)}),t({input:C,textarea:T,ref:B,textareaStyle:K,autosize:xr(r,"autosize"),isComposing:we,focus:et,blur:Ve,select:qe,clear:ct,resizeTextarea:De}),(Je,Xe)=>(Z(),ce("div",In(m(a),{class:[m(s),{[m(b).bm("group","append")]:Je.$slots.append,[m(b).bm("group","prepend")]:Je.$slots.prepend}],style:m(ae),role:Je.containerRole,onMouseenter:Ke,onMouseleave:Me}),[je(" input "),Je.type!=="textarea"?(Z(),ce(Pt,{key:0},[je(" prepend slot "),Je.$slots.prepend?(Z(),ce("div",{key:0,class:J(m(b).be("group","prepend"))},[He(Je.$slots,"prepend")],2)):je("v-if",!0),ve("div",{ref_key:"wrapperRef",ref:N,class:J(m(l))},[je(" prefix slot "),Je.$slots.prefix||Je.prefixIcon?(Z(),ce("span",{key:0,class:J(m(b).e("prefix"))},[ve("span",{class:J(m(b).e("prefix-inner"))},[He(Je.$slots,"prefix"),Je.prefixIcon?(Z(),Fe(m(jt),{key:0,class:J(m(b).e("icon"))},{default:ue(()=>[(Z(),Fe(Dn(Je.prefixIcon)))]),_:1},8,["class"])):je("v-if",!0)],2)],2)):je("v-if",!0),ve("input",In({id:m(v),ref_key:"input",ref:C,class:m(b).e("inner")},m(u),{minlength:Je.minlength,maxlength:Je.maxlength,type:Je.showPassword?P.value?"text":"password":Je.type,disabled:m(w),readonly:Je.readonly,autocomplete:Je.autocomplete,tabindex:Je.tabindex,"aria-label":Je.ariaLabel,placeholder:Je.placeholder,style:Je.inputStyle,form:Je.form,autofocus:Je.autofocus,onCompositionstart:m(fe),onCompositionupdate:m(oe),onCompositionend:m(ke),onInput:me,onChange:Re,onKeydown:be}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","onCompositionstart","onCompositionupdate","onCompositionend"]),je(" suffix slot "),m(he)?(Z(),ce("span",{key:1,class:J(m(b).e("suffix"))},[ve("span",{class:J(m(b).e("suffix-inner"))},[!m(ne)||!m(X)||!m(V)?(Z(),ce(Pt,{key:0},[He(Je.$slots,"suffix"),Je.suffixIcon?(Z(),Fe(m(jt),{key:0,class:J(m(b).e("icon"))},{default:ue(()=>[(Z(),Fe(Dn(Je.suffixIcon)))]),_:1},8,["class"])):je("v-if",!0)],64)):je("v-if",!0),m(ne)?(Z(),Fe(m(jt),{key:1,class:J([m(b).e("icon"),m(b).e("clear")]),onMousedown:tn(m(Br),["prevent"]),onClick:ct},{default:ue(()=>[re(m(_p))]),_:1},8,["class","onMousedown"])):je("v-if",!0),m(X)?(Z(),Fe(m(jt),{key:2,class:J([m(b).e("icon"),m(b).e("password")]),onClick:We},{default:ue(()=>[(Z(),Fe(Dn(m(q))))]),_:1},8,["class"])):je("v-if",!0),m(V)?(Z(),ce("span",{key:3,class:J(m(b).e("count"))},[ve("span",{class:J(m(b).e("count-inner"))},ut(m(G))+" / "+ut(Je.maxlength),3)],2)):je("v-if",!0),m(L)&&m(z)&&m(D)?(Z(),Fe(m(jt),{key:4,class:J([m(b).e("icon"),m(b).e("validateIcon"),m(b).is("loading",m(L)==="validating")])},{default:ue(()=>[(Z(),Fe(Dn(m(z))))]),_:1},8,["class"])):je("v-if",!0)],2)],2)):je("v-if",!0)],2),je(" append slot "),Je.$slots.append?(Z(),ce("div",{key:1,class:J(m(b).be("group","append"))},[He(Je.$slots,"append")],2)):je("v-if",!0)],64)):(Z(),ce(Pt,{key:1},[je(" textarea "),ve("textarea",In({id:m(v),ref_key:"textarea",ref:T,class:[m(k).e("inner"),m(b).is("focus",m(I))]},m(u),{minlength:Je.minlength,maxlength:Je.maxlength,tabindex:Je.tabindex,disabled:m(w),readonly:Je.readonly,autocomplete:Je.autocomplete,style:m(K),"aria-label":Je.ariaLabel,placeholder:Je.placeholder,form:Je.form,autofocus:Je.autofocus,rows:Je.rows,onCompositionstart:m(fe),onCompositionupdate:m(oe),onCompositionend:m(ke),onInput:me,onChange:Re,onKeydown:be}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","onCompositionstart","onCompositionupdate","onCompositionend"]),m(V)?(Z(),ce("span",{key:0,style:Vt(A.value),class:J(m(b).e("count"))},ut(m(G))+" / "+ut(Je.maxlength),7)):je("v-if",!0)],64))],16,["role"]))}});var Fke=vt(Vke,[["__file","input.vue"]]);const ei=pn(Fke),zm=4,gY={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},zke=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),d3=Symbol("scrollbarContextKey"),Qke=pt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Wke="Thumb",Yke=Se({__name:"thumb",props:Qke,setup(e){const t=e,n=Tt(d3),r=lt("scrollbar");n||$i(Wke,"can not inject scrollbar context");const o=ee(),i=ee(),a=ee({}),s=ee(!1);let l=!1,u=!1,d=tr?document.onselectstart:null;const p=W(()=>gY[t.vertical?"vertical":"horizontal"]),v=W(()=>zke({size:t.size,move:t.move,bar:p.value})),y=W(()=>o.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/i.value[p.value.offset]),w=R=>{var B;if(R.stopPropagation(),R.ctrlKey||[1,2].includes(R.button))return;(B=window.getSelection())==null||B.removeAllRanges(),k(R);const N=R.currentTarget;!N||(a.value[p.value.axis]=N[p.value.offset]-(R[p.value.client]-N.getBoundingClientRect()[p.value.direction]))},b=R=>{if(!i.value||!o.value||!n.wrapElement)return;const B=Math.abs(R.target.getBoundingClientRect()[p.value.direction]-R[p.value.client]),N=i.value[p.value.offset]/2,I=(B-N)*100*y.value/o.value[p.value.offset];n.wrapElement[p.value.scroll]=I*n.wrapElement[p.value.scrollSize]/100},k=R=>{R.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",C),document.addEventListener("mouseup",T),d=document.onselectstart,document.onselectstart=()=>!1},C=R=>{if(!o.value||!i.value||l===!1)return;const B=a.value[p.value.axis];if(!B)return;const N=(o.value.getBoundingClientRect()[p.value.direction]-R[p.value.client])*-1,I=i.value[p.value.offset]-B,D=(N-I)*100*y.value/o.value[p.value.offset];n.wrapElement[p.value.scroll]=D*n.wrapElement[p.value.scrollSize]/100},T=()=>{l=!1,a.value[p.value.axis]=0,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",T),A(),u&&(s.value=!1)},$=()=>{u=!1,s.value=!!t.size},P=()=>{u=!0,s.value=l};Ur(()=>{A(),document.removeEventListener("mouseup",T)});const A=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Ar(xr(n,"scrollbarElement"),"mousemove",$),Ar(xr(n,"scrollbarElement"),"mouseleave",P),(R,B)=>(Z(),Fe(Pi,{name:m(r).b("fade"),persisted:""},{default:ue(()=>[yn(ve("div",{ref_key:"instance",ref:o,class:J([m(r).e("bar"),m(r).is(m(p).key)]),onMousedown:b},[ve("div",{ref_key:"thumb",ref:i,class:J(m(r).e("thumb")),style:Vt(m(v)),onMousedown:w},null,38)],34),[[hr,R.always||s.value]])]),_:1},8,["name"]))}});var v6=vt(Yke,[["__file","thumb.vue"]]);const Zke=pt({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Uke=Se({__name:"bar",props:Zke,setup(e,{expose:t}){const n=e,r=Tt(d3),o=ee(0),i=ee(0),a=ee(""),s=ee(""),l=ee(1),u=ee(1);return t({handleScroll:v=>{if(v){const y=v.offsetHeight-zm,w=v.offsetWidth-zm;i.value=v.scrollTop*100/y*l.value,o.value=v.scrollLeft*100/w*u.value}},update:()=>{const v=r==null?void 0:r.wrapElement;if(!v)return;const y=v.offsetHeight-zm,w=v.offsetWidth-zm,b=y**2/v.scrollHeight,k=w**2/v.scrollWidth,C=Math.max(b,n.minSize),T=Math.max(k,n.minSize);l.value=b/(y-b)/(C/(y-C)),u.value=k/(w-k)/(T/(w-T)),s.value=C+zm<y?`${C}px`:"",a.value=T+zm<w?`${T}px`:""}}),(v,y)=>(Z(),ce(Pt,null,[re(v6,{move:o.value,ratio:u.value,size:a.value,always:v.always},null,8,["move","ratio","size","always"]),re(v6,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:v.always},null,8,["move","ratio","size","always"])],64))}});var Hke=vt(Uke,[["__file","bar.vue"]]);const Xke=pt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Ie([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,...ha(["ariaLabel","ariaOrientation"])}),Gke={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(en)},qke="ElScrollbar",Kke=Se({name:qke}),Jke=Se({...Kke,props:Xke,emits:Gke,setup(e,{expose:t,emit:n}){const r=e,o=lt("scrollbar");let i,a,s=0,l=0;const u=ee(),d=ee(),p=ee(),v=ee(),y=W(()=>{const A={};return r.height&&(A.height=Vo(r.height)),r.maxHeight&&(A.maxHeight=Vo(r.maxHeight)),[r.wrapStyle,A]}),w=W(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),b=W(()=>[o.e("view"),r.viewClass]),k=()=>{var A;d.value&&((A=v.value)==null||A.handleScroll(d.value),s=d.value.scrollTop,l=d.value.scrollLeft,n("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function C(A,R){Pn(A)?d.value.scrollTo(A):en(A)&&en(R)&&d.value.scrollTo(A,R)}const T=A=>{!en(A)||(d.value.scrollTop=A)},$=A=>{!en(A)||(d.value.scrollLeft=A)},P=()=>{var A;(A=v.value)==null||A.update()};return at(()=>r.noresize,A=>{A?(i==null||i(),a==null||a()):({stop:i}=_o(p,P),a=Ar("resize",P))},{immediate:!0}),at(()=>[r.maxHeight,r.height],()=>{r.native||zt(()=>{var A;P(),d.value&&((A=v.value)==null||A.handleScroll(d.value))})}),Wn(d3,nr({scrollbarElement:u,wrapElement:d})),xN(()=>{d.value.scrollTop=s,d.value.scrollLeft=l}),vn(()=>{r.native||zt(()=>{P()})}),gc(()=>P()),t({wrapRef:d,update:P,scrollTo:C,setScrollTop:T,setScrollLeft:$,handleScroll:k}),(A,R)=>(Z(),ce("div",{ref_key:"scrollbarRef",ref:u,class:J(m(o).b())},[ve("div",{ref_key:"wrapRef",ref:d,class:J(m(w)),style:Vt(m(y)),onScroll:k},[(Z(),Fe(Dn(A.tag),{id:A.id,ref_key:"resizeRef",ref:p,class:J(m(b)),style:Vt(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:ue(()=>[He(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),A.native?je("v-if",!0):(Z(),Fe(Hke,{key:0,ref_key:"barRef",ref:v,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}});var e2e=vt(Jke,[["__file","scrollbar.vue"]]);const _c=pn(e2e),h3=Symbol("popper"),vY=Symbol("popperContent"),t2e=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],mY=pt({role:{type:String,values:t2e,default:"tooltip"}}),n2e=Se({name:"ElPopper",inheritAttrs:!1}),r2e=Se({...n2e,props:mY,setup(e,{expose:t}){const n=e,r=ee(),o=ee(),i=ee(),a=ee(),s=W(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:i,referenceRef:a,role:s};return t(l),Wn(h3,l),(u,d)=>He(u.$slots,"default")}});var o2e=vt(r2e,[["__file","popper.vue"]]);const yY=pt({arrowOffset:{type:Number,default:5}}),i2e=Se({name:"ElPopperArrow",inheritAttrs:!1}),a2e=Se({...i2e,props:yY,setup(e,{expose:t}){const n=e,r=lt("popper"),{arrowOffset:o,arrowRef:i,arrowStyle:a}=Tt(vY,void 0);return at(()=>n.arrowOffset,s=>{o.value=s}),Ur(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(Z(),ce("span",{ref_key:"arrowRef",ref:i,class:J(m(r).e("arrow")),style:Vt(m(a)),"data-popper-arrow":""},null,6))}});var s2e=vt(a2e,[["__file","arrow.vue"]]);const l2e="ElOnlyChild",bY=Se({name:l2e,setup(e,{slots:t,attrs:n}){var r;const o=Tt(ZW),i=LSe((r=o==null?void 0:o.setForwardRef)!=null?r:Br);return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t,n);if(!s||s.length>1)return null;const l=_Y(s);return l?yn(cd(l,n),[[i]]):null}}});function _Y(e){if(!e)return null;const t=e;for(const n of t){if(Pn(n))switch(n.type){case ws:continue;case r0:case"svg":return m6(n);case Pt:return _Y(n.children);default:return n}return m6(n)}return null}function m6(e){const t=lt("only-child");return re("span",{class:t.e("content")},[e])}const OY=pt({virtualRef:{type:Ie(Object)},virtualTriggering:Boolean,onMouseenter:{type:Ie(Function)},onMouseleave:{type:Ie(Function)},onClick:{type:Ie(Function)},onKeydown:{type:Ie(Function)},onFocus:{type:Ie(Function)},onBlur:{type:Ie(Function)},onContextmenu:{type:Ie(Function)},id:String,open:Boolean}),u2e=Se({name:"ElPopperTrigger",inheritAttrs:!1}),c2e=Se({...u2e,props:OY,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=Tt(h3,void 0);jSe(o);const i=W(()=>s.value?n.id:void 0),a=W(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=W(()=>{if(r&&r.value!=="tooltip")return r.value}),l=W(()=>s.value?`${n.open}`:void 0);let u;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return vn(()=>{at(()=>n.virtualRef,p=>{p&&(o.value=Zs(p))},{immediate:!0}),at(o,(p,v)=>{u==null||u(),u=void 0,Rl(p)&&(d.forEach(y=>{var w;const b=n[y];b&&(p.addEventListener(y.slice(2).toLowerCase(),b),(w=v==null?void 0:v.removeEventListener)==null||w.call(v,y.slice(2).toLowerCase(),b))}),u=at([i,a,s,l],y=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((w,b)=>{Vi(y[b])?p.removeAttribute(w):p.setAttribute(w,y[b])})},{immediate:!0})),Rl(v)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(y=>v.removeAttribute(y))},{immediate:!0})}),Ur(()=>{if(u==null||u(),u=void 0,o.value&&Rl(o.value)){const p=o.value;d.forEach(v=>{const y=n[v];y&&p.removeEventListener(v.slice(2).toLowerCase(),y)}),o.value=void 0}}),t({triggerRef:o}),(p,v)=>p.virtualTriggering?je("v-if",!0):(Z(),Fe(m(bY),In({key:0},p.$attrs,{"aria-controls":m(i),"aria-describedby":m(a),"aria-expanded":m(l),"aria-haspopup":m(s)}),{default:ue(()=>[He(p.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var f2e=vt(c2e,[["__file","trigger.vue"]]);const R$="focus-trap.focus-after-trapped",N$="focus-trap.focus-after-released",d2e="focus-trap.focusout-prevented",y6={cancelable:!0,bubbles:!1},h2e={cancelable:!0,bubbles:!1},b6="focusAfterTrapped",_6="focusAfterReleased",p3=Symbol("elFocusTrap"),g3=ee(),NC=ee(0),v3=ee(0);let dx=0;const wY=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},O6=(e,t)=>{for(const n of e)if(!p2e(n,t))return n},p2e=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},g2e=e=>{const t=wY(e),n=O6(t,e),r=O6(t.reverse(),e);return[n,r]},v2e=e=>e instanceof HTMLInputElement&&"select"in e,_h=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),v3.value=window.performance.now(),e!==n&&v2e(e)&&t&&e.select()}};function w6(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const m2e=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=w6(e,r),e.unshift(r)},remove:r=>{var o,i;e=w6(e,r),(i=(o=e[0])==null?void 0:o.resume)==null||i.call(o)}}},y2e=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(_h(r,t),document.activeElement!==n)return},S6=m2e(),b2e=()=>NC.value>v3.value,hx=()=>{g3.value="pointer",NC.value=window.performance.now()},x6=()=>{g3.value="keyboard",NC.value=window.performance.now()},_2e=()=>(vn(()=>{dx===0&&(document.addEventListener("mousedown",hx),document.addEventListener("touchstart",hx),document.addEventListener("keydown",x6)),dx++}),Ur(()=>{dx--,dx<=0&&(document.removeEventListener("mousedown",hx),document.removeEventListener("touchstart",hx),document.removeEventListener("keydown",x6))}),{focusReason:g3,lastUserFocusTimestamp:NC,lastAutomatedFocusTimestamp:v3}),px=e=>new CustomEvent(d2e,{...h2e,detail:e}),O2e=Se({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[b6,_6,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=ee();let r,o;const{focusReason:i}=_2e();MSe(w=>{e.trapped&&!a.paused&&t("release-requested",w)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=w=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:b,altKey:k,ctrlKey:C,metaKey:T,currentTarget:$,shiftKey:P}=w,{loop:A}=e,R=b===Qt.tab&&!k&&!C&&!T,B=document.activeElement;if(R&&B){const N=$,[I,D]=g2e(N);if(I&&D){if(!P&&B===D){const z=px({focusReason:i.value});t("focusout-prevented",z),z.defaultPrevented||(w.preventDefault(),A&&_h(I,!0))}else if(P&&[I,N].includes(B)){const z=px({focusReason:i.value});t("focusout-prevented",z),z.defaultPrevented||(w.preventDefault(),A&&_h(D,!0))}}else if(B===N){const z=px({focusReason:i.value});t("focusout-prevented",z),z.defaultPrevented||w.preventDefault()}}};Wn(p3,{focusTrapRef:n,onKeydown:s}),at(()=>e.focusTrapEl,w=>{w&&(n.value=w)},{immediate:!0}),at([n],([w],[b])=>{w&&(w.addEventListener("keydown",s),w.addEventListener("focusin",d),w.addEventListener("focusout",p)),b&&(b.removeEventListener("keydown",s),b.removeEventListener("focusin",d),b.removeEventListener("focusout",p))});const l=w=>{t(b6,w)},u=w=>t(_6,w),d=w=>{const b=m(n);if(!b)return;const k=w.target,C=w.relatedTarget,T=k&&b.contains(k);e.trapped||C&&b.contains(C)||(r=C),T&&t("focusin",w),!a.paused&&e.trapped&&(T?o=k:_h(o,!0))},p=w=>{const b=m(n);if(!(a.paused||!b))if(e.trapped){const k=w.relatedTarget;!Vi(k)&&!b.contains(k)&&setTimeout(()=>{if(!a.paused&&e.trapped){const C=px({focusReason:i.value});t("focusout-prevented",C),C.defaultPrevented||_h(o,!0)}},0)}else{const k=w.target;k&&b.contains(k)||t("focusout",w)}};async function v(){await zt();const w=m(n);if(w){S6.push(a);const b=w.contains(document.activeElement)?r:document.activeElement;if(r=b,!w.contains(b)){const C=new Event(R$,y6);w.addEventListener(R$,l),w.dispatchEvent(C),C.defaultPrevented||zt(()=>{let T=e.focusStartEl;Gt(T)||(_h(T),document.activeElement!==T&&(T="first")),T==="first"&&y2e(wY(w),!0),(document.activeElement===b||T==="container")&&_h(w)})}}}function y(){const w=m(n);if(w){w.removeEventListener(R$,l);const b=new CustomEvent(N$,{...y6,detail:{focusReason:i.value}});w.addEventListener(N$,u),w.dispatchEvent(b),!b.defaultPrevented&&(i.value=="keyboard"||!b2e()||w.contains(document.activeElement))&&_h(r!=null?r:document.body),w.removeEventListener(N$,u),S6.remove(a)}}return vn(()=>{e.trapped&&v(),at(()=>e.trapped,w=>{w?v():y()})}),Ur(()=>{e.trapped&&y(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",p),n.value=void 0)}),{onKeydown:s}}});function w2e(e,t,n,r,o,i){return He(e.$slots,"default",{handleKeydown:e.onKeydown})}var T1=vt(O2e,[["render",w2e],["__file","focus-trap.vue"]]);const S2e=["fixed","absolute"],x2e=pt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ie(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ov,default:"bottom"},popperOptions:{type:Ie(Object),default:()=>({})},strategy:{type:String,values:S2e,default:"absolute"}}),SY=pt({...x2e,id:String,style:{type:Ie([String,Array,Object])},className:{type:Ie([String,Array,Object])},effect:{type:Ie(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Ie([String,Array,Object])},popperStyle:{type:Ie([String,Array,Object])},referenceEl:{type:Ie(Object)},triggerTargetEl:{type:Ie(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ha(["ariaLabel"])}),k2e={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},C2e=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:[...T2e(e),...t]};return P2e(i,o==null?void 0:o.modifiers),i},E2e=e=>{if(!!tr)return Zs(e)};function T2e(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function P2e(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const $2e=0,A2e=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=Tt(h3,void 0),i=ee(),a=ee(),s=W(()=>({name:"eventListeners",enabled:!!e.visible})),l=W(()=>{var C;const T=m(i),$=(C=m(a))!=null?C:$2e;return{name:"arrow",enabled:!bI(T),options:{element:T,padding:$}}}),u=W(()=>({onFirstUpdate:()=>{w()},...C2e(e,[m(l),m(s)])})),d=W(()=>E2e(e.referenceEl)||m(r)),{attributes:p,state:v,styles:y,update:w,forceUpdate:b,instanceRef:k}=TSe(d,n,u);return at(k,C=>t.value=C),vn(()=>{at(()=>{var C;return(C=m(d))==null?void 0:C.getBoundingClientRect()},()=>{w()})}),{attributes:p,arrowRef:i,contentRef:n,instanceRef:k,state:v,styles:y,role:o,forceUpdate:b,update:w}},M2e=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=p0(),i=lt("popper"),a=W(()=>m(t).popper),s=ee(en(e.zIndex)?e.zIndex:o()),l=W(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=W(()=>[{zIndex:m(s)},m(n).popper,e.popperStyle||{}]),d=W(()=>r.value==="dialog"?"false":void 0),p=W(()=>m(n).arrow||{});return{ariaModal:d,arrowStyle:p,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=en(e.zIndex)?e.zIndex:o()}}},R2e=(e,t)=>{const n=ee(!1),r=ee();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},N2e=Se({name:"ElPopperContent"}),I2e=Se({...N2e,props:SY,emits:k2e,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:a,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:d}=R2e(r,n),{attributes:p,arrowRef:v,contentRef:y,styles:w,instanceRef:b,role:k,update:C}=A2e(r),{ariaModal:T,arrowStyle:$,contentAttrs:P,contentClass:A,contentStyle:R,updateZIndex:B}=M2e(r,{styles:w,attributes:p,role:k}),N=Tt(hf,void 0),I=ee();Wn(vY,{arrowStyle:$,arrowRef:v,arrowOffset:I}),N&&Wn(hf,{...N,addInputId:Br,removeInputId:Br});let D;const L=(q=!0)=>{C(),q&&B()},z=()=>{L(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return vn(()=>{at(()=>r.triggerTargetEl,(q,ae)=>{D==null||D(),D=void 0;const K=m(q||y.value),H=m(ae||y.value);Rl(K)&&(D=at([k,()=>r.ariaLabel,T,()=>r.id],ne=>{["role","aria-label","aria-modal","id"].forEach((X,V)=>{Vi(ne[V])?K.removeAttribute(X):K.setAttribute(X,ne[V])})},{immediate:!0})),H!==K&&Rl(H)&&["role","aria-label","aria-modal","id"].forEach(ne=>{H.removeAttribute(ne)})},{immediate:!0}),at(()=>r.visible,z,{immediate:!0})}),Ur(()=>{D==null||D(),D=void 0}),t({popperContentRef:y,popperInstanceRef:b,updatePopper:L,contentStyle:R}),(q,ae)=>(Z(),ce("div",In({ref_key:"contentRef",ref:y},m(P),{style:m(R),class:m(A),tabindex:"-1",onMouseenter:K=>q.$emit("mouseenter",K),onMouseleave:K=>q.$emit("mouseleave",K)}),[re(m(T1),{trapped:m(i),"trap-on-focus-in":!0,"focus-trap-el":m(y),"focus-start-el":m(o),onFocusAfterTrapped:m(s),onFocusAfterReleased:m(a),onFocusin:m(l),onFocusoutPrevented:m(u),onReleaseRequested:m(d)},{default:ue(()=>[He(q.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var D2e=vt(I2e,[["__file","content.vue"]]);const xY=pn(o2e),IC=Symbol("elTooltip"),Xi=pt({...ISe,...SY,appendTo:{type:Ie([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Ie(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ha(["ariaLabel"])}),AO=pt({...OY,disabled:Boolean,trigger:{type:Ie([String,Array]),default:"hover"},triggerKeys:{type:Ie(Array),default:()=>[Qt.enter,Qt.space]}}),{useModelToggleProps:j2e,useModelToggleEmits:L2e,useModelToggle:B2e}=kwe("visible"),V2e=pt({...mY,...j2e,...Xi,...AO,...yY,showArrow:{type:Boolean,default:!0}}),F2e=[...L2e,"before-show","before-hide","show","hide","open","close"],z2e=(e,t)=>xt(e)?e.includes(t):e===t,Qm=(e,t,n)=>r=>{z2e(m(e),t)&&n(r)},Q2e=Se({name:"ElTooltipTrigger"}),W2e=Se({...Q2e,props:AO,setup(e,{expose:t}){const n=e,r=lt("tooltip"),{controlled:o,id:i,open:a,onOpen:s,onClose:l,onToggle:u}=Tt(IC,void 0),d=ee(null),p=()=>{if(m(o)||n.disabled)return!0},v=xr(n,"trigger"),y=Lo(p,Qm(v,"hover",s)),w=Lo(p,Qm(v,"hover",l)),b=Lo(p,Qm(v,"click",P=>{P.button===0&&u(P)})),k=Lo(p,Qm(v,"focus",s)),C=Lo(p,Qm(v,"focus",l)),T=Lo(p,Qm(v,"contextmenu",P=>{P.preventDefault(),u(P)})),$=Lo(p,P=>{const{code:A}=P;n.triggerKeys.includes(A)&&(P.preventDefault(),u(P))});return t({triggerRef:d}),(P,A)=>(Z(),Fe(m(f2e),{id:m(i),"virtual-ref":P.virtualRef,open:m(a),"virtual-triggering":P.virtualTriggering,class:J(m(r).e("trigger")),onBlur:m(C),onClick:m(b),onContextmenu:m(T),onFocus:m(k),onMouseenter:m(y),onMouseleave:m(w),onKeydown:m($)},{default:ue(()=>[He(P.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Y2e=vt(W2e,[["__file","trigger.vue"]]);const Z2e=pt({to:{type:Ie([String,Object]),required:!0},disabled:Boolean}),U2e=Se({__name:"teleport",props:Z2e,setup(e){return(t,n)=>t.disabled?He(t.$slots,"default",{key:0}):(Z(),Fe(Foe,{key:1,to:t.to},[He(t.$slots,"default")],8,["to"]))}});var H2e=vt(U2e,[["__file","teleport.vue"]]);const v0=pn(H2e),X2e=Se({name:"ElTooltipContent",inheritAttrs:!1}),G2e=Se({...X2e,props:Xi,setup(e,{expose:t}){const n=e,{selector:r}=YW(),o=lt("tooltip"),i=ee(null);let a;const{controlled:s,id:l,open:u,trigger:d,onClose:p,onOpen:v,onShow:y,onHide:w,onBeforeShow:b,onBeforeHide:k}=Tt(IC,void 0),C=W(()=>n.transition||`${o.namespace.value}-fade-in-linear`),T=W(()=>n.persistent);Ur(()=>{a==null||a()});const $=W(()=>m(T)?!0:m(u)),P=W(()=>n.disabled?!1:m(u)),A=W(()=>n.appendTo||r.value),R=W(()=>{var H;return(H=n.style)!=null?H:{}}),B=W(()=>!m(u)),N=()=>{w()},I=()=>{if(m(s))return!0},D=Lo(I,()=>{n.enterable&&m(d)==="hover"&&v()}),L=Lo(I,()=>{m(d)==="hover"&&p()}),z=()=>{var H,ne;(ne=(H=i.value)==null?void 0:H.updatePopper)==null||ne.call(H),b==null||b()},q=()=>{k==null||k()},ae=()=>{y(),a=RN(W(()=>{var H;return(H=i.value)==null?void 0:H.popperContentRef}),()=>{if(m(s))return;m(d)!=="hover"&&p()})},K=()=>{n.virtualTriggering||p()};return at(()=>m(u),H=>{H||a==null||a()},{flush:"post"}),at(()=>n.content,()=>{var H,ne;(ne=(H=i.value)==null?void 0:H.updatePopper)==null||ne.call(H)}),t({contentRef:i}),(H,ne)=>(Z(),Fe(m(v0),{disabled:!H.teleported,to:m(A)},{default:ue(()=>[re(Pi,{name:m(C),onAfterLeave:N,onBeforeEnter:z,onAfterEnter:ae,onBeforeLeave:q},{default:ue(()=>[m($)?yn((Z(),Fe(m(D2e),In({key:0,id:m(l),ref_key:"contentRef",ref:i},H.$attrs,{"aria-label":H.ariaLabel,"aria-hidden":m(B),"boundaries-padding":H.boundariesPadding,"fallback-placements":H.fallbackPlacements,"gpu-acceleration":H.gpuAcceleration,offset:H.offset,placement:H.placement,"popper-options":H.popperOptions,strategy:H.strategy,effect:H.effect,enterable:H.enterable,pure:H.pure,"popper-class":H.popperClass,"popper-style":[H.popperStyle,m(R)],"reference-el":H.referenceEl,"trigger-target-el":H.triggerTargetEl,visible:m(P),"z-index":H.zIndex,onMouseenter:m(D),onMouseleave:m(L),onBlur:K,onClose:m(p)}),{default:ue(()=>[He(H.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[hr,m(P)]]):je("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var q2e=vt(G2e,[["__file","content.vue"]]);const K2e=Se({name:"ElTooltip"}),J2e=Se({...K2e,props:V2e,emits:F2e,setup(e,{expose:t,emit:n}){const r=e;NSe();const o=ja(),i=ee(),a=ee(),s=()=>{var C;const T=m(i);T&&((C=T.popperInstanceRef)==null||C.update())},l=ee(!1),u=ee(),{show:d,hide:p,hasUpdateHandler:v}=B2e({indicator:l,toggleReason:u}),{onOpen:y,onClose:w}=DSe({showAfter:xr(r,"showAfter"),hideAfter:xr(r,"hideAfter"),autoClose:xr(r,"autoClose"),open:d,close:p}),b=W(()=>Uo(r.visible)&&!v.value);Wn(IC,{controlled:b,id:o,open:u1(l),trigger:xr(r,"trigger"),onOpen:C=>{y(C)},onClose:C=>{w(C)},onToggle:C=>{m(l)?w(C):y(C)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),at(()=>r.disabled,C=>{C&&l.value&&(l.value=!1)});const k=C=>{var T,$;const P=($=(T=a.value)==null?void 0:T.contentRef)==null?void 0:$.popperContentRef,A=(C==null?void 0:C.relatedTarget)||document.activeElement;return P&&P.contains(A)};return lz(()=>l.value&&p()),t({popperRef:i,contentRef:a,isFocusInsideContent:k,updatePopper:s,onOpen:y,onClose:w,hide:p}),(C,T)=>(Z(),Fe(m(xY),{ref_key:"popperRef",ref:i,role:C.role},{default:ue(()=>[re(Y2e,{disabled:C.disabled,trigger:C.trigger,"trigger-keys":C.triggerKeys,"virtual-ref":C.virtualRef,"virtual-triggering":C.virtualTriggering},{default:ue(()=>[C.$slots.default?He(C.$slots,"default",{key:0}):je("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),re(q2e,{ref_key:"contentRef",ref:a,"aria-label":C.ariaLabel,"boundaries-padding":C.boundariesPadding,content:C.content,disabled:C.disabled,effect:C.effect,enterable:C.enterable,"fallback-placements":C.fallbackPlacements,"hide-after":C.hideAfter,"gpu-acceleration":C.gpuAcceleration,offset:C.offset,persistent:C.persistent,"popper-class":C.popperClass,"popper-style":C.popperStyle,placement:C.placement,"popper-options":C.popperOptions,pure:C.pure,"raw-content":C.rawContent,"reference-el":C.referenceEl,"trigger-target-el":C.triggerTargetEl,"show-after":C.showAfter,strategy:C.strategy,teleported:C.teleported,transition:C.transition,"virtual-triggering":C.virtualTriggering,"z-index":C.zIndex,"append-to":C.appendTo},{default:ue(()=>[He(C.$slots,"content",{},()=>[C.rawContent?(Z(),ce("span",{key:0,innerHTML:C.content},null,8,["innerHTML"])):(Z(),ce("span",{key:1},ut(C.content),1))]),C.showArrow?(Z(),Fe(m(s2e),{key:0,"arrow-offset":C.arrowOffset},null,8,["arrow-offset"])):je("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var eCe=vt(J2e,[["__file","tooltip.vue"]]);const Fi=pn(eCe),tCe=pt({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:Ie(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:Ie([Function,Array]),default:Br},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:Xi.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...ha(["ariaLabel"])}),nCe={[En]:e=>Gt(e),[xs]:e=>Gt(e),[ao]:e=>Gt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Pn(e)},kY="ElAutocomplete",rCe=Se({name:kY,inheritAttrs:!1}),oCe=Se({...rCe,props:tCe,emits:nCe,setup(e,{expose:t,emit:n}){const r=e,o=WI(),i=vv(),a=Rs(),s=lt("autocomplete"),l=ee(),u=ee(),d=ee(),p=ee();let v=!1,y=!1;const w=ee([]),b=ee(-1),k=ee(""),C=ee(!1),T=ee(!1),$=ee(!1),P=ja(),A=W(()=>i.style),R=W(()=>(w.value.length>0||$.value)&&C.value),B=W(()=>!r.hideLoading&&$.value),N=W(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),I=()=>{R.value&&(k.value=`${l.value.$el.offsetWidth}px`)},D=()=>{b.value=-1},z=Ts(async $e=>{if(T.value)return;const _e=me=>{$.value=!1,!T.value&&(xt(me)?(w.value=me,b.value=r.highlightFirstItem?0:-1):$i(kY,"autocomplete suggestions must be an array"))};if($.value=!0,xt(r.fetchSuggestions))_e(r.fetchSuggestions);else{const me=await r.fetchSuggestions($e,_e);xt(me)&&_e(me)}},r.debounce),q=$e=>{const _e=!!$e;if(n(xs,$e),n(En,$e),T.value=!1,C.value||(C.value=_e),!r.triggerOnFocus&&!$e){T.value=!0,w.value=[];return}z($e)},ae=$e=>{var _e;a.value||(((_e=$e.target)==null?void 0:_e.tagName)!=="INPUT"||N.value.includes(document.activeElement))&&(C.value=!0)},K=$e=>{n(ao,$e)},H=$e=>{y?y=!1:(C.value=!0,n("focus",$e),r.triggerOnFocus&&!v&&z(String(r.modelValue)))},ne=$e=>{setTimeout(()=>{var _e;if((_e=d.value)!=null&&_e.isFocusInsideContent()){y=!0;return}C.value&&se(),n("blur",$e)})},X=()=>{C.value=!1,n(En,""),n("clear")},V=async()=>{R.value&&b.value>=0&&b.value<w.value.length?Be(w.value[b.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),w.value=[],b.value=-1)},G=$e=>{R.value&&($e.preventDefault(),$e.stopPropagation(),se())},se=()=>{C.value=!1},he=()=>{var $e;($e=l.value)==null||$e.focus()},pe=()=>{var $e;($e=l.value)==null||$e.blur()},Be=async $e=>{n(xs,$e[r.valueKey]),n(En,$e[r.valueKey]),n("select",$e),w.value=[],b.value=-1},De=$e=>{if(!R.value||$.value)return;if($e<0){b.value=-1;return}$e>=w.value.length&&($e=w.value.length-1);const _e=u.value.querySelector(`.${s.be("suggestion","wrap")}`),Re=_e.querySelectorAll(`.${s.be("suggestion","list")} li`)[$e],we=_e.scrollTop,{offsetTop:fe,scrollHeight:oe}=Re;fe+oe>we+_e.clientHeight&&(_e.scrollTop+=oe),fe<we&&(_e.scrollTop-=oe),b.value=$e,l.value.ref.setAttribute("aria-activedescendant",`${P.value}-item-${b.value}`)},ze=RN(p,()=>{R.value&&se()});return Ur(()=>{ze==null||ze()}),vn(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${P.value}-item-${b.value}`),v=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:b,activated:C,loading:$,inputRef:l,popperRef:d,suggestions:w,handleSelect:Be,handleKeyEnter:V,focus:he,blur:pe,close:se,highlight:De}),($e,_e)=>(Z(),Fe(m(Fi),{ref_key:"popperRef",ref:d,visible:m(R),placement:$e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[m(s).e("popper"),$e.popperClass],teleported:$e.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${m(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:I,onHide:D},{content:ue(()=>[ve("div",{ref_key:"regionRef",ref:u,class:J([m(s).b("suggestion"),m(s).is("loading",m(B))]),style:Vt({[$e.fitInputWidth?"width":"minWidth"]:k.value,outline:"none"}),role:"region"},[re(m(_c),{id:m(P),tag:"ul","wrap-class":m(s).be("suggestion","wrap"),"view-class":m(s).be("suggestion","list"),role:"listbox"},{default:ue(()=>[m(B)?(Z(),ce("li",{key:0},[He($e.$slots,"loading",{},()=>[re(m(jt),{class:J(m(s).is("loading"))},{default:ue(()=>[re(m(cf))]),_:1},8,["class"])])])):(Z(!0),ce(Pt,{key:1},_n(w.value,(me,Re)=>(Z(),ce("li",{id:`${m(P)}-item-${Re}`,key:Re,class:J({highlighted:b.value===Re}),role:"option","aria-selected":b.value===Re,onClick:we=>Be(me)},[He($e.$slots,"default",{item:me},()=>[St(ut(me[$e.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:ue(()=>[ve("div",{ref_key:"listboxRef",ref:p,class:J([m(s).b(),$e.$attrs.class]),style:Vt(m(A)),role:"combobox","aria-haspopup":"listbox","aria-expanded":m(R),"aria-owns":m(P)},[re(m(ei),In({ref_key:"inputRef",ref:l},m(o),{clearable:$e.clearable,disabled:m(a),name:$e.name,"model-value":$e.modelValue,"aria-label":$e.ariaLabel,onInput:q,onChange:K,onFocus:H,onBlur:ne,onClear:X,onKeydown:[Vr(tn(me=>De(b.value-1),["prevent"]),["up"]),Vr(tn(me=>De(b.value+1),["prevent"]),["down"]),Vr(V,["enter"]),Vr(se,["tab"]),Vr(G,["esc"])],onMousedown:ae}),Il({_:2},[$e.$slots.prepend?{name:"prepend",fn:ue(()=>[He($e.$slots,"prepend")])}:void 0,$e.$slots.append?{name:"append",fn:ue(()=>[He($e.$slots,"append")])}:void 0,$e.$slots.prefix?{name:"prefix",fn:ue(()=>[He($e.$slots,"prefix")])}:void 0,$e.$slots.suffix?{name:"suffix",fn:ue(()=>[He($e.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var iCe=vt(oCe,[["__file","autocomplete.vue"]]);const aCe=pn(iCe),sCe=pt({size:{type:[Number,String],values:wf,default:"",validator:e=>en(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Fr},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:Ie(String),default:"cover"}}),lCe={error:e=>e instanceof Event},uCe=Se({name:"ElAvatar"}),cCe=Se({...uCe,props:sCe,emits:lCe,setup(e,{emit:t}){const n=e,r=lt("avatar"),o=ee(!1),i=W(()=>{const{size:u,icon:d,shape:p}=n,v=[r.b()];return Gt(u)&&v.push(r.m(u)),d&&v.push(r.m("icon")),p&&v.push(r.m(p)),v}),a=W(()=>{const{size:u}=n;return en(u)?r.cssVarBlock({size:Vo(u)||""}):void 0}),s=W(()=>({objectFit:n.fit}));at(()=>n.src,()=>o.value=!1);function l(u){o.value=!0,t("error",u)}return(u,d)=>(Z(),ce("span",{class:J(m(i)),style:Vt(m(a))},[(u.src||u.srcSet)&&!o.value?(Z(),ce("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Vt(m(s)),onError:l},null,44,["src","alt","srcset"])):u.icon?(Z(),Fe(m(jt),{key:1},{default:ue(()=>[(Z(),Fe(Dn(u.icon)))]),_:1})):He(u.$slots,"default",{key:2})],6))}});var fCe=vt(cCe,[["__file","avatar.vue"]]);const dCe=pn(fCe),hCe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},pCe={click:e=>e instanceof MouseEvent},gCe=(e,t,n)=>{const r=Kr(),o=Kr(),i=ee(!1),a=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},s=u=>{var d;(d=r.value)==null||d.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=zz(a,300,!0);return Ar(o,"scroll",l),vn(()=>{var u;o.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||$i(n,`target does not exist: ${e.target}`),o.value=r.value),a()}),{visible:i,handleClick:s}},CY="ElBacktop",vCe=Se({name:CY}),mCe=Se({...vCe,props:hCe,emits:pCe,setup(e,{emit:t}){const n=e,r=lt("backtop"),{handleClick:o,visible:i}=gCe(n,t,CY),a=W(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(Z(),Fe(Pi,{name:`${m(r).namespace.value}-fade-in`},{default:ue(()=>[m(i)?(Z(),ce("div",{key:0,style:Vt(m(a)),class:J(m(r).b()),onClick:tn(m(o),["stop"])},[He(s.$slots,"default",{},()=>[re(m(jt),{class:J(m(r).e("icon"))},{default:ue(()=>[re(m(s1e))]),_:1},8,["class"])])],14,["onClick"])):je("v-if",!0)]),_:3},8,["name"]))}});var yCe=vt(mCe,[["__file","backtop.vue"]]);const bCe=pn(yCe),_Ce=pt({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Ie([String,Object,Array])},offset:{type:Ie(Array),default:[0,0]},badgeClass:{type:String}}),OCe=Se({name:"ElBadge"}),wCe=Se({...OCe,props:_Ce,setup(e,{expose:t}){const n=e,r=lt("badge"),o=W(()=>n.isDot?"":en(n.value)&&en(n.max)?n.max<n.value?`${n.max}+`:n.value===0&&!n.showZero?"":`${n.value}`:`${n.value}`),i=W(()=>{var a,s,l,u,d;return[{backgroundColor:n.color,marginRight:Vo(-((s=(a=n.offset)==null?void 0:a[0])!=null?s:0)),marginTop:Vo((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:o}),(a,s)=>(Z(),ce("div",{class:J(m(r).b())},[He(a.$slots,"default"),re(Pi,{name:`${m(r).namespace.value}-zoom-in-center`,persisted:""},{default:ue(()=>[yn(ve("sup",{class:J([m(r).e("content"),m(r).em("content",a.type),m(r).is("fixed",!!a.$slots.default),m(r).is("dot",a.isDot),a.badgeClass]),style:Vt(m(i)),textContent:ut(m(o))},null,14,["textContent"]),[[hr,!a.hidden&&(m(o)||a.isDot)]])]),_:1},8,["name"])],2))}});var SCe=vt(wCe,[["__file","badge.vue"]]);const EY=pn(SCe),TY=Symbol("breadcrumbKey"),xCe=pt({separator:{type:String,default:"/"},separatorIcon:{type:Fr}}),kCe=Se({name:"ElBreadcrumb"}),CCe=Se({...kCe,props:xCe,setup(e){const t=e,{t:n}=rr(),r=lt("breadcrumb"),o=ee();return Wn(TY,t),vn(()=>{const i=o.value.querySelectorAll(`.${r.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,a)=>(Z(),ce("div",{ref_key:"breadcrumb",ref:o,class:J(m(r).b()),"aria-label":m(n)("el.breadcrumb.label"),role:"navigation"},[He(i.$slots,"default")],10,["aria-label"]))}});var ECe=vt(CCe,[["__file","breadcrumb.vue"]]);const TCe=pt({to:{type:Ie([String,Object]),default:""},replace:Boolean}),PCe=Se({name:"ElBreadcrumbItem"}),$Ce=Se({...PCe,props:TCe,setup(e){const t=e,n=Cn(),r=Tt(TY,void 0),o=lt("breadcrumb"),i=n.appContext.config.globalProperties.$router,a=ee(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var d,p;return Z(),ce("span",{class:J(m(o).e("item"))},[ve("span",{ref_key:"link",ref:a,class:J([m(o).e("inner"),m(o).is("link",!!l.to)]),role:"link",onClick:s},[He(l.$slots,"default")],2),(d=m(r))!=null&&d.separatorIcon?(Z(),Fe(m(jt),{key:0,class:J(m(o).e("separator"))},{default:ue(()=>[(Z(),Fe(Dn(m(r).separatorIcon)))]),_:1},8,["class"])):(Z(),ce("span",{key:1,class:J(m(o).e("separator")),role:"presentation"},ut((p=m(r))==null?void 0:p.separator),3))],2)}}});var PY=vt($Ce,[["__file","breadcrumb-item.vue"]]);const ACe=pn(ECe,{BreadcrumbItem:PY}),MCe=So(PY),$Y=Symbol("buttonGroupContextKey"),RCe=(e,t)=>{Bh({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},W(()=>e.type==="text"));const n=Tt($Y,void 0),r=MC("button"),{form:o}=as(),i=bi(W(()=>n==null?void 0:n.size)),a=Rs(),s=ee(),l=zi(),u=W(()=>e.type||(n==null?void 0:n.type)||""),d=W(()=>{var w,b,k;return(k=(b=e.autoInsertSpace)!=null?b:(w=r.value)==null?void 0:w.autoInsertSpace)!=null?k:!1}),p=W(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),v=W(()=>{var w;const b=(w=l.default)==null?void 0:w.call(l);if(d.value&&(b==null?void 0:b.length)===1){const k=b[0];if((k==null?void 0:k.type)===r0){const C=k.children;return/^\p{Unified_Ideograph}{2}$/u.test(C.trim())}}return!1});return{_disabled:a,_size:i,_type:u,_ref:s,_props:p,shouldAddSpace:v,handleClick:w=>{e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",w)}}},vM=["default","primary","success","warning","info","danger","text",""],NCe=["button","submit","reset"],mM=pt({size:Ai,disabled:Boolean,type:{type:String,values:vM,default:""},icon:{type:Fr},nativeType:{type:String,values:NCe,default:"button"},loading:Boolean,loadingIcon:{type:Fr,default:()=>cf},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Ie([String,Object]),default:"button"}}),ICe={click:e=>e instanceof MouseEvent};function Da(e,t){DCe(e)&&(e="100%");var n=jCe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function gx(e){return Math.min(1,Math.max(0,e))}function DCe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function jCe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function AY(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function vx(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Bg(e){return e.length===1?"0"+e:String(e)}function LCe(e,t,n){return{r:Da(e,255)*255,g:Da(t,255)*255,b:Da(n,255)*255}}function k6(e,t,n){e=Da(e,255),t=Da(t,255),n=Da(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:a,l:s}}function I$(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function BCe(e,t,n){var r,o,i;if(e=Da(e,360),t=Da(t,100),n=Da(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=I$(s,a,e+1/3),o=I$(s,a,e),i=I$(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function C6(e,t,n){e=Da(e,255),t=Da(t,255),n=Da(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:a}}function VCe(e,t,n){e=Da(e,360)*6,t=Da(t,100),n=Da(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,u=[n,a,i,i,s,n][l],d=[s,n,n,a,i,i][l],p=[i,i,s,n,n,a][l];return{r:u*255,g:d*255,b:p*255}}function E6(e,t,n,r){var o=[Bg(Math.round(e).toString(16)),Bg(Math.round(t).toString(16)),Bg(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function FCe(e,t,n,r,o){var i=[Bg(Math.round(e).toString(16)),Bg(Math.round(t).toString(16)),Bg(Math.round(n).toString(16)),Bg(zCe(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function zCe(e){return Math.round(parseFloat(e)*255).toString(16)}function T6(e){return xl(e)/255}function xl(e){return parseInt(e,16)}function QCe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var yM={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function WCe(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=UCe(e)),typeof e=="object"&&(td(e.r)&&td(e.g)&&td(e.b)?(t=LCe(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):td(e.h)&&td(e.s)&&td(e.v)?(r=vx(e.s),o=vx(e.v),t=VCe(e.h,r,o),a=!0,s="hsv"):td(e.h)&&td(e.s)&&td(e.l)&&(r=vx(e.s),i=vx(e.l),t=BCe(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=AY(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var YCe="[-\\+]?\\d+%?",ZCe="[-\\+]?\\d*\\.\\d+%?",Ph="(?:".concat(ZCe,")|(?:").concat(YCe,")"),D$="[\\s|\\(]+(".concat(Ph,")[,|\\s]+(").concat(Ph,")[,|\\s]+(").concat(Ph,")\\s*\\)?"),j$="[\\s|\\(]+(".concat(Ph,")[,|\\s]+(").concat(Ph,")[,|\\s]+(").concat(Ph,")[,|\\s]+(").concat(Ph,")\\s*\\)?"),rc={CSS_UNIT:new RegExp(Ph),rgb:new RegExp("rgb"+D$),rgba:new RegExp("rgba"+j$),hsl:new RegExp("hsl"+D$),hsla:new RegExp("hsla"+j$),hsv:new RegExp("hsv"+D$),hsva:new RegExp("hsva"+j$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function UCe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(yM[e])e=yM[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=rc.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=rc.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=rc.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=rc.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=rc.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=rc.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=rc.hex8.exec(e),n?{r:xl(n[1]),g:xl(n[2]),b:xl(n[3]),a:T6(n[4]),format:t?"name":"hex8"}:(n=rc.hex6.exec(e),n?{r:xl(n[1]),g:xl(n[2]),b:xl(n[3]),format:t?"name":"hex"}:(n=rc.hex4.exec(e),n?{r:xl(n[1]+n[1]),g:xl(n[2]+n[2]),b:xl(n[3]+n[3]),a:T6(n[4]+n[4]),format:t?"name":"hex8"}:(n=rc.hex3.exec(e),n?{r:xl(n[1]+n[1]),g:xl(n[2]+n[2]),b:xl(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function td(e){return Boolean(rc.CSS_UNIT.exec(String(e)))}var MY=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=QCe(t)),this.originalInput=t;var o=WCe(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=AY(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=C6(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=C6(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=k6(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=k6(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),E6(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),FCe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Da(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Da(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+E6(this.r,this.g,this.b,!1),n=0,r=Object.entries(yM);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t!=null?t:this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=gx(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=gx(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=gx(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=gx(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function yh(e,t=20){return e.mix("#141414",t).toString()}function HCe(e){const t=Rs(),n=lt("button");return W(()=>{let r={},o=e.color;if(o){const i=o.match(/var\((.*?)\)/);i&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const a=new MY(o),s=e.dark?a.tint(20).toString():yh(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?yh(a,90):a.tint(90).toString(),"text-color":o,"border-color":e.dark?yh(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?yh(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?yh(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?yh(a,80):a.tint(80).toString());else{const l=e.dark?yh(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":u,"border-color":o,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const d=e.dark?yh(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=d,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=d}}}return r})}const XCe=Se({name:"ElButton"}),GCe=Se({...XCe,props:mM,emits:ICe,setup(e,{expose:t,emit:n}){const r=e,o=HCe(r),i=lt("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:d,shouldAddSpace:p,handleClick:v}=RCe(r,n),y=W(()=>[i.b(),i.m(l.value),i.m(s.value),i.is("disabled",u.value),i.is("loading",r.loading),i.is("plain",r.plain),i.is("round",r.round),i.is("circle",r.circle),i.is("text",r.text),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:a,size:s,type:l,disabled:u,shouldAddSpace:p}),(w,b)=>(Z(),Fe(Dn(w.tag),In({ref_key:"_ref",ref:a},m(d),{class:m(y),style:m(o),onClick:m(v)}),{default:ue(()=>[w.loading?(Z(),ce(Pt,{key:0},[w.$slots.loading?He(w.$slots,"loading",{key:0}):(Z(),Fe(m(jt),{key:1,class:J(m(i).is("loading"))},{default:ue(()=>[(Z(),Fe(Dn(w.loadingIcon)))]),_:1},8,["class"]))],64)):w.icon||w.$slots.icon?(Z(),Fe(m(jt),{key:1},{default:ue(()=>[w.icon?(Z(),Fe(Dn(w.icon),{key:0})):He(w.$slots,"icon",{key:1})]),_:3})):je("v-if",!0),w.$slots.default?(Z(),ce("span",{key:2,class:J({[m(i).em("text","expand")]:m(p)})},[He(w.$slots,"default")],2)):je("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var qCe=vt(GCe,[["__file","button.vue"]]);const KCe={size:mM.size,type:mM.type},JCe=Se({name:"ElButtonGroup"}),eEe=Se({...JCe,props:KCe,setup(e){const t=e;Wn($Y,nr({size:xr(t,"size"),type:xr(t,"type")}));const n=lt("button");return(r,o)=>(Z(),ce("div",{class:J(m(n).b("group"))},[He(r.$slots,"default")],2))}});var RY=vt(eEe,[["__file","button-group.vue"]]);const no=pn(qCe,{ButtonGroup:RY}),NY=So(RY);var Ys=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function tEe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var IY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",u="day",d="week",p="month",v="quarter",y="year",w="date",b="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={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(ae){var K=["th","st","nd","rd"],H=ae%100;return"["+ae+(K[(H-20)%10]||K[H]||K[0])+"]"}},$=function(ae,K,H){var ne=String(ae);return!ne||ne.length>=K?ae:""+Array(K+1-ne.length).join(H)+ae},P={s:$,z:function(ae){var K=-ae.utcOffset(),H=Math.abs(K),ne=Math.floor(H/60),X=H%60;return(K<=0?"+":"-")+$(ne,2,"0")+":"+$(X,2,"0")},m:function ae(K,H){if(K.date()<H.date())return-ae(H,K);var ne=12*(H.year()-K.year())+(H.month()-K.month()),X=K.clone().add(ne,p),V=H-X<0,G=K.clone().add(ne+(V?-1:1),p);return+(-(ne+(H-X)/(V?X-G:G-X))||0)},a:function(ae){return ae<0?Math.ceil(ae)||0:Math.floor(ae)},p:function(ae){return{M:p,y,w:d,d:u,D:w,h:l,m:s,s:a,ms:i,Q:v}[ae]||String(ae||"").toLowerCase().replace(/s$/,"")},u:function(ae){return ae===void 0}},A="en",R={};R[A]=T;var B="$isDayjsObject",N=function(ae){return ae instanceof z||!(!ae||!ae[B])},I=function ae(K,H,ne){var X;if(!K)return A;if(typeof K=="string"){var V=K.toLowerCase();R[V]&&(X=V),H&&(R[V]=H,X=V);var G=K.split("-");if(!X&&G.length>1)return ae(G[0])}else{var se=K.name;R[se]=K,X=se}return!ne&&X&&(A=X),X||!ne&&A},D=function(ae,K){if(N(ae))return ae.clone();var H=typeof K=="object"?K:{};return H.date=ae,H.args=arguments,new z(H)},L=P;L.l=I,L.i=N,L.w=function(ae,K){return D(ae,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var z=function(){function ae(H){this.$L=I(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[B]=!0}var K=ae.prototype;return K.parse=function(H){this.$d=function(ne){var X=ne.date,V=ne.utc;if(X===null)return new Date(NaN);if(L.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var G=X.match(k);if(G){var se=G[2]-1||0,he=(G[7]||"0").substring(0,3);return V?new Date(Date.UTC(G[1],se,G[3]||1,G[4]||0,G[5]||0,G[6]||0,he)):new Date(G[1],se,G[3]||1,G[4]||0,G[5]||0,G[6]||0,he)}}return new Date(X)}(H),this.init()},K.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},K.$utils=function(){return L},K.isValid=function(){return this.$d.toString()!==b},K.isSame=function(H,ne){var X=D(H);return this.startOf(ne)<=X&&X<=this.endOf(ne)},K.isAfter=function(H,ne){return D(H)<this.startOf(ne)},K.isBefore=function(H,ne){return this.endOf(ne)<D(H)},K.$g=function(H,ne,X){return L.u(H)?this[ne]:this.set(X,H)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(H,ne){var X=this,V=!!L.u(ne)||ne,G=L.p(H),se=function(me,Re){var we=L.w(X.$u?Date.UTC(X.$y,Re,me):new Date(X.$y,Re,me),X);return V?we:we.endOf(u)},he=function(me,Re){return L.w(X.toDate()[me].apply(X.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(Re)),X)},pe=this.$W,Be=this.$M,De=this.$D,ze="set"+(this.$u?"UTC":"");switch(G){case y:return V?se(1,0):se(31,11);case p:return V?se(1,Be):se(0,Be+1);case d:var $e=this.$locale().weekStart||0,_e=(pe<$e?pe+7:pe)-$e;return se(V?De-_e:De+(6-_e),Be);case u:case w:return he(ze+"Hours",0);case l:return he(ze+"Minutes",1);case s:return he(ze+"Seconds",2);case a:return he(ze+"Milliseconds",3);default:return this.clone()}},K.endOf=function(H){return this.startOf(H,!1)},K.$set=function(H,ne){var X,V=L.p(H),G="set"+(this.$u?"UTC":""),se=(X={},X[u]=G+"Date",X[w]=G+"Date",X[p]=G+"Month",X[y]=G+"FullYear",X[l]=G+"Hours",X[s]=G+"Minutes",X[a]=G+"Seconds",X[i]=G+"Milliseconds",X)[V],he=V===u?this.$D+(ne-this.$W):ne;if(V===p||V===y){var pe=this.clone().set(w,1);pe.$d[se](he),pe.init(),this.$d=pe.set(w,Math.min(this.$D,pe.daysInMonth())).$d}else se&&this.$d[se](he);return this.init(),this},K.set=function(H,ne){return this.clone().$set(H,ne)},K.get=function(H){return this[L.p(H)]()},K.add=function(H,ne){var X,V=this;H=Number(H);var G=L.p(ne),se=function(Be){var De=D(V);return L.w(De.date(De.date()+Math.round(Be*H)),V)};if(G===p)return this.set(p,this.$M+H);if(G===y)return this.set(y,this.$y+H);if(G===u)return se(1);if(G===d)return se(7);var he=(X={},X[s]=r,X[l]=o,X[a]=n,X)[G]||1,pe=this.$d.getTime()+H*he;return L.w(pe,this)},K.subtract=function(H,ne){return this.add(-1*H,ne)},K.format=function(H){var ne=this,X=this.$locale();if(!this.isValid())return X.invalidDate||b;var V=H||"YYYY-MM-DDTHH:mm:ssZ",G=L.z(this),se=this.$H,he=this.$m,pe=this.$M,Be=X.weekdays,De=X.months,ze=X.meridiem,$e=function(Re,we,fe,oe){return Re&&(Re[we]||Re(ne,V))||fe[we].slice(0,oe)},_e=function(Re){return L.s(se%12||12,Re,"0")},me=ze||function(Re,we,fe){var oe=Re<12?"AM":"PM";return fe?oe.toLowerCase():oe};return V.replace(C,function(Re,we){return we||function(fe){switch(fe){case"YY":return String(ne.$y).slice(-2);case"YYYY":return L.s(ne.$y,4,"0");case"M":return pe+1;case"MM":return L.s(pe+1,2,"0");case"MMM":return $e(X.monthsShort,pe,De,3);case"MMMM":return $e(De,pe);case"D":return ne.$D;case"DD":return L.s(ne.$D,2,"0");case"d":return String(ne.$W);case"dd":return $e(X.weekdaysMin,ne.$W,Be,2);case"ddd":return $e(X.weekdaysShort,ne.$W,Be,3);case"dddd":return Be[ne.$W];case"H":return String(se);case"HH":return L.s(se,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return me(se,he,!0);case"A":return me(se,he,!1);case"m":return String(he);case"mm":return L.s(he,2,"0");case"s":return String(ne.$s);case"ss":return L.s(ne.$s,2,"0");case"SSS":return L.s(ne.$ms,3,"0");case"Z":return G}return null}(Re)||G.replace(":","")})},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(H,ne,X){var V,G=this,se=L.p(ne),he=D(H),pe=(he.utcOffset()-this.utcOffset())*r,Be=this-he,De=function(){return L.m(G,he)};switch(se){case y:V=De()/12;break;case p:V=De();break;case v:V=De()/3;break;case d:V=(Be-pe)/6048e5;break;case u:V=(Be-pe)/864e5;break;case l:V=Be/o;break;case s:V=Be/r;break;case a:V=Be/n;break;default:V=Be}return X?V:L.a(V)},K.daysInMonth=function(){return this.endOf(p).$D},K.$locale=function(){return R[this.$L]},K.locale=function(H,ne){if(!H)return this.$L;var X=this.clone(),V=I(H,ne,!0);return V&&(X.$L=V),X},K.clone=function(){return L.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},ae}(),q=z.prototype;return D.prototype=q,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",u],["$M",p],["$y",y],["$D",w]].forEach(function(ae){q[ae[1]]=function(K){return this.$g(K,ae[0],ae[1])}}),D.extend=function(ae,K){return ae.$i||(ae(K,z,D),ae.$i=!0),D},D.locale=I,D.isDayjs=N,D.unix=function(ae){return D(1e3*ae)},D.en=R[A],D.Ls=R,D.p={},D})})(IY);var un=IY.exports,DY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},l=function(b){return(b=+b)+(b>68?1900:2e3)},u=function(b){return function(k){this[b]=+k}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var C=k.match(/([+-]|\d\d)/g),T=60*C[1]+(+C[2]||0);return T===0?0:C[0]==="+"?-T:T}(b)}],p=function(b){var k=s[b];return k&&(k.indexOf?k:k.s.concat(k.f))},v=function(b,k){var C,T=s.meridiem;if(T){for(var $=1;$<=24;$+=1)if(b.indexOf(T($,0,k))>-1){C=$>12;break}}else C=b===(k?"pm":"PM");return C},y={A:[a,function(b){this.afternoon=v(b,!1)}],a:[a,function(b){this.afternoon=v(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[o,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[o,u("day")],Do:[a,function(b){var k=s.ordinal,C=b.match(/\d+/);if(this.day=C[0],k)for(var T=1;T<=31;T+=1)k(T).replace(/\[|\]/g,"")===b&&(this.day=T)}],M:[i,u("month")],MM:[o,u("month")],MMM:[a,function(b){var k=p("months"),C=(p("monthsShort")||k.map(function(T){return T.slice(0,3)})).indexOf(b)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[a,function(b){var k=p("months").indexOf(b)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(b){this.year=l(b)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function w(b){var k,C;k=b,C=s&&s.formats;for(var T=(b=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,D,L){var z=L&&L.toUpperCase();return D||C[L]||n[L]||C[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,ae,K){return ae||K.slice(1)})})).match(r),$=T.length,P=0;P<$;P+=1){var A=T[P],R=y[A],B=R&&R[0],N=R&&R[1];T[P]=N?{regex:B,parser:N}:A.replace(/^\[|\]$/g,"")}return function(I){for(var D={},L=0,z=0;L<$;L+=1){var q=T[L];if(typeof q=="string")z+=q.length;else{var ae=q.regex,K=q.parser,H=I.slice(z),ne=ae.exec(H)[0];K.call(D,ne),I=I.replace(ne,"")}}return function(X){var V=X.afternoon;if(V!==void 0){var G=X.hours;V?G<12&&(X.hours+=12):G===12&&(X.hours=0),delete X.afternoon}}(D),D}}return function(b,k,C){C.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(l=b.parseTwoDigitYear);var T=k.prototype,$=T.parse;T.parse=function(P){var A=P.date,R=P.utc,B=P.args;this.$u=R;var N=B[1];if(typeof N=="string"){var I=B[2]===!0,D=B[3]===!0,L=I||D,z=B[2];D&&(z=B[2]),s=this.$locale(),!I&&z&&(s=C.Ls[z]),this.$d=function(H,ne,X){try{if(["x","X"].indexOf(ne)>-1)return new Date((ne==="X"?1e3:1)*H);var V=w(ne)(H),G=V.year,se=V.month,he=V.day,pe=V.hours,Be=V.minutes,De=V.seconds,ze=V.milliseconds,$e=V.zone,_e=new Date,me=he||(G||se?1:_e.getDate()),Re=G||_e.getFullYear(),we=0;G&&!se||(we=se>0?se-1:_e.getMonth());var fe=pe||0,oe=Be||0,ke=De||0,We=ze||0;return $e?new Date(Date.UTC(Re,we,me,fe,oe,ke,We+60*$e.offset*1e3)):X?new Date(Date.UTC(Re,we,me,fe,oe,ke,We)):new Date(Re,we,me,fe,oe,ke,We)}catch{return new Date("")}}(A,N,R),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),L&&A!=this.format(N)&&(this.$d=new Date("")),s={}}else if(N instanceof Array)for(var q=N.length,ae=1;ae<=q;ae+=1){B[1]=N[ae-1];var K=C.apply(this,B);if(K.isValid()){this.$d=K.$d,this.$L=K.$L,this.init();break}ae===q&&(this.$d=new Date(""))}else $.call(this,P)}}})})(DY);var m3=DY.exports;const P6=["hours","minutes","seconds"],bM="HH:mm:ss",Gm="YYYY-MM-DD",nEe={date:Gm,dates:Gm,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Gm} ${bM}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Gm,datetimerange:`${Gm} ${bM}`},L$=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Vh=e=>Array.from(Array.from({length:e}).keys()),jY=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),LY=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),$6=function(e,t){const n=ev(e),r=ev(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},A6=function(e,t){const n=xt(e),r=xt(t);return n&&r?e.length!==t.length?!1:e.every((o,i)=>$6(o,t[i])):!n&&!r?$6(e,t):!1},M6=function(e,t,n){const r=fu(t)||t==="x"?un(e).locale(n):un(e,t).locale(n);return r.isValid()?r:void 0},R6=function(e,t,n){return fu(t)?e:t==="x"?+e:un(e).locale(n).format(t)},B$=(e,t)=>{var n;const r=[],o=t==null?void 0:t();for(let i=0;i<e;i++)r.push((n=o==null?void 0:o.includes(i))!=null?n:!1);return r},BY=pt({disabledHours:{type:Ie(Function)},disabledMinutes:{type:Ie(Function)},disabledSeconds:{type:Ie(Function)}}),VY=pt({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),y3=pt({id:{type:Ie([Array,String])},name:{type:Ie([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Ie([String,Object]),default:_p},editable:{type:Boolean,default:!0},prefixIcon:{type:Ie([String,Object]),default:""},size:Ai,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:Ie(Object),default:()=>({})},modelValue:{type:Ie([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:Ie([Date,Array])},defaultTime:{type:Ie([Date,Array])},isRange:Boolean,...BY,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:Ie([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,...g0,...ha(["ariaLabel"])}),rEe=Se({name:"Picker"}),oEe=Se({...rEe,props:y3,emits:["update:modelValue","change","focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,o=vv(),{lang:i}=rr(),a=lt("date"),s=lt("input"),l=lt("range"),{form:u,formItem:d}=as(),p=Tt("ElPopperOptions",{}),{valueOnClear:v}=AC(r,null),y=ee(),w=ee(),b=ee(!1),k=ee(!1),C=ee(null);let T=!1,$=!1;const P=W(()=>[a.b("editor"),a.bm("editor",r.type),s.e("wrapper"),a.is("disabled",pe.value),a.is("active",b.value),l.b("editor"),be?l.bm("editor",be.value):"",o.class]),A=W(()=>[s.e("icon"),l.e("close-icon"),fe.value?"":l.e("close-icon--hidden")]);at(b,ot=>{ot?zt(()=>{ot&&(C.value=r.modelValue)}):(Xe.value=null,zt(()=>{R(r.modelValue)}))});const R=(ot,Lt)=>{(Lt||!A6(ot,C.value))&&(n("change",ot),r.validateEvent&&(d==null||d.validate("change").catch(wn=>void 0)))},B=ot=>{if(!A6(r.modelValue,ot)){let Lt;xt(ot)?Lt=ot.map(wn=>R6(wn,r.valueFormat,i.value)):ot&&(Lt=R6(ot,r.valueFormat,i.value)),n("update:modelValue",ot&&Lt,i.value)}},N=ot=>{n("keydown",ot)},I=W(()=>{if(w.value){const ot=Ke.value?w.value:w.value.$el;return Array.from(ot.querySelectorAll("input"))}return[]}),D=(ot,Lt,wn)=>{const Nt=I.value;!Nt.length||(!wn||wn==="min"?(Nt[0].setSelectionRange(ot,Lt),Nt[0].focus()):wn==="max"&&(Nt[1].setSelectionRange(ot,Lt),Nt[1].focus()))},L=()=>{V(!0,!0),zt(()=>{$=!1})},z=(ot="",Lt=!1)=>{Lt||($=!0),b.value=Lt;let wn;xt(ot)?wn=ot.map(Nt=>Nt.toDate()):wn=ot&&ot.toDate(),Xe.value=null,B(wn)},q=()=>{k.value=!0},ae=()=>{n("visible-change",!0)},K=ot=>{(ot==null?void 0:ot.key)===Qt.esc&&V(!0,!0)},H=()=>{k.value=!1,b.value=!1,$=!1,n("visible-change",!1)},ne=()=>{b.value=!0},X=()=>{b.value=!1},V=(ot=!0,Lt=!1)=>{$=Lt;const[wn,Nt]=m(I);let Xt=wn;!ot&&Ke.value&&(Xt=Nt),Xt&&Xt.focus()},G=ot=>{r.readonly||pe.value||b.value||$||(b.value=!0,n("focus",ot))};let se;const he=ot=>{const Lt=async()=>{setTimeout(()=>{var wn;se===Lt&&(!(((wn=y.value)==null?void 0:wn.isFocusInsideContent())&&!T)&&I.value.filter(Nt=>Nt.contains(document.activeElement)).length===0&&(gt(),b.value=!1,n("blur",ot),r.validateEvent&&(d==null||d.validate("blur").catch(Nt=>void 0))),T=!1)},0)};se=Lt,Lt()},pe=W(()=>r.disabled||(u==null?void 0:u.disabled)),Be=W(()=>{let ot;if(ke.value?Ue.value.getDefaultValue&&(ot=Ue.value.getDefaultValue()):xt(r.modelValue)?ot=r.modelValue.map(Lt=>M6(Lt,r.valueFormat,i.value)):ot=M6(r.modelValue,r.valueFormat,i.value),Ue.value.getRangeAvailableTime){const Lt=Ue.value.getRangeAvailableTime(ot);rs(Lt,ot)||(ot=Lt,B(xt(ot)?ot.map(wn=>wn.toDate()):ot.toDate()))}return xt(ot)&&ot.some(Lt=>!Lt)&&(ot=[]),ot}),De=W(()=>{if(!Ue.value.panelReady)return"";const ot=Zt(Be.value);return xt(Xe.value)?[Xe.value[0]||ot&&ot[0]||"",Xe.value[1]||ot&&ot[1]||""]:Xe.value!==null?Xe.value:!$e.value&&ke.value||!b.value&&ke.value?"":ot?_e.value||me.value||Re.value?ot.join(", "):ot:""}),ze=W(()=>r.type.includes("time")),$e=W(()=>r.type.startsWith("time")),_e=W(()=>r.type==="dates"),me=W(()=>r.type==="months"),Re=W(()=>r.type==="years"),we=W(()=>r.prefixIcon||(ze.value?bW:o1e)),fe=ee(!1),oe=ot=>{r.readonly||pe.value||(fe.value&&(ot.stopPropagation(),L(),Ue.value.handleClear?Ue.value.handleClear():B(v.value),R(v.value,!0),fe.value=!1,b.value=!1),n("clear"))},ke=W(()=>{const{modelValue:ot}=r;return!ot||xt(ot)&&!ot.filter(Boolean).length}),We=async ot=>{var Lt;r.readonly||pe.value||(((Lt=ot.target)==null?void 0:Lt.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(b.value=!0)},et=()=>{r.readonly||pe.value||!ke.value&&r.clearable&&(fe.value=!0)},Ve=()=>{fe.value=!1},Me=ot=>{var Lt;r.readonly||pe.value||(((Lt=ot.touches[0].target)==null?void 0:Lt.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(b.value=!0)},Ke=W(()=>r.type.includes("range")),be=bi(),qe=W(()=>{var ot,Lt;return(Lt=(ot=m(y))==null?void 0:ot.popperRef)==null?void 0:Lt.contentRef}),ct=W(()=>{var ot;return m(Ke)?m(w):(ot=m(w))==null?void 0:ot.$el}),Je=RN(ct,ot=>{const Lt=m(qe),wn=m(ct);Lt&&(ot.target===Lt||ot.composedPath().includes(Lt))||ot.target===wn||ot.composedPath().includes(wn)||(b.value=!1)});Ur(()=>{Je==null||Je()});const Xe=ee(null),gt=()=>{if(Xe.value){const ot=Ct(De.value);ot&&Et(ot)&&(B(xt(ot)?ot.map(Lt=>Lt.toDate()):ot.toDate()),Xe.value=null)}Xe.value===""&&(B(v.value),R(v.value),Xe.value=null)},Ct=ot=>ot?Ue.value.parseUserInput(ot):null,Zt=ot=>ot?Ue.value.formatToString(ot):null,Et=ot=>Ue.value.isValidValue(ot),ln=async ot=>{if(r.readonly||pe.value)return;const{code:Lt}=ot;if(N(ot),Lt===Qt.esc){b.value===!0&&(b.value=!1,ot.preventDefault(),ot.stopPropagation());return}if(Lt===Qt.down&&(Ue.value.handleFocusPicker&&(ot.preventDefault(),ot.stopPropagation()),b.value===!1&&(b.value=!0,await zt()),Ue.value.handleFocusPicker)){Ue.value.handleFocusPicker();return}if(Lt===Qt.tab){T=!0;return}if(Lt===Qt.enter||Lt===Qt.numpadEnter){(Xe.value===null||Xe.value===""||Et(Ct(De.value)))&&(gt(),b.value=!1),ot.stopPropagation();return}if(Xe.value){ot.stopPropagation();return}Ue.value.handleKeydownInput&&Ue.value.handleKeydownInput(ot)},Ee=ot=>{Xe.value=ot,b.value||(b.value=!0)},Ze=ot=>{const Lt=ot.target;Xe.value?Xe.value=[Lt.value,Xe.value[1]]:Xe.value=[Lt.value,null]},ye=ot=>{const Lt=ot.target;Xe.value?Xe.value=[Xe.value[0],Lt.value]:Xe.value=[null,Lt.value]},Le=()=>{var ot;const Lt=Xe.value,wn=Ct(Lt&&Lt[0]),Nt=m(Be);if(wn&&wn.isValid()){Xe.value=[Zt(wn),((ot=De.value)==null?void 0:ot[1])||null];const Xt=[wn,Nt&&(Nt[1]||null)];Et(Xt)&&(B(Xt),Xe.value=null)}},xe=()=>{var ot;const Lt=m(Xe),wn=Ct(Lt&&Lt[1]),Nt=m(Be);if(wn&&wn.isValid()){Xe.value=[((ot=m(De))==null?void 0:ot[0])||null,Zt(wn)];const Xt=[Nt&&Nt[0],wn];Et(Xt)&&(B(Xt),Xe.value=null)}},Ue=ee({}),rt=ot=>{Ue.value[ot[0]]=ot[1],Ue.value.panelReady=!0},Ft=ot=>{n("calendar-change",ot)},Vn=(ot,Lt,wn)=>{n("panel-change",ot,Lt,wn)};return Wn("EP_PICKER_BASE",{props:r}),t({focus:V,handleFocusInput:G,handleBlurInput:he,handleOpen:ne,handleClose:X,onPick:z}),(ot,Lt)=>(Z(),Fe(m(Fi),In({ref_key:"refPopper",ref:y,visible:b.value,effect:"light",pure:"",trigger:"click"},ot.$attrs,{role:"dialog",teleported:"",transition:`${m(a).namespace.value}-zoom-in-top`,"popper-class":[`${m(a).namespace.value}-picker__popper`,ot.popperClass],"popper-options":m(p),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:q,onShow:ae,onHide:H}),{default:ue(()=>[m(Ke)?(Z(),ce("div",{key:1,ref_key:"inputRef",ref:w,class:J(m(P)),style:Vt(ot.$attrs.style),onClick:G,onMouseenter:et,onMouseleave:Ve,onTouchstartPassive:Me,onKeydown:ln},[m(we)?(Z(),Fe(m(jt),{key:0,class:J([m(s).e("icon"),m(l).e("icon")]),onMousedown:tn(We,["prevent"]),onTouchstartPassive:Me},{default:ue(()=>[(Z(),Fe(Dn(m(we))))]),_:1},8,["class","onMousedown"])):je("v-if",!0),ve("input",{id:ot.id&&ot.id[0],autocomplete:"off",name:ot.name&&ot.name[0],placeholder:ot.startPlaceholder,value:m(De)&&m(De)[0],disabled:m(pe),readonly:!ot.editable||ot.readonly,class:J(m(l).b("input")),onMousedown:We,onInput:Ze,onChange:Le,onFocus:G,onBlur:he},null,42,["id","name","placeholder","value","disabled","readonly"]),He(ot.$slots,"range-separator",{},()=>[ve("span",{class:J(m(l).b("separator"))},ut(ot.rangeSeparator),3)]),ve("input",{id:ot.id&&ot.id[1],autocomplete:"off",name:ot.name&&ot.name[1],placeholder:ot.endPlaceholder,value:m(De)&&m(De)[1],disabled:m(pe),readonly:!ot.editable||ot.readonly,class:J(m(l).b("input")),onMousedown:We,onFocus:G,onBlur:he,onInput:ye,onChange:xe},null,42,["id","name","placeholder","value","disabled","readonly"]),ot.clearIcon?(Z(),Fe(m(jt),{key:1,class:J(m(A)),onClick:oe},{default:ue(()=>[(Z(),Fe(Dn(ot.clearIcon)))]),_:1},8,["class"])):je("v-if",!0)],38)):(Z(),Fe(m(ei),{key:0,id:ot.id,ref_key:"inputRef",ref:w,"container-role":"combobox","model-value":m(De),name:ot.name,size:m(be),disabled:m(pe),placeholder:ot.placeholder,class:J([m(a).b("editor"),m(a).bm("editor",ot.type),ot.$attrs.class]),style:Vt(ot.$attrs.style),readonly:!ot.editable||ot.readonly||m(_e)||m(me)||m(Re)||ot.type==="week","aria-label":ot.ariaLabel,tabindex:ot.tabindex,"validate-event":!1,onInput:Ee,onFocus:G,onBlur:he,onKeydown:ln,onChange:gt,onMousedown:We,onMouseenter:et,onMouseleave:Ve,onTouchstartPassive:Me,onClick:tn(()=>{},["stop"])},{prefix:ue(()=>[m(we)?(Z(),Fe(m(jt),{key:0,class:J(m(s).e("icon")),onMousedown:tn(We,["prevent"]),onTouchstartPassive:Me},{default:ue(()=>[(Z(),Fe(Dn(m(we))))]),_:1},8,["class","onMousedown"])):je("v-if",!0)]),suffix:ue(()=>[fe.value&&ot.clearIcon?(Z(),Fe(m(jt),{key:0,class:J(`${m(s).e("icon")} clear-icon`),onClick:tn(oe,["stop"])},{default:ue(()=>[(Z(),Fe(Dn(ot.clearIcon)))]),_:1},8,["class","onClick"])):je("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onKeydown","onClick"]))]),content:ue(()=>[He(ot.$slots,"default",{visible:b.value,actualVisible:k.value,parsedValue:m(Be),format:ot.format,dateFormat:ot.dateFormat,timeFormat:ot.timeFormat,unlinkPanels:ot.unlinkPanels,type:ot.type,defaultValue:ot.defaultValue,onPick:z,onSelectRange:D,onSetPickerOption:rt,onCalendarChange:Ft,onPanelChange:Vn,onKeydown:K,onMousedown:tn(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var FY=vt(oEe,[["__file","picker.vue"]]);const iEe=pt({...VY,datetimeRole:String,parsedValue:{type:Ie(Object)}}),zY=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(a,s,l,u)=>{const d={hour:e,minute:t,second:n};let p=a;return["hour","minute","second"].forEach(v=>{if(d[v]){let y;const w=d[v];switch(v){case"minute":{y=w(p.hour(),s,u);break}case"second":{y=w(p.hour(),p.minute(),s,u);break}default:{y=w(s,u);break}}if((y==null?void 0:y.length)&&!y.includes(p[v]())){const b=l?0:y.length-1;p=p[v](y[b])}}}),p},o={};return{timePickerOptions:o,getAvailableTime:r,onSetOption:([a,s])=>{o[a]=s}}},V$=e=>{const t=(r,o)=>r||o,n=r=>r!==!0;return e.map(t).filter(n)},QY=(e,t,n)=>({getHoursList:(a,s)=>B$(24,e&&(()=>e==null?void 0:e(a,s))),getMinutesList:(a,s,l)=>B$(60,t&&(()=>t==null?void 0:t(a,s,l))),getSecondsList:(a,s,l,u)=>B$(60,n&&(()=>n==null?void 0:n(a,s,l,u)))}),WY=(e,t,n)=>{const{getHoursList:r,getMinutesList:o,getSecondsList:i}=QY(e,t,n);return{getAvailableHours:(u,d)=>V$(r(u,d)),getAvailableMinutes:(u,d,p)=>V$(o(u,d,p)),getAvailableSeconds:(u,d,p,v)=>V$(i(u,d,p,v))}},YY=e=>{const t=ee(e.parsedValue);return at(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Oh=new Map;if(tr){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Oh.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function N6(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Rl(t.arg)&&n.push(t.arg),function(r,o){const i=t.instance.popperRef,a=r.target,s=o==null?void 0:o.target,l=!t||!t.instance,u=!a||!s,d=e.contains(a)||e.contains(s),p=e===a,v=n.length&&n.some(w=>w==null?void 0:w.contains(a))||n.length&&n.includes(s),y=i&&(i.contains(a)||i.contains(s));l||u||d||p||v||y||t.value(r,o)}}const hd={beforeMount(e,t){Oh.has(e)||Oh.set(e,[]),Oh.get(e).push({documentHandler:N6(e,t),bindingFn:t.value})},updated(e,t){Oh.has(e)||Oh.set(e,[]);const n=Oh.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),o={documentHandler:N6(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){Oh.delete(e)}},aEe=100,sEe=600,Yk={beforeMount(e,t){const n=t.value,{interval:r=aEe,delay:o=sEe}=nn(n)?{}:n;let i,a;const s=()=>nn(n)?n():n.handler(),l=()=>{a&&(clearTimeout(a),a=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),a=setTimeout(()=>{i=setInterval(()=>{s()},r)},o))})}},_M="_trap-focus-children",Vg=[],I6=e=>{if(Vg.length===0)return;const t=Vg[Vg.length-1][_M];if(t.length>0&&e.code===Qt.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],o=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},lEe={beforeMount(e){e[_M]=m5(e),Vg.push(e),Vg.length<=1&&document.addEventListener("keydown",I6)},updated(e){zt(()=>{e[_M]=m5(e)})},unmounted(){Vg.shift(),Vg.length===0&&document.removeEventListener("keydown",I6)}};var D6=!1,Ag,OM,wM,rk,ok,ZY,ik,SM,xM,kM,UY,CM,EM,HY,XY;function Fs(){if(!D6){D6=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(CM=/\b(iPhone|iP[ao]d)/.exec(e),EM=/\b(iP[ao]d)/.exec(e),kM=/Android/i.exec(e),HY=/FBAN\/\w+;/i.exec(e),XY=/Mobile/i.exec(e),UY=!!/Win64/.exec(e),t){Ag=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ag&&document&&document.documentMode&&(Ag=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);ZY=r?parseFloat(r[1])+4:Ag,OM=t[2]?parseFloat(t[2]):NaN,wM=t[3]?parseFloat(t[3]):NaN,rk=t[4]?parseFloat(t[4]):NaN,rk?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),ok=t&&t[1]?parseFloat(t[1]):NaN):ok=NaN}else Ag=OM=wM=ok=rk=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);ik=o?parseFloat(o[1].replace("_",".")):!0}else ik=!1;SM=!!n[2],xM=!!n[3]}else ik=SM=xM=!1}}var TM={ie:function(){return Fs()||Ag},ieCompatibilityMode:function(){return Fs()||ZY>Ag},ie64:function(){return TM.ie()&&UY},firefox:function(){return Fs()||OM},opera:function(){return Fs()||wM},webkit:function(){return Fs()||rk},safari:function(){return TM.webkit()},chrome:function(){return Fs()||ok},windows:function(){return Fs()||SM},osx:function(){return Fs()||ik},linux:function(){return Fs()||xM},iphone:function(){return Fs()||CM},mobile:function(){return Fs()||CM||EM||kM||XY},nativeApp:function(){return Fs()||HY},android:function(){return Fs()||kM},ipad:function(){return Fs()||EM}},uEe=TM,mx=!!(typeof window<"u"&&window.document&&window.document.createElement),cEe={canUseDOM:mx,canUseWorkers:typeof Worker<"u",canUseEventListeners:mx&&!!(window.addEventListener||window.attachEvent),canUseViewport:mx&&!!window.screen,isInWorker:!mx},GY=cEe,qY;GY.canUseDOM&&(qY=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function fEe(e,t){if(!GY.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r=typeof o[n]=="function"}return!r&&qY&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var dEe=fEe,j6=10,L6=40,B6=800;function KY(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*j6,o=n*j6,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(e.deltaMode==1?(r*=L6,o*=L6):(r*=B6,o*=B6)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}KY.getEventType=function(){return uEe.firefox()?"DOMMouseScroll":dEe("wheel")?"wheel":"mousewheel"};var hEe=KY;/**
  48. * Checks if an event is supported in the current execution environment.
  49. *
  50. * NOTE: This will not work correctly for non-generic events such as `change`,
  51. * `reset`, `load`, `error`, and `select`.
  52. *
  53. * Borrows from Modernizr.
  54. *
  55. * @param {string} eventNameSuffix Event name, e.g. "click".
  56. * @param {?boolean} capture Check if the capture phase is supported.
  57. * @return {boolean} True if the event is supported.
  58. * @internal
  59. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  60. */const pEe=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=hEe(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},gEe={beforeMount(e,t){pEe(e,t.value)}},vEe=pt({role:{type:String,required:!0},spinnerDate:{type:Ie(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Ie(String),default:""},...BY}),mEe=Se({__name:"basic-time-spinner",props:vEe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=lt("time"),{getHoursList:o,getMinutesList:i,getSecondsList:a}=QY(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=ee(),u=ee(),d=ee(),p=ee(),v={hours:u,minutes:d,seconds:p},y=W(()=>n.showSeconds?P6:P6.slice(0,2)),w=W(()=>{const{spinnerDate:V}=n,G=V.hour(),se=V.minute(),he=V.second();return{hours:G,minutes:se,seconds:he}}),b=W(()=>{const{hours:V,minutes:G}=m(w);return{hours:o(n.role),minutes:i(V,n.role),seconds:a(V,G,n.role)}}),k=W(()=>{const{hours:V,minutes:G,seconds:se}=m(w);return{hours:L$(V,23),minutes:L$(G,59),seconds:L$(se,59)}}),C=Ts(V=>{s=!1,P(V)},200),T=V=>{if(!!!n.amPmMode)return"";const se=n.amPmMode==="A";let he=V<12?" am":" pm";return se&&(he=he.toUpperCase()),he},$=V=>{let G;switch(V){case"hours":G=[0,2];break;case"minutes":G=[3,5];break;case"seconds":G=[6,8];break}const[se,he]=G;t("select-range",se,he),l.value=V},P=V=>{B(V,m(w)[V])},A=()=>{P("hours"),P("minutes"),P("seconds")},R=V=>V.querySelector(`.${r.namespace.value}-scrollbar__wrap`),B=(V,G)=>{if(n.arrowControl)return;const se=m(v[V]);se&&se.$el&&(R(se.$el).scrollTop=Math.max(0,G*N(V)))},N=V=>{const G=m(v[V]),se=G==null?void 0:G.$el.querySelector("li");return se&&Number.parseFloat(Eh(se,"height"))||0},I=()=>{L(1)},D=()=>{L(-1)},L=V=>{l.value||$("hours");const G=l.value,se=m(w)[G],he=l.value==="hours"?24:60,pe=z(G,se,V,he);q(G,pe),B(G,pe),zt(()=>$(G))},z=(V,G,se,he)=>{let pe=(G+se+he)%he;const Be=m(b)[V];for(;Be[pe]&&pe!==G;)pe=(pe+se+he)%he;return pe},q=(V,G)=>{if(m(b)[V][G])return;const{hours:pe,minutes:Be,seconds:De}=m(w);let ze;switch(V){case"hours":ze=n.spinnerDate.hour(G).minute(Be).second(De);break;case"minutes":ze=n.spinnerDate.hour(pe).minute(G).second(De);break;case"seconds":ze=n.spinnerDate.hour(pe).minute(Be).second(G);break}t("change",ze)},ae=(V,{value:G,disabled:se})=>{se||(q(V,G),$(V),B(V,G))},K=V=>{s=!0,C(V);const G=Math.min(Math.round((R(m(v[V]).$el).scrollTop-(H(V)*.5-10)/N(V)+3)/N(V)),V==="hours"?23:59);q(V,G)},H=V=>m(v[V]).$el.offsetHeight,ne=()=>{const V=G=>{const se=m(v[G]);se&&se.$el&&(R(se.$el).onscroll=()=>{K(G)})};V("hours"),V("minutes"),V("seconds")};vn(()=>{zt(()=>{!n.arrowControl&&ne(),A(),n.role==="start"&&$("hours")})});const X=(V,G)=>{v[G].value=V};return t("set-option",[`${n.role}_scrollDown`,L]),t("set-option",[`${n.role}_emitSelectRange`,$]),at(()=>n.spinnerDate,()=>{s||A()}),(V,G)=>(Z(),ce("div",{class:J([m(r).b("spinner"),{"has-seconds":V.showSeconds}])},[V.arrowControl?je("v-if",!0):(Z(!0),ce(Pt,{key:0},_n(m(y),se=>(Z(),Fe(m(_c),{key:se,ref_for:!0,ref:he=>X(he,se),class:J(m(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":m(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:he=>$(se),onMousemove:he=>P(se)},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(m(b)[se],(he,pe)=>(Z(),ce("li",{key:pe,class:J([m(r).be("spinner","item"),m(r).is("active",pe===m(w)[se]),m(r).is("disabled",he)]),onClick:Be=>ae(se,{value:pe,disabled:he})},[se==="hours"?(Z(),ce(Pt,{key:0},[St(ut(("0"+(V.amPmMode?pe%12||12:pe)).slice(-2))+ut(T(pe)),1)],64)):(Z(),ce(Pt,{key:1},[St(ut(("0"+pe).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),V.arrowControl?(Z(!0),ce(Pt,{key:1},_n(m(y),se=>(Z(),ce("div",{key:se,class:J([m(r).be("spinner","wrapper"),m(r).is("arrow")]),onMouseenter:he=>$(se)},[yn((Z(),Fe(m(jt),{class:J(["arrow-up",m(r).be("spinner","arrow")])},{default:ue(()=>[re(m(DI))]),_:1},8,["class"])),[[m(Yk),D]]),yn((Z(),Fe(m(jt),{class:J(["arrow-down",m(r).be("spinner","arrow")])},{default:ue(()=>[re(m(Cd))]),_:1},8,["class"])),[[m(Yk),I]]),ve("ul",{class:J(m(r).be("spinner","list"))},[(Z(!0),ce(Pt,null,_n(m(k)[se],(he,pe)=>(Z(),ce("li",{key:pe,class:J([m(r).be("spinner","item"),m(r).is("active",he===m(w)[se]),m(r).is("disabled",m(b)[se][he])])},[typeof he=="number"?(Z(),ce(Pt,{key:0},[se==="hours"?(Z(),ce(Pt,{key:0},[St(ut(("0"+(V.amPmMode?he%12||12:he)).slice(-2))+ut(T(he)),1)],64)):(Z(),ce(Pt,{key:1},[St(ut(("0"+he).slice(-2)),1)],64))],64)):je("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):je("v-if",!0)],2))}});var PM=vt(mEe,[["__file","basic-time-spinner.vue"]]);const yEe=Se({__name:"panel-time-pick",props:iEe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=Tt("EP_PICKER_BASE"),{arrowControl:o,disabledHours:i,disabledMinutes:a,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:p}=WY(i,a,s),v=lt("time"),{t:y,lang:w}=rr(),b=ee([0,2]),k=YY(n),C=W(()=>Bo(n.actualVisible)?`${v.namespace.value}-zoom-in-top`:""),T=W(()=>n.format.includes("ss")),$=W(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),P=X=>{const V=un(X).locale(w.value),G=ae(V);return V.isSame(G)},A=()=>{t("pick",k.value,!1)},R=(X=!1,V=!1)=>{V||t("pick",n.parsedValue,X)},B=X=>{if(!n.visible)return;const V=ae(X).millisecond(0);t("pick",V,!0)},N=(X,V)=>{t("select-range",X,V),b.value=[X,V]},I=X=>{const V=[0,3].concat(T.value?[6]:[]),G=["hours","minutes"].concat(T.value?["seconds"]:[]),he=(V.indexOf(b.value[0])+X+V.length)%V.length;L.start_emitSelectRange(G[he])},D=X=>{const V=X.code,{left:G,right:se,up:he,down:pe}=Qt;if([G,se].includes(V)){I(V===G?-1:1),X.preventDefault();return}if([he,pe].includes(V)){const Be=V===he?-1:1;L.start_scrollDown(Be),X.preventDefault();return}},{timePickerOptions:L,onSetOption:z,getAvailableTime:q}=zY({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:p}),ae=X=>q(X,n.datetimeRole||"",!0),K=X=>X?un(X,n.format).locale(w.value):null,H=X=>X?X.format(n.format):null,ne=()=>un(l).locale(w.value);return t("set-picker-option",["isValidValue",P]),t("set-picker-option",["formatToString",H]),t("set-picker-option",["parseUserInput",K]),t("set-picker-option",["handleKeydownInput",D]),t("set-picker-option",["getRangeAvailableTime",ae]),t("set-picker-option",["getDefaultValue",ne]),(X,V)=>(Z(),Fe(Pi,{name:m(C)},{default:ue(()=>[X.actualVisible||X.visible?(Z(),ce("div",{key:0,class:J(m(v).b("panel"))},[ve("div",{class:J([m(v).be("panel","content"),{"has-seconds":m(T)}])},[re(PM,{ref:"spinner",role:X.datetimeRole||"start","arrow-control":m(o),"show-seconds":m(T),"am-pm-mode":m($),"spinner-date":X.parsedValue,"disabled-hours":m(i),"disabled-minutes":m(a),"disabled-seconds":m(s),onChange:B,onSetOption:m(z),onSelectRange:N},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),ve("div",{class:J(m(v).be("panel","footer"))},[ve("button",{type:"button",class:J([m(v).be("panel","btn"),"cancel"]),onClick:A},ut(m(y)("el.datepicker.cancel")),3),ve("button",{type:"button",class:J([m(v).be("panel","btn"),"confirm"]),onClick:G=>R()},ut(m(y)("el.datepicker.confirm")),11,["onClick"])],2)],2)):je("v-if",!0)]),_:1},8,["name"]))}});var Zk=vt(yEe,[["__file","panel-time-pick.vue"]]);const bEe=pt({...VY,parsedValue:{type:Ie(Array)}}),_Ee=Se({__name:"panel-time-range",props:bEe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(we,fe)=>{const oe=[];for(let ke=we;ke<=fe;ke++)oe.push(ke);return oe},{t:o,lang:i}=rr(),a=lt("time"),s=lt("picker"),l=Tt("EP_PICKER_BASE"),{arrowControl:u,disabledHours:d,disabledMinutes:p,disabledSeconds:v,defaultValue:y}=l.props,w=W(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),P.value?"has-seconds":""]),b=W(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),P.value?"has-seconds":""]),k=W(()=>n.parsedValue[0]),C=W(()=>n.parsedValue[1]),T=YY(n),$=()=>{t("pick",T.value,!1)},P=W(()=>n.format.includes("ss")),A=W(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),R=(we=!1)=>{t("pick",[k.value,C.value],we)},B=we=>{D(we.millisecond(0),C.value)},N=we=>{D(k.value,we.millisecond(0))},I=we=>{const fe=we.map(ke=>un(ke).locale(i.value)),oe=se(fe);return fe[0].isSame(oe[0])&&fe[1].isSame(oe[1])},D=(we,fe)=>{t("pick",[we,fe],!0)},L=W(()=>k.value>C.value),z=ee([0,2]),q=(we,fe)=>{t("select-range",we,fe,"min"),z.value=[we,fe]},ae=W(()=>P.value?11:8),K=(we,fe)=>{t("select-range",we,fe,"max");const oe=m(ae);z.value=[we+oe,fe+oe]},H=we=>{const fe=P.value?[0,3,6,11,14,17]:[0,3,8,11],oe=["hours","minutes"].concat(P.value?["seconds"]:[]),We=(fe.indexOf(z.value[0])+we+fe.length)%fe.length,et=fe.length/2;We<et?De.start_emitSelectRange(oe[We]):De.end_emitSelectRange(oe[We-et])},ne=we=>{const fe=we.code,{left:oe,right:ke,up:We,down:et}=Qt;if([oe,ke].includes(fe)){H(fe===oe?-1:1),we.preventDefault();return}if([We,et].includes(fe)){const Ve=fe===We?-1:1,Me=z.value[0]<ae.value?"start":"end";De[`${Me}_scrollDown`](Ve),we.preventDefault();return}},X=(we,fe)=>{const oe=d?d(we):[],ke=we==="start",et=(fe||(ke?C.value:k.value)).hour(),Ve=ke?r(et+1,23):r(0,et-1);return Jx(oe,Ve)},V=(we,fe,oe)=>{const ke=p?p(we,fe):[],We=fe==="start",et=oe||(We?C.value:k.value),Ve=et.hour();if(we!==Ve)return ke;const Me=et.minute(),Ke=We?r(Me+1,59):r(0,Me-1);return Jx(ke,Ke)},G=(we,fe,oe,ke)=>{const We=v?v(we,fe,oe):[],et=oe==="start",Ve=ke||(et?C.value:k.value),Me=Ve.hour(),Ke=Ve.minute();if(we!==Me||fe!==Ke)return We;const be=Ve.second(),qe=et?r(be+1,59):r(0,be-1);return Jx(We,qe)},se=([we,fe])=>[ze(we,"start",!0,fe),ze(fe,"end",!1,we)],{getAvailableHours:he,getAvailableMinutes:pe,getAvailableSeconds:Be}=WY(X,V,G),{timePickerOptions:De,getAvailableTime:ze,onSetOption:$e}=zY({getAvailableHours:he,getAvailableMinutes:pe,getAvailableSeconds:Be}),_e=we=>we?xt(we)?we.map(fe=>un(fe,n.format).locale(i.value)):un(we,n.format).locale(i.value):null,me=we=>we?xt(we)?we.map(fe=>fe.format(n.format)):we.format(n.format):null,Re=()=>{if(xt(y))return y.map(fe=>un(fe).locale(i.value));const we=un(y).locale(i.value);return[we,we.add(60,"m")]};return t("set-picker-option",["formatToString",me]),t("set-picker-option",["parseUserInput",_e]),t("set-picker-option",["isValidValue",I]),t("set-picker-option",["handleKeydownInput",ne]),t("set-picker-option",["getDefaultValue",Re]),t("set-picker-option",["getRangeAvailableTime",se]),(we,fe)=>we.actualVisible?(Z(),ce("div",{key:0,class:J([m(a).b("range-picker"),m(s).b("panel")])},[ve("div",{class:J(m(a).be("range-picker","content"))},[ve("div",{class:J(m(a).be("range-picker","cell"))},[ve("div",{class:J(m(a).be("range-picker","header"))},ut(m(o)("el.datepicker.startTime")),3),ve("div",{class:J(m(w))},[re(PM,{ref:"minSpinner",role:"start","show-seconds":m(P),"am-pm-mode":m(A),"arrow-control":m(u),"spinner-date":m(k),"disabled-hours":X,"disabled-minutes":V,"disabled-seconds":G,onChange:B,onSetOption:m($e),onSelectRange:q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),ve("div",{class:J(m(a).be("range-picker","cell"))},[ve("div",{class:J(m(a).be("range-picker","header"))},ut(m(o)("el.datepicker.endTime")),3),ve("div",{class:J(m(b))},[re(PM,{ref:"maxSpinner",role:"end","show-seconds":m(P),"am-pm-mode":m(A),"arrow-control":m(u),"spinner-date":m(C),"disabled-hours":X,"disabled-minutes":V,"disabled-seconds":G,onChange:N,onSetOption:m($e),onSelectRange:K},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),ve("div",{class:J(m(a).be("panel","footer"))},[ve("button",{type:"button",class:J([m(a).be("panel","btn"),"cancel"]),onClick:oe=>$()},ut(m(o)("el.datepicker.cancel")),11,["onClick"]),ve("button",{type:"button",class:J([m(a).be("panel","btn"),"confirm"]),disabled:m(L),onClick:oe=>R()},ut(m(o)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):je("v-if",!0)}});var OEe=vt(_Ee,[["__file","panel-time-range.vue"]]);un.extend(m3);var wEe=Se({name:"ElTimePicker",install:null,props:{...y3,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=ee(),[r,o]=e.isRange?["timerange",OEe]:["time",Zk],i=a=>t.emit("update:modelValue",a);return Wn("ElPopperOptions",e.popperOptions),t.expose({focus:a=>{var s;(s=n.value)==null||s.handleFocusInput(a)},blur:a=>{var s;(s=n.value)==null||s.handleBlurInput(a)},handleOpen:()=>{var a;(a=n.value)==null||a.handleOpen()},handleClose:()=>{var a;(a=n.value)==null||a.handleClose()}}),()=>{var a;const s=(a=e.format)!=null?a:bM;return re(FY,In(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>re(o,l,null)})}}});const SEe=pn(wEe),xEe=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Vh(t).map((r,o)=>n-(t-o-1))},kEe=e=>{const t=e.daysInMonth();return Vh(t).map((n,r)=>r+1)},CEe=e=>Vh(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),EEe=pt({selectedDay:{type:Ie(Object)},range:{type:Ie(Array)},date:{type:Ie(Object),required:!0},hideHeader:{type:Boolean}}),TEe={pick:e=>Pn(e)};var JY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r,o){var i=r.prototype,a=function(p){return p&&(p.indexOf?p:p.s)},s=function(p,v,y,w,b){var k=p.name?p:p.$locale(),C=a(k[v]),T=a(k[y]),$=C||T.map(function(A){return A.slice(0,w)});if(!b)return $;var P=k.weekStart;return $.map(function(A,R){return $[(R+(P||0))%7]})},l=function(){return o.Ls[o.locale()]},u=function(p,v){return p.formats[v]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,b,k){return b||k.slice(1)})}(p.formats[v.toUpperCase()])},d=function(){var p=this;return{months:function(v){return v?v.format("MMMM"):s(p,"months")},monthsShort:function(v){return v?v.format("MMM"):s(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(p,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(p,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return u(p.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return d.bind(this)()},o.localeData=function(){var p=l();return{firstDayOfWeek:function(){return p.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(v){return u(p,v)},meridiem:p.meridiem,ordinal:p.ordinal}},o.months=function(){return s(l(),"months")},o.monthsShort=function(){return s(l(),"monthsShort","months",3)},o.weekdays=function(p){return s(l(),"weekdays",null,null,p)},o.weekdaysShort=function(p){return s(l(),"weekdaysShort","weekdays",3,p)},o.weekdaysMin=function(p){return s(l(),"weekdaysMin","weekdays",2,p)}}})})(JY);var eZ=JY.exports;const PEe=(e,t)=>{un.extend(eZ);const n=un.localeData().firstDayOfWeek(),{t:r,lang:o}=rr(),i=un().locale(o.value),a=W(()=>!!e.range&&!!e.range.length),s=W(()=>{let v=[];if(a.value){const[y,w]=e.range,b=Vh(w.date()-y.date()+1).map(T=>({text:y.date()+T,type:"current"}));let k=b.length%7;k=k===0?0:7-k;const C=Vh(k).map((T,$)=>({text:$+1,type:"next"}));v=b.concat(C)}else{const y=e.date.startOf("month").day(),w=xEe(e.date,(y-n+7)%7).map(T=>({text:T,type:"prev"})),b=kEe(e.date).map(T=>({text:T,type:"current"}));v=[...w,...b];const k=7-(v.length%7||7),C=Vh(k).map((T,$)=>({text:$+1,type:"next"}));v=v.concat(C)}return CEe(v)}),l=W(()=>{const v=n;return v===0?A$.map(y=>r(`el.datepicker.weeks.${y}`)):A$.slice(v).concat(A$.slice(0,v)).map(y=>r(`el.datepicker.weeks.${y}`))}),u=(v,y)=>{switch(y){case"prev":return e.date.startOf("month").subtract(1,"month").date(v);case"next":return e.date.startOf("month").add(1,"month").date(v);case"current":return e.date.date(v)}};return{now:i,isInRange:a,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:v,type:y})=>{const w=u(v,y);t("pick",w)},getSlotData:({text:v,type:y})=>{const w=u(v,y);return{isSelected:w.isSame(e.selectedDay),type:`${y}-month`,day:w.format("YYYY-MM-DD"),date:w.toDate()}}}},$Ee=Se({name:"DateTable"}),AEe=Se({...$Ee,props:EEe,emits:TEe,setup(e,{expose:t,emit:n}){const r=e,{isInRange:o,now:i,rows:a,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:d}=PEe(r,n),p=lt("calendar-table"),v=lt("calendar-day"),y=({text:w,type:b})=>{const k=[b];if(b==="current"){const C=l(w,b);C.isSame(r.selectedDay,"day")&&k.push(v.is("selected")),C.isSame(i,"day")&&k.push(v.is("today"))}return k};return t({getFormattedDate:l}),(w,b)=>(Z(),ce("table",{class:J([m(p).b(),m(p).is("range",m(o))]),cellspacing:"0",cellpadding:"0"},[w.hideHeader?je("v-if",!0):(Z(),ce("thead",{key:0},[(Z(!0),ce(Pt,null,_n(m(s),k=>(Z(),ce("th",{key:k},ut(k),1))),128))])),ve("tbody",null,[(Z(!0),ce(Pt,null,_n(m(a),(k,C)=>(Z(),ce("tr",{key:C,class:J({[m(p).e("row")]:!0,[m(p).em("row","hide-border")]:C===0&&w.hideHeader})},[(Z(!0),ce(Pt,null,_n(k,(T,$)=>(Z(),ce("td",{key:$,class:J(y(T)),onClick:P=>m(u)(T)},[ve("div",{class:J(m(v).b())},[He(w.$slots,"date-cell",{data:m(d)(T)},()=>[ve("span",null,ut(T.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var V6=vt(AEe,[["__file","date-table.vue"]]);const MEe=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[i.startOf("week"),t]]},REe=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),o=n.isSame(r,"week")?r.add(1,"week"):r,i=o.endOf("month"),a=t.startOf("month"),s=i.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),i],[s.startOf("week"),t]]},NEe=(e,t,n)=>{const{lang:r}=rr(),o=ee(),i=un().locale(r.value),a=W({get(){return e.modelValue?l.value:o.value},set(k){if(!k)return;o.value=k;const C=k.toDate();t(xs,C),t(En,C)}}),s=W(()=>{if(!e.range)return[];const k=e.range.map($=>un($).locale(r.value)),[C,T]=k;return C.isAfter(T)?[]:C.isSame(T,"month")?y(C,T):C.add(1,"month").month()!==T.month()?[]:y(C,T)}),l=W(()=>e.modelValue?un(e.modelValue).locale(r.value):a.value||(s.value.length?s.value[0][0]:i)),u=W(()=>l.value.subtract(1,"month").date(1)),d=W(()=>l.value.add(1,"month").date(1)),p=W(()=>l.value.subtract(1,"year").date(1)),v=W(()=>l.value.add(1,"year").date(1)),y=(k,C)=>{const T=k.startOf("week"),$=C.endOf("week"),P=T.get("month"),A=$.get("month");return P===A?[[T,$]]:(P+1)%12===A?MEe(T,$):P+2===A||(P+1)%11===A?REe(T,$):[]},w=k=>{a.value=k};return{calculateValidatedDateRange:y,date:l,realSelectedDay:a,pickDay:w,selectDate:k=>{const T={"prev-month":u.value,"next-month":d.value,"prev-year":p.value,"next-year":v.value,today:i}[k];T.isSame(l.value,"day")||w(T)},validatedRange:s}},IEe=e=>xt(e)&&e.length===2&&e.every(t=>ev(t)),DEe=pt({modelValue:{type:Date},range:{type:Ie(Array),validator:IEe}}),jEe={[En]:e=>ev(e),[xs]:e=>ev(e)},LEe="ElCalendar",BEe=Se({name:LEe}),VEe=Se({...BEe,props:DEe,emits:jEe,setup(e,{expose:t,emit:n}){const r=e,o=lt("calendar"),{calculateValidatedDateRange:i,date:a,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:d}=NEe(r,n),{t:p}=rr(),v=W(()=>{const y=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${p("el.datepicker.year")} ${p(y)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(y,w)=>(Z(),ce("div",{class:J(m(o).b())},[ve("div",{class:J(m(o).e("header"))},[He(y.$slots,"header",{date:m(v)},()=>[ve("div",{class:J(m(o).e("title"))},ut(m(v)),3),m(d).length===0?(Z(),ce("div",{key:0,class:J(m(o).e("button-group"))},[re(m(NY),null,{default:ue(()=>[re(m(no),{size:"small",onClick:b=>m(u)("prev-month")},{default:ue(()=>[St(ut(m(p)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),re(m(no),{size:"small",onClick:b=>m(u)("today")},{default:ue(()=>[St(ut(m(p)("el.datepicker.today")),1)]),_:1},8,["onClick"]),re(m(no),{size:"small",onClick:b=>m(u)("next-month")},{default:ue(()=>[St(ut(m(p)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):je("v-if",!0)])],2),m(d).length===0?(Z(),ce("div",{key:0,class:J(m(o).e("body"))},[re(V6,{date:m(a),"selected-day":m(l),onPick:m(s)},Il({_:2},[y.$slots["date-cell"]?{name:"date-cell",fn:ue(b=>[He(y.$slots,"date-cell",ic(Yh(b)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(Z(),ce("div",{key:1,class:J(m(o).e("body"))},[(Z(!0),ce(Pt,null,_n(m(d),(b,k)=>(Z(),Fe(V6,{key:k,date:b[0],"selected-day":m(l),range:b,"hide-header":k!==0,onPick:m(s)},Il({_:2},[y.$slots["date-cell"]?{name:"date-cell",fn:ue(C=>[He(y.$slots,"date-cell",ic(Yh(C)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var FEe=vt(VEe,[["__file","calendar.vue"]]);const zEe=pn(FEe),QEe=pt({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:Ie([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),WEe=Se({name:"ElCard"}),YEe=Se({...WEe,props:QEe,setup(e){const t=lt("card");return(n,r)=>(Z(),ce("div",{class:J([m(t).b(),m(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(Z(),ce("div",{key:0,class:J(m(t).e("header"))},[He(n.$slots,"header",{},()=>[St(ut(n.header),1)])],2)):je("v-if",!0),ve("div",{class:J([m(t).e("body"),n.bodyClass]),style:Vt(n.bodyStyle)},[He(n.$slots,"default")],6),n.$slots.footer||n.footer?(Z(),ce("div",{key:1,class:J(m(t).e("footer"))},[He(n.$slots,"footer",{},()=>[St(ut(n.footer),1)])],2)):je("v-if",!0)],2))}});var ZEe=vt(YEe,[["__file","card.vue"]]);const UEe=pn(ZEe),HEe=pt({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),XEe={change:(e,t)=>[e,t].every(en)},tZ=Symbol("carouselContextKey"),F6=300,GEe=(e,t,n)=>{const{children:r,addChild:o,removeChild:i}=u3(Cn(),"ElCarouselItem"),a=zi(),s=ee(-1),l=ee(null),u=ee(!1),d=ee(),p=ee(0),v=ee(!0),y=ee(!0),w=ee(!1),b=W(()=>e.arrow!=="never"&&!m(T)),k=W(()=>r.value.some(ze=>ze.props.label.toString().length>0)),C=W(()=>e.type==="card"),T=W(()=>e.direction==="vertical"),$=W(()=>e.height!=="auto"?{height:e.height}:{height:`${p.value}px`,overflow:"hidden"}),P=jh(ze=>{D(ze)},F6,{trailing:!0}),A=jh(ze=>{V(ze)},F6),R=ze=>v.value?s.value<=1?ze<=1:ze>1:!0;function B(){l.value&&(clearInterval(l.value),l.value=null)}function N(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>I(),e.interval))}const I=()=>{y.value||(w.value=!0),y.value=!1,s.value<r.value.length-1?s.value=s.value+1:e.loop?s.value=0:w.value=!1};function D(ze){if(y.value||(w.value=!0),y.value=!1,Gt(ze)){const me=r.value.filter(Re=>Re.props.name===ze);me.length>0&&(ze=r.value.indexOf(me[0]))}if(ze=Number(ze),Number.isNaN(ze)||ze!==Math.floor(ze))return;const $e=r.value.length,_e=s.value;ze<0?s.value=e.loop?$e-1:0:ze>=$e?s.value=e.loop?0:$e-1:s.value=ze,_e===s.value&&L(_e),he()}function L(ze){r.value.forEach(($e,_e)=>{$e.translateItem(_e,s.value,ze)})}function z(ze,$e){var _e,me,Re,we;const fe=m(r),oe=fe.length;if(oe===0||!ze.states.inStage)return!1;const ke=$e+1,We=$e-1,et=oe-1,Ve=fe[et].states.active,Me=fe[0].states.active,Ke=(me=(_e=fe[ke])==null?void 0:_e.states)==null?void 0:me.active,be=(we=(Re=fe[We])==null?void 0:Re.states)==null?void 0:we.active;return $e===et&&Me||Ke?"left":$e===0&&Ve||be?"right":!1}function q(){u.value=!0,e.pauseOnHover&&B()}function ae(){u.value=!1,N()}function K(){w.value=!1}function H(ze){m(T)||r.value.forEach(($e,_e)=>{ze===z($e,_e)&&($e.states.hover=!0)})}function ne(){m(T)||r.value.forEach(ze=>{ze.states.hover=!1})}function X(ze){ze!==s.value&&(y.value||(w.value=!0)),s.value=ze}function V(ze){e.trigger==="hover"&&ze!==s.value&&(s.value=ze,y.value||(w.value=!0))}function G(){D(s.value-1)}function se(){D(s.value+1)}function he(){B(),e.pauseOnHover||N()}function pe(ze){e.height==="auto"&&(p.value=ze)}function Be(){var ze;const $e=(ze=a.default)==null?void 0:ze.call(a);if(!$e)return null;const _e=Lh($e),me="ElCarouselItem",Re=_e.filter(we=>bo(we)&&we.type.name===me);return(Re==null?void 0:Re.length)===2&&e.loop&&!C.value?(v.value=!0,Re):(v.value=!1,null)}at(()=>s.value,(ze,$e)=>{L($e),v.value&&(ze=ze%2,$e=$e%2),$e>-1&&t("change",ze,$e)}),at(()=>e.autoplay,ze=>{ze?N():B()}),at(()=>e.loop,()=>{D(s.value)}),at(()=>e.interval,()=>{he()});const De=Kr();return vn(()=>{at(()=>r.value,()=>{r.value.length>0&&D(e.initialIndex)},{immediate:!0}),De.value=_o(d.value,()=>{L()}),N()}),Ur(()=>{B(),d.value&&De.value&&De.value.stop()}),Wn(tZ,{root:d,isCardType:C,isVertical:T,items:r,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:i,setActiveItem:D,setContainerHeight:pe}),{root:d,activeIndex:s,arrowDisplay:b,hasLabel:k,hover:u,isCardType:C,isTransitioning:w,items:r,isVertical:T,containerStyle:$,isItemsTwoLength:v,handleButtonEnter:H,handleTransitionEnd:K,handleButtonLeave:ne,handleIndicatorClick:X,handleMouseEnter:q,handleMouseLeave:ae,setActiveItem:D,prev:G,next:se,PlaceholderItem:Be,isTwoLengthShow:R,throttledArrowClick:P,throttledIndicatorHover:A}},qEe="ElCarousel",KEe=Se({name:qEe}),JEe=Se({...KEe,props:HEe,emits:XEe,setup(e,{expose:t,emit:n}){const r=e,{root:o,activeIndex:i,arrowDisplay:a,hasLabel:s,hover:l,isCardType:u,items:d,isVertical:p,containerStyle:v,handleButtonEnter:y,handleButtonLeave:w,isTransitioning:b,handleIndicatorClick:k,handleMouseEnter:C,handleMouseLeave:T,handleTransitionEnd:$,setActiveItem:P,prev:A,next:R,PlaceholderItem:B,isTwoLengthShow:N,throttledArrowClick:I,throttledIndicatorHover:D}=GEe(r,n),L=lt("carousel"),{t:z}=rr(),q=W(()=>{const H=[L.b(),L.m(r.direction)];return m(u)&&H.push(L.m("card")),H}),ae=W(()=>{const H=[L.e("container")];return r.motionBlur&&m(b)&&H.push(m(p)?`${L.namespace.value}-transitioning-vertical`:`${L.namespace.value}-transitioning`),H}),K=W(()=>{const H=[L.e("indicators"),L.em("indicators",r.direction)];return m(s)&&H.push(L.em("indicators","labels")),r.indicatorPosition==="outside"&&H.push(L.em("indicators","outside")),m(p)&&H.push(L.em("indicators","right")),H});return t({activeIndex:i,setActiveItem:P,prev:A,next:R}),(H,ne)=>(Z(),ce("div",{ref_key:"root",ref:o,class:J(m(q)),onMouseenter:tn(m(C),["stop"]),onMouseleave:tn(m(T),["stop"])},[m(a)?(Z(),Fe(Pi,{key:0,name:"carousel-arrow-left",persisted:""},{default:ue(()=>[yn(ve("button",{type:"button",class:J([m(L).e("arrow"),m(L).em("arrow","left")]),"aria-label":m(z)("el.carousel.leftArrow"),onMouseenter:X=>m(y)("left"),onMouseleave:m(w),onClick:tn(X=>m(I)(m(i)-1),["stop"])},[re(m(jt),null,{default:ue(()=>[re(m(qh))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[hr,(H.arrow==="always"||m(l))&&(r.loop||m(i)>0)]])]),_:1})):je("v-if",!0),m(a)?(Z(),Fe(Pi,{key:1,name:"carousel-arrow-right",persisted:""},{default:ue(()=>[yn(ve("button",{type:"button",class:J([m(L).e("arrow"),m(L).em("arrow","right")]),"aria-label":m(z)("el.carousel.rightArrow"),onMouseenter:X=>m(y)("right"),onMouseleave:m(w),onClick:tn(X=>m(I)(m(i)+1),["stop"])},[re(m(jt),null,{default:ue(()=>[re(m(Ss))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[hr,(H.arrow==="always"||m(l))&&(r.loop||m(i)<m(d).length-1)]])]),_:1})):je("v-if",!0),ve("div",{class:J(m(ae)),style:Vt(m(v)),onTransitionend:m($)},[re(m(B)),He(H.$slots,"default")],46,["onTransitionend"]),H.indicatorPosition!=="none"?(Z(),ce("ul",{key:2,class:J(m(K))},[(Z(!0),ce(Pt,null,_n(m(d),(X,V)=>yn((Z(),ce("li",{key:V,class:J([m(L).e("indicator"),m(L).em("indicator",H.direction),m(L).is("active",V===m(i))]),onMouseenter:G=>m(D)(V),onClick:tn(G=>m(k)(V),["stop"])},[ve("button",{class:J(m(L).e("button")),"aria-label":m(z)("el.carousel.indicator",{index:V+1})},[m(s)?(Z(),ce("span",{key:0},ut(X.props.label),1)):je("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[hr,m(N)(V)]])),128))],2)):je("v-if",!0),r.motionBlur?(Z(),ce("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[ve("defs",null,[ve("filter",{id:"elCarouselHorizontal"},[ve("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),ve("filter",{id:"elCarouselVertical"},[ve("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):je("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var eTe=vt(JEe,[["__file","carousel.vue"]]);const tTe=pt({name:{type:String,default:""},label:{type:[String,Number],default:""}}),nTe=(e,t)=>{const n=Tt(tZ),r=Cn(),o=ee(),i=ee(!1),a=ee(0),s=ee(1),l=ee(!1),u=ee(!1),d=ee(!1),p=ee(!1),{isCardType:v,isVertical:y,cardScale:w}=n;function b(P,A,R){const B=R-1,N=A-1,I=A+1,D=R/2;return A===0&&P===B?-1:A===B&&P===0?R:P<N&&A-P>=D?R+1:P>I&&P-A>=D?-2:P}function k(P,A){var R,B;const N=m(y)?((R=n.root.value)==null?void 0:R.offsetHeight)||0:((B=n.root.value)==null?void 0:B.offsetWidth)||0;return d.value?N*((2-w)*(P-A)+1)/4:P<A?-(1+w)*N/4:(3+w)*N/4}function C(P,A,R){const B=n.root.value;return B?((R?B.offsetHeight:B.offsetWidth)||0)*(P-A):0}const T=(P,A,R)=>{var B;const N=m(v),I=(B=n.items.value.length)!=null?B:Number.NaN,D=P===A;!N&&!Bo(R)&&(p.value=D||P===R),!D&&I>2&&n.loop&&(P=b(P,A,I));const L=m(y);l.value=D,N?(d.value=Math.round(Math.abs(P-A))<=1,a.value=k(P,A),s.value=m(l)?1:w):a.value=C(P,A,L),u.value=!0,D&&o.value&&n.setContainerHeight(o.value.offsetHeight)};function $(){if(n&&m(v)){const P=n.items.value.findIndex(({uid:A})=>A===r.uid);n.setActiveItem(P)}}return vn(()=>{n.addItem({props:e,states:nr({hover:i,translate:a,scale:s,active:l,ready:u,inStage:d,animating:p}),uid:r.uid,translateItem:T})}),hp(()=>{n.removeItem(r.uid)}),{carouselItemRef:o,active:l,animating:p,hover:i,inStage:d,isVertical:y,translate:a,isCardType:v,scale:s,ready:u,handleItemClick:$}},rTe=Se({name:"ElCarouselItem"}),oTe=Se({...rTe,props:tTe,setup(e){const t=e,n=lt("carousel"),{carouselItemRef:r,active:o,animating:i,hover:a,inStage:s,isVertical:l,translate:u,isCardType:d,scale:p,ready:v,handleItemClick:y}=nTe(t),w=W(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",s.value),n.is("hover",a.value),n.is("animating",i.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&l.value}]),b=W(()=>{const C=`${`translate${m(l)?"Y":"X"}`}(${m(u)}px)`,T=`scale(${m(p)})`;return{transform:[C,T].join(" ")}});return(k,C)=>yn((Z(),ce("div",{ref_key:"carouselItemRef",ref:r,class:J(m(w)),style:Vt(m(b)),onClick:m(y)},[m(d)?yn((Z(),ce("div",{key:0,class:J(m(n).e("mask"))},null,2)),[[hr,!m(o)]]):je("v-if",!0),He(k.$slots,"default")],14,["onClick"])),[[hr,m(v)]])}});var nZ=vt(oTe,[["__file","carousel-item.vue"]]);const iTe=pn(eTe,{CarouselItem:nZ}),aTe=So(nZ),rZ={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Ai,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...ha(["ariaControls"])},oZ={[En]:e=>Gt(e)||en(e)||Uo(e),change:e=>Gt(e)||en(e)||Uo(e)},m0=Symbol("checkboxGroupContextKey"),sTe=({model:e,isChecked:t})=>{const n=Tt(m0,void 0),r=W(()=>{var i,a;const s=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(a=n==null?void 0:n.min)==null?void 0:a.value;return!Bo(s)&&e.value.length>=s&&!t.value||!Bo(l)&&e.value.length<=l&&t.value});return{isDisabled:Rs(W(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},lTe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:i})=>{const a=Tt(m0,void 0),{formItem:s}=as(),{emit:l}=Cn();function u(w){var b,k,C,T;return[!0,e.trueValue,e.trueLabel].includes(w)?(k=(b=e.trueValue)!=null?b:e.trueLabel)!=null?k:!0:(T=(C=e.falseValue)!=null?C:e.falseLabel)!=null?T:!1}function d(w,b){l("change",u(w),b)}function p(w){if(n.value)return;const b=w.target;l("change",u(b.checked),w)}async function v(w){n.value||!r.value&&!o.value&&i.value&&(w.composedPath().some(C=>C.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await zt(),d(t.value,w)))}const y=W(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return at(()=>e.modelValue,()=>{y.value&&(s==null||s.validate("change").catch(w=>void 0))}),{handleChange:p,onClickRoot:v}},uTe=e=>{const t=ee(!1),{emit:n}=Cn(),r=Tt(m0,void 0),o=W(()=>Bo(r)===!1),i=ee(!1),a=W({get(){var s,l;return o.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;o.value&&xt(s)?(i.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value)&&s.length>a.value.length,i.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(En,s),t.value=s)}});return{model:a,isGroup:o,isLimitExceeded:i}},cTe=(e,t,{model:n})=>{const r=Tt(m0,void 0),o=ee(!1),i=W(()=>av(e.value)?e.label:e.value),a=W(()=>{const d=n.value;return Uo(d)?d:xt(d)?Pn(i.value)?d.map(cr).some(p=>rs(p,i.value)):d.map(cr).includes(i.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),s=bi(W(()=>{var d;return(d=r==null?void 0:r.size)==null?void 0:d.value}),{prop:!0}),l=bi(W(()=>{var d;return(d=r==null?void 0:r.size)==null?void 0:d.value})),u=W(()=>!!t.default||!av(i.value));return{checkboxButtonSize:s,isChecked:a,isFocused:o,checkboxSize:l,hasOwnLabel:u,actualValue:i}},iZ=(e,t)=>{const{formItem:n}=as(),{model:r,isGroup:o,isLimitExceeded:i}=uTe(e),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,actualValue:p}=cTe(e,t,{model:r}),{isDisabled:v}=sTe({model:r,isChecked:s}),{inputId:y,isLabeledByFormItem:w}=bc(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:b,onClickRoot:k}=lTe(e,{model:r,isLimitExceeded:i,hasOwnLabel:d,isDisabled:v,isLabeledByFormItem:w});return(()=>{function T(){var $,P;xt(r.value)&&!r.value.includes(p.value)?r.value.push(p.value):r.value=(P=($=e.trueValue)!=null?$:e.trueLabel)!=null?P:!0}e.checked&&T()})(),Bh({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>o.value&&av(e.value))),Bh({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>!!e.trueLabel)),Bh({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>!!e.falseLabel)),{inputId:y,isLabeledByFormItem:w,isChecked:s,isDisabled:v,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,model:r,actualValue:p,handleChange:b,onClickRoot:k}},fTe=Se({name:"ElCheckbox"}),dTe=Se({...fTe,props:rZ,emits:oZ,setup(e){const t=e,n=zi(),{inputId:r,isLabeledByFormItem:o,isChecked:i,isDisabled:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:d,actualValue:p,handleChange:v,onClickRoot:y}=iZ(t,n),w=lt("checkbox"),b=W(()=>[w.b(),w.m(l.value),w.is("disabled",a.value),w.is("bordered",t.border),w.is("checked",i.value)]),k=W(()=>[w.e("input"),w.is("disabled",a.value),w.is("checked",i.value),w.is("indeterminate",t.indeterminate),w.is("focus",s.value)]);return(C,T)=>(Z(),Fe(Dn(!m(u)&&m(o)?"span":"label"),{class:J(m(b)),"aria-controls":C.indeterminate?C.ariaControls:null,onClick:m(y)},{default:ue(()=>{var $,P;return[ve("span",{class:J(m(k))},[C.trueValue||C.falseValue||C.trueLabel||C.falseLabel?yn((Z(),ce("input",{key:0,id:m(r),"onUpdate:modelValue":A=>Jr(d)?d.value=A:null,class:J(m(w).e("original")),type:"checkbox",indeterminate:C.indeterminate,name:C.name,tabindex:C.tabindex,disabled:m(a),"true-value":($=C.trueValue)!=null?$:C.trueLabel,"false-value":(P=C.falseValue)!=null?P:C.falseLabel,onChange:m(v),onFocus:A=>s.value=!0,onBlur:A=>s.value=!1,onClick:tn(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Rk,m(d)]]):yn((Z(),ce("input",{key:1,id:m(r),"onUpdate:modelValue":A=>Jr(d)?d.value=A:null,class:J(m(w).e("original")),type:"checkbox",indeterminate:C.indeterminate,disabled:m(a),value:m(p),name:C.name,tabindex:C.tabindex,onChange:m(v),onFocus:A=>s.value=!0,onBlur:A=>s.value=!1,onClick:tn(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[Rk,m(d)]]),ve("span",{class:J(m(w).e("inner"))},null,2)],2),m(u)?(Z(),ce("span",{key:0,class:J(m(w).e("label"))},[He(C.$slots,"default"),C.$slots.default?je("v-if",!0):(Z(),ce(Pt,{key:0},[St(ut(C.label),1)],64))],2)):je("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var hTe=vt(dTe,[["__file","checkbox.vue"]]);const pTe=Se({name:"ElCheckboxButton"}),gTe=Se({...pTe,props:rZ,emits:oZ,setup(e){const t=e,n=zi(),{isFocused:r,isChecked:o,isDisabled:i,checkboxButtonSize:a,model:s,actualValue:l,handleChange:u}=iZ(t,n),d=Tt(m0,void 0),p=lt("checkbox"),v=W(()=>{var w,b,k,C;const T=(b=(w=d==null?void 0:d.fill)==null?void 0:w.value)!=null?b:"";return{backgroundColor:T,borderColor:T,color:(C=(k=d==null?void 0:d.textColor)==null?void 0:k.value)!=null?C:"",boxShadow:T?`-1px 0 0 0 ${T}`:void 0}}),y=W(()=>[p.b("button"),p.bm("button",a.value),p.is("disabled",i.value),p.is("checked",o.value),p.is("focus",r.value)]);return(w,b)=>{var k,C;return Z(),ce("label",{class:J(m(y))},[w.trueValue||w.falseValue||w.trueLabel||w.falseLabel?yn((Z(),ce("input",{key:0,"onUpdate:modelValue":T=>Jr(s)?s.value=T:null,class:J(m(p).be("button","original")),type:"checkbox",name:w.name,tabindex:w.tabindex,disabled:m(i),"true-value":(k=w.trueValue)!=null?k:w.trueLabel,"false-value":(C=w.falseValue)!=null?C:w.falseLabel,onChange:m(u),onFocus:T=>r.value=!0,onBlur:T=>r.value=!1,onClick:tn(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Rk,m(s)]]):yn((Z(),ce("input",{key:1,"onUpdate:modelValue":T=>Jr(s)?s.value=T:null,class:J(m(p).be("button","original")),type:"checkbox",name:w.name,tabindex:w.tabindex,disabled:m(i),value:m(l),onChange:m(u),onFocus:T=>r.value=!0,onBlur:T=>r.value=!1,onClick:tn(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[Rk,m(s)]]),w.$slots.default||w.label?(Z(),ce("span",{key:2,class:J(m(p).be("button","inner")),style:Vt(m(o)?m(v):void 0)},[He(w.$slots,"default",{},()=>[St(ut(w.label),1)])],6)):je("v-if",!0)],2)}}});var aZ=vt(gTe,[["__file","checkbox-button.vue"]]);const vTe=pt({modelValue:{type:Ie(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ai,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...ha(["ariaLabel"])}),mTe={[En]:e=>xt(e),change:e=>xt(e)},yTe=Se({name:"ElCheckboxGroup"}),bTe=Se({...yTe,props:vTe,emits:mTe,setup(e,{emit:t}){const n=e,r=lt("checkbox"),{formItem:o}=as(),{inputId:i,isLabeledByFormItem:a}=bc(n,{formItemContext:o}),s=async u=>{t(En,u),await zt(),t("change",u)},l=W({get(){return n.modelValue},set(u){s(u)}});return Wn(m0,{...pu(ea(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),at(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>void 0))}),(u,d)=>{var p;return Z(),Fe(Dn(u.tag),{id:m(i),class:J(m(r).b("group")),role:"group","aria-label":m(a)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":m(a)?(p=m(o))==null?void 0:p.labelId:void 0},{default:ue(()=>[He(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var sZ=vt(bTe,[["__file","checkbox-group.vue"]]);const Fl=pn(hTe,{CheckboxButton:aZ,CheckboxGroup:sZ}),_Te=So(aZ),lZ=So(sZ),uZ=pt({modelValue:{type:[String,Number,Boolean],default:void 0},size:Ai,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),OTe=pt({...uZ,border:Boolean}),cZ={[En]:e=>Gt(e)||en(e)||Uo(e),[ao]:e=>Gt(e)||en(e)||Uo(e)},fZ=Symbol("radioGroupKey"),dZ=(e,t)=>{const n=ee(),r=Tt(fZ,void 0),o=W(()=>!!r),i=W(()=>av(e.value)?e.label:e.value),a=W({get(){return o.value?r.modelValue:e.modelValue},set(p){o.value?r.changeEvent(p):t&&t(En,p),n.value.checked=e.modelValue===i.value}}),s=bi(W(()=>r==null?void 0:r.size)),l=Rs(W(()=>r==null?void 0:r.disabled)),u=ee(!1),d=W(()=>l.value||o.value&&a.value!==i.value?-1:0);return Bh({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},W(()=>o.value&&av(e.value))),{radioRef:n,isGroup:o,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:d,modelValue:a,actualValue:i}},wTe=Se({name:"ElRadio"}),STe=Se({...wTe,props:OTe,emits:cZ,setup(e,{emit:t}){const n=e,r=lt("radio"),{radioRef:o,radioGroup:i,focus:a,size:s,disabled:l,modelValue:u,actualValue:d}=dZ(n,t);function p(){zt(()=>t("change",u.value))}return(v,y)=>{var w;return Z(),ce("label",{class:J([m(r).b(),m(r).is("disabled",m(l)),m(r).is("focus",m(a)),m(r).is("bordered",v.border),m(r).is("checked",m(u)===m(d)),m(r).m(m(s))])},[ve("span",{class:J([m(r).e("input"),m(r).is("disabled",m(l)),m(r).is("checked",m(u)===m(d))])},[yn(ve("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":b=>Jr(u)?u.value=b:null,class:J(m(r).e("original")),value:m(d),name:v.name||((w=m(i))==null?void 0:w.name),disabled:m(l),checked:m(u)===m(d),type:"radio",onFocus:b=>a.value=!0,onBlur:b=>a.value=!1,onChange:p,onClick:tn(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[Iz,m(u)]]),ve("span",{class:J(m(r).e("inner"))},null,2)],2),ve("span",{class:J(m(r).e("label")),onKeydown:tn(()=>{},["stop"])},[He(v.$slots,"default",{},()=>[St(ut(v.label),1)])],42,["onKeydown"])],2)}}});var xTe=vt(STe,[["__file","radio.vue"]]);const kTe=pt({...uZ}),CTe=Se({name:"ElRadioButton"}),ETe=Se({...CTe,props:kTe,setup(e){const t=e,n=lt("radio"),{radioRef:r,focus:o,size:i,disabled:a,modelValue:s,radioGroup:l,actualValue:u}=dZ(t),d=W(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(p,v)=>{var y;return Z(),ce("label",{class:J([m(n).b("button"),m(n).is("active",m(s)===m(u)),m(n).is("disabled",m(a)),m(n).is("focus",m(o)),m(n).bm("button",m(i))])},[yn(ve("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":w=>Jr(s)?s.value=w:null,class:J(m(n).be("button","original-radio")),value:m(u),type:"radio",name:p.name||((y=m(l))==null?void 0:y.name),disabled:m(a),onFocus:w=>o.value=!0,onBlur:w=>o.value=!1,onClick:tn(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[Iz,m(s)]]),ve("span",{class:J(m(n).be("button","inner")),style:Vt(m(s)===m(u)?m(d):{}),onKeydown:tn(()=>{},["stop"])},[He(p.$slots,"default",{},()=>[St(ut(p.label),1)])],46,["onKeydown"])],2)}}});var hZ=vt(ETe,[["__file","radio-button.vue"]]);const TTe=pt({id:{type:String,default:void 0},size:Ai,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...ha(["ariaLabel"])}),PTe=cZ,$Te=Se({name:"ElRadioGroup"}),ATe=Se({...$Te,props:TTe,emits:PTe,setup(e,{emit:t}){const n=e,r=lt("radio"),o=ja(),i=ee(),{formItem:a}=as(),{inputId:s,isLabeledByFormItem:l}=bc(n,{formItemContext:a}),u=p=>{t(En,p),zt(()=>t("change",p))};vn(()=>{const p=i.value.querySelectorAll("[type=radio]"),v=p[0];!Array.from(p).some(y=>y.checked)&&v&&(v.tabIndex=0)});const d=W(()=>n.name||o.value);return Wn(fZ,nr({...ea(n),changeEvent:u,name:d})),at(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(p=>void 0))}),(p,v)=>(Z(),ce("div",{id:m(s),ref_key:"radioGroupRef",ref:i,class:J(m(r).b("group")),role:"radiogroup","aria-label":m(l)?void 0:p.ariaLabel||"radio-group","aria-labelledby":m(l)?m(a).labelId:void 0},[He(p.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var pZ=vt(ATe,[["__file","radio-group.vue"]]);const gZ=pn(xTe,{RadioButton:hZ,RadioGroup:pZ}),MTe=So(pZ),RTe=So(hZ);var NTe=Se({name:"NodeContent",setup(){return{ns:lt("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:o}=t,{renderLabelFn:i}=n;return Yt("span",{class:e.e("label")},i?i({node:t,data:r}):o)}});const b3=Symbol(),ITe=Se({name:"ElCascaderNode",components:{ElCheckbox:Fl,ElRadio:gZ,NodeContent:NTe,ElIcon:jt,Check:h0,Loading:cf,ArrowRight:Ss},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Tt(b3),r=lt("cascader-node"),o=W(()=>n.isHoverMenu),i=W(()=>n.config.multiple),a=W(()=>n.config.checkStrictly),s=W(()=>{var R;return(R=n.checkedNodes[0])==null?void 0:R.uid}),l=W(()=>e.node.isDisabled),u=W(()=>e.node.isLeaf),d=W(()=>a.value&&!u.value||!l.value),p=W(()=>y(n.expandingNode)),v=W(()=>a.value&&n.checkedNodes.some(y)),y=R=>{var B;const{level:N,uid:I}=e.node;return((B=R==null?void 0:R.pathNodes[N-1])==null?void 0:B.uid)===I},w=()=>{p.value||n.expandNode(e.node)},b=R=>{const{node:B}=e;R!==B.checked&&n.handleCheckChange(B,R)},k=()=>{n.lazyLoad(e.node,()=>{u.value||w()})},C=R=>{!o.value||(T(),!u.value&&t("expand",R))},T=()=>{const{node:R}=e;!d.value||R.loading||(R.loaded?w():k())},$=()=>{o.value&&!u.value||(u.value&&!l.value&&!a.value&&!i.value?A(!0):T())},P=R=>{a.value?(b(R),e.node.loaded&&w()):A(R)},A=R=>{e.node.loaded?(b(R),!a.value&&w()):k()};return{panel:n,isHoverMenu:o,multiple:i,checkStrictly:a,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:d,inExpandingPath:p,inCheckedPath:v,ns:r,handleHoverExpand:C,handleExpand:T,handleClick:$,handleCheck:A,handleSelectCheck:P}}});function DTe(e,t,n,r,o,i){const a=Tn("el-checkbox"),s=Tn("el-radio"),l=Tn("check"),u=Tn("el-icon"),d=Tn("node-content"),p=Tn("loading"),v=Tn("arrow-right");return Z(),ce("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:J([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:e.handleHoverExpand,onFocus:e.handleHoverExpand,onClick:e.handleClick},[je(" prefix "),e.multiple?(Z(),Fe(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:tn(()=>{},["stop"]),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):e.checkStrictly?(Z(),Fe(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:tn(()=>{},["stop"])},{default:ue(()=>[je(`
  61. Add an empty element to avoid render label,
  62. do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
  63. `),ve("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(Z(),Fe(u,{key:2,class:J(e.ns.e("prefix"))},{default:ue(()=>[re(l)]),_:1},8,["class"])):je("v-if",!0),je(" content "),re(d),je(" postfix "),e.isLeaf?je("v-if",!0):(Z(),ce(Pt,{key:3},[e.node.loading?(Z(),Fe(u,{key:0,class:J([e.ns.is("loading"),e.ns.e("postfix")])},{default:ue(()=>[re(p)]),_:1},8,["class"])):(Z(),Fe(u,{key:1,class:J(["arrow-right",e.ns.e("postfix")])},{default:ue(()=>[re(v)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var jTe=vt(ITe,[["render",DTe],["__file","node.vue"]]);const LTe=Se({name:"ElCascaderMenu",components:{Loading:cf,ElIcon:jt,ElScrollbar:_c,ElCascaderNode:jTe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Cn(),n=lt("cascader-menu"),{t:r}=rr(),o=ja();let i=null,a=null;const s=Tt(b3),l=ee(null),u=W(()=>!e.nodes.length),d=W(()=>!s.initialLoaded),p=W(()=>`${o.value}-${e.index}`),v=k=>{i=k.target},y=k=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(k.target)){w();const C=t.vnode.el,{left:T}=C.getBoundingClientRect(),{offsetWidth:$,offsetHeight:P}=C,A=k.clientX-T,R=i.offsetTop,B=R+i.offsetHeight;l.value.innerHTML=`
  64. <path style="pointer-events: auto;" fill="transparent" d="M${A} ${R} L${$} 0 V${R} Z" />
  65. <path style="pointer-events: auto;" fill="transparent" d="M${A} ${B} L${$} ${P} V${B} Z" />
  66. `}else a||(a=window.setTimeout(b,s.config.hoverThreshold))},w=()=>{!a||(clearTimeout(a),a=null)},b=()=>{!l.value||(l.value.innerHTML="",w())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:d,menuId:p,t:r,handleExpand:v,handleMouseMove:y,clearHoverZone:b}}});function BTe(e,t,n,r,o,i){const a=Tn("el-cascader-node"),s=Tn("loading"),l=Tn("el-icon"),u=Tn("el-scrollbar");return Z(),Fe(u,{key:e.menuId,tag:"ul",role:"menu",class:J(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:ue(()=>{var d;return[(Z(!0),ce(Pt,null,_n(e.nodes,p=>(Z(),Fe(a,{key:p.uid,node:p,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(Z(),ce("div",{key:0,class:J(e.ns.e("empty-text"))},[re(l,{size:"14",class:J(e.ns.is("loading"))},{default:ue(()=>[re(s)]),_:1},8,["class"]),St(" "+ut(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(Z(),ce("div",{key:1,class:J(e.ns.e("empty-text"))},ut(e.t("el.cascader.noData")),3)):(d=e.panel)!=null&&d.isHoverMenu?(Z(),ce("svg",{key:2,ref:"hoverZone",class:J(e.ns.e("hover-zone"))},null,2)):je("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var VTe=vt(LTe,[["render",BTe],["__file","menu.vue"]]);let FTe=0;const zTe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};class zy{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=FTe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:a,children:s}=n,l=t[s],u=zTe(this);this.level=o?0:r?r.level+1:1,this.value=t[i],this.label=t[a],this.pathNodes=u,this.pathValues=u.map(d=>d.value),this.pathLabels=u.map(d=>d.label),this.childrenData=l,this.children=(l||[]).map(d=>new zy(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!fu(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:o,checkStrictly:i}=r;return(nn(o)?o(t,this):!!t[o])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:o}=this,{lazy:i,leaf:a}=n,s=nn(a)?a(t,this):t[a];return Bo(s)?i&&!o?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,o=new zy(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(o),o}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${Jc(t)}`;this.children.forEach(o=>{o&&(o.broadcast(t,...n),o[r]&&o[r](...n))})}emit(t,...n){const{parent:r}=this,o=`onChild${Jc(t)}`;r&&(r[o]&&r[o](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),r=n.length?n.every(o=>o.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((o,i)=>{const a=i.checked?1:i.indeterminate?.5:0;return o+a},0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}const $M=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat($M(r.children,t))),n),[]);class z6{constructor(t,n){this.config=n;const r=(t||[]).map(o=>new zy(o,this.config));this.nodes=r,this.allNodes=$M(r,!1),this.leafNodes=$M(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new zy(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(o=>rs(o.value,t)||rs(o.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:o})=>rs(t.value,r)&&t.level===o)||null}}const vZ=pt({modelValue:{type:Ie([Number,String,Array])},options:{type:Ie(Array),default:()=>[]},props:{type:Ie(Object),default:()=>({})}}),QTe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Br,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},WTe=e=>W(()=>({...QTe,...e.props})),Q6=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},YTe=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Bz(e)&&e.click()},ZTe=(e,t)=>{const n=t.slice(0),r=n.map(i=>i.uid),o=e.reduce((i,a)=>{const s=r.indexOf(a.uid);return s>-1&&(i.push(a),n.splice(s,1),r.splice(s,1)),i},[]);return o.push(...n),o},UTe=Se({name:"ElCascaderPanel",components:{ElCascaderMenu:VTe},props:{...vZ,border:{type:Boolean,default:!0},renderLabel:Function},emits:[En,ao,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const o=lt("cascader"),i=WTe(e);let a=null;const s=ee(!0),l=ee([]),u=ee(null),d=ee([]),p=ee(null),v=ee([]),y=W(()=>i.value.expandTrigger==="hover"),w=W(()=>e.renderLabel||n.default),b=()=>{const{options:z}=e,q=i.value;r=!1,a=new z6(z,q),d.value=[a.getNodes()],q.lazy&&fu(e.options)?(s.value=!1,k(void 0,ae=>{ae&&(a=new z6(ae,q),d.value=[a.getNodes()]),s.value=!0,N(!1,!0)})):N(!1,!0)},k=(z,q)=>{const ae=i.value;z=z||new zy({},ae,void 0,!0),z.loading=!0;const K=H=>{const ne=z,X=ne.root?null:ne;H&&(a==null||a.appendNodes(H,X)),ne.loading=!1,ne.loaded=!0,ne.childrenData=ne.childrenData||[],q&&q(H)};ae.lazyLoad(z,K)},C=(z,q)=>{var ae;const{level:K}=z,H=d.value.slice(0,K);let ne;z.isLeaf?ne=z.pathNodes[K-2]:(ne=z,H.push(z.children)),((ae=p.value)==null?void 0:ae.uid)!==(ne==null?void 0:ne.uid)&&(p.value=z,d.value=H,!q&&t("expand-change",(z==null?void 0:z.pathValues)||[]))},T=(z,q,ae=!0)=>{const{checkStrictly:K,multiple:H}=i.value,ne=v.value[0];r=!0,!H&&(ne==null||ne.doCheck(!1)),z.doCheck(q),B(),ae&&!H&&!K&&t("close"),!ae&&!H&&!K&&$(z)},$=z=>{!z||(z=z.parent,$(z),z&&C(z))},P=z=>a==null?void 0:a.getFlattedNodes(z),A=z=>{var q;return(q=P(z))==null?void 0:q.filter(ae=>ae.checked!==!1)},R=()=>{v.value.forEach(z=>z.doCheck(!1)),B(),d.value=d.value.slice(0,1),p.value=null,t("expand-change",[])},B=()=>{var z;const{checkStrictly:q,multiple:ae}=i.value,K=v.value,H=A(!q),ne=ZTe(K,H),X=ne.map(V=>V.valueByOption);v.value=ne,u.value=ae?X:(z=X[0])!=null?z:null},N=(z=!1,q=!1)=>{const{modelValue:ae}=e,{lazy:K,multiple:H,checkStrictly:ne}=i.value,X=!ne;if(!(!s.value||r||!q&&rs(ae,u.value)))if(K&&!z){const G=zL(PQ(Os(ae))).map(se=>a==null?void 0:a.getNodeByValue(se)).filter(se=>!!se&&!se.loaded&&!se.loading);G.length?G.forEach(se=>{k(se,()=>N(!1,q))}):N(!0,q)}else{const V=H?Os(ae):[ae],G=zL(V.map(se=>a==null?void 0:a.getNodeByValue(se,X)));I(G,q),u.value=kO(ae)}},I=(z,q=!0)=>{const{checkStrictly:ae}=i.value,K=v.value,H=z.filter(V=>!!V&&(ae||V.isLeaf)),ne=a==null?void 0:a.getSameNode(p.value),X=q&&ne||H[0];X?X.pathNodes.forEach(V=>C(V,!0)):p.value=null,K.forEach(V=>V.doCheck(!1)),nr(H).forEach(V=>V.doCheck(!0)),v.value=H,zt(D)},D=()=>{!tr||l.value.forEach(z=>{const q=z==null?void 0:z.$el;if(q){const ae=q.querySelector(`.${o.namespace.value}-scrollbar__wrap`),K=q.querySelector(`.${o.b("node")}.${o.is("active")}`)||q.querySelector(`.${o.b("node")}.in-active-path`);II(ae,K)}})},L=z=>{const q=z.target,{code:ae}=z;switch(ae){case Qt.up:case Qt.down:{z.preventDefault();const K=ae===Qt.up?-1:1;Xx(Vz(q,K,`.${o.b("node")}[tabindex="-1"]`));break}case Qt.left:{z.preventDefault();const K=l.value[Q6(q)-1],H=K==null?void 0:K.$el.querySelector(`.${o.b("node")}[aria-expanded="true"]`);Xx(H);break}case Qt.right:{z.preventDefault();const K=l.value[Q6(q)+1],H=K==null?void 0:K.$el.querySelector(`.${o.b("node")}[tabindex="-1"]`);Xx(H);break}case Qt.enter:YTe(q);break}};return Wn(b3,nr({config:i,expandingNode:p,checkedNodes:v,isHoverMenu:y,initialLoaded:s,renderLabelFn:w,lazyLoad:k,expandNode:C,handleCheckChange:T})),at([i,()=>e.options],b,{deep:!0,immediate:!0}),at(()=>e.modelValue,()=>{r=!1,N()},{deep:!0}),at(()=>u.value,z=>{rs(z,e.modelValue)||(t(En,z),t(ao,z))}),cz(()=>l.value=[]),vn(()=>!fu(e.modelValue)&&N()),{ns:o,menuList:l,menus:d,checkedNodes:v,handleKeyDown:L,handleCheckChange:T,getFlattedNodes:P,getCheckedNodes:A,clearCheckedNodes:R,calculateCheckedValue:B,scrollToExpandingNode:D}}});function HTe(e,t,n,r,o,i){const a=Tn("el-cascader-menu");return Z(),ce("div",{class:J([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[(Z(!0),ce(Pt,null,_n(e.menus,(s,l)=>(Z(),Fe(a,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],42,["onKeydown"])}var XTe=vt(UTe,[["render",HTe],["__file","index.vue"]]);const mZ=pn(XTe),cv=pt({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:wf},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),GTe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},qTe=Se({name:"ElTag"}),KTe=Se({...qTe,props:cv,emits:GTe,setup(e,{emit:t}){const n=e,r=bi(),o=lt("tag"),i=W(()=>{const{type:l,hit:u,effect:d,closable:p,round:v}=n;return[o.b(),o.is("closable",p),o.m(l||"primary"),o.m(r.value),o.m(d),o.is("hit",u),o.is("round",v)]}),a=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(Z(),ce("span",{key:0,class:J(m(i)),style:Vt({backgroundColor:l.color}),onClick:s},[ve("span",{class:J(m(o).e("content"))},[He(l.$slots,"default")],2),l.closable?(Z(),Fe(m(jt),{key:0,class:J(m(o).e("close")),onClick:tn(a,["stop"])},{default:ue(()=>[re(m(el))]),_:1},8,["class","onClick"])):je("v-if",!0)],6)):(Z(),Fe(Pi,{key:1,name:`${m(o).namespace.value}-zoom-in-center`,appear:""},{default:ue(()=>[ve("span",{class:J(m(i)),style:Vt({backgroundColor:l.color}),onClick:s},[ve("span",{class:J(m(o).e("content"))},[He(l.$slots,"default")],2),l.closable?(Z(),Fe(m(jt),{key:0,class:J(m(o).e("close")),onClick:tn(a,["stop"])},{default:ue(()=>[re(m(el))]),_:1},8,["class","onClick"])):je("v-if",!0)],6)]),_:3},8,["name"]))}});var JTe=vt(KTe,[["__file","tag.vue"]]);const rp=pn(JTe),ePe=pt({...vZ,size:Ai,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Ie(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Ie(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Xi.teleported,tagType:{...cv.type,default:"info"},tagEffect:{...cv.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...g0}),tPe={[En]:e=>!0,[ao]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Uo(e),expandChange:e=>!!e,removeTag:e=>!!e},nPe="ElCascader",rPe=Se({name:nPe}),oPe=Se({...rPe,props:ePe,emits:tPe,setup(e,{expose:t,emit:n}){const r=e,o={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:xe})=>{const{modifiersData:Ue,placement:rt}=xe;["right","left","bottom","top"].includes(rt)||(Ue.arrow.x=35)},requires:["arrow"]}]},i=vv();let a=0,s=0;const l=lt("cascader"),u=lt("input"),{t:d}=rr(),{form:p,formItem:v}=as(),{valueOnClear:y}=AC(r),{isComposing:w,handleComposition:b}=$C({afterComposition(xe){var Ue;const rt=(Ue=xe.target)==null?void 0:Ue.value;ye(rt)}}),k=ee(null),C=ee(null),T=ee(null),$=ee(null),P=ee(null),A=ee(!1),R=ee(!1),B=ee(!1),N=ee(!1),I=ee(""),D=ee(""),L=ee([]),z=ee([]),q=ee([]),ae=W(()=>i.style),K=W(()=>r.disabled||(p==null?void 0:p.disabled)),H=W(()=>r.placeholder||d("el.cascader.placeholder")),ne=W(()=>D.value||L.value.length>0||w.value?"":H.value),X=bi(),V=W(()=>["small"].includes(X.value)?"small":"default"),G=W(()=>!!r.props.multiple),se=W(()=>!r.filterable||G.value),he=W(()=>G.value?D.value:I.value),pe=W(()=>{var xe;return((xe=$.value)==null?void 0:xe.checkedNodes)||[]}),Be=W(()=>!r.clearable||K.value||B.value||!R.value?!1:!!pe.value.length),De=W(()=>{const{showAllLevels:xe,separator:Ue}=r,rt=pe.value;return rt.length?G.value?"":rt[0].calcText(xe,Ue):""}),ze=W(()=>(v==null?void 0:v.validateState)||""),$e=W({get(){return kO(r.modelValue)},set(xe){const Ue=xe!=null?xe:y.value;n(En,Ue),n(ao,Ue),r.validateEvent&&(v==null||v.validate("change").catch(rt=>void 0))}}),_e=W(()=>[l.b(),l.m(X.value),l.is("disabled",K.value),i.class]),me=W(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",A.value)]),Re=W(()=>l.is("focus",A.value||N.value)),we=W(()=>{var xe,Ue;return(Ue=(xe=k.value)==null?void 0:xe.popperRef)==null?void 0:Ue.contentRef}),fe=xe=>{var Ue,rt,Ft;K.value||(xe=xe!=null?xe:!A.value,xe!==A.value&&(A.value=xe,(rt=(Ue=C.value)==null?void 0:Ue.input)==null||rt.setAttribute("aria-expanded",`${xe}`),xe?(oe(),zt((Ft=$.value)==null?void 0:Ft.scrollToExpandingNode)):r.filterable&&gt(),n("visibleChange",xe)))},oe=()=>{zt(()=>{var xe;(xe=k.value)==null||xe.updatePopper()})},ke=()=>{B.value=!1},We=xe=>{const{showAllLevels:Ue,separator:rt}=r;return{node:xe,key:xe.uid,text:xe.calcText(Ue,rt),hitState:!1,closable:!K.value&&!xe.isDisabled,isCollapseTag:!1}},et=xe=>{var Ue;const rt=xe.node;rt.doCheck(!1),(Ue=$.value)==null||Ue.calculateCheckedValue(),n("removeTag",rt.valueByOption)},Ve=()=>{if(!G.value)return;const xe=pe.value,Ue=[],rt=[];if(xe.forEach(Ft=>rt.push(We(Ft))),z.value=rt,xe.length){xe.slice(0,r.maxCollapseTags).forEach(ot=>Ue.push(We(ot)));const Ft=xe.slice(r.maxCollapseTags),Vn=Ft.length;Vn&&(r.collapseTags?Ue.push({key:-1,text:`+ ${Vn}`,closable:!1,isCollapseTag:!0}):Ft.forEach(ot=>Ue.push(We(ot))))}L.value=Ue},Me=()=>{var xe,Ue;const{filterMethod:rt,showAllLevels:Ft,separator:Vn}=r,ot=(Ue=(xe=$.value)==null?void 0:xe.getFlattedNodes(!r.props.checkStrictly))==null?void 0:Ue.filter(Lt=>Lt.isDisabled?!1:(Lt.calcText(Ft,Vn),rt(Lt,he.value)));G.value&&(L.value.forEach(Lt=>{Lt.hitState=!1}),z.value.forEach(Lt=>{Lt.hitState=!1})),B.value=!0,q.value=ot,oe()},Ke=()=>{var xe;let Ue;B.value&&P.value?Ue=P.value.$el.querySelector(`.${l.e("suggestion-item")}`):Ue=(xe=$.value)==null?void 0:xe.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),Ue&&(Ue.focus(),!B.value&&Ue.click())},be=()=>{var xe,Ue;const rt=(xe=C.value)==null?void 0:xe.input,Ft=T.value,Vn=(Ue=P.value)==null?void 0:Ue.$el;if(!(!tr||!rt)){if(Vn){const ot=Vn.querySelector(`.${l.e("suggestion-list")}`);ot.style.minWidth=`${rt.offsetWidth}px`}if(Ft){const{offsetHeight:ot}=Ft,Lt=L.value.length>0?`${Math.max(ot+6,a)}px`:`${a}px`;rt.style.height=Lt,oe()}}},qe=xe=>{var Ue;return(Ue=$.value)==null?void 0:Ue.getCheckedNodes(xe)},ct=xe=>{oe(),n("expandChange",xe)},Je=xe=>{if(!w.value)switch(xe.code){case Qt.enter:fe();break;case Qt.down:fe(!0),zt(Ke),xe.preventDefault();break;case Qt.esc:A.value===!0&&(xe.preventDefault(),xe.stopPropagation(),fe(!1));break;case Qt.tab:fe(!1);break}},Xe=()=>{var xe;(xe=$.value)==null||xe.clearCheckedNodes(),!A.value&&r.filterable&&gt(),fe(!1),n("clear")},gt=()=>{const{value:xe}=De;I.value=xe,D.value=xe},Ct=xe=>{var Ue,rt;const{checked:Ft}=xe;G.value?(Ue=$.value)==null||Ue.handleCheckChange(xe,!Ft,!1):(!Ft&&((rt=$.value)==null||rt.handleCheckChange(xe,!0,!1)),fe(!1))},Zt=xe=>{const Ue=xe.target,{code:rt}=xe;switch(rt){case Qt.up:case Qt.down:{const Ft=rt===Qt.up?-1:1;Xx(Vz(Ue,Ft,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Qt.enter:Ue.click();break}},Et=()=>{const xe=L.value,Ue=xe[xe.length-1];s=D.value?0:s+1,!(!Ue||!s||r.collapseTags&&xe.length>1)&&(Ue.hitState?et(Ue):Ue.hitState=!0)},ln=xe=>{const Ue=xe.target,rt=l.e("search-input");Ue.className===rt&&(N.value=!0),n("focus",xe)},Ee=xe=>{N.value=!1,n("blur",xe)},Ze=Ts(()=>{const{value:xe}=he;if(!xe)return;const Ue=r.beforeFilter(xe);dO(Ue)?Ue.then(Me).catch(()=>{}):Ue!==!1?Me():ke()},r.debounce),ye=(xe,Ue)=>{!A.value&&fe(!0),!(Ue!=null&&Ue.isComposing)&&(xe?Ze():ke())},Le=xe=>Number.parseFloat(qie(u.cssVarName("input-height"),xe).value)-2;return at(B,oe),at([pe,K,()=>r.collapseTags],Ve),at(L,()=>{zt(()=>be())}),at(X,async()=>{await zt();const xe=C.value.input;a=Le(xe)||a,be()}),at(De,gt,{immediate:!0}),vn(()=>{const xe=C.value.input,Ue=Le(xe);a=xe.offsetHeight||Ue,_o(xe,be)}),t({getCheckedNodes:qe,cascaderPanelRef:$,togglePopperVisible:fe,contentRef:we}),(xe,Ue)=>(Z(),Fe(m(Fi),{ref_key:"tooltipRef",ref:k,visible:A.value,teleported:xe.teleported,"popper-class":[m(l).e("dropdown"),xe.popperClass],"popper-options":o,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${m(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:xe.persistent,onHide:ke},{default:ue(()=>[yn((Z(),ce("div",{class:J(m(_e)),style:Vt(m(ae)),onClick:()=>fe(m(se)?void 0:!0),onKeydown:Je,onMouseenter:rt=>R.value=!0,onMouseleave:rt=>R.value=!1},[re(m(ei),{ref_key:"input",ref:C,modelValue:I.value,"onUpdate:modelValue":rt=>I.value=rt,placeholder:m(ne),readonly:m(se),disabled:m(K),"validate-event":!1,size:m(X),class:J(m(Re)),tabindex:m(G)&&xe.filterable&&!m(K)?-1:void 0,onCompositionstart:m(b),onCompositionupdate:m(b),onCompositionend:m(b),onFocus:ln,onBlur:Ee,onInput:ye},{suffix:ue(()=>[m(Be)?(Z(),Fe(m(jt),{key:"clear",class:J([m(u).e("icon"),"icon-circle-close"]),onClick:tn(Xe,["stop"])},{default:ue(()=>[re(m(_p))]),_:1},8,["class","onClick"])):(Z(),Fe(m(jt),{key:"arrow-down",class:J(m(me)),onClick:tn(rt=>fe(),["stop"])},{default:ue(()=>[re(m(Cd))]),_:1},8,["class","onClick"]))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),m(G)?(Z(),ce("div",{key:0,ref_key:"tagWrapper",ref:T,class:J([m(l).e("tags"),m(l).is("validate",Boolean(m(ze)))])},[(Z(!0),ce(Pt,null,_n(L.value,rt=>(Z(),Fe(m(rp),{key:rt.key,type:xe.tagType,size:m(V),effect:xe.tagEffect,hit:rt.hitState,closable:rt.closable,"disable-transitions":"",onClose:Ft=>et(rt)},{default:ue(()=>[rt.isCollapseTag===!1?(Z(),ce("span",{key:0},ut(rt.text),1)):(Z(),Fe(m(Fi),{key:1,disabled:A.value||!xe.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:ue(()=>[ve("span",null,ut(rt.text),1)]),content:ue(()=>[ve("div",{class:J(m(l).e("collapse-tags"))},[(Z(!0),ce(Pt,null,_n(z.value.slice(xe.maxCollapseTags),(Ft,Vn)=>(Z(),ce("div",{key:Vn,class:J(m(l).e("collapse-tag"))},[(Z(),Fe(m(rp),{key:Ft.key,class:"in-tooltip",type:xe.tagType,size:m(V),effect:xe.tagEffect,hit:Ft.hitState,closable:Ft.closable,"disable-transitions":"",onClose:ot=>et(Ft)},{default:ue(()=>[ve("span",null,ut(Ft.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128)),xe.filterable&&!m(K)?yn((Z(),ce("input",{key:0,"onUpdate:modelValue":rt=>D.value=rt,type:"text",class:J(m(l).e("search-input")),placeholder:m(De)?"":m(H),onInput:rt=>ye(D.value,rt),onClick:tn(rt=>fe(!0),["stop"]),onKeydown:Vr(Et,["delete"]),onCompositionstart:m(b),onCompositionupdate:m(b),onCompositionend:m(b),onFocus:ln,onBlur:Ee},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[AN,D.value]]):je("v-if",!0)],2)):je("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[m(hd),()=>fe(!1),m(we)]])]),content:ue(()=>[yn(re(m(mZ),{ref_key:"cascaderPanelRef",ref:$,modelValue:m($e),"onUpdate:modelValue":rt=>Jr($e)?$e.value=rt:null,options:xe.options,props:r.props,border:!1,"render-label":xe.$slots.default,onExpandChange:ct,onClose:rt=>xe.$nextTick(()=>fe(!1))},null,8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[hr,!B.value]]),xe.filterable?yn((Z(),Fe(m(_c),{key:0,ref_key:"suggestionPanel",ref:P,tag:"ul",class:J(m(l).e("suggestion-panel")),"view-class":m(l).e("suggestion-list"),onKeydown:Zt},{default:ue(()=>[q.value.length?(Z(!0),ce(Pt,{key:0},_n(q.value,rt=>(Z(),ce("li",{key:rt.uid,class:J([m(l).e("suggestion-item"),m(l).is("checked",rt.checked)]),tabindex:-1,onClick:Ft=>Ct(rt)},[ve("span",null,ut(rt.text),1),rt.checked?(Z(),Fe(m(jt),{key:0},{default:ue(()=>[re(m(h0))]),_:1})):je("v-if",!0)],10,["onClick"]))),128)):He(xe.$slots,"empty",{key:1},()=>[ve("li",{class:J(m(l).e("empty-text"))},ut(m(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[hr,B.value]]):je("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition","persistent"]))}});var iPe=vt(oPe,[["__file","cascader.vue"]]);const aPe=pn(iPe),sPe=pt({checked:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),lPe={"update:checked":e=>Uo(e),[ao]:e=>Uo(e)},uPe=Se({name:"ElCheckTag"}),cPe=Se({...uPe,props:sPe,emits:lPe,setup(e,{emit:t}){const n=e,r=lt("check-tag"),o=W(()=>[r.b(),r.is("checked",n.checked),r.m(n.type||"primary")]),i=()=>{const a=!n.checked;t(ao,a),t("update:checked",a)};return(a,s)=>(Z(),ce("span",{class:J(m(o)),onClick:i},[He(a.$slots,"default")],2))}});var fPe=vt(cPe,[["__file","check-tag.vue"]]);const dPe=pn(fPe),yZ=Symbol("rowContextKey"),hPe=["start","center","end","space-around","space-between","space-evenly"],pPe=["top","middle","bottom"],gPe=pt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:hPe,default:"start"},align:{type:String,values:pPe}}),vPe=Se({name:"ElRow"}),mPe=Se({...vPe,props:gPe,setup(e){const t=e,n=lt("row"),r=W(()=>t.gutter);Wn(yZ,{gutter:r});const o=W(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),i=W(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(a,s)=>(Z(),Fe(Dn(a.tag),{class:J(m(i)),style:Vt(m(o))},{default:ue(()=>[He(a.$slots,"default")]),_:3},8,["class","style"]))}});var yPe=vt(mPe,[["__file","row.vue"]]);const ol=pn(yPe),bPe=pt({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Ie([Number,Object]),default:()=>Oo({})},sm:{type:Ie([Number,Object]),default:()=>Oo({})},md:{type:Ie([Number,Object]),default:()=>Oo({})},lg:{type:Ie([Number,Object]),default:()=>Oo({})},xl:{type:Ie([Number,Object]),default:()=>Oo({})}}),_Pe=Se({name:"ElCol"}),OPe=Se({..._Pe,props:bPe,setup(e){const t=e,{gutter:n}=Tt(yZ,{gutter:W(()=>0)}),r=lt("col"),o=W(()=>{const a={};return n.value&&(a.paddingLeft=a.paddingRight=`${n.value/2}px`),a}),i=W(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const d=t[u];en(d)&&(u==="span"?a.push(r.b(`${t[u]}`)):d>0&&a.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{en(t[u])?a.push(r.b(`${u}-${t[u]}`)):Pn(t[u])&&Object.entries(t[u]).forEach(([d,p])=>{a.push(d!=="span"?r.b(`${u}-${d}-${p}`):r.b(`${u}-${p}`))})}),n.value&&a.push(r.is("guttered")),[r.b(),a]});return(a,s)=>(Z(),Fe(Dn(a.tag),{class:J(m(i)),style:Vt(m(o))},{default:ue(()=>[He(a.$slots,"default")]),_:3},8,["class","style"]))}});var wPe=vt(OPe,[["__file","col.vue"]]);const il=pn(wPe),W6=e=>en(e)||Gt(e)||xt(e),SPe=pt({accordion:Boolean,modelValue:{type:Ie([Array,String,Number]),default:()=>Oo([])}}),xPe={[En]:W6,[ao]:W6},bZ=Symbol("collapseContextKey"),kPe=(e,t)=>{const n=ee(Ma(e.modelValue)),r=i=>{n.value=i;const a=e.accordion?n.value[0]:n.value;t(En,a),t(ao,a)},o=i=>{if(e.accordion)r([n.value[0]===i?"":i]);else{const a=[...n.value],s=a.indexOf(i);s>-1?a.splice(s,1):a.push(i),r(a)}};return at(()=>e.modelValue,()=>n.value=Ma(e.modelValue),{deep:!0}),Wn(bZ,{activeNames:n,handleItemClick:o}),{activeNames:n,setActiveNames:r}},CPe=()=>{const e=lt("collapse");return{rootKls:W(()=>e.b())}},EPe=Se({name:"ElCollapse"}),TPe=Se({...EPe,props:SPe,emits:xPe,setup(e,{expose:t,emit:n}){const r=e,{activeNames:o,setActiveNames:i}=kPe(r,n),{rootKls:a}=CPe();return t({activeNames:o,setActiveNames:i}),(s,l)=>(Z(),ce("div",{class:J(m(a))},[He(s.$slots,"default")],2))}});var PPe=vt(TPe,[["__file","collapse.vue"]]);const $Pe=Se({name:"ElCollapseTransition"}),APe=Se({...$Pe,setup(e){const t=lt("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},r={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,i)=>(Z(),Fe(Pi,In({name:m(t).b()},Ooe(r)),{default:ue(()=>[He(o.$slots,"default")]),_:3},16,["name"]))}});var MPe=vt(APe,[["__file","collapse-transition.vue"]]);const DC=pn(MPe),RPe=pt({title:{type:String,default:""},name:{type:Ie([String,Number]),default:void 0},disabled:Boolean}),NPe=e=>{const t=Tt(bZ),{namespace:n}=lt("collapse"),r=ee(!1),o=ee(!1),i=n3(),a=W(()=>i.current++),s=W(()=>{var v;return(v=e.name)!=null?v:`${n.value}-id-${i.prefix}-${m(a)}`}),l=W(()=>t==null?void 0:t.activeNames.value.includes(m(s)));return{focusing:r,id:a,isActive:l,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:r.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(m(s)),r.value=!1,o.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(m(s))}}},IPe=(e,{focusing:t,isActive:n,id:r})=>{const o=lt("collapse"),i=W(()=>[o.b("item"),o.is("active",m(n)),o.is("disabled",e.disabled)]),a=W(()=>[o.be("item","header"),o.is("active",m(n)),{focusing:m(t)&&!e.disabled}]),s=W(()=>[o.be("item","arrow"),o.is("active",m(n))]),l=W(()=>o.be("item","wrap")),u=W(()=>o.be("item","content")),d=W(()=>o.b(`content-${m(r)}`)),p=W(()=>o.b(`head-${m(r)}`));return{arrowKls:s,headKls:a,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:d,scopedHeadId:p}},DPe=Se({name:"ElCollapseItem"}),jPe=Se({...DPe,props:RPe,setup(e,{expose:t}){const n=e,{focusing:r,id:o,isActive:i,handleFocus:a,handleHeaderClick:s,handleEnterClick:l}=NPe(n),{arrowKls:u,headKls:d,rootKls:p,itemWrapperKls:v,itemContentKls:y,scopedContentId:w,scopedHeadId:b}=IPe(n,{focusing:r,isActive:i,id:o});return t({isActive:i}),(k,C)=>(Z(),ce("div",{class:J(m(p))},[ve("button",{id:m(b),class:J(m(d)),"aria-expanded":m(i),"aria-controls":m(w),"aria-describedby":m(w),tabindex:k.disabled?-1:0,type:"button",onClick:m(s),onKeydown:Vr(tn(m(l),["stop","prevent"]),["space","enter"]),onFocus:m(a),onBlur:T=>r.value=!1},[He(k.$slots,"title",{},()=>[St(ut(k.title),1)]),re(m(jt),{class:J(m(u))},{default:ue(()=>[re(m(Ss))]),_:1},8,["class"])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),re(m(DC),null,{default:ue(()=>[yn(ve("div",{id:m(w),role:"region",class:J(m(v)),"aria-hidden":!m(i),"aria-labelledby":m(b)},[ve("div",{class:J(m(y))},[He(k.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[hr,m(i)]])]),_:3})],2))}});var _Z=vt(jPe,[["__file","collapse-item.vue"]]);const _3=pn(PPe,{CollapseItem:_Z}),O3=So(_Z),LPe=pt({color:{type:Ie(Object),required:!0},vertical:{type:Boolean,default:!1}});let F$=!1;function MO(e,t){if(!tr)return;const n=function(i){var a;(a=t.drag)==null||a.call(t,i)},r=function(i){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,F$=!1,(a=t.end)==null||a.call(t,i)},o=function(i){var a;F$||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),F$=!0,(a=t.start)==null||a.call(t,i))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const BPe=e=>{const t=Cn(),{t:n}=rr(),r=Kr(),o=Kr(),i=W(()=>e.color.get("alpha")),a=W(()=>n("el.colorpicker.alphaLabel"));function s(p){var v;p.target!==r.value&&l(p),(v=r.value)==null||v.focus()}function l(p){if(!o.value||!r.value)return;const y=t.vnode.el.getBoundingClientRect(),{clientX:w,clientY:b}=IN(p);if(e.vertical){let k=b-y.top;k=Math.max(r.value.offsetHeight/2,k),k=Math.min(k,y.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((k-r.value.offsetHeight/2)/(y.height-r.value.offsetHeight)*100))}else{let k=w-y.left;k=Math.max(r.value.offsetWidth/2,k),k=Math.min(k,y.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((k-r.value.offsetWidth/2)/(y.width-r.value.offsetWidth)*100))}}function u(p){const{code:v,shiftKey:y}=p,w=y?10:1;switch(v){case Qt.left:case Qt.down:p.preventDefault(),p.stopPropagation(),d(-w);break;case Qt.right:case Qt.up:p.preventDefault(),p.stopPropagation(),d(w);break}}function d(p){let v=i.value+p;v=v<0?0:v>100?100:v,e.color.set("alpha",v)}return{thumb:r,bar:o,alpha:i,alphaLabel:a,handleDrag:l,handleClick:s,handleKeydown:u}},VPe=(e,{bar:t,thumb:n,handleDrag:r})=>{const o=Cn(),i=lt("color-alpha-slider"),a=ee(0),s=ee(0),l=ee();function u(){if(!n.value||e.vertical)return 0;const T=o.vnode.el,$=e.color.get("alpha");return T?Math.round($*(T.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const T=o.vnode.el;if(!e.vertical)return 0;const $=e.color.get("alpha");return T?Math.round($*(T.offsetHeight-n.value.offsetHeight/2)/100):0}function p(){if(e.color&&e.color.value){const{r:T,g:$,b:P}=e.color.toRgb();return`linear-gradient(to right, rgba(${T}, ${$}, ${P}, 0) 0%, rgba(${T}, ${$}, ${P}, 1) 100%)`}return""}function v(){a.value=u(),s.value=d(),l.value=p()}vn(()=>{if(!t.value||!n.value)return;const T={drag:$=>{r($)},end:$=>{r($)}};MO(t.value,T),MO(n.value,T),v()}),at(()=>e.color.get("alpha"),()=>v()),at(()=>e.color.value,()=>v());const y=W(()=>[i.b(),i.is("vertical",e.vertical)]),w=W(()=>i.e("bar")),b=W(()=>i.e("thumb")),k=W(()=>({background:l.value})),C=W(()=>({left:Vo(a.value),top:Vo(s.value)}));return{rootKls:y,barKls:w,barStyle:k,thumbKls:b,thumbStyle:C,update:v}},FPe="ElColorAlphaSlider",zPe=Se({name:FPe}),QPe=Se({...zPe,props:LPe,setup(e,{expose:t}){const n=e,{alpha:r,alphaLabel:o,bar:i,thumb:a,handleDrag:s,handleClick:l,handleKeydown:u}=BPe(n),{rootKls:d,barKls:p,barStyle:v,thumbKls:y,thumbStyle:w,update:b}=VPe(n,{bar:i,thumb:a,handleDrag:s});return t({update:b,bar:i,thumb:a}),(k,C)=>(Z(),ce("div",{class:J(m(d))},[ve("div",{ref_key:"bar",ref:i,class:J(m(p)),style:Vt(m(v)),onClick:m(l)},null,14,["onClick"]),ve("div",{ref_key:"thumb",ref:a,class:J(m(y)),style:Vt(m(w)),"aria-label":m(o),"aria-valuenow":m(r),"aria-orientation":k.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:m(u)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var WPe=vt(QPe,[["__file","alpha-slider.vue"]]);const YPe=Se({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=lt("color-hue-slider"),n=Cn(),r=ee(),o=ee(),i=ee(0),a=ee(0),s=W(()=>e.color.get("hue"));at(()=>s.value,()=>{v()});function l(y){y.target!==r.value&&u(y)}function u(y){if(!o.value||!r.value)return;const b=n.vnode.el.getBoundingClientRect(),{clientX:k,clientY:C}=IN(y);let T;if(e.vertical){let $=C-b.top;$=Math.min($,b.height-r.value.offsetHeight/2),$=Math.max(r.value.offsetHeight/2,$),T=Math.round(($-r.value.offsetHeight/2)/(b.height-r.value.offsetHeight)*360)}else{let $=k-b.left;$=Math.min($,b.width-r.value.offsetWidth/2),$=Math.max(r.value.offsetWidth/2,$),T=Math.round(($-r.value.offsetWidth/2)/(b.width-r.value.offsetWidth)*360)}e.color.set("hue",T)}function d(){if(!r.value)return 0;const y=n.vnode.el;if(e.vertical)return 0;const w=e.color.get("hue");return y?Math.round(w*(y.offsetWidth-r.value.offsetWidth/2)/360):0}function p(){if(!r.value)return 0;const y=n.vnode.el;if(!e.vertical)return 0;const w=e.color.get("hue");return y?Math.round(w*(y.offsetHeight-r.value.offsetHeight/2)/360):0}function v(){i.value=d(),a.value=p()}return vn(()=>{if(!o.value||!r.value)return;const y={drag:w=>{u(w)},end:w=>{u(w)}};MO(o.value,y),MO(r.value,y),v()}),{bar:o,thumb:r,thumbLeft:i,thumbTop:a,hueValue:s,handleClick:l,update:v,ns:t}}});function ZPe(e,t,n,r,o,i){return Z(),ce("div",{class:J([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ve("div",{ref:"bar",class:J(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),ve("div",{ref:"thumb",class:J(e.ns.e("thumb")),style:Vt({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var UPe=vt(YPe,[["render",ZPe],["__file","hue-slider.vue"]]);const HPe=pt({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Ai,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Xi.teleported,predefine:{type:Ie(Array)},validateEvent:{type:Boolean,default:!0},...ha(["ariaLabel"])}),XPe={[En]:e=>Gt(e)||Vi(e),[ao]:e=>Gt(e)||Vi(e),activeChange:e=>Gt(e)||Vi(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},OZ=Symbol("colorPickerContextKey"),Y6=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},GPe=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},qPe=function(e){return typeof e=="string"&&e.includes("%")},my=function(e,t){GPe(e)&&(e="100%");const n=qPe(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Z6={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},ak=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${Z6[t]||t}${Z6[n]||n}`},U6=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${ak(e)}${ak(t)}${ak(n)}`},z$={A:10,B:11,C:12,D:13,E:14,F:15},xg=function(e){return e.length===2?(z$[e[0].toUpperCase()]||+e[0])*16+(z$[e[1].toUpperCase()]||+e[1]):z$[e[1].toUpperCase()]||+e[1]},KPe=function(e,t,n){t=t/100,n=n/100;let r=t;const o=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=o<=1?o:2-o;const i=(n+t)/2,a=n===0?2*r/(o+r):2*t/(n+t);return{h:e,s:a*100,v:i*100}},H6=(e,t,n)=>{e=my(e,255),t=my(t,255),n=my(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let i;const a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:{i=(t-n)/s+(t<n?6:0);break}case t:{i=(n-e)/s+2;break}case n:{i=(e-t)/s+4;break}}i/=6}return{h:i*360,s:l*100,v:a*100}},m_=function(e,t,n){e=my(e,360)*6,t=my(t,100),n=my(n,100);const r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,u=[n,a,i,i,s,n][l],d=[s,n,n,a,i,i][l],p=[i,i,s,n,n,a][l];return{r:Math.round(u*255),g:Math.round(d*255),b:Math.round(p*255)}};class G_{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)ir(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)ir(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return m_(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,o,i)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,o)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,i)=>i>2?Number.parseFloat(o):Number.parseInt(o,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:o,s:i,v:a}=KPe(r[0],r[1],r[2]);n(o,i,a)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,i)=>i>2?Number.parseFloat(o):Number.parseInt(o,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,i)=>i>2?Number.parseFloat(o):Number.parseInt(o,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:o,s:i,v:a}=H6(r[0],r[1],r[2]);n(o,i,a)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let o,i,a;r.length===3?(o=xg(r[0]+r[0]),i=xg(r[1]+r[1]),a=xg(r[2]+r[2])):(r.length===6||r.length===8)&&(o=xg(r.slice(0,2)),i=xg(r.slice(2,4)),a=xg(r.slice(4,6))),r.length===8?this._alpha=xg(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=H6(o,i,a);n(s,l,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:o,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const a=Y6(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${U6(m_(t,n,r))}${ak(o*255/100)}`;break}default:{const{r:a,g:s,b:l}=m_(t,n,r);this.value=`rgba(${a}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const a=Y6(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:a,g:s,b:l}=m_(t,n,r);this.value=`rgb(${a}, ${s}, ${l})`;break}default:this.value=U6(m_(t,n,r))}}}const JPe=Se({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=lt("color-predefine"),{currentColor:n}=Tt(OZ),r=ee(i(e.colors,e.color));at(()=>n.value,a=>{const s=new G_;s.fromString(a),r.value.forEach(l=>{l.selected=s.compare(l)})}),Ia(()=>{r.value=i(e.colors,e.color)});function o(a){e.color.fromString(e.colors[a])}function i(a,s){return a.map(l=>{const u=new G_;return u.enableAlpha=e.enableAlpha,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:o,ns:t}}});function e$e(e,t,n,r,o,i){return Z(),ce("div",{class:J(e.ns.b())},[ve("div",{class:J(e.ns.e("colors"))},[(Z(!0),ce(Pt,null,_n(e.rgbaColors,(a,s)=>(Z(),ce("div",{key:e.colors[s],class:J([e.ns.e("color-selector"),e.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:l=>e.handleSelect(s)},[ve("div",{style:Vt({backgroundColor:a.value})},null,4)],10,["onClick"]))),128))],2)],2)}var t$e=vt(JPe,[["render",e$e],["__file","predefine.vue"]]);const n$e=Se({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=lt("color-svpanel"),n=Cn(),r=ee(0),o=ee(0),i=ee("hsl(0, 100%, 50%)"),a=W(()=>{const u=e.color.get("hue"),d=e.color.get("value");return{hue:u,value:d}});function s(){const u=e.color.get("saturation"),d=e.color.get("value"),p=n.vnode.el,{clientWidth:v,clientHeight:y}=p;o.value=u*v/100,r.value=(100-d)*y/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const p=n.vnode.el.getBoundingClientRect(),{clientX:v,clientY:y}=IN(u);let w=v-p.left,b=y-p.top;w=Math.max(0,w),w=Math.min(w,p.width),b=Math.max(0,b),b=Math.min(b,p.height),o.value=w,r.value=b,e.color.set({saturation:w/p.width*100,value:100-b/p.height*100})}return at(()=>a.value,()=>{s()}),vn(()=>{MO(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:o,background:i,colorValue:a,handleDrag:l,update:s,ns:t}}});function r$e(e,t,n,r,o,i){return Z(),ce("div",{class:J(e.ns.b()),style:Vt({backgroundColor:e.background})},[ve("div",{class:J(e.ns.e("white"))},null,2),ve("div",{class:J(e.ns.e("black"))},null,2),ve("div",{class:J(e.ns.e("cursor")),style:Vt({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[ve("div")],6)],6)}var o$e=vt(n$e,[["render",r$e],["__file","sv-panel.vue"]]);const i$e=Se({name:"ElColorPicker"}),a$e=Se({...i$e,props:HPe,emits:XPe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=rr(),i=lt("color"),{formItem:a}=as(),s=bi(),l=Rs(),{inputId:u,isLabeledByFormItem:d}=bc(r,{formItemContext:a}),p=ee(),v=ee(),y=ee(),w=ee(),b=ee(),k=ee(),{isFocused:C,handleFocus:T,handleBlur:$}=C1(b,{beforeFocus(){return l.value},beforeBlur(me){var Re;return(Re=w.value)==null?void 0:Re.isFocusInsideContent(me)},afterBlur(){K(!1),V()}});let P=!0;const A=nr(new G_({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),R=ee(!1),B=ee(!1),N=ee(""),I=W(()=>!r.modelValue&&!B.value?"transparent":ae(A,r.showAlpha)),D=W(()=>!r.modelValue&&!B.value?"":A.value),L=W(()=>d.value?void 0:r.ariaLabel||o("el.colorpicker.defaultLabel")),z=W(()=>d.value?a==null?void 0:a.labelId:void 0),q=W(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value),i.is("focused",C.value)]);function ae(me,Re){if(!(me instanceof G_))throw new TypeError("color should be instance of _color Class");const{r:we,g:fe,b:oe}=me.toRgb();return Re?`rgba(${we}, ${fe}, ${oe}, ${me.get("alpha")/100})`:`rgb(${we}, ${fe}, ${oe})`}function K(me){R.value=me}const H=Ts(K,100,{leading:!0});function ne(){l.value||K(!0)}function X(){H(!1),V()}function V(){zt(()=>{r.modelValue?A.fromString(r.modelValue):(A.value="",zt(()=>{B.value=!1}))})}function G(){l.value||H(!R.value)}function se(){A.fromString(N.value)}function he(){const me=A.value;n(En,me),n("change",me),r.validateEvent&&(a==null||a.validate("change").catch(Re=>void 0)),H(!1),zt(()=>{const Re=new G_({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});A.compare(Re)||V()})}function pe(){H(!1),n(En,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(a==null||a.validate("change").catch(me=>void 0)),V()}function Be(){!R.value||(X(),C.value&&$e())}function De(me){me.preventDefault(),me.stopPropagation(),K(!1),V()}function ze(me){switch(me.code){case Qt.enter:case Qt.space:me.preventDefault(),me.stopPropagation(),ne(),k.value.focus();break;case Qt.esc:De(me);break}}function $e(){b.value.focus()}function _e(){b.value.blur()}return vn(()=>{r.modelValue&&(N.value=D.value)}),at(()=>r.modelValue,me=>{me?me&&me!==A.value&&(P=!1,A.fromString(me)):B.value=!1}),at(()=>D.value,me=>{N.value=me,P&&n("activeChange",me),P=!0}),at(()=>A.value,()=>{!r.modelValue&&!B.value&&(B.value=!0)}),at(()=>R.value,()=>{zt(()=>{var me,Re,we;(me=p.value)==null||me.update(),(Re=v.value)==null||Re.update(),(we=y.value)==null||we.update()})}),Wn(OZ,{currentColor:D}),t({color:A,show:ne,hide:X,focus:$e,blur:_e}),(me,Re)=>(Z(),Fe(m(Fi),{ref_key:"popper",ref:w,visible:R.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[m(i).be("picker","panel"),m(i).b("dropdown"),me.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:me.teleported,transition:`${m(i).namespace.value}-zoom-in-top`,persistent:"",onHide:we=>K(!1)},{content:ue(()=>[yn((Z(),ce("div",{onKeydown:Vr(De,["esc"])},[ve("div",{class:J(m(i).be("dropdown","main-wrapper"))},[re(UPe,{ref_key:"hue",ref:p,class:"hue-slider",color:m(A),vertical:""},null,8,["color"]),re(o$e,{ref_key:"sv",ref:v,color:m(A)},null,8,["color"])],2),me.showAlpha?(Z(),Fe(WPe,{key:0,ref_key:"alpha",ref:y,color:m(A)},null,8,["color"])):je("v-if",!0),me.predefine?(Z(),Fe(t$e,{key:1,ref:"predefine","enable-alpha":me.showAlpha,color:m(A),colors:me.predefine},null,8,["enable-alpha","color","colors"])):je("v-if",!0),ve("div",{class:J(m(i).be("dropdown","btns"))},[ve("span",{class:J(m(i).be("dropdown","value"))},[re(m(ei),{ref_key:"inputRef",ref:k,modelValue:N.value,"onUpdate:modelValue":we=>N.value=we,"validate-event":!1,size:"small",onKeyup:Vr(se,["enter"]),onBlur:se},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),re(m(no),{class:J(m(i).be("dropdown","link-btn")),text:"",size:"small",onClick:pe},{default:ue(()=>[St(ut(m(o)("el.colorpicker.clear")),1)]),_:1},8,["class"]),re(m(no),{plain:"",size:"small",class:J(m(i).be("dropdown","btn")),onClick:he},{default:ue(()=>[St(ut(m(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[m(hd),Be]])]),default:ue(()=>[ve("div",In({id:m(u),ref_key:"triggerRef",ref:b},me.$attrs,{class:m(q),role:"button","aria-label":m(L),"aria-labelledby":m(z),"aria-description":m(o)("el.colorpicker.description",{color:me.modelValue||""}),"aria-disabled":m(l),tabindex:m(l)?-1:me.tabindex,onKeydown:ze,onFocus:m(T),onBlur:m($)}),[m(l)?(Z(),ce("div",{key:0,class:J(m(i).be("picker","mask"))},null,2)):je("v-if",!0),ve("div",{class:J(m(i).be("picker","trigger")),onClick:G},[ve("span",{class:J([m(i).be("picker","color"),m(i).is("alpha",me.showAlpha)])},[ve("span",{class:J(m(i).be("picker","color-inner")),style:Vt({backgroundColor:m(I)})},[yn(re(m(jt),{class:J([m(i).be("picker","icon"),m(i).is("icon-arrow-down")])},{default:ue(()=>[re(m(Cd))]),_:1},8,["class"]),[[hr,me.modelValue||B.value]]),yn(re(m(jt),{class:J([m(i).be("picker","empty"),m(i).is("icon-close")])},{default:ue(()=>[re(m(el))]),_:1},8,["class"]),[[hr,!me.modelValue&&!B.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}});var s$e=vt(a$e,[["__file","color-picker.vue"]]);const l$e=pn(s$e),u$e=Se({name:"ElContainer"}),c$e=Se({...u$e,props:{direction:{type:String}},setup(e){const t=e,n=zi(),r=lt("container"),o=W(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(a=>{const s=a.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,a)=>(Z(),ce("section",{class:J([m(r).b(),m(r).is("vertical",m(o))])},[He(i.$slots,"default")],2))}});var f$e=vt(c$e,[["__file","container.vue"]]);const d$e=Se({name:"ElAside"}),h$e=Se({...d$e,props:{width:{type:String,default:null}},setup(e){const t=e,n=lt("aside"),r=W(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,i)=>(Z(),ce("aside",{class:J(m(n).b()),style:Vt(m(r))},[He(o.$slots,"default")],6))}});var wZ=vt(h$e,[["__file","aside.vue"]]);const p$e=Se({name:"ElFooter"}),g$e=Se({...p$e,props:{height:{type:String,default:null}},setup(e){const t=e,n=lt("footer"),r=W(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,i)=>(Z(),ce("footer",{class:J(m(n).b()),style:Vt(m(r))},[He(o.$slots,"default")],6))}});var SZ=vt(g$e,[["__file","footer.vue"]]);const v$e=Se({name:"ElHeader"}),m$e=Se({...v$e,props:{height:{type:String,default:null}},setup(e){const t=e,n=lt("header"),r=W(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,i)=>(Z(),ce("header",{class:J(m(n).b()),style:Vt(m(r))},[He(o.$slots,"default")],6))}});var xZ=vt(m$e,[["__file","header.vue"]]);const y$e=Se({name:"ElMain"}),b$e=Se({...y$e,setup(e){const t=lt("main");return(n,r)=>(Z(),ce("main",{class:J(m(t).b())},[He(n.$slots,"default")],2))}});var kZ=vt(b$e,[["__file","main.vue"]]);const _$e=pn(f$e,{Aside:wZ,Footer:SZ,Header:xZ,Main:kZ}),O$e=So(wZ),w$e=So(SZ),S$e=So(xZ),x$e=So(kZ);var CZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),p==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return p}});return i.bind(this)(d)}}})})(CZ);var k$e=CZ.exports,EZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){var n="week",r="year";return function(o,i,a){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(r).add(1,r).date(u),p=a(this).endOf(n);if(d.isBefore(p))return 1}var v=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),y=this.diff(v,n,!0);return y<0?a(this).startOf("week").week():Math.ceil(y)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(EZ);var C$e=EZ.exports,TZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}})})(TZ);var E$e=TZ.exports,PZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r,o){r.prototype.dayOfYear=function(i){var a=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}})})(PZ);var T$e=PZ.exports,$Z={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}})})($Z);var P$e=$Z.exports,AZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}})})(AZ);var $$e=AZ.exports;const jC=Symbol(),A$e=pt({...y3,type:{type:Ie(String),default:"date"}}),M$e=["date","dates","year","years","month","months","week","range"],w3=pt({disabledDate:{type:Ie(Function)},date:{type:Ie(Object),required:!0},minDate:{type:Ie(Object)},maxDate:{type:Ie(Object)},parsedValue:{type:Ie([Object,Array])},rangeState:{type:Ie(Object),default:()=>({endDate:null,selecting:!1})}}),MZ=pt({type:{type:Ie(String),required:!0,values:uwe},dateFormat:String,timeFormat:String}),S3=pt({unlinkPanels:Boolean,parsedValue:{type:Ie(Array)}}),x3=e=>({type:String,values:M$e,default:e}),R$e=pt({...MZ,parsedValue:{type:Ie([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),N$e=pt({...w3,cellClassName:{type:Ie(Function)},showWeekNumber:Boolean,selectionMode:x3("date")}),I$e=["changerange","pick","select"],Qy=e=>{if(!xt(e))return!1;const[t,n]=e;return un.isDayjs(t)&&un.isDayjs(n)&&t.isSameOrBefore(n)},k3=(e,{lang:t,unit:n,unlinkPanels:r})=>{let o;if(xt(e)){let[i,a]=e.map(s=>un(s).locale(t));return r||(a=i.add(1,n)),[i,a]}else e?o=un(e):o=un();return o=o.locale(t),[o,o.add(1,n)]},D$e=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:o,now:i,unit:a,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let d=0;d<e.row;d++){const p=t[d];for(let v=0;v<e.column;v++){let y=p[v+n];y||(y={row:d,column:v,type:"normal",inRange:!1,start:!1,end:!1});const w=d*e.column+v,b=s(w);y.dayjs=b,y.date=b.toDate(),y.timestamp=b.valueOf(),y.type="normal",y.inRange=!!(r&&b.isSameOrAfter(r,a)&&o&&b.isSameOrBefore(o,a))||!!(r&&b.isSameOrBefore(r,a)&&o&&b.isSameOrAfter(o,a)),r!=null&&r.isSameOrAfter(o)?(y.start=!!o&&b.isSame(o,a),y.end=r&&b.isSame(r,a)):(y.start=!!r&&b.isSame(r,a),y.end=!!o&&b.isSame(o,a)),b.isSame(i,a)&&(y.type="today"),l==null||l(y,{rowIndex:d,columnIndex:v}),p[v+n]=y}u==null||u(p)}},AM=(e="")=>["normal","today"].includes(e),j$e=(e,t)=>{const{lang:n}=rr(),r=ee(),o=ee(),i=ee(),a=ee(),s=ee([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(V=>V.toLowerCase()),p=W(()=>u>3?7-u:-u),v=W(()=>{const V=e.date.startOf("month");return V.subtract(V.day()||7,"day")}),y=W(()=>d.concat(d).slice(u,u+7)),w=W(()=>YN(m(P)).some(V=>V.isCurrent)),b=W(()=>{const V=e.date.startOf("month"),G=V.day()||7,se=V.daysInMonth(),he=V.subtract(1,"month").daysInMonth();return{startOfMonthDay:G,dateCountOfMonth:se,dateCountOfLastMonth:he}}),k=W(()=>e.selectionMode==="dates"?Os(e.parsedValue):[]),C=(V,{count:G,rowIndex:se,columnIndex:he})=>{const{startOfMonthDay:pe,dateCountOfMonth:Be,dateCountOfLastMonth:De}=m(b),ze=m(p);if(se>=0&&se<=1){const $e=pe+ze<0?7+pe+ze:pe+ze;if(he+se*7>=$e)return V.text=G,!0;V.text=De-($e-he%7)+1+se*7,V.type="prev-month"}else return G<=Be?V.text=G:(V.text=G-Be,V.type="next-month"),!0;return!1},T=(V,{columnIndex:G,rowIndex:se},he)=>{const{disabledDate:pe,cellClassName:Be}=e,De=m(k),ze=C(V,{count:he,rowIndex:se,columnIndex:G}),$e=V.dayjs.toDate();return V.selected=De.find(_e=>_e.isSame(V.dayjs,"day")),V.isSelected=!!V.selected,V.isCurrent=R(V),V.disabled=pe==null?void 0:pe($e),V.customClass=Be==null?void 0:Be($e),ze},$=V=>{if(e.selectionMode==="week"){const[G,se]=e.showWeekNumber?[1,7]:[0,6],he=X(V[G+1]);V[G].inRange=he,V[G].start=he,V[se].inRange=he,V[se].end=he}},P=W(()=>{const{minDate:V,maxDate:G,rangeState:se,showWeekNumber:he}=e,pe=m(p),Be=m(s),De="day";let ze=1;if(he)for(let $e=0;$e<6;$e++)Be[$e][0]||(Be[$e][0]={type:"week",text:m(v).add($e*7+1,De).week()});return D$e({row:6,column:7},Be,{startDate:V,columnIndexOffset:he?1:0,nextEndDate:se.endDate||G||se.selecting&&V||null,now:un().locale(m(n)).startOf(De),unit:De,relativeDateGetter:$e=>m(v).add($e-pe,De),setCellMetadata:(...$e)=>{T(...$e,ze)&&(ze+=1)},setRowMetadata:$}),Be});at(()=>e.date,async()=>{var V;(V=m(r))!=null&&V.contains(document.activeElement)&&(await zt(),await A())});const A=async()=>{var V;return(V=m(o))==null?void 0:V.focus()},R=V=>e.selectionMode==="date"&&AM(V.type)&&B(V,e.parsedValue),B=(V,G)=>G?un(G).locale(m(n)).isSame(e.date.date(Number(V.text)),"day"):!1,N=(V,G)=>{const se=V*7+(G-(e.showWeekNumber?1:0))-m(p);return m(v).add(se,"day")},I=V=>{var G;if(!e.rangeState.selecting)return;let se=V.target;if(se.tagName==="SPAN"&&(se=(G=se.parentNode)==null?void 0:G.parentNode),se.tagName==="DIV"&&(se=se.parentNode),se.tagName!=="TD")return;const he=se.parentNode.rowIndex-1,pe=se.cellIndex;m(P)[he][pe].disabled||(he!==m(i)||pe!==m(a))&&(i.value=he,a.value=pe,t("changerange",{selecting:!0,endDate:N(he,pe)}))},D=V=>!m(w)&&(V==null?void 0:V.text)===1&&V.type==="normal"||V.isCurrent,L=V=>{l||m(w)||e.selectionMode!=="date"||ne(V,!0)},z=V=>{!V.target.closest("td")||(l=!0)},q=V=>{!V.target.closest("td")||(l=!1)},ae=V=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:V,maxDate:null}),t("select",!0)):(V>=e.minDate?t("pick",{minDate:e.minDate,maxDate:V}):t("pick",{minDate:V,maxDate:e.minDate}),t("select",!1))},K=V=>{const G=V.week(),se=`${V.year()}w${G}`;t("pick",{year:V.year(),week:G,value:se,date:V.startOf("week")})},H=(V,G)=>{const se=G?Os(e.parsedValue).filter(he=>(he==null?void 0:he.valueOf())!==V.valueOf()):Os(e.parsedValue).concat([V]);t("pick",se)},ne=(V,G=!1)=>{const se=V.target.closest("td");if(!se)return;const he=se.parentNode.rowIndex-1,pe=se.cellIndex,Be=m(P)[he][pe];if(Be.disabled||Be.type==="week")return;const De=N(he,pe);switch(e.selectionMode){case"range":{ae(De);break}case"date":{t("pick",De,G);break}case"week":{K(De);break}case"dates":{H(De,!!Be.selected);break}}},X=V=>{if(e.selectionMode!=="week")return!1;let G=e.date.startOf("day");if(V.type==="prev-month"&&(G=G.subtract(1,"month")),V.type==="next-month"&&(G=G.add(1,"month")),G=G.date(Number.parseInt(V.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const se=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(se,"day").isSame(G,"day")}return!1};return{WEEKS:y,rows:P,tbodyRef:r,currentCellRef:o,focus:A,isCurrent:R,isWeekActive:X,isSelectedCell:D,handlePickDate:ne,handleMouseUp:q,handleMouseDown:z,handleMouseMove:I,handleFocus:L}},L$e=(e,{isCurrent:t,isWeekActive:n})=>{const r=lt("date-table"),{t:o}=rr(),i=W(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),a=W(()=>o("el.datepicker.dateTablePrompt")),s=W(()=>o("el.datepicker.week"));return{tableKls:i,tableLabel:a,weekLabel:s,getCellClasses:d=>{const p=[];return AM(d.type)&&!d.disabled?(p.push("available"),d.type==="today"&&p.push("today")):p.push(d.type),t(d)&&p.push("current"),d.inRange&&(AM(d.type)||e.selectionMode==="week")&&(p.push("in-range"),d.start&&p.push("start-date"),d.end&&p.push("end-date")),d.disabled&&p.push("disabled"),d.selected&&p.push("selected"),d.customClass&&p.push(d.customClass),p.join(" ")},getRowKls:d=>[r.e("row"),{current:n(d)}],t:o}},B$e=pt({cell:{type:Ie(Object)}});var C3=Se({name:"ElDatePickerCell",props:B$e,setup(e){const t=lt("date-table-cell"),{slots:n}=Tt(jC);return()=>{const{cell:r}=e;return He(n,"default",{...r},()=>{var o;return[re("div",{class:t.b()},[re("span",{class:t.e("text")},[(o=r==null?void 0:r.renderText)!=null?o:r==null?void 0:r.text])])]})}}});const V$e=Se({__name:"basic-date-table",props:N$e,emits:I$e,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:o,rows:i,tbodyRef:a,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:d,isSelectedCell:p,handlePickDate:v,handleMouseUp:y,handleMouseDown:w,handleMouseMove:b,handleFocus:k}=j$e(r,n),{tableLabel:C,tableKls:T,weekLabel:$,getCellClasses:P,getRowKls:A,t:R}=L$e(r,{isCurrent:u,isWeekActive:d});return t({focus:l}),(B,N)=>(Z(),ce("table",{"aria-label":m(C),class:J(m(T)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:m(v),onMousemove:m(b),onMousedown:tn(m(w),["prevent"]),onMouseup:m(y)},[ve("tbody",{ref_key:"tbodyRef",ref:a},[ve("tr",null,[B.showWeekNumber?(Z(),ce("th",{key:0,scope:"col"},ut(m($)),1)):je("v-if",!0),(Z(!0),ce(Pt,null,_n(m(o),(I,D)=>(Z(),ce("th",{key:D,"aria-label":m(R)("el.datepicker.weeksFull."+I),scope:"col"},ut(m(R)("el.datepicker.weeks."+I)),9,["aria-label"]))),128))]),(Z(!0),ce(Pt,null,_n(m(i),(I,D)=>(Z(),ce("tr",{key:D,class:J(m(A)(I[1]))},[(Z(!0),ce(Pt,null,_n(I,(L,z)=>(Z(),ce("td",{key:`${D}.${z}`,ref_for:!0,ref:q=>m(p)(L)&&(s.value=q),class:J(m(P)(L)),"aria-current":L.isCurrent?"date":void 0,"aria-selected":L.isCurrent,tabindex:m(p)(L)?0:-1,onFocus:m(k)},[re(m(C3),{cell:L},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var MM=vt(V$e,[["__file","basic-date-table.vue"]]);const F$e=pt({...w3,selectionMode:x3("month")}),z$e=Se({__name:"basic-month-table",props:F$e,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=(P,A,R)=>{const B=un().locale(R).startOf("month").month(A).year(P),N=B.daysInMonth();return Vh(N).map(I=>B.add(I,"day").toDate())},i=lt("month-table"),{t:a,lang:s}=rr(),l=ee(),u=ee(),d=ee(r.date.locale("en").localeData().monthsShort().map(P=>P.toLowerCase())),p=ee([[],[],[]]),v=ee(),y=ee(),w=W(()=>{var P,A;const R=p.value,B=un().locale(s.value).startOf("month");for(let N=0;N<3;N++){const I=R[N];for(let D=0;D<4;D++){const L=I[D]||(I[D]={row:N,column:D,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});L.type="normal";const z=N*4+D,q=r.date.startOf("year").month(z),ae=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;L.inRange=!!(r.minDate&&q.isSameOrAfter(r.minDate,"month")&&ae&&q.isSameOrBefore(ae,"month"))||!!(r.minDate&&q.isSameOrBefore(r.minDate,"month")&&ae&&q.isSameOrAfter(ae,"month")),(P=r.minDate)!=null&&P.isSameOrAfter(ae)?(L.start=!!(ae&&q.isSame(ae,"month")),L.end=r.minDate&&q.isSame(r.minDate,"month")):(L.start=!!(r.minDate&&q.isSame(r.minDate,"month")),L.end=!!(ae&&q.isSame(ae,"month"))),B.isSame(q)&&(L.type="today"),L.text=z,L.disabled=((A=r.disabledDate)==null?void 0:A.call(r,q.toDate()))||!1}}return R}),b=()=>{var P;(P=u.value)==null||P.focus()},k=P=>{const A={},R=r.date.year(),B=new Date,N=P.text;return A.disabled=r.disabledDate?o(R,N,s.value).every(r.disabledDate):!1,A.current=Os(r.parsedValue).findIndex(I=>un.isDayjs(I)&&I.year()===R&&I.month()===N)>=0,A.today=B.getFullYear()===R&&B.getMonth()===N,P.inRange&&(A["in-range"]=!0,P.start&&(A["start-date"]=!0),P.end&&(A["end-date"]=!0)),A},C=P=>{const A=r.date.year(),R=P.text;return Os(r.date).findIndex(B=>B.year()===A&&B.month()===R)>=0},T=P=>{var A;if(!r.rangeState.selecting)return;let R=P.target;if(R.tagName==="SPAN"&&(R=(A=R.parentNode)==null?void 0:A.parentNode),R.tagName==="DIV"&&(R=R.parentNode),R.tagName!=="TD")return;const B=R.parentNode.rowIndex,N=R.cellIndex;w.value[B][N].disabled||(B!==v.value||N!==y.value)&&(v.value=B,y.value=N,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(B*4+N)}))},$=P=>{var A;const R=(A=P.target)==null?void 0:A.closest("td");if((R==null?void 0:R.tagName)!=="TD"||Us(R,"disabled"))return;const B=R.cellIndex,I=R.parentNode.rowIndex*4+B,D=r.date.startOf("year").month(I);if(r.selectionMode==="months"){if(P.type==="keydown"){n("pick",Os(r.parsedValue),!1);return}const L=r.date.startOf("month").month(I),z=Us(R,"current")?Os(r.parsedValue).filter(q=>Number(q)!==Number(L)):Os(r.parsedValue).concat([un(L)]);n("pick",z)}else r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&D>=r.minDate?n("pick",{minDate:r.minDate,maxDate:D}):n("pick",{minDate:D,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:D,maxDate:null}),n("select",!0)):n("pick",I)};return at(()=>r.date,async()=>{var P,A;(P=l.value)!=null&&P.contains(document.activeElement)&&(await zt(),(A=u.value)==null||A.focus())}),t({focus:b}),(P,A)=>(Z(),ce("table",{role:"grid","aria-label":m(a)("el.datepicker.monthTablePrompt"),class:J(m(i).b()),onClick:$,onMousemove:T},[ve("tbody",{ref_key:"tbodyRef",ref:l},[(Z(!0),ce(Pt,null,_n(m(w),(R,B)=>(Z(),ce("tr",{key:B},[(Z(!0),ce(Pt,null,_n(R,(N,I)=>(Z(),ce("td",{key:I,ref_for:!0,ref:D=>C(N)&&(u.value=D),class:J(k(N)),"aria-selected":`${C(N)}`,"aria-label":m(a)(`el.datepicker.month${+N.text+1}`),tabindex:C(N)?0:-1,onKeydown:[Vr(tn($,["prevent","stop"]),["space"]),Vr(tn($,["prevent","stop"]),["enter"])]},[re(m(C3),{cell:{...N,renderText:m(a)("el.datepicker.months."+d.value[N.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var RM=vt(z$e,[["__file","basic-month-table.vue"]]);const Q$e=pt({...w3,selectionMode:x3("year")}),W$e=Se({__name:"basic-year-table",props:Q$e,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=(P,A)=>{const R=un(String(P)).locale(A).startOf("year"),N=R.endOf("year").dayOfYear();return Vh(N).map(I=>R.add(I,"day").toDate())},i=lt("year-table"),{t:a,lang:s}=rr(),l=ee(),u=ee(),d=W(()=>Math.floor(r.date.year()/10)*10),p=ee([[],[],[]]),v=ee(),y=ee(),w=W(()=>{var P;const A=p.value,R=un().locale(s.value).startOf("year");for(let B=0;B<3;B++){const N=A[B];for(let I=0;I<4&&!(B*4+I>=10);I++){let D=N[I];D||(D={row:B,column:I,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1}),D.type="normal";const L=B*4+I+d.value,z=un().year(L),q=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;D.inRange=!!(r.minDate&&z.isSameOrAfter(r.minDate,"year")&&q&&z.isSameOrBefore(q,"year"))||!!(r.minDate&&z.isSameOrBefore(r.minDate,"year")&&q&&z.isSameOrAfter(q,"year")),(P=r.minDate)!=null&&P.isSameOrAfter(q)?(D.start=!!(q&&z.isSame(q,"year")),D.end=!!(r.minDate&&z.isSame(r.minDate,"year"))):(D.start=!!(r.minDate&&z.isSame(r.minDate,"year")),D.end=!!(q&&z.isSame(q,"year"))),R.isSame(z)&&(D.type="today"),D.text=L;const K=z.toDate();D.disabled=r.disabledDate&&r.disabledDate(K)||!1,N[I]=D}}return A}),b=()=>{var P;(P=u.value)==null||P.focus()},k=P=>{const A={},R=un().locale(s.value),B=P.text;return A.disabled=r.disabledDate?o(B,s.value).every(r.disabledDate):!1,A.today=R.year()===B,A.current=Os(r.parsedValue).findIndex(N=>N.year()===B)>=0,P.inRange&&(A["in-range"]=!0,P.start&&(A["start-date"]=!0),P.end&&(A["end-date"]=!0)),A},C=P=>{const A=P.text;return Os(r.date).findIndex(R=>R.year()===A)>=0},T=P=>{var A;const R=(A=P.target)==null?void 0:A.closest("td");if(!R||!R.textContent||Us(R,"disabled"))return;const B=R.cellIndex,I=R.parentNode.rowIndex*4+B+d.value,D=un().year(I);if(r.selectionMode==="range")r.rangeState.selecting?(r.minDate&&D>=r.minDate?n("pick",{minDate:r.minDate,maxDate:D}):n("pick",{minDate:D,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:D,maxDate:null}),n("select",!0));else if(r.selectionMode==="years"){if(P.type==="keydown"){n("pick",Os(r.parsedValue),!1);return}const L=Us(R,"current")?Os(r.parsedValue).filter(z=>(z==null?void 0:z.year())!==I):Os(r.parsedValue).concat([D]);n("pick",L)}else n("pick",I)},$=P=>{var A;if(!r.rangeState.selecting)return;const R=(A=P.target)==null?void 0:A.closest("td");if(!R)return;const B=R.parentNode.rowIndex,N=R.cellIndex;w.value[B][N].disabled||(B!==v.value||N!==y.value)&&(v.value=B,y.value=N,n("changerange",{selecting:!0,endDate:un().year(d.value).add(B*4+N,"year")}))};return at(()=>r.date,async()=>{var P,A;(P=l.value)!=null&&P.contains(document.activeElement)&&(await zt(),(A=u.value)==null||A.focus())}),t({focus:b}),(P,A)=>(Z(),ce("table",{role:"grid","aria-label":m(a)("el.datepicker.yearTablePrompt"),class:J(m(i).b()),onClick:T,onMousemove:$},[ve("tbody",{ref_key:"tbodyRef",ref:l},[(Z(!0),ce(Pt,null,_n(m(w),(R,B)=>(Z(),ce("tr",{key:B},[(Z(!0),ce(Pt,null,_n(R,(N,I)=>(Z(),ce("td",{key:`${B}_${I}`,ref_for:!0,ref:D=>C(N)&&(u.value=D),class:J(["available",k(N)]),"aria-selected":C(N),"aria-label":String(N.text),tabindex:C(N)?0:-1,onKeydown:[Vr(tn(T,["prevent","stop"]),["space"]),Vr(tn(T,["prevent","stop"]),["enter"])]},[re(m(C3),{cell:N},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var NM=vt(W$e,[["__file","basic-year-table.vue"]]);const Y$e=Se({__name:"panel-date-pick",props:R$e,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(ye,Le,xe)=>!0,o=lt("picker-panel"),i=lt("date-picker"),a=vv(),s=zi(),{t:l,lang:u}=rr(),d=Tt("EP_PICKER_BASE"),p=Tt(IC),{shortcuts:v,disabledDate:y,cellClassName:w,defaultTime:b}=d.props,k=xr(d.props,"defaultValue"),C=ee(),T=ee(un().locale(u.value)),$=ee(!1);let P=!1;const A=W(()=>un(b).locale(u.value)),R=W(()=>T.value.month()),B=W(()=>T.value.year()),N=ee([]),I=ee(null),D=ee(null),L=ye=>N.value.length>0?r(ye,N.value,n.format||"HH:mm:ss"):!0,z=ye=>b&&!We.value&&!$.value&&!P?A.value.year(ye.year()).month(ye.month()).date(ye.date()):$e.value?ye.millisecond(0):ye.startOf("day"),q=(ye,...Le)=>{if(!ye)t("pick",ye,...Le);else if(xt(ye)){const xe=ye.map(z);t("pick",xe,...Le)}else t("pick",z(ye),...Le);I.value=null,D.value=null,$.value=!1,P=!1},ae=async(ye,Le)=>{if(G.value==="date"){ye=ye;let xe=n.parsedValue?n.parsedValue.year(ye.year()).month(ye.month()).date(ye.date()):ye;L(xe)||(xe=N.value[0][0].year(ye.year()).month(ye.month()).date(ye.date())),T.value=xe,q(xe,$e.value||Le),n.type==="datetime"&&(await zt(),Et())}else G.value==="week"?q(ye.date):G.value==="dates"&&q(ye,!0)},K=ye=>{const Le=ye?"add":"subtract";T.value=T.value[Le](1,"month"),Ze("month")},H=ye=>{const Le=T.value,xe=ye?"add":"subtract";T.value=ne.value==="year"?Le[xe](10,"year"):Le[xe](1,"year"),Ze("year")},ne=ee("date"),X=W(()=>{const ye=l("el.datepicker.year");if(ne.value==="year"){const Le=Math.floor(B.value/10)*10;return ye?`${Le} ${ye} - ${Le+9} ${ye}`:`${Le} - ${Le+9}`}return`${B.value} ${ye}`}),V=ye=>{const Le=nn(ye.value)?ye.value():ye.value;if(Le){P=!0,q(un(Le).locale(u.value));return}ye.onClick&&ye.onClick({attrs:a,slots:s,emit:t})},G=W(()=>{const{type:ye}=n;return["week","month","months","year","years","dates"].includes(ye)?ye:"date"}),se=W(()=>G.value==="dates"||G.value==="months"||G.value==="years"),he=W(()=>G.value==="date"?ne.value:G.value),pe=W(()=>!!v.length),Be=async(ye,Le)=>{G.value==="month"?(T.value=T.value.startOf("month").month(ye),q(T.value,!1)):G.value==="months"?q(ye,Le!=null?Le:!0):(T.value=T.value.startOf("month").month(ye),ne.value="date",["month","year","date","week"].includes(G.value)&&(q(T.value,!0),await zt(),Et())),Ze("month")},De=async(ye,Le)=>{G.value==="year"?(T.value=T.value.startOf("year").year(ye),q(T.value,!1)):G.value==="years"?q(ye,Le!=null?Le:!0):(T.value=T.value.year(ye),ne.value="month",["month","year","date","week"].includes(G.value)&&(q(T.value,!0),await zt(),Et())),Ze("year")},ze=async ye=>{ne.value=ye,await zt(),Et()},$e=W(()=>n.type==="datetime"||n.type==="datetimerange"),_e=W(()=>{const ye=$e.value||G.value==="dates",Le=G.value==="years",xe=G.value==="months",Ue=ne.value==="date",rt=ne.value==="year",Ft=ne.value==="month";return ye&&Ue||Le&&rt||xe&&Ft}),me=W(()=>y?n.parsedValue?xt(n.parsedValue)?y(n.parsedValue[0].toDate()):y(n.parsedValue.toDate()):!0:!1),Re=()=>{if(se.value)q(n.parsedValue);else{let ye=n.parsedValue;if(!ye){const Le=un(b).locale(u.value),xe=Zt();ye=Le.year(xe.year()).month(xe.month()).date(xe.date())}T.value=ye,q(ye)}},we=W(()=>y?y(un().locale(u.value).toDate()):!1),fe=()=>{const Le=un().locale(u.value).toDate();$.value=!0,(!y||!y(Le))&&L(Le)&&(T.value=un().locale(u.value),q(T.value))},oe=W(()=>n.timeFormat||LY(n.format)),ke=W(()=>n.dateFormat||jY(n.format)),We=W(()=>{if(D.value)return D.value;if(!(!n.parsedValue&&!k.value))return(n.parsedValue||T.value).format(oe.value)}),et=W(()=>{if(I.value)return I.value;if(!(!n.parsedValue&&!k.value))return(n.parsedValue||T.value).format(ke.value)}),Ve=ee(!1),Me=()=>{Ve.value=!0},Ke=()=>{Ve.value=!1},be=ye=>({hour:ye.hour(),minute:ye.minute(),second:ye.second(),year:ye.year(),month:ye.month(),date:ye.date()}),qe=(ye,Le,xe)=>{const{hour:Ue,minute:rt,second:Ft}=be(ye),Vn=n.parsedValue?n.parsedValue.hour(Ue).minute(rt).second(Ft):ye;T.value=Vn,q(T.value,!0),xe||(Ve.value=Le)},ct=ye=>{const Le=un(ye,oe.value).locale(u.value);if(Le.isValid()&&L(Le)){const{year:xe,month:Ue,date:rt}=be(T.value);T.value=Le.year(xe).month(Ue).date(rt),D.value=null,Ve.value=!1,q(T.value,!0)}},Je=ye=>{const Le=un(ye,ke.value).locale(u.value);if(Le.isValid()){if(y&&y(Le.toDate()))return;const{hour:xe,minute:Ue,second:rt}=be(T.value);T.value=Le.hour(xe).minute(Ue).second(rt),I.value=null,q(T.value,!0)}},Xe=ye=>un.isDayjs(ye)&&ye.isValid()&&(y?!y(ye.toDate()):!0),gt=ye=>xt(ye)?ye.map(Le=>Le.format(n.format)):ye.format(n.format),Ct=ye=>un(ye,n.format).locale(u.value),Zt=()=>{const ye=un(k.value).locale(u.value);if(!k.value){const Le=A.value;return un().hour(Le.hour()).minute(Le.minute()).second(Le.second()).locale(u.value)}return ye},Et=async()=>{var ye;["week","month","year","date"].includes(G.value)&&((ye=C.value)==null||ye.focus(),G.value==="week"&&Ee(Qt.down))},ln=ye=>{const{code:Le}=ye;[Qt.up,Qt.down,Qt.left,Qt.right,Qt.home,Qt.end,Qt.pageUp,Qt.pageDown].includes(Le)&&(Ee(Le),ye.stopPropagation(),ye.preventDefault()),[Qt.enter,Qt.space,Qt.numpadEnter].includes(Le)&&I.value===null&&D.value===null&&(ye.preventDefault(),q(T.value,!1))},Ee=ye=>{var Le;const{up:xe,down:Ue,left:rt,right:Ft,home:Vn,end:ot,pageUp:Lt,pageDown:wn}=Qt,Nt={year:{[xe]:-4,[Ue]:4,[rt]:-1,[Ft]:1,offset:(Ht,Sn)=>Ht.setFullYear(Ht.getFullYear()+Sn)},month:{[xe]:-4,[Ue]:4,[rt]:-1,[Ft]:1,offset:(Ht,Sn)=>Ht.setMonth(Ht.getMonth()+Sn)},week:{[xe]:-1,[Ue]:1,[rt]:-1,[Ft]:1,offset:(Ht,Sn)=>Ht.setDate(Ht.getDate()+Sn*7)},date:{[xe]:-7,[Ue]:7,[rt]:-1,[Ft]:1,[Vn]:Ht=>-Ht.getDay(),[ot]:Ht=>-Ht.getDay()+6,[Lt]:Ht=>-new Date(Ht.getFullYear(),Ht.getMonth(),0).getDate(),[wn]:Ht=>new Date(Ht.getFullYear(),Ht.getMonth()+1,0).getDate(),offset:(Ht,Sn)=>Ht.setDate(Ht.getDate()+Sn)}},Xt=T.value.toDate();for(;Math.abs(T.value.diff(Xt,"year",!0))<1;){const Ht=Nt[he.value];if(!Ht)return;if(Ht.offset(Xt,nn(Ht[ye])?Ht[ye](Xt):(Le=Ht[ye])!=null?Le:0),y&&y(Xt))break;const Sn=un(Xt).locale(u.value);T.value=Sn,t("pick",Sn,!0);break}},Ze=ye=>{t("panel-change",T.value.toDate(),ye,ne.value)};return at(()=>G.value,ye=>{if(["month","year"].includes(ye)){ne.value=ye;return}else if(ye==="years"){ne.value="year";return}else if(ye==="months"){ne.value="month";return}ne.value="date"},{immediate:!0}),at(()=>ne.value,()=>{p==null||p.updatePopper()}),at(()=>k.value,ye=>{ye&&(T.value=Zt())},{immediate:!0}),at(()=>n.parsedValue,ye=>{if(ye){if(se.value||Array.isArray(ye))return;T.value=ye}else T.value=Zt()},{immediate:!0}),t("set-picker-option",["isValidValue",Xe]),t("set-picker-option",["formatToString",gt]),t("set-picker-option",["parseUserInput",Ct]),t("set-picker-option",["handleFocusPicker",Et]),(ye,Le)=>(Z(),ce("div",{class:J([m(o).b(),m(i).b(),{"has-sidebar":ye.$slots.sidebar||m(pe),"has-time":m($e)}])},[ve("div",{class:J(m(o).e("body-wrapper"))},[He(ye.$slots,"sidebar",{class:J(m(o).e("sidebar"))}),m(pe)?(Z(),ce("div",{key:0,class:J(m(o).e("sidebar"))},[(Z(!0),ce(Pt,null,_n(m(v),(xe,Ue)=>(Z(),ce("button",{key:Ue,type:"button",class:J(m(o).e("shortcut")),onClick:rt=>V(xe)},ut(xe.text),11,["onClick"]))),128))],2)):je("v-if",!0),ve("div",{class:J(m(o).e("body"))},[m($e)?(Z(),ce("div",{key:0,class:J(m(i).e("time-header"))},[ve("span",{class:J(m(i).e("editor-wrap"))},[re(m(ei),{placeholder:m(l)("el.datepicker.selectDate"),"model-value":m(et),size:"small","validate-event":!1,onInput:xe=>I.value=xe,onChange:Je},null,8,["placeholder","model-value","onInput"])],2),yn((Z(),ce("span",{class:J(m(i).e("editor-wrap"))},[re(m(ei),{placeholder:m(l)("el.datepicker.selectTime"),"model-value":m(We),size:"small","validate-event":!1,onFocus:Me,onInput:xe=>D.value=xe,onChange:ct},null,8,["placeholder","model-value","onInput"]),re(m(Zk),{visible:Ve.value,format:m(oe),"parsed-value":T.value,onPick:qe},null,8,["visible","format","parsed-value"])],2)),[[m(hd),Ke]])],2)):je("v-if",!0),yn(ve("div",{class:J([m(i).e("header"),(ne.value==="year"||ne.value==="month")&&m(i).e("header--bordered")])},[ve("span",{class:J(m(i).e("prev-btn"))},[ve("button",{type:"button","aria-label":m(l)("el.datepicker.prevYear"),class:J(["d-arrow-left",m(o).e("icon-btn")]),onClick:xe=>H(!1)},[He(ye.$slots,"prev-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Kh))]),_:1})])],10,["aria-label","onClick"]),yn(ve("button",{type:"button","aria-label":m(l)("el.datepicker.prevMonth"),class:J([m(o).e("icon-btn"),"arrow-left"]),onClick:xe=>K(!1)},[He(ye.$slots,"prev-month",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(qh))]),_:1})])],10,["aria-label","onClick"]),[[hr,ne.value==="date"]])],2),ve("span",{role:"button",class:J(m(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Vr(xe=>ze("year"),["enter"]),onClick:xe=>ze("year")},ut(m(X)),43,["onKeydown","onClick"]),yn(ve("span",{role:"button","aria-live":"polite",tabindex:"0",class:J([m(i).e("header-label"),{active:ne.value==="month"}]),onKeydown:Vr(xe=>ze("month"),["enter"]),onClick:xe=>ze("month")},ut(m(l)(`el.datepicker.month${m(R)+1}`)),43,["onKeydown","onClick"]),[[hr,ne.value==="date"]]),ve("span",{class:J(m(i).e("next-btn"))},[yn(ve("button",{type:"button","aria-label":m(l)("el.datepicker.nextMonth"),class:J([m(o).e("icon-btn"),"arrow-right"]),onClick:xe=>K(!0)},[He(ye.$slots,"next-month",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Ss))]),_:1})])],10,["aria-label","onClick"]),[[hr,ne.value==="date"]]),ve("button",{type:"button","aria-label":m(l)("el.datepicker.nextYear"),class:J([m(o).e("icon-btn"),"d-arrow-right"]),onClick:xe=>H(!0)},[He(ye.$slots,"next-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Jh))]),_:1})])],10,["aria-label","onClick"])],2)],2),[[hr,ne.value!=="time"]]),ve("div",{class:J(m(o).e("content")),onKeydown:ln},[ne.value==="date"?(Z(),Fe(MM,{key:0,ref_key:"currentViewRef",ref:C,"selection-mode":m(G),date:T.value,"parsed-value":ye.parsedValue,"disabled-date":m(y),"cell-class-name":m(w),onPick:ae},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):je("v-if",!0),ne.value==="year"?(Z(),Fe(NM,{key:1,ref_key:"currentViewRef",ref:C,"selection-mode":m(G),date:T.value,"disabled-date":m(y),"parsed-value":ye.parsedValue,onPick:De},null,8,["selection-mode","date","disabled-date","parsed-value"])):je("v-if",!0),ne.value==="month"?(Z(),Fe(RM,{key:2,ref_key:"currentViewRef",ref:C,"selection-mode":m(G),date:T.value,"parsed-value":ye.parsedValue,"disabled-date":m(y),onPick:Be},null,8,["selection-mode","date","parsed-value","disabled-date"])):je("v-if",!0)],34)],2)],2),yn(ve("div",{class:J(m(o).e("footer"))},[yn(re(m(no),{text:"",size:"small",class:J(m(o).e("link-btn")),disabled:m(we),onClick:fe},{default:ue(()=>[St(ut(m(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[hr,!m(se)]]),re(m(no),{plain:"",size:"small",class:J(m(o).e("link-btn")),disabled:m(me),onClick:Re},{default:ue(()=>[St(ut(m(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[hr,m(_e)]])],2))}});var Z$e=vt(Y$e,[["__file","panel-date-pick.vue"]]);const U$e=pt({...MZ,...S3,visible:Boolean}),RZ=e=>{const{emit:t}=Cn(),n=vv(),r=zi();return i=>{const a=nn(i.value)?i.value():i.value;if(a){t("pick",[un(a[0]).locale(e.value),un(a[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},NZ=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:o,onParsedValueChanged:i})=>{const{emit:a}=Cn(),{pickerNs:s}=Tt(jC),l=lt("date-range-picker"),{t:u,lang:d}=rr(),p=RZ(d),v=ee(),y=ee(),w=ee({endDate:null,selecting:!1}),b=P=>{w.value=P},k=(P=!1)=>{const A=m(v),R=m(y);Qy([A,R])&&a("pick",[A,R],P)},C=P=>{w.value.selecting=P,P||(w.value.endDate=null)},T=P=>{if(xt(P)&&P.length===2){const[A,R]=P;v.value=A,n.value=A,y.value=R,i(m(v),m(y))}else $()},$=()=>{const[P,A]=k3(m(t),{lang:m(d),unit:o,unlinkPanels:e.unlinkPanels});v.value=void 0,y.value=void 0,n.value=P,r.value=A};return at(t,P=>{P&&$()},{immediate:!0}),at(()=>e.parsedValue,T,{immediate:!0}),{minDate:v,maxDate:y,rangeState:w,lang:d,ppNs:s,drpNs:l,handleChangeRange:b,handleRangeConfirm:k,handleShortcutClick:p,onSelect:C,onReset:T,t:u}},yx="month",H$e=Se({__name:"panel-date-range",props:U$e,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=Tt("EP_PICKER_BASE"),{disabledDate:o,cellClassName:i,defaultTime:a,clearable:s}=r.props,l=xr(r.props,"format"),u=xr(r.props,"shortcuts"),d=xr(r.props,"defaultValue"),{lang:p}=rr(),v=ee(un().locale(p.value)),y=ee(un().locale(p.value).add(1,yx)),{minDate:w,maxDate:b,rangeState:k,ppNs:C,drpNs:T,handleChangeRange:$,handleRangeConfirm:P,handleShortcutClick:A,onSelect:R,onReset:B,t:N}=NZ(n,{defaultValue:d,leftDate:v,rightDate:y,unit:yx,onParsedValueChanged:Le});at(()=>n.visible,xe=>{!xe&&k.value.selecting&&(B(n.parsedValue),R(!1))});const I=ee({min:null,max:null}),D=ee({min:null,max:null}),L=W(()=>`${v.value.year()} ${N("el.datepicker.year")} ${N(`el.datepicker.month${v.value.month()+1}`)}`),z=W(()=>`${y.value.year()} ${N("el.datepicker.year")} ${N(`el.datepicker.month${y.value.month()+1}`)}`),q=W(()=>v.value.year()),ae=W(()=>v.value.month()),K=W(()=>y.value.year()),H=W(()=>y.value.month()),ne=W(()=>!!u.value.length),X=W(()=>I.value.min!==null?I.value.min:w.value?w.value.format(pe.value):""),V=W(()=>I.value.max!==null?I.value.max:b.value||w.value?(b.value||w.value).format(pe.value):""),G=W(()=>D.value.min!==null?D.value.min:w.value?w.value.format(he.value):""),se=W(()=>D.value.max!==null?D.value.max:b.value||w.value?(b.value||w.value).format(he.value):""),he=W(()=>n.timeFormat||LY(l.value)),pe=W(()=>n.dateFormat||jY(l.value)),Be=xe=>Qy(xe)&&(o?!o(xe[0].toDate())&&!o(xe[1].toDate()):!0),De=()=>{v.value=v.value.subtract(1,"year"),n.unlinkPanels||(y.value=v.value.add(1,"month")),oe("year")},ze=()=>{v.value=v.value.subtract(1,"month"),n.unlinkPanels||(y.value=v.value.add(1,"month")),oe("month")},$e=()=>{n.unlinkPanels?y.value=y.value.add(1,"year"):(v.value=v.value.add(1,"year"),y.value=v.value.add(1,"month")),oe("year")},_e=()=>{n.unlinkPanels?y.value=y.value.add(1,"month"):(v.value=v.value.add(1,"month"),y.value=v.value.add(1,"month")),oe("month")},me=()=>{v.value=v.value.add(1,"year"),oe("year")},Re=()=>{v.value=v.value.add(1,"month"),oe("month")},we=()=>{y.value=y.value.subtract(1,"year"),oe("year")},fe=()=>{y.value=y.value.subtract(1,"month"),oe("month")},oe=xe=>{t("panel-change",[v.value.toDate(),y.value.toDate()],xe)},ke=W(()=>{const xe=(ae.value+1)%12,Ue=ae.value+1>=12?1:0;return n.unlinkPanels&&new Date(q.value+Ue,xe)<new Date(K.value,H.value)}),We=W(()=>n.unlinkPanels&&K.value*12+H.value-(q.value*12+ae.value+1)>=12),et=W(()=>!(w.value&&b.value&&!k.value.selecting&&Qy([w.value,b.value]))),Ve=W(()=>n.type==="datetime"||n.type==="datetimerange"),Me=(xe,Ue)=>{if(!!xe)return a?un(a[Ue]||a).locale(p.value).year(xe.year()).month(xe.month()).date(xe.date()):xe},Ke=(xe,Ue=!0)=>{const rt=xe.minDate,Ft=xe.maxDate,Vn=Me(rt,0),ot=Me(Ft,1);b.value===ot&&w.value===Vn||(t("calendar-change",[rt.toDate(),Ft&&Ft.toDate()]),b.value=ot,w.value=Vn,!(!Ue||Ve.value)&&P())},be=ee(!1),qe=ee(!1),ct=()=>{be.value=!1},Je=()=>{qe.value=!1},Xe=(xe,Ue)=>{I.value[Ue]=xe;const rt=un(xe,pe.value).locale(p.value);if(rt.isValid()){if(o&&o(rt.toDate()))return;Ue==="min"?(v.value=rt,w.value=(w.value||v.value).year(rt.year()).month(rt.month()).date(rt.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(w.value))&&(y.value=rt.add(1,"month"),b.value=w.value.add(1,"month"))):(y.value=rt,b.value=(b.value||y.value).year(rt.year()).month(rt.month()).date(rt.date()),!n.unlinkPanels&&(!w.value||w.value.isAfter(b.value))&&(v.value=rt.subtract(1,"month"),w.value=b.value.subtract(1,"month")))}},gt=(xe,Ue)=>{I.value[Ue]=null},Ct=(xe,Ue)=>{D.value[Ue]=xe;const rt=un(xe,he.value).locale(p.value);rt.isValid()&&(Ue==="min"?(be.value=!0,w.value=(w.value||v.value).hour(rt.hour()).minute(rt.minute()).second(rt.second())):(qe.value=!0,b.value=(b.value||y.value).hour(rt.hour()).minute(rt.minute()).second(rt.second()),y.value=b.value))},Zt=(xe,Ue)=>{D.value[Ue]=null,Ue==="min"?(v.value=w.value,be.value=!1,(!b.value||b.value.isBefore(w.value))&&(b.value=w.value)):(y.value=b.value,qe.value=!1,b.value&&b.value.isBefore(w.value)&&(w.value=b.value))},Et=(xe,Ue,rt)=>{D.value.min||(xe&&(v.value=xe,w.value=(w.value||v.value).hour(xe.hour()).minute(xe.minute()).second(xe.second())),rt||(be.value=Ue),(!b.value||b.value.isBefore(w.value))&&(b.value=w.value,y.value=xe))},ln=(xe,Ue,rt)=>{D.value.max||(xe&&(y.value=xe,b.value=(b.value||y.value).hour(xe.hour()).minute(xe.minute()).second(xe.second())),rt||(qe.value=Ue),b.value&&b.value.isBefore(w.value)&&(w.value=b.value))},Ee=()=>{v.value=k3(m(d),{lang:m(p),unit:"month",unlinkPanels:n.unlinkPanels})[0],y.value=v.value.add(1,"month"),b.value=void 0,w.value=void 0,t("pick",null)},Ze=xe=>xt(xe)?xe.map(Ue=>Ue.format(l.value)):xe.format(l.value),ye=xe=>xt(xe)?xe.map(Ue=>un(Ue,l.value).locale(p.value)):un(xe,l.value).locale(p.value);function Le(xe,Ue){if(n.unlinkPanels&&Ue){const rt=(xe==null?void 0:xe.year())||0,Ft=(xe==null?void 0:xe.month())||0,Vn=Ue.year(),ot=Ue.month();y.value=rt===Vn&&Ft===ot?Ue.add(1,yx):Ue}else y.value=v.value.add(1,yx),Ue&&(y.value=y.value.hour(Ue.hour()).minute(Ue.minute()).second(Ue.second()))}return t("set-picker-option",["isValidValue",Be]),t("set-picker-option",["parseUserInput",ye]),t("set-picker-option",["formatToString",Ze]),t("set-picker-option",["handleClear",Ee]),(xe,Ue)=>(Z(),ce("div",{class:J([m(C).b(),m(T).b(),{"has-sidebar":xe.$slots.sidebar||m(ne),"has-time":m(Ve)}])},[ve("div",{class:J(m(C).e("body-wrapper"))},[He(xe.$slots,"sidebar",{class:J(m(C).e("sidebar"))}),m(ne)?(Z(),ce("div",{key:0,class:J(m(C).e("sidebar"))},[(Z(!0),ce(Pt,null,_n(m(u),(rt,Ft)=>(Z(),ce("button",{key:Ft,type:"button",class:J(m(C).e("shortcut")),onClick:Vn=>m(A)(rt)},ut(rt.text),11,["onClick"]))),128))],2)):je("v-if",!0),ve("div",{class:J(m(C).e("body"))},[m(Ve)?(Z(),ce("div",{key:0,class:J(m(T).e("time-header"))},[ve("span",{class:J(m(T).e("editors-wrap"))},[ve("span",{class:J(m(T).e("time-picker-wrap"))},[re(m(ei),{size:"small",disabled:m(k).selecting,placeholder:m(N)("el.datepicker.startDate"),class:J(m(T).e("editor")),"model-value":m(X),"validate-event":!1,onInput:rt=>Xe(rt,"min"),onChange:rt=>gt(rt,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),yn((Z(),ce("span",{class:J(m(T).e("time-picker-wrap"))},[re(m(ei),{size:"small",class:J(m(T).e("editor")),disabled:m(k).selecting,placeholder:m(N)("el.datepicker.startTime"),"model-value":m(G),"validate-event":!1,onFocus:rt=>be.value=!0,onInput:rt=>Ct(rt,"min"),onChange:rt=>Zt(rt,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),re(m(Zk),{visible:be.value,format:m(he),"datetime-role":"start","parsed-value":v.value,onPick:Et},null,8,["visible","format","parsed-value"])],2)),[[m(hd),ct]])],2),ve("span",null,[re(m(jt),null,{default:ue(()=>[re(m(Ss))]),_:1})]),ve("span",{class:J([m(T).e("editors-wrap"),"is-right"])},[ve("span",{class:J(m(T).e("time-picker-wrap"))},[re(m(ei),{size:"small",class:J(m(T).e("editor")),disabled:m(k).selecting,placeholder:m(N)("el.datepicker.endDate"),"model-value":m(V),readonly:!m(w),"validate-event":!1,onInput:rt=>Xe(rt,"max"),onChange:rt=>gt(rt,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),yn((Z(),ce("span",{class:J(m(T).e("time-picker-wrap"))},[re(m(ei),{size:"small",class:J(m(T).e("editor")),disabled:m(k).selecting,placeholder:m(N)("el.datepicker.endTime"),"model-value":m(se),readonly:!m(w),"validate-event":!1,onFocus:rt=>m(w)&&(qe.value=!0),onInput:rt=>Ct(rt,"max"),onChange:rt=>Zt(rt,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),re(m(Zk),{"datetime-role":"end",visible:qe.value,format:m(he),"parsed-value":y.value,onPick:ln},null,8,["visible","format","parsed-value"])],2)),[[m(hd),Je]])],2)],2)):je("v-if",!0),ve("div",{class:J([[m(C).e("content"),m(T).e("content")],"is-left"])},[ve("div",{class:J(m(T).e("header"))},[ve("button",{type:"button",class:J([m(C).e("icon-btn"),"d-arrow-left"]),"aria-label":m(N)("el.datepicker.prevYear"),onClick:De},[He(xe.$slots,"prev-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Kh))]),_:1})])],10,["aria-label"]),ve("button",{type:"button",class:J([m(C).e("icon-btn"),"arrow-left"]),"aria-label":m(N)("el.datepicker.prevMonth"),onClick:ze},[He(xe.$slots,"prev-month",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(qh))]),_:1})])],10,["aria-label"]),xe.unlinkPanels?(Z(),ce("button",{key:0,type:"button",disabled:!m(We),class:J([[m(C).e("icon-btn"),{"is-disabled":!m(We)}],"d-arrow-right"]),"aria-label":m(N)("el.datepicker.nextYear"),onClick:me},[He(xe.$slots,"next-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Jh))]),_:1})])],10,["disabled","aria-label"])):je("v-if",!0),xe.unlinkPanels?(Z(),ce("button",{key:1,type:"button",disabled:!m(ke),class:J([[m(C).e("icon-btn"),{"is-disabled":!m(ke)}],"arrow-right"]),"aria-label":m(N)("el.datepicker.nextMonth"),onClick:Re},[He(xe.$slots,"next-month",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Ss))]),_:1})])],10,["disabled","aria-label"])):je("v-if",!0),ve("div",null,ut(m(L)),1)],2),re(MM,{"selection-mode":"range",date:v.value,"min-date":m(w),"max-date":m(b),"range-state":m(k),"disabled-date":m(o),"cell-class-name":m(i),onChangerange:m($),onPick:Ke,onSelect:m(R)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),ve("div",{class:J([[m(C).e("content"),m(T).e("content")],"is-right"])},[ve("div",{class:J(m(T).e("header"))},[xe.unlinkPanels?(Z(),ce("button",{key:0,type:"button",disabled:!m(We),class:J([[m(C).e("icon-btn"),{"is-disabled":!m(We)}],"d-arrow-left"]),"aria-label":m(N)("el.datepicker.prevYear"),onClick:we},[He(xe.$slots,"prev-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Kh))]),_:1})])],10,["disabled","aria-label"])):je("v-if",!0),xe.unlinkPanels?(Z(),ce("button",{key:1,type:"button",disabled:!m(ke),class:J([[m(C).e("icon-btn"),{"is-disabled":!m(ke)}],"arrow-left"]),"aria-label":m(N)("el.datepicker.prevMonth"),onClick:fe},[He(xe.$slots,"prev-month",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(qh))]),_:1})])],10,["disabled","aria-label"])):je("v-if",!0),ve("button",{type:"button","aria-label":m(N)("el.datepicker.nextYear"),class:J([m(C).e("icon-btn"),"d-arrow-right"]),onClick:$e},[He(xe.$slots,"next-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Jh))]),_:1})])],10,["aria-label"]),ve("button",{type:"button",class:J([m(C).e("icon-btn"),"arrow-right"]),"aria-label":m(N)("el.datepicker.nextMonth"),onClick:_e},[He(xe.$slots,"next-month",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Ss))]),_:1})])],10,["aria-label"]),ve("div",null,ut(m(z)),1)],2),re(MM,{"selection-mode":"range",date:y.value,"min-date":m(w),"max-date":m(b),"range-state":m(k),"disabled-date":m(o),"cell-class-name":m(i),onChangerange:m($),onPick:Ke,onSelect:m(R)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),m(Ve)?(Z(),ce("div",{key:0,class:J(m(C).e("footer"))},[m(s)?(Z(),Fe(m(no),{key:0,text:"",size:"small",class:J(m(C).e("link-btn")),onClick:Ee},{default:ue(()=>[St(ut(m(N)("el.datepicker.clear")),1)]),_:1},8,["class"])):je("v-if",!0),re(m(no),{plain:"",size:"small",class:J(m(C).e("link-btn")),disabled:m(et),onClick:rt=>m(P)(!1)},{default:ue(()=>[St(ut(m(N)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])],2)):je("v-if",!0)],2))}});var X$e=vt(H$e,[["__file","panel-date-range.vue"]]);const G$e=pt({...S3}),q$e=["pick","set-picker-option","calendar-change"],K$e=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=rr(),o=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},a=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=W(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=W(()=>`${n.value.year()} ${r("el.datepicker.year")}`),d=W(()=>t.value.year()),p=W(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:o,rightNextYear:i,leftNextYear:a,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:d,rightYear:p}},bx="year",J$e=Se({name:"DatePickerMonthRange"}),eAe=Se({...J$e,props:G$e,emits:q$e,setup(e,{emit:t}){const n=e,{lang:r}=rr(),o=Tt("EP_PICKER_BASE"),{shortcuts:i,disabledDate:a}=o.props,s=xr(o.props,"format"),l=xr(o.props,"defaultValue"),u=ee(un().locale(r.value)),d=ee(un().locale(r.value).add(1,bx)),{minDate:p,maxDate:v,rangeState:y,ppNs:w,drpNs:b,handleChangeRange:k,handleRangeConfirm:C,handleShortcutClick:T,onSelect:$}=NZ(n,{defaultValue:l,leftDate:u,rightDate:d,unit:bx,onParsedValueChanged:X}),P=W(()=>!!i.length),{leftPrevYear:A,rightNextYear:R,leftNextYear:B,rightPrevYear:N,leftLabel:I,rightLabel:D,leftYear:L,rightYear:z}=K$e({unlinkPanels:xr(n,"unlinkPanels"),leftDate:u,rightDate:d}),q=W(()=>n.unlinkPanels&&z.value>L.value+1),ae=(V,G=!0)=>{const se=V.minDate,he=V.maxDate;v.value===he&&p.value===se||(t("calendar-change",[se.toDate(),he&&he.toDate()]),v.value=he,p.value=se,G&&C())},K=()=>{u.value=k3(m(l),{lang:m(r),unit:"year",unlinkPanels:n.unlinkPanels})[0],d.value=u.value.add(1,"year"),t("pick",null)},H=V=>xt(V)?V.map(G=>G.format(s.value)):V.format(s.value),ne=V=>xt(V)?V.map(G=>un(G,s.value).locale(r.value)):un(V,s.value).locale(r.value);function X(V,G){if(n.unlinkPanels&&G){const se=(V==null?void 0:V.year())||0,he=G.year();d.value=se===he?G.add(1,bx):G}else d.value=u.value.add(1,bx)}return t("set-picker-option",["isValidValue",Qy]),t("set-picker-option",["formatToString",H]),t("set-picker-option",["parseUserInput",ne]),t("set-picker-option",["handleClear",K]),(V,G)=>(Z(),ce("div",{class:J([m(w).b(),m(b).b(),{"has-sidebar":Boolean(V.$slots.sidebar)||m(P)}])},[ve("div",{class:J(m(w).e("body-wrapper"))},[He(V.$slots,"sidebar",{class:J(m(w).e("sidebar"))}),m(P)?(Z(),ce("div",{key:0,class:J(m(w).e("sidebar"))},[(Z(!0),ce(Pt,null,_n(m(i),(se,he)=>(Z(),ce("button",{key:he,type:"button",class:J(m(w).e("shortcut")),onClick:pe=>m(T)(se)},ut(se.text),11,["onClick"]))),128))],2)):je("v-if",!0),ve("div",{class:J(m(w).e("body"))},[ve("div",{class:J([[m(w).e("content"),m(b).e("content")],"is-left"])},[ve("div",{class:J(m(b).e("header"))},[ve("button",{type:"button",class:J([m(w).e("icon-btn"),"d-arrow-left"]),onClick:m(A)},[He(V.$slots,"prev-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Kh))]),_:1})])],10,["onClick"]),V.unlinkPanels?(Z(),ce("button",{key:0,type:"button",disabled:!m(q),class:J([[m(w).e("icon-btn"),{[m(w).is("disabled")]:!m(q)}],"d-arrow-right"]),onClick:m(B)},[He(V.$slots,"next-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Jh))]),_:1})])],10,["disabled","onClick"])):je("v-if",!0),ve("div",null,ut(m(I)),1)],2),re(RM,{"selection-mode":"range",date:u.value,"min-date":m(p),"max-date":m(v),"range-state":m(y),"disabled-date":m(a),onChangerange:m(k),onPick:ae,onSelect:m($)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),ve("div",{class:J([[m(w).e("content"),m(b).e("content")],"is-right"])},[ve("div",{class:J(m(b).e("header"))},[V.unlinkPanels?(Z(),ce("button",{key:0,type:"button",disabled:!m(q),class:J([[m(w).e("icon-btn"),{"is-disabled":!m(q)}],"d-arrow-left"]),onClick:m(N)},[He(V.$slots,"prev-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Kh))]),_:1})])],10,["disabled","onClick"])):je("v-if",!0),ve("button",{type:"button",class:J([m(w).e("icon-btn"),"d-arrow-right"]),onClick:m(R)},[He(V.$slots,"next-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Jh))]),_:1})])],10,["onClick"]),ve("div",null,ut(m(D)),1)],2),re(RM,{"selection-mode":"range",date:d.value,"min-date":m(p),"max-date":m(v),"range-state":m(y),"disabled-date":m(a),onChangerange:m(k),onPick:ae,onSelect:m($)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var tAe=vt(eAe,[["__file","panel-month-range.vue"]]);const nAe=pt({...S3}),rAe=["pick","set-picker-option","calendar-change"],oAe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const r=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},o=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},i=()=>{t.value=t.value.add(10,"year")},a=()=>{n.value=n.value.subtract(10,"year")},s=W(()=>{const p=Math.floor(t.value.year()/10)*10;return`${p}-${p+9}`}),l=W(()=>{const p=Math.floor(n.value.year()/10)*10;return`${p}-${p+9}`}),u=W(()=>Math.floor(t.value.year()/10)*10+9),d=W(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:r,rightNextYear:o,leftNextYear:i,rightPrevYear:a,leftLabel:s,rightLabel:l,leftYear:u,rightYear:d}},X6="year",iAe=Se({name:"DatePickerYearRange"}),aAe=Se({...iAe,props:nAe,emits:rAe,setup(e,{emit:t}){const n=e,{lang:r}=rr(),o=ee(un().locale(r.value)),i=ee(o.value.add(10,"year")),{pickerNs:a}=Tt(jC),s=lt("date-range-picker"),l=W(()=>!!ae.length),u=W(()=>[a.b(),s.b(),{"has-sidebar":Boolean(zi().sidebar)||l.value}]),d=W(()=>({content:[a.e("content"),s.e("content"),"is-left"],arrowLeftBtn:[a.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[a.e("icon-btn"),{[a.is("disabled")]:!A.value},"d-arrow-right"]})),p=W(()=>({content:[a.e("content"),s.e("content"),"is-right"],arrowLeftBtn:[a.e("icon-btn"),{"is-disabled":!A.value},"d-arrow-left"],arrowRightBtn:[a.e("icon-btn"),"d-arrow-right"]})),v=RZ(r),{leftPrevYear:y,rightNextYear:w,leftNextYear:b,rightPrevYear:k,leftLabel:C,rightLabel:T,leftYear:$,rightYear:P}=oAe({unlinkPanels:xr(n,"unlinkPanels"),leftDate:o,rightDate:i}),A=W(()=>n.unlinkPanels&&P.value>$.value+1),R=ee(),B=ee(),N=ee({endDate:null,selecting:!1}),I=pe=>{N.value=pe},D=(pe,Be=!0)=>{const De=pe.minDate,ze=pe.maxDate;B.value===ze&&R.value===De||(t("calendar-change",[De.toDate(),ze&&ze.toDate()]),B.value=ze,R.value=De,Be&&L())},L=(pe=!1)=>{Qy([R.value,B.value])&&t("pick",[R.value,B.value],pe)},z=pe=>{N.value.selecting=pe,pe||(N.value.endDate=null)},q=Tt("EP_PICKER_BASE"),{shortcuts:ae,disabledDate:K}=q.props,H=xr(q.props,"format"),ne=xr(q.props,"defaultValue"),X=()=>{let pe;if(xt(ne.value)){const Be=un(ne.value[0]);let De=un(ne.value[1]);return n.unlinkPanels||(De=Be.add(10,X6)),[Be,De]}else ne.value?pe=un(ne.value):pe=un();return pe=pe.locale(r.value),[pe,pe.add(10,X6)]};at(()=>ne.value,pe=>{if(pe){const Be=X();o.value=Be[0],i.value=Be[1]}},{immediate:!0}),at(()=>n.parsedValue,pe=>{if(pe&&pe.length===2)if(R.value=pe[0],B.value=pe[1],o.value=R.value,n.unlinkPanels&&B.value){const Be=R.value.year(),De=B.value.year();i.value=Be===De?B.value.add(10,"year"):B.value}else i.value=o.value.add(10,"year");else{const Be=X();R.value=void 0,B.value=void 0,o.value=Be[0],i.value=Be[1]}},{immediate:!0});const V=pe=>xt(pe)?pe.map(Be=>un(Be,H.value).locale(r.value)):un(pe,H.value).locale(r.value),G=pe=>xt(pe)?pe.map(Be=>Be.format(H.value)):pe.format(H.value),se=pe=>Qy(pe)&&(K?!K(pe[0].toDate())&&!K(pe[1].toDate()):!0),he=()=>{const pe=X();o.value=pe[0],i.value=pe[1],B.value=void 0,R.value=void 0,t("pick",null)};return t("set-picker-option",["isValidValue",se]),t("set-picker-option",["parseUserInput",V]),t("set-picker-option",["formatToString",G]),t("set-picker-option",["handleClear",he]),(pe,Be)=>(Z(),ce("div",{class:J(m(u))},[ve("div",{class:J(m(a).e("body-wrapper"))},[He(pe.$slots,"sidebar",{class:J(m(a).e("sidebar"))}),m(l)?(Z(),ce("div",{key:0,class:J(m(a).e("sidebar"))},[(Z(!0),ce(Pt,null,_n(m(ae),(De,ze)=>(Z(),ce("button",{key:ze,type:"button",class:J(m(a).e("shortcut")),onClick:$e=>m(v)(De)},ut(De.text),11,["onClick"]))),128))],2)):je("v-if",!0),ve("div",{class:J(m(a).e("body"))},[ve("div",{class:J(m(d).content)},[ve("div",{class:J(m(s).e("header"))},[ve("button",{type:"button",class:J(m(d).arrowLeftBtn),onClick:m(y)},[He(pe.$slots,"prev-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Kh))]),_:1})])],10,["onClick"]),pe.unlinkPanels?(Z(),ce("button",{key:0,type:"button",disabled:!m(A),class:J(m(d).arrowRightBtn),onClick:m(b)},[He(pe.$slots,"next-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Jh))]),_:1})])],10,["disabled","onClick"])):je("v-if",!0),ve("div",null,ut(m(C)),1)],2),re(NM,{"selection-mode":"range",date:o.value,"min-date":R.value,"max-date":B.value,"range-state":N.value,"disabled-date":m(K),onChangerange:I,onPick:D,onSelect:z},null,8,["date","min-date","max-date","range-state","disabled-date"])],2),ve("div",{class:J(m(p).content)},[ve("div",{class:J(m(s).e("header"))},[pe.unlinkPanels?(Z(),ce("button",{key:0,type:"button",disabled:!m(A),class:J(m(p).arrowLeftBtn),onClick:m(k)},[He(pe.$slots,"prev-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Kh))]),_:1})])],10,["disabled","onClick"])):je("v-if",!0),ve("button",{type:"button",class:J(m(p).arrowRightBtn),onClick:m(w)},[He(pe.$slots,"next-year",{},()=>[re(m(jt),null,{default:ue(()=>[re(m(Jh))]),_:1})])],10,["onClick"]),ve("div",null,ut(m(T)),1)],2),re(NM,{"selection-mode":"range",date:i.value,"min-date":R.value,"max-date":B.value,"range-state":N.value,"disabled-date":m(K),onChangerange:I,onPick:D,onSelect:z},null,8,["date","min-date","max-date","range-state","disabled-date"])],2)],2)],2)],2))}});var sAe=vt(aAe,[["__file","panel-year-range.vue"]]);const lAe=function(e){switch(e){case"daterange":case"datetimerange":return X$e;case"monthrange":return tAe;case"yearrange":return sAe;default:return Z$e}};un.extend(eZ);un.extend(k$e);un.extend(m3);un.extend(C$e);un.extend(E$e);un.extend(T$e);un.extend(P$e);un.extend($$e);var uAe=Se({name:"ElDatePicker",install:null,props:A$e,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const o=lt("picker-panel");Wn("ElPopperOptions",nr(xr(e,"popperOptions"))),Wn(jC,{slots:r,pickerNs:o});const i=ee();t({focus:(l=!0)=>{var u;(u=i.value)==null||u.focus(l)},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{n("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:nEe[e.type]||Gm,d=lAe(e.type);return re(FY,In(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:p=>re(d,p,{"prev-month":r["prev-month"],"next-month":r["next-month"],"prev-year":r["prev-year"],"next-year":r["next-year"]}),"range-separator":r["range-separator"]})}}});const cAe=pn(uAe),E3=Symbol("elDescriptions");var y_=Se({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Tt(E3,{})}},render(){var e,t,n,r,o,i,a;const s=dwe(this.cell),l=(((e=this.cell)==null?void 0:e.dirs)||[]).map(A=>{const{dir:R,arg:B,modifiers:N,value:I}=A;return[R,I,B,N]}),{border:u,direction:d}=this.descriptions,p=d==="vertical",v=((r=(n=(t=this.cell)==null?void 0:t.children)==null?void 0:n.label)==null?void 0:r.call(n))||s.label,y=(a=(i=(o=this.cell)==null?void 0:o.children)==null?void 0:i.default)==null?void 0:a.call(i),w=s.span,b=s.align?`is-${s.align}`:"",k=s.labelAlign?`is-${s.labelAlign}`:b,C=s.className,T=s.labelClassName,$={width:Vo(s.width),minWidth:Vo(s.minWidth)},P=lt("descriptions");switch(this.type){case"label":return yn(Yt(this.tag,{style:$,class:[P.e("cell"),P.e("label"),P.is("bordered-label",u),P.is("vertical-label",p),k,T],colSpan:p?w:1},v),l);case"content":return yn(Yt(this.tag,{style:$,class:[P.e("cell"),P.e("content"),P.is("bordered-content",u),P.is("vertical-content",p),b,C],colSpan:p?w:w*2-1},y),l);default:return yn(Yt("td",{style:$,class:[P.e("cell"),b],colSpan:w},[Vi(v)?void 0:Yt("span",{class:[P.e("label"),T]},v),Yt("span",{class:[P.e("content"),C]},y)]),l)}}});const fAe=pt({row:{type:Ie(Array),default:()=>[]}}),dAe=Se({name:"ElDescriptionsRow"}),hAe=Se({...dAe,props:fAe,setup(e){const t=Tt(E3,{});return(n,r)=>m(t).direction==="vertical"?(Z(),ce(Pt,{key:0},[ve("tr",null,[(Z(!0),ce(Pt,null,_n(n.row,(o,i)=>(Z(),Fe(m(y_),{key:`tr1-${i}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),ve("tr",null,[(Z(!0),ce(Pt,null,_n(n.row,(o,i)=>(Z(),Fe(m(y_),{key:`tr2-${i}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(Z(),ce("tr",{key:1},[(Z(!0),ce(Pt,null,_n(n.row,(o,i)=>(Z(),ce(Pt,{key:`tr3-${i}`},[m(t).border?(Z(),ce(Pt,{key:0},[re(m(y_),{cell:o,tag:"td",type:"label"},null,8,["cell"]),re(m(y_),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(Z(),Fe(m(y_),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var pAe=vt(hAe,[["__file","descriptions-row.vue"]]);const gAe=pt({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Ai,title:{type:String,default:""},extra:{type:String,default:""}}),vAe=Se({name:"ElDescriptions"}),mAe=Se({...vAe,props:gAe,setup(e){const t=e,n=lt("descriptions"),r=bi(),o=zi();Wn(E3,t);const i=W(()=>[n.b(),n.m(r.value)]),a=(l,u,d,p=!1)=>(l.props||(l.props={}),u>d&&(l.props.span=d),p&&(l.props.span=u),l),s=()=>{if(!o.default)return[];const l=Lh(o.default()).filter(y=>{var w;return((w=y==null?void 0:y.type)==null?void 0:w.name)==="ElDescriptionsItem"}),u=[];let d=[],p=t.column,v=0;return l.forEach((y,w)=>{var b;const k=((b=y.props)==null?void 0:b.span)||1;if(w<l.length-1&&(v+=k>p?p:k),w===l.length-1){const C=t.column-v%t.column;d.push(a(y,C,p,!0)),u.push(d);return}k<p?(p-=k,d.push(y)):(d.push(a(y,k,p)),u.push(d),p=t.column,d=[])}),u};return(l,u)=>(Z(),ce("div",{class:J(m(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(Z(),ce("div",{key:0,class:J(m(n).e("header"))},[ve("div",{class:J(m(n).e("title"))},[He(l.$slots,"title",{},()=>[St(ut(l.title),1)])],2),ve("div",{class:J(m(n).e("extra"))},[He(l.$slots,"extra",{},()=>[St(ut(l.extra),1)])],2)],2)):je("v-if",!0),ve("div",{class:J(m(n).e("body"))},[ve("table",{class:J([m(n).e("table"),m(n).is("bordered",l.border)])},[ve("tbody",null,[(Z(!0),ce(Pt,null,_n(s(),(d,p)=>(Z(),Fe(pAe,{key:p,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var yAe=vt(mAe,[["__file","description.vue"]]);const bAe=pt({label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),IZ=Se({name:"ElDescriptionsItem",props:bAe}),_Ae=pn(yAe,{DescriptionsItem:IZ}),OAe=So(IZ),wAe=pt({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Ie([String,Array,Object])},zIndex:{type:Ie([String,Number])}}),SAe={click:e=>e instanceof MouseEvent},xAe="overlay";var kAe=Se({name:"ElOverlay",props:wAe,emits:SAe,setup(e,{slots:t,emit:n}){const r=lt(xAe),o=l=>{n("click",l)},{onClick:i,onMousedown:a,onMouseup:s}=t3(e.customMaskEvent?void 0:o);return()=>e.mask?re("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:s},[He(t,"default")],lu.STYLE|lu.CLASS|lu.PROPS,["onClick","onMouseup","onMousedown"]):Yt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[He(t,"default")])}});const T3=kAe,DZ=Symbol("dialogInjectionKey"),jZ=pt({center:Boolean,alignCenter:Boolean,closeIcon:{type:Fr},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),CAe={close:()=>!0},EAe=Se({name:"ElDialogContent"}),TAe=Se({...EAe,props:jZ,emits:CAe,setup(e,{expose:t}){const n=e,{t:r}=rr(),{Close:o}=FI,{dialogRef:i,headerRef:a,bodyId:s,ns:l,style:u}=Tt(DZ),{focusTrapRef:d}=Tt(p3),p=W(()=>[l.b(),l.is("fullscreen",n.fullscreen),l.is("draggable",n.draggable),l.is("align-center",n.alignCenter),{[l.m("center")]:n.center}]),v=kC(d,i),y=W(()=>n.draggable),w=W(()=>n.overflow),{resetPostion:b}=$W(i,a,y,w);return t({resetPostion:b}),(k,C)=>(Z(),ce("div",{ref:m(v),class:J(m(p)),style:Vt(m(u)),tabindex:"-1"},[ve("header",{ref_key:"headerRef",ref:a,class:J([m(l).e("header"),{"show-close":k.showClose}])},[He(k.$slots,"header",{},()=>[ve("span",{role:"heading","aria-level":k.ariaLevel,class:J(m(l).e("title"))},ut(k.title),11,["aria-level"])]),k.showClose?(Z(),ce("button",{key:0,"aria-label":m(r)("el.dialog.close"),class:J(m(l).e("headerbtn")),type:"button",onClick:T=>k.$emit("close")},[re(m(jt),{class:J(m(l).e("close"))},{default:ue(()=>[(Z(),Fe(Dn(k.closeIcon||m(o))))]),_:1},8,["class"])],10,["aria-label","onClick"])):je("v-if",!0)],2),ve("div",{id:m(s),class:J(m(l).e("body"))},[He(k.$slots,"default")],10,["id"]),k.$slots.footer?(Z(),ce("footer",{key:0,class:J(m(l).e("footer"))},[He(k.$slots,"footer")],2)):je("v-if",!0)],6))}});var PAe=vt(TAe,[["__file","dialog-content.vue"]]);const LZ=pt({...jZ,appendToBody:Boolean,appendTo:{type:Ie([String,Object]),default:"body"},beforeClose:{type:Ie(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),BZ={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[En]:e=>Uo(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},VZ=(e,t)=>{var n;const o=Cn().emit,{nextZIndex:i}=p0();let a="";const s=ja(),l=ja(),u=ee(!1),d=ee(!1),p=ee(!1),v=ee((n=e.zIndex)!=null?n:i());let y,w;const b=MC("namespace",Z_),k=W(()=>{const K={},H=`--${b.value}-dialog`;return e.fullscreen||(e.top&&(K[`${H}-margin-top`]=e.top),e.width&&(K[`${H}-width`]=Vo(e.width))),K}),C=W(()=>e.alignCenter?{display:"flex"}:{});function T(){o("opened")}function $(){o("closed"),o(En,!1),e.destroyOnClose&&(p.value=!1)}function P(){o("close")}function A(){w==null||w(),y==null||y(),e.openDelay&&e.openDelay>0?{stop:y}=nv(()=>I(),e.openDelay):I()}function R(){y==null||y(),w==null||w(),e.closeDelay&&e.closeDelay>0?{stop:w}=nv(()=>D(),e.closeDelay):D()}function B(){function K(H){H||(d.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(K):R()}function N(){e.closeOnClickModal&&B()}function I(){!tr||(u.value=!0)}function D(){u.value=!1}function L(){o("openAutoFocus")}function z(){o("closeAutoFocus")}function q(K){var H;((H=K.detail)==null?void 0:H.focusReason)==="pointer"&&K.preventDefault()}e.lockScroll&&ZI(u);function ae(){e.closeOnPressEscape&&B()}return at(()=>e.modelValue,K=>{K?(d.value=!1,A(),p.value=!0,v.value=bI(e.zIndex)?i():v.value++,zt(()=>{o("open"),t.value&&(t.value.scrollTop=0)})):u.value&&R()}),at(()=>e.fullscreen,K=>{!t.value||(K?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),vn(()=>{e.modelValue&&(u.value=!0,p.value=!0,A())}),{afterEnter:T,afterLeave:$,beforeLeave:P,handleClose:B,onModalClick:N,close:R,doClose:D,onOpenAutoFocus:L,onCloseAutoFocus:z,onCloseRequested:ae,onFocusoutPrevented:q,titleId:s,bodyId:l,closed:d,style:k,overlayDialogStyle:C,rendered:p,visible:u,zIndex:v}},$Ae=Se({name:"ElDialog",inheritAttrs:!1}),AAe=Se({...$Ae,props:LZ,emits:BZ,setup(e,{expose:t}){const n=e,r=zi();Bh({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},W(()=>!!r.title));const o=lt("dialog"),i=ee(),a=ee(),s=ee(),{visible:l,titleId:u,bodyId:d,style:p,overlayDialogStyle:v,rendered:y,zIndex:w,afterEnter:b,afterLeave:k,beforeLeave:C,handleClose:T,onModalClick:$,onOpenAutoFocus:P,onCloseAutoFocus:A,onCloseRequested:R,onFocusoutPrevented:B}=VZ(n,i);Wn(DZ,{dialogRef:i,headerRef:a,bodyId:d,ns:o,rendered:y,style:p});const N=t3($),I=W(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s,resetPostion:()=>{s.value.resetPostion()}}),(L,z)=>(Z(),Fe(m(v0),{to:L.appendTo,disabled:L.appendTo!=="body"?!1:!L.appendToBody},{default:ue(()=>[re(Pi,{name:"dialog-fade",onAfterEnter:m(b),onAfterLeave:m(k),onBeforeLeave:m(C),persisted:""},{default:ue(()=>[yn(re(m(T3),{"custom-mask-event":"",mask:L.modal,"overlay-class":L.modalClass,"z-index":m(w)},{default:ue(()=>[ve("div",{role:"dialog","aria-modal":"true","aria-label":L.title||void 0,"aria-labelledby":L.title?void 0:m(u),"aria-describedby":m(d),class:J(`${m(o).namespace.value}-overlay-dialog`),style:Vt(m(v)),onClick:m(N).onClick,onMousedown:m(N).onMousedown,onMouseup:m(N).onMouseup},[re(m(T1),{loop:"",trapped:m(l),"focus-start-el":"container",onFocusAfterTrapped:m(P),onFocusAfterReleased:m(A),onFocusoutPrevented:m(B),onReleaseRequested:m(R)},{default:ue(()=>[m(y)?(Z(),Fe(PAe,In({key:0,ref_key:"dialogContentRef",ref:s},L.$attrs,{center:L.center,"align-center":L.alignCenter,"close-icon":L.closeIcon,draggable:m(I),overflow:L.overflow,fullscreen:L.fullscreen,"show-close":L.showClose,title:L.title,"aria-level":L.headerAriaLevel,onClose:m(T)}),Il({header:ue(()=>[L.$slots.title?He(L.$slots,"title",{key:1}):He(L.$slots,"header",{key:0,close:m(T),titleId:m(u),titleClass:m(o).e("title")})]),default:ue(()=>[He(L.$slots,"default")]),_:2},[L.$slots.footer?{name:"footer",fn:ue(()=>[He(L.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):je("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[hr,m(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var MAe=vt(AAe,[["__file","dialog.vue"]]);const Td=pn(MAe),RAe=pt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Ie(String),default:"solid"}}),NAe=Se({name:"ElDivider"}),IAe=Se({...NAe,props:RAe,setup(e){const t=e,n=lt("divider"),r=W(()=>n.cssVar({"border-style":t.borderStyle}));return(o,i)=>(Z(),ce("div",{class:J([m(n).b(),m(n).m(o.direction)]),style:Vt(m(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(Z(),ce("div",{key:0,class:J([m(n).e("text"),m(n).is(o.contentPosition)])},[He(o.$slots,"default")],2)):je("v-if",!0)],6))}});var DAe=vt(IAe,[["__file","divider.vue"]]);const FZ=pn(DAe),jAe=pt({...LZ,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),LAe=BZ,BAe=Se({name:"ElDrawer",inheritAttrs:!1}),VAe=Se({...BAe,props:jAe,emits:LAe,setup(e,{expose:t}){const n=e,r=zi();Bh({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},W(()=>!!r.title));const o=ee(),i=ee(),a=lt("drawer"),{t:s}=rr(),{afterEnter:l,afterLeave:u,beforeLeave:d,visible:p,rendered:v,titleId:y,bodyId:w,zIndex:b,onModalClick:k,onOpenAutoFocus:C,onCloseAutoFocus:T,onFocusoutPrevented:$,onCloseRequested:P,handleClose:A}=VZ(n,o),R=W(()=>n.direction==="rtl"||n.direction==="ltr"),B=W(()=>Vo(n.size));return t({handleClose:A,afterEnter:l,afterLeave:u}),(N,I)=>(Z(),Fe(m(v0),{to:N.appendTo,disabled:N.appendTo!=="body"?!1:!N.appendToBody},{default:ue(()=>[re(Pi,{name:m(a).b("fade"),onAfterEnter:m(l),onAfterLeave:m(u),onBeforeLeave:m(d),persisted:""},{default:ue(()=>[yn(re(m(T3),{mask:N.modal,"overlay-class":N.modalClass,"z-index":m(b),onClick:m(k)},{default:ue(()=>[re(m(T1),{loop:"",trapped:m(p),"focus-trap-el":o.value,"focus-start-el":i.value,onFocusAfterTrapped:m(C),onFocusAfterReleased:m(T),onFocusoutPrevented:m($),onReleaseRequested:m(P)},{default:ue(()=>[ve("div",In({ref_key:"drawerRef",ref:o,"aria-modal":"true","aria-label":N.title||void 0,"aria-labelledby":N.title?void 0:m(y),"aria-describedby":m(w)},N.$attrs,{class:[m(a).b(),N.direction,m(p)&&"open"],style:m(R)?"width: "+m(B):"height: "+m(B),role:"dialog",onClick:tn(()=>{},["stop"])}),[ve("span",{ref_key:"focusStartRef",ref:i,class:J(m(a).e("sr-focus")),tabindex:"-1"},null,2),N.withHeader?(Z(),ce("header",{key:0,class:J(m(a).e("header"))},[N.$slots.title?He(N.$slots,"title",{key:1},()=>[je(" DEPRECATED SLOT ")]):He(N.$slots,"header",{key:0,close:m(A),titleId:m(y),titleClass:m(a).e("title")},()=>[N.$slots.title?je("v-if",!0):(Z(),ce("span",{key:0,id:m(y),role:"heading","aria-level":N.headerAriaLevel,class:J(m(a).e("title"))},ut(N.title),11,["id","aria-level"]))]),N.showClose?(Z(),ce("button",{key:2,"aria-label":m(s)("el.drawer.close"),class:J(m(a).e("close-btn")),type:"button",onClick:m(A)},[re(m(jt),{class:J(m(a).e("close"))},{default:ue(()=>[re(m(el))]),_:1},8,["class"])],10,["aria-label","onClick"])):je("v-if",!0)],2)):je("v-if",!0),m(v)?(Z(),ce("div",{key:1,id:m(w),class:J(m(a).e("body"))},[He(N.$slots,"default")],10,["id"])):je("v-if",!0),N.$slots.footer?(Z(),ce("div",{key:2,class:J(m(a).e("footer"))},[He(N.$slots,"footer")],2)):je("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[hr,m(p)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var FAe=vt(VAe,[["__file","drawer.vue"]]);const P3=pn(FAe),zAe=Se({inheritAttrs:!1});function QAe(e,t,n,r,o,i){return He(e.$slots,"default")}var WAe=vt(zAe,[["render",QAe],["__file","collection.vue"]]);const YAe=Se({name:"ElCollectionItem",inheritAttrs:!1});function ZAe(e,t,n,r,o,i){return He(e.$slots,"default")}var UAe=vt(YAe,[["render",ZAe],["__file","collection-item.vue"]]);const zZ="data-el-collection-item",QZ=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),i={...WAe,name:t,setup(){const s=ee(null),l=new Map;Wn(r,{itemMap:l,getItems:()=>{const d=m(s);if(!d)return[];const p=Array.from(d.querySelectorAll(`[${zZ}]`));return[...l.values()].sort((y,w)=>p.indexOf(y.ref)-p.indexOf(w.ref))},collectionRef:s})}},a={...UAe,name:n,setup(s,{attrs:l}){const u=ee(null),d=Tt(r,void 0);Wn(o,{collectionItemRef:u}),vn(()=>{const p=m(u);p&&d.itemMap.set(p,{ref:p,...l})}),Ur(()=>{const p=m(u);d.itemMap.delete(p)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:i,ElCollectionItem:a}},HAe=pt({style:{type:Ie([String,Array,Object])},currentTabId:{type:Ie(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Ie(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:XAe,ElCollectionItem:GAe,COLLECTION_INJECTION_KEY:$3,COLLECTION_ITEM_INJECTION_KEY:qAe}=QZ("RovingFocusGroup"),A3=Symbol("elRovingFocusGroup"),WZ=Symbol("elRovingFocusGroupItem"),KAe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},JAe=(e,t)=>{if(t!=="rtl")return e;switch(e){case Qt.right:return Qt.left;case Qt.left:return Qt.right;default:return e}},eMe=(e,t,n)=>{const r=JAe(e.key,n);if(!(t==="vertical"&&[Qt.left,Qt.right].includes(r))&&!(t==="horizontal"&&[Qt.up,Qt.down].includes(r)))return KAe[r]},tMe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),M3=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},G6="currentTabIdChange",q6="rovingFocusGroup.entryFocus",nMe={bubbles:!1,cancelable:!0},rMe=Se({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:HAe,emits:[G6,"entryFocus"],setup(e,{emit:t}){var n;const r=ee((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),o=ee(!1),i=ee(!1),a=ee(null),{getItems:s}=Tt($3,void 0),l=W(()=>[{outline:"none"},e.style]),u=b=>{t(G6,b)},d=()=>{o.value=!0},p=Lo(b=>{var k;(k=e.onMousedown)==null||k.call(e,b)},()=>{i.value=!0}),v=Lo(b=>{var k;(k=e.onFocus)==null||k.call(e,b)},b=>{const k=!m(i),{target:C,currentTarget:T}=b;if(C===T&&k&&!m(o)){const $=new Event(q6,nMe);if(T==null||T.dispatchEvent($),!$.defaultPrevented){const P=s().filter(I=>I.focusable),A=P.find(I=>I.active),R=P.find(I=>I.id===m(r)),N=[A,R,...P].filter(Boolean).map(I=>I.ref);M3(N)}}i.value=!1}),y=Lo(b=>{var k;(k=e.onBlur)==null||k.call(e,b)},()=>{o.value=!1}),w=(...b)=>{t("entryFocus",...b)};Wn(A3,{currentTabbedId:u1(r),loop:xr(e,"loop"),tabIndex:W(()=>m(o)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:l,orientation:xr(e,"orientation"),dir:xr(e,"dir"),onItemFocus:u,onItemShiftTab:d,onBlur:y,onFocus:v,onMousedown:p}),at(()=>e.currentTabId,b=>{r.value=b!=null?b:null}),Ar(a,q6,w)}});function oMe(e,t,n,r,o,i){return He(e.$slots,"default")}var iMe=vt(rMe,[["render",oMe],["__file","roving-focus-group-impl.vue"]]);const aMe=Se({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:XAe,ElRovingFocusGroupImpl:iMe}});function sMe(e,t,n,r,o,i){const a=Tn("el-roving-focus-group-impl"),s=Tn("el-focus-group-collection");return Z(),Fe(s,null,{default:ue(()=>[re(a,ic(Yh(e.$attrs)),{default:ue(()=>[He(e.$slots,"default")]),_:3},16)]),_:3})}var lMe=vt(aMe,[["render",sMe],["__file","roving-focus-group.vue"]]);const uMe=Se({components:{ElRovingFocusCollectionItem:GAe},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:o,onItemShiftTab:i}=Tt(A3,void 0),{getItems:a}=Tt($3,void 0),s=ja(),l=ee(null),u=Lo(y=>{t("mousedown",y)},y=>{e.focusable?o(m(s)):y.preventDefault()}),d=Lo(y=>{t("focus",y)},()=>{o(m(s))}),p=Lo(y=>{t("keydown",y)},y=>{const{key:w,shiftKey:b,target:k,currentTarget:C}=y;if(w===Qt.tab&&b){i();return}if(k!==C)return;const T=eMe(y);if(T){y.preventDefault();let P=a().filter(A=>A.focusable).map(A=>A.ref);switch(T){case"last":{P.reverse();break}case"prev":case"next":{T==="prev"&&P.reverse();const A=P.indexOf(C);P=r.value?tMe(P,A+1):P.slice(A+1);break}}zt(()=>{M3(P)})}}),v=W(()=>n.value===m(s));return Wn(WZ,{rovingFocusGroupItemRef:l,tabIndex:W(()=>m(v)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:p}),{id:s,handleKeydown:p,handleFocus:d,handleMousedown:u}}});function cMe(e,t,n,r,o,i){const a=Tn("el-roving-focus-collection-item");return Z(),Fe(a,{id:e.id,focusable:e.focusable,active:e.active},{default:ue(()=>[He(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var fMe=vt(uMe,[["render",cMe],["__file","roving-focus-item.vue"]]);const sk=pt({trigger:AO.trigger,effect:{...Xi.effect,default:"light"},type:{type:Ie(String)},placement:{type:Ie(String),default:"bottom"},popperOptions:{type:Ie(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Ie([Number,String]),default:0},maxHeight:{type:Ie([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:Ie(Object)},teleported:Xi.teleported}),YZ=pt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Fr}}),dMe=pt({onKeydown:{type:Ie(Function)}}),hMe=[Qt.down,Qt.pageDown,Qt.home],ZZ=[Qt.up,Qt.pageUp,Qt.end],pMe=[...hMe,...ZZ],{ElCollection:gMe,ElCollectionItem:vMe,COLLECTION_INJECTION_KEY:mMe,COLLECTION_ITEM_INJECTION_KEY:yMe}=QZ("Dropdown"),LC=Symbol("elDropdown"),{ButtonGroup:bMe}=no,_Me=Se({name:"ElDropdown",components:{ElButton:no,ElButtonGroup:bMe,ElScrollbar:_c,ElDropdownCollection:gMe,ElTooltip:Fi,ElRovingFocusGroup:lMe,ElOnlyChild:bY,ElIcon:jt,ArrowDown:Cd},props:sk,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Cn(),r=lt("dropdown"),{t:o}=rr(),i=ee(),a=ee(),s=ee(null),l=ee(null),u=ee(null),d=ee(null),p=ee(!1),v=[Qt.enter,Qt.space,Qt.down],y=W(()=>({maxHeight:Vo(e.maxHeight)})),w=W(()=>[r.m(A.value)]),b=W(()=>Ma(e.trigger)),k=ja().value,C=W(()=>e.id||k);at([i,b],([ne,X],[V])=>{var G,se,he;(G=V==null?void 0:V.$el)!=null&&G.removeEventListener&&V.$el.removeEventListener("pointerenter",B),(se=ne==null?void 0:ne.$el)!=null&&se.removeEventListener&&ne.$el.removeEventListener("pointerenter",B),((he=ne==null?void 0:ne.$el)==null?void 0:he.addEventListener)&&X.includes("hover")&&ne.$el.addEventListener("pointerenter",B)},{immediate:!0}),Ur(()=>{var ne,X;(X=(ne=i.value)==null?void 0:ne.$el)!=null&&X.removeEventListener&&i.value.$el.removeEventListener("pointerenter",B)});function T(){$()}function $(){var ne;(ne=s.value)==null||ne.onClose()}function P(){var ne;(ne=s.value)==null||ne.onOpen()}const A=bi();function R(...ne){t("command",...ne)}function B(){var ne,X;(X=(ne=i.value)==null?void 0:ne.$el)==null||X.focus()}function N(){}function I(){const ne=m(l);b.value.includes("hover")&&(ne==null||ne.focus()),d.value=null}function D(ne){d.value=ne}function L(ne){p.value||(ne.preventDefault(),ne.stopImmediatePropagation())}function z(){t("visible-change",!0)}function q(ne){(ne==null?void 0:ne.type)==="keydown"&&l.value.focus()}function ae(){t("visible-change",!1)}return Wn(LC,{contentRef:l,role:W(()=>e.role),triggerId:C,isUsingKeyboard:p,onItemEnter:N,onItemLeave:I}),Wn("elDropdown",{instance:n,dropdownSize:A,handleClick:T,commandHandler:R,trigger:xr(e,"trigger"),hideOnClick:xr(e,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:y,dropdownTriggerKls:w,dropdownSize:A,triggerId:C,triggerKeys:v,currentTabId:d,handleCurrentTabIdChange:D,handlerMainButtonClick:ne=>{t("click",ne)},handleEntryFocus:L,handleClose:$,handleOpen:P,handleBeforeShowTooltip:z,handleShowTooltip:q,handleBeforeHideTooltip:ae,onFocusAfterTrapped:ne=>{var X,V;ne.preventDefault(),(V=(X=l.value)==null?void 0:X.focus)==null||V.call(X,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:a}}});function OMe(e,t,n,r,o,i){var a;const s=Tn("el-dropdown-collection"),l=Tn("el-roving-focus-group"),u=Tn("el-scrollbar"),d=Tn("el-only-child"),p=Tn("el-tooltip"),v=Tn("el-button"),y=Tn("arrow-down"),w=Tn("el-icon"),b=Tn("el-button-group");return Z(),ce("div",{class:J([e.ns.b(),e.ns.is("disabled",e.disabled)])},[re(p,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Il({content:ue(()=>[re(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ue(()=>[re(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:ue(()=>[re(s,null,{default:ue(()=>[He(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ue(()=>[re(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ue(()=>[He(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(Z(),Fe(b,{key:0},{default:ue(()=>[re(v,In({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ue(()=>[He(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),re(v,In({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ue(()=>[re(w,{class:J(e.ns.e("icon"))},{default:ue(()=>[re(y)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):je("v-if",!0)],2)}var wMe=vt(_Me,[["render",OMe],["__file","dropdown.vue"]]);const SMe=Se({name:"DropdownItemImpl",components:{ElIcon:jt},props:YZ,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=lt("dropdown"),{role:r}=Tt(LC,void 0),{collectionItemRef:o}=Tt(yMe,void 0),{collectionItemRef:i}=Tt(qAe,void 0),{rovingFocusGroupItemRef:a,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:d}=Tt(WZ,void 0),p=kC(o,i,a),v=W(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),y=Lo(w=>{const{code:b}=w;if(b===Qt.enter||b===Qt.space)return w.preventDefault(),w.stopImmediatePropagation(),t("clickimpl",w),!0},u);return{ns:n,itemRef:p,dataset:{[zZ]:""},role:v,tabIndex:s,handleFocus:l,handleKeydown:y,handleMousedown:d}}});function xMe(e,t,n,r,o,i){const a=Tn("el-icon");return Z(),ce(Pt,null,[e.divided?(Z(),ce("li",In({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):je("v-if",!0),ve("li",In({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:s=>e.$emit("clickimpl",s),onFocus:e.handleFocus,onKeydown:tn(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:s=>e.$emit("pointermove",s),onPointerleave:s=>e.$emit("pointerleave",s)}),[e.icon?(Z(),Fe(a,{key:0},{default:ue(()=>[(Z(),Fe(Dn(e.icon)))]),_:1})):je("v-if",!0),He(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var kMe=vt(SMe,[["render",xMe],["__file","dropdown-item-impl.vue"]]);const UZ=()=>{const e=Tt("elDropdown",{}),t=W(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},CMe=Se({name:"ElDropdownItem",components:{ElDropdownCollectionItem:vMe,ElRovingFocusItem:fMe,ElDropdownItemImpl:kMe},inheritAttrs:!1,props:YZ,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=UZ(),o=Cn(),i=ee(null),a=W(()=>{var y,w;return(w=(y=m(i))==null?void 0:y.textContent)!=null?w:""}),{onItemEnter:s,onItemLeave:l}=Tt(LC,void 0),u=Lo(y=>(t("pointermove",y),y.defaultPrevented),y5(y=>{if(e.disabled){l(y);return}const w=y.currentTarget;w===document.activeElement||w.contains(document.activeElement)||(s(y),y.defaultPrevented||w==null||w.focus())})),d=Lo(y=>(t("pointerleave",y),y.defaultPrevented),y5(l)),p=Lo(y=>{if(!e.disabled)return t("click",y),y.type!=="keydown"&&y.defaultPrevented},y=>{var w,b,k;if(e.disabled){y.stopImmediatePropagation();return}(w=r==null?void 0:r.hideOnClick)!=null&&w.value&&((b=r.handleClick)==null||b.call(r)),(k=r.commandHandler)==null||k.call(r,e.command,o,y)}),v=W(()=>({...e,...n}));return{handleClick:p,handlePointerMove:u,handlePointerLeave:d,textContent:a,propsAndAttrs:v}}});function EMe(e,t,n,r,o,i){var a;const s=Tn("el-dropdown-item-impl"),l=Tn("el-roving-focus-item"),u=Tn("el-dropdown-collection-item");return Z(),Fe(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:ue(()=>[re(l,{focusable:!e.disabled},{default:ue(()=>[re(s,In(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:ue(()=>[He(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var HZ=vt(CMe,[["render",EMe],["__file","dropdown-item.vue"]]);const TMe=Se({name:"ElDropdownMenu",props:dMe,setup(e){const t=lt("dropdown"),{_elDropdownSize:n}=UZ(),r=n.value,{focusTrapRef:o,onKeydown:i}=Tt(p3,void 0),{contentRef:a,role:s,triggerId:l}=Tt(LC,void 0),{collectionRef:u,getItems:d}=Tt(mMe,void 0),{rovingFocusGroupRef:p,rovingFocusGroupRootStyle:v,tabIndex:y,onBlur:w,onFocus:b,onMousedown:k}=Tt(A3,void 0),{collectionRef:C}=Tt($3,void 0),T=W(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),$=kC(a,u,o,p,C),P=Lo(R=>{var B;(B=e.onKeydown)==null||B.call(e,R)},R=>{const{currentTarget:B,code:N,target:I}=R;if(B.contains(I),Qt.tab===N&&R.stopImmediatePropagation(),R.preventDefault(),I!==m(a)||!pMe.includes(N))return;const L=d().filter(z=>!z.disabled).map(z=>z.ref);ZZ.includes(N)&&L.reverse(),M3(L)});return{size:r,rovingFocusGroupRootStyle:v,tabIndex:y,dropdownKls:T,role:s,triggerId:l,dropdownListWrapperRef:$,handleKeydown:R=>{P(R),i(R)},onBlur:w,onFocus:b,onMousedown:k}}});function PMe(e,t,n,r,o,i){return Z(),ce("ul",{ref:e.dropdownListWrapperRef,class:J(e.dropdownKls),style:Vt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:tn(e.handleKeydown,["self"]),onMousedown:tn(e.onMousedown,["self"])},[He(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var XZ=vt(TMe,[["render",PMe],["__file","dropdown-menu.vue"]]);const $Me=pn(wMe,{DropdownItem:HZ,DropdownMenu:XZ}),AMe=So(HZ),MMe=So(XZ),RMe=Se({name:"ImgEmpty"}),NMe=Se({...RMe,setup(e){const t=lt("empty"),n=ja();return(r,o)=>(Z(),ce("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[ve("defs",null,[ve("linearGradient",{id:`linearGradient-1-${m(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[ve("stop",{"stop-color":`var(${m(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),ve("stop",{"stop-color":`var(${m(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),ve("linearGradient",{id:`linearGradient-2-${m(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[ve("stop",{"stop-color":`var(${m(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),ve("stop",{"stop-color":`var(${m(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),ve("rect",{id:`path-3-${m(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),ve("g",{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[ve("g",{id:"B-type",transform:"translate(-1268.000000, -535.000000)"},[ve("g",{id:"Group-2",transform:"translate(1268.000000, 535.000000)"},[ve("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${m(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),ve("polygon",{id:"Rectangle-Copy-14",fill:`var(${m(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),ve("g",{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[ve("polygon",{id:"Rectangle-Copy-10",fill:`var(${m(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),ve("polygon",{id:"Rectangle-Copy-11",fill:`var(${m(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),ve("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${m(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),ve("polygon",{id:"Rectangle-Copy-13",fill:`var(${m(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),ve("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${m(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),ve("g",{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},[ve("use",{id:"Mask",fill:`var(${m(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${m(n)}`},null,8,["fill","xlink:href"]),ve("polygon",{id:"Rectangle-Copy",fill:`var(${m(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${m(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),ve("polygon",{id:"Rectangle-Copy-18",fill:`var(${m(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var IMe=vt(NMe,[["__file","img-empty.vue"]]);const DMe=pt({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),jMe=Se({name:"ElEmpty"}),LMe=Se({...jMe,props:DMe,setup(e){const t=e,{t:n}=rr(),r=lt("empty"),o=W(()=>t.description||n("el.table.emptyText")),i=W(()=>({width:Vo(t.imageSize)}));return(a,s)=>(Z(),ce("div",{class:J(m(r).b())},[ve("div",{class:J(m(r).e("image")),style:Vt(m(i))},[a.image?(Z(),ce("img",{key:0,src:a.image,ondragstart:"return false"},null,8,["src"])):He(a.$slots,"image",{key:1},()=>[re(IMe)])],6),ve("div",{class:J(m(r).e("description"))},[a.$slots.description?He(a.$slots,"description",{key:0}):(Z(),ce("p",{key:1},ut(m(o)),1))],2),a.$slots.default?(Z(),ce("div",{key:0,class:J(m(r).e("bottom"))},[He(a.$slots,"default")],2)):je("v-if",!0)],2))}});var BMe=vt(LMe,[["__file","empty.vue"]]);const GZ=pn(BMe),VMe=pt({urlList:{type:Ie(Array),default:()=>Oo([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:Ie(String)}}),FMe={close:()=>!0,switch:e=>en(e),rotate:e=>en(e)},zMe=Se({name:"ElImageViewer"}),QMe=Se({...zMe,props:VMe,emits:FMe,setup(e,{expose:t,emit:n}){var r;const o=e,i={CONTAIN:{name:"contain",icon:sd(OW)},ORIGINAL:{name:"original",icon:sd(W1e)}},{t:a}=rr(),s=lt("image-viewer"),{nextZIndex:l}=p0(),u=ee(),d=ee([]),p=vre(),v=ee(!0),y=ee(o.initialIndex),w=Kr(i.CONTAIN),b=ee({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),k=ee((r=o.zIndex)!=null?r:l()),C=W(()=>{const{urlList:G}=o;return G.length<=1}),T=W(()=>y.value===0),$=W(()=>y.value===o.urlList.length-1),P=W(()=>o.urlList[y.value]),A=W(()=>[s.e("btn"),s.e("prev"),s.is("disabled",!o.infinite&&T.value)]),R=W(()=>[s.e("btn"),s.e("next"),s.is("disabled",!o.infinite&&$.value)]),B=W(()=>{const{scale:G,deg:se,offsetX:he,offsetY:pe,enableTransition:Be}=b.value;let De=he/G,ze=pe/G;const $e=se*Math.PI/180,_e=Math.cos($e),me=Math.sin($e);De=De*_e+ze*me,ze=ze*_e-he/G*me;const Re={transform:`scale(${G}) rotate(${se}deg) translate(${De}px, ${ze}px)`,transition:Be?"transform .3s":""};return w.value.name===i.CONTAIN.name&&(Re.maxWidth=Re.maxHeight="100%"),Re});function N(){D(),n("close")}function I(){const G=jh(he=>{switch(he.code){case Qt.esc:o.closeOnPressEscape&&N();break;case Qt.space:K();break;case Qt.left:ne();break;case Qt.up:V("zoomIn");break;case Qt.right:X();break;case Qt.down:V("zoomOut");break}}),se=jh(he=>{const pe=he.deltaY||he.deltaX;V(pe<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{Ar(document,"keydown",G),Ar(document,"wheel",se)})}function D(){p.stop()}function L(){v.value=!1}function z(G){v.value=!1,G.target.alt=a("el.image.error")}function q(G){if(v.value||G.button!==0||!u.value)return;b.value.enableTransition=!1;const{offsetX:se,offsetY:he}=b.value,pe=G.pageX,Be=G.pageY,De=jh($e=>{b.value={...b.value,offsetX:se+$e.pageX-pe,offsetY:he+$e.pageY-Be}}),ze=Ar(document,"mousemove",De);Ar(document,"mouseup",()=>{ze()}),G.preventDefault()}function ae(){b.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function K(){if(v.value)return;const G=Ny(i),se=Object.values(i),he=w.value.name,Be=(se.findIndex(De=>De.name===he)+1)%G.length;w.value=i[G[Be]],ae()}function H(G){const se=o.urlList.length;y.value=(G+se)%se}function ne(){T.value&&!o.infinite||H(y.value-1)}function X(){$.value&&!o.infinite||H(y.value+1)}function V(G,se={}){if(v.value)return;const{minScale:he,maxScale:pe}=o,{zoomRate:Be,rotateDeg:De,enableTransition:ze}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...se};switch(G){case"zoomOut":b.value.scale>he&&(b.value.scale=Number.parseFloat((b.value.scale/Be).toFixed(3)));break;case"zoomIn":b.value.scale<pe&&(b.value.scale=Number.parseFloat((b.value.scale*Be).toFixed(3)));break;case"clockwise":b.value.deg+=De,n("rotate",b.value.deg);break;case"anticlockwise":b.value.deg-=De,n("rotate",b.value.deg);break}b.value.enableTransition=ze}return at(P,()=>{zt(()=>{const G=d.value[0];G!=null&&G.complete||(v.value=!0)})}),at(y,G=>{ae(),n("switch",G)}),vn(()=>{var G,se;I(),(se=(G=u.value)==null?void 0:G.focus)==null||se.call(G)}),t({setActiveItem:H}),(G,se)=>(Z(),Fe(m(v0),{to:"body",disabled:!G.teleported},{default:ue(()=>[re(Pi,{name:"viewer-fade",appear:""},{default:ue(()=>[ve("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:J(m(s).e("wrapper")),style:Vt({zIndex:k.value})},[ve("div",{class:J(m(s).e("mask")),onClick:tn(he=>G.hideOnClickModal&&N(),["self"])},null,10,["onClick"]),je(" CLOSE "),ve("span",{class:J([m(s).e("btn"),m(s).e("close")]),onClick:N},[re(m(jt),null,{default:ue(()=>[re(m(el))]),_:1})],2),je(" ARROW "),m(C)?je("v-if",!0):(Z(),ce(Pt,{key:0},[ve("span",{class:J(m(A)),onClick:ne},[re(m(jt),null,{default:ue(()=>[re(m(qh))]),_:1})],2),ve("span",{class:J(m(R)),onClick:X},[re(m(jt),null,{default:ue(()=>[re(m(Ss))]),_:1})],2)],64)),je(" ACTIONS "),ve("div",{class:J([m(s).e("btn"),m(s).e("actions")])},[ve("div",{class:J(m(s).e("actions__inner"))},[re(m(jt),{onClick:he=>V("zoomOut")},{default:ue(()=>[re(m(awe))]),_:1},8,["onClick"]),re(m(jt),{onClick:he=>V("zoomIn")},{default:ue(()=>[re(m(CW))]),_:1},8,["onClick"]),ve("i",{class:J(m(s).e("actions__divider"))},null,2),re(m(jt),{onClick:K},{default:ue(()=>[(Z(),Fe(Dn(m(w).icon)))]),_:1}),ve("i",{class:J(m(s).e("actions__divider"))},null,2),re(m(jt),{onClick:he=>V("anticlockwise")},{default:ue(()=>[re(m(F1e))]),_:1},8,["onClick"]),re(m(jt),{onClick:he=>V("clockwise")},{default:ue(()=>[re(m(wW))]),_:1},8,["onClick"])],2)],2),je(" CANVAS "),ve("div",{class:J(m(s).e("canvas"))},[(Z(!0),ce(Pt,null,_n(G.urlList,(he,pe)=>yn((Z(),ce("img",{ref_for:!0,ref:Be=>d.value[pe]=Be,key:he,src:he,style:Vt(m(B)),class:J(m(s).e("img")),crossorigin:G.crossorigin,onLoad:L,onError:z,onMousedown:q},null,46,["src","crossorigin"])),[[hr,pe===y.value]])),128))],2),He(G.$slots,"default")],6)]),_:3})]),_:3},8,["disabled"]))}});var WMe=vt(QMe,[["__file","image-viewer.vue"]]);const qZ=pn(WMe),YMe=pt({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Ie([String,Object])},previewSrcList:{type:Ie(Array),default:()=>Oo([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:Ie(String)}}),ZMe={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>en(e),close:()=>!0,show:()=>!0},UMe=Se({name:"ElImage",inheritAttrs:!1}),HMe=Se({...UMe,props:YMe,emits:ZMe,setup(e,{emit:t}){const n=e;let r="";const{t:o}=rr(),i=lt("image"),a=vv(),s=W(()=>Ry(Object.entries(a).filter(([X])=>/^(data-|on[A-Z])/i.test(X)||["id","style"].includes(X)))),l=WI({excludeListeners:!0,excludeKeys:W(()=>Object.keys(s.value))}),u=ee(),d=ee(!1),p=ee(!0),v=ee(!1),y=ee(),w=ee(),b=tr&&"loading"in HTMLImageElement.prototype;let k,C;const T=W(()=>[i.e("inner"),P.value&&i.e("preview"),p.value&&i.is("loading")]),$=W(()=>{const{fit:X}=n;return tr&&X?{objectFit:X}:{}}),P=W(()=>{const{previewSrcList:X}=n;return Array.isArray(X)&&X.length>0}),A=W(()=>{const{previewSrcList:X,initialIndex:V}=n;let G=V;return V>X.length-1&&(G=0),G}),R=W(()=>n.loading==="eager"?!1:!b&&n.loading==="lazy"||n.lazy),B=()=>{!tr||(p.value=!0,d.value=!1,u.value=n.src)};function N(X){p.value=!1,d.value=!1,t("load",X)}function I(X){p.value=!1,d.value=!0,t("error",X)}function D(){dae(y.value,w.value)&&(B(),q())}const L=zz(D,200,!0);async function z(){var X;if(!tr)return;await zt();const{scrollContainer:V}=n;Rl(V)?w.value=V:Gt(V)&&V!==""?w.value=(X=document.querySelector(V))!=null?X:void 0:y.value&&(w.value=NI(y.value)),w.value&&(k=Ar(w,"scroll",L),setTimeout(()=>D(),100))}function q(){!tr||!w.value||!L||(k==null||k(),w.value=void 0)}function ae(X){if(!!X.ctrlKey){if(X.deltaY<0)return X.preventDefault(),!1;if(X.deltaY>0)return X.preventDefault(),!1}}function K(){!P.value||(C=Ar("wheel",ae,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",v.value=!0,t("show"))}function H(){C==null||C(),document.body.style.overflow=r,v.value=!1,t("close")}function ne(X){t("switch",X)}return at(()=>n.src,()=>{R.value?(p.value=!0,d.value=!1,q(),z()):B()}),vn(()=>{R.value?z():B()}),(X,V)=>(Z(),ce("div",In({ref_key:"container",ref:y},m(s),{class:[m(i).b(),X.$attrs.class]}),[d.value?He(X.$slots,"error",{key:0},()=>[ve("div",{class:J(m(i).e("error"))},ut(m(o)("el.image.error")),3)]):(Z(),ce(Pt,{key:1},[u.value!==void 0?(Z(),ce("img",In({key:0},m(l),{src:u.value,loading:X.loading,style:m($),class:m(T),crossorigin:X.crossorigin,onClick:K,onLoad:N,onError:I}),null,16,["src","loading","crossorigin"])):je("v-if",!0),p.value?(Z(),ce("div",{key:1,class:J(m(i).e("wrapper"))},[He(X.$slots,"placeholder",{},()=>[ve("div",{class:J(m(i).e("placeholder"))},null,2)])],2)):je("v-if",!0)],64)),m(P)?(Z(),ce(Pt,{key:2},[v.value?(Z(),Fe(m(qZ),{key:0,"z-index":X.zIndex,"initial-index":m(A),infinite:X.infinite,"zoom-rate":X.zoomRate,"min-scale":X.minScale,"max-scale":X.maxScale,"url-list":X.previewSrcList,crossorigin:X.crossorigin,"hide-on-click-modal":X.hideOnClickModal,teleported:X.previewTeleported,"close-on-press-escape":X.closeOnPressEscape,onClose:H,onSwitch:ne},{default:ue(()=>[X.$slots.viewer?(Z(),ce("div",{key:0},[He(X.$slots,"viewer")])):je("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):je("v-if",!0)],64)):je("v-if",!0)],16))}});var XMe=vt(HMe,[["__file","image.vue"]]);const GMe=pn(XMe),qMe=pt({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Ai,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||en(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...ha(["ariaLabel"])}),KMe={[ao]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[xs]:e=>en(e)||Vi(e),[En]:e=>en(e)||Vi(e)},JMe=Se({name:"ElInputNumber"}),eRe=Se({...JMe,props:qMe,emits:KMe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=rr(),i=lt("input-number"),a=ee(),s=nr({currentValue:r.modelValue,userInput:null}),{formItem:l}=as(),u=W(()=>en(r.modelValue)&&r.modelValue<=r.min),d=W(()=>en(r.modelValue)&&r.modelValue>=r.max),p=W(()=>{const K=C(r.step);return Bo(r.precision)?Math.max(C(r.modelValue),K):(K>r.precision,r.precision)}),v=W(()=>r.controls&&r.controlsPosition==="right"),y=bi(),w=Rs(),b=W(()=>{if(s.userInput!==null)return s.userInput;let K=s.currentValue;if(Vi(K))return"";if(en(K)){if(Number.isNaN(K))return"";Bo(r.precision)||(K=K.toFixed(r.precision))}return K}),k=(K,H)=>{if(Bo(H)&&(H=p.value),H===0)return Math.round(K);let ne=String(K);const X=ne.indexOf(".");if(X===-1||!ne.replace(".","").split("")[X+H])return K;const se=ne.length;return ne.charAt(se-1)==="5"&&(ne=`${ne.slice(0,Math.max(0,se-1))}6`),Number.parseFloat(Number(ne).toFixed(H))},C=K=>{if(Vi(K))return 0;const H=K.toString(),ne=H.indexOf(".");let X=0;return ne!==-1&&(X=H.length-ne-1),X},T=(K,H=1)=>en(K)?k(K+r.step*H):s.currentValue,$=()=>{if(r.readonly||w.value||d.value)return;const K=Number(b.value)||0,H=T(K);R(H),n(xs,s.currentValue),q()},P=()=>{if(r.readonly||w.value||u.value)return;const K=Number(b.value)||0,H=T(K,-1);R(H),n(xs,s.currentValue),q()},A=(K,H)=>{const{max:ne,min:X,step:V,precision:G,stepStrictly:se,valueOnClear:he}=r;ne<X&&$i("InputNumber","min should not be greater than max.");let pe=Number(K);if(Vi(K)||Number.isNaN(pe))return null;if(K===""){if(he===null)return null;pe=Gt(he)?{min:X,max:ne}[he]:he}return se&&(pe=k(Math.round(pe/V)*V,G)),Bo(G)||(pe=k(pe,G)),(pe>ne||pe<X)&&(pe=pe>ne?ne:X,H&&n(En,pe)),pe},R=(K,H=!0)=>{var ne;const X=s.currentValue,V=A(K);if(!H){n(En,V);return}X===V&&K||(s.userInput=null,n(En,V),X!==V&&n(ao,V,X),r.validateEvent&&((ne=l==null?void 0:l.validate)==null||ne.call(l,"change").catch(G=>void 0)),s.currentValue=V)},B=K=>{s.userInput=K;const H=K===""?null:Number(K);n(xs,H),R(H,!1)},N=K=>{const H=K!==""?Number(K):"";(en(H)&&!Number.isNaN(H)||K==="")&&R(H),q(),s.userInput=null},I=()=>{var K,H;(H=(K=a.value)==null?void 0:K.focus)==null||H.call(K)},D=()=>{var K,H;(H=(K=a.value)==null?void 0:K.blur)==null||H.call(K)},L=K=>{n("focus",K)},z=K=>{var H;s.userInput=null,n("blur",K),r.validateEvent&&((H=l==null?void 0:l.validate)==null||H.call(l,"blur").catch(ne=>void 0))},q=()=>{s.currentValue!==r.modelValue&&(s.currentValue=r.modelValue)},ae=K=>{document.activeElement===K.target&&K.preventDefault()};return at(()=>r.modelValue,(K,H)=>{const ne=A(K,!0);s.userInput===null&&ne!==H&&(s.currentValue=ne)},{immediate:!0}),vn(()=>{var K;const{min:H,max:ne,modelValue:X}=r,V=(K=a.value)==null?void 0:K.input;if(V.setAttribute("role","spinbutton"),Number.isFinite(ne)?V.setAttribute("aria-valuemax",String(ne)):V.removeAttribute("aria-valuemax"),Number.isFinite(H)?V.setAttribute("aria-valuemin",String(H)):V.removeAttribute("aria-valuemin"),V.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),V.setAttribute("aria-disabled",String(w.value)),!en(X)&&X!=null){let G=Number(X);Number.isNaN(G)&&(G=null),n(En,G)}V.addEventListener("wheel",ae,{passive:!1})}),gc(()=>{var K,H;const ne=(K=a.value)==null?void 0:K.input;ne==null||ne.setAttribute("aria-valuenow",`${(H=s.currentValue)!=null?H:""}`)}),t({focus:I,blur:D}),(K,H)=>(Z(),ce("div",{class:J([m(i).b(),m(i).m(m(y)),m(i).is("disabled",m(w)),m(i).is("without-controls",!K.controls),m(i).is("controls-right",m(v))]),onDragstart:tn(()=>{},["prevent"])},[K.controls?yn((Z(),ce("span",{key:0,role:"button","aria-label":m(o)("el.inputNumber.decrease"),class:J([m(i).e("decrease"),m(i).is("disabled",m(u))]),onKeydown:Vr(P,["enter"])},[He(K.$slots,"decrease-icon",{},()=>[re(m(jt),null,{default:ue(()=>[m(v)?(Z(),Fe(m(Cd),{key:0})):(Z(),Fe(m(A1e),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[m(Yk),P]]):je("v-if",!0),K.controls?yn((Z(),ce("span",{key:1,role:"button","aria-label":m(o)("el.inputNumber.increase"),class:J([m(i).e("increase"),m(i).is("disabled",m(d))]),onKeydown:Vr($,["enter"])},[He(K.$slots,"increase-icon",{},()=>[re(m(jt),null,{default:ue(()=>[m(v)?(Z(),Fe(m(DI),{key:0})):(Z(),Fe(m(Bk),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[m(Yk),$]]):je("v-if",!0),re(m(ei),{id:K.id,ref_key:"input",ref:a,type:"number",step:K.step,"model-value":m(b),placeholder:K.placeholder,readonly:K.readonly,disabled:m(w),size:m(y),max:K.max,min:K.min,name:K.name,"aria-label":K.ariaLabel,"validate-event":!1,onKeydown:[Vr(tn($,["prevent"]),["up"]),Vr(tn(P,["prevent"]),["down"])],onBlur:z,onFocus:L,onInput:B,onChange:N},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var tRe=vt(eRe,[["__file","input-number.vue"]]);const KZ=pn(tRe),nRe=pt({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Fr}}),rRe={click:e=>e instanceof MouseEvent},oRe=Se({name:"ElLink"}),iRe=Se({...oRe,props:nRe,emits:rRe,setup(e,{emit:t}){const n=e,r=lt("link"),o=W(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function i(a){n.disabled||t("click",a)}return(a,s)=>(Z(),ce("a",{class:J(m(o)),href:a.disabled||!a.href?void 0:a.href,target:a.disabled||!a.href?void 0:a.target,onClick:i},[a.icon?(Z(),Fe(m(jt),{key:0},{default:ue(()=>[(Z(),Fe(Dn(a.icon)))]),_:1})):je("v-if",!0),a.$slots.default?(Z(),ce("span",{key:1,class:J(m(r).e("inner"))},[He(a.$slots,"default")],2)):je("v-if",!0),a.$slots.icon?He(a.$slots,"icon",{key:2}):je("v-if",!0)],10,["href","target"]))}});var aRe=vt(iRe,[["__file","link.vue"]]);const sRe=pn(aRe);class lRe{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let o=!1;switch(r.code){case Qt.down:{this.gotoSubIndex(this.subIndex+1),o=!0;break}case Qt.up:{this.gotoSubIndex(this.subIndex-1),o=!0;break}case Qt.tab:{Hx(t,"mouseleave");break}case Qt.enter:case Qt.space:{o=!0,r.currentTarget.click();break}}return o&&(r.preventDefault(),r.stopPropagation()),!1})})}}class uRe{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new lRe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Qt.down:{Hx(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Qt.up:{Hx(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Qt.tab:{Hx(t.currentTarget,"mouseleave");break}case Qt.enter:case Qt.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class cRe{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new uRe(r,t)})}}const fRe=Se({name:"ElMenuCollapseTransition",setup(){const e=lt("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){gu(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){os(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Us(n,e.m("collapse"))?(os(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),gu(n,e.m("collapse"))):(gu(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),os(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){gu(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function dRe(e,t,n,r,o,i){return Z(),Fe(Pi,In({mode:"out-in"},e.listeners),{default:ue(()=>[He(e.$slots,"default")]),_:3},16)}var hRe=vt(fRe,[["render",dRe],["__file","menu-collapse-transition.vue"]]);function JZ(e,t){const n=W(()=>{let o=e.parent;const i=[t.value];for(;o.type.name!=="ElMenu";)o.props.index&&i.unshift(o.props.index),o=o.parent;return i});return{parentMenu:W(()=>{let o=e.parent;for(;o&&!["ElMenu","ElSubMenu"].includes(o.type.name);)o=o.parent;return o}),indexPath:n}}function pRe(e){return W(()=>{const n=e.backgroundColor;return n?new MY(n).shade(20).toString():""})}const eU=(e,t)=>{const n=lt("menu");return W(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":pRe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},gRe=pt({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Fr},expandOpenIcon:{type:Fr},collapseCloseIcon:{type:Fr},collapseOpenIcon:{type:Fr}}),Q$="ElSubMenu";var R3=Se({name:Q$,props:gRe,setup(e,{slots:t,expose:n}){const r=Cn(),{indexPath:o,parentMenu:i}=JZ(r,W(()=>e.index)),a=lt("menu"),s=lt("sub-menu"),l=Tt("rootMenu");l||$i(Q$,"can not inject root menu");const u=Tt(`subMenu:${i.value.uid}`);u||$i(Q$,"can not inject sub menu");const d=ee({}),p=ee({});let v;const y=ee(!1),w=ee(),b=ee(null),k=W(()=>N.value==="horizontal"&&T.value?"bottom-start":"right-start"),C=W(()=>N.value==="horizontal"&&T.value||N.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?R.value?e.expandOpenIcon:e.expandCloseIcon:Cd:e.collapseCloseIcon&&e.collapseOpenIcon?R.value?e.collapseOpenIcon:e.collapseCloseIcon:Ss),T=W(()=>u.level===0),$=W(()=>{const G=e.teleported;return G===void 0?T.value:G}),P=W(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),A=W(()=>N.value==="horizontal"&&T.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),R=W(()=>l.openedMenus.includes(e.index)),B=W(()=>{let G=!1;return Object.values(d.value).forEach(se=>{se.active&&(G=!0)}),Object.values(p.value).forEach(se=>{se.active&&(G=!0)}),G}),N=W(()=>l.props.mode),I=nr({index:e.index,indexPath:o,active:B}),D=eU(l.props,u.level+1),L=W(()=>{var G;return(G=e.popperOffset)!=null?G:l.props.popperOffset}),z=W(()=>{var G;return(G=e.popperClass)!=null?G:l.props.popperClass}),q=W(()=>{var G;return(G=e.showTimeout)!=null?G:l.props.showTimeout}),ae=W(()=>{var G;return(G=e.hideTimeout)!=null?G:l.props.hideTimeout}),K=()=>{var G,se,he;return(he=(se=(G=b.value)==null?void 0:G.popperRef)==null?void 0:se.popperInstanceRef)==null?void 0:he.destroy()},H=G=>{G||K()},ne=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:o.value,active:B.value})},X=(G,se=q.value)=>{var he;if(G.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,v==null||v(),{stop:v}=nv(()=>{l.openMenu(e.index,o.value)},se),$.value&&((he=i.value.vnode.el)==null||he.dispatchEvent(new MouseEvent("mouseenter")))}},V=(G=!1)=>{var se;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}v==null||v(),u.mouseInChild.value=!1,{stop:v}=nv(()=>!y.value&&l.closeMenu(e.index,o.value),ae.value),$.value&&G&&((se=u.handleMouseleave)==null||se.call(u,!0))};at(()=>l.props.collapse,G=>H(Boolean(G)));{const G=he=>{p.value[he.index]=he},se=he=>{delete p.value[he.index]};Wn(`subMenu:${r.uid}`,{addSubMenu:G,removeSubMenu:se,handleMouseleave:V,mouseInChild:y,level:u.level+1})}return n({opened:R}),vn(()=>{l.addSubMenu(I),u.addSubMenu(I)}),Ur(()=>{u.removeSubMenu(I),l.removeSubMenu(I)}),()=>{var G;const se=[(G=t.title)==null?void 0:G.call(t),Yt(jt,{class:s.e("icon-arrow"),style:{transform:R.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Gt(C.value)?Yt(r.appContext.components[C.value]):Yt(C.value)})],he=l.isMenuPopup?Yt(Fi,{ref:b,visible:R.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:!0,popperClass:z.value,placement:k.value,teleported:$.value,fallbackPlacements:A.value,transition:P.value,gpuAcceleration:!1},{content:()=>{var pe;return Yt("div",{class:[a.m(N.value),a.m("popup-container"),z.value],onMouseenter:Be=>X(Be,100),onMouseleave:()=>V(!0),onFocus:Be=>X(Be,100)},[Yt("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${k.value}`)],style:D.value},[(pe=t.default)==null?void 0:pe.call(t)])])},default:()=>Yt("div",{class:s.e("title"),onClick:ne},se)}):Yt(Pt,{},[Yt("div",{class:s.e("title"),ref:w,onClick:ne},se),Yt(DC,{},{default:()=>{var pe;return yn(Yt("ul",{role:"menu",class:[a.b(),a.m("inline")],style:D.value},[(pe=t.default)==null?void 0:pe.call(t)]),[[hr,R.value]])}})]);return Yt("li",{class:[s.b(),s.is("active",B.value),s.is("opened",R.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:R.value,onMouseenter:X,onMouseleave:()=>V(),onFocus:X},[he])}}});const vRe=pt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Ie(Array),default:()=>Oo([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Fr,default:()=>N1e},popperEffect:{type:Ie(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),W$=e=>Array.isArray(e)&&e.every(t=>Gt(t)),mRe={close:(e,t)=>Gt(e)&&W$(t),open:(e,t)=>Gt(e)&&W$(t),select:(e,t,n,r)=>Gt(e)&&W$(t)&&Pn(n)&&(r===void 0||r instanceof Promise)};var yRe=Se({name:"ElMenu",props:vRe,emits:mRe,setup(e,{emit:t,slots:n,expose:r}){const o=Cn(),i=o.appContext.config.globalProperties.$router,a=ee(),s=lt("menu"),l=lt("sub-menu"),u=ee(-1),d=ee(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=ee(e.defaultActive),v=ee({}),y=ee({}),w=W(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),b=()=>{const ae=p.value&&v.value[p.value];if(!ae||e.mode==="horizontal"||e.collapse)return;ae.indexPath.forEach(H=>{const ne=y.value[H];ne&&k(H,ne.indexPath)})},k=(ae,K)=>{d.value.includes(ae)||(e.uniqueOpened&&(d.value=d.value.filter(H=>K.includes(H))),d.value.push(ae),t("open",ae,K))},C=ae=>{const K=d.value.indexOf(ae);K!==-1&&d.value.splice(K,1)},T=(ae,K)=>{C(ae),t("close",ae,K)},$=({index:ae,indexPath:K})=>{d.value.includes(ae)?T(ae,K):k(ae,K)},P=ae=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:K,indexPath:H}=ae;if(!(Vi(K)||Vi(H)))if(e.router&&i){const ne=ae.route||K,X=i.push(ne).then(V=>(V||(p.value=K),V));t("select",K,H,{index:K,indexPath:H,route:ne},X)}else p.value=K,t("select",K,H,{index:K,indexPath:H})},A=ae=>{const K=v.value,H=K[ae]||p.value&&K[p.value]||K[e.defaultActive];H?p.value=H.index:p.value=ae},R=ae=>{const K=getComputedStyle(ae),H=Number.parseInt(K.marginLeft,10),ne=Number.parseInt(K.marginRight,10);return ae.offsetWidth+H+ne||0},B=()=>{var ae,K;if(!a.value)return-1;const H=Array.from((K=(ae=a.value)==null?void 0:ae.childNodes)!=null?K:[]).filter(Be=>Be.nodeName!=="#comment"&&(Be.nodeName!=="#text"||Be.nodeValue)),ne=64,X=getComputedStyle(a.value),V=Number.parseInt(X.paddingLeft,10),G=Number.parseInt(X.paddingRight,10),se=a.value.clientWidth-V-G;let he=0,pe=0;return H.forEach((Be,De)=>{he+=R(Be),he<=se-ne&&(pe=De+1)}),pe===H.length?-1:pe},N=ae=>y.value[ae].indexPath,I=(ae,K=33.34)=>{let H;return()=>{H&&clearTimeout(H),H=setTimeout(()=>{ae()},K)}};let D=!0;const L=()=>{if(u.value===B())return;const ae=()=>{u.value=-1,zt(()=>{u.value=B()})};D?ae():I(ae)(),D=!1};at(()=>e.defaultActive,ae=>{v.value[ae]||(p.value=""),A(ae)}),at(()=>e.collapse,ae=>{ae&&(d.value=[])}),at(v.value,b);let z;Ia(()=>{e.mode==="horizontal"&&e.ellipsis?z=_o(a,L).stop:z==null||z()});const q=ee(!1);{const ae=X=>{y.value[X.index]=X},K=X=>{delete y.value[X.index]};Wn("rootMenu",nr({props:e,openedMenus:d,items:v,subMenus:y,activeIndex:p,isMenuPopup:w,addMenuItem:X=>{v.value[X.index]=X},removeMenuItem:X=>{delete v.value[X.index]},addSubMenu:ae,removeSubMenu:K,openMenu:k,closeMenu:T,handleMenuItemClick:P,handleSubMenuClick:$})),Wn(`subMenu:${o.uid}`,{addSubMenu:ae,removeSubMenu:K,mouseInChild:q,level:0})}return vn(()=>{e.mode==="horizontal"&&new cRe(o.vnode.el,s.namespace.value)}),r({open:K=>{const{indexPath:H}=y.value[K];H.forEach(ne=>k(ne,H))},close:C,handleResize:L}),()=>{var ae,K;let H=(K=(ae=n.default)==null?void 0:ae.call(n))!=null?K:[];const ne=[];if(e.mode==="horizontal"&&a.value){const se=Lh(H),he=u.value===-1?se:se.slice(0,u.value),pe=u.value===-1?[]:se.slice(u.value);(pe==null?void 0:pe.length)&&e.ellipsis&&(H=he,ne.push(Yt(R3,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Yt(jt,{class:l.e("icon-more")},{default:()=>Yt(e.ellipsisIcon)}),default:()=>pe})))}const X=eU(e,0),V=e.closeOnClickOutside?[[hd,()=>{!d.value.length||q.value||(d.value.forEach(se=>t("close",se,N(se))),d.value=[])}]]:[],G=yn(Yt("ul",{key:String(e.collapse),role:"menubar",ref:a,style:X.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...H,...ne]),V);return e.collapseTransition&&e.mode==="vertical"?Yt(hRe,()=>G):G}}});const bRe=pt({index:{type:Ie([String,null]),default:null},route:{type:Ie([String,Object])},disabled:Boolean}),_Re={click:e=>Gt(e.index)&&Array.isArray(e.indexPath)},Y$="ElMenuItem",ORe=Se({name:Y$,components:{ElTooltip:Fi},props:bRe,emits:_Re,setup(e,{emit:t}){const n=Cn(),r=Tt("rootMenu"),o=lt("menu"),i=lt("menu-item");r||$i(Y$,"can not inject root menu");const{parentMenu:a,indexPath:s}=JZ(n,xr(e,"index")),l=Tt(`subMenu:${a.value.uid}`);l||$i(Y$,"can not inject sub menu");const u=W(()=>e.index===r.activeIndex),d=nr({index:e.index,indexPath:s,active:u}),p=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",d))};return vn(()=>{l.addSubMenu(d),r.addMenuItem(d)}),Ur(()=>{l.removeSubMenu(d),r.removeMenuItem(d)}),{parentMenu:a,rootMenu:r,active:u,nsMenu:o,nsMenuItem:i,handleClick:p}}});function wRe(e,t,n,r,o,i){const a=Tn("el-tooltip");return Z(),ce("li",{class:J([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(Z(),Fe(a,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:ue(()=>[He(e.$slots,"title")]),default:ue(()=>[ve("div",{class:J(e.nsMenu.be("tooltip","trigger"))},[He(e.$slots,"default")],2)]),_:3},8,["effect"])):(Z(),ce(Pt,{key:1},[He(e.$slots,"default"),He(e.$slots,"title")],64))],10,["onClick"])}var tU=vt(ORe,[["render",wRe],["__file","menu-item.vue"]]);const SRe={title:String},xRe="ElMenuItemGroup",kRe=Se({name:xRe,props:SRe,setup(){return{ns:lt("menu-item-group")}}});function CRe(e,t,n,r,o,i){return Z(),ce("li",{class:J(e.ns.b())},[ve("div",{class:J(e.ns.e("title"))},[e.$slots.title?He(e.$slots,"title",{key:1}):(Z(),ce(Pt,{key:0},[St(ut(e.title),1)],64))],2),ve("ul",null,[He(e.$slots,"default")])],2)}var nU=vt(kRe,[["render",CRe],["__file","menu-item-group.vue"]]);const ERe=pn(yRe,{MenuItem:tU,MenuItemGroup:nU,SubMenu:R3}),TRe=So(tU),PRe=So(nU),$Re=So(R3),ARe=pt({icon:{type:Fr,default:()=>n1e},title:String,content:{type:String,default:""}}),MRe={back:()=>!0},RRe=Se({name:"ElPageHeader"}),NRe=Se({...RRe,props:ARe,emits:MRe,setup(e,{emit:t}){const n=zi(),{t:r}=rr(),o=lt("page-header"),i=W(()=>[o.b(),{[o.m("has-breadcrumb")]:!!n.breadcrumb,[o.m("has-extra")]:!!n.extra,[o.is("contentful")]:!!n.default}]);function a(){t("back")}return(s,l)=>(Z(),ce("div",{class:J(m(i))},[s.$slots.breadcrumb?(Z(),ce("div",{key:0,class:J(m(o).e("breadcrumb"))},[He(s.$slots,"breadcrumb")],2)):je("v-if",!0),ve("div",{class:J(m(o).e("header"))},[ve("div",{class:J(m(o).e("left"))},[ve("div",{class:J(m(o).e("back")),role:"button",tabindex:"0",onClick:a},[s.icon||s.$slots.icon?(Z(),ce("div",{key:0,"aria-label":s.title||m(r)("el.pageHeader.title"),class:J(m(o).e("icon"))},[He(s.$slots,"icon",{},()=>[s.icon?(Z(),Fe(m(jt),{key:0},{default:ue(()=>[(Z(),Fe(Dn(s.icon)))]),_:1})):je("v-if",!0)])],10,["aria-label"])):je("v-if",!0),ve("div",{class:J(m(o).e("title"))},[He(s.$slots,"title",{},()=>[St(ut(s.title||m(r)("el.pageHeader.title")),1)])],2)],2),re(m(FZ),{direction:"vertical"}),ve("div",{class:J(m(o).e("content"))},[He(s.$slots,"content",{},()=>[St(ut(s.content),1)])],2)],2),s.$slots.extra?(Z(),ce("div",{key:0,class:J(m(o).e("extra"))},[He(s.$slots,"extra")],2)):je("v-if",!0)],2),s.$slots.default?(Z(),ce("div",{key:1,class:J(m(o).e("main"))},[He(s.$slots,"default")],2)):je("v-if",!0)],2))}});var IRe=vt(NRe,[["__file","page-header.vue"]]);const DRe=pn(IRe),rU=Symbol("elPaginationKey"),jRe=pt({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Fr}}),LRe={click:e=>e instanceof MouseEvent},BRe=Se({name:"ElPaginationPrev"}),VRe=Se({...BRe,props:jRe,emits:LRe,setup(e){const t=e,{t:n}=rr(),r=W(()=>t.disabled||t.currentPage<=1);return(o,i)=>(Z(),ce("button",{type:"button",class:"btn-prev",disabled:m(r),"aria-label":o.prevText||m(n)("el.pagination.prev"),"aria-disabled":m(r),onClick:a=>o.$emit("click",a)},[o.prevText?(Z(),ce("span",{key:0},ut(o.prevText),1)):(Z(),Fe(m(jt),{key:1},{default:ue(()=>[(Z(),Fe(Dn(o.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var FRe=vt(VRe,[["__file","prev.vue"]]);const zRe=pt({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Fr}}),QRe=Se({name:"ElPaginationNext"}),WRe=Se({...QRe,props:zRe,emits:["click"],setup(e){const t=e,{t:n}=rr(),r=W(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,i)=>(Z(),ce("button",{type:"button",class:"btn-next",disabled:m(r),"aria-label":o.nextText||m(n)("el.pagination.next"),"aria-disabled":m(r),onClick:a=>o.$emit("click",a)},[o.nextText?(Z(),ce("span",{key:0},ut(o.nextText),1)):(Z(),Fe(m(jt),{key:1},{default:ue(()=>[(Z(),Fe(Dn(o.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var YRe=vt(WRe,[["__file","next.vue"]]);const oU=Symbol("ElSelectGroup"),y0=Symbol("ElSelect");function ZRe(e,t){const n=Tt(y0),r=Tt(oU,{disabled:!1}),o=W(()=>d(Ma(n.props.modelValue),e.value)),i=W(()=>{var y;if(n.props.multiple){const w=Ma((y=n.props.modelValue)!=null?y:[]);return!o.value&&w.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=W(()=>e.label||(Pn(e.value)?"":e.value)),s=W(()=>e.value||e.label||""),l=W(()=>e.disabled||t.groupDisabled||i.value),u=Cn(),d=(y=[],w)=>{if(Pn(e.value)){const b=n.props.valueKey;return y&&y.some(k=>cr(Ao(k,b))===Ao(w,b))}else return y&&y.includes(w)},p=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},v=y=>{const w=new RegExp(RI(y),"i");t.visible=w.test(a.value)||e.created};return at(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),at(()=>e.value,(y,w)=>{const{remote:b,valueKey:k}=n.props;if(y!==w&&(n.onOptionDestroy(w,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!b){if(k&&Pn(y)&&Pn(w)&&y[k]===w[k])return;n.setSelected()}}),at(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:s,itemSelected:o,isDisabled:l,hoverItem:p,updateOption:v}}const URe=Se({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=lt("select"),n=ja(),r=W(()=>[t.be("dropdown","item"),t.is("disabled",m(s)),t.is("selected",m(a)),t.is("hovering",m(v))]),o=nr({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:a,isDisabled:s,select:l,hoverItem:u,updateOption:d}=ZRe(e,o),{visible:p,hover:v}=ea(o),y=Cn().proxy;l.onOptionCreate(y),Ur(()=>{const b=y.value,{selected:k}=l.states,T=(l.props.multiple?k:[k]).some($=>$.value===y.value);zt(()=>{l.states.cachedOptions.get(b)===y&&!T&&l.states.cachedOptions.delete(b)}),l.onOptionDestroy(b,y)});function w(){s.value||l.handleOptionSelect(y)}return{ns:t,id:n,containerKls:r,currentLabel:i,itemSelected:a,isDisabled:s,select:l,hoverItem:u,updateOption:d,visible:p,hover:v,selectOptionClick:w,states:o}}});function HRe(e,t,n,r,o,i){return yn((Z(),ce("li",{id:e.id,class:J(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:tn(e.selectOptionClick,["stop"])},[He(e.$slots,"default",{},()=>[ve("span",null,ut(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[hr,e.visible]])}var N3=vt(URe,[["render",HRe],["__file","option.vue"]]);const XRe=Se({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Tt(y0),t=lt("select"),n=W(()=>e.props.popperClass),r=W(()=>e.props.multiple),o=W(()=>e.props.fitInputWidth),i=ee("");function a(){var s;i.value=`${(s=e.selectRef)==null?void 0:s.offsetWidth}px`}return vn(()=>{a(),_o(e.selectRef,a)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function GRe(e,t,n,r,o,i){return Z(),ce("div",{class:J([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Vt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(Z(),ce("div",{key:0,class:J(e.ns.be("dropdown","header"))},[He(e.$slots,"header")],2)):je("v-if",!0),He(e.$slots,"default"),e.$slots.footer?(Z(),ce("div",{key:1,class:J(e.ns.be("dropdown","footer"))},[He(e.$slots,"footer")],2)):je("v-if",!0)],6)}var qRe=vt(XRe,[["render",GRe],["__file","select-dropdown.vue"]]);const KRe=11,JRe=(e,t)=>{const{t:n}=rr(),r=ja(),o=lt("select"),i=lt("input"),a=nr({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=ee(null),l=ee(null),u=ee(null),d=ee(null),p=ee(null),v=ee(null),y=ee(null),w=ee(null),b=ee(null),k=ee(null),C=ee(null),T=ee(null),{isComposing:$,handleCompositionStart:P,handleCompositionUpdate:A,handleCompositionEnd:R}=$C({afterComposition:wt=>Et(wt)}),{wrapperRef:B,isFocused:N,handleBlur:I}=C1(p,{afterFocus(){e.automaticDropdown&&!D.value&&(D.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(wt){var rn,Yn;return((rn=u.value)==null?void 0:rn.isFocusInsideContent(wt))||((Yn=d.value)==null?void 0:Yn.isFocusInsideContent(wt))},afterBlur(){D.value=!1,a.menuVisibleOnFocus=!1}}),D=ee(!1),L=ee(),{form:z,formItem:q}=as(),{inputId:ae}=bc(e,{formItemContext:q}),{valueOnClear:K,isEmptyValue:H}=AC(e),ne=W(()=>e.disabled||(z==null?void 0:z.disabled)),X=W(()=>xt(e.modelValue)?e.modelValue.length>0:!H(e.modelValue)),V=W(()=>e.clearable&&!ne.value&&a.inputHovering&&X.value),G=W(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),se=W(()=>o.is("reverse",G.value&&D.value)),he=W(()=>(q==null?void 0:q.validateState)||""),pe=W(()=>QI[he.value]),Be=W(()=>e.remote?300:0),De=W(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!a.inputValue&&a.options.size===0?!1:e.filterable&&a.inputValue&&a.options.size>0&&ze.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),ze=W(()=>$e.value.filter(wt=>wt.visible).length),$e=W(()=>{const wt=Array.from(a.options.values()),rn=[];return a.optionValues.forEach(Yn=>{const fr=wt.findIndex(Wi=>Wi.value===Yn);fr>-1&&rn.push(wt[fr])}),rn.length>=wt.length?rn:wt}),_e=W(()=>Array.from(a.cachedOptions.values())),me=W(()=>{const wt=$e.value.filter(rn=>!rn.created).some(rn=>rn.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!wt}),Re=()=>{e.filterable&&nn(e.filterMethod)||e.filterable&&e.remote&&nn(e.remoteMethod)||$e.value.forEach(wt=>{var rn;(rn=wt.updateOption)==null||rn.call(wt,a.inputValue)})},we=bi(),fe=W(()=>["small"].includes(we.value)?"small":"default"),oe=W({get(){return D.value&&De.value!==!1},set(wt){D.value=wt}}),ke=W(()=>{if(e.multiple&&!Bo(e.modelValue))return Ma(e.modelValue).length===0&&!a.inputValue;const wt=xt(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Bo(wt)?!a.inputValue:!0}),We=W(()=>{var wt;const rn=(wt=e.placeholder)!=null?wt:n("el.select.placeholder");return e.multiple||!X.value?rn:a.selectedLabel}),et=W(()=>x5?null:"mouseenter");at(()=>e.modelValue,(wt,rn)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",Ve("")),Ke(),!rs(wt,rn)&&e.validateEvent&&(q==null||q.validate("change").catch(Yn=>void 0))},{flush:"post",deep:!0}),at(()=>D.value,wt=>{wt?Ve(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",wt)}),at(()=>a.options.entries(),()=>{var wt;if(!tr)return;const rn=((wt=s.value)==null?void 0:wt.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Bo(e.modelValue)||!Array.from(rn).includes(document.activeElement))&&Ke(),e.defaultFirstOption&&(e.filterable||e.remote)&&ze.value&&Me()},{flush:"post"}),at(()=>a.hoveringIndex,wt=>{en(wt)&&wt>-1?L.value=$e.value[wt]||{}:L.value={},$e.value.forEach(rn=>{rn.hover=L.value===rn})}),Ia(()=>{a.isBeforeHide||Re()});const Ve=wt=>{a.previousQuery===wt||$.value||(a.previousQuery=wt,e.filterable&&nn(e.filterMethod)?e.filterMethod(wt):e.filterable&&e.remote&&nn(e.remoteMethod)&&e.remoteMethod(wt),e.defaultFirstOption&&(e.filterable||e.remote)&&ze.value?zt(Me):zt(qe))},Me=()=>{const wt=$e.value.filter(fr=>fr.visible&&!fr.disabled&&!fr.states.groupDisabled),rn=wt.find(fr=>fr.created),Yn=wt[0];a.hoveringIndex=rt($e.value,rn||Yn)},Ke=()=>{if(e.multiple)a.selectedLabel="";else{const rn=xt(e.modelValue)?e.modelValue[0]:e.modelValue,Yn=be(rn);a.selectedLabel=Yn.currentLabel,a.selected=Yn;return}const wt=[];Bo(e.modelValue)||Ma(e.modelValue).forEach(rn=>{wt.push(be(rn))}),a.selected=wt},be=wt=>{let rn;const Yn=Wx(wt).toLowerCase()==="object",fr=Wx(wt).toLowerCase()==="null",Wi=Wx(wt).toLowerCase()==="undefined";for(let Xo=a.cachedOptions.size-1;Xo>=0;Xo--){const fi=_e.value[Xo];if(Yn?Ao(fi.value,e.valueKey)===Ao(wt,e.valueKey):fi.value===wt){rn={value:wt,currentLabel:fi.currentLabel,get isDisabled(){return fi.isDisabled}};break}}if(rn)return rn;const oi=Yn?wt.label:!fr&&!Wi?wt:"";return{value:wt,currentLabel:oi}},qe=()=>{e.multiple?a.hoveringIndex=$e.value.findIndex(wt=>a.selected.some(rn=>ci(rn)===ci(wt))):a.hoveringIndex=$e.value.findIndex(wt=>ci(wt)===ci(a.selected))},ct=()=>{a.selectionWidth=l.value.getBoundingClientRect().width},Je=()=>{a.calculatorWidth=v.value.getBoundingClientRect().width},Xe=()=>{a.collapseItemWidth=C.value.getBoundingClientRect().width},gt=()=>{var wt,rn;(rn=(wt=u.value)==null?void 0:wt.updatePopper)==null||rn.call(wt)},Ct=()=>{var wt,rn;(rn=(wt=d.value)==null?void 0:wt.updatePopper)==null||rn.call(wt)},Zt=()=>{a.inputValue.length>0&&!D.value&&(D.value=!0),Ve(a.inputValue)},Et=wt=>{if(a.inputValue=wt.target.value,e.remote)ln();else return Zt()},ln=Ts(()=>{Zt()},Be.value),Ee=wt=>{rs(e.modelValue,wt)||t(ao,wt)},Ze=wt=>gC(wt,rn=>!a.disabledOptions.has(rn)),ye=wt=>{if(!!e.multiple&&wt.code!==Qt.delete&&wt.target.value.length<=0){const rn=Ma(e.modelValue).slice(),Yn=Ze(rn);if(Yn<0)return;const fr=rn[Yn];rn.splice(Yn,1),t(En,rn),Ee(rn),t("remove-tag",fr)}},Le=(wt,rn)=>{const Yn=a.selected.indexOf(rn);if(Yn>-1&&!ne.value){const fr=Ma(e.modelValue).slice();fr.splice(Yn,1),t(En,fr),Ee(fr),t("remove-tag",rn.value)}wt.stopPropagation(),Nt()},xe=wt=>{wt.stopPropagation();const rn=e.multiple?[]:K.value;if(e.multiple)for(const Yn of a.selected)Yn.isDisabled&&rn.push(Yn.value);t(En,rn),Ee(rn),a.hoveringIndex=-1,D.value=!1,t("clear"),Nt()},Ue=wt=>{var rn;if(e.multiple){const Yn=Ma((rn=e.modelValue)!=null?rn:[]).slice(),fr=rt(Yn,wt.value);fr>-1?Yn.splice(fr,1):(e.multipleLimit<=0||Yn.length<e.multipleLimit)&&Yn.push(wt.value),t(En,Yn),Ee(Yn),wt.created&&Ve(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(En,wt.value),Ee(wt.value),D.value=!1;Nt(),!D.value&&zt(()=>{Ft(wt)})},rt=(wt=[],rn)=>{if(!Pn(rn))return wt.indexOf(rn);const Yn=e.valueKey;let fr=-1;return wt.some((Wi,oi)=>cr(Ao(Wi,Yn))===Ao(rn,Yn)?(fr=oi,!0):!1),fr},Ft=wt=>{var rn,Yn,fr,Wi,oi;const Ho=xt(wt)?wt[0]:wt;let Xo=null;if(Ho!=null&&Ho.value){const fi=$e.value.filter(_t=>_t.value===Ho.value);fi.length>0&&(Xo=fi[0].$el)}if(u.value&&Xo){const fi=(Wi=(fr=(Yn=(rn=u.value)==null?void 0:rn.popperRef)==null?void 0:Yn.contentRef)==null?void 0:fr.querySelector)==null?void 0:Wi.call(fr,`.${o.be("dropdown","wrap")}`);fi&&II(fi,Xo)}(oi=T.value)==null||oi.handleScroll()},Vn=wt=>{a.options.set(wt.value,wt),a.cachedOptions.set(wt.value,wt),wt.disabled&&a.disabledOptions.set(wt.value,wt)},ot=(wt,rn)=>{a.options.get(wt)===rn&&a.options.delete(wt)},Lt=W(()=>{var wt,rn;return(rn=(wt=u.value)==null?void 0:wt.popperRef)==null?void 0:rn.contentRef}),wn=()=>{a.isBeforeHide=!1,zt(()=>Ft(a.selected))},Nt=()=>{var wt;(wt=p.value)==null||wt.focus()},Xt=()=>{Sn()},Ht=wt=>{xe(wt)},Sn=wt=>{if(D.value=!1,N.value){const rn=new FocusEvent("focus",wt);zt(()=>I(rn))}},Dr=()=>{a.inputValue.length>0?a.inputValue="":D.value=!1},eo=()=>{ne.value||(x5&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:D.value=!D.value)},ma=()=>{D.value?$e.value[a.hoveringIndex]&&Ue($e.value[a.hoveringIndex]):eo()},ci=wt=>Pn(wt.value)?Ao(wt.value,e.valueKey):wt.value,Va=W(()=>$e.value.filter(wt=>wt.visible).every(wt=>wt.disabled)),ya=W(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),$f=W(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),zl=wt=>{if(!D.value){D.value=!0;return}if(!(a.options.size===0||a.filteredOptionsCount===0||$.value)&&!Va.value){wt==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):wt==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const rn=$e.value[a.hoveringIndex];(rn.disabled===!0||rn.states.groupDisabled===!0||!rn.visible)&&zl(wt),zt(()=>Ft(L.value))}},Qi=()=>{if(!l.value)return 0;const wt=window.getComputedStyle(l.value);return Number.parseFloat(wt.gap||"6px")},sl=W(()=>{const wt=Qi();return{maxWidth:`${C.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-wt:a.selectionWidth}px`}}),bn=W(()=>({maxWidth:`${a.selectionWidth}px`})),wc=W(()=>({width:`${Math.max(a.calculatorWidth,KRe)}px`}));return _o(l,ct),_o(v,Je),_o(b,gt),_o(B,gt),_o(k,Ct),_o(C,Xe),vn(()=>{Ke()}),{inputId:ae,contentId:r,nsSelect:o,nsInput:i,states:a,isFocused:N,expanded:D,optionsArray:$e,hoverOption:L,selectSize:we,filteredOptionsCount:ze,resetCalculatorWidth:Je,updateTooltip:gt,updateTagTooltip:Ct,debouncedOnInputChange:ln,onInput:Et,deletePrevTag:ye,deleteTag:Le,deleteSelected:xe,handleOptionSelect:Ue,scrollToOption:Ft,hasModelValue:X,shouldShowPlaceholder:ke,currentPlaceholder:We,mouseEnterEventName:et,showClose:V,iconComponent:G,iconReverse:se,validateState:he,validateIcon:pe,showNewOption:me,updateOptions:Re,collapseTagSize:fe,setSelected:Ke,selectDisabled:ne,emptyText:De,handleCompositionStart:P,handleCompositionUpdate:A,handleCompositionEnd:R,onOptionCreate:Vn,onOptionDestroy:ot,handleMenuEnter:wn,focus:Nt,blur:Xt,handleClearClick:Ht,handleClickOutside:Sn,handleEsc:Dr,toggleMenu:eo,selectOption:ma,getValueKey:ci,navigateOptions:zl,dropdownMenuVisible:oe,showTagList:ya,collapseTagList:$f,tagStyle:sl,collapseTagStyle:bn,inputStyle:wc,popperRef:Lt,inputRef:p,tooltipRef:u,tagTooltipRef:d,calculatorRef:v,prefixRef:y,suffixRef:w,selectRef:s,wrapperRef:B,selectionRef:l,scrollbarRef:T,menuRef:b,tagMenuRef:k,collapseItemRef:C}};var eNe=Se({name:"ElOptions",setup(e,{slots:t}){const n=Tt(y0);let r=[];return()=>{var o,i;const a=(o=t.default)==null?void 0:o.call(t),s=[];function l(u){!xt(u)||u.forEach(d=>{var p,v,y,w;const b=(p=(d==null?void 0:d.type)||{})==null?void 0:p.name;b==="ElOptionGroup"?l(!Gt(d.children)&&!xt(d.children)&&nn((v=d.children)==null?void 0:v.default)?(y=d.children)==null?void 0:y.default():d.children):b==="ElOption"?s.push((w=d.props)==null?void 0:w.value):xt(d.children)&&l(d.children)})}return a.length&&l((i=a[0])==null?void 0:i.children),rs(s,r)||(r=s,n&&(n.states.optionValues=s)),a}}});const tNe=pt({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Ai,effect:{type:Ie(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Ie(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Xi.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Fr,default:_p},fitInputWidth:Boolean,suffixIcon:{type:Fr,default:Cd},tagType:{...cv.type,default:"info"},tagEffect:{...cv.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Ie(String),values:Ov,default:"bottom-start"},fallbackPlacements:{type:Ie(Array),default:["bottom-start","top-start","right","left"]},...g0,...ha(["ariaLabel"])}),K6="ElSelect",nNe=Se({name:K6,componentName:K6,components:{ElSelectMenu:qRe,ElOption:N3,ElOptions:eNe,ElTag:rp,ElScrollbar:_c,ElTooltip:Fi,ElIcon:jt},directives:{ClickOutside:hd},props:tNe,emits:[En,ao,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=JRe(e,t);return Wn(y0,nr({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}});function rNe(e,t,n,r,o,i){const a=Tn("el-tag"),s=Tn("el-tooltip"),l=Tn("el-icon"),u=Tn("el-option"),d=Tn("el-options"),p=Tn("el-scrollbar"),v=Tn("el-select-menu"),y=K2("click-outside");return yn((Z(),ce("div",{ref:"selectRef",class:J([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[B_(e.mouseEnterEventName)]:w=>e.states.inputHovering=!0,onMouseleave:w=>e.states.inputHovering=!1},[re(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:w=>e.states.isBeforeHide=!1},{default:ue(()=>{var w;return[ve("div",{ref:"wrapperRef",class:J([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:tn(e.toggleMenu,["prevent","stop"])},[e.$slots.prefix?(Z(),ce("div",{key:0,ref:"prefixRef",class:J(e.nsSelect.e("prefix"))},[He(e.$slots,"prefix")],2)):je("v-if",!0),ve("div",{ref:"selectionRef",class:J([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?He(e.$slots,"tag",{key:0},()=>[(Z(!0),ce(Pt,null,_n(e.showTagList,b=>(Z(),ce("div",{key:e.getValueKey(b),class:J(e.nsSelect.e("selected-item"))},[re(a,{closable:!e.selectDisabled&&!b.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Vt(e.tagStyle),onClose:k=>e.deleteTag(k,b)},{default:ue(()=>[ve("span",{class:J(e.nsSelect.e("tags-text"))},[He(e.$slots,"label",{label:b.currentLabel,value:b.value},()=>[St(ut(b.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(Z(),Fe(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ue(()=>[ve("div",{ref:"collapseItemRef",class:J(e.nsSelect.e("selected-item"))},[re(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Vt(e.collapseTagStyle)},{default:ue(()=>[ve("span",{class:J(e.nsSelect.e("tags-text"))}," + "+ut(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ue(()=>[ve("div",{ref:"tagMenuRef",class:J(e.nsSelect.e("selection"))},[(Z(!0),ce(Pt,null,_n(e.collapseTagList,b=>(Z(),ce("div",{key:e.getValueKey(b),class:J(e.nsSelect.e("selected-item"))},[re(a,{class:"in-tooltip",closable:!e.selectDisabled&&!b.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:k=>e.deleteTag(k,b)},{default:ue(()=>[ve("span",{class:J(e.nsSelect.e("tags-text"))},[He(e.$slots,"label",{label:b.currentLabel,value:b.value},()=>[St(ut(b.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):je("v-if",!0)]):je("v-if",!0),e.selectDisabled?je("v-if",!0):(Z(),ce("div",{key:1,class:J([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[yn(ve("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":b=>e.states.inputValue=b,type:"text",name:e.name,class:J([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Vt(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((w=e.hoverOption)==null?void 0:w.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[Vr(tn(b=>e.navigateOptions("next"),["stop","prevent"]),["down"]),Vr(tn(b=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),Vr(tn(e.handleEsc,["stop","prevent"]),["esc"]),Vr(tn(e.selectOption,["stop","prevent"]),["enter"]),Vr(tn(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:tn(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[AN,e.states.inputValue]]),e.filterable?(Z(),ce("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:J(e.nsSelect.e("input-calculator")),textContent:ut(e.states.inputValue)},null,10,["textContent"])):je("v-if",!0)],2)),e.shouldShowPlaceholder?(Z(),ce("div",{key:2,class:J([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?He(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[ve("span",null,ut(e.currentPlaceholder),1)]):(Z(),ce("span",{key:1},ut(e.currentPlaceholder),1))],2)):je("v-if",!0)],2),ve("div",{ref:"suffixRef",class:J(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(Z(),Fe(l,{key:0,class:J([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ue(()=>[(Z(),Fe(Dn(e.iconComponent)))]),_:1},8,["class"])):je("v-if",!0),e.showClose&&e.clearIcon?(Z(),Fe(l,{key:1,class:J([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:ue(()=>[(Z(),Fe(Dn(e.clearIcon)))]),_:1},8,["class","onClick"])):je("v-if",!0),e.validateState&&e.validateIcon?(Z(),Fe(l,{key:2,class:J([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:ue(()=>[(Z(),Fe(Dn(e.validateIcon)))]),_:1},8,["class"])):je("v-if",!0)],2)],10,["onClick"])]}),content:ue(()=>[re(v,{ref:"menuRef"},{default:ue(()=>[e.$slots.header?(Z(),ce("div",{key:0,class:J(e.nsSelect.be("dropdown","header")),onClick:tn(()=>{},["stop"])},[He(e.$slots,"header")],10,["onClick"])):je("v-if",!0),yn(re(p,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:J([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ue(()=>[e.showNewOption?(Z(),Fe(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):je("v-if",!0),re(d,null,{default:ue(()=>[He(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[hr,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(Z(),ce("div",{key:1,class:J(e.nsSelect.be("dropdown","loading"))},[He(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(Z(),ce("div",{key:2,class:J(e.nsSelect.be("dropdown","empty"))},[He(e.$slots,"empty",{},()=>[ve("span",null,ut(e.emptyText),1)])],2)):je("v-if",!0),e.$slots.footer?(Z(),ce("div",{key:3,class:J(e.nsSelect.be("dropdown","footer")),onClick:tn(()=>{},["stop"])},[He(e.$slots,"footer")],10,["onClick"])):je("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow","onHide"])],16,["onMouseleave"])),[[y,e.handleClickOutside,e.popperRef]])}var oNe=vt(nNe,[["render",rNe],["__file","select.vue"]]);const iNe=Se({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=lt("select"),n=ee(null),r=Cn(),o=ee([]);Wn(oU,nr({...ea(e)}));const i=W(()=>o.value.some(u=>u.visible===!0)),a=u=>{var d,p;return((d=u.type)==null?void 0:d.name)==="ElOption"&&!!((p=u.component)!=null&&p.proxy)},s=u=>{const d=Ma(u),p=[];return d.forEach(v=>{var y,w;a(v)?p.push(v.component.proxy):(y=v.children)!=null&&y.length?p.push(...s(v.children)):(w=v.component)!=null&&w.subTree&&p.push(...s(v.component.subTree))}),p},l=()=>{o.value=s(r.subTree)};return vn(()=>{l()}),Wz(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function aNe(e,t,n,r,o,i){return yn((Z(),ce("ul",{ref:"groupRef",class:J(e.ns.be("group","wrap"))},[ve("li",{class:J(e.ns.be("group","title"))},ut(e.label),3),ve("li",null,[ve("ul",{class:J(e.ns.b("group"))},[He(e.$slots,"default")],2)])],2)),[[hr,e.visible]])}var iU=vt(iNe,[["render",aNe],["__file","option-group.vue"]]);const dc=pn(oNe,{Option:N3,OptionGroup:iU}),op=So(N3),sNe=So(iU),I3=()=>Tt(rU,{}),lNe=pt({pageSize:{type:Number,required:!0},pageSizes:{type:Ie(Array),default:()=>Oo([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:wf}}),uNe=Se({name:"ElPaginationSizes"}),cNe=Se({...uNe,props:lNe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=rr(),o=lt("pagination"),i=I3(),a=ee(n.pageSize);at(()=>n.pageSizes,(u,d)=>{if(!rs(u,d)&&Array.isArray(u)){const p=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",p)}}),at(()=>n.pageSize,u=>{a.value=u});const s=W(()=>n.pageSizes);function l(u){var d;u!==a.value&&(a.value=u,(d=i.handleSizeChange)==null||d.call(i,Number(u)))}return(u,d)=>(Z(),ce("span",{class:J(m(o).e("sizes"))},[re(m(dc),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(m(s),p=>(Z(),Fe(m(op),{key:p,value:p,label:p+m(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var fNe=vt(cNe,[["__file","sizes.vue"]]);const dNe=pt({size:{type:String,values:wf}}),hNe=Se({name:"ElPaginationJumper"}),pNe=Se({...hNe,props:dNe,setup(e){const{t}=rr(),n=lt("pagination"),{pageCount:r,disabled:o,currentPage:i,changeEvent:a}=I3(),s=ee(),l=W(()=>{var p;return(p=s.value)!=null?p:i==null?void 0:i.value});function u(p){s.value=p?+p:""}function d(p){p=Math.trunc(+p),a==null||a(p),s.value=void 0}return(p,v)=>(Z(),ce("span",{class:J(m(n).e("jump")),disabled:m(o)},[ve("span",{class:J([m(n).e("goto")])},ut(m(t)("el.pagination.goto")),3),re(m(ei),{size:p.size,class:J([m(n).e("editor"),m(n).is("in-pagination")]),min:1,max:m(r),disabled:m(o),"model-value":m(l),"validate-event":!1,"aria-label":m(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),ve("span",{class:J([m(n).e("classifier")])},ut(m(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var gNe=vt(pNe,[["__file","jumper.vue"]]);const vNe=pt({total:{type:Number,default:1e3}}),mNe=Se({name:"ElPaginationTotal"}),yNe=Se({...mNe,props:vNe,setup(e){const{t}=rr(),n=lt("pagination"),{disabled:r}=I3();return(o,i)=>(Z(),ce("span",{class:J(m(n).e("total")),disabled:m(r)},ut(m(t)("el.pagination.total",{total:o.total})),11,["disabled"]))}});var bNe=vt(yNe,[["__file","total.vue"]]);const _Ne=pt({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),ONe=Se({name:"ElPaginationPager"}),wNe=Se({...ONe,props:_Ne,emits:["change"],setup(e,{emit:t}){const n=e,r=lt("pager"),o=lt("icon"),{t:i}=rr(),a=ee(!1),s=ee(!1),l=ee(!1),u=ee(!1),d=ee(!1),p=ee(!1),v=W(()=>{const P=n.pagerCount,A=(P-1)/2,R=Number(n.currentPage),B=Number(n.pageCount);let N=!1,I=!1;B>P&&(R>P-A&&(N=!0),R<B-A&&(I=!0));const D=[];if(N&&!I){const L=B-(P-2);for(let z=L;z<B;z++)D.push(z)}else if(!N&&I)for(let L=2;L<P;L++)D.push(L);else if(N&&I){const L=Math.floor(P/2)-1;for(let z=R-L;z<=R+L;z++)D.push(z)}else for(let L=2;L<B;L++)D.push(L);return D}),y=W(()=>["more","btn-quickprev",o.b(),r.is("disabled",n.disabled)]),w=W(()=>["more","btn-quicknext",o.b(),r.is("disabled",n.disabled)]),b=W(()=>n.disabled?-1:0);Ia(()=>{const P=(n.pagerCount-1)/2;a.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-P&&(a.value=!0),n.currentPage<n.pageCount-P&&(s.value=!0))});function k(P=!1){n.disabled||(P?l.value=!0:u.value=!0)}function C(P=!1){P?d.value=!0:p.value=!0}function T(P){const A=P.target;if(A.tagName.toLowerCase()==="li"&&Array.from(A.classList).includes("number")){const R=Number(A.textContent);R!==n.currentPage&&t("change",R)}else A.tagName.toLowerCase()==="li"&&Array.from(A.classList).includes("more")&&$(P)}function $(P){const A=P.target;if(A.tagName.toLowerCase()==="ul"||n.disabled)return;let R=Number(A.textContent);const B=n.pageCount,N=n.currentPage,I=n.pagerCount-2;A.className.includes("more")&&(A.className.includes("quickprev")?R=N-I:A.className.includes("quicknext")&&(R=N+I)),Number.isNaN(+R)||(R<1&&(R=1),R>B&&(R=B)),R!==N&&t("change",R)}return(P,A)=>(Z(),ce("ul",{class:J(m(r).b()),onClick:$,onKeyup:Vr(T,["enter"])},[P.pageCount>0?(Z(),ce("li",{key:0,class:J([[m(r).is("active",P.currentPage===1),m(r).is("disabled",P.disabled)],"number"]),"aria-current":P.currentPage===1,"aria-label":m(i)("el.pagination.currentPage",{pager:1}),tabindex:m(b)}," 1 ",10,["aria-current","aria-label","tabindex"])):je("v-if",!0),a.value?(Z(),ce("li",{key:1,class:J(m(y)),tabindex:m(b),"aria-label":m(i)("el.pagination.prevPages",{pager:P.pagerCount-2}),onMouseenter:R=>k(!0),onMouseleave:R=>l.value=!1,onFocus:R=>C(!0),onBlur:R=>d.value=!1},[(l.value||d.value)&&!P.disabled?(Z(),Fe(m(Kh),{key:0})):(Z(),Fe(m(Y_),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):je("v-if",!0),(Z(!0),ce(Pt,null,_n(m(v),R=>(Z(),ce("li",{key:R,class:J([[m(r).is("active",P.currentPage===R),m(r).is("disabled",P.disabled)],"number"]),"aria-current":P.currentPage===R,"aria-label":m(i)("el.pagination.currentPage",{pager:R}),tabindex:m(b)},ut(R),11,["aria-current","aria-label","tabindex"]))),128)),s.value?(Z(),ce("li",{key:2,class:J(m(w)),tabindex:m(b),"aria-label":m(i)("el.pagination.nextPages",{pager:P.pagerCount-2}),onMouseenter:R=>k(),onMouseleave:R=>u.value=!1,onFocus:R=>C(),onBlur:R=>p.value=!1},[(u.value||p.value)&&!P.disabled?(Z(),Fe(m(Jh),{key:0})):(Z(),Fe(m(Y_),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):je("v-if",!0),P.pageCount>1?(Z(),ce("li",{key:3,class:J([[m(r).is("active",P.currentPage===P.pageCount),m(r).is("disabled",P.disabled)],"number"]),"aria-current":P.currentPage===P.pageCount,"aria-label":m(i)("el.pagination.currentPage",{pager:P.pageCount}),tabindex:m(b)},ut(P.pageCount),11,["aria-current","aria-label","tabindex"])):je("v-if",!0)],42,["onKeyup"]))}});var SNe=vt(wNe,[["__file","pager.vue"]]);const ys=e=>typeof e!="number",xNe=pt({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>en(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Ie(Array),default:()=>Oo([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Fr,default:()=>qh},nextText:{type:String,default:""},nextIcon:{type:Fr,default:()=>Ss},teleported:{type:Boolean,default:!0},small:Boolean,size:Ai,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),kNe={"update:current-page":e=>en(e),"update:page-size":e=>en(e),"size-change":e=>en(e),change:(e,t)=>en(e)&&en(t),"current-change":e=>en(e),"prev-click":e=>en(e),"next-click":e=>en(e)},J6="ElPagination";var CNe=Se({name:J6,props:xNe,emits:kNe,setup(e,{emit:t,slots:n}){const{t:r}=rr(),o=lt("pagination"),i=Cn().vnode.props||{},a=W(()=>{var P;return e.small?"small":(P=e.size)!=null?P:lY().value});Bh({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},W(()=>!!e.small));const s="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,l="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,u=W(()=>{if(ys(e.total)&&ys(e.pageCount)||!ys(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes")){if(ys(e.pageCount)){if(!ys(e.total)&&!ys(e.pageSize)&&!l)return!1}else if(!l)return!1}return!0}),d=ee(ys(e.defaultPageSize)?10:e.defaultPageSize),p=ee(ys(e.defaultCurrentPage)?1:e.defaultCurrentPage),v=W({get(){return ys(e.pageSize)?d.value:e.pageSize},set(P){ys(e.pageSize)&&(d.value=P),l&&(t("update:page-size",P),t("size-change",P))}}),y=W(()=>{let P=0;return ys(e.pageCount)?ys(e.total)||(P=Math.max(1,Math.ceil(e.total/v.value))):P=e.pageCount,P}),w=W({get(){return ys(e.currentPage)?p.value:e.currentPage},set(P){let A=P;P<1?A=1:P>y.value&&(A=y.value),ys(e.currentPage)&&(p.value=A),s&&(t("update:current-page",A),t("current-change",A))}});at(y,P=>{w.value>P&&(w.value=P)}),at([w,v],P=>{t("change",...P)},{flush:"post"});function b(P){w.value=P}function k(P){v.value=P;const A=y.value;w.value>A&&(w.value=A)}function C(){e.disabled||(w.value-=1,t("prev-click",w.value))}function T(){e.disabled||(w.value+=1,t("next-click",w.value))}function $(P,A){P&&(P.props||(P.props={}),P.props.class=[P.props.class,A].join(" "))}return Wn(rU,{pageCount:y,disabled:W(()=>e.disabled),currentPage:w,changeEvent:b,handleSizeChange:k}),()=>{var P,A;if(!u.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&y.value<=1)return null;const R=[],B=[],N=Yt("div",{class:o.e("rightwrapper")},B),I={prev:Yt(FRe,{disabled:e.disabled,currentPage:w.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:C}),jumper:Yt(gNe,{size:a.value}),pager:Yt(SNe,{currentPage:w.value,pageCount:y.value,pagerCount:e.pagerCount,onChange:b,disabled:e.disabled}),next:Yt(YRe,{disabled:e.disabled,currentPage:w.value,pageCount:y.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:T}),sizes:Yt(fNe,{pageSize:v.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:a.value}),slot:(A=(P=n==null?void 0:n.default)==null?void 0:P.call(n))!=null?A:null,total:Yt(bNe,{total:ys(e.total)?0:e.total})},D=e.layout.split(",").map(z=>z.trim());let L=!1;return D.forEach(z=>{if(z==="->"){L=!0;return}L?B.push(I[z]):R.push(I[z])}),$(R[0],o.is("first")),$(R[R.length-1],o.is("last")),L&&B.length>0&&($(B[0],o.is("first")),$(B[B.length-1],o.is("last")),R.push(N)),Yt("div",{class:[o.b(),o.is("background",e.background),o.m(a.value)]},R)}}});const D3=pn(CNe),ENe=pt({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:vM,default:"primary"},cancelButtonType:{type:String,values:vM,default:"text"},icon:{type:Fr,default:()=>B1e},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Xi.teleported,persistent:Xi.persistent,width:{type:[String,Number],default:150}}),TNe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},PNe=Se({name:"ElPopconfirm"}),$Ne=Se({...PNe,props:ENe,emits:TNe,setup(e,{emit:t}){const n=e,{t:r}=rr(),o=lt("popconfirm"),i=ee(),a=()=>{var v,y;(y=(v=i.value)==null?void 0:v.onClose)==null||y.call(v)},s=W(()=>({width:Vo(n.width)})),l=v=>{t("confirm",v),a()},u=v=>{t("cancel",v),a()},d=W(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),p=W(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(v,y)=>(Z(),Fe(m(Fi),In({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},v.$attrs,{"popper-class":`${m(o).namespace.value}-popover`,"popper-style":m(s),teleported:v.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":v.hideAfter,persistent:v.persistent}),{content:ue(()=>[ve("div",{class:J(m(o).b())},[ve("div",{class:J(m(o).e("main"))},[!v.hideIcon&&v.icon?(Z(),Fe(m(jt),{key:0,class:J(m(o).e("icon")),style:Vt({color:v.iconColor})},{default:ue(()=>[(Z(),Fe(Dn(v.icon)))]),_:1},8,["class","style"])):je("v-if",!0),St(" "+ut(v.title),1)],2),ve("div",{class:J(m(o).e("action"))},[re(m(no),{size:"small",type:v.cancelButtonType==="text"?"":v.cancelButtonType,text:v.cancelButtonType==="text",onClick:u},{default:ue(()=>[St(ut(m(p)),1)]),_:1},8,["type","text"]),re(m(no),{size:"small",type:v.confirmButtonType==="text"?"":v.confirmButtonType,text:v.confirmButtonType==="text",onClick:l},{default:ue(()=>[St(ut(m(d)),1)]),_:1},8,["type","text"])],2)],2)]),default:ue(()=>[v.$slots.reference?He(v.$slots,"reference",{key:0}):je("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var ANe=vt($Ne,[["__file","popconfirm.vue"]]);const MNe=pn(ANe),RNe=pt({trigger:AO.trigger,placement:sk.placement,disabled:AO.disabled,visible:Xi.visible,transition:Xi.transition,popperOptions:sk.popperOptions,tabindex:sk.tabindex,content:Xi.content,popperStyle:Xi.popperStyle,popperClass:Xi.popperClass,enterable:{...Xi.enterable,default:!0},effect:{...Xi.effect,default:"light"},teleported:Xi.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),NNe={"update:visible":e=>Uo(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},INe="onUpdate:visible",DNe=Se({name:"ElPopover"}),jNe=Se({...DNe,props:RNe,emits:NNe,setup(e,{expose:t,emit:n}){const r=e,o=W(()=>r[INe]),i=lt("popover"),a=ee(),s=W(()=>{var k;return(k=m(a))==null?void 0:k.popperRef}),l=W(()=>[{width:Vo(r.width)},r.popperStyle]),u=W(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),d=W(()=>r.transition===`${i.namespace.value}-fade-in-linear`),p=()=>{var k;(k=a.value)==null||k.hide()},v=()=>{n("before-enter")},y=()=>{n("before-leave")},w=()=>{n("after-enter")},b=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:s,hide:p}),(k,C)=>(Z(),Fe(m(Fi),In({ref_key:"tooltipRef",ref:a},k.$attrs,{trigger:k.trigger,placement:k.placement,disabled:k.disabled,visible:k.visible,transition:k.transition,"popper-options":k.popperOptions,tabindex:k.tabindex,content:k.content,offset:k.offset,"show-after":k.showAfter,"hide-after":k.hideAfter,"auto-close":k.autoClose,"show-arrow":k.showArrow,"aria-label":k.title,effect:k.effect,enterable:k.enterable,"popper-class":m(u),"popper-style":m(l),teleported:k.teleported,persistent:k.persistent,"gpu-acceleration":m(d),"onUpdate:visible":m(o),onBeforeShow:v,onBeforeHide:y,onShow:w,onHide:b}),{content:ue(()=>[k.title?(Z(),ce("div",{key:0,class:J(m(i).e("title")),role:"title"},ut(k.title),3)):je("v-if",!0),He(k.$slots,"default",{},()=>[St(ut(k.content),1)])]),default:ue(()=>[k.$slots.reference?He(k.$slots,"reference",{key:0}):je("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var LNe=vt(jNe,[["__file","popover.vue"]]);const eB=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var BNe={mounted(e,t){eB(e,t)},updated(e,t){eB(e,t)}};const VNe="popover",aU=lwe(BNe,VNe),FNe=pn(LNe,{directive:aU}),zNe=pt({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Ie(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Ie([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Ie(Function),default:e=>`${e}%`}}),QNe=Se({name:"ElProgress"}),WNe=Se({...QNe,props:zNe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=lt("progress"),o=W(()=>{const $={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},P=T(t.percentage);return P.includes("gradient")?$.background=P:$.backgroundColor=P,$}),i=W(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=W(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=W(()=>{const $=a.value,P=t.type==="dashboard";return`
  67. M 50 50
  68. m 0 ${P?"":"-"}${$}
  69. a ${$} ${$} 0 1 1 0 ${P?"-":""}${$*2}
  70. a ${$} ${$} 0 1 1 0 ${P?"":"-"}${$*2}
  71. `}),l=W(()=>2*Math.PI*a.value),u=W(()=>t.type==="dashboard"?.75:1),d=W(()=>`${-1*l.value*(1-u.value)/2}px`),p=W(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:d.value})),v=W(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),y=W(()=>{let $;return t.color?$=T(t.percentage):$=n[t.status]||n.default,$}),w=W(()=>t.status==="warning"?xC:t.type==="line"?t.status==="success"?LI:_p:t.status==="success"?h0:el),b=W(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),k=W(()=>t.format(t.percentage));function C($){const P=100/$.length;return $.map((R,B)=>Gt(R)?{color:R,percentage:(B+1)*P}:R).sort((R,B)=>R.percentage-B.percentage)}const T=$=>{var P;const{color:A}=t;if(nn(A))return A($);if(Gt(A))return A;{const R=C(A);for(const B of R)if(B.percentage>$)return B.color;return(P=R[R.length-1])==null?void 0:P.color}};return($,P)=>(Z(),ce("div",{class:J([m(r).b(),m(r).m($.type),m(r).is($.status),{[m(r).m("without-text")]:!$.showText,[m(r).m("text-inside")]:$.textInside}]),role:"progressbar","aria-valuenow":$.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[$.type==="line"?(Z(),ce("div",{key:0,class:J(m(r).b("bar"))},[ve("div",{class:J(m(r).be("bar","outer")),style:Vt({height:`${$.strokeWidth}px`})},[ve("div",{class:J([m(r).be("bar","inner"),{[m(r).bem("bar","inner","indeterminate")]:$.indeterminate},{[m(r).bem("bar","inner","striped")]:$.striped},{[m(r).bem("bar","inner","striped-flow")]:$.stripedFlow}]),style:Vt(m(o))},[($.showText||$.$slots.default)&&$.textInside?(Z(),ce("div",{key:0,class:J(m(r).be("bar","innerText"))},[He($.$slots,"default",{percentage:$.percentage},()=>[ve("span",null,ut(m(k)),1)])],2)):je("v-if",!0)],6)],6)],2)):(Z(),ce("div",{key:1,class:J(m(r).b("circle")),style:Vt({height:`${$.width}px`,width:`${$.width}px`})},[(Z(),ce("svg",{viewBox:"0 0 100 100"},[ve("path",{class:J(m(r).be("circle","track")),d:m(s),stroke:`var(${m(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":$.strokeLinecap,"stroke-width":m(i),fill:"none",style:Vt(m(p))},null,14,["d","stroke","stroke-linecap","stroke-width"]),ve("path",{class:J(m(r).be("circle","path")),d:m(s),stroke:m(y),fill:"none",opacity:$.percentage?1:0,"stroke-linecap":$.strokeLinecap,"stroke-width":m(i),style:Vt(m(v))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),($.showText||$.$slots.default)&&!$.textInside?(Z(),ce("div",{key:2,class:J(m(r).e("text")),style:Vt({fontSize:`${m(b)}px`})},[He($.$slots,"default",{percentage:$.percentage},()=>[$.status?(Z(),Fe(m(jt),{key:1},{default:ue(()=>[(Z(),Fe(Dn(m(w))))]),_:1})):(Z(),ce("span",{key:0},ut(m(k)),1))])],6)):je("v-if",!0)],10,["aria-valuenow"]))}});var YNe=vt(WNe,[["__file","progress.vue"]]);const sU=pn(YNe),ZNe=pt({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Ie([Array,Object]),default:()=>Oo(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Ie([Array,Object]),default:()=>[sx,sx,sx]},voidIcon:{type:Fr,default:()=>ewe},disabledVoidIcon:{type:Fr,default:()=>sx},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Ie(Array),default:()=>Oo(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Ai,clearable:Boolean,...ha(["ariaLabel"])}),UNe={[ao]:e=>en(e),[En]:e=>en(e)},HNe=Se({name:"ElRate"}),XNe=Se({...HNe,props:ZNe,emits:UNe,setup(e,{expose:t,emit:n}){const r=e;function o(H,ne){const X=se=>Pn(se),V=Object.keys(ne).map(se=>+se).filter(se=>{const he=ne[se];return(X(he)?he.excluded:!1)?H<se:H<=se}).sort((se,he)=>se-he),G=ne[V[0]];return X(G)&&G.value||G}const i=Tt(wv,void 0),a=Tt(hf,void 0),s=bi(),l=lt("rate"),{inputId:u,isLabeledByFormItem:d}=bc(r,{formItemContext:a}),p=ee(r.modelValue),v=ee(-1),y=ee(!0),w=W(()=>[l.b(),l.m(s.value)]),b=W(()=>r.disabled||(i==null?void 0:i.disabled)),k=W(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":P.value})),C=W(()=>{let H="";return r.showScore?H=r.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${r.modelValue}`:`${p.value}`):r.showText&&(H=r.texts[Math.ceil(p.value)-1]),H}),T=W(()=>r.modelValue*100-Math.floor(r.modelValue)*100),$=W(()=>xt(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),P=W(()=>{const H=o(p.value,$.value);return Pn(H)?"":H}),A=W(()=>{let H="";return b.value?H=`${T.value}%`:r.allowHalf&&(H="50%"),{color:P.value,width:H}}),R=W(()=>{let H=xt(r.icons)?[...r.icons]:{...r.icons};return H=sd(H),xt(H)?{[r.lowThreshold]:H[0],[r.highThreshold]:{value:H[1],excluded:!0},[r.max]:H[2]}:H}),B=W(()=>o(r.modelValue,R.value)),N=W(()=>b.value?Gt(r.disabledVoidIcon)?r.disabledVoidIcon:sd(r.disabledVoidIcon):Gt(r.voidIcon)?r.voidIcon:sd(r.voidIcon)),I=W(()=>o(p.value,R.value));function D(H){const ne=b.value&&T.value>0&&H-1<r.modelValue&&H>r.modelValue,X=r.allowHalf&&y.value&&H-.5<=p.value&&H>p.value;return ne||X}function L(H){r.clearable&&H===r.modelValue&&(H=0),n(En,H),r.modelValue!==H&&n("change",H)}function z(H){b.value||(r.allowHalf&&y.value?L(p.value):L(H))}function q(H){if(b.value)return;let ne=p.value;const X=H.code;return X===Qt.up||X===Qt.right?(r.allowHalf?ne+=.5:ne+=1,H.stopPropagation(),H.preventDefault()):(X===Qt.left||X===Qt.down)&&(r.allowHalf?ne-=.5:ne-=1,H.stopPropagation(),H.preventDefault()),ne=ne<0?0:ne,ne=ne>r.max?r.max:ne,n(En,ne),n("change",ne),ne}function ae(H,ne){if(!b.value){if(r.allowHalf&&ne){let X=ne.target;Us(X,l.e("item"))&&(X=X.querySelector(`.${l.e("icon")}`)),(X.clientWidth===0||Us(X,l.e("decimal")))&&(X=X.parentNode),y.value=ne.offsetX*2<=X.clientWidth,p.value=y.value?H-.5:H}else p.value=H;v.value=H}}function K(){b.value||(r.allowHalf&&(y.value=r.modelValue!==Math.floor(r.modelValue)),p.value=r.modelValue,v.value=-1)}return at(()=>r.modelValue,H=>{p.value=H,y.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(En,0),t({setCurrentValue:ae,resetCurrentValue:K}),(H,ne)=>{var X;return Z(),ce("div",{id:m(u),class:J([m(w),m(l).is("disabled",m(b))]),role:"slider","aria-label":m(d)?void 0:H.ariaLabel||"rating","aria-labelledby":m(d)?(X=m(a))==null?void 0:X.labelId:void 0,"aria-valuenow":p.value,"aria-valuetext":m(C)||void 0,"aria-valuemin":"0","aria-valuemax":H.max,tabindex:"0",style:Vt(m(k)),onKeydown:q},[(Z(!0),ce(Pt,null,_n(H.max,(V,G)=>(Z(),ce("span",{key:G,class:J(m(l).e("item")),onMousemove:se=>ae(V,se),onMouseleave:K,onClick:se=>z(V)},[re(m(jt),{class:J([m(l).e("icon"),{hover:v.value===V},m(l).is("active",V<=p.value)])},{default:ue(()=>[D(V)?je("v-if",!0):(Z(),ce(Pt,{key:0},[yn((Z(),Fe(Dn(m(I)),null,null,512)),[[hr,V<=p.value]]),yn((Z(),Fe(Dn(m(N)),null,null,512)),[[hr,!(V<=p.value)]])],64)),D(V)?(Z(),ce(Pt,{key:1},[(Z(),Fe(Dn(m(N)),{class:J([m(l).em("decimal","box")])},null,8,["class"])),re(m(jt),{style:Vt(m(A)),class:J([m(l).e("icon"),m(l).e("decimal")])},{default:ue(()=>[(Z(),Fe(Dn(m(B))))]),_:1},8,["style","class"])],64)):je("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),H.showText||H.showScore?(Z(),ce("span",{key:0,class:J(m(l).e("text")),style:Vt({color:H.textColor})},ut(m(C)),7)):je("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var GNe=vt(XNe,[["__file","rate.vue"]]);const qNe=pn(GNe),ny={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},tB={[ny.success]:c1e,[ny.warning]:xC,[ny.error]:BI,[ny.info]:VI},KNe=pt({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),JNe=Se({name:"ElResult"}),eIe=Se({...JNe,props:KNe,setup(e){const t=e,n=lt("result"),r=W(()=>{const o=t.icon,i=o&&ny[o]?ny[o]:"icon-info",a=tB[i]||tB["icon-info"];return{class:i,component:a}});return(o,i)=>(Z(),ce("div",{class:J(m(n).b())},[ve("div",{class:J(m(n).e("icon"))},[He(o.$slots,"icon",{},()=>[m(r).component?(Z(),Fe(Dn(m(r).component),{key:0,class:J(m(r).class)},null,8,["class"])):je("v-if",!0)])],2),o.title||o.$slots.title?(Z(),ce("div",{key:0,class:J(m(n).e("title"))},[He(o.$slots,"title",{},()=>[ve("p",null,ut(o.title),1)])],2)):je("v-if",!0),o.subTitle||o.$slots["sub-title"]?(Z(),ce("div",{key:1,class:J(m(n).e("subtitle"))},[He(o.$slots,"sub-title",{},()=>[ve("p",null,ut(o.subTitle),1)])],2)):je("v-if",!0),o.$slots.extra?(Z(),ce("div",{key:2,class:J(m(n).e("extra"))},[He(o.$slots,"extra")],2)):je("v-if",!0)],2))}});var tIe=vt(eIe,[["__file","result.vue"]]);const nIe=pn(tIe);var nB=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rIe(e,t){return!!(e===t||nB(e)&&nB(t))}function oIe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!rIe(e[n],t[n]))return!1;return!0}function iIe(e,t){t===void 0&&(t=oIe);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}const lU=()=>{const t=Cn().proxy.$props;return W(()=>{const n=(r,o,i)=>({});return t.perfMode?h1(n):iIe(n)})},IM=50,Uk="itemRendered",Hk="scroll",ry="forward",Xk="backward",vu="auto",BC="smart",RO="start",nf="center",NO="end",Wy="horizontal",j3="vertical",aIe="ltr",yy="rtl",IO="negative",L3="positive-ascending",B3="positive-descending",sIe={[Wy]:"left",[j3]:"top"},lIe=20,uIe={[Wy]:"deltaX",[j3]:"deltaY"},cIe=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let o,i=0;const a=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:a,onWheel:l=>{sv(o);const u=l[uIe[n.value]];a(i)&&a(i+u)||(i+=u,NN()||l.preventDefault(),o=Gh(()=>{r(i),i=0}))}}},DM=mc({type:Ie([Number,Function]),required:!0}),jM=mc({type:Number}),LM=mc({type:Number,default:2}),fIe=mc({type:String,values:["ltr","rtl"],default:"ltr"}),BM=mc({type:Number,default:0}),Gk=mc({type:Number,required:!0}),uU=mc({type:String,values:["horizontal","vertical"],default:j3}),cU=pt({className:{type:String,default:""},containerElement:{type:Ie([String,Object]),default:"div"},data:{type:Ie(Array),default:()=>Oo([])},direction:fIe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:Ie([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),fU=pt({cache:LM,estimatedItemSize:jM,layout:uU,initScrollOffset:BM,total:Gk,itemSize:DM,...cU}),VM={type:Number,default:6},dU={type:Number,default:0},hU={type:Number,default:2},Gg=pt({columnCache:LM,columnWidth:DM,estimatedColumnWidth:jM,estimatedRowHeight:jM,initScrollLeft:BM,initScrollTop:BM,itemKey:{type:Ie(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:LM,rowHeight:DM,totalColumn:Gk,totalRow:Gk,hScrollbarSize:VM,vScrollbarSize:VM,scrollbarStartGap:dU,scrollbarEndGap:hU,role:String,...cU}),pU=pt({alwaysOn:Boolean,class:String,layout:uU,total:Gk,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:VM,startGap:dU,endGap:hU,visible:Boolean}),Fg=(e,t)=>e<t?ry:Xk,DO=e=>e===aIe||e===yy||e===Wy,rB=e=>e===yy;let Wm=null;function qk(e=!1){if(Wm===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Wm=B3:(t.scrollLeft=1,t.scrollLeft===0?Wm=IO:Wm=L3),document.body.removeChild(t),Wm}return Wm}function dIe({move:e,size:t,bar:n},r){const o={},i=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=i,o.msTransform=i,o.webkitTransform=i,r==="horizontal"?o.height="100%":o.width="100%",o}const FM=Se({name:"ElVirtualScrollBar",props:pU,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=W(()=>e.startGap+e.endGap),r=lt("virtual-scrollbar"),o=lt("scrollbar"),i=ee(),a=ee();let s=null,l=null;const u=nr({isDragging:!1,traveled:0}),d=W(()=>gY[e.layout]),p=W(()=>e.clientSize-m(n)),v=W(()=>({position:"absolute",width:`${Wy===e.layout?p.value:e.scrollbarSize}px`,height:`${Wy===e.layout?e.scrollbarSize:p.value}px`,[sIe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),y=W(()=>{const R=e.ratio,B=e.clientSize;if(R>=100)return Number.POSITIVE_INFINITY;if(R>=50)return R*B/100;const N=B/3;return Math.floor(Math.min(Math.max(R*B,lIe),N))}),w=W(()=>{if(!Number.isFinite(y.value))return{display:"none"};const R=`${y.value}px`;return dIe({bar:d.value,size:R,move:u.traveled},e.layout)}),b=W(()=>Math.floor(e.clientSize-y.value-m(n))),k=()=>{window.addEventListener("mousemove",P),window.addEventListener("mouseup",$);const R=m(a);!R||(l=document.onselectstart,document.onselectstart=()=>!1,R.addEventListener("touchmove",P,{passive:!0}),R.addEventListener("touchend",$))},C=()=>{window.removeEventListener("mousemove",P),window.removeEventListener("mouseup",$),document.onselectstart=l,l=null;const R=m(a);!R||(R.removeEventListener("touchmove",P),R.removeEventListener("touchend",$))},T=R=>{R.stopImmediatePropagation(),!(R.ctrlKey||[1,2].includes(R.button))&&(u.isDragging=!0,u[d.value.axis]=R.currentTarget[d.value.offset]-(R[d.value.client]-R.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),k())},$=()=>{u.isDragging=!1,u[d.value.axis]=0,t("stop-move"),C()},P=R=>{const{isDragging:B}=u;if(!B||!a.value||!i.value)return;const N=u[d.value.axis];if(!N)return;sv(s);const I=(i.value.getBoundingClientRect()[d.value.direction]-R[d.value.client])*-1,D=a.value[d.value.offset]-N,L=I-D;s=Gh(()=>{u.traveled=Math.max(e.startGap,Math.min(L,b.value)),t("scroll",L,b.value)})},A=R=>{const B=Math.abs(R.target.getBoundingClientRect()[d.value.direction]-R[d.value.client]),N=a.value[d.value.offset]/2,I=B-N;u.traveled=Math.max(0,Math.min(I,b.value)),t("scroll",I,b.value)};return at(()=>e.scrollFrom,R=>{u.isDragging||(u.traveled=Math.ceil(R*b.value))}),Ur(()=>{C()}),()=>Yt("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:v.value,onMousedown:tn(A,["stop","prevent"]),onTouchstartPrevent:T},Yt("div",{ref:a,class:o.e("thumb"),style:w.value,onMousedown:T},[]))}}),gU=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:i,getStopIndexForStartIndex:a,initCache:s,clearCache:l,validateProps:u})=>Se({name:e!=null?e:"ElVirtualList",props:fU,emits:[Uk,Hk],setup(d,{emit:p,expose:v}){u(d);const y=Cn(),w=lt("vl"),b=ee(s(d,y)),k=lU(),C=ee(),T=ee(),$=ee(),P=ee({isScrolling:!1,scrollDir:"forward",scrollOffset:en(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),A=W(()=>{const{total:pe,cache:Be}=d,{isScrolling:De,scrollDir:ze,scrollOffset:$e}=m(P);if(pe===0)return[0,0,0,0];const _e=i(d,$e,m(b)),me=a(d,_e,$e,m(b)),Re=!De||ze===Xk?Math.max(1,Be):1,we=!De||ze===ry?Math.max(1,Be):1;return[Math.max(0,_e-Re),Math.max(0,Math.min(pe-1,me+we)),_e,me]}),R=W(()=>o(d,m(b))),B=W(()=>DO(d.layout)),N=W(()=>[{position:"relative",[`overflow-${B.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:en(d.height)?`${d.height}px`:d.height,width:en(d.width)?`${d.width}px`:d.width},d.style]),I=W(()=>{const pe=m(R),Be=m(B);return{height:Be?"100%":`${pe}px`,pointerEvents:m(P).isScrolling?"none":void 0,width:Be?`${pe}px`:"100%"}}),D=W(()=>B.value?d.width:d.height),{onWheel:L}=cIe({atStartEdge:W(()=>P.value.scrollOffset<=0),atEndEdge:W(()=>P.value.scrollOffset>=R.value),layout:W(()=>d.layout)},pe=>{var Be,De;(De=(Be=$.value).onMouseUp)==null||De.call(Be),ne(Math.min(P.value.scrollOffset+pe,R.value-D.value))});Ar(C,"wheel",L,{passive:!1});const z=()=>{const{total:pe}=d;if(pe>0){const[$e,_e,me,Re]=m(A);p(Uk,$e,_e,me,Re)}const{scrollDir:Be,scrollOffset:De,updateRequested:ze}=m(P);p(Hk,Be,De,ze)},q=pe=>{const{clientHeight:Be,scrollHeight:De,scrollTop:ze}=pe.currentTarget,$e=m(P);if($e.scrollOffset===ze)return;const _e=Math.max(0,Math.min(ze,De-Be));P.value={...$e,isScrolling:!0,scrollDir:Fg($e.scrollOffset,_e),scrollOffset:_e,updateRequested:!1},zt(G)},ae=pe=>{const{clientWidth:Be,scrollLeft:De,scrollWidth:ze}=pe.currentTarget,$e=m(P);if($e.scrollOffset===De)return;const{direction:_e}=d;let me=De;if(_e===yy)switch(qk()){case IO:{me=-De;break}case B3:{me=ze-Be-De;break}}me=Math.max(0,Math.min(me,ze-Be)),P.value={...$e,isScrolling:!0,scrollDir:Fg($e.scrollOffset,me),scrollOffset:me,updateRequested:!1},zt(G)},K=pe=>{m(B)?ae(pe):q(pe),z()},H=(pe,Be)=>{const De=(R.value-D.value)/Be*pe;ne(Math.min(R.value-D.value,De))},ne=pe=>{pe=Math.max(pe,0),pe!==m(P).scrollOffset&&(P.value={...m(P),scrollOffset:pe,scrollDir:Fg(m(P).scrollOffset,pe),updateRequested:!0},zt(G))},X=(pe,Be=vu)=>{const{scrollOffset:De}=m(P);pe=Math.max(0,Math.min(pe,d.total-1)),ne(t(d,pe,Be,De,m(b)))},V=pe=>{const{direction:Be,itemSize:De,layout:ze}=d,$e=k.value(l&&De,l&&ze,l&&Be);let _e;if(ir($e,String(pe)))_e=$e[pe];else{const me=r(d,pe,m(b)),Re=n(d,pe,m(b)),we=m(B),fe=Be===yy,oe=we?me:0;$e[pe]=_e={position:"absolute",left:fe?void 0:`${oe}px`,right:fe?`${oe}px`:void 0,top:we?0:`${me}px`,height:we?"100%":`${Re}px`,width:we?`${Re}px`:"100%"}}return _e},G=()=>{P.value.isScrolling=!1,zt(()=>{k.value(-1,null,null)})},se=()=>{const pe=C.value;pe&&(pe.scrollTop=0)};vn(()=>{if(!tr)return;const{initScrollOffset:pe}=d,Be=m(C);en(pe)&&Be&&(m(B)?Be.scrollLeft=pe:Be.scrollTop=pe),z()}),gc(()=>{const{direction:pe,layout:Be}=d,{scrollOffset:De,updateRequested:ze}=m(P),$e=m(C);if(ze&&$e)if(Be===Wy)if(pe===yy)switch(qk()){case IO:{$e.scrollLeft=-De;break}case L3:{$e.scrollLeft=De;break}default:{const{clientWidth:_e,scrollWidth:me}=$e;$e.scrollLeft=me-_e-De;break}}else $e.scrollLeft=De;else $e.scrollTop=De}),xN(()=>{m(C).scrollTop=m(P).scrollOffset});const he={ns:w,clientSize:D,estimatedTotalSize:R,windowStyle:N,windowRef:C,innerRef:T,innerStyle:I,itemsToRender:A,scrollbarRef:$,states:P,getItemStyle:V,onScroll:K,onScrollbarScroll:H,onWheel:L,scrollTo:ne,scrollToItem:X,resetScrollTop:se};return v({windowRef:C,innerRef:T,getItemStyleCache:k,scrollTo:ne,scrollToItem:X,resetScrollTop:se,states:P}),he},render(d){var p;const{$slots:v,className:y,clientSize:w,containerElement:b,data:k,getItemStyle:C,innerElement:T,itemsToRender:$,innerStyle:P,layout:A,total:R,onScroll:B,onScrollbarScroll:N,states:I,useIsScrolling:D,windowStyle:L,ns:z}=d,[q,ae]=$,K=Dn(b),H=Dn(T),ne=[];if(R>0)for(let se=q;se<=ae;se++)ne.push((p=v.default)==null?void 0:p.call(v,{data:k,key:se,index:se,isScrolling:D?I.isScrolling:void 0,style:C(se)}));const X=[Yt(H,{style:P,ref:"innerRef"},Gt(H)?ne:{default:()=>ne})],V=Yt(FM,{ref:"scrollbarRef",clientSize:w,layout:A,onScroll:N,ratio:w*100/this.estimatedTotalSize,scrollFrom:I.scrollOffset/(this.estimatedTotalSize-w),total:R}),G=Yt(K,{class:[z.e("window"),y],style:L,onScroll:B,ref:"windowRef",key:0},Gt(K)?[X]:{default:()=>[X]});return Yt("div",{key:0,class:[z.e("wrapper"),I.scrollbarAlwaysOn?"always-on":""]},[G,V])}}),vU=gU({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:o},i,a,s)=>{const l=DO(r)?o:e,u=Math.max(0,t*n-l),d=Math.min(u,i*n),p=Math.max(0,(i+1)*n-l);switch(a===BC&&(s>=p-l&&s<=d+l?a=vu:a=nf),a){case RO:return d;case NO:return p;case nf:{const v=Math.round(p+(d-p)/2);return v<Math.ceil(l/2)?0:v>u+Math.floor(l/2)?u:v}case vu:default:return s>=p&&s<=d?s:s<p?p:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:o},i,a)=>{const s=i*n,l=DO(r)?o:e,u=Math.ceil((l+a-s)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),oy=(e,t,n)=>{const{itemSize:r}=e,{items:o,lastVisitedIndex:i}=n;if(t>i){let a=0;if(i>=0){const s=o[i];a=s.offset+s.size}for(let s=i+1;s<=t;s++){const l=r(s);o[s]={offset:a,size:l},a+=l}n.lastVisitedIndex=t}return o[t]},hIe=(e,t,n)=>{const{items:r,lastVisitedIndex:o}=t;return(o>0?r[o].offset:0)>=n?mU(e,t,0,o,n):pIe(e,t,Math.max(0,o),n)},mU=(e,t,n,r,o)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),a=oy(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return Math.max(0,n-1)},pIe=(e,t,n,r)=>{const{total:o}=e;let i=1;for(;n<o&&oy(e,n,t).offset<r;)n+=i,i*=2;return mU(e,t,Math.floor(n/2),Math.min(n,o-1),r)},oB=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let o=0;if(r>=e&&(r=e-1),r>=0){const s=t[r];o=s.offset+s.size}const a=(e-r-1)*n;return o+a},gIe=gU({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>oy(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:oB,getOffset:(e,t,n,r,o)=>{const{height:i,layout:a,width:s}=e,l=DO(a)?s:i,u=oy(e,t,o),d=oB(e,o),p=Math.max(0,Math.min(d-l,u.offset)),v=Math.max(0,u.offset-l+u.size);switch(n===BC&&(r>=v-l&&r<=p+l?n=vu:n=nf),n){case RO:return p;case NO:return v;case nf:return Math.round(v+(p-v)/2);case vu:default:return r>=v&&r<=p?r:r<v?v:p}},getStartIndexForOffset:(e,t,n)=>hIe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:o,total:i,layout:a,width:s}=e,l=DO(a)?s:o,u=oy(e,t,r),d=n+l;let p=u.offset+u.size,v=t;for(;v<i-1&&p<d;)v++,p+=oy(e,v,r).size;return v},initCache({estimatedItemSize:e=IM},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,o=!0)=>{var i,a;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(i=t.exposed)==null||i.getItemStyleCache(-1),o&&((a=t.proxy)==null||a.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),vIe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},o)=>{let i=null,a=0,s=0;const l=(d,p)=>{const v=d<=0&&t.value||d>=0&&e.value,y=p<=0&&r.value||p>=0&&n.value;return v&&y};return{hasReachedEdge:l,onWheel:d=>{sv(i);let p=d.deltaX,v=d.deltaY;Math.abs(p)>Math.abs(v)?v=0:p=0,d.shiftKey&&v!==0&&(p=v,v=0),!(l(a,s)&&l(a+p,s+v))&&(a+=p,s+=v,d.preventDefault(),i=Gh(()=>{o(a,s),a=0,s=0}))}}},yU=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:i,getEstimatedTotalWidth:a,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:p,initCache:v,injectToInstance:y,validateProps:w})=>Se({name:e!=null?e:"ElVirtualList",props:Gg,emits:[Uk,Hk],setup(b,{emit:k,expose:C,slots:T}){const $=lt("vl");w(b);const P=Cn(),A=ee(v(b,P));y==null||y(P,A);const R=ee(),B=ee(),N=ee(),I=ee(null),D=ee({isScrolling:!1,scrollLeft:en(b.initScrollLeft)?b.initScrollLeft:0,scrollTop:en(b.initScrollTop)?b.initScrollTop:0,updateRequested:!1,xAxisScrollDir:ry,yAxisScrollDir:ry}),L=lU(),z=W(()=>Number.parseInt(`${b.height}`,10)),q=W(()=>Number.parseInt(`${b.width}`,10)),ae=W(()=>{const{totalColumn:Ve,totalRow:Me,columnCache:Ke}=b,{isScrolling:be,xAxisScrollDir:qe,scrollLeft:ct}=m(D);if(Ve===0||Me===0)return[0,0,0,0];const Je=r(b,ct,m(A)),Xe=o(b,Je,ct,m(A)),gt=!be||qe===Xk?Math.max(1,Ke):1,Ct=!be||qe===ry?Math.max(1,Ke):1;return[Math.max(0,Je-gt),Math.max(0,Math.min(Ve-1,Xe+Ct)),Je,Xe]}),K=W(()=>{const{totalColumn:Ve,totalRow:Me,rowCache:Ke}=b,{isScrolling:be,yAxisScrollDir:qe,scrollTop:ct}=m(D);if(Ve===0||Me===0)return[0,0,0,0];const Je=d(b,ct,m(A)),Xe=p(b,Je,ct,m(A)),gt=!be||qe===Xk?Math.max(1,Ke):1,Ct=!be||qe===ry?Math.max(1,Ke):1;return[Math.max(0,Je-gt),Math.max(0,Math.min(Me-1,Xe+Ct)),Je,Xe]}),H=W(()=>i(b,m(A))),ne=W(()=>a(b,m(A))),X=W(()=>{var Ve;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:b.direction,height:en(b.height)?`${b.height}px`:b.height,width:en(b.width)?`${b.width}px`:b.width},(Ve=b.style)!=null?Ve:{}]}),V=W(()=>{const Ve=`${m(ne)}px`;return{height:`${m(H)}px`,pointerEvents:m(D).isScrolling?"none":void 0,width:Ve}}),G=()=>{const{totalColumn:Ve,totalRow:Me}=b;if(Ve>0&&Me>0){const[Xe,gt,Ct,Zt]=m(ae),[Et,ln,Ee,Ze]=m(K);k(Uk,{columnCacheStart:Xe,columnCacheEnd:gt,rowCacheStart:Et,rowCacheEnd:ln,columnVisibleStart:Ct,columnVisibleEnd:Zt,rowVisibleStart:Ee,rowVisibleEnd:Ze})}const{scrollLeft:Ke,scrollTop:be,updateRequested:qe,xAxisScrollDir:ct,yAxisScrollDir:Je}=m(D);k(Hk,{xAxisScrollDir:ct,scrollLeft:Ke,yAxisScrollDir:Je,scrollTop:be,updateRequested:qe})},se=Ve=>{const{clientHeight:Me,clientWidth:Ke,scrollHeight:be,scrollLeft:qe,scrollTop:ct,scrollWidth:Je}=Ve.currentTarget,Xe=m(D);if(Xe.scrollTop===ct&&Xe.scrollLeft===qe)return;let gt=qe;if(rB(b.direction))switch(qk()){case IO:gt=-qe;break;case B3:gt=Je-Ke-qe;break}D.value={...Xe,isScrolling:!0,scrollLeft:gt,scrollTop:Math.max(0,Math.min(ct,be-Me)),updateRequested:!0,xAxisScrollDir:Fg(Xe.scrollLeft,gt),yAxisScrollDir:Fg(Xe.scrollTop,ct)},zt(()=>_e()),me(),G()},he=(Ve,Me)=>{const Ke=m(z),be=(H.value-Ke)/Me*Ve;De({scrollTop:Math.min(H.value-Ke,be)})},pe=(Ve,Me)=>{const Ke=m(q),be=(ne.value-Ke)/Me*Ve;De({scrollLeft:Math.min(ne.value-Ke,be)})},{onWheel:Be}=vIe({atXStartEdge:W(()=>D.value.scrollLeft<=0),atXEndEdge:W(()=>D.value.scrollLeft>=ne.value-m(q)),atYStartEdge:W(()=>D.value.scrollTop<=0),atYEndEdge:W(()=>D.value.scrollTop>=H.value-m(z))},(Ve,Me)=>{var Ke,be,qe,ct;(be=(Ke=B.value)==null?void 0:Ke.onMouseUp)==null||be.call(Ke),(ct=(qe=N.value)==null?void 0:qe.onMouseUp)==null||ct.call(qe);const Je=m(q),Xe=m(z);De({scrollLeft:Math.min(D.value.scrollLeft+Ve,ne.value-Je),scrollTop:Math.min(D.value.scrollTop+Me,H.value-Xe)})});Ar(R,"wheel",Be,{passive:!1});const De=({scrollLeft:Ve=D.value.scrollLeft,scrollTop:Me=D.value.scrollTop})=>{Ve=Math.max(Ve,0),Me=Math.max(Me,0);const Ke=m(D);Me===Ke.scrollTop&&Ve===Ke.scrollLeft||(D.value={...Ke,xAxisScrollDir:Fg(Ke.scrollLeft,Ve),yAxisScrollDir:Fg(Ke.scrollTop,Me),scrollLeft:Ve,scrollTop:Me,updateRequested:!0},zt(()=>_e()),me(),G())},ze=(Ve=0,Me=0,Ke=vu)=>{const be=m(D);Me=Math.max(0,Math.min(Me,b.totalColumn-1)),Ve=Math.max(0,Math.min(Ve,b.totalRow-1));const qe=yW($.namespace.value),ct=m(A),Je=i(b,ct),Xe=a(b,ct);De({scrollLeft:s(b,Me,Ke,be.scrollLeft,ct,Xe>b.width?qe:0),scrollTop:l(b,Ve,Ke,be.scrollTop,ct,Je>b.height?qe:0)})},$e=(Ve,Me)=>{const{columnWidth:Ke,direction:be,rowHeight:qe}=b,ct=L.value(t&&Ke,t&&qe,t&&be),Je=`${Ve},${Me}`;if(ir(ct,Je))return ct[Je];{const[,Xe]=n(b,Me,m(A)),gt=m(A),Ct=rB(be),[Zt,Et]=u(b,Ve,gt),[ln]=n(b,Me,gt);return ct[Je]={position:"absolute",left:Ct?void 0:`${Xe}px`,right:Ct?`${Xe}px`:void 0,top:`${Et}px`,height:`${Zt}px`,width:`${ln}px`},ct[Je]}},_e=()=>{D.value.isScrolling=!1,zt(()=>{L.value(-1,null,null)})};vn(()=>{if(!tr)return;const{initScrollLeft:Ve,initScrollTop:Me}=b,Ke=m(R);Ke&&(en(Ve)&&(Ke.scrollLeft=Ve),en(Me)&&(Ke.scrollTop=Me)),G()});const me=()=>{const{direction:Ve}=b,{scrollLeft:Me,scrollTop:Ke,updateRequested:be}=m(D),qe=m(R);if(be&&qe){if(Ve===yy)switch(qk()){case IO:{qe.scrollLeft=-Me;break}case L3:{qe.scrollLeft=Me;break}default:{const{clientWidth:ct,scrollWidth:Je}=qe;qe.scrollLeft=Je-ct-Me;break}}else qe.scrollLeft=Math.max(0,Me);qe.scrollTop=Math.max(0,Ke)}},{resetAfterColumnIndex:Re,resetAfterRowIndex:we,resetAfter:fe}=P.proxy;C({windowRef:R,innerRef:I,getItemStyleCache:L,scrollTo:De,scrollToItem:ze,states:D,resetAfterColumnIndex:Re,resetAfterRowIndex:we,resetAfter:fe});const oe=()=>{const{scrollbarAlwaysOn:Ve,scrollbarStartGap:Me,scrollbarEndGap:Ke,totalColumn:be,totalRow:qe}=b,ct=m(q),Je=m(z),Xe=m(ne),gt=m(H),{scrollLeft:Ct,scrollTop:Zt}=m(D),Et=Yt(FM,{ref:B,alwaysOn:Ve,startGap:Me,endGap:Ke,class:$.e("horizontal"),clientSize:ct,layout:"horizontal",onScroll:pe,ratio:ct*100/Xe,scrollFrom:Ct/(Xe-ct),total:qe,visible:!0}),ln=Yt(FM,{ref:N,alwaysOn:Ve,startGap:Me,endGap:Ke,class:$.e("vertical"),clientSize:Je,layout:"vertical",onScroll:he,ratio:Je*100/gt,scrollFrom:Zt/(gt-Je),total:be,visible:!0});return{horizontalScrollbar:Et,verticalScrollbar:ln}},ke=()=>{var Ve;const[Me,Ke]=m(ae),[be,qe]=m(K),{data:ct,totalColumn:Je,totalRow:Xe,useIsScrolling:gt,itemKey:Ct}=b,Zt=[];if(Xe>0&&Je>0)for(let Et=be;Et<=qe;Et++)for(let ln=Me;ln<=Ke;ln++)Zt.push((Ve=T.default)==null?void 0:Ve.call(T,{columnIndex:ln,data:ct,key:Ct({columnIndex:ln,data:ct,rowIndex:Et}),isScrolling:gt?m(D).isScrolling:void 0,style:$e(Et,ln),rowIndex:Et}));return Zt},We=()=>{const Ve=Dn(b.innerElement),Me=ke();return[Yt(Ve,{style:m(V),ref:I},Gt(Ve)?Me:{default:()=>Me})]};return()=>{const Ve=Dn(b.containerElement),{horizontalScrollbar:Me,verticalScrollbar:Ke}=oe(),be=We();return Yt("div",{key:0,class:$.e("wrapper"),role:b.role},[Yt(Ve,{class:b.className,style:m(X),onScroll:se,ref:R},Gt(Ve)?be:{default:()=>be}),Me,Ke])}}}),mIe=yU({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,o,i,a,s)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,r*t),d=Math.max(0,r*t-n+s+t);switch(o==="smart"&&(i>=d-n&&i<=u+n?o=vu:o=nf),o){case RO:return u;case NO:return d;case nf:{const p=Math.round(d+(u-d)/2);return p<Math.ceil(n/2)?0:p>l+Math.floor(n/2)?l:p}case vu:default:return i>=d&&i<=u?i:d>u||i<d?d:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,o,i,a,s)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,r*e),d=Math.max(0,r*e-t+s+e);switch(o===BC&&(i>=d-t&&i<=u+t?o=vu:o=nf),o){case RO:return u;case NO:return d;case nf:{const p=Math.round(d+(u-d)/2);return p<Math.ceil(t/2)?0:p>l+Math.floor(t/2)?l:p}case vu:default:return i>=d&&i<=u?i:d>u||i<d?d:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,o)=>{const i=r*e,a=Math.ceil((n+o-i)/e);return Math.max(0,Math.min(t-1,r+a-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,o)=>{const i=r*e,a=Math.ceil((n+o-i)/e);return Math.max(0,Math.min(t-1,r+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:Kk,min:bU,floor:_U}=Math,yIe={column:"columnWidth",row:"rowHeight"},zM={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},od=(e,t,n,r)=>{const[o,i,a]=[n[r],e[yIe[r]],n[zM[r]]];if(t>a){let s=0;if(a>=0){const l=o[a];s=l.offset+l.size}for(let l=a+1;l<=t;l++){const u=i(l);o[l]={offset:s,size:u},s+=u}n[zM[r]]=t}return o[t]},OU=(e,t,n,r,o,i)=>{for(;n<=r;){const a=n+_U((r-n)/2),s=od(e,a,t,i).offset;if(s===o)return a;s<o?n=a+1:r=a-1}return Kk(0,n-1)},bIe=(e,t,n,r,o)=>{const i=o==="column"?e.totalColumn:e.totalRow;let a=1;for(;n<i&&od(e,n,t,o).offset<r;)n+=a,a*=2;return OU(e,t,_U(n/2),bU(n,i-1),r,o)},iB=(e,t,n,r)=>{const[o,i]=[t[r],t[zM[r]]];return(i>0?o[i].offset:0)>=n?OU(e,t,0,i,n,r):bIe(e,t,Kk(0,i),n,r)},wU=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const s=r[n];o=s.offset+s.size}const a=(e-n-1)*t;return o+a},SU=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let o=0;if(r>e&&(r=e-1),r>=0){const s=t[r];o=s.offset+s.size}const a=(e-r-1)*n;return o+a},_Ie={column:SU,row:wU},aB=(e,t,n,r,o,i,a)=>{const[s,l]=[i==="row"?e.height:e.width,_Ie[i]],u=od(e,t,o,i),d=l(e,o),p=Kk(0,bU(d-s,u.offset)),v=Kk(0,u.offset-s+a+u.size);switch(n===BC&&(r>=v-s&&r<=p+s?n=vu:n=nf),n){case RO:return p;case NO:return v;case nf:return Math.round(v+(p-v)/2);case vu:default:return r>=v&&r<=p?r:v>p||r<v?v:p}},OIe=yU({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=od(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=od(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,o,i)=>aB(e,t,n,r,o,"column",i),getRowOffset:(e,t,n,r,o,i)=>aB(e,t,n,r,o,"row",i),getColumnStartIndexForOffset:(e,t,n)=>iB(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const o=od(e,t,r,"column"),i=n+e.width;let a=o.offset+o.size,s=t;for(;s<e.totalColumn-1&&a<i;)s++,a+=od(e,t,r,"column").size;return s},getEstimatedTotalHeight:wU,getEstimatedTotalWidth:SU,getRowStartIndexForOffset:(e,t,n)=>iB(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:o,height:i}=e,a=od(e,t,r,"row"),s=n+i;let l=a.size+a.offset,u=t;for(;u<o-1&&l<s;)u++,l+=od(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:a},s)=>{var l,u;s=Bo(s)?!0:s,en(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),en(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},r=(i,a)=>{n({columnIndex:i},a)},o=(i,a)=>{n({rowIndex:i},a)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=IM,estimatedRowHeight:t=IM})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),wIe=Se({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:lt("select")}}});function SIe(e,t,n,r,o,i){return Z(),ce("div",{class:J(e.ns.be("group","title")),style:Vt([e.style,{lineHeight:`${e.height}px`}])},ut(e.item.label),7)}var xIe=vt(wIe,[["render",SIe],["__file","group-item.vue"]]);function kIe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const xU={label:"label",value:"value",disabled:"disabled",options:"options"};function VC(e){const t=W(()=>({...xU,...e.props}));return{aliasProps:t,getLabel:a=>Ao(a,t.value.label),getValue:a=>Ao(a,t.value.value),getDisabled:a=>Ao(a,t.value.disabled),getOptions:a=>Ao(a,t.value.options)}}const CIe=pt({allowCreate:Boolean,autocomplete:{type:Ie(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Fr,default:_p},effect:{type:Ie(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:Ie([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Ie(Array),required:!0},placeholder:{type:String},teleported:Xi.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Ie(Object),default:()=>({})},remote:Boolean,size:Ai,props:{type:Ie(Object),default:()=>xU},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},placement:{type:Ie(String),values:Ov,default:"bottom-start"},fallbackPlacements:{type:Ie(Array),default:["bottom-start","top-start","right","left"]},tagType:{...cv.type,default:"info"},tagEffect:{...cv.effect,default:"light"},...g0,...ha(["ariaLabel"])}),EIe=pt({data:Array,disabled:Boolean,hovering:Boolean,item:{type:Ie(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),V3=Symbol("ElSelectV2Injection"),TIe=Se({props:EIe,emits:["select","hover"],setup(e,{emit:t}){const n=Tt(V3),r=lt("select"),{hoverItem:o,selectOptionClick:i}=kIe(e,{emit:t}),{getLabel:a}=VC(n.props);return{ns:r,hoverItem:o,selectOptionClick:i,getLabel:a}}});function PIe(e,t,n,r,o,i){return Z(),ce("li",{"aria-selected":e.selected,style:Vt(e.style),class:J([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMouseenter:e.hoverItem,onClick:tn(e.selectOptionClick,["stop"])},[He(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[ve("span",null,ut(e.getLabel(e.item)),1)])],46,["aria-selected","onMouseenter","onClick"])}var $Ie=vt(TIe,[["render",PIe],["__file","option-item.vue"]]),AIe=Se({name:"ElSelectDropdown",props:{loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=Tt(V3),o=lt("select"),{getLabel:i,getValue:a,getDisabled:s}=VC(r.props),l=ee([]),u=ee(),d=W(()=>e.data.length);at(()=>d.value,()=>{var L,z;(z=(L=r.tooltipRef.value).updatePopper)==null||z.call(L)});const p=W(()=>Bo(r.props.estimatedOptionHeight)),v=W(()=>p.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:L=>l.value[L]}),y=(L=[],z)=>{const{props:{valueKey:q}}=r;return Pn(z)?L&&L.some(ae=>cr(Ao(ae,q))===Ao(z,q)):L.includes(z)},w=(L,z)=>{if(Pn(z)){const{valueKey:q}=r.props;return Ao(L,q)===Ao(z,q)}else return L===z},b=(L,z)=>r.props.multiple?y(L,a(z)):w(L,a(z)),k=(L,z)=>{const{disabled:q,multiple:ae,multipleLimit:K}=r.props;return q||!z&&(ae?K>0&&L.length>=K:!1)},C=L=>e.hoveringIndex===L;n({listRef:u,isSized:p,isItemDisabled:k,isItemHovering:C,isItemSelected:b,scrollToItem:L=>{const z=u.value;z&&z.scrollToItem(L)},resetScrollTop:()=>{const L=u.value;L&&L.resetScrollTop()}});const P=L=>{const{index:z,data:q,style:ae}=L,K=m(p),{itemSize:H,estimatedSize:ne}=m(v),{modelValue:X}=r.props,{onSelect:V,onHover:G}=r,se=q[z];if(se.type==="Group")return re(xIe,{item:se,style:ae,height:K?H:ne},null);const he=b(X,se),pe=k(X,he),Be=C(z);return re($Ie,In(L,{selected:he,disabled:s(se)||pe,created:!!se.created,hovering:Be,item:se,onSelect:V,onHover:G}),{default:De=>{var ze;return((ze=t.default)==null?void 0:ze.call(t,De))||re("span",null,[i(se)])}})},{onKeyboardNavigate:A,onKeyboardSelect:R}=r,B=()=>{A("forward")},N=()=>{A("backward")},I=()=>{r.expanded=!1},D=L=>{const{code:z}=L,{tab:q,esc:ae,down:K,up:H,enter:ne}=Qt;switch(z!==q&&(L.preventDefault(),L.stopPropagation()),z){case q:case ae:{I();break}case K:{B();break}case H:{N();break}case ne:{R();break}}};return()=>{var L,z,q,ae;const{data:K,width:H}=e,{height:ne,multiple:X,scrollbarAlwaysOn:V}=r.props,G=m(p)?vU:gIe;return re("div",{class:[o.b("dropdown"),o.is("multiple",X)],style:{width:`${H}px`}},[(L=t.header)==null?void 0:L.call(t),((z=t.loading)==null?void 0:z.call(t))||((q=t.empty)==null?void 0:q.call(t))||re(G,In({ref:u},m(v),{className:o.be("dropdown","list"),scrollbarAlwaysOn:V,data:K,height:ne,width:H,total:K.length,onKeydown:D}),{default:se=>re(P,se,null)}),(ae=t.footer)==null?void 0:ae.call(t)])}}});function MIe(e,t){const{aliasProps:n,getLabel:r,getValue:o}=VC(e),i=ee(0),a=ee(null),s=W(()=>e.allowCreate&&e.filterable);function l(y){const w=b=>r(b)===y;return e.options&&e.options.some(w)||t.createdOptions.some(w)}function u(y){!s.value||(e.multiple&&y.created?i.value++:a.value=y)}function d(y){if(s.value)if(y&&y.length>0){if(l(y))return;const w={[n.value.value]:y,[n.value.label]:y,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=w:t.createdOptions.push(w)}else if(e.multiple)t.createdOptions.length=i.value;else{const w=a.value;t.createdOptions.length=0,w&&w.created&&t.createdOptions.push(w)}}function p(y){if(!s.value||!y||!y.created||y.created&&e.reserveKeyword&&t.inputValue===r(y))return;const w=t.createdOptions.findIndex(b=>o(b)===o(y));~w&&(t.createdOptions.splice(w,1),i.value--)}function v(){s.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:d,removeNewOption:p,selectNewOption:u,clearAllNewOption:v}}const RIe=11,NIe=(e,t)=>{const{t:n}=rr(),r=lt("select"),o=lt("input"),{form:i,formItem:a}=as(),{inputId:s}=bc(e,{formItemContext:a}),{aliasProps:l,getLabel:u,getValue:d,getDisabled:p,getOptions:v}=VC(e),{valueOnClear:y,isEmptyValue:w}=AC(e),b=nr({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),k=ee(-1),C=ee(null),T=ee(null),$=ee(null),P=ee(null),A=ee(null),R=ee(null),B=ee(null),N=ee(null),I=ee(null),D=ee(null),L=ee(null),{isComposing:z,handleCompositionStart:q,handleCompositionEnd:ae,handleCompositionUpdate:K}=$C({afterComposition:_t=>fr(_t)}),{wrapperRef:H,isFocused:ne}=C1(A,{afterFocus(){e.automaticDropdown&&!G.value&&(G.value=!0,b.menuVisibleOnFocus=!0)},beforeBlur(_t){var cn,Bn;return((cn=$.value)==null?void 0:cn.isFocusInsideContent(_t))||((Bn=P.value)==null?void 0:Bn.isFocusInsideContent(_t))},afterBlur(){G.value=!1,b.menuVisibleOnFocus=!1}}),X=ee([]),V=ee([]),G=ee(!1),se=W(()=>e.disabled||(i==null?void 0:i.disabled)),he=W(()=>{const _t=V.value.length*e.itemHeight;return _t>e.height?e.height:_t}),pe=W(()=>e.multiple?xt(e.modelValue)&&e.modelValue.length>0:!w(e.modelValue)),Be=W(()=>e.clearable&&!se.value&&b.inputHovering&&pe.value),De=W(()=>e.remote&&e.filterable?"":Cd),ze=W(()=>De.value&&r.is("reverse",G.value)),$e=W(()=>(a==null?void 0:a.validateState)||""),_e=W(()=>QI[$e.value]),me=W(()=>e.remote?300:0),Re=W(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!b.inputValue&&X.value.length===0?!1:e.filterable&&b.inputValue&&X.value.length>0&&V.value.length===0?e.noMatchText||n("el.select.noMatch"):X.value.length===0?e.noDataText||n("el.select.noData"):null),we=_t=>{const cn=Bn=>{if(e.filterable&&nn(e.filterMethod)||e.filterable&&e.remote&&nn(e.remoteMethod))return!0;const br=new RegExp(RI(_t),"i");return _t?br.test(u(Bn)||""):!0};return e.loading?[]:[...b.createdOptions,...e.options].reduce((Bn,br)=>{const Ri=v(br);if(xt(Ri)){const us=Ri.filter(cn);us.length>0&&Bn.push({label:u(br),type:"Group"},...us)}else(e.remote||cn(br))&&Bn.push(br);return Bn},[])},fe=()=>{X.value=we(""),V.value=we(b.inputValue)},oe=W(()=>{const _t=new Map;return X.value.forEach((cn,Bn)=>{_t.set(Nt(d(cn)),{option:cn,index:Bn})}),_t}),ke=W(()=>{const _t=new Map;return V.value.forEach((cn,Bn)=>{_t.set(Nt(d(cn)),{option:cn,index:Bn})}),_t}),We=W(()=>V.value.every(_t=>p(_t))),et=bi(),Ve=W(()=>et.value==="small"?"small":"default"),Me=()=>{var _t;k.value=((_t=C.value)==null?void 0:_t.offsetWidth)||200},Ke=()=>{if(!T.value)return 0;const _t=window.getComputedStyle(T.value);return Number.parseFloat(_t.gap||"6px")},be=W(()=>{const _t=Ke();return{maxWidth:`${L.value&&e.maxCollapseTags===1?b.selectionWidth-b.collapseItemWidth-_t:b.selectionWidth}px`}}),qe=W(()=>({maxWidth:`${b.selectionWidth}px`})),ct=W(()=>({width:`${Math.max(b.calculatorWidth,RIe)}px`})),Je=W(()=>xt(e.modelValue)?e.modelValue.length===0&&!b.inputValue:e.filterable?!b.inputValue:!0),Xe=W(()=>{var _t;const cn=(_t=e.placeholder)!=null?_t:n("el.select.placeholder");return e.multiple||!pe.value?cn:b.selectedLabel}),gt=W(()=>{var _t,cn;return(cn=(_t=$.value)==null?void 0:_t.popperRef)==null?void 0:cn.contentRef}),Ct=W(()=>{if(e.multiple){const _t=e.modelValue.length;if(e.modelValue.length>0&&ke.value.has(e.modelValue[_t-1])){const{index:cn}=ke.value.get(e.modelValue[_t-1]);return cn}}else if(e.modelValue&&ke.value.has(e.modelValue)){const{index:_t}=ke.value.get(e.modelValue);return _t}return-1}),Zt=W({get(){return G.value&&Re.value!==!1},set(_t){G.value=_t}}),Et=W(()=>e.multiple?e.collapseTags?b.cachedOptions.slice(0,e.maxCollapseTags):b.cachedOptions:[]),ln=W(()=>e.multiple?e.collapseTags?b.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:Ee,removeNewOption:Ze,selectNewOption:ye,clearAllNewOption:Le}=MIe(e,b),xe=()=>{se.value||(b.menuVisibleOnFocus?b.menuVisibleOnFocus=!1:G.value=!G.value)},Ue=()=>{b.inputValue.length>0&&!G.value&&(G.value=!0),Ee(b.inputValue),Ft(b.inputValue)},rt=Ts(Ue,me.value),Ft=_t=>{b.previousQuery===_t||z.value||(b.previousQuery=_t,e.filterable&&nn(e.filterMethod)?e.filterMethod(_t):e.filterable&&e.remote&&nn(e.remoteMethod)&&e.remoteMethod(_t),e.defaultFirstOption&&(e.filterable||e.remote)&&V.value.length?zt(Vn):zt(Yn))},Vn=()=>{const _t=V.value.filter(br=>!br.disabled&&br.type!=="Group"),cn=_t.find(br=>br.created),Bn=_t[0];b.hoveringIndex=wn(V.value,cn||Bn)},ot=_t=>{rs(e.modelValue,_t)||t(ao,_t)},Lt=_t=>{t(En,_t),ot(_t),b.previousValue=e.multiple?String(_t):_t},wn=(_t=[],cn)=>{if(!Pn(cn))return _t.indexOf(cn);const Bn=e.valueKey;let br=-1;return _t.some((Ri,us)=>Ao(Ri,Bn)===Ao(cn,Bn)?(br=us,!0):!1),br},Nt=_t=>Pn(_t)?Ao(_t,e.valueKey):_t,Xt=()=>{Me()},Ht=()=>{b.selectionWidth=T.value.getBoundingClientRect().width},Sn=()=>{b.calculatorWidth=R.value.getBoundingClientRect().width},Dr=()=>{b.collapseItemWidth=L.value.getBoundingClientRect().width},eo=()=>{var _t,cn;(cn=(_t=$.value)==null?void 0:_t.updatePopper)==null||cn.call(_t)},ma=()=>{var _t,cn;(cn=(_t=P.value)==null?void 0:_t.updatePopper)==null||cn.call(_t)},ci=_t=>{if(e.multiple){let cn=e.modelValue.slice();const Bn=wn(cn,d(_t));Bn>-1?(cn=[...cn.slice(0,Bn),...cn.slice(Bn+1)],b.cachedOptions.splice(Bn,1),Ze(_t)):(e.multipleLimit<=0||cn.length<e.multipleLimit)&&(cn=[...cn,d(_t)],b.cachedOptions.push(_t),ye(_t)),Lt(cn),_t.created&&Ft(""),e.filterable&&!e.reserveKeyword&&(b.inputValue="")}else b.selectedLabel=u(_t),Lt(d(_t)),G.value=!1,ye(_t),_t.created||Le();ya()},Va=(_t,cn)=>{let Bn=e.modelValue.slice();const br=wn(Bn,d(cn));br>-1&&!se.value&&(Bn=[...e.modelValue.slice(0,br),...e.modelValue.slice(br+1)],b.cachedOptions.splice(br,1),Lt(Bn),t("remove-tag",d(cn)),Ze(cn)),_t.stopPropagation(),ya()},ya=()=>{var _t;(_t=A.value)==null||_t.focus()},$f=()=>{var _t;(_t=A.value)==null||_t.blur()},zl=()=>{b.inputValue.length>0?b.inputValue="":G.value=!1},Qi=_t=>gC(_t,cn=>!b.cachedOptions.some(Bn=>d(Bn)===cn&&p(Bn))),sl=_t=>{if(!!e.multiple&&_t.code!==Qt.delete&&b.inputValue.length===0){_t.preventDefault();const cn=e.modelValue.slice(),Bn=Qi(cn);if(Bn<0)return;const br=cn[Bn];cn.splice(Bn,1);const Ri=b.cachedOptions[Bn];b.cachedOptions.splice(Bn,1),Ze(Ri),Lt(cn),t("remove-tag",br)}},bn=()=>{let _t;xt(e.modelValue)?_t=[]:_t=y.value,e.multiple?b.cachedOptions=[]:b.selectedLabel="",G.value=!1,Lt(_t),t("clear"),Le(),ya()},wc=(_t,cn=void 0)=>{const Bn=V.value;if(!["forward","backward"].includes(_t)||se.value||Bn.length<=0||We.value||z.value)return;if(!G.value)return xe();cn===void 0&&(cn=b.hoveringIndex);let br=-1;_t==="forward"?(br=cn+1,br>=Bn.length&&(br=0)):_t==="backward"&&(br=cn-1,(br<0||br>=Bn.length)&&(br=Bn.length-1));const Ri=Bn[br];if(p(Ri)||Ri.type==="Group")return wc(_t,br);b.hoveringIndex=br,Ho(br)},wt=()=>{if(G.value)~b.hoveringIndex&&V.value[b.hoveringIndex]&&ci(V.value[b.hoveringIndex]);else return xe()},rn=_t=>{b.hoveringIndex=_t},Yn=()=>{e.multiple?b.hoveringIndex=V.value.findIndex(_t=>e.modelValue.some(cn=>Nt(cn)===Nt(_t))):b.hoveringIndex=V.value.findIndex(_t=>Nt(_t)===Nt(e.modelValue))},fr=_t=>{if(b.inputValue=_t.target.value,e.remote)rt();else return Ue()},Wi=_t=>{if(G.value=!1,ne.value){const cn=new FocusEvent("focus",_t);handleBlur(cn)}},oi=()=>(b.isBeforeHide=!1,zt(()=>{~Ct.value&&Ho(b.hoveringIndex)})),Ho=_t=>{I.value.scrollToItem(_t)},Xo=_t=>{const cn=Nt(_t);if(oe.value.has(cn)){const{option:Bn}=oe.value.get(cn);return Bn}return{[l.value.value]:_t,[l.value.label]:_t}},fi=()=>{if(e.multiple)if(e.modelValue.length>0){b.cachedOptions.length=0,b.previousValue=e.modelValue.toString();for(const _t of e.modelValue){const cn=Xo(_t);b.cachedOptions.push(cn)}}else b.cachedOptions=[],b.previousValue=void 0;else if(pe.value){b.previousValue=e.modelValue;const _t=V.value,cn=_t.findIndex(Bn=>Nt(d(Bn))===Nt(e.modelValue));~cn?b.selectedLabel=u(_t[cn]):b.selectedLabel=Nt(e.modelValue)}else b.selectedLabel="",b.previousValue=void 0;Le(),Me()};return at(G,_t=>{_t?Ft(""):(b.inputValue="",b.previousQuery=null,b.isBeforeHide=!0,Ee("")),t("visible-change",_t)}),at(()=>e.modelValue,(_t,cn)=>{var Bn;(!_t||e.multiple&&_t.toString()!==b.previousValue||!e.multiple&&Nt(_t)!==Nt(b.previousValue))&&fi(),!rs(_t,cn)&&e.validateEvent&&((Bn=a==null?void 0:a.validate)==null||Bn.call(a,"change").catch(br=>void 0))},{deep:!0}),at(()=>e.options,()=>{const _t=A.value;(!_t||_t&&document.activeElement!==_t)&&fi()},{deep:!0,flush:"post"}),at(()=>V.value,()=>I.value&&zt(I.value.resetScrollTop)),Ia(()=>{b.isBeforeHide||fe()}),Ia(()=>{const{valueKey:_t,options:cn}=e,Bn=new Map;for(const br of cn){const Ri=d(br);let us=Ri;if(Pn(us)&&(us=Ao(Ri,_t)),Bn.get(us))break;Bn.set(us,!0)}}),vn(()=>{fi()}),_o(C,Xt),_o(T,Ht),_o(R,Sn),_o(I,eo),_o(H,eo),_o(D,ma),_o(L,Dr),{inputId:s,collapseTagSize:Ve,currentPlaceholder:Xe,expanded:G,emptyText:Re,popupHeight:he,debounce:me,allOptions:X,filteredOptions:V,iconComponent:De,iconReverse:ze,tagStyle:be,collapseTagStyle:qe,inputStyle:ct,popperSize:k,dropdownMenuVisible:Zt,hasModelValue:pe,shouldShowPlaceholder:Je,selectDisabled:se,selectSize:et,showClearBtn:Be,states:b,isFocused:ne,nsSelect:r,nsInput:o,calculatorRef:R,inputRef:A,menuRef:I,tagMenuRef:D,tooltipRef:$,tagTooltipRef:P,selectRef:C,wrapperRef:H,selectionRef:T,prefixRef:B,suffixRef:N,collapseItemRef:L,popperRef:gt,validateState:$e,validateIcon:_e,showTagList:Et,collapseTagList:ln,debouncedOnInputChange:rt,deleteTag:Va,getLabel:u,getValue:d,getDisabled:p,getValueKey:Nt,handleClear:bn,handleClickOutside:Wi,handleDel:sl,handleEsc:zl,focus:ya,blur:$f,handleMenuEnter:oi,handleResize:Xt,resetSelectionWidth:Ht,resetCalculatorWidth:Sn,updateTooltip:eo,updateTagTooltip:ma,updateOptions:fe,toggleMenu:xe,scrollTo:Ho,onInput:fr,onKeyboardNavigate:wc,onKeyboardSelect:wt,onSelect:ci,onHover:rn,handleCompositionStart:q,handleCompositionEnd:ae,handleCompositionUpdate:K}},IIe=Se({name:"ElSelectV2",components:{ElSelectMenu:AIe,ElTag:rp,ElTooltip:Fi,ElIcon:jt},directives:{ClickOutside:hd},props:CIe,emits:[En,ao,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=W(()=>{const{modelValue:o,multiple:i}=e,a=i?[]:void 0;return xt(o)?i?o:a:i?a:o}),r=NIe(nr({...ea(e),modelValue:n}),t);return Wn(V3,{props:nr({...ea(e),height:r.popupHeight,modelValue:n}),tooltipRef:r.tooltipRef,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}});function DIe(e,t,n,r,o,i){const a=Tn("el-tag"),s=Tn("el-tooltip"),l=Tn("el-icon"),u=Tn("el-select-menu"),d=K2("click-outside");return yn((Z(),ce("div",{ref:"selectRef",class:J([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:p=>e.states.inputHovering=!0,onMouseleave:p=>e.states.inputHovering=!1},[re(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:p=>e.states.isBeforeHide=!1},{default:ue(()=>[ve("div",{ref:"wrapperRef",class:J([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:tn(e.toggleMenu,["prevent","stop"])},[e.$slots.prefix?(Z(),ce("div",{key:0,ref:"prefixRef",class:J(e.nsSelect.e("prefix"))},[He(e.$slots,"prefix")],2)):je("v-if",!0),ve("div",{ref:"selectionRef",class:J([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?He(e.$slots,"tag",{key:0},()=>[(Z(!0),ce(Pt,null,_n(e.showTagList,p=>(Z(),ce("div",{key:e.getValueKey(e.getValue(p)),class:J(e.nsSelect.e("selected-item"))},[re(a,{closable:!e.selectDisabled&&!e.getDisabled(p),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Vt(e.tagStyle),onClose:v=>e.deleteTag(v,p)},{default:ue(()=>[ve("span",{class:J(e.nsSelect.e("tags-text"))},[He(e.$slots,"label",{label:e.getLabel(p),value:e.getValue(p)},()=>[St(ut(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(Z(),Fe(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ue(()=>[ve("div",{ref:"collapseItemRef",class:J(e.nsSelect.e("selected-item"))},[re(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Vt(e.collapseTagStyle),"disable-transitions":""},{default:ue(()=>[ve("span",{class:J(e.nsSelect.e("tags-text"))}," + "+ut(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ue(()=>[ve("div",{ref:"tagMenuRef",class:J(e.nsSelect.e("selection"))},[(Z(!0),ce(Pt,null,_n(e.collapseTagList,p=>(Z(),ce("div",{key:e.getValueKey(e.getValue(p)),class:J(e.nsSelect.e("selected-item"))},[re(a,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(p),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:v=>e.deleteTag(v,p)},{default:ue(()=>[ve("span",{class:J(e.nsSelect.e("tags-text"))},[He(e.$slots,"label",{label:e.getLabel(p),value:e.getValue(p)},()=>[St(ut(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):je("v-if",!0)]):je("v-if",!0),e.selectDisabled?je("v-if",!0):(Z(),ce("div",{key:1,class:J([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[yn(ve("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":p=>e.states.inputValue=p,style:Vt(e.inputStyle),autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:J([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[Vr(tn(p=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),Vr(tn(p=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),Vr(tn(e.onKeyboardSelect,["stop","prevent"]),["enter"]),Vr(tn(e.handleEsc,["stop","prevent"]),["esc"]),Vr(tn(e.handleDel,["stop"]),["delete"])],onClick:tn(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[AN,e.states.inputValue]]),e.filterable?(Z(),ce("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:J(e.nsSelect.e("input-calculator")),textContent:ut(e.states.inputValue)},null,10,["textContent"])):je("v-if",!0)],2)),e.shouldShowPlaceholder?(Z(),ce("div",{key:2,class:J([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?He(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[ve("span",null,ut(e.currentPlaceholder),1)]):(Z(),ce("span",{key:1},ut(e.currentPlaceholder),1))],2)):je("v-if",!0)],2),ve("div",{ref:"suffixRef",class:J(e.nsSelect.e("suffix"))},[e.iconComponent?yn((Z(),Fe(l,{key:0,class:J([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ue(()=>[(Z(),Fe(Dn(e.iconComponent)))]),_:1},8,["class"])),[[hr,!e.showClearBtn]]):je("v-if",!0),e.showClearBtn&&e.clearIcon?(Z(),Fe(l,{key:1,class:J([e.nsSelect.e("caret"),e.nsInput.e("icon")]),onClick:tn(e.handleClear,["prevent","stop"])},{default:ue(()=>[(Z(),Fe(Dn(e.clearIcon)))]),_:1},8,["class","onClick"])):je("v-if",!0),e.validateState&&e.validateIcon?(Z(),Fe(l,{key:2,class:J([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:ue(()=>[(Z(),Fe(Dn(e.validateIcon)))]),_:1},8,["class"])):je("v-if",!0)],2)],10,["onClick"])]),content:ue(()=>[re(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Il({default:ue(p=>[He(e.$slots,"default",ic(Yh(p)))]),_:2},[e.$slots.header?{name:"header",fn:ue(()=>[ve("div",{class:J(e.nsSelect.be("dropdown","header"))},[He(e.$slots,"header")],2)])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:ue(()=>[ve("div",{class:J(e.nsSelect.be("dropdown","loading"))},[He(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:ue(()=>[ve("div",{class:J(e.nsSelect.be("dropdown","empty"))},[He(e.$slots,"empty",{},()=>[ve("span",null,ut(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:ue(()=>[ve("div",{class:J(e.nsSelect.be("dropdown","footer"))},[He(e.$slots,"footer")],2)])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[d,e.handleClickOutside,e.popperRef]])}var jIe=vt(IIe,[["render",DIe],["__file","select.vue"]]);const LIe=pn(jIe),BIe=pt({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),VIe=pt({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),FIe=Se({name:"ElSkeletonItem"}),zIe=Se({...FIe,props:VIe,setup(e){const t=lt("skeleton");return(n,r)=>(Z(),ce("div",{class:J([m(t).e("item"),m(t).e(n.variant)])},[n.variant==="image"?(Z(),Fe(m(D1e),{key:0})):je("v-if",!0)],2))}});var Jk=vt(zIe,[["__file","skeleton-item.vue"]]);const QIe=Se({name:"ElSkeleton"}),WIe=Se({...QIe,props:BIe,setup(e,{expose:t}){const n=e,r=lt("skeleton"),o=$Se(xr(n,"loading"),n.throttle);return t({uiLoading:o}),(i,a)=>m(o)?(Z(),ce("div",In({key:0,class:[m(r).b(),m(r).is("animated",i.animated)]},i.$attrs),[(Z(!0),ce(Pt,null,_n(i.count,s=>(Z(),ce(Pt,{key:s},[i.loading?He(i.$slots,"template",{key:s},()=>[re(Jk,{class:J(m(r).is("first")),variant:"p"},null,8,["class"]),(Z(!0),ce(Pt,null,_n(i.rows,l=>(Z(),Fe(Jk,{key:l,class:J([m(r).e("paragraph"),m(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):je("v-if",!0)],64))),128))],16)):He(i.$slots,"default",ic(In({key:1},i.$attrs)))}});var YIe=vt(WIe,[["__file","skeleton.vue"]]);const ZIe=pn(YIe,{SkeletonItem:Jk}),UIe=So(Jk),kU=Symbol("sliderContextKey"),HIe=pt({modelValue:{type:Ie([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Ai,inputSize:Ai,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Ie(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Ie(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ov,default:"top"},marks:{type:Ie(Object)},validateEvent:{type:Boolean,default:!0},...ha(["ariaLabel"])}),Z$=e=>en(e)||xt(e)&&e.every(en),XIe={[En]:Z$,[xs]:Z$,[ao]:Z$},GIe=(e,t,n)=>{const r=ee();return vn(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Ar(window,"resize",n),await zt(),n()}),{sliderWrapper:r}},qIe=e=>W(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),KIe=(e,t,n)=>{const{form:r,formItem:o}=as(),i=Kr(),a=ee(),s=ee(),l={firstButton:a,secondButton:s},u=W(()=>e.disabled||(r==null?void 0:r.disabled)||!1),d=W(()=>Math.min(t.firstValue,t.secondValue)),p=W(()=>Math.max(t.firstValue,t.secondValue)),v=W(()=>e.range?`${100*(p.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),y=W(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),w=W(()=>e.vertical?{height:e.height}:{}),b=W(()=>e.vertical?{height:v.value,bottom:y.value}:{width:v.value,left:y.value}),k=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},C=z=>{const q=e.min+z*(e.max-e.min)/100;if(!e.range)return a;let ae;return Math.abs(d.value-q)<Math.abs(p.value-q)?ae=t.firstValue<t.secondValue?"firstButton":"secondButton":ae=t.firstValue>t.secondValue?"firstButton":"secondButton",l[ae]},T=z=>{const q=C(z);return q.value.setPosition(z),q},$=z=>{t.firstValue=z!=null?z:e.min,A(e.range?[d.value,p.value]:z!=null?z:e.min)},P=z=>{t.secondValue=z,e.range&&A([d.value,p.value])},A=z=>{n(En,z),n(xs,z)},R=async()=>{await zt(),n(ao,e.range?[d.value,p.value]:e.modelValue)},B=z=>{var q,ae,K,H,ne,X;if(u.value||t.dragging)return;k();let V=0;if(e.vertical){const G=(K=(ae=(q=z.touches)==null?void 0:q.item(0))==null?void 0:ae.clientY)!=null?K:z.clientY;V=(i.value.getBoundingClientRect().bottom-G)/t.sliderSize*100}else{const G=(X=(ne=(H=z.touches)==null?void 0:H.item(0))==null?void 0:ne.clientX)!=null?X:z.clientX,se=i.value.getBoundingClientRect().left;V=(G-se)/t.sliderSize*100}if(!(V<0||V>100))return T(V)};return{elFormItem:o,slider:i,firstButton:a,secondButton:s,sliderDisabled:u,minValue:d,maxValue:p,runwayStyle:w,barStyle:b,resetSize:k,setPosition:T,emitChange:R,onSliderWrapperPrevent:z=>{var q,ae;(((q=l.firstButton.value)==null?void 0:q.dragging)||((ae=l.secondButton.value)==null?void 0:ae.dragging))&&z.preventDefault()},onSliderClick:z=>{B(z)&&R()},onSliderDown:async z=>{const q=B(z);q&&(await zt(),q.value.onButtonDown(z))},onSliderMarkerDown:z=>{u.value||t.dragging||T(z)},setFirstValue:$,setSecondValue:P}},{left:JIe,down:e3e,right:t3e,up:n3e,home:r3e,end:o3e,pageUp:i3e,pageDown:a3e}=Qt,s3e=(e,t,n)=>{const r=ee(),o=ee(!1),i=W(()=>t.value instanceof Function),a=W(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=Ts(()=>{n.value&&(o.value=!0)},50),l=Ts(()=>{n.value&&(o.value=!1)},50);return{tooltip:r,tooltipVisible:o,formatValue:a,displayTooltip:s,hideTooltip:l}},l3e=(e,t,n)=>{const{disabled:r,min:o,max:i,step:a,showTooltip:s,precision:l,sliderSize:u,formatTooltip:d,emitChange:p,resetSize:v,updateDragging:y}=Tt(kU),{tooltip:w,tooltipVisible:b,formatValue:k,displayTooltip:C,hideTooltip:T}=s3e(e,d,s),$=ee(),P=W(()=>`${(e.modelValue-o.value)/(i.value-o.value)*100}%`),A=W(()=>e.vertical?{bottom:P.value}:{left:P.value}),R=()=>{t.hovering=!0,C()},B=()=>{t.hovering=!1,t.dragging||T()},N=he=>{r.value||(he.preventDefault(),X(he),window.addEventListener("mousemove",V),window.addEventListener("touchmove",V),window.addEventListener("mouseup",G),window.addEventListener("touchend",G),window.addEventListener("contextmenu",G),$.value.focus())},I=he=>{r.value||(t.newPosition=Number.parseFloat(P.value)+he/(i.value-o.value)*100,se(t.newPosition),p())},D=()=>{I(-a.value)},L=()=>{I(a.value)},z=()=>{I(-a.value*4)},q=()=>{I(a.value*4)},ae=()=>{r.value||(se(0),p())},K=()=>{r.value||(se(100),p())},H=he=>{let pe=!0;[JIe,e3e].includes(he.key)?D():[t3e,n3e].includes(he.key)?L():he.key===r3e?ae():he.key===o3e?K():he.key===a3e?z():he.key===i3e?q():pe=!1,pe&&he.preventDefault()},ne=he=>{let pe,Be;return he.type.startsWith("touch")?(Be=he.touches[0].clientY,pe=he.touches[0].clientX):(Be=he.clientY,pe=he.clientX),{clientX:pe,clientY:Be}},X=he=>{t.dragging=!0,t.isClick=!0;const{clientX:pe,clientY:Be}=ne(he);e.vertical?t.startY=Be:t.startX=pe,t.startPosition=Number.parseFloat(P.value),t.newPosition=t.startPosition},V=he=>{if(t.dragging){t.isClick=!1,C(),v();let pe;const{clientX:Be,clientY:De}=ne(he);e.vertical?(t.currentY=De,pe=(t.startY-t.currentY)/u.value*100):(t.currentX=Be,pe=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+pe,se(t.newPosition)}},G=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||T(),t.isClick||se(t.newPosition),p()},0),window.removeEventListener("mousemove",V),window.removeEventListener("touchmove",V),window.removeEventListener("mouseup",G),window.removeEventListener("touchend",G),window.removeEventListener("contextmenu",G))},se=async he=>{if(he===null||Number.isNaN(+he))return;he<0?he=0:he>100&&(he=100);const pe=100/((i.value-o.value)/a.value);let De=Math.round(he/pe)*pe*(i.value-o.value)*.01+o.value;De=Number.parseFloat(De.toFixed(l.value)),De!==e.modelValue&&n(En,De),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await zt(),t.dragging&&C(),w.value.updatePopper()};return at(()=>t.dragging,he=>{y(he)}),Ar($,"touchstart",N,{passive:!1}),{disabled:r,button:$,tooltip:w,tooltipVisible:b,showTooltip:s,wrapperStyle:A,formatValue:k,handleMouseEnter:R,handleMouseLeave:B,onButtonDown:N,onKeyDown:H,setPosition:se}},u3e=(e,t,n,r)=>({stops:W(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const a=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:a-1}).map((u,d)=>(d+1)*s);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:a=>e.vertical?{bottom:`${a}%`}:{left:`${a}%`}}),c3e=(e,t,n,r,o,i)=>{const a=u=>{o(En,u),o(xs,u)},s=()=>e.range?![n.value,r.value].every((u,d)=>u===t.oldValue[d]):e.modelValue!==t.oldValue,l=()=>{var u,d;e.min>e.max&&$i("Slider","min should not be greater than max.");const p=e.modelValue;e.range&&Array.isArray(p)?p[1]<e.min?a([e.min,e.min]):p[0]>e.max?a([e.max,e.max]):p[0]<e.min?a([e.min,p[1]]):p[1]>e.max?a([p[0],e.max]):(t.firstValue=p[0],t.secondValue=p[1],s()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(v=>void 0)),t.oldValue=p.slice())):!e.range&&typeof p=="number"&&!Number.isNaN(p)&&(p<e.min?a(e.min):p>e.max?a(e.max):(t.firstValue=p,s()&&(e.validateEvent&&((d=i==null?void 0:i.validate)==null||d.call(i,"change").catch(v=>void 0)),t.oldValue=p)))};l(),at(()=>t.dragging,u=>{u||l()}),at(()=>e.modelValue,(u,d)=>{t.dragging||Array.isArray(u)&&Array.isArray(d)&&u.every((p,v)=>p===d[v])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),at(()=>[e.min,e.max],()=>{l()})},f3e=pt({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ov,default:"top"}}),d3e={[En]:e=>en(e)},h3e=Se({name:"ElSliderButton"}),p3e=Se({...h3e,props:f3e,emits:d3e,setup(e,{expose:t,emit:n}){const r=e,o=lt("slider"),i=nr({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:a,button:s,tooltip:l,showTooltip:u,tooltipVisible:d,wrapperStyle:p,formatValue:v,handleMouseEnter:y,handleMouseLeave:w,onButtonDown:b,onKeyDown:k,setPosition:C}=l3e(r,i,n),{hovering:T,dragging:$}=ea(i);return t({onButtonDown:b,onKeyDown:k,setPosition:C,hovering:T,dragging:$}),(P,A)=>(Z(),ce("div",{ref_key:"button",ref:s,class:J([m(o).e("button-wrapper"),{hover:m(T),dragging:m($)}]),style:Vt(m(p)),tabindex:m(a)?-1:0,onMouseenter:m(y),onMouseleave:m(w),onMousedown:m(b),onFocus:m(y),onBlur:m(w),onKeydown:m(k)},[re(m(Fi),{ref_key:"tooltip",ref:l,visible:m(d),placement:P.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":P.tooltipClass,disabled:!m(u),persistent:""},{content:ue(()=>[ve("span",null,ut(m(v)),1)]),default:ue(()=>[ve("div",{class:J([m(o).e("button"),{hover:m(T),dragging:m($)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var sB=vt(p3e,[["__file","button.vue"]]);const g3e=pt({mark:{type:Ie([String,Object]),default:void 0}});var v3e=Se({name:"ElSliderMarker",props:g3e,setup(e){const t=lt("slider"),n=W(()=>Gt(e.mark)?e.mark:e.mark.label),r=W(()=>Gt(e.mark)?void 0:e.mark.style);return()=>Yt("div",{class:t.e("marks-text"),style:r.value},n.value)}});const m3e=Se({name:"ElSlider"}),y3e=Se({...m3e,props:HIe,emits:XIe,setup(e,{expose:t,emit:n}){const r=e,o=lt("slider"),{t:i}=rr(),a=nr({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:d,sliderDisabled:p,minValue:v,maxValue:y,runwayStyle:w,barStyle:b,resetSize:k,emitChange:C,onSliderWrapperPrevent:T,onSliderClick:$,onSliderDown:P,onSliderMarkerDown:A,setFirstValue:R,setSecondValue:B}=KIe(r,a,n),{stops:N,getStopStyle:I}=u3e(r,a,v,y),{inputId:D,isLabeledByFormItem:L}=bc(r,{formItemContext:s}),z=bi(),q=W(()=>r.inputSize||z.value),ae=W(()=>r.ariaLabel||i("el.slider.defaultLabel",{min:r.min,max:r.max})),K=W(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):ae.value),H=W(()=>r.formatValueText?r.formatValueText(pe.value):`${pe.value}`),ne=W(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),X=W(()=>r.formatValueText?r.formatValueText(Be.value):`${Be.value}`),V=W(()=>[o.b(),o.m(z.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}]),G=qIe(r);c3e(r,a,v,y,n,s);const se=W(()=>{const $e=[r.min,r.max,r.step].map(_e=>{const me=`${_e}`.split(".")[1];return me?me.length:0});return Math.max.apply(null,$e)}),{sliderWrapper:he}=GIe(r,a,k),{firstValue:pe,secondValue:Be,sliderSize:De}=ea(a),ze=$e=>{a.dragging=$e};return Ar(he,"touchstart",T,{passive:!1}),Ar(he,"touchmove",T,{passive:!1}),Wn(kU,{...ea(r),sliderSize:De,disabled:p,precision:se,emitChange:C,resetSize:k,updateDragging:ze}),t({onSliderClick:$}),($e,_e)=>{var me,Re;return Z(),ce("div",{id:$e.range?m(D):void 0,ref_key:"sliderWrapper",ref:he,class:J(m(V)),role:$e.range?"group":void 0,"aria-label":$e.range&&!m(L)?m(ae):void 0,"aria-labelledby":$e.range&&m(L)?(me=m(s))==null?void 0:me.labelId:void 0},[ve("div",{ref_key:"slider",ref:l,class:J([m(o).e("runway"),{"show-input":$e.showInput&&!$e.range},m(o).is("disabled",m(p))]),style:Vt(m(w)),onMousedown:m(P),onTouchstartPassive:m(P)},[ve("div",{class:J(m(o).e("bar")),style:Vt(m(b))},null,6),re(sB,{id:$e.range?void 0:m(D),ref_key:"firstButton",ref:u,"model-value":m(pe),vertical:$e.vertical,"tooltip-class":$e.tooltipClass,placement:$e.placement,role:"slider","aria-label":$e.range||!m(L)?m(K):void 0,"aria-labelledby":!$e.range&&m(L)?(Re=m(s))==null?void 0:Re.labelId:void 0,"aria-valuemin":$e.min,"aria-valuemax":$e.range?m(Be):$e.max,"aria-valuenow":m(pe),"aria-valuetext":m(H),"aria-orientation":$e.vertical?"vertical":"horizontal","aria-disabled":m(p),"onUpdate:modelValue":m(R)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),$e.range?(Z(),Fe(sB,{key:0,ref_key:"secondButton",ref:d,"model-value":m(Be),vertical:$e.vertical,"tooltip-class":$e.tooltipClass,placement:$e.placement,role:"slider","aria-label":m(ne),"aria-valuemin":m(pe),"aria-valuemax":$e.max,"aria-valuenow":m(Be),"aria-valuetext":m(X),"aria-orientation":$e.vertical?"vertical":"horizontal","aria-disabled":m(p),"onUpdate:modelValue":m(B)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):je("v-if",!0),$e.showStops?(Z(),ce("div",{key:1},[(Z(!0),ce(Pt,null,_n(m(N),(we,fe)=>(Z(),ce("div",{key:fe,class:J(m(o).e("stop")),style:Vt(m(I)(we))},null,6))),128))])):je("v-if",!0),m(G).length>0?(Z(),ce(Pt,{key:2},[ve("div",null,[(Z(!0),ce(Pt,null,_n(m(G),(we,fe)=>(Z(),ce("div",{key:fe,style:Vt(m(I)(we.position)),class:J([m(o).e("stop"),m(o).e("marks-stop")])},null,6))),128))]),ve("div",{class:J(m(o).e("marks"))},[(Z(!0),ce(Pt,null,_n(m(G),(we,fe)=>(Z(),Fe(m(v3e),{key:fe,mark:we.mark,style:Vt(m(I)(we.position)),onMousedown:tn(oe=>m(A)(we.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):je("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),$e.showInput&&!$e.range?(Z(),Fe(m(KZ),{key:0,ref:"input","model-value":m(pe),class:J(m(o).e("input")),step:$e.step,disabled:m(p),controls:$e.showInputControls,min:$e.min,max:$e.max,precision:m(se),debounce:$e.debounce,size:m(q),"onUpdate:modelValue":m(R),onChange:m(C)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):je("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var b3e=vt(y3e,[["__file","slider.vue"]]);const _3e=pn(b3e),O3e=pt({prefixCls:{type:String}}),lB=Se({name:"ElSpaceItem",props:O3e,setup(e,{slots:t}){const n=lt("space"),r=W(()=>`${e.prefixCls||n.b()}__item`);return()=>Yt("div",{class:r.value},He(t,"default"))}}),uB={small:8,default:12,large:16};function w3e(e){const t=lt("space"),n=W(()=>[t.b(),t.m(e.direction),e.class]),r=ee(0),o=ee(0),i=W(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},u={rowGap:`${o.value}px`,columnGap:`${r.value}px`};return[s,l,u,e.style]}),a=W(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return Ia(()=>{const{size:s="small",wrap:l,direction:u,fill:d}=e;if(xt(s)){const[p=0,v=0]=s;r.value=p,o.value=v}else{let p;en(s)?p=s:p=uB[s||"small"]||uB.small,(l||d)&&u==="horizontal"?r.value=o.value=p:u==="horizontal"?(r.value=p,o.value=0):(o.value=p,r.value=0)}}),{classes:n,containerStyle:i,itemStyle:a}}const S3e=pt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Ie([String,Object,Array]),default:""},style:{type:Ie([String,Array,Object]),default:""},alignment:{type:Ie(String),default:"center"},prefixCls:{type:String},spacer:{type:Ie([Object,String,Number,Array]),default:null,validator:e=>bo(e)||en(e)||Gt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:wf,validator:e=>en(e)||xt(e)&&e.length===2&&e.every(en)}}),x3e=Se({name:"ElSpace",props:S3e,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:o}=w3e(e);function i(a,s="",l=[]){const{prefixCls:u}=e;return a.forEach((d,p)=>{aM(d)?xt(d.children)&&d.children.forEach((v,y)=>{aM(v)&&xt(v.children)?i(v.children,`${s+y}-`,l):l.push(re(lB,{style:o.value,prefixCls:u,key:`nested-${s+y}`},{default:()=>[v]},lu.PROPS|lu.STYLE,["style","prefixCls"]))}):fwe(d)&&l.push(re(lB,{style:o.value,prefixCls:u,key:`LoopKey${s+p}`},{default:()=>[d]},lu.PROPS|lu.STYLE,["style","prefixCls"]))}),l}return()=>{var a;const{spacer:s,direction:l}=e,u=He(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(xt(u.children)){let d=i(u.children);if(s){const p=d.length-1;d=d.reduce((v,y,w)=>{const b=[...v,y];return w!==p&&b.push(re("span",{style:[o.value,l==="vertical"?"width: 100%":null],key:w},[bo(s)?s:St(s,lu.TEXT)],lu.STYLE)),b},[])}return re("div",{class:n.value,style:r.value},d,lu.STYLE|lu.CLASS)}return u.children}}}),k3e=pn(x3e),C3e=pt({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:Ie([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:Ie([String,Object,Array])}}),E3e=Se({name:"ElStatistic"}),T3e=Se({...E3e,props:C3e,setup(e,{expose:t}){const n=e,r=lt("statistic"),o=W(()=>{const{value:i,formatter:a,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(nn(a))return a(i);if(!en(i)||Number.isNaN(i))return i;let[d,p=""]=String(i).split(".");return p=p.padEnd(s,"0").slice(0,s>0?s:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,u),[d,p].join(p?l:"")});return t({displayValue:o}),(i,a)=>(Z(),ce("div",{class:J(m(r).b())},[i.$slots.title||i.title?(Z(),ce("div",{key:0,class:J(m(r).e("head"))},[He(i.$slots,"title",{},()=>[St(ut(i.title),1)])],2)):je("v-if",!0),ve("div",{class:J(m(r).e("content"))},[i.$slots.prefix||i.prefix?(Z(),ce("div",{key:0,class:J(m(r).e("prefix"))},[He(i.$slots,"prefix",{},()=>[ve("span",null,ut(i.prefix),1)])],2)):je("v-if",!0),ve("span",{class:J(m(r).e("number")),style:Vt(i.valueStyle)},ut(m(o)),7),i.$slots.suffix||i.suffix?(Z(),ce("div",{key:1,class:J(m(r).e("suffix"))},[He(i.$slots,"suffix",{},()=>[ve("span",null,ut(i.suffix),1)])],2)):je("v-if",!0)],2)],2))}});var P3e=vt(T3e,[["__file","statistic.vue"]]);const CU=pn(P3e),$3e=pt({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:Ie([Number,Object]),default:0},valueStyle:{type:Ie([String,Object,Array])}}),A3e={finish:()=>!0,[ao]:e=>en(e)},M3e=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],cB=e=>en(e)?new Date(e).getTime():e.valueOf(),fB=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return M3e.reduce((i,[a,s])=>{const l=new RegExp(`${a}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/s);return n-=u*s,i.replace(l,d=>String(u).padStart(d.length,"0"))}return i},t).replace(r,"$1")},R3e=Se({name:"ElCountdown"}),N3e=Se({...R3e,props:$3e,emits:A3e,setup(e,{expose:t,emit:n}){const r=e;let o;const i=ee(0),a=W(()=>fB(i.value,r.format)),s=d=>fB(d,r.format),l=()=>{o&&(sv(o),o=void 0)},u=()=>{const d=cB(r.value),p=()=>{let v=d-Date.now();n("change",v),v<=0?(v=0,l(),n("finish")):o=Gh(p),i.value=v};o=Gh(p)};return vn(()=>{i.value=cB(r.value)-Date.now(),at(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0})}),Ur(()=>{l()}),t({displayValue:a}),(d,p)=>(Z(),Fe(m(CU),{value:i.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:s},Il({_:2},[_n(d.$slots,(v,y)=>({name:y,fn:ue(()=>[He(d.$slots,y)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var I3e=vt(N3e,[["__file","countdown.vue"]]);const D3e=pn(I3e),j3e=pt({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),L3e={[ao]:(e,t)=>[e,t].every(en)},B3e=Se({name:"ElSteps"}),V3e=Se({...B3e,props:j3e,emits:L3e,setup(e,{emit:t}){const n=e,r=lt("steps"),{children:o,addChild:i,removeChild:a}=u3(Cn(),"ElStep");return at(o,()=>{o.value.forEach((s,l)=>{s.setIndex(l)})}),Wn("ElSteps",{props:n,steps:o,addStep:i,removeStep:a}),at(()=>n.active,(s,l)=>{t(ao,s,l)}),(s,l)=>(Z(),ce("div",{class:J([m(r).b(),m(r).m(s.simple?"simple":s.direction)])},[He(s.$slots,"default")],2))}});var F3e=vt(V3e,[["__file","steps.vue"]]);const z3e=pt({title:{type:String,default:""},icon:{type:Fr},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Q3e=Se({name:"ElStep"}),W3e=Se({...Q3e,props:z3e,setup(e){const t=e,n=lt("step"),r=ee(-1),o=ee({}),i=ee(""),a=Tt("ElSteps"),s=Cn();vn(()=>{at([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([R])=>{P(R)},{immediate:!0})}),Ur(()=>{a.removeStep(A.uid)});const l=W(()=>t.status||i.value),u=W(()=>{const R=a.steps.value[r.value-1];return R?R.currentStatus:"wait"}),d=W(()=>a.props.alignCenter),p=W(()=>a.props.direction==="vertical"),v=W(()=>a.props.simple),y=W(()=>a.steps.value.length),w=W(()=>{var R;return((R=a.steps.value[y.value-1])==null?void 0:R.uid)===(s==null?void 0:s.uid)}),b=W(()=>v.value?"":a.props.space),k=W(()=>[n.b(),n.is(v.value?"simple":a.props.direction),n.is("flex",w.value&&!b.value&&!d.value),n.is("center",d.value&&!p.value&&!v.value)]),C=W(()=>{const R={flexBasis:en(b.value)?`${b.value}px`:b.value?b.value:`${100/(y.value-(d.value?0:1))}%`};return p.value||w.value&&(R.maxWidth=`${100/y.value}%`),R}),T=R=>{r.value=R},$=R=>{const B=R==="wait",N={transitionDelay:`${B?"-":""}${150*r.value}ms`},I=R===a.props.processStatus||B?0:100;N.borderWidth=I&&!v.value?"1px":0,N[a.props.direction==="vertical"?"height":"width"]=`${I}%`,o.value=N},P=R=>{R>r.value?i.value=a.props.finishStatus:R===r.value&&u.value!=="error"?i.value=a.props.processStatus:i.value="wait";const B=a.steps.value[r.value-1];B&&B.calcProgress(i.value)},A=nr({uid:s.uid,currentStatus:l,setIndex:T,calcProgress:$});return a.addStep(A),(R,B)=>(Z(),ce("div",{style:Vt(m(C)),class:J(m(k))},[je(" icon & line "),ve("div",{class:J([m(n).e("head"),m(n).is(m(l))])},[m(v)?je("v-if",!0):(Z(),ce("div",{key:0,class:J(m(n).e("line"))},[ve("i",{class:J(m(n).e("line-inner")),style:Vt(o.value)},null,6)],2)),ve("div",{class:J([m(n).e("icon"),m(n).is(R.icon||R.$slots.icon?"icon":"text")])},[He(R.$slots,"icon",{},()=>[R.icon?(Z(),Fe(m(jt),{key:0,class:J(m(n).e("icon-inner"))},{default:ue(()=>[(Z(),Fe(Dn(R.icon)))]),_:1},8,["class"])):m(l)==="success"?(Z(),Fe(m(jt),{key:1,class:J([m(n).e("icon-inner"),m(n).is("status")])},{default:ue(()=>[re(m(h0))]),_:1},8,["class"])):m(l)==="error"?(Z(),Fe(m(jt),{key:2,class:J([m(n).e("icon-inner"),m(n).is("status")])},{default:ue(()=>[re(m(el))]),_:1},8,["class"])):m(v)?je("v-if",!0):(Z(),ce("div",{key:3,class:J(m(n).e("icon-inner"))},ut(r.value+1),3))])],2)],2),je(" title & description "),ve("div",{class:J(m(n).e("main"))},[ve("div",{class:J([m(n).e("title"),m(n).is(m(l))])},[He(R.$slots,"title",{},()=>[St(ut(R.title),1)])],2),m(v)?(Z(),ce("div",{key:0,class:J(m(n).e("arrow"))},null,2)):(Z(),ce("div",{key:1,class:J([m(n).e("description"),m(n).is(m(l))])},[He(R.$slots,"description",{},()=>[St(ut(R.description),1)])],2))],2)],6))}});var EU=vt(W3e,[["__file","item.vue"]]);const Y3e=pn(F3e,{Step:EU}),Z3e=So(EU),U3e=pt({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:PW},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Fr},activeActionIcon:{type:Fr},activeIcon:{type:Fr},inactiveIcon:{type:Fr},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Ie(Function)},id:String,tabindex:{type:[String,Number]},...ha(["ariaLabel"])}),H3e={[En]:e=>Uo(e)||Gt(e)||en(e),[ao]:e=>Uo(e)||Gt(e)||en(e),[xs]:e=>Uo(e)||Gt(e)||en(e)},TU="ElSwitch",X3e=Se({name:TU}),G3e=Se({...X3e,props:U3e,emits:H3e,setup(e,{expose:t,emit:n}){const r=e,{formItem:o}=as(),i=bi(),a=lt("switch"),{inputId:s}=bc(r,{formItemContext:o}),l=Rs(W(()=>r.loading)),u=ee(r.modelValue!==!1),d=ee(),p=ee(),v=W(()=>[a.b(),a.m(i.value),a.is("disabled",l.value),a.is("checked",C.value)]),y=W(()=>[a.e("label"),a.em("label","left"),a.is("active",!C.value)]),w=W(()=>[a.e("label"),a.em("label","right"),a.is("active",C.value)]),b=W(()=>({width:Vo(r.width)}));at(()=>r.modelValue,()=>{u.value=!0});const k=W(()=>u.value?r.modelValue:!1),C=W(()=>k.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(k.value)||(n(En,r.inactiveValue),n(ao,r.inactiveValue),n(xs,r.inactiveValue)),at(C,A=>{var R;d.value.checked=A,r.validateEvent&&((R=o==null?void 0:o.validate)==null||R.call(o,"change").catch(B=>void 0))});const T=()=>{const A=C.value?r.inactiveValue:r.activeValue;n(En,A),n(ao,A),n(xs,A),zt(()=>{d.value.checked=C.value})},$=()=>{if(l.value)return;const{beforeChange:A}=r;if(!A){T();return}const R=A();[dO(R),Uo(R)].includes(!0)||$i(TU,"beforeChange must return type `Promise<boolean>` or `boolean`"),dO(R)?R.then(N=>{N&&T()}).catch(N=>{}):R&&T()},P=()=>{var A,R;(R=(A=d.value)==null?void 0:A.focus)==null||R.call(A)};return vn(()=>{d.value.checked=C.value}),t({focus:P,checked:C}),(A,R)=>(Z(),ce("div",{class:J(m(v)),onClick:tn($,["prevent"])},[ve("input",{id:m(s),ref_key:"input",ref:d,class:J(m(a).e("input")),type:"checkbox",role:"switch","aria-checked":m(C),"aria-disabled":m(l),"aria-label":A.ariaLabel,name:A.name,"true-value":A.activeValue,"false-value":A.inactiveValue,disabled:m(l),tabindex:A.tabindex,onChange:T,onKeydown:Vr($,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!A.inlinePrompt&&(A.inactiveIcon||A.inactiveText)?(Z(),ce("span",{key:0,class:J(m(y))},[A.inactiveIcon?(Z(),Fe(m(jt),{key:0},{default:ue(()=>[(Z(),Fe(Dn(A.inactiveIcon)))]),_:1})):je("v-if",!0),!A.inactiveIcon&&A.inactiveText?(Z(),ce("span",{key:1,"aria-hidden":m(C)},ut(A.inactiveText),9,["aria-hidden"])):je("v-if",!0)],2)):je("v-if",!0),ve("span",{ref_key:"core",ref:p,class:J(m(a).e("core")),style:Vt(m(b))},[A.inlinePrompt?(Z(),ce("div",{key:0,class:J(m(a).e("inner"))},[A.activeIcon||A.inactiveIcon?(Z(),Fe(m(jt),{key:0,class:J(m(a).is("icon"))},{default:ue(()=>[(Z(),Fe(Dn(m(C)?A.activeIcon:A.inactiveIcon)))]),_:1},8,["class"])):A.activeText||A.inactiveText?(Z(),ce("span",{key:1,class:J(m(a).is("text")),"aria-hidden":!m(C)},ut(m(C)?A.activeText:A.inactiveText),11,["aria-hidden"])):je("v-if",!0)],2)):je("v-if",!0),ve("div",{class:J(m(a).e("action"))},[A.loading?(Z(),Fe(m(jt),{key:0,class:J(m(a).is("loading"))},{default:ue(()=>[re(m(cf))]),_:1},8,["class"])):m(C)?He(A.$slots,"active-action",{key:1},()=>[A.activeActionIcon?(Z(),Fe(m(jt),{key:0},{default:ue(()=>[(Z(),Fe(Dn(A.activeActionIcon)))]),_:1})):je("v-if",!0)]):m(C)?je("v-if",!0):He(A.$slots,"inactive-action",{key:2},()=>[A.inactiveActionIcon?(Z(),Fe(m(jt),{key:0},{default:ue(()=>[(Z(),Fe(Dn(A.inactiveActionIcon)))]),_:1})):je("v-if",!0)])],2)],6),!A.inlinePrompt&&(A.activeIcon||A.activeText)?(Z(),ce("span",{key:1,class:J(m(w))},[A.activeIcon?(Z(),Fe(m(jt),{key:0},{default:ue(()=>[(Z(),Fe(Dn(A.activeIcon)))]),_:1})):je("v-if",!0),!A.activeIcon&&A.activeText?(Z(),ce("span",{key:1,"aria-hidden":!m(C)},ut(A.activeText),9,["aria-hidden"])):je("v-if",!0)],2)):je("v-if",!0)],10,["onClick"]))}});var q3e=vt(G3e,[["__file","switch.vue"]]);const P1=pn(q3e),U$=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},K3e=function(e,t,n,r,o){if(!t&&!r&&(!o||Array.isArray(o)&&!o.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return o?(Array.isArray(o)||(o=[o]),o.map(u=>typeof u=="string"?Ao(s,u):u(s,l,e))):(t!=="$key"&&Pn(s)&&"$value"in s&&(s=s.$value),[Pn(s)?Ao(s,t):s])},a=function(s,l){if(r)return r(s.value,l.value);for(let u=0,d=s.key.length;u<d;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:i?i(s,l):null})).sort((s,l)=>{let u=a(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},PU=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},J3e=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const o=e.columns[r];if(o.columnKey===t){n=o;break}}return n||$i("ElTable",`No column matching with column-key: ${t}`),n},dB=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?PU(e,r[0]):null},Ja=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const o of n)r=r[o];return`${r}`}else if(typeof t=="function")return t.call(null,e)},zg=function(e,t){const n={};return(e||[]).forEach((r,o)=>{n[Ja(r,t)]={row:r,index:o}}),n};function eDe(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(ir(t,r)){const o=t[r];typeof o!="undefined"&&(n[r]=o)}return n}function F3(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function $U(e){return e===""||e!==void 0&&(e=F3(e),Number.isNaN(e)&&(e=80)),e}function tDe(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function nDe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function e2(e,t,n,r,o,i){let a=i!=null?i:0,s=!1;const l=e.indexOf(t),u=l!==-1,d=o==null?void 0:o.call(null,t,i),p=y=>{y==="add"?e.push(t):e.splice(l,1),s=!0},v=y=>{let w=0;const b=(r==null?void 0:r.children)&&y[r.children];return b&&xt(b)&&(w+=b.length,b.forEach(k=>{w+=v(k)})),w};return(!o||d)&&(Uo(n)?n&&!u?p("add"):!n&&u&&p("remove"):p(u?"remove":"add")),!(r!=null&&r.checkStrictly)&&(r==null?void 0:r.children)&&xt(t[r.children])&&t[r.children].forEach(y=>{e2(e,y,n!=null?n:!u,r,o,a+1),a+=v(y)+1}),s}function rDe(e,t,n="children",r="hasChildren"){const o=a=>!(Array.isArray(a)&&a.length);function i(a,s,l){t(a,s,l),s.forEach(u=>{if(u[r]){t(u,null,l+1);return}const d=u[n];o(d)||i(u,d,l+1)})}e.forEach(a=>{if(a[r]){t(a,null,0);return}const s=a[n];o(s)||i(a,s,0)})}let su=null;function oDe(e,t,n,r){if((su==null?void 0:su.trigger)===n)return;su==null||su();const o=r==null?void 0:r.refs.tableWrapper,i=o==null?void 0:o.dataset.prefix,a={strategy:"fixed",...e.popperOptions},s=re(Fi,{content:t,virtualTriggering:!0,virtualRef:n,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:a,onHide:()=>{su==null||su()}});s.appContext={...r.appContext,...r};const l=document.createElement("div");Zh(s,l),s.component.exposed.onOpen();const u=o==null?void 0:o.querySelector(`.${i}-scrollbar__wrap`);su=()=>{Zh(null,l),u==null||u.removeEventListener("scroll",su),su=null},su.trigger=n,u==null||u.addEventListener("scroll",su)}function AU(e){return e.children?TQ(e.children,AU):[e]}function hB(e,t){return e+t.colSpan}const MU=(e,t,n,r)=>{let o=0,i=e;const a=n.states.columns.value;if(r){const l=AU(r[e]);o=a.slice(0,a.indexOf(l[0])).reduce(hB,0),i=o+l.reduce(hB,0)-1}else o=e;let s;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":o>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<n.states.fixedLeafColumnsLength.value?s="left":o>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:i}:{}},z3=(e,t,n,r,o,i=0)=>{const a=[],{direction:s,start:l,after:u}=MU(t,n,r,o);if(s){const d=s==="left";a.push(`${e}-fixed-column--${s}`),d&&u+i===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!d&&l-i===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function pB(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Q3=(e,t,n,r)=>{const{direction:o,start:i=0,after:a=0}=MU(e,t,n,r);if(!o)return;const s={},l=o==="left",u=n.states.columns.value;return l?s.left=u.slice(0,i).reduce(pB,0):s.right=u.slice(a+1).reverse().reduce(pB,0),s},Yy=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function iDe(e){const t=Cn(),n=ee(!1),r=ee([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const d=zg(r.value,u);r.value=l.reduce((p,v)=>{const y=Ja(v,u);return d[y]&&p.push(v),p},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{e2(r.value,l,u)&&t.emit("expand-change",l,r.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,p=zg(u,d);r.value=l.reduce((v,y)=>{const w=p[y];return w&&v.push(w.row),v},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!zg(r.value,u)[Ja(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function aDe(e){const t=Cn(),n=ee(null),r=ee(null),o=u=>{t.store.assertRowKey(),n.value=u,a(u)},i=()=>{n.value=null},a=u=>{const{data:d,rowKey:p}=e;let v=null;p.value&&(v=(m(d)||[]).find(y=>Ja(y,p.value)===u)),r.value=v,t.emit("current-change",r.value,null)};return{setCurrentRowKey:o,restoreCurrentRowKey:i,setCurrentRowByKey:a,updateCurrentRow:u=>{const d=r.value;if(u&&u!==d){r.value=u,t.emit("current-change",r.value,d);return}!u&&d&&(r.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],p=r.value;if(!d.includes(p)&&p){if(u){const v=Ja(p,u);a(v)}else r.value=null;r.value===null&&t.emit("current-change",null,p)}else n.value&&(a(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function sDe(e){const t=ee([]),n=ee({}),r=ee(16),o=ee(!1),i=ee({}),a=ee("hasChildren"),s=ee("children"),l=ee(!1),u=Cn(),d=W(()=>{if(!e.rowKey.value)return{};const T=e.data.value||[];return v(T)}),p=W(()=>{const T=e.rowKey.value,$=Object.keys(i.value),P={};return $.length&&$.forEach(A=>{if(i.value[A].length){const R={children:[]};i.value[A].forEach(B=>{const N=Ja(B,T);R.children.push(N),B[a.value]&&!P[N]&&(P[N]={children:[]})}),P[A]=R}}),P}),v=T=>{const $=e.rowKey.value,P={};return rDe(T,(A,R,B)=>{const N=Ja(A,$);Array.isArray(R)?P[N]={children:R.map(I=>Ja(I,$)),level:B}:o.value&&(P[N]={children:[],lazy:!0,level:B})},s.value,a.value),P},y=(T=!1,$=(P=>(P=u.store)==null?void 0:P.states.defaultExpandAll.value)())=>{var P;const A=d.value,R=p.value,B=Object.keys(A),N={};if(B.length){const I=m(n),D=[],L=(q,ae)=>{if(T)return t.value?$||t.value.includes(ae):!!($||(q==null?void 0:q.expanded));{const K=$||t.value&&t.value.includes(ae);return!!((q==null?void 0:q.expanded)||K)}};B.forEach(q=>{const ae=I[q],K={...A[q]};if(K.expanded=L(ae,q),K.lazy){const{loaded:H=!1,loading:ne=!1}=ae||{};K.loaded=!!H,K.loading=!!ne,D.push(q)}N[q]=K});const z=Object.keys(R);o.value&&z.length&&D.length&&z.forEach(q=>{const ae=I[q],K=R[q].children;if(D.includes(q)){if(N[q].children.length!==0)throw new Error("[ElTable]children must be an empty array.");N[q].children=K}else{const{loaded:H=!1,loading:ne=!1}=ae||{};N[q]={lazy:!0,loaded:!!H,loading:!!ne,expanded:L(ae,q),children:K,level:""}}})}n.value=N,(P=u.store)==null||P.updateTableScrollY()};at(()=>t.value,()=>{y(!0)}),at(()=>d.value,()=>{y()}),at(()=>p.value,()=>{y()});const w=T=>{t.value=T,y()},b=(T,$)=>{u.store.assertRowKey();const P=e.rowKey.value,A=Ja(T,P),R=A&&n.value[A];if(A&&R&&"expanded"in R){const B=R.expanded;$=typeof $=="undefined"?!R.expanded:$,n.value[A].expanded=$,B!==$&&u.emit("expand-change",T,$),u.store.updateTableScrollY()}},k=T=>{u.store.assertRowKey();const $=e.rowKey.value,P=Ja(T,$),A=n.value[P];o.value&&A&&"loaded"in A&&!A.loaded?C(T,P,A):b(T,void 0)},C=(T,$,P)=>{const{load:A}=u.props;A&&!n.value[$].loaded&&(n.value[$].loading=!0,A(T,P,R=>{if(!Array.isArray(R))throw new TypeError("[ElTable] data must be an array");n.value[$].loading=!1,n.value[$].loaded=!0,n.value[$].expanded=!0,R.length&&(i.value[$]=R),u.emit("expand-change",T,!0)}))};return{loadData:C,loadOrToggle:k,toggleTreeExpansion:b,updateTreeExpandKeys:w,updateTreeData:y,normalize:v,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:a,childrenColumnName:s,checkStrictly:l}}}const lDe=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:K3e(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},lk=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,lk(n.children)):t.push(n)}),t};function uDe(){var e;const t=Cn(),{size:n}=ea((e=t.proxy)==null?void 0:e.$props),r=ee(null),o=ee([]),i=ee([]),a=ee(!1),s=ee([]),l=ee([]),u=ee([]),d=ee([]),p=ee([]),v=ee([]),y=ee([]),w=ee([]),b=[],k=ee(0),C=ee(0),T=ee(0),$=ee(!1),P=ee([]),A=ee(!1),R=ee(!1),B=ee(null),N=ee({}),I=ee(null),D=ee(null),L=ee(null),z=ee(null),q=ee(null);at(o,()=>t.state&&ne(!1),{deep:!0});const ae=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},K=Ee=>{var Ze;(Ze=Ee.children)==null||Ze.forEach(ye=>{ye.fixed=Ee.fixed,K(ye)})},H=()=>{s.value.forEach(xe=>{K(xe)}),d.value=s.value.filter(xe=>xe.fixed===!0||xe.fixed==="left"),p.value=s.value.filter(xe=>xe.fixed==="right"),d.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,d.value.unshift(s.value[0]));const Ee=s.value.filter(xe=>!xe.fixed);l.value=[].concat(d.value).concat(Ee).concat(p.value);const Ze=lk(Ee),ye=lk(d.value),Le=lk(p.value);k.value=Ze.length,C.value=ye.length,T.value=Le.length,u.value=[].concat(ye).concat(Ze).concat(Le),a.value=d.value.length>0||p.value.length>0},ne=(Ee,Ze=!1)=>{Ee&&H(),Ze?t.state.doLayout():t.state.debouncedUpdateLayout()},X=Ee=>P.value.includes(Ee),V=()=>{$.value=!1;const Ee=P.value;P.value=[],Ee.length&&t.emit("selection-change",[])},G=()=>{let Ee;if(r.value){Ee=[];const Ze=zg(P.value,r.value),ye=zg(o.value,r.value);for(const Le in Ze)ir(Ze,Le)&&!ye[Le]&&Ee.push(Ze[Le].row)}else Ee=P.value.filter(Ze=>!o.value.includes(Ze));if(Ee.length){const Ze=P.value.filter(ye=>!Ee.includes(ye));P.value=Ze,t.emit("selection-change",Ze.slice())}},se=()=>(P.value||[]).slice(),he=(Ee,Ze,ye=!0)=>{var Le,xe,Ue,rt;const Ft={children:(xe=(Le=t==null?void 0:t.store)==null?void 0:Le.states)==null?void 0:xe.childrenColumnName.value,checkStrictly:(rt=(Ue=t==null?void 0:t.store)==null?void 0:Ue.states)==null?void 0:rt.checkStrictly.value};if(e2(P.value,Ee,Ze,Ft,B.value)){const ot=(P.value||[]).slice();ye&&t.emit("select",ot,Ee),t.emit("selection-change",ot)}},pe=()=>{var Ee,Ze;const ye=R.value?!$.value:!($.value||P.value.length);$.value=ye;let Le=!1,xe=0;const Ue=(Ze=(Ee=t==null?void 0:t.store)==null?void 0:Ee.states)==null?void 0:Ze.rowKey.value,{childrenColumnName:rt}=t.store.states,Ft={children:rt.value,checkStrictly:!1};o.value.forEach((Vn,ot)=>{const Lt=ot+xe;e2(P.value,Vn,ye,Ft,B.value,Lt)&&(Le=!0),xe+=ze(Ja(Vn,Ue))}),Le&&t.emit("selection-change",P.value?P.value.slice():[]),t.emit("select-all",(P.value||[]).slice())},Be=()=>{const Ee=zg(P.value,r.value);o.value.forEach(Ze=>{const ye=Ja(Ze,r.value),Le=Ee[ye];Le&&(P.value[Le.index]=Ze)})},De=()=>{var Ee;if(((Ee=o.value)==null?void 0:Ee.length)===0){$.value=!1;return}const{childrenColumnName:Ze}=t.store.states,ye=r.value?zg(P.value,r.value):void 0;let Le=0,xe=0;const Ue=Vn=>ye?!!ye[Ja(Vn,r.value)]:P.value.includes(Vn),rt=Vn=>{var ot;for(const Lt of Vn){const wn=B.value&&B.value.call(null,Lt,Le);if(Ue(Lt))xe++;else if(!B.value||wn)return!1;if(Le++,((ot=Lt[Ze.value])==null?void 0:ot.length)&&!rt(Lt[Ze.value]))return!1}return!0},Ft=rt(o.value||[]);$.value=xe===0?!1:Ft},ze=Ee=>{var Ze;if(!t||!t.store)return 0;const{treeData:ye}=t.store.states;let Le=0;const xe=(Ze=ye.value[Ee])==null?void 0:Ze.children;return xe&&(Le+=xe.length,xe.forEach(Ue=>{Le+=ze(Ue)})),Le},$e=(Ee,Ze)=>{Array.isArray(Ee)||(Ee=[Ee]);const ye={};return Ee.forEach(Le=>{N.value[Le.id]=Ze,ye[Le.columnKey||Le.id]=Ze}),ye},_e=(Ee,Ze,ye)=>{D.value&&D.value!==Ee&&(D.value.order=null),D.value=Ee,L.value=Ze,z.value=ye},me=()=>{let Ee=m(i);Object.keys(N.value).forEach(Ze=>{const ye=N.value[Ze];if(!ye||ye.length===0)return;const Le=PU({columns:u.value},Ze);Le&&Le.filterMethod&&(Ee=Ee.filter(xe=>ye.some(Ue=>Le.filterMethod.call(null,Ue,xe,Le))))}),I.value=Ee},Re=()=>{o.value=lDe(I.value,{sortingColumn:D.value,sortProp:L.value,sortOrder:z.value})},we=(Ee=void 0)=>{Ee&&Ee.filter||me(),Re()},fe=Ee=>{const{tableHeaderRef:Ze}=t.refs;if(!Ze)return;const ye=Object.assign({},Ze.filterPanels),Le=Object.keys(ye);if(!!Le.length)if(typeof Ee=="string"&&(Ee=[Ee]),Array.isArray(Ee)){const xe=Ee.map(Ue=>J3e({columns:u.value},Ue));Le.forEach(Ue=>{const rt=xe.find(Ft=>Ft.id===Ue);rt&&(rt.filteredValue=[])}),t.store.commit("filterChange",{column:xe,values:[],silent:!0,multi:!0})}else Le.forEach(xe=>{const Ue=u.value.find(rt=>rt.id===xe);Ue&&(Ue.filteredValue=[])}),N.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},oe=()=>{!D.value||(_e(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ke,toggleRowExpansion:We,updateExpandRows:et,states:Ve,isRowExpanded:Me}=iDe({data:o,rowKey:r}),{updateTreeExpandKeys:Ke,toggleTreeExpansion:be,updateTreeData:qe,loadOrToggle:ct,states:Je}=sDe({data:o,rowKey:r}),{updateCurrentRowData:Xe,updateCurrentRow:gt,setCurrentRowKey:Ct,states:Zt}=aDe({data:o,rowKey:r});return{assertRowKey:ae,updateColumns:H,scheduleLayout:ne,isSelected:X,clearSelection:V,cleanSelection:G,getSelectionRows:se,toggleRowSelection:he,_toggleAllSelection:pe,toggleAllSelection:null,updateSelectionByRowKey:Be,updateAllSelected:De,updateFilters:$e,updateCurrentRow:gt,updateSort:_e,execFilter:me,execSort:Re,execQuery:we,clearFilter:fe,clearSort:oe,toggleRowExpansion:We,setExpandRowKeysAdapter:Ee=>{ke(Ee),Ke(Ee)},setCurrentRowKey:Ct,toggleRowExpansionAdapter:(Ee,Ze)=>{u.value.some(({type:Le})=>Le==="expand")?We(Ee,Ze):be(Ee,Ze)},isRowExpanded:Me,updateExpandRows:et,updateCurrentRowData:Xe,loadOrToggle:ct,updateTreeData:qe,states:{tableSize:n,rowKey:r,data:o,_data:i,isComplex:a,_columns:s,originColumns:l,columns:u,fixedColumns:d,rightFixedColumns:p,leafColumns:v,fixedLeafColumns:y,rightFixedLeafColumns:w,updateOrderFns:b,leafColumnsLength:k,fixedLeafColumnsLength:C,rightFixedLeafColumnsLength:T,isAllSelected:$,selection:P,reserveSelection:A,selectOnIndeterminate:R,selectable:B,filters:N,filteredData:I,sortingColumn:D,sortProp:L,sortOrder:z,hoverRow:q,...Ve,...Je,...Zt}}}function QM(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=QM(n.children,t)),n)})}function WM(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&WM(t.children)}),e.sort((t,n)=>t.no-n.no)}function cDe(){const e=Cn(),t=uDe();return{ns:lt("table"),...t,mutations:{setData(a,s){const l=m(a._data)!==s;a.data.value=s,a._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),m(a.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,s,l,u){const d=m(a._columns);let p=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),p=QM(d,l)):(d.push(s),p=d),WM(p),a._columns.value=p,a.updateOrderFns.push(u),s.type==="selection"&&(a.selectable.value=s.selectable,a.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(WM(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,s,l,u){const d=m(a._columns)||[];if(l)l.children.splice(l.children.findIndex(v=>v.id===s.id),1),zt(()=>{var v;((v=l.children)==null?void 0:v.length)===0&&delete l.children}),a._columns.value=QM(d,l);else{const v=d.indexOf(s);v>-1&&(d.splice(v,1),a._columns.value=d)}const p=a.updateOrderFns.indexOf(u);p>-1&&a.updateOrderFns.splice(p,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,s){const{prop:l,order:u,init:d}=s;if(l){const p=m(a.columns).find(v=>v.property===l);p&&(p.order=u,e.store.updateSort(p,l,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(a,s){const{sortingColumn:l,sortProp:u,sortOrder:d}=a,p=m(l),v=m(u),y=m(d);y===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const w={filter:!0};e.store.execQuery(w),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:p,prop:v,order:y}),e.store.updateTableScrollY()},filterChange(a,s){const{column:l,values:u,silent:d}=s,p=e.store.updateFilters(l,u);e.store.execQuery(),d||e.emit("filter-change",p),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(a,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(a,s){a.hoverRow.value=s},setCurrentRow(a,s){e.store.updateCurrentRow(s)}},commit:function(a,...s){const l=e.store.mutations;if(l[a])l[a].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${a}`)},updateTableScrollY:function(){zt(()=>e.layout.updateScrollY.apply(e.layout))}}}const q_={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"},["treeProps.checkStrictly"]:{key:"checkStrictly",default:!1}};function fDe(e,t){if(!e)throw new Error("Table is required.");const n=cDe();return n.toggleAllSelection=Ts(n._toggleAllSelection,10),Object.keys(q_).forEach(r=>{RU(NU(t,r),r,n)}),dDe(n,t),n}function dDe(e,t){Object.keys(q_).forEach(n=>{at(()=>NU(t,n),r=>{RU(r,n,e)})})}function RU(e,t,n){let r=e,o=q_[t];typeof q_[t]=="object"&&(o=o.key,r=r||q_[t].default),n.states[o].value=r}function NU(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(o=>{r=r[o]}),r}else return e[t]}class hDe{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ee(null),this.scrollX=ee(!1),this.scrollY=ee(!1),this.bodyWidth=ee(null),this.fixedWidth=ee(null),this.rightFixedWidth=ee(null),this.gutterWidth=0;for(const n in t)ir(t,n)&&(Jr(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n==null?void 0:n.wrapRef)){let r=!0;const o=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,o!==r}return!1}setHeight(t,n="height"){if(!tr)return;const r=this.table.vnode.el;if(t=tDe(t),this.height.value=Number(t),!r&&(t||t===0))return zt(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!tr)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const o=this.getFlattenColumns(),i=o.filter(l=>typeof l.width!="number");if(o.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(o.forEach(l=>{r+=Number(l.width||l.minWidth||80)}),r<=n){this.scrollX.value=!1;const l=n-r;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((v,y)=>v+Number(y.minWidth||80),0),d=l/u;let p=0;i.forEach((v,y)=>{if(y===0)return;const w=Math.floor(Number(v.minWidth||80)*d);p+=w,v.realWidth=Number(v.minWidth||80)+w}),i[0].realWidth=Number(i[0].minWidth||80)+l-p}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const a=this.store.states.fixedColumns.value;if(a.length>0){let l=0;a.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var o,i;switch(t){case"columns":(o=r.state)==null||o.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:pDe}=Fl,gDe=Se({name:"ElTableFilterPanel",components:{ElCheckbox:Fl,ElCheckboxGroup:pDe,ElScrollbar:_c,ElTooltip:Fi,ElIcon:jt,ArrowDown:Cd,ArrowUp:DI},directives:{ClickOutside:hd},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Cn(),{t:n}=rr(),r=lt("table-filter"),o=t==null?void 0:t.parent;o.filterPanels.value[e.column.id]||(o.filterPanels.value[e.column.id]=t);const i=ee(!1),a=ee(null),s=W(()=>e.column&&e.column.filters),l=W(()=>e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),u=W({get:()=>{var A;return(((A=e.column)==null?void 0:A.filteredValue)||[])[0]},set:A=>{d.value&&(typeof A!="undefined"&&A!==null?d.value.splice(0,1,A):d.value.splice(0,1))}}),d=W({get(){return e.column?e.column.filteredValue||[]:[]},set(A){e.column&&e.upDataColumn("filteredValue",A)}}),p=W(()=>e.column?e.column.filterMultiple:!0),v=A=>A.value===u.value,y=()=>{i.value=!1},w=A=>{A.stopPropagation(),i.value=!i.value},b=()=>{i.value=!1},k=()=>{$(d.value),y()},C=()=>{d.value=[],$(d.value),y()},T=A=>{u.value=A,$(typeof A!="undefined"&&A!==null?d.value:[]),y()},$=A=>{e.store.commit("filterChange",{column:e.column,values:A}),e.store.updateAllSelected()};at(i,A=>{e.column&&e.upDataColumn("filterOpened",A)},{immediate:!0});const P=W(()=>{var A,R;return(R=(A=a.value)==null?void 0:A.popperRef)==null?void 0:R.contentRef});return{tooltipVisible:i,multiple:p,filterClassName:l,filteredValue:d,filterValue:u,filters:s,handleConfirm:k,handleReset:C,handleSelect:T,isActive:v,t:n,ns:r,showFilterPanel:w,hideFilterPanel:b,popperPaneRef:P,tooltip:a}}});function vDe(e,t,n,r,o,i){const a=Tn("el-checkbox"),s=Tn("el-checkbox-group"),l=Tn("el-scrollbar"),u=Tn("arrow-up"),d=Tn("arrow-down"),p=Tn("el-icon"),v=Tn("el-tooltip"),y=K2("click-outside");return Z(),Fe(v,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:""},{content:ue(()=>[e.multiple?(Z(),ce("div",{key:0},[ve("div",{class:J(e.ns.e("content"))},[re(l,{"wrap-class":e.ns.e("wrap")},{default:ue(()=>[re(s,{modelValue:e.filteredValue,"onUpdate:modelValue":w=>e.filteredValue=w,class:J(e.ns.e("checkbox-group"))},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(e.filters,w=>(Z(),Fe(a,{key:w.value,value:w.value},{default:ue(()=>[St(ut(w.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),ve("div",{class:J(e.ns.e("bottom"))},[ve("button",{class:J({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},ut(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),ve("button",{type:"button",onClick:e.handleReset},ut(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(Z(),ce("ul",{key:1,class:J(e.ns.e("list"))},[ve("li",{class:J([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:w=>e.handleSelect(null)},ut(e.t("el.table.clearFilter")),11,["onClick"]),(Z(!0),ce(Pt,null,_n(e.filters,w=>(Z(),ce("li",{key:w.value,class:J([e.ns.e("list-item"),e.ns.is("active",e.isActive(w))]),label:w.value,onClick:b=>e.handleSelect(w.value)},ut(w.text),11,["label","onClick"]))),128))],2))]),default:ue(()=>[yn((Z(),ce("span",{class:J([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[re(p,null,{default:ue(()=>[He(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(Z(),Fe(u,{key:0})):(Z(),Fe(d,{key:1}))])]),_:3})],10,["onClick"])),[[y,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class"])}var mDe=vt(gDe,[["render",vDe],["__file","filter-panel.vue"]]);function IU(e){const t=Cn();q2(()=>{n.value.addObserver(t)}),vn(()=>{r(n.value),o(n.value)}),gc(()=>{r(n.value),o(n.value)}),hp(()=>{n.value.removeObserver(t)});const n=W(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var a;const s=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(d=>{u[d.id]=d});for(let d=0,p=s.length;d<p;d++){const v=s[d],y=v.getAttribute("name"),w=u[y];w&&v.setAttribute("width",w.realWidth||w.width)}},o=i=>{var a,s;const l=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,p=l.length;d<p;d++)l[d].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let d=0,p=u.length;d<p;d++){const v=u[d];v.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",v.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:o}}const kf=Symbol("ElTable");function yDe(e,t){const n=Cn(),r=Tt(kf),o=b=>{b.stopPropagation()},i=(b,k)=>{!k.filters&&k.sortable?w(b,k,!1):k.filterable&&!k.sortable&&o(b),r==null||r.emit("header-click",k,b)},a=(b,k)=>{r==null||r.emit("header-contextmenu",k,b)},s=ee(null),l=ee(!1),u=ee({}),d=(b,k)=>{if(!!tr&&!(k.children&&k.children.length>0)&&s.value&&e.border){l.value=!0;const C=r;t("set-drag-visible",!0);const $=(C==null?void 0:C.vnode.el).getBoundingClientRect().left,P=n.vnode.el.querySelector(`th.${k.id}`),A=P.getBoundingClientRect(),R=A.left-$+30;gu(P,"noclick"),u.value={startMouseLeft:b.clientX,startLeft:A.right-$,startColumnLeft:A.left-$,tableLeft:$};const B=C==null?void 0:C.refs.resizeProxy;B.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const N=D=>{const L=D.clientX-u.value.startMouseLeft,z=u.value.startLeft+L;B.style.left=`${Math.max(R,z)}px`},I=()=>{if(l.value){const{startColumnLeft:D,startLeft:L}=u.value,q=Number.parseInt(B.style.left,10)-D;k.width=k.realWidth=q,C==null||C.emit("header-dragend",k.width,L-D,k,b),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",I),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{os(P,"noclick")},0)};document.addEventListener("mousemove",N),document.addEventListener("mouseup",I)}},p=(b,k)=>{if(k.children&&k.children.length>0)return;const C=b.target;if(!Rl(C))return;const T=C==null?void 0:C.closest("th");if(!(!k||!k.resizable)&&!l.value&&e.border){const $=T.getBoundingClientRect(),P=document.body.style;$.width>12&&$.right-b.pageX<8?(P.cursor="col-resize",Us(T,"is-sortable")&&(T.style.cursor="col-resize"),s.value=k):l.value||(P.cursor="",Us(T,"is-sortable")&&(T.style.cursor="pointer"),s.value=null)}},v=()=>{!tr||(document.body.style.cursor="")},y=({order:b,sortOrders:k})=>{if(b==="")return k[0];const C=k.indexOf(b||null);return k[C>k.length-2?0:C+1]},w=(b,k,C)=>{var T;b.stopPropagation();const $=k.order===C?null:C||y(k),P=(T=b.target)==null?void 0:T.closest("th");if(P&&Us(P,"noclick")){os(P,"noclick");return}if(!k.sortable)return;const A=b.currentTarget;if(["ascending","descending"].some(D=>Us(A,D)&&!k.sortOrders.includes(D)))return;const R=e.store.states;let B=R.sortProp.value,N;const I=R.sortingColumn.value;(I!==k||I===k&&I.order===null)&&(I&&(I.order=null),R.sortingColumn.value=k,B=k.property),$?N=k.order=$:N=k.order=null,R.sortProp.value=B,R.sortOrder.value=N,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:a,handleMouseDown:d,handleMouseMove:p,handleMouseOut:v,handleSortClick:w,handleFilterClick:o}}function bDe(e){const t=Tt(kf),n=lt("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,d)=>{var p;let v=(p=t==null?void 0:t.props.headerCellStyle)!=null?p:{};typeof v=="function"&&(v=v.call(null,{rowIndex:s,columnIndex:l,row:u,column:d}));const y=Q3(l,d.fixed,e.store,u);return Yy(y,"left"),Yy(y,"right"),Object.assign({},v,y)},getHeaderCellClass:(s,l,u,d)=>{const p=z3(n.b(),l,d.fixed,e.store,u),v=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...p];d.children||v.push("is-leaf"),d.sortable&&v.push("is-sortable");const y=t==null?void 0:t.props.headerCellClassName;return typeof y=="string"?v.push(y):typeof y=="function"&&v.push(y.call(null,{rowIndex:s,columnIndex:l,row:u,column:d})),v.push(n.e("cell")),v.filter(w=>Boolean(w)).join(" ")}}}const DU=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,DU(n.children))):t.push(n)}),t},jU=e=>{let t=1;const n=(i,a)=>{if(a&&(i.level=a.level+1,t<i.level&&(t=i.level)),i.children){let s=0;i.children.forEach(l=>{n(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const r=[];for(let i=0;i<t;i++)r.push([]);return DU(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(a=>a.isSubColumn=!0)):i.rowSpan=t-i.level+1,r[i.level-1].push(i)}),r};function _De(e){const t=Tt(kf),n=W(()=>jU(e.store.states.originColumns.value));return{isGroup:W(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var ODe=Se({name:"ElTableHeader",components:{ElCheckbox:Fl},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=Cn(),r=Tt(kf),o=lt("table"),i=ee({}),{onColumnsChange:a,onScrollableChange:s}=IU(r);vn(async()=>{await zt(),await zt();const{prop:R,order:B}=e.defaultSort;r==null||r.store.commit("sort",{prop:R,order:B,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:p,handleMouseOut:v,handleSortClick:y,handleFilterClick:w}=yDe(e,t),{getHeaderRowStyle:b,getHeaderRowClass:k,getHeaderCellStyle:C,getHeaderCellClass:T}=bDe(e),{isGroup:$,toggleAllSelection:P,columnRows:A}=_De(e);return n.state={onColumnsChange:a,onScrollableChange:s},n.filterPanels=i,{ns:o,filterPanels:i,onColumnsChange:a,onScrollableChange:s,columnRows:A,getHeaderRowClass:k,getHeaderRowStyle:b,getHeaderCellClass:T,getHeaderCellStyle:C,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:p,handleMouseOut:v,handleSortClick:y,handleFilterClick:w,isGroup:$,toggleAllSelection:P}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:o,getHeaderRowClass:i,getHeaderRowStyle:a,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:d,handleSortClick:p,handleMouseOut:v,store:y,$parent:w}=this;let b=1;return Yt("thead",{class:{[e.is("group")]:t}},n.map((k,C)=>Yt("tr",{class:i(C),key:C,style:a(C)},k.map((T,$)=>(T.rowSpan>b&&(b=T.rowSpan),Yt("th",{class:o(C,$,k,T),colspan:T.colSpan,key:`${T.id}-thead`,rowspan:T.rowSpan,style:r(C,$,k,T),onClick:P=>{P.currentTarget.classList.contains("noclick")||s(P,T)},onContextmenu:P=>l(P,T),onMousedown:P=>u(P,T),onMousemove:P=>d(P,T),onMouseout:v},[Yt("div",{class:["cell",T.filteredValue&&T.filteredValue.length>0?"highlight":""]},[T.renderHeader?T.renderHeader({column:T,$index:$,store:y,_self:w}):T.label,T.sortable&&Yt("span",{onClick:P=>p(P,T),class:"caret-wrapper"},[Yt("i",{onClick:P=>p(P,T,"ascending"),class:"sort-caret ascending"}),Yt("i",{onClick:P=>p(P,T,"descending"),class:"sort-caret descending"})]),T.filterable&&Yt(mDe,{store:y,placement:T.filterPlacement||"bottom-start",column:T,upDataColumn:(P,A)=>{T[P]=A}},{"filter-icon":()=>T.renderFilterIcon?T.renderFilterIcon({filterOpened:T.filterOpened}):null})])]))))))}});function H$(e,t,n=.03){return e-t>n}function wDe(e){const t=Tt(kf),n=ee(""),r=ee(Yt("div")),o=(w,b,k)=>{var C;const T=t,$=U$(w);let P;const A=(C=T==null?void 0:T.vnode.el)==null?void 0:C.dataset.prefix;$&&(P=dB({columns:e.store.states.columns.value},$,A),P&&(T==null||T.emit(`cell-${k}`,b,P,$,w))),T==null||T.emit(`row-${k}`,b,P,w)},i=(w,b)=>{o(w,b,"dblclick")},a=(w,b)=>{e.store.commit("setCurrentRow",b),o(w,b,"click")},s=(w,b)=>{o(w,b,"contextmenu")},l=Ts(w=>{e.store.commit("setHoverRow",w)},30),u=Ts(()=>{e.store.commit("setHoverRow",null)},30),d=w=>{const b=window.getComputedStyle(w,null),k=Number.parseInt(b.paddingLeft,10)||0,C=Number.parseInt(b.paddingRight,10)||0,T=Number.parseInt(b.paddingTop,10)||0,$=Number.parseInt(b.paddingBottom,10)||0;return{left:k,right:C,top:T,bottom:$}},p=(w,b,k)=>{let C=b.target.parentNode;for(;w>1&&(C=C==null?void 0:C.nextSibling,!(!C||C.nodeName!=="TR"));)k(C,"hover-row hover-fixed-row"),w--};return{handleDoubleClick:i,handleClick:a,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(w,b,k)=>{var C;const T=t,$=U$(w),P=(C=T==null?void 0:T.vnode.el)==null?void 0:C.dataset.prefix;if($){const ne=dB({columns:e.store.states.columns.value},$,P);$.rowSpan>1&&p($.rowSpan,w,gu);const X=T.hoverState={cell:$,column:ne,row:b};T==null||T.emit("cell-mouse-enter",X.row,X.column,X.cell,w)}if(!k)return;const A=w.target.querySelector(".cell");if(!(Us(A,`${P}-tooltip`)&&A.childNodes.length))return;const R=document.createRange();R.setStart(A,0),R.setEnd(A,A.childNodes.length);const{width:B,height:N}=R.getBoundingClientRect(),{width:I,height:D}=A.getBoundingClientRect(),{top:L,left:z,right:q,bottom:ae}=d(A),K=z+q,H=L+ae;(H$(B+K,I)||H$(N+H,D)||H$(A.scrollWidth,I))&&oDe(k,$.innerText||$.textContent,$,T)},handleCellMouseLeave:w=>{const b=U$(w);if(!b)return;b.rowSpan>1&&p(b.rowSpan,w,os);const k=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",k==null?void 0:k.row,k==null?void 0:k.column,k==null?void 0:k.cell,w)},tooltipContent:n,tooltipTrigger:r}}function SDe(e){const t=Tt(kf),n=lt("table");return{getRowStyle:(u,d)=>{const p=t==null?void 0:t.props.rowStyle;return typeof p=="function"?p.call(null,{row:u,rowIndex:d}):p||null},getRowClass:(u,d)=>{const p=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&u===e.store.states.currentRow.value&&p.push("current-row"),e.stripe&&d%2===1&&p.push(n.em("row","striped"));const v=t==null?void 0:t.props.rowClassName;return typeof v=="string"?p.push(v):typeof v=="function"&&p.push(v.call(null,{row:u,rowIndex:d})),p},getCellStyle:(u,d,p,v)=>{const y=t==null?void 0:t.props.cellStyle;let w=y!=null?y:{};typeof y=="function"&&(w=y.call(null,{rowIndex:u,columnIndex:d,row:p,column:v}));const b=Q3(d,e==null?void 0:e.fixed,e.store);return Yy(b,"left"),Yy(b,"right"),Object.assign({},w,b)},getCellClass:(u,d,p,v,y)=>{const w=z3(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,y),b=[v.id,v.align,v.className,...w],k=t==null?void 0:t.props.cellClassName;return typeof k=="string"?b.push(k):typeof k=="function"&&b.push(k.call(null,{rowIndex:u,columnIndex:d,row:p,column:v})),b.push(n.e("cell")),b.filter(C=>Boolean(C)).join(" ")},getSpan:(u,d,p,v)=>{let y=1,w=1;const b=t==null?void 0:t.props.spanMethod;if(typeof b=="function"){const k=b({row:u,column:d,rowIndex:p,columnIndex:v});Array.isArray(k)?(y=k[0],w=k[1]):typeof k=="object"&&(y=k.rowspan,w=k.colspan)}return{rowspan:y,colspan:w}},getColspanRealWidth:(u,d,p)=>{if(d<1)return u[p].realWidth;const v=u.map(({realWidth:y,width:w})=>y||w).slice(p,p+d);return Number(v.reduce((y,w)=>Number(y)+Number(w),-1))}}}function xDe(e){const t=Tt(kf),n=lt("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:i,handleMouseEnter:a,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:p}=wDe(e),{getRowStyle:v,getRowClass:y,getCellStyle:w,getCellClass:b,getSpan:k,getColspanRealWidth:C}=SDe(e),T=W(()=>e.store.states.columns.value.findIndex(({type:B})=>B==="default")),$=(B,N)=>{const I=t.props.rowKey;return I?Ja(B,I):N},P=(B,N,I,D=!1)=>{const{tooltipEffect:L,tooltipOptions:z,store:q}=e,{indent:ae,columns:K}=q.states,H=y(B,N);let ne=!0;return I&&(H.push(n.em("row",`level-${I.level}`)),ne=I.display),Yt("tr",{style:[ne?null:{display:"none"},v(B,N)],class:H,key:$(B,N),onDblclick:V=>r(V,B),onClick:V=>o(V,B),onContextmenu:V=>i(V,B),onMouseenter:()=>a(N),onMouseleave:s},K.value.map((V,G)=>{const{rowspan:se,colspan:he}=k(B,V,N,G);if(!se||!he)return null;const pe=Object.assign({},V);pe.realWidth=C(K.value,he,G);const Be={store:e.store,_self:e.context||t,column:pe,row:B,$index:N,cellIndex:G,expanded:D};G===T.value&&I&&(Be.treeNode={indent:I.level*ae.value,level:I.level},typeof I.expanded=="boolean"&&(Be.treeNode.expanded=I.expanded,"loading"in I&&(Be.treeNode.loading=I.loading),"noLazyChildren"in I&&(Be.treeNode.noLazyChildren=I.noLazyChildren)));const De=`${$(B,N)},${G}`,ze=pe.columnKey||pe.rawColumnKey||"",$e=A(G,V,Be),_e=V.showOverflowTooltip&&jQ({effect:L},z,V.showOverflowTooltip);return Yt("td",{style:w(N,G,B,V),class:b(N,G,B,V,he-1),key:`${ze}${De}`,rowspan:se,colspan:he,onMouseenter:me=>l(me,B,_e),onMouseleave:u},[$e])}))},A=(B,N,I)=>N.renderCell(I);return{wrappedRowRender:(B,N)=>{const I=e.store,{isRowExpanded:D,assertRowKey:L}=I,{treeData:z,lazyTreeNodeMap:q,childrenColumnName:ae,rowKey:K}=I.states,H=I.states.columns.value;if(H.some(({type:X})=>X==="expand")){const X=D(B),V=P(B,N,void 0,X),G=t.renderExpanded;return X?G?[[V,Yt("tr",{key:`expanded-row__${V.key}`},[Yt("td",{colspan:H.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[G({row:B,$index:N,store:I,expanded:X})])])]]:(console.error("[Element Error]renderExpanded is required."),V):[[V]]}else if(Object.keys(z.value).length){L();const X=Ja(B,K.value);let V=z.value[X],G=null;V&&(G={expanded:V.expanded,level:V.level,display:!0},typeof V.lazy=="boolean"&&(typeof V.loaded=="boolean"&&V.loaded&&(G.noLazyChildren=!(V.children&&V.children.length)),G.loading=V.loading));const se=[P(B,N,G)];if(V){let he=0;const pe=(De,ze)=>{!(De&&De.length&&ze)||De.forEach($e=>{const _e={display:ze.display&&ze.expanded,level:ze.level+1,expanded:!1,noLazyChildren:!1,loading:!1},me=Ja($e,K.value);if(me==null)throw new Error("For nested data item, row-key is required.");if(V={...z.value[me]},V&&(_e.expanded=V.expanded,V.level=V.level||_e.level,V.display=!!(V.expanded&&_e.display),typeof V.lazy=="boolean"&&(typeof V.loaded=="boolean"&&V.loaded&&(_e.noLazyChildren=!(V.children&&V.children.length)),_e.loading=V.loading)),he++,se.push(P($e,N+he,_e)),V){const Re=q.value[me]||$e[ae.value];pe(Re,V)}})};V.display=!0;const Be=q.value[X]||B[ae.value];pe(Be,V)}return se}else return P(B,N,void 0)},tooltipContent:d,tooltipTrigger:p}}const kDe={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var CDe=Se({name:"ElTableBody",props:kDe,setup(e){const t=Cn(),n=Tt(kf),r=lt("table"),{wrappedRowRender:o,tooltipContent:i,tooltipTrigger:a}=xDe(e),{onColumnsChange:s,onScrollableChange:l}=IU(n),u=[];return at(e.store.states.hoverRow,(d,p)=>{var v;const y=t==null?void 0:t.vnode.el,w=Array.from((y==null?void 0:y.children)||[]).filter(C=>C==null?void 0:C.classList.contains(`${r.e("row")}`));let b=d;const k=(v=w[b])==null?void 0:v.childNodes;if(k!=null&&k.length){let C=0;Array.from(k).reduce(($,P,A)=>{var R,B;return((R=k[A])==null?void 0:R.colSpan)>1&&(C=(B=k[A])==null?void 0:B.colSpan),P.nodeName!=="TD"&&C===0&&$.push(A),C>0&&C--,$},[]).forEach($=>{var P;for(b=d;b>0;){const A=(P=w[b-1])==null?void 0:P.childNodes;if(A[$]&&A[$].nodeName==="TD"&&A[$].rowSpan>1){gu(A[$],"hover-cell"),u.push(A[$]);break}b--}})}else u.forEach(C=>os(C,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!tr||Gh(()=>{const C=w[p],T=w[d];C&&!C.classList.contains("hover-fixed-row")&&os(C,"hover-row"),T&&gu(T,"hover-row")})}),hp(()=>{var d;(d=su)==null||d()}),{ns:r,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:o,tooltipContent:i,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Yt("tbody",{tabIndex:-1},[n.reduce((r,o)=>r.concat(e(o,r.length)),[])])}});function EDe(){const e=Tt(kf),t=e==null?void 0:e.store,n=W(()=>t.states.fixedLeafColumnsLength.value),r=W(()=>t.states.rightFixedColumns.value.length),o=W(()=>t.states.columns.value.length),i=W(()=>t.states.fixedColumns.value.length),a=W(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:i,rightFixedCount:a,columns:t.states.columns}}function TDe(e){const{columns:t}=EDe(),n=lt("table");return{getCellClasses:(i,a)=>{const s=i[a],l=[n.e("cell"),s.id,s.align,s.labelClassName,...z3(n.b(),a,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(n.is("leaf")),l},getCellStyles:(i,a)=>{const s=Q3(a,i.fixed,e.store);return Yy(s,"left"),Yy(s,"right"),s},columns:t}}var PDe=Se({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=TDe(e);return{ns:lt("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:o}=this,i=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:i}):e.forEach((s,l)=>{if(l===0){a[l]=o;return}const u=i.map(y=>Number(y[s.property])),d=[];let p=!0;u.forEach(y=>{if(!Number.isNaN(+y)){p=!1;const w=`${y}`.split(".")[1];d.push(w?w.length:0)}});const v=Math.max.apply(null,d);p?a[l]="":a[l]=u.reduce((y,w)=>{const b=Number(w);return Number.isNaN(+b)?y:Number.parseFloat((y+w).toFixed(Math.min(v,20)))},0)}),Yt(Yt("tfoot",[Yt("tr",{},[...e.map((s,l)=>Yt("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,l),style:t(s,l)},[Yt("div",{class:["cell",s.labelClassName]},[a[l]])]))])]))}});function $De(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,p)=>{e.toggleRowSelection(d,p,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,p)=>{e.toggleRowExpansionAdapter(d,p)},clearSort:()=>{e.clearSort()},sort:(d,p)=>{e.commit("sort",{prop:d,order:p})}}}function ADe(e,t,n,r){const o=ee(!1),i=ee(null),a=ee(!1),s=V=>{a.value=V},l=ee({width:null,height:null,headerHeight:null}),u=ee(!1),d={display:"inline-block",verticalAlign:"middle"},p=ee(),v=ee(0),y=ee(0),w=ee(0),b=ee(0),k=ee(0);Ia(()=>{t.setHeight(e.height)}),Ia(()=>{t.setMaxHeight(e.maxHeight)}),at(()=>[e.currentRowKey,n.states.rowKey],([V,G])=>{!m(G)||!m(V)||n.setCurrentRowKey(`${V}`)},{immediate:!0}),at(()=>e.data,V=>{r.store.commit("setData",V)},{immediate:!0,deep:!0}),Ia(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const C=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},T=(V,G)=>{const{pixelX:se,pixelY:he}=G;Math.abs(se)>=Math.abs(he)&&(r.refs.bodyWrapper.scrollLeft+=G.pixelX/5)},$=W(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),P=W(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),A=()=>{$.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(I)};vn(async()=>{await zt(),n.updateColumns(),D(),requestAnimationFrame(A);const V=r.vnode.el,G=r.refs.headerWrapper;e.flexible&&V&&V.parentElement&&(V.parentElement.style.minWidth="0"),l.value={width:p.value=V.offsetWidth,height:V.offsetHeight,headerHeight:e.showHeader&&G?G.offsetHeight:null},n.states.columns.value.forEach(se=>{se.filteredValue&&se.filteredValue.length&&r.store.commit("filterChange",{column:se,values:se.filteredValue,silent:!0})}),r.$ready=!0});const R=(V,G)=>{if(!V)return;const se=Array.from(V.classList).filter(he=>!he.startsWith("is-scrolling-"));se.push(t.scrollX.value?G:"is-scrolling-none"),V.className=se.join(" ")},B=V=>{const{tableWrapper:G}=r.refs;R(G,V)},N=V=>{const{tableWrapper:G}=r.refs;return!!(G&&G.classList.contains(V))},I=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const ze="is-scrolling-none";N(ze)||B(ze);return}const V=r.refs.scrollBarRef.wrapRef;if(!V)return;const{scrollLeft:G,offsetWidth:se,scrollWidth:he}=V,{headerWrapper:pe,footerWrapper:Be}=r.refs;pe&&(pe.scrollLeft=G),Be&&(Be.scrollLeft=G);const De=he-se-1;G>=De?B("is-scrolling-right"):B(G===0?"is-scrolling-left":"is-scrolling-middle")},D=()=>{!r.refs.scrollBarRef||(r.refs.scrollBarRef.wrapRef&&Ar(r.refs.scrollBarRef.wrapRef,"scroll",I,{passive:!0}),e.fit?_o(r.vnode.el,L):Ar(window,"resize",L),_o(r.refs.bodyWrapper,()=>{var V,G;L(),(G=(V=r.refs)==null?void 0:V.scrollBarRef)==null||G.update()}))},L=()=>{var V,G,se,he;const pe=r.vnode.el;if(!r.$ready||!pe)return;let Be=!1;const{width:De,height:ze,headerHeight:$e}=l.value,_e=p.value=pe.offsetWidth;De!==_e&&(Be=!0);const me=pe.offsetHeight;(e.height||$.value)&&ze!==me&&(Be=!0);const Re=e.tableLayout==="fixed"?r.refs.headerWrapper:(V=r.refs.tableHeaderRef)==null?void 0:V.$el;e.showHeader&&(Re==null?void 0:Re.offsetHeight)!==$e&&(Be=!0),v.value=((G=r.refs.tableWrapper)==null?void 0:G.scrollHeight)||0,w.value=(Re==null?void 0:Re.scrollHeight)||0,b.value=((se=r.refs.footerWrapper)==null?void 0:se.offsetHeight)||0,k.value=((he=r.refs.appendWrapper)==null?void 0:he.offsetHeight)||0,y.value=v.value-w.value-b.value-k.value,Be&&(l.value={width:_e,height:me,headerHeight:e.showHeader&&(Re==null?void 0:Re.offsetHeight)||0},A())},z=bi(),q=W(()=>{const{bodyWidth:V,scrollY:G,gutterWidth:se}=t;return V.value?`${V.value-(G.value?se:0)}px`:""}),ae=W(()=>e.maxHeight?"fixed":e.tableLayout),K=W(()=>{if(e.data&&e.data.length)return null;let V="100%";e.height&&y.value&&(V=`${y.value}px`);const G=p.value;return{width:G?`${G}px`:"",height:V}}),H=W(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),ne=W(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${w.value+b.value}px)`}:{maxHeight:`${e.maxHeight-w.value-b.value}px`}:{});return{isHidden:o,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:C,handleHeaderFooterMousewheel:T,tableSize:z,emptyBlockStyle:K,handleFixedMousewheel:(V,G)=>{const se=r.refs.bodyWrapper;if(Math.abs(G.spinY)>0){const he=se.scrollTop;G.pixelY<0&&he!==0&&V.preventDefault(),G.pixelY>0&&se.scrollHeight-se.clientHeight>he&&V.preventDefault(),se.scrollTop+=Math.ceil(G.pixelY/5)}else se.scrollLeft+=Math.ceil(G.pixelX/5)},resizeProxyVisible:a,bodyWidth:q,resizeState:l,doLayout:A,tableBodyStyles:P,tableLayout:ae,scrollbarViewStyle:d,tableInnerStyle:H,scrollbarStyle:ne}}function MDe(e){const t=ee(),n=()=>{const o=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(s=>s())}),t.value.observe(o,i)};vn(()=>{n()}),hp(()=>{var r;(r=t.value)==null||r.disconnect()})}var RDe={data:{type:Array,default:()=>[]},size:Ai,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function LU(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(o=>o.width===void 0)&&(n=[]);const r=o=>{const i={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?i.style={width:`${o.width}px`}:i.name=o.id,i};return Yt("colgroup",{},n.map(o=>Yt("col",r(o))))}LU.props=["columns","tableLayout"];const NDe=()=>{const e=ee(),t=(i,a)=>{const s=e.value;s&&s.scrollTo(i,a)},n=(i,a)=>{const s=e.value;s&&en(a)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let IDe=1;const DDe=Se({name:"ElTable",directives:{Mousewheel:gEe},components:{TableHeader:ODe,TableBody:CDe,TableFooter:PDe,ElScrollbar:_c,hColgroup:LU},props:RDe,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=rr(),n=lt("table"),r=Cn();Wn(kf,r);const o=fDe(r,e);r.store=o;const i=new hDe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const a=W(()=>(o.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:v,toggleRowExpansion:y,clearSort:w,sort:b}=$De(o),{isHidden:k,renderExpanded:C,setDragVisible:T,isGroup:$,handleMouseLeave:P,handleHeaderFooterMousewheel:A,tableSize:R,emptyBlockStyle:B,handleFixedMousewheel:N,resizeProxyVisible:I,bodyWidth:D,resizeState:L,doLayout:z,tableBodyStyles:q,tableLayout:ae,scrollbarViewStyle:K,tableInnerStyle:H,scrollbarStyle:ne}=ADe(e,i,o,r),{scrollBarRef:X,scrollTo:V,setScrollLeft:G,setScrollTop:se}=NDe(),he=Ts(z,50),pe=`${n.namespace.value}-table_${IDe++}`;r.tableId=pe,r.state={isGroup:$,resizeState:L,doLayout:z,debouncedUpdateLayout:he};const Be=W(()=>e.sumText||t("el.table.sumText")),De=W(()=>e.emptyText||t("el.table.emptyText")),ze=W(()=>jU(o.states.originColumns.value)[0]);return MDe(r),{ns:n,layout:i,store:o,columns:ze,handleHeaderFooterMousewheel:A,handleMouseLeave:P,tableId:pe,tableSize:R,isHidden:k,isEmpty:a,renderExpanded:C,resizeProxyVisible:I,resizeState:L,isGroup:$,bodyWidth:D,tableBodyStyles:q,emptyBlockStyle:B,debouncedUpdateLayout:he,handleFixedMousewheel:N,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:v,toggleRowExpansion:y,clearSort:w,doLayout:z,sort:b,t,setDragVisible:T,context:r,computedSumText:Be,computedEmptyText:De,tableLayout:ae,scrollbarViewStyle:K,tableInnerStyle:H,scrollbarStyle:ne,scrollBarRef:X,scrollTo:V,setScrollLeft:G,setScrollTop:se}}});function jDe(e,t,n,r,o,i){const a=Tn("hColgroup"),s=Tn("table-header"),l=Tn("table-body"),u=Tn("table-footer"),d=Tn("el-scrollbar"),p=K2("mousewheel");return Z(),ce("div",{ref:"tableWrapper",class:J([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Vt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[ve("div",{class:J(e.ns.e("inner-wrapper")),style:Vt(e.tableInnerStyle)},[ve("div",{ref:"hiddenColumns",class:"hidden-columns"},[He(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?yn((Z(),ce("div",{key:0,ref:"headerWrapper",class:J(e.ns.e("header-wrapper"))},[ve("table",{ref:"tableHeader",class:J(e.ns.e("header")),style:Vt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[re(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),re(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[p,e.handleHeaderFooterMousewheel]]):je("v-if",!0),ve("div",{ref:"bodyWrapper",class:J(e.ns.e("body-wrapper"))},[re(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:ue(()=>[ve("table",{ref:"tableBody",class:J(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Vt({width:e.bodyWidth,tableLayout:e.tableLayout})},[re(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(Z(),Fe(s,{key:0,ref:"tableHeaderRef",class:J(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):je("v-if",!0),re(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(Z(),Fe(u,{key:1,class:J(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):je("v-if",!0)],6),e.isEmpty?(Z(),ce("div",{key:0,ref:"emptyBlock",style:Vt(e.emptyBlockStyle),class:J(e.ns.e("empty-block"))},[ve("span",{class:J(e.ns.e("empty-text"))},[He(e.$slots,"empty",{},()=>[St(ut(e.computedEmptyText),1)])],2)],6)):je("v-if",!0),e.$slots.append?(Z(),ce("div",{key:1,ref:"appendWrapper",class:J(e.ns.e("append-wrapper"))},[He(e.$slots,"append")],2)):je("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?yn((Z(),ce("div",{key:1,ref:"footerWrapper",class:J(e.ns.e("footer-wrapper"))},[ve("table",{class:J(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Vt(e.tableBodyStyles)},[re(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),re(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[hr,!e.isEmpty],[p,e.handleHeaderFooterMousewheel]]):je("v-if",!0),e.border||e.isGroup?(Z(),ce("div",{key:2,class:J(e.ns.e("border-left-patch"))},null,2)):je("v-if",!0)],6),yn(ve("div",{ref:"resizeProxy",class:J(e.ns.e("column-resize-proxy"))},null,2),[[hr,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var LDe=vt(DDe,[["render",jDe],["__file","table.vue"]]);const BDe={selection:"table-column--selection",expand:"table__expand-column"},VDe={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},FDe=e=>BDe[e]||"",zDe={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Yt(Fl,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return Yt(Fl,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),Yt("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,o=[r.e("expand-icon")];return n&&o.push(r.em("expand-icon","expanded")),Yt("div",{class:o,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Yt(jt,null,{default:()=>[Yt(Ss)]})]})},sortable:!1,resizable:!1}};function QDe({row:e,column:t,$index:n}){var r;const o=t.property,i=o&&ek(e,o).value;return t&&t.formatter?t.formatter(e,t,i,n):((r=i==null?void 0:i.toString)==null?void 0:r.call(i))||""}function WDe({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[Yt("span",{class:o.e("placeholder")})]:null;const i=[],a=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(Yt("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let l=Ss;t.loading&&(l=cf),i.push(Yt("div",{class:s,onClick:a},{default:()=>[Yt(jt,{class:{[o.is("loading")]:t.loading}},{default:()=>[Yt(l)]})]}))}else i.push(Yt("span",{class:o.e("placeholder")}));return i}function gB(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function YDe(e,t){const n=Cn();return{registerComplexWatchers:()=>{const i=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},s=gB(i,a);Object.keys(s).forEach(l=>{const u=a[l];ir(t,u)&&at(()=>t[u],d=>{let p=d;u==="width"&&l==="realWidth"&&(p=F3(d)),u==="minWidth"&&l==="realMinWidth"&&(p=$U(d)),n.columnConfig.value[u]=p,n.columnConfig.value[l]=p;const v=u==="fixed";e.value.store.scheduleLayout(v)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=gB(i,a);Object.keys(s).forEach(l=>{const u=a[l];ir(t,u)&&at(()=>t[u],d=>{n.columnConfig.value[l]=d})})}}}function ZDe(e,t,n){const r=Cn(),o=ee(""),i=ee(!1),a=ee(),s=ee(),l=lt("table");Ia(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),Ia(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:a.value,s.value});const u=W(()=>{let P=r.vnode.vParent||r.parent;for(;P&&!P.tableId&&!P.columnId;)P=P.vnode.vParent||P.parent;return P}),d=W(()=>{const{store:P}=r.parent;if(!P)return!1;const{treeData:A}=P.states,R=A.value;return R&&Object.keys(R).length>0}),p=ee(F3(e.width)),v=ee($U(e.minWidth)),y=P=>(p.value&&(P.width=p.value),v.value&&(P.minWidth=v.value),!p.value&&v.value&&(P.width=void 0),P.minWidth||(P.minWidth=80),P.realWidth=Number(P.width===void 0?P.minWidth:P.width),P),w=P=>{const A=P.type,R=zDe[A]||{};Object.keys(R).forEach(N=>{const I=R[N];N!=="className"&&I!==void 0&&(P[N]=I)});const B=FDe(A);if(B){const N=`${m(l.namespace)}-${B}`;P.className=P.className?`${P.className} ${N}`:N}return P},b=P=>{Array.isArray(P)?P.forEach(R=>A(R)):A(P);function A(R){var B;((B=R==null?void 0:R.type)==null?void 0:B.name)==="ElTableColumn"&&(R.vParent=r)}};return{columnId:o,realAlign:a,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:y,setColumnForcedProps:w,setColumnRenders:P=>{e.renderHeader||P.type!=="selection"&&(P.renderHeader=R=>(r.columnConfig.value.label,He(t,"header",R,()=>[P.label]))),t["filter-icon"]&&(P.renderFilterIcon=R=>He(t,"filter-icon",R));let A=P.renderCell;return P.type==="expand"?(P.renderCell=R=>Yt("div",{class:"cell"},[A(R)]),n.value.renderExpanded=R=>t.default?t.default(R):t.default):(A=A||QDe,P.renderCell=R=>{let B=null;if(t.default){const q=t.default(R);B=q.some(ae=>ae.type!==ws)?q:A(R)}else B=A(R);const{columns:N}=n.value.store.states,I=N.value.findIndex(q=>q.type==="default"),D=d.value&&R.cellIndex===I,L=WDe(R,D),z={class:"cell",style:{}};return P.showOverflowTooltip&&(z.class=`${z.class} ${m(l.namespace)}-tooltip`,z.style={width:`${(R.column.realWidth||Number(R.column.width))-1}px`}),b(B),Yt("div",z,[L,B])}),P},getPropsData:(...P)=>P.reduce((A,R)=>(Array.isArray(R)&&R.forEach(B=>{A[B]=e[B]}),A),{}),getColumnElIndex:(P,A)=>Array.prototype.indexOf.call(P,A),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var UDe={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let HDe=1;var BU=Se({name:"ElTableColumn",components:{ElCheckbox:Fl},props:UDe,setup(e,{slots:t}){const n=Cn(),r=ee({}),o=W(()=>{let $=n.parent;for(;$&&!$.tableId;)$=$.parent;return $}),{registerNormalWatchers:i,registerComplexWatchers:a}=YDe(o,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:p,setColumnForcedProps:v,setColumnRenders:y,getPropsData:w,getColumnElIndex:b,realAlign:k,updateColumnOrder:C}=ZDe(e,t,o),T=d.value;s.value=`${T.tableId||T.columnId}_column_${HDe++}`,q2(()=>{l.value=o.value!==T;const $=e.type||"default",P=e.sortable===""?!0:e.sortable,A=Bo(e.showOverflowTooltip)?T.props.showOverflowTooltip:e.showOverflowTooltip,R={...VDe[$],id:s.value,type:$,property:e.prop||e.property,align:k,headerAlign:u,showOverflowTooltip:A,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:P,index:e.index,rawColumnKey:n.vnode.key};let L=w(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);L=eDe(R,L),L=nDe(y,p,v)(L),r.value=L,i(),a()}),vn(()=>{var $;const P=d.value,A=l.value?P.vnode.el.children:($=P.refs.hiddenColumns)==null?void 0:$.children,R=()=>b(A||[],n.vnode.el);r.value.getColumnIndex=R,R()>-1&&o.value.store.commit("insertColumn",r.value,l.value?P.columnConfig.value:null,C)}),Ur(()=>{r.value.getColumnIndex()>-1&&o.value.store.commit("removeColumn",r.value,l.value?T.columnConfig.value:null,C)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(Array.isArray(r))for(const a of r)((n=a.type)==null?void 0:n.name)==="ElTableColumn"||a.shapeFlag&2?o.push(a):a.type===Pt&&Array.isArray(a.children)&&a.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!Gt(s==null?void 0:s.children)&&o.push(s)});return Yt("div",o)}catch{return Yt("div",[])}}});const W3=pn(LDe,{TableColumn:BU}),Y3=So(BU);var jO=(e=>(e.ASC="asc",e.DESC="desc",e))(jO||{}),LO=(e=>(e.CENTER="center",e.RIGHT="right",e))(LO||{}),VU=(e=>(e.LEFT="left",e.RIGHT="right",e))(VU||{});const YM={asc:"desc",desc:"asc"},BO=Symbol("placeholder"),XDe=(e,t,n)=>{var r;const o={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(o.flexShrink=1);const i={...(r=e.style)!=null?r:{},...o,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function GDe(e,t,n){const r=W(()=>m(t).filter(b=>!b.hidden)),o=W(()=>m(r).filter(b=>b.fixed==="left"||b.fixed===!0)),i=W(()=>m(r).filter(b=>b.fixed==="right")),a=W(()=>m(r).filter(b=>!b.fixed)),s=W(()=>{const b=[];return m(o).forEach(k=>{b.push({...k,placeholderSign:BO})}),m(a).forEach(k=>{b.push(k)}),m(i).forEach(k=>{b.push({...k,placeholderSign:BO})}),b}),l=W(()=>m(o).length||m(i).length),u=W(()=>m(t).reduce((k,C)=>(k[C.key]=XDe(C,m(n),e.fixed),k),{})),d=W(()=>m(r).reduce((b,k)=>b+k.width,0)),p=b=>m(t).find(k=>k.key===b),v=b=>m(u)[b],y=(b,k)=>{b.width=k};function w(b){var k;const{key:C}=b.currentTarget.dataset;if(!C)return;const{sortState:T,sortBy:$}=e;let P=jO.ASC;Pn(T)?P=YM[T[C]]:P=YM[$.order],(k=e.onColumnSort)==null||k.call(e,{column:p(C),key:C,order:P})}return{columns:t,columnsStyles:u,columnsTotalWidth:d,fixedColumnsOnLeft:o,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:a,visibleColumns:r,getColumn:p,getColumnStyle:v,updateColumnWidth:y,onColumnSorted:w}}const qDe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:o})=>{const i=ee({scrollLeft:0,scrollTop:0});function a(y){var w,b,k;const{scrollTop:C}=y;(w=t.value)==null||w.scrollTo(y),(b=n.value)==null||b.scrollToTop(C),(k=r.value)==null||k.scrollToTop(C)}function s(y){i.value=y,a(y)}function l(y){i.value.scrollTop=y,a(m(i))}function u(y){var w,b;i.value.scrollLeft=y,(b=(w=t.value)==null?void 0:w.scrollTo)==null||b.call(w,m(i))}function d(y){var w;s(y),(w=e.onScroll)==null||w.call(e,y)}function p({scrollTop:y}){const{scrollTop:w}=m(i);y!==w&&l(y)}function v(y,w="auto"){var b;(b=t.value)==null||b.scrollToRow(y,w)}return at(()=>m(i).scrollTop,(y,w)=>{y>w&&o()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:v,onScroll:d,onVerticalScroll:p}},KDe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:o,ns:i,isScrolling:a})=>{const s=Cn(),{emit:l}=s,u=Kr(!1),d=ee(e.defaultExpandedRowKeys||[]),p=ee(-1),v=Kr(null),y=ee({}),w=ee({}),b=Kr({}),k=Kr({}),C=Kr({}),T=W(()=>en(e.estimatedRowHeight));function $(D){var L;(L=e.onRowsRendered)==null||L.call(e,D),D.rowCacheEnd>m(p)&&(p.value=D.rowCacheEnd)}function P({hovered:D,rowKey:L}){if(a.value)return;o.vnode.el.querySelectorAll(`[rowkey="${String(L)}"]`).forEach(ae=>{D?ae.classList.add(i.is("hovered")):ae.classList.remove(i.is("hovered"))})}function A({expanded:D,rowData:L,rowIndex:z,rowKey:q}){var ae,K;const H=[...m(d)],ne=H.indexOf(q);D?ne===-1&&H.push(q):ne>-1&&H.splice(ne,1),d.value=H,l("update:expandedRowKeys",H),(ae=e.onRowExpand)==null||ae.call(e,{expanded:D,rowData:L,rowIndex:z,rowKey:q}),(K=e.onExpandedRowsChange)==null||K.call(e,H)}const R=Ts(()=>{var D,L,z,q;u.value=!0,y.value={...m(y),...m(w)},B(m(v),!1),w.value={},v.value=null,(D=t.value)==null||D.forceUpdate(),(L=n.value)==null||L.forceUpdate(),(z=r.value)==null||z.forceUpdate(),(q=s.proxy)==null||q.$forceUpdate(),u.value=!1},0);function B(D,L=!1){!m(T)||[t,n,r].forEach(z=>{const q=m(z);q&&q.resetAfterRowIndex(D,L)})}function N(D,L,z){const q=m(v);(q===null||q>z)&&(v.value=z),w.value[D]=L}function I({rowKey:D,height:L,rowIndex:z},q){q?q===VU.RIGHT?C.value[D]=L:b.value[D]=L:k.value[D]=L;const ae=Math.max(...[b,C,k].map(K=>K.value[D]||0));m(y)[D]!==ae&&(N(D,ae,z),R())}return{expandedRowKeys:d,lastRenderedRowIndex:p,isDynamic:T,isResetting:u,rowHeights:y,resetAfterIndex:B,onRowExpanded:A,onRowHovered:P,onRowsRendered:$,onRowHeightChange:I}},JDe=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const o=ee({}),i=W(()=>{const s={},{data:l,rowKey:u}=e,d=m(t);if(!d||!d.length)return l;const p=[],v=new Set;d.forEach(w=>v.add(w));let y=l.slice();for(y.forEach(w=>s[w[u]]=0);y.length>0;){const w=y.shift();p.push(w),v.has(w[u])&&Array.isArray(w.children)&&w.children.length>0&&(y=[...w.children,...y],w.children.forEach(b=>s[b[u]]=s[w[u]]+1))}return o.value=s,p}),a=W(()=>{const{data:s,expandColumnKey:l}=e;return l?m(i):s});return at(a,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:a,depthMap:o}},e4e=(e,t)=>e+t,uk=e=>xt(e)?e.reduce(e4e,0):e,fv=(e,t,n={})=>nn(e)?e(t):e!=null?e:n,$h=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Vo(e[t])}),e),FU=e=>bo(e)?t=>Yt(e,t):e,t4e=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:o})=>{const i=W(()=>{const{fixed:$,width:P,vScrollbarSize:A}=e,R=P-A;return $?Math.max(Math.round(m(t)),R):R}),a=W(()=>m(i)+e.vScrollbarSize),s=W(()=>{const{height:$=0,maxHeight:P=0,footerHeight:A,hScrollbarSize:R}=e;if(P>0){const B=m(w),N=m(l),D=m(y)+B+N+R;return Math.min(D,P-A)}return $-A}),l=W(()=>{const{rowHeight:$,estimatedRowHeight:P}=e,A=m(n);return en(P)?A.length*P:A.length*$}),u=W(()=>{const{maxHeight:$}=e,P=m(s);if(en($)&&$>0)return P;const A=m(l)+m(y)+m(w);return Math.min(P,A)}),d=$=>$.width,p=W(()=>uk(m(r).map(d))),v=W(()=>uk(m(o).map(d))),y=W(()=>uk(e.headerHeight)),w=W(()=>{var $;return((($=e.fixedData)==null?void 0:$.length)||0)*e.rowHeight}),b=W(()=>m(s)-m(y)-m(w)),k=W(()=>{const{style:$={},height:P,width:A}=e;return $h({...$,height:P,width:A})}),C=W(()=>$h({height:e.footerHeight})),T=W(()=>({top:Vo(m(y)),bottom:Vo(e.footerHeight),width:Vo(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:p,rightTableWidth:v,headerWidth:a,rowsHeight:l,windowHeight:b,footerHeight:C,emptyStyle:T,rootStyle:k,headerHeight:y}},n4e=e=>{const t=ee(),n=ee(0),r=ee(0);let o;return vn(()=>{o=_o(t,([i])=>{const{width:a,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:d,paddingBottom:p}=getComputedStyle(i.target),v=Number.parseInt(l)||0,y=Number.parseInt(u)||0,w=Number.parseInt(d)||0,b=Number.parseInt(p)||0;n.value=a-v-y,r.value=s-w-b}).stop}),Ur(()=>{o==null||o()}),at([n,r],([i,a])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:a})}),{sizer:t,width:n,height:r}};function r4e(e){const t=ee(),n=ee(),r=ee(),{columns:o,columnsStyles:i,columnsTotalWidth:a,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:d,onColumnSorted:p}=GDe(e,xr(e,"columns"),xr(e,"fixed")),{scrollTo:v,scrollToLeft:y,scrollToTop:w,scrollToRow:b,onScroll:k,onVerticalScroll:C,scrollPos:T}=qDe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:oe}),$=lt("table-v2"),P=Cn(),A=Kr(!1),{expandedRowKeys:R,lastRenderedRowIndex:B,isDynamic:N,isResetting:I,rowHeights:D,resetAfterIndex:L,onRowExpanded:z,onRowHeightChange:q,onRowHovered:ae,onRowsRendered:K}=KDe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:P,ns:$,isScrolling:A}),{data:H,depthMap:ne}=JDe(e,{expandedRowKeys:R,lastRenderedRowIndex:B,resetAfterIndex:L}),{bodyWidth:X,fixedTableHeight:V,mainTableHeight:G,leftTableWidth:se,rightTableWidth:he,headerWidth:pe,rowsHeight:Be,windowHeight:De,footerHeight:ze,emptyStyle:$e,rootStyle:_e,headerHeight:me}=t4e(e,{columnsTotalWidth:a,data:H,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),Re=ee(),we=W(()=>{const ke=m(H).length===0;return xt(e.fixedData)?e.fixedData.length===0&&ke:ke});function fe(ke){const{estimatedRowHeight:We,rowHeight:et,rowKey:Ve}=e;return We?m(D)[m(H)[ke][Ve]]||We:et}function oe(){const{onEndReached:ke}=e;if(!ke)return;const{scrollTop:We}=m(T),et=m(Be),Ve=m(De),Me=et-(We+Ve)+e.hScrollbarSize;m(B)>=0&&et===We+m(G)-m(me)&&ke(Me)}return at(()=>e.expandedRowKeys,ke=>R.value=ke,{deep:!0}),{columns:o,containerRef:Re,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:N,isResetting:I,isScrolling:A,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:a,data:H,expandedRowKeys:R,depthMap:ne,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:d,bodyWidth:X,emptyStyle:$e,rootStyle:_e,headerWidth:pe,footerHeight:ze,mainTableHeight:G,fixedTableHeight:V,leftTableWidth:se,rightTableWidth:he,showEmpty:we,getRowHeight:fe,onColumnSorted:p,onRowHovered:ae,onRowExpanded:z,onRowsRendered:K,onRowHeightChange:q,scrollTo:v,scrollToLeft:y,scrollToTop:w,scrollToRow:b,onScroll:k,onVerticalScroll:C}}const Z3=Symbol("tableV2"),zU=String,$1={type:Ie(Array),required:!0},U3={type:Ie(Array)},QU={...U3,required:!0},o4e=String,vB={type:Ie(Array),default:()=>Oo([])},Mg={type:Number,required:!0},WU={type:Ie([String,Number,Symbol]),default:"id"},mB={type:Ie(Object)},Qg=pt({class:String,columns:$1,columnsStyles:{type:Ie(Object),required:!0},depth:Number,expandColumnKey:o4e,estimatedRowHeight:{...Gg.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:Ie(Function)},onRowHover:{type:Ie(Function)},onRowHeightChange:{type:Ie(Function)},rowData:{type:Ie(Object),required:!0},rowEventHandlers:{type:Ie(Object)},rowIndex:{type:Number,required:!0},rowKey:WU,style:{type:Ie(Object)}}),X$={type:Number,required:!0},H3=pt({class:String,columns:$1,fixedHeaderData:{type:Ie(Array)},headerData:{type:Ie(Array),required:!0},headerHeight:{type:Ie([Number,Array]),default:50},rowWidth:X$,rowHeight:{type:Number,default:50},height:X$,width:X$}),ck=pt({columns:$1,data:QU,fixedData:U3,estimatedRowHeight:Qg.estimatedRowHeight,width:Mg,height:Mg,headerWidth:Mg,headerHeight:H3.headerHeight,bodyWidth:Mg,rowHeight:Mg,cache:fU.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Gg.scrollbarAlwaysOn,scrollbarStartGap:Gg.scrollbarStartGap,scrollbarEndGap:Gg.scrollbarEndGap,class:zU,style:mB,containerStyle:mB,getRowHeight:{type:Ie(Function),required:!0},rowKey:Qg.rowKey,onRowsRendered:{type:Ie(Function)},onScroll:{type:Ie(Function)}}),i4e=pt({cache:ck.cache,estimatedRowHeight:Qg.estimatedRowHeight,rowKey:WU,headerClass:{type:Ie([String,Function])},headerProps:{type:Ie([Object,Function])},headerCellProps:{type:Ie([Object,Function])},headerHeight:H3.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:Ie([String,Function])},rowProps:{type:Ie([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:Ie([Object,Function])},columns:$1,data:QU,dataGetter:{type:Ie(Function)},fixedData:U3,expandColumnKey:Qg.expandColumnKey,expandedRowKeys:vB,defaultExpandedRowKeys:vB,class:zU,fixed:Boolean,style:{type:Ie(Object)},width:Mg,height:Mg,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Gg.hScrollbarSize,vScrollbarSize:Gg.vScrollbarSize,scrollbarAlwaysOn:pU.alwaysOn,sortBy:{type:Ie(Object),default:()=>({})},sortState:{type:Ie(Object),default:void 0},onColumnSort:{type:Ie(Function)},onExpandedRowsChange:{type:Ie(Function)},onEndReached:{type:Ie(Function)},onRowExpand:Qg.onRowExpand,onScroll:ck.onScroll,onRowsRendered:ck.onRowsRendered,rowEventHandlers:Qg.rowEventHandlers}),X3=(e,{slots:t})=>{var n;const{cellData:r,style:o}=e,i=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"",a=He(t,"default",e,()=>[i]);return re("div",{class:e.class,title:i,style:o},[a])};X3.displayName="ElTableV2Cell";X3.inheritAttrs=!1;const G3=(e,{slots:t})=>He(t,"default",e,()=>{var n,r;return[re("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])]});G3.displayName="ElTableV2HeaderCell";G3.inheritAttrs=!1;const a4e=pt({class:String,columns:$1,columnsStyles:{type:Ie(Object),required:!0},headerIndex:Number,style:{type:Ie(Object)}}),s4e=Se({name:"ElTableV2HeaderRow",props:a4e,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:o,style:i}=e;let a=n.map((s,l)=>t.cell({columns:n,column:s,columnIndex:l,headerIndex:o,style:r[s.key]}));return t.header&&(a=t.header({cells:a.map(s=>xt(s)&&s.length===1?s[0]:s),columns:n,headerIndex:o})),re("div",{class:e.class,style:i,role:"row"},[a])}}}),l4e="ElTableV2Header",u4e=Se({name:l4e,props:H3,setup(e,{slots:t,expose:n}){const r=lt("table-v2"),o=ee(),i=W(()=>$h({width:e.width,height:e.height})),a=W(()=>$h({width:e.rowWidth,height:e.height})),s=W(()=>Ma(m(e.headerHeight))),l=p=>{const v=m(o);zt(()=>{v!=null&&v.scroll&&v.scroll({left:p})})},u=()=>{const p=r.e("fixed-header-row"),{columns:v,fixedHeaderData:y,rowHeight:w}=e;return y==null?void 0:y.map((b,k)=>{var C;const T=$h({height:w,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:p,columns:v,rowData:b,rowIndex:-(k+1),style:T})})},d=()=>{const p=r.e("dynamic-header-row"),{columns:v}=e;return m(s).map((y,w)=>{var b;const k=$h({width:"100%",height:y});return(b=t.dynamic)==null?void 0:b.call(t,{class:p,columns:v,headerIndex:w,style:k})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return re("div",{ref:o,class:e.class,style:m(i),role:"rowgroup"},[re("div",{style:m(a),class:r.e("header")},[d(),u()])])}}}),c4e=e=>{const{isScrolling:t}=Tt(Z3),n=ee(!1),r=ee(),o=W(()=>en(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=m(r);if(!u)return;const{columns:d,onRowHeightChange:p,rowKey:v,rowIndex:y,style:w}=e,{height:b}=u.getBoundingClientRect();n.value=!0,zt(()=>{if(l||b!==Number.parseInt(w.height)){const k=d[0],C=(k==null?void 0:k.placeholderSign)===BO;p==null||p({rowKey:v,height:b,rowIndex:y},k&&!C&&k.fixed)}})},a=W(()=>{const{rowData:l,rowIndex:u,rowKey:d,onRowHover:p}=e,v=e.rowEventHandlers||{},y={};return Object.entries(v).forEach(([w,b])=>{nn(b)&&(y[w]=k=>{b({event:k,rowData:l,rowIndex:u,rowKey:d})})}),p&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:w,hovered:b})=>{const k=y[w];y[w]=C=>{p({event:C,hovered:b,rowData:l,rowIndex:u,rowKey:d}),k==null||k(C)}}),y}),s=l=>{const{onRowExpand:u,rowData:d,rowIndex:p,rowKey:v}=e;u==null||u({expanded:l,rowData:d,rowIndex:p,rowKey:v})};return vn(()=>{m(o)&&i(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:r,eventHandlers:a,onExpand:s}},f4e="ElTableV2TableRow",d4e=Se({name:f4e,props:Qg,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:o,isScrolling:i,measurable:a,measured:s,rowRef:l,onExpand:u}=c4e(e);return t({onExpand:u}),()=>{const{columns:d,columnsStyles:p,expandColumnKey:v,depth:y,rowData:w,rowIndex:b,style:k}=e;let C=d.map((T,$)=>{const P=xt(w.children)&&w.children.length>0&&T.key===v;return n.cell({column:T,columns:d,columnIndex:$,depth:y,style:p[T.key],rowData:w,rowIndex:b,isScrolling:m(i),expandIconProps:P?{rowData:w,rowIndex:b,onExpand:u}:void 0})});if(n.row&&(C=n.row({cells:C.map(T=>xt(T)&&T.length===1?T[0]:T),style:k,columns:d,depth:y,rowData:w,rowIndex:b,isScrolling:m(i)})),m(a)){const{height:T,...$}=k||{},P=m(s);return re("div",In({ref:l,class:e.class,style:P?k:$,role:"row"},r,m(o)),[C])}return re("div",In(r,{ref:l,class:e.class,style:k,role:"row"},m(o)),[C])}}}),h4e=e=>{const{sortOrder:t}=e;return re(jt,{size:14,class:e.class},{default:()=>[t===jO.ASC?re(q1e,null,null):re(X1e,null,null)]})},p4e=e=>{const{expanded:t,expandable:n,onExpand:r,style:o,size:i}=e,a={onClick:n?()=>r(!t):void 0,class:e.class};return re(jt,In(a,{size:i,style:o}),{default:()=>[re(Ss,null,null)]})},g4e="ElTableV2Grid",v4e=e=>{const t=ee(),n=ee(),r=W(()=>{const{data:b,rowHeight:k,estimatedRowHeight:C}=e;if(!C)return b.length*k}),o=W(()=>{const{fixedData:b,rowHeight:k}=e;return((b==null?void 0:b.length)||0)*k}),i=W(()=>uk(e.headerHeight)),a=W(()=>{const{height:b}=e;return Math.max(0,b-m(i)-m(o))}),s=W(()=>m(i)+m(o)>0),l=({data:b,rowIndex:k})=>b[k][e.rowKey];function u({rowCacheStart:b,rowCacheEnd:k,rowVisibleStart:C,rowVisibleEnd:T}){var $;($=e.onRowsRendered)==null||$.call(e,{rowCacheStart:b,rowCacheEnd:k,rowVisibleStart:C,rowVisibleEnd:T})}function d(b,k){var C;(C=n.value)==null||C.resetAfterRowIndex(b,k)}function p(b,k){const C=m(t),T=m(n);Pn(b)?(C==null||C.scrollToLeft(b.scrollLeft),T==null||T.scrollTo(b)):(C==null||C.scrollToLeft(b),T==null||T.scrollTo({scrollLeft:b,scrollTop:k}))}function v(b){var k;(k=m(n))==null||k.scrollTo({scrollTop:b})}function y(b,k){var C;(C=m(n))==null||C.scrollToItem(b,1,k)}function w(){var b,k;(b=m(n))==null||b.$forceUpdate(),(k=m(t))==null||k.$forceUpdate()}return{bodyRef:n,forceUpdate:w,fixedRowHeight:o,gridHeight:a,hasHeader:s,headerHeight:i,headerRef:t,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:d,scrollTo:p,scrollToTop:v,scrollToRow:y}},q3=Se({name:g4e,props:ck,setup(e,{slots:t,expose:n}){const{ns:r}=Tt(Z3),{bodyRef:o,fixedRowHeight:i,gridHeight:a,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:d,forceUpdate:p,itemKey:v,onItemRendered:y,resetAfterRowIndex:w,scrollTo:b,scrollToTop:k,scrollToRow:C}=v4e(e);n({forceUpdate:p,totalHeight:d,scrollTo:b,scrollToTop:k,scrollToRow:C,resetAfterRowIndex:w});const T=()=>e.bodyWidth;return()=>{const{cache:$,columns:P,data:A,fixedData:R,useIsScrolling:B,scrollbarAlwaysOn:N,scrollbarEndGap:I,scrollbarStartGap:D,style:L,rowHeight:z,bodyWidth:q,estimatedRowHeight:ae,headerWidth:K,height:H,width:ne,getRowHeight:X,onScroll:V}=e,G=en(ae),se=G?OIe:mIe,he=m(u);return re("div",{role:"table",class:[r.e("table"),e.class],style:L},[re(se,{ref:o,data:A,useIsScrolling:B,itemKey:v,columnCache:0,columnWidth:G?T:q,totalColumn:1,totalRow:A.length,rowCache:$,rowHeight:G?X:z,width:ne,height:m(a),class:r.e("body"),role:"rowgroup",scrollbarStartGap:D,scrollbarEndGap:I,scrollbarAlwaysOn:N,onScroll:V,onItemRendered:y,perfMode:!1},{default:pe=>{var Be;const De=A[pe.rowIndex];return(Be=t.row)==null?void 0:Be.call(t,{...pe,columns:P,rowData:De})}}),m(s)&&re(u4e,{ref:l,class:r.e("header-wrapper"),columns:P,headerData:A,headerHeight:e.headerHeight,fixedHeaderData:R,rowWidth:K,rowHeight:z,width:ne,height:Math.min(he+m(i),H)},{dynamic:t.header,fixed:t.row})])}}});function m4e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!bo(e)}const y4e=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return re(q3,In({ref:n},r),m4e(t)?t:{default:()=>[t]})};function b4e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!bo(e)}const _4e=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return re(q3,In({ref:n},r),b4e(t)?t:{default:()=>[t]})};function O4e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!bo(e)}const w4e=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return re(q3,In({ref:n},r),O4e(t)?t:{default:()=>[t]})};function S4e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!bo(e)}const x4e=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:o,expandColumnKey:i,expandedRowKeys:a,estimatedRowHeight:s,hasFixedColumns:l,rowData:u,rowIndex:d,style:p,isScrolling:v,rowProps:y,rowClass:w,rowKey:b,rowEventHandlers:k,ns:C,onRowHovered:T,onRowExpanded:$}=e,P=fv(w,{columns:n,rowData:u,rowIndex:d},""),A=fv(y,{columns:n,rowData:u,rowIndex:d}),R=u[b],B=o[R]||0,N=Boolean(i),I=d<0,D=[C.e("row"),P,{[C.e(`row-depth-${B}`)]:N&&d>=0,[C.is("expanded")]:N&&a.includes(R),[C.is("fixed")]:!B&&I,[C.is("customized")]:Boolean(t.row)}],L=l?T:void 0,z={...A,columns:n,columnsStyles:r,class:D,depth:B,expandColumnKey:i,estimatedRowHeight:I?void 0:s,isScrolling:v,rowIndex:d,rowData:u,rowKey:R,rowEventHandlers:k,style:p};return re(d4e,In(z,{onRowExpand:$,onMouseenter:K=>{L==null||L({hovered:!0,rowKey:R,event:K,rowData:u,rowIndex:d})},onMouseleave:K=>{L==null||L({hovered:!1,rowKey:R,event:K,rowData:u,rowIndex:d})},rowkey:R}),S4e(t)?t:{default:()=>[t]})},ZM=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:o,isScrolling:i,rowData:a,rowIndex:s,style:l,expandedRowKeys:u,ns:d,cellProps:p,expandColumnKey:v,indentSize:y,iconSize:w,rowKey:b},{slots:k})=>{const C=$h(l);if(t.placeholderSign===BO)return re("div",{class:d.em("row-cell","placeholder"),style:C},null);const{cellRenderer:T,dataKey:$,dataGetter:P}=t,A=nn(P)?P({columns:e,column:t,columnIndex:n,rowData:a,rowIndex:s}):Ao(a,$!=null?$:""),R=fv(p,{cellData:A,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:a}),B={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:A,isScrolling:i,rowData:a,rowIndex:s},N=FU(T),I=N?N(B):He(k,"default",B,()=>[re(X3,B,null)]),D=[d.e("row-cell"),t.class,t.align===LO.CENTER&&d.is("align-center"),t.align===LO.RIGHT&&d.is("align-right")],L=s>=0&&v&&t.key===v,z=s>=0&&u.includes(a[b]);let q;const ae=`margin-inline-start: ${r*y}px;`;return L&&(Pn(o)?q=re(p4e,In(o,{class:[d.e("expand-icon"),d.is("expanded",z)],size:w,expanded:z,style:ae,expandable:!0}),null):q=re("div",{style:[ae,`width: ${w}px; height: ${w}px;`].join(" ")},null)),re("div",In({class:D,style:C},R,{role:"cell"}),[q,I])};ZM.inheritAttrs=!1;function k4e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!bo(e)}const C4e=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:o,headerProps:i,ns:a},{slots:s})=>{const l={columns:e,headerIndex:n},u=[a.e("header-row"),fv(o,l,""),{[a.is("customized")]:Boolean(s.header)}],d={...fv(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return re(s4e,d,k4e(s)?s:{default:()=>[s]})},yB=(e,{slots:t})=>{const{column:n,ns:r,style:o,onColumnSorted:i}=e,a=$h(o);if(n.placeholderSign===BO)return re("div",{class:r.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,d={...e,class:r.e("header-cell-text")},p=FU(s),v=p?p(d):He(t,"default",d,()=>[re(G3,d,null)]),{sortBy:y,sortState:w,headerCellProps:b}=e;let k,C;if(w){const P=w[n.key];k=Boolean(YM[P]),C=k?P:jO.ASC}else k=n.key===y.key,C=k?y.order:jO.ASC;const T=[r.e("header-cell"),fv(l,e,""),n.align===LO.CENTER&&r.is("align-center"),n.align===LO.RIGHT&&r.is("align-right"),u&&r.is("sortable")],$={...fv(b,e),onClick:n.sortable?i:void 0,class:T,style:a,["data-key"]:n.key};return re("div",In($,{role:"columnheader"}),[v,u&&re(h4e,{class:[r.e("sort-icon"),k&&r.is("sorting")],sortOrder:C},null)])},YU=(e,{slots:t})=>{var n;return re("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};YU.displayName="ElTableV2Footer";const ZU=(e,{slots:t})=>{const n=He(t,"default",{},()=>[re(GZ,null,null)]);return re("div",{class:e.class,style:e.style},[n])};ZU.displayName="ElTableV2Empty";const UU=(e,{slots:t})=>{var n;return re("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};UU.displayName="ElTableV2Overlay";function b_(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!bo(e)}const E4e="ElTableV2",T4e=Se({name:E4e,props:i4e,setup(e,{slots:t,expose:n}){const r=lt("table-v2"),{columnsStyles:o,fixedColumnsOnLeft:i,fixedColumnsOnRight:a,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:p,data:v,depthMap:y,expandedRowKeys:w,hasFixedColumns:b,mainTableRef:k,leftTableRef:C,rightTableRef:T,isDynamic:$,isResetting:P,isScrolling:A,bodyWidth:R,emptyStyle:B,rootStyle:N,headerWidth:I,footerHeight:D,showEmpty:L,scrollTo:z,scrollToLeft:q,scrollToTop:ae,scrollToRow:K,getRowHeight:H,onColumnSorted:ne,onRowHeightChange:X,onRowHovered:V,onRowExpanded:G,onRowsRendered:se,onScroll:he,onVerticalScroll:pe}=r4e(e);return n({scrollTo:z,scrollToLeft:q,scrollToTop:ae,scrollToRow:K}),Wn(Z3,{ns:r,isResetting:P,isScrolling:A}),()=>{const{cache:Be,cellProps:De,estimatedRowHeight:ze,expandColumnKey:$e,fixedData:_e,headerHeight:me,headerClass:Re,headerProps:we,headerCellProps:fe,sortBy:oe,sortState:ke,rowHeight:We,rowClass:et,rowEventHandlers:Ve,rowKey:Me,rowProps:Ke,scrollbarAlwaysOn:be,indentSize:qe,iconSize:ct,useIsScrolling:Je,vScrollbarSize:Xe,width:gt}=e,Ct=m(v),Zt={cache:Be,class:r.e("main"),columns:m(s),data:Ct,fixedData:_e,estimatedRowHeight:ze,bodyWidth:m(R)+Xe,headerHeight:me,headerWidth:m(I),height:m(l),mainTableRef:k,rowKey:Me,rowHeight:We,scrollbarAlwaysOn:be,scrollbarStartGap:2,scrollbarEndGap:Xe,useIsScrolling:Je,width:gt,getRowHeight:H,onRowsRendered:se,onScroll:he},Et=m(d),ln=m(u),Ee={cache:Be,class:r.e("left"),columns:m(i),data:Ct,estimatedRowHeight:ze,leftTableRef:C,rowHeight:We,bodyWidth:Et,headerWidth:Et,headerHeight:me,height:ln,rowKey:Me,scrollbarAlwaysOn:be,scrollbarStartGap:2,scrollbarEndGap:Xe,useIsScrolling:Je,width:Et,getRowHeight:H,onScroll:pe},ye=m(p)+Xe,Le={cache:Be,class:r.e("right"),columns:m(a),data:Ct,estimatedRowHeight:ze,rightTableRef:T,rowHeight:We,bodyWidth:ye,headerWidth:ye,headerHeight:me,height:ln,rowKey:Me,scrollbarAlwaysOn:be,scrollbarStartGap:2,scrollbarEndGap:Xe,width:ye,style:`--${m(r.namespace)}-table-scrollbar-size: ${Xe}px`,useIsScrolling:Je,getRowHeight:H,onScroll:pe},xe=m(o),Ue={ns:r,depthMap:m(y),columnsStyles:xe,expandColumnKey:$e,expandedRowKeys:m(w),estimatedRowHeight:ze,hasFixedColumns:m(b),rowProps:Ke,rowClass:et,rowKey:Me,rowEventHandlers:Ve,onRowHovered:V,onRowExpanded:G,onRowHeightChange:X},rt={cellProps:De,expandColumnKey:$e,indentSize:qe,iconSize:ct,rowKey:Me,expandedRowKeys:m(w),ns:r},Ft={ns:r,headerClass:Re,headerProps:we,columnsStyles:xe},Vn={ns:r,sortBy:oe,sortState:ke,headerCellProps:fe,onColumnSorted:ne},ot={row:Nt=>re(x4e,In(Nt,Ue),{row:t.row,cell:Xt=>{let Ht;return t.cell?re(ZM,In(Xt,rt,{style:xe[Xt.column.key]}),b_(Ht=t.cell(Xt))?Ht:{default:()=>[Ht]}):re(ZM,In(Xt,rt,{style:xe[Xt.column.key]}),null)}}),header:Nt=>re(C4e,In(Nt,Ft),{header:t.header,cell:Xt=>{let Ht;return t["header-cell"]?re(yB,In(Xt,Vn,{style:xe[Xt.column.key]}),b_(Ht=t["header-cell"](Xt))?Ht:{default:()=>[Ht]}):re(yB,In(Xt,Vn,{style:xe[Xt.column.key]}),null)}})},Lt=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:m($)}],wn={class:r.e("footer"),style:m(D)};return re("div",{class:Lt,style:m(N)},[re(y4e,Zt,b_(ot)?ot:{default:()=>[ot]}),re(_4e,Ee,b_(ot)?ot:{default:()=>[ot]}),re(w4e,Le,b_(ot)?ot:{default:()=>[ot]}),t.footer&&re(YU,wn,{default:t.footer}),m(L)&&re(ZU,{class:r.e("empty"),style:m(B)},{default:t.empty}),t.overlay&&re(UU,{class:r.e("overlay")},{default:t.overlay})])}}}),P4e=pt({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:Ie(Function)}}),$4e=Se({name:"ElAutoResizer",props:P4e,setup(e,{slots:t}){const n=lt("auto-resizer"),{height:r,width:o,sizer:i}=n4e(e),a={width:"100%",height:"100%"};return()=>{var s;return re("div",{ref:i,class:n.b(),style:a},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:o.value})])}}}),A4e=pn(T4e),M4e=pn($4e),FC=Symbol("tabsRootContextKey"),R4e=pt({tabs:{type:Ie(Array),default:()=>Oo([])}}),HU="ElTabBar",N4e=Se({name:HU}),I4e=Se({...N4e,props:R4e,setup(e,{expose:t}){const n=e,r=Cn(),o=Tt(FC);o||$i(HU,"<el-tabs><el-tab-bar /></el-tabs>");const i=lt("tabs"),a=ee(),s=ee(),l=()=>{let d=0,p=0;const v=["top","bottom"].includes(o.props.tabPosition)?"width":"height",y=v==="width"?"x":"y",w=y==="x"?"left":"top";return n.tabs.every(b=>{var k,C;const T=(C=(k=r.parent)==null?void 0:k.refs)==null?void 0:C[`tab-${b.uid}`];if(!T)return!1;if(!b.active)return!0;d=T[`offset${Jc(w)}`],p=T[`client${Jc(v)}`];const $=window.getComputedStyle(T);return v==="width"&&(p-=Number.parseFloat($.paddingLeft)+Number.parseFloat($.paddingRight),d+=Number.parseFloat($.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${Jc(y)}(${d}px)`}},u=()=>s.value=l();return at(()=>n.tabs,async()=>{await zt(),u()},{immediate:!0}),_o(a,()=>u()),t({ref:a,update:u}),(d,p)=>(Z(),ce("div",{ref_key:"barRef",ref:a,class:J([m(i).e("active-bar"),m(i).is(m(o).props.tabPosition)]),style:Vt(s.value)},null,6))}});var D4e=vt(I4e,[["__file","tab-bar.vue"]]);const j4e=pt({panes:{type:Ie(Array),default:()=>Oo([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),L4e={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},bB="ElTabNav",B4e=Se({name:bB,props:j4e,emits:L4e,setup(e,{expose:t,emit:n}){const r=Tt(FC);r||$i(bB,"<el-tabs><tab-nav /></el-tabs>");const o=lt("tabs"),i=Kie(),a=cae(),s=ee(),l=ee(),u=ee(),d=ee(),p=ee(!1),v=ee(0),y=ee(!1),w=ee(!0),b=W(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),k=W(()=>({transform:`translate${b.value==="width"?"X":"Y"}(-${v.value}px)`})),C=()=>{if(!s.value)return;const N=s.value[`offset${Jc(b.value)}`],I=v.value;if(!I)return;const D=I>N?I-N:0;v.value=D},T=()=>{if(!s.value||!l.value)return;const N=l.value[`offset${Jc(b.value)}`],I=s.value[`offset${Jc(b.value)}`],D=v.value;if(N-D<=I)return;const L=N-D>I*2?D+I:N-I;v.value=L},$=async()=>{const N=l.value;if(!p.value||!u.value||!s.value||!N)return;await zt();const I=u.value.querySelector(".is-active");if(!I)return;const D=s.value,L=["top","bottom"].includes(r.props.tabPosition),z=I.getBoundingClientRect(),q=D.getBoundingClientRect(),ae=L?N.offsetWidth-q.width:N.offsetHeight-q.height,K=v.value;let H=K;L?(z.left<q.left&&(H=K-(q.left-z.left)),z.right>q.right&&(H=K+z.right-q.right)):(z.top<q.top&&(H=K-(q.top-z.top)),z.bottom>q.bottom&&(H=K+(z.bottom-q.bottom))),H=Math.max(H,0),v.value=Math.min(H,ae)},P=()=>{var N;if(!l.value||!s.value)return;e.stretch&&((N=d.value)==null||N.update());const I=l.value[`offset${Jc(b.value)}`],D=s.value[`offset${Jc(b.value)}`],L=v.value;D<I?(p.value=p.value||{},p.value.prev=L,p.value.next=L+D<I,I-L<D&&(v.value=I-D)):(p.value=!1,L>0&&(v.value=0))},A=N=>{const I=N.code,{up:D,down:L,left:z,right:q}=Qt;if(![D,L,z,q].includes(I))return;const ae=Array.from(N.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),K=ae.indexOf(N.target);let H;I===z||I===D?K===0?H=ae.length-1:H=K-1:K<ae.length-1?H=K+1:H=0,ae[H].focus({preventScroll:!0}),ae[H].click(),R()},R=()=>{w.value&&(y.value=!0)},B=()=>y.value=!1;return at(i,N=>{N==="hidden"?w.value=!1:N==="visible"&&setTimeout(()=>w.value=!0,50)}),at(a,N=>{N?setTimeout(()=>w.value=!0,50):w.value=!1}),_o(u,P),vn(()=>setTimeout(()=>$(),0)),gc(()=>P()),t({scrollToActiveTab:$,removeFocus:B}),()=>{const N=p.value?[re("span",{class:[o.e("nav-prev"),o.is("disabled",!p.value.prev)],onClick:C},[re(jt,null,{default:()=>[re(qh,null,null)]})]),re("span",{class:[o.e("nav-next"),o.is("disabled",!p.value.next)],onClick:T},[re(jt,null,{default:()=>[re(Ss,null,null)]})])]:null,I=e.panes.map((D,L)=>{var z,q,ae,K;const H=D.uid,ne=D.props.disabled,X=(q=(z=D.props.name)!=null?z:D.index)!=null?q:`${L}`,V=!ne&&(D.isClosable||e.editable);D.index=`${L}`;const G=V?re(jt,{class:"is-icon-close",onClick:pe=>n("tabRemove",D,pe)},{default:()=>[re(el,null,null)]}):null,se=((K=(ae=D.slots).label)==null?void 0:K.call(ae))||D.props.label,he=!ne&&D.active?0:-1;return re("div",{ref:`tab-${H}`,class:[o.e("item"),o.is(r.props.tabPosition),o.is("active",D.active),o.is("disabled",ne),o.is("closable",V),o.is("focus",y.value)],id:`tab-${X}`,key:`tab-${H}`,"aria-controls":`pane-${X}`,role:"tab","aria-selected":D.active,tabindex:he,onFocus:()=>R(),onBlur:()=>B(),onClick:pe=>{B(),n("tabClick",D,X,pe)},onKeydown:pe=>{V&&(pe.code===Qt.delete||pe.code===Qt.backspace)&&n("tabRemove",D,pe)}},[se,G])});return re("div",{ref:u,class:[o.e("nav-wrap"),o.is("scrollable",!!p.value),o.is(r.props.tabPosition)]},[N,re("div",{class:o.e("nav-scroll"),ref:s},[re("div",{class:[o.e("nav"),o.is(r.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:l,style:k.value,role:"tablist",onKeydown:A},[e.type?null:re(D4e,{ref:d,tabs:[...e.panes]},null),I])])])}}}),V4e=pt({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Ie(Function),default:()=>!0},stretch:Boolean}),G$=e=>Gt(e)||en(e),F4e={[En]:e=>G$(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>G$(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>G$(e),tabAdd:()=>!0},z4e=Se({name:"ElTabs",props:V4e,emits:F4e,setup(e,{emit:t,slots:n,expose:r}){var o;const i=lt("tabs"),a=W(()=>["left","right"].includes(e.tabPosition)),{children:s,addChild:l,removeChild:u}=u3(Cn(),"ElTabPane"),d=ee(),p=ee((o=e.modelValue)!=null?o:"0"),v=async(C,T=!1)=>{var $,P,A;if(!(p.value===C||Bo(C)))try{await(($=e.beforeLeave)==null?void 0:$.call(e,C,p.value))!==!1&&(p.value=C,T&&(t(En,C),t("tabChange",C)),(A=(P=d.value)==null?void 0:P.removeFocus)==null||A.call(P))}catch{}},y=(C,T,$)=>{C.props.disabled||(v(T,!0),t("tabClick",C,$))},w=(C,T)=>{C.props.disabled||Bo(C.props.name)||(T.stopPropagation(),t("edit",C.props.name,"remove"),t("tabRemove",C.props.name))},b=()=>{t("edit",void 0,"add"),t("tabAdd")};at(()=>e.modelValue,C=>v(C)),at(p,async()=>{var C;await zt(),(C=d.value)==null||C.scrollToActiveTab()}),Wn(FC,{props:e,currentName:p,registerPane:C=>{s.value.push(C)},sortPane:l,unregisterPane:u}),r({currentName:p});const k=({render:C})=>C();return()=>{const C=n["add-icon"],T=e.editable||e.addable?re("div",{class:[i.e("new-tab"),a.value&&i.e("new-tab-vertical")],tabindex:"0",onClick:b,onKeydown:A=>{A.code===Qt.enter&&b()}},[C?He(n,"add-icon"):re(jt,{class:i.is("icon-plus")},{default:()=>[re(Bk,null,null)]})]):null,$=re("div",{class:[i.e("header"),a.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[re(k,{render:()=>{const A=s.value.some(R=>R.slots.label);return re(B4e,{ref:d,currentName:p.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:y,onTabRemove:w},{$stable:!A})}},null),T]),P=re("div",{class:i.e("content")},[He(n,"default")]);return re("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[P,$])}}}),Q4e=pt({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),XU="ElTabPane",W4e=Se({name:XU}),Y4e=Se({...W4e,props:Q4e,setup(e){const t=e,n=Cn(),r=zi(),o=Tt(FC);o||$i(XU,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=lt("tab-pane"),a=ee(),s=W(()=>t.closable||o.props.closable),l=O5(()=>{var y;return o.currentName.value===((y=t.name)!=null?y:a.value)}),u=ee(l.value),d=W(()=>{var y;return(y=t.name)!=null?y:a.value}),p=O5(()=>!t.lazy||u.value||l.value);at(l,y=>{y&&(u.value=!0)});const v=nr({uid:n.uid,slots:r,props:t,paneName:d,active:l,index:a,isClosable:s});return o.registerPane(v),vn(()=>{o.sortPane(v)}),hp(()=>{o.unregisterPane(v.uid)}),(y,w)=>m(p)?yn((Z(),ce("div",{key:0,id:`pane-${m(d)}`,class:J(m(i).b()),role:"tabpanel","aria-hidden":!m(l),"aria-labelledby":`tab-${m(d)}`},[He(y.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[hr,m(l)]]):je("v-if",!0)}});var GU=vt(Y4e,[["__file","tab-pane.vue"]]);const zC=pn(z4e,{TabPane:GU}),QC=So(GU),Z4e=pt({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:wf,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),U4e=Se({name:"ElText"}),H4e=Se({...U4e,props:Z4e,setup(e){const t=e,n=bi(),r=lt("text"),o=W(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated),r.is("line-clamp",!Bo(t.lineClamp))]);return(i,a)=>(Z(),Fe(Dn(i.tag),{class:J(m(o)),style:Vt({"-webkit-line-clamp":i.lineClamp})},{default:ue(()=>[He(i.$slots,"default")]),_:3},8,["class","style"]))}});var X4e=vt(H4e,[["__file","text.vue"]]);const A1=pn(X4e),G4e=pt({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:Ie(String),default:"light"},clearable:{type:Boolean,default:!0},size:Ai,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:Ie([String,Object]),default:()=>bW},clearIcon:{type:Ie([String,Object]),default:()=>_p},...g0}),ad=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},q$=(e,t)=>{const n=ad(e);if(!n)return-1;const r=ad(t);if(!r)return-1;const o=n.minutes+n.hours*60,i=r.minutes+r.hours*60;return o===i?0:o>i?1:-1},_B=e=>`${e}`.padStart(2,"0"),qm=e=>`${_B(e.hours)}:${_B(e.minutes)}`,q4e=(e,t)=>{const n=ad(e);if(!n)return"";const r=ad(t);if(!r)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=r.minutes,o.hours+=r.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,qm(o)},K4e=Se({name:"ElTimeSelect"}),J4e=Se({...K4e,props:G4e,emits:["change","blur","focus","clear","update:modelValue"],setup(e,{expose:t}){const n=e;un.extend(m3);const{Option:r}=dc,o=lt("input"),i=ee(),a=Rs(),{lang:s}=rr(),l=W(()=>n.modelValue),u=W(()=>{const C=ad(n.start);return C?qm(C):null}),d=W(()=>{const C=ad(n.end);return C?qm(C):null}),p=W(()=>{const C=ad(n.step);return C?qm(C):null}),v=W(()=>{const C=ad(n.minTime||"");return C?qm(C):null}),y=W(()=>{const C=ad(n.maxTime||"");return C?qm(C):null}),w=W(()=>{const C=[];if(n.start&&n.end&&n.step){let T=u.value,$;for(;T&&d.value&&q$(T,d.value)<=0;)$=un(T,"HH:mm").locale(s.value).format(n.format),C.push({value:$,disabled:q$(T,v.value||"-1:-1")<=0||q$(T,y.value||"100:100")>=0}),T=q4e(T,p.value)}return C});return t({blur:()=>{var C,T;(T=(C=i.value)==null?void 0:C.blur)==null||T.call(C)},focus:()=>{var C,T;(T=(C=i.value)==null?void 0:C.focus)==null||T.call(C)}}),(C,T)=>(Z(),Fe(m(dc),{ref_key:"select",ref:i,"model-value":m(l),disabled:m(a),clearable:C.clearable,"clear-icon":C.clearIcon,size:C.size,effect:C.effect,placeholder:C.placeholder,"default-first-option":"",filterable:C.editable,"empty-values":C.emptyValues,"value-on-clear":C.valueOnClear,"onUpdate:modelValue":$=>C.$emit("update:modelValue",$),onChange:$=>C.$emit("change",$),onBlur:$=>C.$emit("blur",$),onFocus:$=>C.$emit("focus",$),onClear:()=>C.$emit("clear")},{prefix:ue(()=>[C.prefixIcon?(Z(),Fe(m(jt),{key:0,class:J(m(o).e("prefix-icon"))},{default:ue(()=>[(Z(),Fe(Dn(C.prefixIcon)))]),_:1},8,["class"])):je("v-if",!0)]),default:ue(()=>[(Z(!0),ce(Pt,null,_n(m(w),$=>(Z(),Fe(m(r),{key:$.value,label:$.value,value:$.value,disabled:$.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var eje=vt(J4e,[["__file","time-select.vue"]]);const tje=pn(eje),nje=Se({name:"ElTimeline",setup(e,{slots:t}){const n=lt("timeline");return Wn("timeline",t),()=>Yt("ul",{class:[n.b()]},[He(t,"default")])}}),rje=pt({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Fr},hollow:Boolean}),oje=Se({name:"ElTimelineItem"}),ije=Se({...oje,props:rje,setup(e){const t=e,n=lt("timeline-item"),r=W(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(o,i)=>(Z(),ce("li",{class:J([m(n).b(),{[m(n).e("center")]:o.center}])},[ve("div",{class:J(m(n).e("tail"))},null,2),o.$slots.dot?je("v-if",!0):(Z(),ce("div",{key:0,class:J(m(r)),style:Vt({backgroundColor:o.color})},[o.icon?(Z(),Fe(m(jt),{key:0,class:J(m(n).e("icon"))},{default:ue(()=>[(Z(),Fe(Dn(o.icon)))]),_:1},8,["class"])):je("v-if",!0)],6)),o.$slots.dot?(Z(),ce("div",{key:1,class:J(m(n).e("dot"))},[He(o.$slots,"dot")],2)):je("v-if",!0),ve("div",{class:J(m(n).e("wrapper"))},[!o.hideTimestamp&&o.placement==="top"?(Z(),ce("div",{key:0,class:J([m(n).e("timestamp"),m(n).is("top")])},ut(o.timestamp),3)):je("v-if",!0),ve("div",{class:J(m(n).e("content"))},[He(o.$slots,"default")],2),!o.hideTimestamp&&o.placement==="bottom"?(Z(),ce("div",{key:1,class:J([m(n).e("timestamp"),m(n).is("bottom")])},ut(o.timestamp),3)):je("v-if",!0)],2)],2))}});var qU=vt(ije,[["__file","timeline-item.vue"]]);const aje=pn(nje,{TimelineItem:qU}),sje=So(qU),KU=pt({nowrap:Boolean});var JU=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(JU||{});const lje=Object.values(JU),K3=pt({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:Ie(Object),default:null}}),uje=pt({side:{type:Ie(String),values:lje,required:!0}}),cje=["absolute","fixed"],fje=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],J3=pt({arrowPadding:{type:Ie(Number),default:5},effect:{type:Ie(String),default:"light"},contentClass:String,placement:{type:Ie(String),values:fje,default:"bottom"},reference:{type:Ie(Object),default:null},offset:{type:Number,default:8},strategy:{type:Ie(String),values:cje,default:"absolute"},showArrow:Boolean,...ha(["ariaLabel"])}),eD=pt({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:Ie(Function)},"onUpdate:open":{type:Ie(Function)}}),Ym={type:Ie(Function)},tD=pt({onBlur:Ym,onClick:Ym,onFocus:Ym,onMouseDown:Ym,onMouseEnter:Ym,onMouseLeave:Ym}),dje=pt({...eD,...K3,...tD,...J3,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:Ie(Object),default:null},teleported:Boolean,to:{type:Ie(String),default:"body"}}),WC=Symbol("tooltipV2"),eH=Symbol("tooltipV2Content"),K$="tooltip_v2.open",hje=Se({name:"ElTooltipV2Root"}),pje=Se({...hje,props:eD,setup(e,{expose:t}){const n=e,r=ee(n.defaultOpen),o=ee(null),i=W({get:()=>av(n.open)?r.value:n.open,set:k=>{var C;r.value=k,(C=n["onUpdate:open"])==null||C.call(n,k)}}),a=W(()=>en(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=nv(()=>{i.value=!0},W(()=>n.delayDuration),{immediate:!1}),u=lt("tooltip-v2"),d=ja(),p=()=>{l(),i.value=!0},v=()=>{m(a)?s():p()},y=p,w=()=>{l(),i.value=!1};return at(i,k=>{var C;k&&(document.dispatchEvent(new CustomEvent(K$)),y()),(C=n.onOpenChange)==null||C.call(n,k)}),vn(()=>{document.addEventListener(K$,w)}),Ur(()=>{l(),document.removeEventListener(K$,w)}),Wn(WC,{contentId:d,triggerRef:o,ns:u,onClose:w,onDelayOpen:v,onOpen:y}),t({onOpen:y,onClose:w}),(k,C)=>He(k.$slots,"default",{open:m(i)})}});var gje=vt(pje,[["__file","root.vue"]]);const vje=Se({name:"ElTooltipV2Arrow"}),mje=Se({...vje,props:{...K3,...uje},setup(e){const t=e,{ns:n}=Tt(WC),{arrowRef:r}=Tt(eH),o=W(()=>{const{style:i,width:a,height:s}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${a}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${a/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:a/2-1,...i||{}}});return(i,a)=>(Z(),ce("span",{ref_key:"arrowRef",ref:r,style:Vt(m(o)),class:J(m(n).e("arrow"))},null,6))}});var OB=vt(mje,[["__file","arrow.vue"]]);const yje=pt({style:{type:Ie([String,Object,Array]),default:()=>({})}}),bje=Se({name:"ElVisuallyHidden"}),_je=Se({...bje,props:yje,setup(e){const t=e,n=W(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,o)=>(Z(),ce("span",In(r.$attrs,{style:m(n)}),[He(r.$slots,"default")],16))}});var Oje=vt(_je,[["__file","visual-hidden.vue"]]);const wje=Se({name:"ElTooltipV2Content"}),Sje=Se({...wje,props:{...J3,...KU},setup(e){const t=e,{triggerRef:n,contentId:r}=Tt(WC),o=ee(t.placement),i=ee(t.strategy),a=ee(null),{referenceRef:s,contentRef:l,middlewareData:u,x:d,y:p,update:v}=gxe({placement:o,strategy:i,middleware:W(()=>{const $=[KW(t.offset)];return t.showArrow&&$.push(vxe({arrowRef:a})),$})}),y=p0().nextZIndex(),w=lt("tooltip-v2"),b=W(()=>o.value.split("-")[0]),k=W(()=>({position:m(i),top:`${m(p)||0}px`,left:`${m(d)||0}px`,zIndex:y})),C=W(()=>{if(!t.showArrow)return{};const{arrow:$}=m(u);return{[`--${w.namespace.value}-tooltip-v2-arrow-x`]:`${$==null?void 0:$.x}px`||"",[`--${w.namespace.value}-tooltip-v2-arrow-y`]:`${$==null?void 0:$.y}px`||""}}),T=W(()=>[w.e("content"),w.is("dark",t.effect==="dark"),w.is(m(i)),t.contentClass]);return at(a,()=>v()),at(()=>t.placement,$=>o.value=$),vn(()=>{at(()=>t.reference||n.value,$=>{s.value=$||void 0},{immediate:!0})}),Wn(eH,{arrowRef:a}),($,P)=>(Z(),ce("div",{ref_key:"contentRef",ref:l,style:Vt(m(k)),"data-tooltip-v2-root":""},[$.nowrap?je("v-if",!0):(Z(),ce("div",{key:0,"data-side":m(b),class:J(m(T))},[He($.$slots,"default",{contentStyle:m(k),contentClass:m(T)}),re(m(Oje),{id:m(r),role:"tooltip"},{default:ue(()=>[$.ariaLabel?(Z(),ce(Pt,{key:0},[St(ut($.ariaLabel),1)],64)):He($.$slots,"default",{key:1})]),_:3},8,["id"]),He($.$slots,"arrow",{style:Vt(m(C)),side:m(b)})],10,["data-side"]))],4))}});var wB=vt(Sje,[["__file","content.vue"]]);const xje=pt({setRef:{type:Ie(Function),required:!0},onlyChild:Boolean});var kje=Se({props:xje,setup(e,{slots:t}){const n=ee(),r=kC(n,o=>{o?e.setRef(o.nextElementSibling):e.setRef(null)});return()=>{var o;const[i]=((o=t.default)==null?void 0:o.call(t))||[],a=e.onlyChild?hwe(i.children):i.children;return re(Pt,{ref:r},[a])}}});const Cje=Se({name:"ElTooltipV2Trigger"}),Eje=Se({...Cje,props:{...KU,...tD},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:o,triggerRef:i,contentId:a}=Tt(WC);let s=!1;const l=T=>{i.value=T},u=()=>{s=!1},d=Lo(t.onMouseEnter,o),p=Lo(t.onMouseLeave,n),v=Lo(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),y=Lo(t.onFocus,()=>{s||r()}),w=Lo(t.onBlur,n),b=Lo(t.onClick,T=>{T.detail===0&&n()}),k={blur:w,click:b,focus:y,mousedown:v,mouseenter:d,mouseleave:p},C=(T,$,P)=>{T&&Object.entries($).forEach(([A,R])=>{T[P](A,R)})};return at(i,(T,$)=>{C(T,k,"addEventListener"),C($,k,"removeEventListener"),T&&T.setAttribute("aria-describedby",a.value)}),Ur(()=>{C(i.value,k,"removeEventListener"),document.removeEventListener("mouseup",u)}),(T,$)=>T.nowrap?(Z(),Fe(m(kje),{key:0,"set-ref":l,"only-child":""},{default:ue(()=>[He(T.$slots,"default")]),_:3})):(Z(),ce("button",In({key:1,ref_key:"triggerRef",ref:i},T.$attrs),[He(T.$slots,"default")],16))}});var Tje=vt(Eje,[["__file","trigger.vue"]]);const Pje=Se({name:"ElTooltipV2"}),$je=Se({...Pje,props:dje,setup(e){const n=ea(e),r=nr(pu(n,Object.keys(K3))),o=nr(pu(n,Object.keys(J3))),i=nr(pu(n,Object.keys(eD))),a=nr(pu(n,Object.keys(tD)));return(s,l)=>(Z(),Fe(gje,ic(Yh(i)),{default:ue(({open:u})=>[re(Tje,In(a,{nowrap:""}),{default:ue(()=>[He(s.$slots,"trigger")]),_:3},16),re(m(v0),{to:s.to,disabled:!s.teleported},{default:ue(()=>[s.fullTransition?(Z(),Fe(Pi,ic(In({key:0},s.transitionProps)),{default:ue(()=>[s.alwaysOn||u?(Z(),Fe(wB,ic(In({key:0},o)),{arrow:ue(({style:d,side:p})=>[s.showArrow?(Z(),Fe(OB,In({key:0},r,{style:d,side:p}),null,16,["style","side"])):je("v-if",!0)]),default:ue(()=>[He(s.$slots,"default")]),_:3},16)):je("v-if",!0)]),_:2},1040)):(Z(),ce(Pt,{key:1},[s.alwaysOn||u?(Z(),Fe(wB,ic(In({key:0},o)),{arrow:ue(({style:d,side:p})=>[s.showArrow?(Z(),Fe(OB,In({key:0},r,{style:d,side:p}),null,16,["style","side"])):je("v-if",!0)]),default:ue(()=>[He(s.$slots,"default")]),_:3},16)):je("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var Aje=vt($je,[["__file","tooltip.vue"]]);const Mje=pn(Aje),tH="left-check-change",nH="right-check-change",Km=pt({data:{type:Ie(Array),default:()=>[]},titles:{type:Ie(Array),default:()=>[]},buttonTexts:{type:Ie(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:Ie(Function)},leftDefaultChecked:{type:Ie(Array),default:()=>[]},rightDefaultChecked:{type:Ie(Array),default:()=>[]},renderContent:{type:Ie(Function)},modelValue:{type:Ie(Array),default:()=>[]},format:{type:Ie(Object),default:()=>({})},filterable:Boolean,props:{type:Ie(Object),default:()=>Oo({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),UM=(e,t)=>[e,t].every(xt)||xt(e)&&Vi(t),Rje={[ao]:(e,t,n)=>[e,n].every(xt)&&["left","right"].includes(t),[En]:e=>xt(e),[tH]:UM,[nH]:UM},HM="checked-change",Nje=pt({data:Km.data,optionRender:{type:Ie(Function)},placeholder:String,title:String,filterable:Boolean,format:Km.format,filterMethod:Km.filterMethod,defaultChecked:Km.leftDefaultChecked,props:Km.props}),Ije={[HM]:UM},M1=e=>{const t={label:"label",key:"key",disabled:"disabled"};return W(()=>({...t,...e.props}))},Dje=(e,t,n)=>{const r=M1(e),o=W(()=>e.data.filter(d=>nn(e.filterMethod)?e.filterMethod(t.query,d):String(d[r.value.label]||d[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=W(()=>o.value.filter(d=>!d[r.value.disabled])),a=W(()=>{const d=t.checked.length,p=e.data.length,{noChecked:v,hasChecked:y}=e.format;return v&&y?d>0?y.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,p.toString()):v.replace(/\${total}/g,p.toString()):`${d}/${p}`}),s=W(()=>{const d=t.checked.length;return d>0&&d<i.value.length}),l=()=>{const d=i.value.map(p=>p[r.value.key]);t.allChecked=d.length>0&&d.every(p=>t.checked.includes(p))},u=d=>{t.checked=d?i.value.map(p=>p[r.value.key]):[]};return at(()=>t.checked,(d,p)=>{if(l(),t.checkChangeByUser){const v=d.concat(p).filter(y=>!d.includes(y)||!p.includes(y));n(HM,d,v)}else n(HM,d),t.checkChangeByUser=!0}),at(i,()=>{l()}),at(()=>e.data,()=>{const d=[],p=o.value.map(v=>v[r.value.key]);t.checked.forEach(v=>{p.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d}),at(()=>e.defaultChecked,(d,p)=>{if(p&&d.length===p.length&&d.every(w=>p.includes(w)))return;const v=[],y=i.value.map(w=>w[r.value.key]);d.forEach(w=>{y.includes(w)&&v.push(w)}),t.checkChangeByUser=!1,t.checked=v},{immediate:!0}),{filteredData:o,checkableData:i,checkedSummary:a,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},jje=(e,t)=>({onSourceCheckedChange:(o,i)=>{e.leftChecked=o,i&&t(tH,o,i)},onTargetCheckedChange:(o,i)=>{e.rightChecked=o,i&&t(nH,o,i)}}),Lje=e=>{const t=M1(e),n=W(()=>e.data.reduce((i,a)=>(i[a[t.value.key]]=a)&&i,{})),r=W(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),o=W(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,a)=>{const s=n.value[a];return s&&i.push(s),i},[]));return{sourceData:r,targetData:o}},Bje=(e,t,n)=>{const r=M1(e),o=(s,l,u)=>{n(En,s),n(ao,s,l,u)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),o(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const l=e.data.filter(u=>{const d=u[r.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(u=>u[r.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),o(s,"right",t.leftChecked)}}},Vje=Se({name:"ElTransferPanel"}),Fje=Se({...Vje,props:Nje,emits:Ije,setup(e,{expose:t,emit:n}){const r=e,o=zi(),i=({option:$})=>$,{t:a}=rr(),s=lt("transfer"),l=nr({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=M1(r),{filteredData:d,checkedSummary:p,isIndeterminate:v,handleAllCheckedChange:y}=Dje(r,l,n),w=W(()=>!fu(l.query)&&fu(d.value)),b=W(()=>!fu(o.default()[0].children)),{checked:k,allChecked:C,query:T}=ea(l);return t({query:T}),($,P)=>(Z(),ce("div",{class:J(m(s).b("panel"))},[ve("p",{class:J(m(s).be("panel","header"))},[re(m(Fl),{modelValue:m(C),"onUpdate:modelValue":A=>Jr(C)?C.value=A:null,indeterminate:m(v),"validate-event":!1,onChange:m(y)},{default:ue(()=>[St(ut($.title)+" ",1),ve("span",null,ut(m(p)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),ve("div",{class:J([m(s).be("panel","body"),m(s).is("with-footer",m(b))])},[$.filterable?(Z(),Fe(m(ei),{key:0,modelValue:m(T),"onUpdate:modelValue":A=>Jr(T)?T.value=A:null,class:J(m(s).be("panel","filter")),size:"default",placeholder:$.placeholder,"prefix-icon":m(SW),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):je("v-if",!0),yn(re(m(lZ),{modelValue:m(k),"onUpdate:modelValue":A=>Jr(k)?k.value=A:null,"validate-event":!1,class:J([m(s).is("filterable",$.filterable),m(s).be("panel","list")])},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(m(d),A=>(Z(),Fe(m(Fl),{key:A[m(u).key],class:J(m(s).be("panel","item")),value:A[m(u).key],disabled:A[m(u).disabled],"validate-event":!1},{default:ue(()=>{var R;return[re(i,{option:(R=$.optionRender)==null?void 0:R.call($,A)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[hr,!m(w)&&!m(fu)($.data)]]),yn(ve("p",{class:J(m(s).be("panel","empty"))},ut(m(w)?m(a)("el.transfer.noMatch"):m(a)("el.transfer.noData")),3),[[hr,m(w)||m(fu)($.data)]])],2),m(b)?(Z(),ce("p",{key:0,class:J(m(s).be("panel","footer"))},[He($.$slots,"default")],2)):je("v-if",!0)],2))}});var SB=vt(Fje,[["__file","transfer-panel.vue"]]);const zje=Se({name:"ElTransfer"}),Qje=Se({...zje,props:Km,emits:Rje,setup(e,{expose:t,emit:n}){const r=e,o=zi(),{t:i}=rr(),a=lt("transfer"),{formItem:s}=as(),l=nr({leftChecked:[],rightChecked:[]}),u=M1(r),{sourceData:d,targetData:p}=Lje(r),{onSourceCheckedChange:v,onTargetCheckedChange:y}=jje(l,n),{addToLeft:w,addToRight:b}=Bje(r,l,n),k=ee(),C=ee(),T=N=>{switch(N){case"left":k.value.query="";break;case"right":C.value.query="";break}},$=W(()=>r.buttonTexts.length===2),P=W(()=>r.titles[0]||i("el.transfer.titles.0")),A=W(()=>r.titles[1]||i("el.transfer.titles.1")),R=W(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));at(()=>r.modelValue,()=>{var N;r.validateEvent&&((N=s==null?void 0:s.validate)==null||N.call(s,"change").catch(I=>void 0))});const B=W(()=>N=>r.renderContent?r.renderContent(Yt,N):o.default?o.default({option:N}):Yt("span",N[u.value.label]||N[u.value.key]));return t({clearQuery:T,leftPanel:k,rightPanel:C}),(N,I)=>(Z(),ce("div",{class:J(m(a).b())},[re(SB,{ref_key:"leftPanel",ref:k,data:m(d),"option-render":m(B),placeholder:m(R),title:m(P),filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,"default-checked":N.leftDefaultChecked,props:r.props,onCheckedChange:m(v)},{default:ue(()=>[He(N.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),ve("div",{class:J(m(a).e("buttons"))},[re(m(no),{type:"primary",class:J([m(a).e("button"),m(a).is("with-texts",m($))]),disabled:m(fu)(l.rightChecked),onClick:m(w)},{default:ue(()=>[re(m(jt),null,{default:ue(()=>[re(m(qh))]),_:1}),m(Bo)(N.buttonTexts[0])?je("v-if",!0):(Z(),ce("span",{key:0},ut(N.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),re(m(no),{type:"primary",class:J([m(a).e("button"),m(a).is("with-texts",m($))]),disabled:m(fu)(l.leftChecked),onClick:m(b)},{default:ue(()=>[m(Bo)(N.buttonTexts[1])?je("v-if",!0):(Z(),ce("span",{key:0},ut(N.buttonTexts[1]),1)),re(m(jt),null,{default:ue(()=>[re(m(Ss))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),re(SB,{ref_key:"rightPanel",ref:C,data:m(p),"option-render":m(B),placeholder:m(R),filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,title:m(A),"default-checked":N.rightDefaultChecked,props:r.props,onCheckedChange:m(y)},{default:ue(()=>[He(N.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Wje=vt(Qje,[["__file","transfer.vue"]]);const Yje=pn(Wje),by="$treeNodeId",xB=function(e,t){!t||t[by]||Object.defineProperty(t,by,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},nD=function(e,t){return e?t[e]:t[by]},XM=(e,t,n)=>{const r=e.value.currentNode;n();const o=e.value.currentNode;r!==o&&t("current-change",o?o.data:null,o)},GM=e=>{let t=!0,n=!0,r=!0;for(let o=0,i=e.length;o<i;o++){const a=e[o];(a.checked!==!0||a.indeterminate)&&(t=!1,a.disabled||(r=!1)),(a.checked!==!1||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},P_=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=GM(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const o=e.parent;!o||o.level===0||e.store.checkStrictly||P_(o)},_x=function(e,t){const n=e.store.props,r=e.data||{},o=n[t];if(typeof o=="function")return o(r,e);if(typeof o=="string")return r[o];if(typeof o=="undefined"){const i=r[t];return i===void 0?"":i}};let Zje=0;class qg{constructor(t){this.id=Zje++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)ir(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf!="undefined"){const i=_x(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Array.isArray(this.data)||xB(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,o=t.key;o&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),o&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||xB(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=_x(this,"children")||[];for(let r=0,o=n.length;r<o;r++)this.insertChild({data:n[r]})}get label(){return _x(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return _x(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof qg)){if(!r){const o=this.getChildren(!0);o.includes(t.data)||(typeof n=="undefined"||n<0?o.push(t.data):o.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=nr(new qg(t)),t instanceof qg&&t.initialize()}t.level=this.level+1,typeof n=="undefined"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===t){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(t,n){const r=()=>{if(n){let o=this.parent;for(;o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(o=>{o.canFocus=!0})};this.shouldLoadData()?this.loadData(o=>{Array.isArray(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||P_(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,r,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:s}=GM(this.childNodes);!this.isLeaf&&!a&&s&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let v=0,y=u.length;v<y;v++){const w=u[v];o=o||t!==!1;const b=w.disabled?w.checked:o;w.setChecked(b,n,!0,o)}const{half:d,all:p}=GM(u);p||(this.checked=p,this.indeterminate=d)}};if(this.shouldLoadData()){this.loadData(()=>{l(),P_(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||P_(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let o="children";return r&&(o=r.children||"children"),n[o]===void 0&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),r={},o=[];t.forEach((i,a)=>{const s=i[by];!!s&&n.findIndex(u=>u[by]===s)>=0?r[s]={index:a,data:i}:o.push({index:a,data:i})}),this.store.lazy||n.forEach(i=>{r[i[by]]||this.removeChildByData(i)}),o.forEach(({index:i,data:a})=>{this.insertChild({data:a},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=i=>{this.childNodes=[],this.doCreateChildren(i,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,i)},o=()=>{this.loading=!1};this.store.load(this,r,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),t(r)}}reInitChecked(){this.store.checkStrictly||P_(this)}}class Uje{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)ir(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new qg({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,o=function(i){const a=i.root?i.root.childNodes:i.childNodes;if(a.forEach(s=>{s.visible=n.call(s,t,s.data,s),o(s)}),!i.visible&&a.length){let s=!0;s=!a.some(l=>l.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}!t||i.visible&&!i.isLeaf&&(!r||i.loaded)&&i.expand()};o(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof qg)return t;const n=Pn(t)?nD(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=av(n)?this.root:this.getNode(n);r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const o=n[r];o&&o.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],o=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),o(s)})};return o(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)ir(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const o=r.childNodes;for(let i=o.length-1;i>=0;i--){const a=o[i];this.remove(a.data)}for(let i=0,a=n.length;i<a;i++){const s=n[i];this.append(s,r.data)}}_setCheckedKeys(t,n=!1,r){const o=this._getAllNodes().sort((l,u)=>l.level-u.level),i=Object.create(null),a=Object.keys(r);o.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{var d;i[u.data[t]]=!0,(d=u.childNodes)!=null&&d.length&&s(u)})};for(let l=0,u=o.length;l<u;l++){const d=o[l],p=d.data[t].toString();if(!a.includes(p)){d.checked&&!i[p]&&d.setChecked(!1,!1);continue}if(d.childNodes.length&&s(d),d.isLeaf||this.checkStrictly){d.setChecked(!0,!1);continue}if(d.setChecked(!0,!0),n){d.setChecked(!1,!1);const y=function(w){w.childNodes.forEach(k=>{k.isLeaf||k.setChecked(!1,!1),y(k)})};y(d)}}}setCheckedNodes(t,n=!1){const r=this.key,o={};t.forEach(i=>{o[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,o)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,o={};t.forEach(i=>{o[i]=!0}),this._setCheckedKeys(r,n,o)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const o=this.getNode(t);o&&o.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const r=t[this.key],o=this.nodesMap[r];this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const Hje=Se({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=lt("tree"),n=Tt("NodeInstance"),r=Tt("RootTree");return()=>{const o=e.node,{data:i,store:a}=o;return e.renderContent?e.renderContent(Yt,{_self:n,node:o,data:i,store:a}):He(r.ctx.slots,"default",{node:o,data:i},()=>[Yt("span",{class:t.be("node","label")},[o.label])])}}});var Xje=vt(Hje,[["__file","tree-node-content.vue"]]);function rH(e){const t=Tt("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),Wn("TreeNodeMap",n),{broadcastExpanded:r=>{if(!!e.accordion)for(const o of n.children)o.treeNodeExpand(r)}}}const oH=Symbol("dragEvents");function Gje({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const i=lt("tree"),a=ee({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Wn(oH,{treeNodeDragStart:({event:d,treeNode:p})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(p.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=p,t.emit("node-drag-start",p.node,d)},treeNodeDragOver:({event:d,treeNode:p})=>{const v=p,y=a.value.dropNode;y&&y.node.id!==v.node.id&&os(y.$el,i.is("drop-inner"));const w=a.value.draggingNode;if(!w||!v)return;let b=!0,k=!0,C=!0,T=!0;typeof e.allowDrop=="function"&&(b=e.allowDrop(w.node,v.node,"prev"),T=k=e.allowDrop(w.node,v.node,"inner"),C=e.allowDrop(w.node,v.node,"next")),d.dataTransfer.dropEffect=k||b||C?"move":"none",(b||k||C)&&(y==null?void 0:y.node.id)!==v.node.id&&(y&&t.emit("node-drag-leave",w.node,y.node,d),t.emit("node-drag-enter",w.node,v.node,d)),b||k||C?a.value.dropNode=v:a.value.dropNode=null,v.node.nextSibling===w.node&&(C=!1),v.node.previousSibling===w.node&&(b=!1),v.node.contains(w.node,!1)&&(k=!1),(w.node===v.node||w.node.contains(v.node))&&(b=!1,k=!1,C=!1);const $=v.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),P=n.value.getBoundingClientRect();let A;const R=b?k?.25:C?.45:1:-1,B=C?k?.75:b?.55:0:1;let N=-9999;const I=d.clientY-$.top;I<$.height*R?A="before":I>$.height*B?A="after":k?A="inner":A="none";const D=v.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),L=r.value;A==="before"?N=D.top-P.top:A==="after"&&(N=D.bottom-P.top),L.style.top=`${N}px`,L.style.left=`${D.right-P.left}px`,A==="inner"?gu(v.$el,i.is("drop-inner")):os(v.$el,i.is("drop-inner")),a.value.showDropIndicator=A==="before"||A==="after",a.value.allowDrop=a.value.showDropIndicator||T,a.value.dropType=A,t.emit("node-drag-over",w.node,v.node,d)},treeNodeDragEnd:d=>{const{draggingNode:p,dropType:v,dropNode:y}=a.value;if(d.preventDefault(),d.dataTransfer.dropEffect="move",p&&y){const w={data:p.node.data};v!=="none"&&p.node.remove(),v==="before"?y.node.parent.insertBefore(w,y.node):v==="after"?y.node.parent.insertAfter(w,y.node):v==="inner"&&y.node.insertChild(w),v!=="none"&&(o.value.registerNode(w),o.value.key&&p.node.eachNode(b=>{var k;(k=o.value.nodesMap[b.data[o.value.key]])==null||k.setChecked(b.checked,!o.value.checkStrictly)})),os(y.$el,i.is("drop-inner")),t.emit("node-drag-end",p.node,y.node,v,d),v!=="none"&&t.emit("node-drop",p.node,y.node,v,d)}p&&!y&&t.emit("node-drag-end",p.node,null,v,d),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const qje=Se({name:"ElTreeNode",components:{ElCollapseTransition:DC,ElCheckbox:Fl,NodeContent:Xje,ElIcon:jt,Loading:cf},props:{node:{type:qg,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=lt("tree"),{broadcastExpanded:r}=rH(e),o=Tt("RootTree"),i=ee(!1),a=ee(!1),s=ee(null),l=ee(null),u=ee(null),d=Tt(oH),p=Cn();Wn("NodeInstance",p),e.node.expanded&&(i.value=!0,a.value=!0);const v=o.props.props.children||"children";at(()=>{const I=e.node.data[v];return I&&[...I]},()=>{e.node.updateChildren()}),at(()=>e.node.indeterminate,I=>{b(e.node.checked,I)}),at(()=>e.node.checked,I=>{b(I,e.node.indeterminate)}),at(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),at(()=>e.node.expanded,I=>{zt(()=>i.value=I),I&&(a.value=!0)});const y=I=>nD(o.props.nodeKey,I.data),w=I=>{const D=e.props.class;if(!D)return{};let L;if(nn(D)){const{data:z}=I;L=D(z,I)}else L=D;return Gt(L)?{[L]:!0}:L},b=(I,D)=>{(s.value!==I||l.value!==D)&&o.ctx.emit("check-change",e.node.data,I,D),s.value=I,l.value=D},k=I=>{XM(o.store,o.ctx.emit,()=>o.store.value.setCurrentNode(e.node)),o.currentNode.value=e.node,o.props.expandOnClickNode&&T(),o.props.checkOnClickNode&&!e.node.disabled&&$(null,{target:{checked:!e.node.checked}}),o.ctx.emit("node-click",e.node.data,e.node,p,I)},C=I=>{o.instance.vnode.props.onNodeContextmenu&&(I.stopPropagation(),I.preventDefault()),o.ctx.emit("node-contextmenu",I,e.node.data,e.node,p)},T=()=>{e.node.isLeaf||(i.value?(o.ctx.emit("node-collapse",e.node.data,e.node,p),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,p)))},$=(I,D)=>{e.node.setChecked(D.target.checked,!o.props.checkStrictly),zt(()=>{const L=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:o,expanded:i,childNodeRendered:a,oldChecked:s,oldIndeterminate:l,getNodeKey:y,getNodeClass:w,handleSelectChange:b,handleClick:k,handleContextMenu:C,handleExpandIconClick:T,handleCheckChange:$,handleChildNodeExpand:(I,D,L)=>{r(D),o.ctx.emit("node-expand",I,D,L)},handleDragStart:I=>{!o.props.draggable||d.treeNodeDragStart({event:I,treeNode:e})},handleDragOver:I=>{I.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:I,treeNode:{$el:u.value,node:e.node}})},handleDrop:I=>{I.preventDefault()},handleDragEnd:I=>{!o.props.draggable||d.treeNodeDragEnd(I)},CaretRight:jI}}});function Kje(e,t,n,r,o,i){const a=Tn("el-icon"),s=Tn("el-checkbox"),l=Tn("loading"),u=Tn("node-content"),d=Tn("el-tree-node"),p=Tn("el-collapse-transition");return yn((Z(),ce("div",{ref:"node$",class:J([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:tn(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:tn(e.handleDragStart,["stop"]),onDragover:tn(e.handleDragOver,["stop"]),onDragend:tn(e.handleDragEnd,["stop"]),onDrop:tn(e.handleDrop,["stop"])},[ve("div",{class:J(e.ns.be("node","content")),style:Vt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(Z(),Fe(a,{key:0,class:J([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:tn(e.handleExpandIconClick,["stop"])},{default:ue(()=>[(Z(),Fe(Dn(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):je("v-if",!0),e.showCheckbox?(Z(),Fe(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:tn(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):je("v-if",!0),e.node.loading?(Z(),Fe(a,{key:2,class:J([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ue(()=>[re(l)]),_:1},8,["class"])):je("v-if",!0),re(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),re(p,null,{default:ue(()=>[!e.renderAfterExpand||e.childNodeRendered?yn((Z(),ce("div",{key:0,class:J(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(Z(!0),ce(Pt,null,_n(e.node.childNodes,v=>(Z(),Fe(d,{key:e.getNodeKey(v),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:v,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded"])),[[hr,e.expanded]]):je("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[hr,e.node.visible]])}var Jje=vt(qje,[["render",Kje],["__file","tree-node.vue"]]);function e8e({el$:e},t){const n=lt("tree"),r=Kr([]),o=Kr([]);vn(()=>{a()}),gc(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),at(o,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),Ar(e,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const d=r.value.indexOf(l);let p;if([Qt.up,Qt.down].includes(u)){if(s.preventDefault(),u===Qt.up){p=d===-1?0:d!==0?d-1:r.value.length-1;const y=p;for(;!t.value.getNode(r.value[p].dataset.key).canFocus;){if(p--,p===y){p=-1;break}p<0&&(p=r.value.length-1)}}else{p=d===-1?0:d<r.value.length-1?d+1:0;const y=p;for(;!t.value.getNode(r.value[p].dataset.key).canFocus;){if(p++,p===y){p=-1;break}p>=r.value.length&&(p=0)}}p!==-1&&r.value[p].focus()}[Qt.left,Qt.right].includes(u)&&(s.preventDefault(),l.click());const v=l.querySelector('[type="checkbox"]');[Qt.enter,Qt.space].includes(u)&&v&&(s.preventDefault(),v.click())});const a=()=>{var s;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const t8e=Se({name:"ElTree",components:{ElTreeNode:Jje},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Fr}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=rr(),r=lt("tree"),o=Tt(y0,null),i=ee(new Uje({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));i.value.initialize();const a=ee(i.value.root),s=ee(null),l=ee(null),u=ee(null),{broadcastExpanded:d}=rH(e),{dragState:p}=Gje({props:e,ctx:t,el$:l,dropIndicator$:u,store:i});e8e({el$:l},i);const v=W(()=>{const{childNodes:X}=a.value,V=o?o.hasFilteredOptions!==0:!1;return(!X||X.length===0||X.every(({visible:G})=>!G))&&!V});at(()=>e.currentNodeKey,X=>{i.value.setCurrentNodeKey(X)}),at(()=>e.defaultCheckedKeys,X=>{i.value.setDefaultCheckedKey(X)}),at(()=>e.defaultExpandedKeys,X=>{i.value.setDefaultExpandedKeys(X)}),at(()=>e.data,X=>{i.value.setData(X)},{deep:!0}),at(()=>e.checkStrictly,X=>{i.value.checkStrictly=X});const y=X=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(X)},w=X=>nD(e.nodeKey,X.data),b=X=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const V=i.value.getNode(X);if(!V)return[];const G=[V.data];let se=V.parent;for(;se&&se!==a.value;)G.push(se.data),se=se.parent;return G.reverse()},k=(X,V)=>i.value.getCheckedNodes(X,V),C=X=>i.value.getCheckedKeys(X),T=()=>{const X=i.value.getCurrentNode();return X?X.data:null},$=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const X=T();return X?X[e.nodeKey]:null},P=(X,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(X,V)},A=(X,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(X,V)},R=(X,V,G)=>{i.value.setChecked(X,V,G)},B=()=>i.value.getHalfCheckedNodes(),N=()=>i.value.getHalfCheckedKeys(),I=(X,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");XM(i,t.emit,()=>{d(X),i.value.setUserCurrentNode(X,V)})},D=(X,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");XM(i,t.emit,()=>{d(),i.value.setCurrentNodeKey(X,V)})},L=X=>i.value.getNode(X),z=X=>{i.value.remove(X)},q=(X,V)=>{i.value.append(X,V)},ae=(X,V)=>{i.value.insertBefore(X,V)},K=(X,V)=>{i.value.insertAfter(X,V)},H=(X,V,G)=>{d(V),t.emit("node-expand",X,V,G)},ne=(X,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(X,V)};return Wn("RootTree",{ctx:t,props:e,store:i,root:a,currentNode:s,instance:Cn()}),Wn(hf,void 0),{ns:r,store:i,root:a,currentNode:s,dragState:p,el$:l,dropIndicator$:u,isEmpty:v,filter:y,getNodeKey:w,getNodePath:b,getCheckedNodes:k,getCheckedKeys:C,getCurrentNode:T,getCurrentKey:$,setCheckedNodes:P,setCheckedKeys:A,setChecked:R,getHalfCheckedNodes:B,getHalfCheckedKeys:N,setCurrentNode:I,setCurrentKey:D,t:n,getNode:L,remove:z,append:q,insertBefore:ae,insertAfter:K,handleNodeExpand:H,updateKeyChildren:ne}}});function n8e(e,t,n,r,o,i){const a=Tn("el-tree-node");return Z(),ce("div",{ref:"el$",class:J([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(Z(!0),ce(Pt,null,_n(e.root.childNodes,s=>(Z(),Fe(a,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(Z(),ce("div",{key:0,class:J(e.ns.e("empty-block"))},[He(e.$slots,"empty",{},()=>{var s;return[ve("span",{class:J(e.ns.e("empty-text"))},ut((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):je("v-if",!0),yn(ve("div",{ref:"dropIndicator$",class:J(e.ns.e("drop-indicator"))},null,2),[[hr,e.dragState.showDropIndicator]])],2)}var r8e=vt(t8e,[["render",n8e],["__file","tree.vue"]]);const t2=pn(r8e),o8e=(e,{attrs:t,emit:n},{select:r,tree:o,key:i})=>{const a=lt("tree-select");return at(()=>e.data,()=>{e.filterable&&zt(()=>{var l,u;(u=o.value)==null||u.filter((l=r.value)==null?void 0:l.states.inputValue)})},{flush:"post"}),{...pu(ea(e),Object.keys(dc.props)),...t,"onUpdate:modelValue":l=>n(En,l),valueKey:i,popperClass:W(()=>{const l=[a.e("popper")];return e.popperClass&&l.push(e.popperClass),l.join(" ")}),filterMethod:(l="")=>{var u;e.filterMethod?e.filterMethod(l):e.remoteMethod?e.remoteMethod(l):(u=o.value)==null||u.filter(l)}}},i8e=Se({extends:op,setup(e,t){const n=op.setup(e,t);delete n.selectOptionClick;const r=Cn().proxy;return zt(()=>{n.select.states.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),at(()=>t.attrs.visible,o=>{n.states.visible=o},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function qM(e){return e||e===0}function rD(e){return Array.isArray(e)&&e.length}function __(e){return Array.isArray(e)?e:qM(e)?[e]:[]}function fk(e,t,n,r,o){for(let i=0;i<e.length;i++){const a=e[i];if(t(a,i,e,o))return r?r(a,i,e,o):a;{const s=n(a);if(rD(s)){const l=fk(s,t,n,r,a);if(l)return l}}}}function KM(e,t,n,r){for(let o=0;o<e.length;o++){const i=e[o];t(i,o,e,r);const a=n(i);rD(a)&&KM(a,t,n,i)}}const a8e=(e,{attrs:t,slots:n,emit:r},{select:o,tree:i,key:a})=>{at(()=>e.modelValue,()=>{e.showCheckbox&&zt(()=>{const p=i.value;p&&!rs(p.getCheckedKeys(),__(e.modelValue))&&p.setCheckedKeys(__(e.modelValue))})},{immediate:!0,deep:!0});const s=W(()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(p,v)=>{var y;const w=s.value[p];return nn(w)?w(v,(y=i.value)==null?void 0:y.getNode(l("value",v))):v[w]},u=__(e.modelValue).map(p=>fk(e.data||[],v=>l("value",v)===p,v=>l("children",v),(v,y,w,b)=>b&&l("value",b))).filter(p=>qM(p)),d=W(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const p=[];return KM(e.data.concat(e.cacheData),v=>{const y=l("value",v);p.push({value:y,currentLabel:l("label",v),isDisabled:l("disabled",v)})},v=>l("children",v)),p});return{...pu(ea(e),Object.keys(t2.props)),...t,nodeKey:a,expandOnClickNode:W(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:W(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(p,{node:v,data:y,store:w})=>p(i8e,{value:l("value",y),label:l("label",y),disabled:l("disabled",y),visible:v.visible},e.renderContent?()=>e.renderContent(p,{node:v,data:y,store:w}):n.default?()=>n.default({node:v,data:y,store:w}):void 0),filterNodeMethod:(p,v,y)=>e.filterNodeMethod?e.filterNodeMethod(p,v,y):p?new RegExp(RI(p),"i").test(l("label",v)||""):!0,onNodeClick:(p,v,y)=>{var w,b,k,C;if((w=t.onNodeClick)==null||w.call(t,p,v,y),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!l("disabled",p)){const T=(b=o.value)==null?void 0:b.states.options.get(l("value",p));(k=o.value)==null||k.handleOptionSelect(T)}}else e.expandOnClickNode&&y.proxy.handleExpandIconClick();(C=o.value)==null||C.focus()}},onCheck:(p,v)=>{var y;if(!e.showCheckbox)return;const w=l("value",p),b={};KM([i.value.store.root],$=>b[$.key]=$,$=>$.childNodes);const k=v.checkedKeys,C=e.multiple?__(e.modelValue).filter($=>!($ in b)&&!k.includes($)):[],T=C.concat(k);if(e.checkStrictly)r(En,e.multiple?T:T.includes(w)?w:void 0);else if(e.multiple)r(En,C.concat(i.value.getCheckedKeys(!0)));else{const $=fk([p],R=>!rD(l("children",R))&&!l("disabled",R),R=>l("children",R)),P=$?l("value",$):void 0,A=qM(e.modelValue)&&!!fk([p],R=>l("value",R)===e.modelValue,R=>l("children",R));r(En,P===e.modelValue||A?void 0:P)}zt(()=>{var $;const P=__(e.modelValue);i.value.setCheckedKeys(P),($=t.onCheck)==null||$.call(t,p,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})}),(y=o.value)==null||y.focus()},cacheOptions:d}};var s8e=Se({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Tt(y0);return at(()=>e.data,()=>{var n;e.data.forEach(o=>{t.states.cachedOptions.has(o.value)||t.states.cachedOptions.set(o.value,o)});const r=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];tr&&!Array.from(r).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const l8e=Se({name:"ElTreeSelect",inheritAttrs:!1,props:{...dc.props,...t2.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,o=ee(),i=ee(),a=W(()=>e.nodeKey||e.valueKey||"value"),s=o8e(e,t,{select:o,tree:i,key:a}),{cacheOptions:l,...u}=a8e(e,t,{select:o,tree:i,key:a}),d=nr({});return r(d),vn(()=>{Object.assign(d,{...pu(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pu(o.value,["focus","blur"])})}),()=>Yt(dc,nr({...s,ref:p=>o.value=p}),{...n,default:()=>[Yt(s8e,{data:l.value}),Yt(t2,nr({...u,ref:p=>i.value=p}))]})}});var u8e=vt(l8e,[["__file","tree-select.vue"]]);const c8e=pn(u8e),oD=Symbol(),f8e={key:-1,level:-1,data:{}};var $_=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))($_||{}),JM=(e=>(e.ADD="add",e.DELETE="delete",e))(JM||{});const iH={type:Number,default:26},d8e=pt({data:{type:Ie(Array),default:()=>Oo([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:Ie(Object),default:()=>Oo({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Ie(Array),default:()=>Oo([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Ie(Array),default:()=>Oo([])},indent:{type:Number,default:16},itemSize:iH,icon:{type:Fr},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:Ie([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:Ie(Function)},perfMode:{type:Boolean,default:!0}}),h8e=pt({node:{type:Ie(Object),default:()=>Oo(f8e)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:iH}),p8e=pt({node:{type:Ie(Object),required:!0}}),aH="node-click",sH="node-expand",lH="node-collapse",uH="current-change",cH="check",fH="check-change",dH="node-contextmenu",g8e={[aH]:(e,t,n)=>e&&t&&n,[sH]:(e,t)=>e&&t,[lH]:(e,t)=>e&&t,[uH]:(e,t)=>e&&t,[cH]:(e,t)=>e&&t,[fH]:(e,t)=>e&&typeof t=="boolean",[dH]:(e,t,n)=>e&&t&&n},v8e={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function m8e(e,t){const n=ee(new Set),r=ee(new Set),{emit:o}=Cn();at([()=>t.value,()=>e.defaultCheckedKeys],()=>zt(()=>{T(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:$,maxLevel:P}=t.value,A=n.value,R=new Set;for(let B=P-1;B>=1;--B){const N=$.get(B);!N||N.forEach(I=>{const D=I.children;if(D){let L=!0,z=!1;for(const q of D){const ae=q.key;if(A.has(ae))z=!0;else if(R.has(ae)){L=!1,z=!0;break}else L=!1}L?A.add(I.key):z?(R.add(I.key),A.delete(I.key)):(A.delete(I.key),R.delete(I.key))}})}r.value=R},a=$=>n.value.has($.key),s=$=>r.value.has($.key),l=($,P,A=!0)=>{const R=n.value,B=(N,I)=>{R[I?JM.ADD:JM.DELETE](N.key);const D=N.children;!e.checkStrictly&&D&&D.forEach(L=>{L.disabled||B(L,I)})};B($,P),i(),A&&u($,P)},u=($,P)=>{const{checkedNodes:A,checkedKeys:R}=w(),{halfCheckedNodes:B,halfCheckedKeys:N}=b();o(cH,$.data,{checkedKeys:R,checkedNodes:A,halfCheckedKeys:N,halfCheckedNodes:B}),o(fH,$.data,P)};function d($=!1){return w($).checkedKeys}function p($=!1){return w($).checkedNodes}function v(){return b().halfCheckedKeys}function y(){return b().halfCheckedNodes}function w($=!1){const P=[],A=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:R}=t.value;n.value.forEach(B=>{const N=R.get(B);N&&(!$||$&&N.isLeaf)&&(A.push(B),P.push(N.data))})}return{checkedKeys:A,checkedNodes:P}}function b(){const $=[],P=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:A}=t.value;r.value.forEach(R=>{const B=A.get(R);B&&(P.push(R),$.push(B.data))})}return{halfCheckedNodes:$,halfCheckedKeys:P}}function k($){n.value.clear(),r.value.clear(),zt(()=>{T($)})}function C($,P){if((t==null?void 0:t.value)&&e.showCheckbox){const A=t.value.treeNodeMap.get($);A&&l(A,P,!1)}}function T($){if(t!=null&&t.value){const{treeNodeMap:P}=t.value;if(e.showCheckbox&&P&&$)for(const A of $){const R=P.get(A);R&&!a(R)&&l(R,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:a,isIndeterminate:s,getCheckedKeys:d,getCheckedNodes:p,getHalfCheckedKeys:v,getHalfCheckedNodes:y,setChecked:C,setCheckedKeys:k}}function y8e(e,t){const n=ee(new Set([])),r=ee(new Set([])),o=W(()=>nn(e.filterMethod));function i(s){var l;if(!o.value)return;const u=new Set,d=r.value,p=n.value,v=[],y=((l=t.value)==null?void 0:l.treeNodes)||[],w=e.filterMethod;p.clear();function b(k){k.forEach(C=>{v.push(C),w!=null&&w(s,C.data)?v.forEach($=>{u.add($.key)}):C.isLeaf&&p.add(C.key);const T=C.children;if(T&&b(T),!C.isLeaf){if(!u.has(C.key))p.add(C.key);else if(T){let $=!0;for(const P of T)if(!p.has(P.key)){$=!1;break}$?d.add(C.key):d.delete(C.key)}}v.pop()})}return b(y),u}function a(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:a}}function b8e(e,t){const n=ee(new Set(e.defaultExpandedKeys)),r=ee(),o=Kr(),i=ee();at(()=>e.currentNodeKey,we=>{r.value=we},{immediate:!0}),at(()=>e.data,we=>{$e(we)},{immediate:!0});const{isIndeterminate:a,isChecked:s,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:v,setChecked:y,setCheckedKeys:w}=m8e(e,o),{doFilter:b,hiddenNodeKeySet:k,isForceHiddenExpandIcon:C}=y8e(e,o),T=W(()=>{var we;return((we=e.props)==null?void 0:we.value)||$_.KEY}),$=W(()=>{var we;return((we=e.props)==null?void 0:we.children)||$_.CHILDREN}),P=W(()=>{var we;return((we=e.props)==null?void 0:we.disabled)||$_.DISABLED}),A=W(()=>{var we;return((we=e.props)==null?void 0:we.label)||$_.LABEL}),R=W(()=>{const we=n.value,fe=k.value,oe=[],ke=o.value&&o.value.treeNodes||[];function We(){const et=[];for(let Ve=ke.length-1;Ve>=0;--Ve)et.push(ke[Ve]);for(;et.length;){const Ve=et.pop();if(!!Ve&&(fe.has(Ve.key)||oe.push(Ve),we.has(Ve.key))){const Me=Ve.children;if(Me){const Ke=Me.length;for(let be=Ke-1;be>=0;--be)et.push(Me[be])}}}}return We(),oe}),B=W(()=>R.value.length>0);function N(we){const fe=new Map,oe=new Map;let ke=1;function We(Ve,Me=1,Ke=void 0){var be;const qe=[];for(const ct of Ve){const Je=L(ct),Xe={level:Me,key:Je,data:ct};Xe.label=q(ct),Xe.parent=Ke;const gt=D(ct);Xe.disabled=z(ct),Xe.isLeaf=!gt||gt.length===0,gt&&gt.length&&(Xe.children=We(gt,Me+1,Xe)),qe.push(Xe),fe.set(Je,Xe),oe.has(Me)||oe.set(Me,[]),(be=oe.get(Me))==null||be.push(Xe)}return Me>ke&&(ke=Me),qe}const et=We(we);return{treeNodeMap:fe,levelTreeNodeMap:oe,maxLevel:ke,treeNodes:et}}function I(we){const fe=b(we);fe&&(n.value=fe)}function D(we){return we[$.value]}function L(we){return we?we[T.value]:""}function z(we){return we[P.value]}function q(we){return we[A.value]}function ae(we){n.value.has(we.key)?G(we):V(we)}function K(we){n.value=new Set(we)}function H(we,fe){t(aH,we.data,we,fe),ne(we),e.expandOnClickNode&&ae(we),e.showCheckbox&&e.checkOnClickNode&&!we.disabled&&l(we,!s(we),!0)}function ne(we){pe(we)||(r.value=we.key,t(uH,we.data,we))}function X(we,fe){l(we,fe)}function V(we){const fe=n.value;if(o.value&&e.accordion){const{treeNodeMap:oe}=o.value;fe.forEach(ke=>{const We=oe.get(ke);we&&we.level===(We==null?void 0:We.level)&&fe.delete(ke)})}fe.add(we.key),t(sH,we.data,we)}function G(we){n.value.delete(we.key),t(lH,we.data,we)}function se(we){return n.value.has(we.key)}function he(we){return!!we.disabled}function pe(we){const fe=r.value;return fe!==void 0&&fe===we.key}function Be(){var we,fe;if(!!r.value)return(fe=(we=o.value)==null?void 0:we.treeNodeMap.get(r.value))==null?void 0:fe.data}function De(){return r.value}function ze(we){r.value=we}function $e(we){zt(()=>o.value=N(we))}function _e(we){var fe;const oe=Pn(we)?L(we):we;return(fe=o.value)==null?void 0:fe.treeNodeMap.get(oe)}function me(we,fe="auto"){const oe=_e(we);oe&&i.value&&i.value.scrollToItem(R.value.indexOf(oe),fe)}function Re(we){var fe;(fe=i.value)==null||fe.scrollTo(we)}return{tree:o,flattenTree:R,isNotEmpty:B,listRef:i,getKey:L,getChildren:D,toggleExpand:ae,toggleCheckbox:l,isExpanded:se,isChecked:s,isIndeterminate:a,isDisabled:he,isCurrent:pe,isForceHiddenExpandIcon:C,handleNodeClick:H,handleNodeCheck:X,getCurrentNode:Be,getCurrentKey:De,setCurrentKey:ze,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:v,setChecked:y,setCheckedKeys:w,filter:I,setData:$e,getNode:_e,expandNode:V,collapseNode:G,setExpandedKeys:K,scrollToNode:me,scrollTo:Re}}var _8e=Se({name:"ElTreeNodeContent",props:p8e,setup(e){const t=Tt(oD),n=lt("tree");return()=>{const r=e.node,{data:o}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:o}):Yt("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const O8e=Se({name:"ElTreeNode"}),w8e=Se({...O8e,props:h8e,emits:v8e,setup(e,{emit:t}){const n=e,r=Tt(oD),o=lt("tree"),i=W(()=>{var p;return(p=r==null?void 0:r.props.indent)!=null?p:16}),a=W(()=>{var p;return(p=r==null?void 0:r.props.icon)!=null?p:jI}),s=p=>{t("click",n.node,p)},l=()=>{t("toggle",n.node)},u=p=>{t("check",n.node,p)},d=p=>{var v,y,w,b;(w=(y=(v=r==null?void 0:r.instance)==null?void 0:v.vnode)==null?void 0:y.props)!=null&&w.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),r==null||r.ctx.emit(dH,p,(b=n.node)==null?void 0:b.data,n.node)};return(p,v)=>{var y,w,b;return Z(),ce("div",{ref:"node$",class:J([m(o).b("node"),m(o).is("expanded",p.expanded),m(o).is("current",p.current),m(o).is("focusable",!p.disabled),m(o).is("checked",!p.disabled&&p.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":p.expanded,"aria-disabled":p.disabled,"aria-checked":p.checked,"data-key":(y=p.node)==null?void 0:y.key,onClick:tn(s,["stop"]),onContextmenu:d},[ve("div",{class:J(m(o).be("node","content")),style:Vt({paddingLeft:`${(p.node.level-1)*m(i)}px`,height:p.itemSize+"px"})},[m(a)?(Z(),Fe(m(jt),{key:0,class:J([m(o).is("leaf",!!((w=p.node)!=null&&w.isLeaf)),m(o).is("hidden",p.hiddenExpandIcon),{expanded:!((b=p.node)!=null&&b.isLeaf)&&p.expanded},m(o).be("node","expand-icon")]),onClick:tn(l,["stop"])},{default:ue(()=>[(Z(),Fe(Dn(m(a))))]),_:1},8,["class","onClick"])):je("v-if",!0),p.showCheckbox?(Z(),Fe(m(Fl),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:u,onClick:tn(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):je("v-if",!0),re(m(_8e),{node:p.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick"])}}});var S8e=vt(w8e,[["__file","tree-node.vue"]]);const x8e=Se({name:"ElTreeV2"}),k8e=Se({...x8e,props:d8e,emits:g8e,setup(e,{expose:t,emit:n}){const r=e,o=zi(),i=W(()=>r.itemSize);Wn(oD,{ctx:{emit:n,slots:o},props:r,instance:Cn()}),Wn(hf,void 0);const{t:a}=rr(),s=lt("tree"),{flattenTree:l,isNotEmpty:u,listRef:d,toggleExpand:p,isExpanded:v,isIndeterminate:y,isChecked:w,isDisabled:b,isCurrent:k,isForceHiddenExpandIcon:C,handleNodeClick:T,handleNodeCheck:$,toggleCheckbox:P,getCurrentNode:A,getCurrentKey:R,setCurrentKey:B,getCheckedKeys:N,getCheckedNodes:I,getHalfCheckedKeys:D,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:ae,setData:K,getNode:H,expandNode:ne,collapseNode:X,setExpandedKeys:V,scrollToNode:G,scrollTo:se}=b8e(r,n);return t({toggleCheckbox:P,getCurrentNode:A,getCurrentKey:R,setCurrentKey:B,getCheckedKeys:N,getCheckedNodes:I,getHalfCheckedKeys:D,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:ae,setData:K,getNode:H,expandNode:ne,collapseNode:X,setExpandedKeys:V,scrollToNode:G,scrollTo:se}),(he,pe)=>{var Be;return Z(),ce("div",{class:J([m(s).b(),{[m(s).m("highlight-current")]:he.highlightCurrent}]),role:"tree"},[m(u)?(Z(),Fe(m(vU),{key:0,ref_key:"listRef",ref:d,"class-name":m(s).b("virtual-list"),data:m(l),total:m(l).length,height:he.height,"item-size":m(i),"perf-mode":he.perfMode},{default:ue(({data:De,index:ze,style:$e})=>[(Z(),Fe(S8e,{key:De[ze].key,style:Vt($e),node:De[ze],expanded:m(v)(De[ze]),"show-checkbox":he.showCheckbox,checked:m(w)(De[ze]),indeterminate:m(y)(De[ze]),"item-size":m(i),disabled:m(b)(De[ze]),current:m(k)(De[ze]),"hidden-expand-icon":m(C)(De[ze]),onClick:m(T),onToggle:m(p),onCheck:m($)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(Z(),ce("div",{key:1,class:J(m(s).e("empty-block"))},[ve("span",{class:J(m(s).e("empty-text"))},ut((Be=he.emptyText)!=null?Be:m(a)("el.tree.emptyText")),3)],2))],2)}}});var C8e=vt(k8e,[["__file","tree.vue"]]);const E8e=pn(C8e),hH=Symbol("uploadContextKey"),T8e="ElUpload";class P8e extends Error{constructor(t,n,r,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=o}}function kB(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new P8e(r,n.status,t.method,e)}function $8e(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const A8e=e=>{typeof XMLHttpRequest=="undefined"&&$i(T8e,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const a=i;a.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(a)});const r=new FormData;if(e.data)for(const[i,a]of Object.entries(e.data))xt(a)&&a.length?r.append(i,...a):r.append(i,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(kB(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(kB(n,e,t));e.onSuccess($8e(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((i,a)=>t.setRequestHeader(a,i));else for(const[i,a]of Object.entries(o))Vi(a)||t.setRequestHeader(i,String(a));return t.send(r),t},pH=["text","picture","picture-card"];let M8e=1;const eR=()=>Date.now()+M8e++,gH=pt({action:{type:String,default:"#"},headers:{type:Ie(Object)},method:{type:String,default:"post"},data:{type:Ie([Object,Function,Promise]),default:()=>Oo({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Ie(Array),default:()=>Oo([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:pH,default:"text"},httpRequest:{type:Ie(Function),default:A8e},disabled:Boolean,limit:Number}),R8e=pt({...gH,beforeUpload:{type:Ie(Function),default:Br},beforeRemove:{type:Ie(Function)},onRemove:{type:Ie(Function),default:Br},onChange:{type:Ie(Function),default:Br},onPreview:{type:Ie(Function),default:Br},onSuccess:{type:Ie(Function),default:Br},onProgress:{type:Ie(Function),default:Br},onError:{type:Ie(Function),default:Br},onExceed:{type:Ie(Function),default:Br},crossorigin:{type:Ie(String)}}),N8e=pt({files:{type:Ie(Array),default:()=>Oo([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Ie(Function),default:Br},listType:{type:String,values:pH,default:"text"},crossorigin:{type:Ie(String)}}),I8e={remove:e=>!!e},D8e=Se({name:"ElUploadList"}),j8e=Se({...D8e,props:N8e,emits:I8e,setup(e,{emit:t}){const n=e,{t:r}=rr(),o=lt("upload"),i=lt("icon"),a=lt("list"),s=Rs(),l=ee(!1),u=W(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",n.disabled)]),d=p=>{t("remove",p)};return(p,v)=>(Z(),Fe(Nz,{tag:"ul",class:J(m(u)),name:m(a).b()},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(p.files,(y,w)=>(Z(),ce("li",{key:y.uid||y.name,class:J([m(o).be("list","item"),m(o).is(y.status),{focusing:l.value}]),tabindex:"0",onKeydown:Vr(b=>!m(s)&&d(y),["delete"]),onFocus:b=>l.value=!0,onBlur:b=>l.value=!1,onClick:b=>l.value=!1},[He(p.$slots,"default",{file:y,index:w},()=>[p.listType==="picture"||y.status!=="uploading"&&p.listType==="picture-card"?(Z(),ce("img",{key:0,class:J(m(o).be("list","item-thumbnail")),src:y.url,crossorigin:p.crossorigin,alt:""},null,10,["src","crossorigin"])):je("v-if",!0),y.status==="uploading"||p.listType!=="picture-card"?(Z(),ce("div",{key:1,class:J(m(o).be("list","item-info"))},[ve("a",{class:J(m(o).be("list","item-name")),onClick:tn(b=>p.handlePreview(y),["prevent"])},[re(m(jt),{class:J(m(i).m("document"))},{default:ue(()=>[re(m(w1e))]),_:1},8,["class"]),ve("span",{class:J(m(o).be("list","item-file-name")),title:y.name},ut(y.name),11,["title"])],10,["onClick"]),y.status==="uploading"?(Z(),Fe(m(sU),{key:0,type:p.listType==="picture-card"?"circle":"line","stroke-width":p.listType==="picture-card"?6:2,percentage:Number(y.percentage),style:Vt(p.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):je("v-if",!0)],2)):je("v-if",!0),ve("label",{class:J(m(o).be("list","item-status-label"))},[p.listType==="text"?(Z(),Fe(m(jt),{key:0,class:J([m(i).m("upload-success"),m(i).m("circle-check")])},{default:ue(()=>[re(m(LI))]),_:1},8,["class"])):["picture-card","picture"].includes(p.listType)?(Z(),Fe(m(jt),{key:1,class:J([m(i).m("upload-success"),m(i).m("check")])},{default:ue(()=>[re(m(h0))]),_:1},8,["class"])):je("v-if",!0)],2),m(s)?je("v-if",!0):(Z(),Fe(m(jt),{key:2,class:J(m(i).m("close")),onClick:b=>d(y)},{default:ue(()=>[re(m(el))]),_:2},1032,["class","onClick"])),je(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),je(" This is a bug which needs to be fixed "),je(" TODO: Fix the incorrect navigation interaction "),m(s)?je("v-if",!0):(Z(),ce("i",{key:3,class:J(m(i).m("close-tip"))},ut(m(r)("el.upload.deleteTip")),3)),p.listType==="picture-card"?(Z(),ce("span",{key:4,class:J(m(o).be("list","item-actions"))},[ve("span",{class:J(m(o).be("list","item-preview")),onClick:b=>p.handlePreview(y)},[re(m(jt),{class:J(m(i).m("zoom-in"))},{default:ue(()=>[re(m(CW))]),_:1},8,["class"])],10,["onClick"]),m(s)?je("v-if",!0):(Z(),ce("span",{key:0,class:J(m(o).be("list","item-delete")),onClick:b=>d(y)},[re(m(jt),{class:J(m(i).m("delete"))},{default:ue(()=>[re(m(_W))]),_:1},8,["class"])],10,["onClick"]))],2)):je("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),He(p.$slots,"append")]),_:3},8,["class","name"]))}});var CB=vt(j8e,[["__file","upload-list.vue"]]);const L8e=pt({disabled:{type:Boolean,default:!1}}),B8e={file:e=>xt(e)},vH="ElUploadDrag",V8e=Se({name:vH}),F8e=Se({...V8e,props:L8e,emits:B8e,setup(e,{emit:t}){Tt(hH)||$i(vH,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=lt("upload"),o=ee(!1),i=Rs(),a=l=>{if(i.value)return;o.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files);t("file",u)},s=()=>{i.value||(o.value=!0)};return(l,u)=>(Z(),ce("div",{class:J([m(r).b("dragger"),m(r).is("dragover",o.value)]),onDrop:tn(a,["prevent"]),onDragover:tn(s,["prevent"]),onDragleave:tn(d=>o.value=!1,["prevent"])},[He(l.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var z8e=vt(F8e,[["__file","upload-dragger.vue"]]);const Q8e=pt({...gH,beforeUpload:{type:Ie(Function),default:Br},onRemove:{type:Ie(Function),default:Br},onStart:{type:Ie(Function),default:Br},onSuccess:{type:Ie(Function),default:Br},onProgress:{type:Ie(Function),default:Br},onError:{type:Ie(Function),default:Br},onExceed:{type:Ie(Function),default:Br}}),W8e=Se({name:"ElUploadContent",inheritAttrs:!1}),Y8e=Se({...W8e,props:Q8e,setup(e,{expose:t}){const n=e,r=lt("upload"),o=Rs(),i=Kr({}),a=Kr(),s=b=>{if(b.length===0)return;const{autoUpload:k,limit:C,fileList:T,multiple:$,onStart:P,onExceed:A}=n;if(C&&T.length+b.length>C){A(b,T);return}$||(b=b.slice(0,1));for(const R of b){const B=R;B.uid=eR(),P(B),k&&l(B)}},l=async b=>{if(a.value.value="",!n.beforeUpload)return d(b);let k,C={};try{const $=n.data,P=n.beforeUpload(b);C=Ek(n.data)?kO(n.data):n.data,k=await P,Ek(n.data)&&rs($,C)&&(C=kO(n.data))}catch{k=!1}if(k===!1){n.onRemove(b);return}let T=b;k instanceof Blob&&(k instanceof File?T=k:T=new File([k],b.name,{type:b.type})),d(Object.assign(T,{uid:b.uid}),C)},u=async(b,k)=>nn(b)?b(k):b,d=async(b,k)=>{const{headers:C,data:T,method:$,withCredentials:P,name:A,action:R,onProgress:B,onSuccess:N,onError:I,httpRequest:D}=n;try{k=await u(k!=null?k:T,b)}catch{n.onRemove(b);return}const{uid:L}=b,z={headers:C||{},withCredentials:P,file:b,data:k,method:$,filename:A,action:R,onProgress:ae=>{B(ae,b)},onSuccess:ae=>{N(ae,b),delete i.value[L]},onError:ae=>{I(ae,b),delete i.value[L]}},q=D(z);i.value[L]=q,q instanceof Promise&&q.then(z.onSuccess,z.onError)},p=b=>{const k=b.target.files;!k||s(Array.from(k))},v=()=>{o.value||(a.value.value="",a.value.click())},y=()=>{v()};return t({abort:b=>{UOe(i.value).filter(b?([C])=>String(b.uid)===C:()=>!0).forEach(([C,T])=>{T instanceof XMLHttpRequest&&T.abort(),delete i.value[C]})},upload:l}),(b,k)=>(Z(),ce("div",{class:J([m(r).b(),m(r).m(b.listType),m(r).is("drag",b.drag),m(r).is("disabled",m(o))]),tabindex:m(o)?"-1":"0",onClick:v,onKeydown:Vr(tn(y,["self"]),["enter","space"])},[b.drag?(Z(),Fe(z8e,{key:0,disabled:m(o),onFile:s},{default:ue(()=>[He(b.$slots,"default")]),_:3},8,["disabled"])):He(b.$slots,"default",{key:1}),ve("input",{ref_key:"inputRef",ref:a,class:J(m(r).e("input")),name:b.name,disabled:m(o),multiple:b.multiple,accept:b.accept,type:"file",onChange:p,onClick:tn(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var EB=vt(Y8e,[["__file","upload-content.vue"]]);const TB="ElUpload",PB=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Z8e=(e,t)=>{const n=Yz(e,"fileList",void 0,{passive:!0}),r=y=>n.value.find(w=>w.uid===y.uid);function o(y){var w;(w=t.value)==null||w.abort(y)}function i(y=["ready","uploading","success","fail"]){n.value=n.value.filter(w=>!y.includes(w.status))}function a(y){n.value=n.value.filter(w=>w!==y)}const s=(y,w)=>{const b=r(w);!b||(console.error(y),b.status="fail",a(b),e.onError(y,b,n.value),e.onChange(b,n.value))},l=(y,w)=>{const b=r(w);!b||(e.onProgress(y,b,n.value),b.status="uploading",b.percentage=Math.round(y.percent))},u=(y,w)=>{const b=r(w);!b||(b.status="success",b.response=y,e.onSuccess(y,b,n.value),e.onChange(b,n.value))},d=y=>{Vi(y.uid)&&(y.uid=eR());const w={name:y.name,percentage:0,status:"ready",size:y.size,raw:y,uid:y.uid};if(e.listType==="picture-card"||e.listType==="picture")try{w.url=URL.createObjectURL(y)}catch(b){b.message,e.onError(b,w,n.value)}n.value=[...n.value,w],e.onChange(w,n.value)},p=async y=>{const w=y instanceof File?r(y):y;w||$i(TB,"file to be removed not found");const b=k=>{o(k),a(k),e.onRemove(k,n.value),PB(k)};e.beforeRemove?await e.beforeRemove(w,n.value)!==!1&&b(w):b(w)};function v(){n.value.filter(({status:y})=>y==="ready").forEach(({raw:y})=>{var w;return y&&((w=t.value)==null?void 0:w.upload(y))})}return at(()=>e.listType,y=>{y!=="picture-card"&&y!=="picture"||(n.value=n.value.map(w=>{const{raw:b,url:k}=w;if(!k&&b)try{w.url=URL.createObjectURL(b)}catch(C){e.onError(C,w,n.value)}return w}))}),at(n,y=>{for(const w of y)w.uid||(w.uid=eR()),w.status||(w.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:i,handleError:s,handleProgress:l,handleStart:d,handleSuccess:u,handleRemove:p,submit:v,revokeFileObjectURL:PB}},U8e=Se({name:"ElUpload"}),H8e=Se({...U8e,props:R8e,setup(e,{expose:t}){const n=e,r=Rs(),o=Kr(),{abort:i,submit:a,clearFiles:s,uploadFiles:l,handleStart:u,handleError:d,handleRemove:p,handleSuccess:v,handleProgress:y,revokeFileObjectURL:w}=Z8e(n,o),b=W(()=>n.listType==="picture-card"),k=W(()=>({...n,fileList:l.value,onStart:u,onProgress:y,onSuccess:v,onError:d,onRemove:p}));return Ur(()=>{l.value.forEach(w)}),Wn(hH,{accept:xr(n,"accept")}),t({abort:i,submit:a,clearFiles:s,handleStart:u,handleRemove:p}),(C,T)=>(Z(),ce("div",null,[m(b)&&C.showFileList?(Z(),Fe(CB,{key:0,disabled:m(r),"list-type":C.listType,files:m(l),crossorigin:C.crossorigin,"handle-preview":C.onPreview,onRemove:m(p)},Il({append:ue(()=>[re(EB,In({ref_key:"uploadRef",ref:o},m(k)),{default:ue(()=>[C.$slots.trigger?He(C.$slots,"trigger",{key:0}):je("v-if",!0),!C.$slots.trigger&&C.$slots.default?He(C.$slots,"default",{key:1}):je("v-if",!0)]),_:3},16)]),_:2},[C.$slots.file?{name:"default",fn:ue(({file:$,index:P})=>[He(C.$slots,"file",{file:$,index:P})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):je("v-if",!0),!m(b)||m(b)&&!C.showFileList?(Z(),Fe(EB,In({key:1,ref_key:"uploadRef",ref:o},m(k)),{default:ue(()=>[C.$slots.trigger?He(C.$slots,"trigger",{key:0}):je("v-if",!0),!C.$slots.trigger&&C.$slots.default?He(C.$slots,"default",{key:1}):je("v-if",!0)]),_:3},16)):je("v-if",!0),C.$slots.trigger?He(C.$slots,"default",{key:2}):je("v-if",!0),He(C.$slots,"tip"),!m(b)&&C.showFileList?(Z(),Fe(CB,{key:3,disabled:m(r),"list-type":C.listType,files:m(l),crossorigin:C.crossorigin,"handle-preview":C.onPreview,onRemove:m(p)},Il({_:2},[C.$slots.file?{name:"default",fn:ue(({file:$,index:P})=>[He(C.$slots,"file",{file:$,index:P})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):je("v-if",!0)]))}});var X8e=vt(H8e,[["__file","upload.vue"]]);const G8e=pn(X8e),q8e=pt({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:Ie([String,Array]),default:"Element Plus"},font:{type:Ie(Object)},gap:{type:Ie(Array),default:()=>[100,100]},offset:{type:Ie(Array)}});function K8e(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function J8e(e){return Object.keys(e).map(t=>`${K8e(t)}: ${e[t]};`).join(" ")}function e5e(){return window.devicePixelRatio||1}const t5e=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},mH=3;function J$(e,t,n=1){const r=document.createElement("canvas"),o=r.getContext("2d"),i=e*n,a=t*n;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${a}px`),o.save(),[o,r,i,a]}function n5e(){function e(t,n,r,o,i,a,s,l){const[u,d,p,v]=J$(o,i,r);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,p,v);else{const{color:se,fontSize:he,fontStyle:pe,fontWeight:Be,fontFamily:De,textAlign:ze,textBaseline:$e}=a,_e=Number(he)*r;u.font=`${pe} normal ${Be} ${_e}px/${i}px ${De}`,u.fillStyle=se,u.textAlign=ze,u.textBaseline=$e;const me=Array.isArray(t)?t:[t];me==null||me.forEach((Re,we)=>{u.fillText(Re!=null?Re:"",p/2,we*(_e+mH*r))})}const y=Math.PI/180*Number(n),w=Math.max(o,i),[b,k,C]=J$(w,w,r);b.translate(C/2,C/2),b.rotate(y),p>0&&v>0&&b.drawImage(d,-p/2,-v/2);function T(se,he){const pe=se*Math.cos(y)-he*Math.sin(y),Be=se*Math.sin(y)+he*Math.cos(y);return[pe,Be]}let $=0,P=0,A=0,R=0;const B=p/2,N=v/2;[[0-B,0-N],[0+B,0-N],[0+B,0+N],[0-B,0+N]].forEach(([se,he])=>{const[pe,Be]=T(se,he);$=Math.min($,pe),P=Math.max(P,pe),A=Math.min(A,Be),R=Math.max(R,Be)});const D=$+C/2,L=A+C/2,z=P-$,q=R-A,ae=s*r,K=l*r,H=(z+ae)*2,ne=q+K,[X,V]=J$(H,ne);function G(se=0,he=0){X.drawImage(k,D,L,z,q,se,he,z,q)}return G(),G(z+ae,-q/2-K/2),G(z+ae,+q/2+K/2),[V.toDataURL(),H/r,ne/r]}return e}const r5e=Se({name:"ElWatermark"}),o5e=Se({...r5e,props:q8e,setup(e){const t=e,n={position:"relative"},r=W(()=>{var D,L;return(L=(D=t.font)==null?void 0:D.color)!=null?L:"rgba(0,0,0,.15)"}),o=W(()=>{var D,L;return(L=(D=t.font)==null?void 0:D.fontSize)!=null?L:16}),i=W(()=>{var D,L;return(L=(D=t.font)==null?void 0:D.fontWeight)!=null?L:"normal"}),a=W(()=>{var D,L;return(L=(D=t.font)==null?void 0:D.fontStyle)!=null?L:"normal"}),s=W(()=>{var D,L;return(L=(D=t.font)==null?void 0:D.fontFamily)!=null?L:"sans-serif"}),l=W(()=>{var D,L;return(L=(D=t.font)==null?void 0:D.textAlign)!=null?L:"center"}),u=W(()=>{var D,L;return(L=(D=t.font)==null?void 0:D.textBaseline)!=null?L:"hanging"}),d=W(()=>t.gap[0]),p=W(()=>t.gap[1]),v=W(()=>d.value/2),y=W(()=>p.value/2),w=W(()=>{var D,L;return(L=(D=t.offset)==null?void 0:D[0])!=null?L:v.value}),b=W(()=>{var D,L;return(L=(D=t.offset)==null?void 0:D[1])!=null?L:y.value}),k=()=>{const D={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let L=w.value-v.value,z=b.value-y.value;return L>0&&(D.left=`${L}px`,D.width=`calc(100% - ${L}px)`,L=0),z>0&&(D.top=`${z}px`,D.height=`calc(100% - ${z}px)`,z=0),D.backgroundPosition=`${L}px ${z}px`,D},C=Kr(null),T=Kr(),$=ee(!1),P=()=>{T.value&&(T.value.remove(),T.value=void 0)},A=(D,L)=>{var z;C.value&&T.value&&($.value=!0,T.value.setAttribute("style",J8e({...k(),backgroundImage:`url('${D}')`,backgroundSize:`${Math.floor(L)}px`})),(z=C.value)==null||z.append(T.value),setTimeout(()=>{$.value=!1}))},R=D=>{let L=120,z=64;const q=t.image,ae=t.content,K=t.width,H=t.height;if(!q&&D.measureText){D.font=`${Number(o.value)}px ${s.value}`;const ne=Array.isArray(ae)?ae:[ae],X=ne.map(V=>{const G=D.measureText(V);return[G.width,G.fontBoundingBoxAscent!==void 0?G.fontBoundingBoxAscent+G.fontBoundingBoxDescent:G.actualBoundingBoxAscent+G.actualBoundingBoxDescent]});L=Math.ceil(Math.max(...X.map(V=>V[0]))),z=Math.ceil(Math.max(...X.map(V=>V[1])))*ne.length+(ne.length-1)*mH}return[K!=null?K:L,H!=null?H:z]},B=n5e(),N=()=>{const L=document.createElement("canvas").getContext("2d"),z=t.image,q=t.content,ae=t.rotate;if(L){T.value||(T.value=document.createElement("div"));const K=e5e(),[H,ne]=R(L),X=V=>{const[G,se]=B(V||"",ae,K,H,ne,{color:r.value,fontSize:o.value,fontStyle:a.value,fontWeight:i.value,fontFamily:s.value,textAlign:l.value,textBaseline:u.value},d.value,p.value);A(G,se)};if(z){const V=new Image;V.onload=()=>{X(V)},V.onerror=()=>{X(q)},V.crossOrigin="anonymous",V.referrerPolicy="no-referrer",V.src=z}else X(q)}};return vn(()=>{N()}),at(()=>t,()=>{N()},{deep:!0,flush:"post"}),Ur(()=>{P()}),Wz(C,D=>{$.value||D.forEach(L=>{t5e(L,T.value)&&(P(),N())})},{attributes:!0,subtree:!0,childList:!0}),(D,L)=>(Z(),ce("div",{ref_key:"containerRef",ref:C,style:Vt([n])},[He(D.$slots,"default")],4))}});var i5e=vt(o5e,[["__file","watermark.vue"]]);const a5e=pn(i5e),s5e=pt({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:Ie(Object)},targetAreaClickable:{type:Boolean,default:!0}}),l5e=(e,t,n,r,o)=>{const i=ee(null),a=()=>{let p;return Gt(e.value)?p=document.querySelector(e.value):nn(e.value)?p=e.value():p=e.value,p},s=()=>{const p=a();if(!p||!t.value){i.value=null;return}!u5e(p)&&t.value&&p.scrollIntoView(o.value);const{left:v,top:y,width:w,height:b}=p.getBoundingClientRect();i.value={left:v,top:y,width:w,height:b,radius:0}};vn(()=>{at([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),Ur(()=>{window.removeEventListener("resize",s)});const l=p=>{var v;return(v=xt(n.value.offset)?n.value.offset[p]:n.value.offset)!=null?v:6},u=W(()=>{var p;if(!i.value)return i.value;const v=l(0),y=l(1),w=((p=n.value)==null?void 0:p.radius)||2;return{left:i.value.left-v,top:i.value.top-y,width:i.value.width+v*2,height:i.value.height+y*2,radius:w}}),d=W(()=>{const p=a();return!r.value||!p||!window.DOMRect?p||void 0:{getBoundingClientRect(){var v,y,w,b;return window.DOMRect.fromRect({width:((v=u.value)==null?void 0:v.width)||0,height:((y=u.value)==null?void 0:y.height)||0,x:((w=u.value)==null?void 0:w.left)||0,y:((b=u.value)==null?void 0:b.top)||0})}}});return{mergedPosInfo:u,triggerTarget:d}},YC=Symbol("ElTour");function u5e(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:o,bottom:i,left:a}=e.getBoundingClientRect();return r>=0&&a>=0&&o<=t&&i<=n}const c5e=(e,t,n,r,o,i,a,s)=>{const l=ee(),u=ee(),d=ee({}),p={x:l,y:u,placement:r,strategy:o,middlewareData:d},v=W(()=>{const C=[KW(m(i)),USe(),XSe(),f5e()];return m(s)&&m(n)&&C.push(qW({element:m(n)})),C}),y=async()=>{if(!tr)return;const C=m(e),T=m(t);if(!C||!T)return;const $=await aY(C,T,{placement:m(r),strategy:m(o),middleware:m(v)});Ny(p).forEach(P=>{p[P].value=$[P]})},w=W(()=>{if(!m(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:m(a)};const{overflow:C}=m(d);return{position:m(o),zIndex:m(a),top:m(u)!=null?`${m(u)}px`:"",left:m(l)!=null?`${m(l)}px`:"",maxWidth:C!=null&&C.maxWidth?`${C==null?void 0:C.maxWidth}px`:""}}),b=W(()=>{if(!m(s))return{};const{arrow:C}=m(d);return{left:(C==null?void 0:C.x)!=null?`${C==null?void 0:C.x}px`:"",top:(C==null?void 0:C.y)!=null?`${C==null?void 0:C.y}px`:""}});let k;return vn(()=>{const C=m(e),T=m(t);C&&T&&(k=hxe(C,T,y)),Ia(()=>{y()})}),Ur(()=>{k&&k()}),{update:y,contentStyle:w,arrowStyle:b}},f5e=()=>({name:"overflow",async fn(e){const t=await i3(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),d5e=Se({name:"ElTourMask",inheritAttrs:!1}),h5e=Se({...d5e,props:s5e,setup(e){const t=e,{ns:n}=Tt(YC),r=W(()=>{var s,l;return(l=(s=t.pos)==null?void 0:s.radius)!=null?l:2}),o=W(()=>{const s=r.value,l=`a${s},${s} 0 0 1`;return{topRight:`${l} ${s},${s}`,bottomRight:`${l} ${-s},${s}`,bottomLeft:`${l} ${-s},${-s}`,topLeft:`${l} ${s},${-s}`}}),i=W(()=>{const s=window.innerWidth,l=window.innerHeight,u=o.value,d=`M${s},0 L0,0 L0,${l} L${s},${l} L${s},0 Z`,p=r.value;return t.pos?`${d} M${t.pos.left+p},${t.pos.top} h${t.pos.width-p*2} ${u.topRight} v${t.pos.height-p*2} ${u.bottomRight} h${-t.pos.width+p*2} ${u.bottomLeft} v${-t.pos.height+p*2} ${u.topLeft} z`:d}),a=W(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return ZI(xr(t,"visible"),{ns:n}),(s,l)=>s.visible?(Z(),ce("div",In({key:0,class:m(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:s.zIndex,pointerEvents:s.pos&&s.targetAreaClickable?"none":"auto"}},s.$attrs),[(Z(),ce("svg",{style:{width:"100%",height:"100%"}},[ve("path",{class:J(m(n).e("hollow")),style:Vt(m(a)),d:m(i)},null,14,["d"])]))],16)):je("v-if",!0)}});var p5e=vt(h5e,[["__file","mask.vue"]]);const g5e=["absolute","fixed"],v5e=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],iD=pt({placement:{type:Ie(String),values:v5e,default:"bottom"},reference:{type:Ie(Object),default:null},strategy:{type:Ie(String),values:g5e,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),m5e={close:()=>!0},y5e=Se({name:"ElTourContent"}),b5e=Se({...y5e,props:iD,emits:m5e,setup(e,{emit:t}){const n=e,r=ee(n.placement),o=ee(n.strategy),i=ee(null),a=ee(null);at(()=>n.placement,()=>{r.value=n.placement});const{contentStyle:s,arrowStyle:l}=c5e(xr(n,"reference"),i,a,r,o,xr(n,"offset"),xr(n,"zIndex"),xr(n,"showArrow")),u=W(()=>r.value.split("-")[0]),{ns:d}=Tt(YC),p=()=>{t("close")},v=y=>{y.detail.focusReason==="pointer"&&y.preventDefault()};return(y,w)=>(Z(),ce("div",{ref_key:"contentRef",ref:i,style:Vt(m(s)),class:J(m(d).e("content")),"data-side":m(u),tabindex:"-1"},[re(m(T1),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:p,onFocusoutPrevented:v},{default:ue(()=>[He(y.$slots,"default")]),_:3},8,["focus-trap-el"]),y.showArrow?(Z(),ce("span",{key:0,ref_key:"arrowRef",ref:a,style:Vt(m(l)),class:J(m(d).e("arrow"))},null,6)):je("v-if",!0)],14,["data-side"]))}});var _5e=vt(b5e,[["__file","content.vue"]]),O5e=Se({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let r=0;return()=>{var o,i;const a=(o=t.default)==null?void 0:o.call(t),s=[];let l=0;function u(d){!xt(d)||d.forEach(p=>{var v;((v=(p==null?void 0:p.type)||{})==null?void 0:v.name)==="ElTourStep"&&(s.push(p),l+=1)})}return a.length&&u(Lh((i=a[0])==null?void 0:i.children)),r!==l&&(r=l,n("update-total",l)),s.length?s[e.current]:null}}});const w5e=pt({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Fr},placement:iD.placement,contentStyle:{type:Ie([Object])},mask:{type:Ie([Boolean,Object]),default:!0},gap:{type:Ie(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:Ie([Boolean,Object]),default:()=>({block:"center"})},type:{type:Ie(String)},appendTo:{type:Ie([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),S5e={[En]:e=>Uo(e),["update:current"]:e=>en(e),close:e=>en(e),finish:()=>!0,change:e=>en(e)},x5e=Se({name:"ElTour"}),k5e=Se({...x5e,props:w5e,emits:S5e,setup(e,{emit:t}){const n=e,r=lt("tour"),o=ee(0),i=ee(),a=Yz(n,"current",t,{passive:!0}),s=W(()=>{var I;return(I=i.value)==null?void 0:I.target}),l=W(()=>[r.b(),k.value==="primary"?r.m("primary"):""]),u=W(()=>{var I;return((I=i.value)==null?void 0:I.placement)||n.placement}),d=W(()=>{var I,D;return(D=(I=i.value)==null?void 0:I.contentStyle)!=null?D:n.contentStyle}),p=W(()=>{var I,D;return(D=(I=i.value)==null?void 0:I.mask)!=null?D:n.mask}),v=W(()=>!!p.value&&n.modelValue),y=W(()=>Uo(p.value)?void 0:p.value),w=W(()=>{var I,D;return!!s.value&&((D=(I=i.value)==null?void 0:I.showArrow)!=null?D:n.showArrow)}),b=W(()=>{var I,D;return(D=(I=i.value)==null?void 0:I.scrollIntoViewOptions)!=null?D:n.scrollIntoViewOptions}),k=W(()=>{var I,D;return(D=(I=i.value)==null?void 0:I.type)!=null?D:n.type}),{nextZIndex:C}=p0(),T=C(),$=W(()=>{var I;return(I=n.zIndex)!=null?I:T}),{mergedPosInfo:P,triggerTarget:A}=l5e(s,xr(n,"modelValue"),xr(n,"gap"),p,b);at(()=>n.modelValue,I=>{I||(a.value=0)});const R=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",a.value))},B=I=>{o.value=I},N=zi();return Wn(YC,{currentStep:i,current:a,total:o,showClose:xr(n,"showClose"),closeIcon:xr(n,"closeIcon"),mergedType:k,ns:r,slots:N,updateModelValue(I){t("update:modelValue",I)},onClose(){t("close",a.value)},onFinish(){t("finish")},onChange(){t("change",a.value)}}),(I,D)=>(Z(),ce(Pt,null,[re(m(v0),{to:I.appendTo},{default:ue(()=>{var L,z;return[ve("div",In({class:m(l)},I.$attrs),[re(p5e,{visible:m(v),fill:(L=m(y))==null?void 0:L.color,style:Vt((z=m(y))==null?void 0:z.style),pos:m(P),"z-index":m($),"target-area-clickable":I.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),I.modelValue?(Z(),Fe(_5e,{key:m(a),reference:m(A),placement:m(u),"show-arrow":m(w),"z-index":m($),style:Vt(m(d)),onClose:R},{default:ue(()=>[re(m(O5e),{current:m(a),onUpdateTotal:B},{default:ue(()=>[He(I.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):je("v-if",!0)],16)]}),_:3},8,["to"]),je(" just for IDE "),je("v-if",!0)],64))}});var C5e=vt(k5e,[["__file","tour.vue"]]);const E5e=pt({target:{type:Ie([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Fr},showArrow:{type:Boolean,default:void 0},placement:iD.placement,mask:{type:Ie([Boolean,Object]),default:void 0},contentStyle:{type:Ie([Object])},prevButtonProps:{type:Ie(Object)},nextButtonProps:{type:Ie(Object)},scrollIntoViewOptions:{type:Ie([Boolean,Object]),default:void 0},type:{type:Ie(String)}}),T5e={close:()=>!0},P5e=Se({name:"ElTourStep"}),$5e=Se({...P5e,props:E5e,emits:T5e,setup(e,{emit:t}){const n=e,{Close:r}=FI,{t:o}=rr(),{currentStep:i,current:a,total:s,showClose:l,closeIcon:u,mergedType:d,ns:p,slots:v,updateModelValue:y,onClose:w,onFinish:b,onChange:k}=Tt(YC);at(n,N=>{i.value=N},{immediate:!0});const C=W(()=>{var N;return(N=n.showClose)!=null?N:l.value}),T=W(()=>{var N,I;return(I=(N=n.closeIcon)!=null?N:u.value)!=null?I:r}),$=N=>{if(!!N)return FQ(N,["children","onClick"])},P=()=>{var N,I;a.value-=1,(N=n.prevButtonProps)!=null&&N.onClick&&((I=n.prevButtonProps)==null||I.onClick()),k()},A=()=>{var N;a.value>=s.value-1?R():a.value+=1,(N=n.nextButtonProps)!=null&&N.onClick&&n.nextButtonProps.onClick(),k()},R=()=>{B(),b()},B=()=>{y(!1),w(),t("close")};return(N,I)=>(Z(),ce(Pt,null,[m(C)?(Z(),ce("button",{key:0,"aria-label":"Close",class:J(m(p).e("closebtn")),type:"button",onClick:B},[re(m(jt),{class:J(m(p).e("close"))},{default:ue(()=>[(Z(),Fe(Dn(m(T))))]),_:1},8,["class"])],2)):je("v-if",!0),ve("header",{class:J([m(p).e("header"),{"show-close":m(l)}])},[He(N.$slots,"header",{},()=>[ve("span",{role:"heading",class:J(m(p).e("title"))},ut(N.title),3)])],2),ve("div",{class:J(m(p).e("body"))},[He(N.$slots,"default",{},()=>[ve("span",null,ut(N.description),1)])],2),ve("footer",{class:J(m(p).e("footer"))},[ve("div",{class:J(m(p).b("indicators"))},[m(v).indicators?(Z(),Fe(Dn(m(v).indicators),{key:0,current:m(a),total:m(s)},null,8,["current","total"])):(Z(!0),ce(Pt,{key:1},_n(m(s),(D,L)=>(Z(),ce("span",{key:D,class:J([m(p).b("indicator"),L===m(a)?"is-active":""])},null,2))),128))],2),ve("div",{class:J(m(p).b("buttons"))},[m(a)>0?(Z(),Fe(m(no),In({key:0,size:"small",type:m(d)},$(N.prevButtonProps),{onClick:P}),{default:ue(()=>{var D,L;return[St(ut((L=(D=N.prevButtonProps)==null?void 0:D.children)!=null?L:m(o)("el.tour.previous")),1)]}),_:1},16,["type"])):je("v-if",!0),m(a)<=m(s)-1?(Z(),Fe(m(no),In({key:1,size:"small",type:m(d)==="primary"?"default":"primary"},$(N.nextButtonProps),{onClick:A}),{default:ue(()=>{var D,L;return[St(ut((L=(D=N.nextButtonProps)==null?void 0:D.children)!=null?L:m(a)===m(s)-1?m(o)("el.tour.finish"):m(o)("el.tour.next")),1)]}),_:1},16,["type"])):je("v-if",!0)],2)],2)],64))}});var yH=vt($5e,[["__file","step.vue"]]);const A5e=pn(C5e,{TourStep:yH}),M5e=So(yH),R5e=pt({container:{type:Ie([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:Ie(String),default:"default"},direction:{type:Ie(String),default:"vertical"}}),N5e={change:e=>Gt(e),click:(e,t)=>e instanceof MouseEvent&&(Gt(t)||Bo(t))},bH=Symbol("anchor"),I5e=Se({name:"ElAnchor"}),D5e=Se({...I5e,props:R5e,emits:N5e,setup(e,{expose:t,emit:n}){const r=e,o=ee(""),i=ee(null),a=ee(null),s=ee(),l={};let u=!1,d=0;const p=lt("anchor"),v=W(()=>[p.b(),r.type==="underline"?p.m("underline"):"",p.m(r.direction)]),y=N=>{l[N.href]=N.el},w=N=>{delete l[N]},b=N=>{o.value!==N&&(o.value=N,n("change",N))};let k=null;const C=N=>{if(!s.value)return;const I=ax(N);if(!I)return;k&&k(),u=!0;const D=BL(I,s.value),L=YA(I,D),z=D.scrollHeight-D.clientHeight,q=Math.min(L-r.offset,z);k=GOe(s.value,d,q,r.duration,()=>{setTimeout(()=>{u=!1},20)})},T=N=>{N&&(b(N),C(N))},$=(N,I)=>{n("click",N,I),T(I)},P=gwe(()=>{s.value&&(d=VL(s.value));const N=A();u||Bo(N)||b(N)}),A=()=>{if(!s.value)return;const N=VL(s.value),I=[];for(const D of Object.keys(l)){const L=ax(D);if(!L)continue;const z=BL(L,s.value),q=YA(L,z);I.push({top:q-r.offset-r.bound,href:D})}I.sort((D,L)=>D.top-L.top);for(let D=0;D<I.length;D++){const L=I[D],z=I[D+1];if(D===0&&N===0)return"";if(L.top<=N&&(!z||z.top>N))return L.href}},R=()=>{const N=ax(r.container);!N||SC(N)?s.value=window:s.value=N};Ar(s,"scroll",P);const B=W(()=>{if(!i.value||!a.value||!o.value)return{};const N=l[o.value];if(!N)return{};const I=i.value.getBoundingClientRect(),D=a.value.getBoundingClientRect(),L=N.getBoundingClientRect();return r.direction==="horizontal"?{left:`${L.left-I.left}px`,width:`${L.width}px`,opacity:1}:{top:`${L.top-I.top+(L.height-D.height)/2}px`,opacity:1}});return vn(()=>{R();const N=decodeURIComponent(window.location.hash);ax(N)?T(N):P()}),at(()=>r.container,()=>{R()}),Wn(bH,{ns:p,direction:r.direction,currentAnchor:o,addLink:y,removeLink:w,handleClick:$}),t({scrollTo:T}),(N,I)=>(Z(),ce("div",{ref_key:"anchorRef",ref:i,class:J(m(v))},[N.marker?(Z(),ce("div",{key:0,ref_key:"markerRef",ref:a,class:J(m(p).e("marker")),style:Vt(m(B))},null,6)):je("v-if",!0),ve("div",{class:J(m(p).e("list"))},[He(N.$slots,"default")],2)],2))}});var j5e=vt(D5e,[["__file","anchor.vue"]]);const L5e=pt({title:String,href:String}),B5e=Se({name:"ElAnchorLink"}),V5e=Se({...B5e,props:L5e,setup(e){const t=e,n=ee(null),{ns:r,direction:o,currentAnchor:i,addLink:a,removeLink:s,handleClick:l}=Tt(bH),u=W(()=>[r.e("link"),r.is("active",i.value===t.href)]),d=p=>{l(p,t.href)};return at(()=>t.href,(p,v)=>{zt(()=>{v&&s(v),p&&a({href:p,el:n.value})})}),vn(()=>{const{href:p}=t;p&&a({href:p,el:n.value})}),Ur(()=>{const{href:p}=t;p&&s(p)}),(p,v)=>(Z(),ce("div",{class:J(m(r).e("item"))},[ve("a",{ref_key:"linkRef",ref:n,class:J(m(u)),href:p.href,onClick:d},[He(p.$slots,"default",{},()=>[St(ut(p.title),1)])],10,["href"]),p.$slots["sub-link"]&&m(o)==="vertical"?(Z(),ce("div",{key:0,class:J(m(r).e("list"))},[He(p.$slots,"sub-link")],2)):je("v-if",!0)],2))}});var _H=vt(V5e,[["__file","anchor-link.vue"]]);const F5e=pn(j5e,{AnchorLink:_H}),z5e=So(_H),Q5e=pt({options:{type:Ie(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:Ai,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...ha(["ariaLabel"])}),W5e={[En]:e=>Gt(e)||en(e)||Uo(e),[ao]:e=>Gt(e)||en(e)||Uo(e)},Y5e=Se({name:"ElSegmented"}),Z5e=Se({...Y5e,props:Q5e,emits:W5e,setup(e,{emit:t}){const n=e,r=lt("segmented"),o=ja(),i=bi(),a=Rs(),{formItem:s}=as(),{inputId:l,isLabeledByFormItem:u}=bc(n,{formItemContext:s}),d=ee(null),p=Gie(),v=nr({isInit:!1,width:0,translateX:0,disabled:!1,focusVisible:!1}),y=I=>{const D=w(I);t(En,D),t(ao,D)},w=I=>Pn(I)?I.value:I,b=I=>Pn(I)?I.label:I,k=I=>!!(a.value||(Pn(I)?I.disabled:!1)),C=I=>n.modelValue===w(I),T=I=>n.options.find(D=>w(D)===I),$=I=>[r.e("item"),r.is("selected",C(I)),r.is("disabled",k(I))],P=()=>{if(!d.value)return;const I=d.value.querySelector(".is-selected"),D=d.value.querySelector(".is-selected input");if(!I||!D){v.width=0,v.translateX=0,v.disabled=!1,v.focusVisible=!1;return}const L=I.getBoundingClientRect();v.isInit=!0,v.width=L.width,v.translateX=I.offsetLeft,v.disabled=k(T(n.modelValue));try{v.focusVisible=D.matches(":focus-visible")}catch{}},A=W(()=>[r.b(),r.m(i.value),r.is("block",n.block)]),R=W(()=>({width:`${v.width}px`,transform:`translateX(${v.translateX}px)`,display:v.isInit?"block":"none"})),B=W(()=>[r.e("item-selected"),r.is("disabled",v.disabled),r.is("focus-visible",v.focusVisible)]),N=W(()=>n.name||o.value);return _o(d,P),at(p,P),at(()=>n.modelValue,()=>{var I;P(),n.validateEvent&&((I=s==null?void 0:s.validate)==null||I.call(s,"change").catch(D=>void 0))},{flush:"post"}),(I,D)=>(Z(),ce("div",{id:m(l),ref_key:"segmentedRef",ref:d,class:J(m(A)),role:"radiogroup","aria-label":m(u)?void 0:I.ariaLabel||"segmented","aria-labelledby":m(u)?m(s).labelId:void 0},[ve("div",{class:J(m(r).e("group"))},[ve("div",{style:Vt(m(R)),class:J(m(B))},null,6),(Z(!0),ce(Pt,null,_n(I.options,(L,z)=>(Z(),ce("label",{key:z,class:J($(L))},[ve("input",{class:J(m(r).e("item-input")),type:"radio",name:m(N),disabled:k(L),checked:C(L),onChange:q=>y(L)},null,42,["name","disabled","checked","onChange"]),ve("div",{class:J(m(r).e("item-label"))},[He(I.$slots,"default",{item:L},()=>[St(ut(b(L)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"]))}});var U5e=vt(Z5e,[["__file","segmented.vue"]]);const H5e=pn(U5e),X5e=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},G5e=(e,t,n)=>{const{selectionEnd:r}=e;if(r===null)return;const o=e.value,i=Ma(t);let a=-1,s;for(let l=r-1;l>=0;--l){const u=o[l];if(u===n||u===`
  72. `||u==="\r"){a=l;continue}if(i.includes(u)){const d=a===-1?r:a;s={pattern:o.slice(l+1,d),start:l+1,end:d,prefix:u,prefixIndex:l,splitIndex:a,selectionEnd:r};break}}return s},q5e=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const v=document.querySelector("#input-textarea-caret-position-mirror-div");v!=null&&v.parentNode&&v.parentNode.removeChild(v)}const a=document.createElement("div");a.id="input-textarea-caret-position-mirror-div",document.body.appendChild(a);const s=a.style,l=window.getComputedStyle(e),u=e.nodeName==="INPUT";s.whiteSpace=u?"nowrap":"pre-wrap",u||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),i.forEach(v=>{if(u&&v==="lineHeight")if(l.boxSizing==="border-box"){const y=Number.parseInt(l.height),w=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),b=w+Number.parseInt(l.lineHeight);y>b?s.lineHeight=`${y-w}px`:y===b?s.lineHeight=l.lineHeight:s.lineHeight="0"}else s.lineHeight=l.height;else s[v]=l[v]}),NN()?e.scrollHeight>Number.parseInt(l.height)&&(s.overflowY="scroll"):s.overflow="hidden",a.textContent=e.value.slice(0,Math.max(0,o)),u&&a.textContent&&(a.textContent=a.textContent.replace(/\s/g,"\xA0"));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,a.appendChild(d);const p={top:d.offsetTop+Number.parseInt(l.borderTopWidth),left:d.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(a),p.left>=e.clientWidth&&(p.left=e.clientWidth),p},K5e=pt({...f3,options:{type:Ie(Array),default:()=>[]},prefix:{type:Ie([String,Array]),default:"@",validator:e=>Gt(e)?e.length===1:e.every(t=>Gt(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:Ie([Boolean,Function]),default:()=>X5e,validator:e=>e===!1?!0:nn(e)},placement:{type:Ie(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:Ie(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Ie(Object),default:()=>({})}}),J5e={[En]:e=>Gt(e),search:(e,t)=>Gt(e)&&Gt(t),select:(e,t)=>Gt(e.value)&&Gt(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},eLe=pt({options:{type:Ie(Array),default:()=>[]},loading:Boolean,disabled:Boolean}),tLe={select:e=>Gt(e.value)},nLe=Se({name:"ElMentionDropdown"}),rLe=Se({...nLe,props:eLe,emits:tLe,setup(e,{expose:t,emit:n}){const r=e,o=lt("mention"),{t:i}=rr(),a=ee(-1),s=ee(),l=ee(),u=ee(),d=($,P)=>[o.be("dropdown","item"),o.is("hovering",a.value===P),o.is("disabled",$.disabled||r.disabled)],p=$=>{$.disabled||r.disabled||n("select",$)},v=$=>{a.value=$},y=W(()=>r.disabled||r.options.every($=>$.disabled)),w=W(()=>r.options[a.value]),b=()=>{!w.value||n("select",w.value)},k=$=>{const{options:P}=r;if(P.length===0||y.value)return;$==="next"?(a.value++,a.value===P.length&&(a.value=0)):$==="prev"&&(a.value--,a.value<0&&(a.value=P.length-1));const A=P[a.value];if(A.disabled){k($);return}zt(()=>C(A))},C=$=>{var P,A,R,B;const{options:N}=r,I=N.findIndex(L=>L.value===$.value),D=(P=l.value)==null?void 0:P[I];if(D){const L=(R=(A=u.value)==null?void 0:A.querySelector)==null?void 0:R.call(A,`.${o.be("dropdown","wrap")}`);L&&II(L,D)}(B=s.value)==null||B.handleScroll()};return at(()=>r.options,()=>{y.value||r.options.length===0?a.value=-1:a.value=0},{immediate:!0}),t({navigateOptions:k,selectHoverOption:b,hoverOption:w}),($,P)=>(Z(),ce("div",{ref_key:"dropdownRef",ref:u,class:J(m(o).b("dropdown"))},[$.$slots.header?(Z(),ce("div",{key:0,class:J(m(o).be("dropdown","header"))},[He($.$slots,"header")],2)):je("v-if",!0),yn(re(m(_c),{ref_key:"scrollbarRef",ref:s,tag:"ul","wrap-class":m(o).be("dropdown","wrap"),"view-class":m(o).be("dropdown","list")},{default:ue(()=>[(Z(!0),ce(Pt,null,_n($.options,(A,R)=>(Z(),ce("li",{ref_for:!0,ref_key:"optionRefs",ref:l,key:A.value,class:J(d(A,R)),onMouseenter:B=>v(R),onClick:tn(B=>p(A),["stop"])},[He($.$slots,"label",{item:A,index:R},()=>{var B;return[ve("span",null,ut((B=A.label)!=null?B:A.value),1)]})],42,["onMouseenter","onClick"]))),128))]),_:3},8,["wrap-class","view-class"]),[[hr,$.options.length>0&&!$.loading]]),$.loading?(Z(),ce("div",{key:1,class:J(m(o).be("dropdown","loading"))},[He($.$slots,"loading",{},()=>[St(ut(m(i)("el.mention.loading")),1)])],2)):je("v-if",!0),$.$slots.footer?(Z(),ce("div",{key:2,class:J(m(o).be("dropdown","footer"))},[He($.$slots,"footer")],2)):je("v-if",!0)],2))}});var oLe=vt(rLe,[["__file","mention-dropdown.vue"]]);const iLe=Se({name:"ElMention"}),aLe=Se({...iLe,props:K5e,emits:J5e,setup(e,{expose:t,emit:n}){const r=e,o=W(()=>pu(r,Object.keys(f3))),i=lt("mention"),a=ee(),s=ee(),l=ee(),u=ee(!1),d=ee(),p=ee(),v=W(()=>r.showArrow?r.placement:`${r.placement}-start`),y=W(()=>r.showArrow?["bottom","top"]:["bottom-start","top-start"]),w=W(()=>{const{filterOption:N,options:I}=r;return!p.value||!N?I:I.filter(D=>N(p.value.pattern,D))}),b=N=>{n("update:modelValue",N),A()},k=N=>{var I,D,L,z;if("key"in N&&!((I=a.value)!=null&&I.isComposing)){if(["ArrowLeft","ArrowRight"].includes(N.key))A();else if(["ArrowUp","ArrowDown"].includes(N.key)){if(!u.value)return;N.preventDefault();const q=N.key==="ArrowUp"?"prev":"next";(D=l.value)==null||D.navigateOptions(q)}else if(["Enter"].includes(N.key)){if(!u.value)return;N.preventDefault(),(L=l.value)!=null&&L.hoverOption?(z=l.value)==null||z.selectHoverOption():u.value=!1}else if(["Backspace"].includes(N.key)&&r.whole&&p.value){const{splitIndex:q,selectionEnd:ae,pattern:K,prefixIndex:H,prefix:ne}=p.value,X=P();if(!X)return;const V=X.value,G=r.options.find(he=>he.value===K);if((nn(r.checkIsWhole)?r.checkIsWhole(K,ne):G)&&q!==-1&&q+1===ae){N.preventDefault();const he=V.slice(0,H)+V.slice(q+1);n(En,he);const pe=H;zt(()=>{X.selectionStart=pe,X.selectionEnd=pe,B()})}}}},{wrapperRef:C}=C1(a,{afterFocus(){A()},beforeBlur(N){var I;return(I=s.value)==null?void 0:I.isFocusInsideContent(N)},afterBlur(){u.value=!1}}),T=()=>{A()},$=N=>{if(!p.value)return;const I=P();if(!I)return;const D=I.value,{split:L}=r,z=D.slice(p.value.end),q=z.startsWith(L),ae=`${N.value}${q?"":L}`,K=D.slice(0,p.value.start)+ae+z;n(En,K),n("select",N,p.value.prefix);const H=p.value.start+ae.length+(q?1:0);zt(()=>{I.selectionStart=H,I.selectionEnd=H,I.focus(),B()})},P=()=>{var N,I;return r.type==="textarea"?(N=a.value)==null?void 0:N.textarea:(I=a.value)==null?void 0:I.input},A=()=>{setTimeout(()=>{R(),B(),zt(()=>{var N;return(N=s.value)==null?void 0:N.updatePopper()})},0)},R=()=>{const N=P();if(!N)return;const I=q5e(N),D=N.getBoundingClientRect(),L=a.value.$el.getBoundingClientRect();d.value={position:"absolute",width:0,height:`${I.height}px`,left:`${I.left+D.left-L.left}px`,top:`${I.top+D.top-L.top}px`}},B=()=>{const N=P();if(document.activeElement!==N){u.value=!1;return}const{prefix:I,split:D}=r;if(p.value=G5e(N,I,D),p.value&&p.value.splitIndex===-1){u.value=!0,n("search",p.value.pattern,p.value.prefix);return}u.value=!1};return t({input:a,tooltip:s}),(N,I)=>(Z(),ce("div",{ref_key:"wrapperRef",ref:C,class:J(m(i).b())},[re(m(ei),In(In(m(o),N.$attrs),{ref_key:"elInputRef",ref:a,"model-value":N.modelValue,onInput:b,onKeydown:k,onMousedown:T}),Il({_:2},[_n(N.$slots,(D,L)=>({name:L,fn:ue(z=>[He(N.$slots,L,ic(Yh(z)))])}))]),1040,["model-value"]),re(m(Fi),{ref_key:"tooltipRef",ref:s,visible:u.value&&(!!m(w).length||N.loading),"popper-class":[m(i).e("popper"),N.popperClass],"popper-options":N.popperOptions,placement:m(v),"fallback-placements":m(y),effect:"light",pure:"",offset:N.offset,"show-arrow":N.showArrow},{default:ue(()=>[ve("div",{style:Vt(d.value)},null,4)]),content:ue(()=>{var D;return[re(oLe,{ref_key:"dropdownRef",ref:l,options:m(w),disabled:N.disabled,loading:N.loading,onSelect:$,onClick:tn((D=a.value)==null?void 0:D.focus,["stop"])},Il({_:2},[_n(N.$slots,(L,z)=>({name:z,fn:ue(q=>[He(N.$slots,z,ic(Yh(q)))])}))]),1032,["options","disabled","loading","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var sLe=vt(aLe,[["__file","mention.vue"]]);const lLe=pn(sLe);var uLe=[Rxe,dY,aCe,M4e,dCe,bCe,EY,ACe,MCe,no,NY,zEe,UEe,iTe,aTe,aPe,mZ,dPe,Fl,_Te,lZ,il,_3,O3,DC,l$e,kxe,_$e,O$e,w$e,S$e,x$e,cAe,_Ae,OAe,Td,FZ,P3,$Me,AMe,MMe,GZ,Sf,xf,jt,GMe,qZ,ei,KZ,sRe,ERe,TRe,PRe,$Re,DRe,D3,MNe,FNe,xY,sU,gZ,RTe,MTe,qNe,nIe,ol,_c,dc,op,sNe,LIe,ZIe,UIe,_3e,k3e,CU,D3e,Y3e,Z3e,P1,W3,Y3,A4e,zC,QC,rp,A1,SEe,tje,aje,sje,Fi,Mje,Yje,t2,c8e,E8e,G8e,a5e,A5e,M5e,F5e,z5e,H5e,lLe];const uu="ElInfiniteScroll",cLe=50,fLe=200,dLe=0,hLe={delay:{type:Number,default:fLe},distance:{type:Number,default:dLe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},aD=(e,t)=>Object.entries(hLe).reduce((n,[r,o])=>{var i,a;const{type:s,default:l}=o,u=e.getAttribute(`infinite-scroll-${r}`);let d=(a=(i=t[u])!=null?i:u)!=null?a:l;return d=d==="false"?!1:d,d=s(d),n[r]=Number.isNaN(d)?l:d,n},{}),OH=e=>{const{observer:t}=e[uu];t&&(t.disconnect(),delete e[uu].observer)},pLe=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:i,lastScrollTop:a}=e[uu],{disabled:s,distance:l}=aD(e,o),{clientHeight:u,scrollHeight:d,scrollTop:p}=r,v=p-a;if(e[uu].lastScrollTop=p,i||s||v<0)return;let y=!1;if(n===e)y=d-(u+p)<=l;else{const{clientTop:w,scrollHeight:b}=e,k=YA(e,r);y=p+u>=k+w+b-l}y&&t.call(o)};function eA(e,t){const{containerEl:n,instance:r}=e[uu],{disabled:o}=aD(e,r);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):OH(e))}const gLe={async mounted(e,t){const{instance:n,value:r}=t;nn(r)||$i(uu,"'v-infinite-scroll' binding value must be a function"),await zt();const{delay:o,immediate:i}=aD(e,n),a=NI(e,!0),s=a===window?document.documentElement:a,l=jh(pLe.bind(null,e,r),o);if(!!a){if(e[uu]={instance:n,container:a,containerEl:s,delay:o,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(jh(eA.bind(null,e,r),cLe));e[uu].observer=u,u.observe(e,{childList:!0,subtree:!0}),eA(e,r)}a.addEventListener("scroll",l)}},unmounted(e){if(!e[uu])return;const{container:t,onScroll:n}=e[uu];t==null||t.removeEventListener("scroll",n),OH(e)},async updated(e){if(!e[uu])await zt();else{const{containerEl:t,cb:n,observer:r}=e[uu];t.clientHeight&&r&&eA(e,n)}}},tR=gLe;tR.install=e=>{e.directive("InfiniteScroll",tR)};const vLe=tR;function mLe(e){let t;const n=ee(!1),r=nr({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(v){r.text=v}function i(){const v=r.parent,y=p.ns;if(!v.vLoadingAddClassList){let w=v.getAttribute("loading-number");w=Number.parseInt(w)-1,w?v.setAttribute("loading-number",w.toString()):(os(v,y.bm("parent","relative")),v.removeAttribute("loading-number")),os(v,y.bm("parent","hidden"))}a(),d.unmount()}function a(){var v,y;(y=(v=p.$el)==null?void 0:v.parentNode)==null||y.removeChild(p.$el)}function s(){var v;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(l,400),r.visible=!1,(v=e.closed)==null||v.call(e))}function l(){if(!n.value)return;const v=r.parent;n.value=!1,v.vLoadingAddClassList=void 0,i()}const u=Se({name:"ElLoading",setup(v,{expose:y}){const{ns:w,zIndex:b}=RC("loading");return y({ns:w,zIndex:b}),()=>{const k=r.spinner||r.svg,C=Yt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...k?{innerHTML:k}:{}},[Yt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),T=r.text?Yt("p",{class:w.b("text")},[r.text]):void 0;return Yt(Pi,{name:w.b("fade"),onAfterLeave:l},{default:ue(()=>[yn(re("div",{style:{backgroundColor:r.background||""},class:[w.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Yt("div",{class:w.b("spinner")},[C,T])]),[[hr,r.visible]])])})}}}),d=tC(u),p=d.mount(document.createElement("div"));return{...ea(r),setText:o,removeElLoadingChild:a,close:s,handleAfterLeave:l,vm:p,get $el(){return p.$el}}}let Ox;const nR=function(e={}){if(!tr)return;const t=yLe(e);if(t.fullscreen&&Ox)return Ox;const n=mLe({...t,closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(Ox=void 0)}});bLe(t,t.parent,n),$B(t,t.parent,n),t.parent.vLoadingAddClassList=()=>$B(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),zt(()=>n.visible.value=t.visible),t.fullscreen&&(Ox=n),n},yLe=e=>{var t,n,r,o;let i;return Gt(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(o=e.visible)!=null?o:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},bLe=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Eh(document.body,"position"),n.originalOverflow.value=Eh(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Eh(document.body,"position"),await zt();for(const i of["top","left"]){const a=i==="top"?"scrollTop":"scrollLeft";o[i]=`${e.target.getBoundingClientRect()[i]+document.body[a]+document.documentElement[a]-Number.parseInt(Eh(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])o[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Eh(t,"position");for(const[i,a]of Object.entries(o))n.$el.style[i]=a},$B=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?os(t,r.bm("parent","relative")):gu(t,r.bm("parent","relative")),e.fullscreen&&e.lock?gu(t,r.bm("parent","hidden")):os(t,r.bm("parent","hidden"))},dk=Symbol("ElLoading"),AB=(e,t)=>{var n,r,o,i;const a=t.instance,s=v=>Pn(t.value)?t.value[v]:void 0,l=v=>{const y=Gt(v)&&(a==null?void 0:a[v])||v;return y&&ee(y)},u=v=>l(s(v)||e.getAttribute(`element-loading-${dp(v)}`)),d=(n=s("fullscreen"))!=null?n:t.modifiers.fullscreen,p={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(r=s("target"))!=null?r:d?void 0:e,body:(o=s("body"))!=null?o:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock};e[dk]={options:p,instance:nR(p)}},_Le=(e,t)=>{for(const n of Object.keys(t))Jr(t[n])&&(t[n].value=e[n])},MB={mounted(e,t){t.value&&AB(e,t)},updated(e,t){const n=e[dk];t.oldValue!==t.value&&(t.value&&!t.oldValue?AB(e,t):t.value&&t.oldValue?Pn(t.value)&&_Le(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[dk])==null||t.instance.close(),e[dk]=null}},OLe={install(e){e.directive("loading",MB),e.config.globalProperties.$loading=nR},directive:MB,service:nR},wH=["success","info","warning","error"],Ga=Oo({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:tr?document.body:void 0}),wLe=pt({customClass:{type:String,default:Ga.customClass},center:{type:Boolean,default:Ga.center},dangerouslyUseHTMLString:{type:Boolean,default:Ga.dangerouslyUseHTMLString},duration:{type:Number,default:Ga.duration},icon:{type:Fr,default:Ga.icon},id:{type:String,default:Ga.id},message:{type:Ie([String,Object,Function]),default:Ga.message},onClose:{type:Ie(Function),default:Ga.onClose},showClose:{type:Boolean,default:Ga.showClose},type:{type:String,values:wH,default:Ga.type},plain:{type:Boolean,default:Ga.plain},offset:{type:Number,default:Ga.offset},zIndex:{type:Number,default:Ga.zIndex},grouping:{type:Boolean,default:Ga.grouping},repeatNum:{type:Number,default:Ga.repeatNum}}),SLe={destroy:()=>!0},sc=HF([]),xLe=e=>{const t=sc.findIndex(o=>o.id===e),n=sc[t];let r;return t>0&&(r=sc[t-1]),{current:n,prev:r}},kLe=e=>{const{prev:t}=xLe(e);return t?t.vm.exposed.bottom.value:0},CLe=(e,t)=>sc.findIndex(r=>r.id===e)>0?16:t,ELe=Se({name:"ElMessage"}),TLe=Se({...ELe,props:wLe,emits:SLe,setup(e,{expose:t}){const n=e,{Close:r}=zI,{ns:o,zIndex:i}=RC("message"),{currentZIndex:a,nextZIndex:s}=i,l=ee(),u=ee(!1),d=ee(0);let p;const v=W(()=>n.type?n.type==="error"?"danger":n.type:"info"),y=W(()=>{const B=n.type;return{[o.bm("icon",B)]:B&&ep[B]}}),w=W(()=>n.icon||ep[n.type]||""),b=W(()=>kLe(n.id)),k=W(()=>CLe(n.id,n.offset)+b.value),C=W(()=>d.value+k.value),T=W(()=>({top:`${k.value}px`,zIndex:a.value}));function $(){n.duration!==0&&({stop:p}=nv(()=>{A()},n.duration))}function P(){p==null||p()}function A(){u.value=!1}function R({code:B}){B===Qt.esc&&A()}return vn(()=>{$(),s(),u.value=!0}),at(()=>n.repeatNum,()=>{P(),$()}),Ar(document,"keydown",R),_o(l,()=>{d.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:C,close:A}),(B,N)=>(Z(),Fe(Pi,{name:m(o).b("fade"),onBeforeLeave:B.onClose,onAfterLeave:I=>B.$emit("destroy"),persisted:""},{default:ue(()=>[yn(ve("div",{id:B.id,ref_key:"messageRef",ref:l,class:J([m(o).b(),{[m(o).m(B.type)]:B.type},m(o).is("center",B.center),m(o).is("closable",B.showClose),m(o).is("plain",B.plain),B.customClass]),style:Vt(m(T)),role:"alert",onMouseenter:P,onMouseleave:$},[B.repeatNum>1?(Z(),Fe(m(EY),{key:0,value:B.repeatNum,type:m(v),class:J(m(o).e("badge"))},null,8,["value","type","class"])):je("v-if",!0),m(w)?(Z(),Fe(m(jt),{key:1,class:J([m(o).e("icon"),m(y)])},{default:ue(()=>[(Z(),Fe(Dn(m(w))))]),_:1},8,["class"])):je("v-if",!0),He(B.$slots,"default",{},()=>[B.dangerouslyUseHTMLString?(Z(),ce(Pt,{key:1},[je(" Caution here, message could've been compromised, never use user's input as message "),ve("p",{class:J(m(o).e("content")),innerHTML:B.message},null,10,["innerHTML"])],2112)):(Z(),ce("p",{key:0,class:J(m(o).e("content"))},ut(B.message),3))]),B.showClose?(Z(),Fe(m(jt),{key:2,class:J(m(o).e("closeBtn")),onClick:tn(A,["stop"])},{default:ue(()=>[re(m(r))]),_:1},8,["class","onClick"])):je("v-if",!0)],46,["id"]),[[hr,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var PLe=vt(TLe,[["__file","message.vue"]]);let $Le=1;const SH=e=>{const t=!e||Gt(e)||bo(e)||nn(e)?{message:e}:e,n={...Ga,...t};if(!n.appendTo)n.appendTo=document.body;else if(Gt(n.appendTo)){let r=document.querySelector(n.appendTo);Rl(r)||(r=document.body),n.appendTo=r}return n},ALe=e=>{const t=sc.indexOf(e);if(t===-1)return;sc.splice(t,1);const{handler:n}=e;n.close()},MLe=({appendTo:e,...t},n)=>{const r=`message_${$Le++}`,o=t.onClose,i=document.createElement("div"),a={...t,id:r,onClose:()=>{o==null||o(),ALe(d)},onDestroy:()=>{Zh(null,i)}},s=re(PLe,a,nn(a.message)||bo(a.message)?{default:nn(a.message)?a.message:()=>a.message}:null);s.appContext=n||Zy._context,Zh(s,i),e.appendChild(i.firstElementChild);const l=s.component,d={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return d},Zy=(e={},t)=>{if(!tr)return{close:()=>{}};if(en(cM.max)&&sc.length>=cM.max)return{close:()=>{}};const n=SH(e);if(n.grouping&&sc.length){const o=sc.find(({vnode:i})=>{var a;return((a=i.props)==null?void 0:a.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const r=MLe(n,t);return sc.push(r),r.handler};wH.forEach(e=>{Zy[e]=(t={},n)=>{const r=SH(t);return Zy({...r,type:e},n)}});function RLe(e){for(const t of sc)(!e||e===t.props.type)&&t.handler.close()}Zy.closeAll=RLe;Zy._context=null;const Ki=TW(Zy,"$message"),NLe=Se({name:"ElMessageBox",directives:{TrapFocus:lEe},components:{ElButton:no,ElFocusTrap:T1,ElInput:ei,ElOverlay:T3,ElIcon:jt,...zI},inheritAttrs:!1,props:{buttonSize:{type:String,validator:PW},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:o,size:i}=RC("message-box",W(()=>e.buttonSize)),{t:a}=n,{nextZIndex:s}=r,l=ee(!1),u=nr({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:sd(cf),cancelButtonLoadingIcon:sd(cf),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),d=W(()=>{const H=u.type;return{[o.bm("icon",H)]:H&&ep[H]}}),p=ja(),v=ja(),y=W(()=>u.icon||ep[u.type]||""),w=W(()=>!!u.message),b=ee(),k=ee(),C=ee(),T=ee(),$=ee(),P=W(()=>u.confirmButtonClass);at(()=>u.inputValue,async H=>{await zt(),e.boxType==="prompt"&&H!==null&&z()},{immediate:!0}),at(()=>l.value,H=>{var ne,X;H&&(e.boxType!=="prompt"&&(u.autofocus?C.value=(X=(ne=$.value)==null?void 0:ne.$el)!=null?X:b.value:C.value=b.value),u.zIndex=s()),e.boxType==="prompt"&&(H?zt().then(()=>{var V;T.value&&T.value.$el&&(u.autofocus?C.value=(V=q())!=null?V:b.value:C.value=b.value)}):(u.editorErrorMessage="",u.validateError=!1))});const A=W(()=>e.draggable),R=W(()=>e.overflow);$W(b,k,A,R),vn(async()=>{await zt(),e.closeOnHashChange&&window.addEventListener("hashchange",B)}),Ur(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",B)});function B(){!l.value||(l.value=!1,zt(()=>{u.action&&t("action",u.action)}))}const N=()=>{e.closeOnClickModal&&L(u.distinguishCancelAndClose?"close":"cancel")},I=t3(N),D=H=>{if(u.inputType!=="textarea")return H.preventDefault(),L("confirm")},L=H=>{var ne;e.boxType==="prompt"&&H==="confirm"&&!z()||(u.action=H,u.beforeClose?(ne=u.beforeClose)==null||ne.call(u,H,u,B):B())},z=()=>{if(e.boxType==="prompt"){const H=u.inputPattern;if(H&&!H.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const ne=u.inputValidator;if(typeof ne=="function"){const X=ne(u.inputValue);if(X===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof X=="string")return u.editorErrorMessage=X,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},q=()=>{const H=T.value.$refs;return H.input||H.textarea},ae=()=>{L("close")},K=()=>{e.closeOnPressEscape&&ae()};return e.lockScroll&&ZI(l),{...ea(u),ns:o,overlayEvent:I,visible:l,hasMessage:w,typeClass:d,contentId:p,inputId:v,btnSize:i,iconComponent:y,confirmButtonClasses:P,rootRef:b,focusStartRef:C,headerRef:k,inputRef:T,confirmRef:$,doClose:B,handleClose:ae,onCloseRequested:K,handleWrapperClick:N,handleInputEnter:D,handleAction:L,t:a}}});function ILe(e,t,n,r,o,i){const a=Tn("el-icon"),s=Tn("close"),l=Tn("el-input"),u=Tn("el-button"),d=Tn("el-focus-trap"),p=Tn("el-overlay");return Z(),Fe(Pi,{name:"fade-in-linear",onAfterLeave:v=>e.$emit("vanish"),persisted:""},{default:ue(()=>[yn(re(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ue(()=>[ve("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:J(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[re(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ue(()=>[ve("div",{ref:"rootRef",class:J([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Vt(e.customStyle),tabindex:"-1",onClick:tn(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(Z(),ce("div",{key:0,ref:"headerRef",class:J([e.ns.e("header"),{"show-close":e.showClose}])},[ve("div",{class:J(e.ns.e("title"))},[e.iconComponent&&e.center?(Z(),Fe(a,{key:0,class:J([e.ns.e("status"),e.typeClass])},{default:ue(()=>[(Z(),Fe(Dn(e.iconComponent)))]),_:1},8,["class"])):je("v-if",!0),ve("span",null,ut(e.title),1)],2),e.showClose?(Z(),ce("button",{key:0,type:"button",class:J(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:v=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:Vr(tn(v=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[re(a,{class:J(e.ns.e("close"))},{default:ue(()=>[re(s)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):je("v-if",!0)],2)):je("v-if",!0),ve("div",{id:e.contentId,class:J(e.ns.e("content"))},[ve("div",{class:J(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(Z(),Fe(a,{key:0,class:J([e.ns.e("status"),e.typeClass])},{default:ue(()=>[(Z(),Fe(Dn(e.iconComponent)))]),_:1},8,["class"])):je("v-if",!0),e.hasMessage?(Z(),ce("div",{key:1,class:J(e.ns.e("message"))},[He(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Z(),Fe(Dn(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(Z(),Fe(Dn(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:ue(()=>[St(ut(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):je("v-if",!0)],2),yn(ve("div",{class:J(e.ns.e("input"))},[re(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":v=>e.inputValue=v,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:J({invalid:e.validateError}),onKeydown:Vr(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),ve("div",{class:J(e.ns.e("errormsg")),style:Vt({visibility:e.editorErrorMessage?"visible":"hidden"})},ut(e.editorErrorMessage),7)],2),[[hr,e.showInput]])],10,["id"]),ve("div",{class:J(e.ns.e("btns"))},[e.showCancelButton?(Z(),Fe(u,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:J([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:v=>e.handleAction("cancel"),onKeydown:Vr(tn(v=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:ue(()=>[St(ut(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):je("v-if",!0),yn(re(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:J([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:v=>e.handleAction("confirm"),onKeydown:Vr(tn(v=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:ue(()=>[St(ut(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[hr,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[hr,e.visible]])]),_:3},8,["onAfterLeave"])}var DLe=vt(NLe,[["render",ILe],["__file","index.vue"]]);const VO=new Map,jLe=e=>{let t=document.body;return e.appendTo&&(Gt(e.appendTo)&&(t=document.querySelector(e.appendTo)),Rl(e.appendTo)&&(t=e.appendTo),Rl(t)||(t=document.body)),t},LLe=(e,t,n=null)=>{const r=re(DLe,e,nn(e.message)||bo(e.message)?{default:nn(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Zh(r,t),jLe(e).appendChild(t.firstElementChild),r.component},BLe=()=>document.createElement("div"),VLe=(e,t)=>{const n=BLe();e.onVanish=()=>{Zh(null,n),VO.delete(o)},e.onAction=i=>{const a=VO.get(o);let s;e.showInput?s={value:o.inputValue,action:i}:s=i,e.callback?e.callback(s,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(s)};const r=LLe(e,n,t),o=r.proxy;for(const i in e)ir(e,i)&&!ir(o.$props,i)&&(o[i]=e[i]);return o.visible=!0,o};function b0(e,t=null){if(!tr)return Promise.reject();let n;return Gt(e)||bo(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const i=VLe(e,t!=null?t:b0._context);VO.set(i,{options:e,callback:n,resolve:r,reject:o})})}const FLe=["alert","confirm","prompt"],zLe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};FLe.forEach(e=>{b0[e]=QLe(e)});function QLe(e){return(t,n,r,o)=>{let i="";return Pn(n)?(r=n,i=""):Bo(n)?i="":i=n,b0(Object.assign({title:i,message:t,type:"",...zLe[e]},r,{boxType:e}),o)}}b0.close=()=>{VO.forEach((e,t)=>{t.doClose()}),VO.clear()};b0._context=null;const wh=b0;wh.install=e=>{wh._context=e._context,e.config.globalProperties.$msgbox=wh,e.config.globalProperties.$messageBox=wh,e.config.globalProperties.$alert=wh.alert,e.config.globalProperties.$confirm=wh.confirm,e.config.globalProperties.$prompt=wh.prompt};const WLe=wh,xH=["success","info","warning","error"],YLe=pt({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Fr},id:{type:String,default:""},message:{type:Ie([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Ie(Function),default:()=>{}},onClose:{type:Ie(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...xH,""],default:""},zIndex:Number}),ZLe={destroy:()=>!0},ULe=Se({name:"ElNotification"}),HLe=Se({...ULe,props:YLe,emits:ZLe,setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=RC("notification"),{nextZIndex:i,currentZIndex:a}=o,{Close:s}=FI,l=ee(!1);let u;const d=W(()=>{const $=n.type;return $&&ep[n.type]?r.m($):""}),p=W(()=>n.type&&ep[n.type]||n.icon),v=W(()=>n.position.endsWith("right")?"right":"left"),y=W(()=>n.position.startsWith("top")?"top":"bottom"),w=W(()=>{var $;return{[y.value]:`${n.offset}px`,zIndex:($=n.zIndex)!=null?$:a.value}});function b(){n.duration>0&&({stop:u}=nv(()=>{l.value&&C()},n.duration))}function k(){u==null||u()}function C(){l.value=!1}function T({code:$}){$===Qt.delete||$===Qt.backspace?k():$===Qt.esc?l.value&&C():b()}return vn(()=>{b(),i(),l.value=!0}),Ar(document,"keydown",T),t({visible:l,close:C}),($,P)=>(Z(),Fe(Pi,{name:m(r).b("fade"),onBeforeLeave:$.onClose,onAfterLeave:A=>$.$emit("destroy"),persisted:""},{default:ue(()=>[yn(ve("div",{id:$.id,class:J([m(r).b(),$.customClass,m(v)]),style:Vt(m(w)),role:"alert",onMouseenter:k,onMouseleave:b,onClick:$.onClick},[m(p)?(Z(),Fe(m(jt),{key:0,class:J([m(r).e("icon"),m(d)])},{default:ue(()=>[(Z(),Fe(Dn(m(p))))]),_:1},8,["class"])):je("v-if",!0),ve("div",{class:J(m(r).e("group"))},[ve("h2",{class:J(m(r).e("title")),textContent:ut($.title)},null,10,["textContent"]),yn(ve("div",{class:J(m(r).e("content")),style:Vt($.title?void 0:{margin:0})},[He($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(Z(),ce(Pt,{key:1},[je(" Caution here, message could've been compromised, never use user's input as message "),ve("p",{innerHTML:$.message},null,8,["innerHTML"])],2112)):(Z(),ce("p",{key:0},ut($.message),1))])],6),[[hr,$.message]]),$.showClose?(Z(),Fe(m(jt),{key:0,class:J(m(r).e("closeBtn")),onClick:tn(C,["stop"])},{default:ue(()=>[re(m(s))]),_:1},8,["class","onClick"])):je("v-if",!0)],2)],46,["id","onClick"]),[[hr,l.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var XLe=vt(HLe,[["__file","notification.vue"]]);const n2={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},rR=16;let GLe=1;const Uy=function(e={},t=null){if(!tr)return{close:()=>{}};(typeof e=="string"||bo(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;n2[n].forEach(({vm:d})=>{var p;r+=(((p=d.el)==null?void 0:p.offsetHeight)||0)+rR}),r+=rR;const o=`notification_${GLe++}`,i=e.onClose,a={...e,offset:r,id:o,onClose:()=>{qLe(o,n,i)}};let s=document.body;Rl(e.appendTo)?s=e.appendTo:Gt(e.appendTo)&&(s=document.querySelector(e.appendTo)),Rl(s)||(s=document.body);const l=document.createElement("div"),u=re(XLe,a,bo(a.message)?{default:()=>a.message}:null);return u.appContext=t!=null?t:Uy._context,u.props.onDestroy=()=>{Zh(null,l)},Zh(u,l),n2[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};xH.forEach(e=>{Uy[e]=(t={})=>((typeof t=="string"||bo(t))&&(t={message:t}),Uy({...t,type:e}))});function qLe(e,t,n){const r=n2[t],o=r.findIndex(({vm:u})=>{var d;return((d=u.component)==null?void 0:d.props.id)===e});if(o===-1)return;const{vm:i}=r[o];if(!i)return;n==null||n(i);const a=i.el.offsetHeight,s=t.split("-")[0];r.splice(o,1);const l=r.length;if(!(l<1))for(let u=o;u<l;u++){const{el:d,component:p}=r[u].vm,v=Number.parseInt(d.style[s],10)-a-rR;p.props.offset=v}}function KLe(){for(const e of Object.values(n2))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}Uy.closeAll=KLe;Uy._context=null;const JLe=TW(Uy,"$notify");var e6e=[vLe,OLe,Ki,WLe,JLe,aU],t6e=Exe([...uLe,...e6e]),n6e={name:"zh-cn",el:{breadcrumb:{label:"\u9762\u5305\u5C51"},colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A",defaultLabel:"\u989C\u8272\u9009\u62E9\u5668",description:"\u5F53\u524D\u989C\u8272 {color}\uFF0C\u6309 Enter \u952E\u9009\u62E9\u65B0\u989C\u8272",alphaLabel:"\u9009\u62E9\u900F\u660E\u5EA6\u7684\u503C"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",dateTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u65E5\u671F",monthTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u6708\u4EFD",yearTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u5E74\u4EFD",selectedDate:"\u5DF2\u9009\u65E5\u671F",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},weeksFull:{sun:"\u661F\u671F\u65E5",mon:"\u661F\u671F\u4E00",tue:"\u661F\u671F\u4E8C",wed:"\u661F\u671F\u4E09",thu:"\u661F\u671F\u56DB",fri:"\u661F\u671F\u4E94",sat:"\u661F\u671F\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},inputNumber:{decrease:"\u51CF\u5C11\u6570\u503C",increase:"\u589E\u52A0\u6570\u503C"},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},dropdown:{toggleDropdown:"\u5207\u6362\u4E0B\u62C9\u9009\u9879"},mention:{loading:"\u52A0\u8F7D\u4E2D"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",page:"\u9875",prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",currentPage:"\u7B2C {pager} \u9875",prevPages:"\u5411\u524D {pager} \u9875",nextPages:"\u5411\u540E {pager} \u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},dialog:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},drawer:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!",close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},slider:{defaultLabel:"\u6ED1\u5757\u4ECB\u4E8E {min} \u81F3 {max}",defaultRangeStartLabel:"\u9009\u62E9\u8D77\u59CB\u503C",defaultRangeEndLabel:"\u9009\u62E9\u7ED3\u675F\u503C"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tour:{next:"\u4E0B\u4E00\u6B65",previous:"\u4E0A\u4E00\u6B65",finish:"\u7ED3\u675F\u5BFC\u89C8"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"},carousel:{leftArrow:"\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247",rightArrow:"\u4E0B\u4E00\u5F20\u5E7B\u706F\u7247",indicator:"\u5E7B\u706F\u7247\u5207\u6362\u81F3\u7D22\u5F15 {index}"}}},qt={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(window,function(){return function(n){var r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return n[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=n,o.c=r,o.d=function(i,a,s){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:s})},o.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(1&a&&(i=o(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(o.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var l in i)o.d(s,l,function(u){return i[u]}.bind(null,l));return s},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=221)}([function(n,r,o){o.d(r,"a",function(){return A}),o.d(r,"b",function(){return P}),o.d(r,"c",function(){return ze}),o.d(r,"d",function(){return $e}),o.d(r,"e",function(){return C}),o.d(r,"f",function(){return $}),o.d(r,"g",function(){return C}),o.d(r,"h",function(){return De}),o.d(r,"i",function(){return a}),o.d(r,"j",function(){return Be}),o.d(r,"k",function(){return z});var i,a,s,l,u,d,p,v={},y=[],w=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(_e,me){for(var Re in me)_e[Re]=me[Re];return _e}function k(_e){var me=_e.parentNode;me&&me.removeChild(_e)}function C(_e,me,Re){var we,fe,oe,ke={};for(oe in me)oe=="key"?we=me[oe]:oe=="ref"?fe=me[oe]:ke[oe]=me[oe];if(arguments.length>2&&(ke.children=arguments.length>3?i.call(arguments,2):Re),typeof _e=="function"&&_e.defaultProps!=null)for(oe in _e.defaultProps)ke[oe]===void 0&&(ke[oe]=_e.defaultProps[oe]);return T(_e,ke,we,fe,null)}function T(_e,me,Re,we,fe){var oe={type:_e,props:me,key:Re,ref:we,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:fe==null?++s:fe};return fe==null&&a.vnode!=null&&a.vnode(oe),oe}function $(){return{current:null}}function P(_e){return _e.children}function A(_e,me){this.props=_e,this.context=me}function R(_e,me){if(me==null)return _e.__?R(_e.__,_e.__.__k.indexOf(_e)+1):null;for(var Re;me<_e.__k.length;me++)if((Re=_e.__k[me])!=null&&Re.__e!=null)return Re.__e;return typeof _e.type=="function"?R(_e):null}function B(_e){var me,Re;if((_e=_e.__)!=null&&_e.__c!=null){for(_e.__e=_e.__c.base=null,me=0;me<_e.__k.length;me++)if((Re=_e.__k[me])!=null&&Re.__e!=null){_e.__e=_e.__c.base=Re.__e;break}return B(_e)}}function N(_e){(!_e.__d&&(_e.__d=!0)&&l.push(_e)&&!I.__r++||d!==a.debounceRendering)&&((d=a.debounceRendering)||u)(I)}function I(){for(var _e;I.__r=l.length;)_e=l.sort(function(me,Re){return me.__v.__b-Re.__v.__b}),l=[],_e.some(function(me){var Re,we,fe,oe,ke,We;me.__d&&(ke=(oe=(Re=me).__v).__e,(We=Re.__P)&&(we=[],(fe=b({},oe)).__v=oe.__v+1,X(We,oe,fe,Re.__n,We.ownerSVGElement!==void 0,oe.__h!=null?[ke]:null,we,ke==null?R(oe):ke,oe.__h),V(we,oe),oe.__e!=ke&&B(oe)))})}function D(_e,me,Re,we,fe,oe,ke,We,et,Ve){var Me,Ke,be,qe,ct,Je,Xe,gt=we&&we.__k||y,Ct=gt.length;for(Re.__k=[],Me=0;Me<me.length;Me++)if((qe=Re.__k[Me]=(qe=me[Me])==null||typeof qe=="boolean"?null:typeof qe=="string"||typeof qe=="number"||typeof qe=="bigint"?T(null,qe,null,null,qe):Array.isArray(qe)?T(P,{children:qe},null,null,null):qe.__b>0?T(qe.type,qe.props,qe.key,null,qe.__v):qe)!=null){if(qe.__=Re,qe.__b=Re.__b+1,(be=gt[Me])===null||be&&qe.key==be.key&&qe.type===be.type)gt[Me]=void 0;else for(Ke=0;Ke<Ct;Ke++){if((be=gt[Ke])&&qe.key==be.key&&qe.type===be.type){gt[Ke]=void 0;break}be=null}X(_e,qe,be=be||v,fe,oe,ke,We,et,Ve),ct=qe.__e,(Ke=qe.ref)&&be.ref!=Ke&&(Xe||(Xe=[]),be.ref&&Xe.push(be.ref,null,qe),Xe.push(Ke,qe.__c||ct,qe)),ct!=null?(Je==null&&(Je=ct),typeof qe.type=="function"&&qe.__k===be.__k?qe.__d=et=L(qe,et,_e):et=q(_e,qe,be,gt,ct,et),typeof Re.type=="function"&&(Re.__d=et)):et&&be.__e==et&&et.parentNode!=_e&&(et=R(be))}for(Re.__e=Je,Me=Ct;Me--;)gt[Me]!=null&&(typeof Re.type=="function"&&gt[Me].__e!=null&&gt[Me].__e==Re.__d&&(Re.__d=R(we,Me+1)),he(gt[Me],gt[Me]));if(Xe)for(Me=0;Me<Xe.length;Me++)se(Xe[Me],Xe[++Me],Xe[++Me])}function L(_e,me,Re){for(var we,fe=_e.__k,oe=0;fe&&oe<fe.length;oe++)(we=fe[oe])&&(we.__=_e,me=typeof we.type=="function"?L(we,me,Re):q(Re,we,we,fe,we.__e,me));return me}function z(_e,me){return me=me||[],_e==null||typeof _e=="boolean"||(Array.isArray(_e)?_e.some(function(Re){z(Re,me)}):me.push(_e)),me}function q(_e,me,Re,we,fe,oe){var ke,We,et;if(me.__d!==void 0)ke=me.__d,me.__d=void 0;else if(Re==null||fe!=oe||fe.parentNode==null)e:if(oe==null||oe.parentNode!==_e)_e.appendChild(fe),ke=null;else{for(We=oe,et=0;(We=We.nextSibling)&&et<we.length;et+=2)if(We==fe)break e;_e.insertBefore(fe,oe),ke=oe}return ke!==void 0?ke:fe.nextSibling}function ae(_e,me,Re){me[0]==="-"?_e.setProperty(me,Re):_e[me]=Re==null?"":typeof Re!="number"||w.test(me)?Re:Re+"px"}function K(_e,me,Re,we,fe){var oe;e:if(me==="style")if(typeof Re=="string")_e.style.cssText=Re;else{if(typeof we=="string"&&(_e.style.cssText=we=""),we)for(me in we)Re&&me in Re||ae(_e.style,me,"");if(Re)for(me in Re)we&&Re[me]===we[me]||ae(_e.style,me,Re[me])}else if(me[0]==="o"&&me[1]==="n")oe=me!==(me=me.replace(/Capture$/,"")),me=me.toLowerCase()in _e?me.toLowerCase().slice(2):me.slice(2),_e.l||(_e.l={}),_e.l[me+oe]=Re,Re?we||_e.addEventListener(me,oe?ne:H,oe):_e.removeEventListener(me,oe?ne:H,oe);else if(me!=="dangerouslySetInnerHTML"){if(fe)me=me.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(me!=="href"&&me!=="list"&&me!=="form"&&me!=="tabIndex"&&me!=="download"&&me in _e)try{_e[me]=Re==null?"":Re;break e}catch{}typeof Re=="function"||(Re!=null&&(Re!==!1||me[0]==="a"&&me[1]==="r")?_e.setAttribute(me,Re):_e.removeAttribute(me))}}function H(_e){this.l[_e.type+!1](a.event?a.event(_e):_e)}function ne(_e){this.l[_e.type+!0](a.event?a.event(_e):_e)}function X(_e,me,Re,we,fe,oe,ke,We,et){var Ve,Me,Ke,be,qe,ct,Je,Xe,gt,Ct,Zt,Et=me.type;if(me.constructor!==void 0)return null;Re.__h!=null&&(et=Re.__h,We=me.__e=Re.__e,me.__h=null,oe=[We]),(Ve=a.__b)&&Ve(me);try{e:if(typeof Et=="function"){if(Xe=me.props,gt=(Ve=Et.contextType)&&we[Ve.__c],Ct=Ve?gt?gt.props.value:Ve.__:we,Re.__c?Je=(Me=me.__c=Re.__c).__=Me.__E:("prototype"in Et&&Et.prototype.render?me.__c=Me=new Et(Xe,Ct):(me.__c=Me=new A(Xe,Ct),Me.constructor=Et,Me.render=pe),gt&&gt.sub(Me),Me.props=Xe,Me.state||(Me.state={}),Me.context=Ct,Me.__n=we,Ke=Me.__d=!0,Me.__h=[]),Me.__s==null&&(Me.__s=Me.state),Et.getDerivedStateFromProps!=null&&(Me.__s==Me.state&&(Me.__s=b({},Me.__s)),b(Me.__s,Et.getDerivedStateFromProps(Xe,Me.__s))),be=Me.props,qe=Me.state,Ke)Et.getDerivedStateFromProps==null&&Me.componentWillMount!=null&&Me.componentWillMount(),Me.componentDidMount!=null&&Me.__h.push(Me.componentDidMount);else{if(Et.getDerivedStateFromProps==null&&Xe!==be&&Me.componentWillReceiveProps!=null&&Me.componentWillReceiveProps(Xe,Ct),!Me.__e&&Me.shouldComponentUpdate!=null&&Me.shouldComponentUpdate(Xe,Me.__s,Ct)===!1||me.__v===Re.__v){Me.props=Xe,Me.state=Me.__s,me.__v!==Re.__v&&(Me.__d=!1),Me.__v=me,me.__e=Re.__e,me.__k=Re.__k,me.__k.forEach(function(ln){ln&&(ln.__=me)}),Me.__h.length&&ke.push(Me);break e}Me.componentWillUpdate!=null&&Me.componentWillUpdate(Xe,Me.__s,Ct),Me.componentDidUpdate!=null&&Me.__h.push(function(){Me.componentDidUpdate(be,qe,ct)})}Me.context=Ct,Me.props=Xe,Me.state=Me.__s,(Ve=a.__r)&&Ve(me),Me.__d=!1,Me.__v=me,Me.__P=_e,Ve=Me.render(Me.props,Me.state,Me.context),Me.state=Me.__s,Me.getChildContext!=null&&(we=b(b({},we),Me.getChildContext())),Ke||Me.getSnapshotBeforeUpdate==null||(ct=Me.getSnapshotBeforeUpdate(be,qe)),Zt=Ve!=null&&Ve.type===P&&Ve.key==null?Ve.props.children:Ve,D(_e,Array.isArray(Zt)?Zt:[Zt],me,Re,we,fe,oe,ke,We,et),Me.base=me.__e,me.__h=null,Me.__h.length&&ke.push(Me),Je&&(Me.__E=Me.__=null),Me.__e=!1}else oe==null&&me.__v===Re.__v?(me.__k=Re.__k,me.__e=Re.__e):me.__e=G(Re.__e,me,Re,we,fe,oe,ke,et);(Ve=a.diffed)&&Ve(me)}catch(ln){me.__v=null,(et||oe!=null)&&(me.__e=We,me.__h=!!et,oe[oe.indexOf(We)]=null),a.__e(ln,me,Re)}}function V(_e,me){a.__c&&a.__c(me,_e),_e.some(function(Re){try{_e=Re.__h,Re.__h=[],_e.some(function(we){we.call(Re)})}catch(we){a.__e(we,Re.__v)}})}function G(_e,me,Re,we,fe,oe,ke,We){var et,Ve,Me,Ke=Re.props,be=me.props,qe=me.type,ct=0;if(qe==="svg"&&(fe=!0),oe!=null){for(;ct<oe.length;ct++)if((et=oe[ct])&&"setAttribute"in et==!!qe&&(qe?et.localName===qe:et.nodeType===3)){_e=et,oe[ct]=null;break}}if(_e==null){if(qe===null)return document.createTextNode(be);_e=fe?document.createElementNS("http://www.w3.org/2000/svg",qe):document.createElement(qe,be.is&&be),oe=null,We=!1}if(qe===null)Ke===be||We&&_e.data===be||(_e.data=be);else{if(oe=oe&&i.call(_e.childNodes),Ve=(Ke=Re.props||v).dangerouslySetInnerHTML,Me=be.dangerouslySetInnerHTML,!We){if(oe!=null)for(Ke={},ct=0;ct<_e.attributes.length;ct++)Ke[_e.attributes[ct].name]=_e.attributes[ct].value;(Me||Ve)&&(Me&&(Ve&&Me.__html==Ve.__html||Me.__html===_e.innerHTML)||(_e.innerHTML=Me&&Me.__html||""))}if(function(Je,Xe,gt,Ct,Zt){var Et;for(Et in gt)Et==="children"||Et==="key"||Et in Xe||K(Je,Et,null,gt[Et],Ct);for(Et in Xe)Zt&&typeof Xe[Et]!="function"||Et==="children"||Et==="key"||Et==="value"||Et==="checked"||gt[Et]===Xe[Et]||K(Je,Et,Xe[Et],gt[Et],Ct)}(_e,be,Ke,fe,We),Me)me.__k=[];else if(ct=me.props.children,D(_e,Array.isArray(ct)?ct:[ct],me,Re,we,fe&&qe!=="foreignObject",oe,ke,oe?oe[0]:Re.__k&&R(Re,0),We),oe!=null)for(ct=oe.length;ct--;)oe[ct]!=null&&k(oe[ct]);We||("value"in be&&(ct=be.value)!==void 0&&(ct!==Ke.value||ct!==_e.value||qe==="progress"&&!ct)&&K(_e,"value",ct,Ke.value,!1),"checked"in be&&(ct=be.checked)!==void 0&&ct!==_e.checked&&K(_e,"checked",ct,Ke.checked,!1))}return _e}function se(_e,me,Re){try{typeof _e=="function"?_e(me):_e.current=me}catch(we){a.__e(we,Re)}}function he(_e,me,Re){var we,fe;if(a.unmount&&a.unmount(_e),(we=_e.ref)&&(we.current&&we.current!==_e.__e||se(we,null,me)),(we=_e.__c)!=null){if(we.componentWillUnmount)try{we.componentWillUnmount()}catch(oe){a.__e(oe,me)}we.base=we.__P=null}if(we=_e.__k)for(fe=0;fe<we.length;fe++)we[fe]&&he(we[fe],me,typeof _e.type!="function");Re||_e.__e==null||k(_e.__e),_e.__e=_e.__d=void 0}function pe(_e,me,Re){return this.constructor(_e,Re)}function Be(_e,me,Re){var we,fe,oe;a.__&&a.__(_e,me),fe=(we=typeof Re=="function")?null:Re&&Re.__k||me.__k,oe=[],X(me,_e=(!we&&Re||me).__k=C(P,null,[_e]),fe||v,v,me.ownerSVGElement!==void 0,!we&&Re?[Re]:fe?null:me.firstChild?i.call(me.childNodes):null,oe,!we&&Re?Re:fe?fe.__e:me.firstChild,we),V(oe,_e)}function De(_e,me){Be(_e,me,De)}function ze(_e,me,Re){var we,fe,oe,ke=b({},_e.props);for(oe in me)oe=="key"?we=me[oe]:oe=="ref"?fe=me[oe]:ke[oe]=me[oe];return arguments.length>2&&(ke.children=arguments.length>3?i.call(arguments,2):Re),T(_e.type,ke,we||_e.key,fe||_e.ref,null)}function $e(_e,me){var Re={__c:me="__cC"+p++,__:_e,Consumer:function(we,fe){return we.children(fe)},Provider:function(we){var fe,oe;return this.getChildContext||(fe=[],(oe={})[me]=this,this.getChildContext=function(){return oe},this.shouldComponentUpdate=function(ke){this.props.value!==ke.value&&fe.some(N)},this.sub=function(ke){fe.push(ke);var We=ke.componentWillUnmount;ke.componentWillUnmount=function(){fe.splice(fe.indexOf(ke),1),We&&We.call(ke)}}),we.children}};return Re.Provider.__=Re.Consumer.contextType=Re}i=y.slice,a={__e:function(_e,me){for(var Re,we,fe;me=me.__;)if((Re=me.__c)&&!Re.__)try{if((we=Re.constructor)&&we.getDerivedStateFromError!=null&&(Re.setState(we.getDerivedStateFromError(_e)),fe=Re.__d),Re.componentDidCatch!=null&&(Re.componentDidCatch(_e),fe=Re.__d),fe)return Re.__E=Re}catch(oe){_e=oe}throw _e}},s=0,A.prototype.setState=function(_e,me){var Re;Re=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=b({},this.state),typeof _e=="function"&&(_e=_e(b({},Re),this.props)),_e&&b(Re,_e),_e!=null&&this.__v&&(me&&this.__h.push(me),N(this))},A.prototype.forceUpdate=function(_e){this.__v&&(this.__e=!0,_e&&this.__h.push(_e),N(this))},A.prototype.render=P,l=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,I.__r=0,p=0},function(n,r,o){(function(i,a){o.d(r,"a",function(){return N}),o.d(r,"b",function(){return Bp}),o.d(r,"c",function(){return Xo}),o.d(r,"d",function(){return Ht}),o.d(r,"e",function(){return Ue}),o.d(r,"f",function(){return xe}),o.d(r,"g",function(){return Xt}),o.d(r,"h",function(){return hl}),o.d(r,"i",function(){return Zt}),o.d(r,"j",function(){return Nt}),o.d(r,"k",function(){return Ql}),o.d(r,"l",function(){return Pp}),o.d(r,"m",function(){return Je}),o.d(r,"n",function(){return Sc}),o.d(r,"o",function(){return L}),o.d(r,"p",function(){return Mv}),o.d(r,"q",function(){return Wl}),o.d(r,"r",function(){return Md}),o.d(r,"s",function(){return fs}),o.d(r,"t",function(){return Fo}),o.d(r,"u",function(){return Ad}),o.d(r,"v",function(){return Av}),o.d(r,"w",function(){return Np}),o.d(r,"x",function(){return xc}),o.d(r,"y",function(){return cs}),o.d(r,"z",function(){return ii}),o.d(r,"A",function(){return Sa}),o.d(r,"B",function(){return ll}),o.d(r,"C",function(){return Ve}),o.d(r,"D",function(){return Rv}),o.d(r,"E",function(){return Hr}),o.d(r,"F",function(){return Xr}),o.d(r,"G",function(){return Ep}),o.d(r,"H",function(){return Ri}),o.d(r,"I",function(){return Ip}),o.d(r,"J",function(){return di}),o.d(r,"K",function(){return Ze}),o.d(r,"L",function(){return lo}),o.d(r,"M",function(){return Nd});var s=[];Object.freeze(s);var l={};function u(){return++bn.mobxGuid}function d(Q){throw p(!1,Q),"X"}function p(Q,Y){if(!Q)throw new Error("[mobx] "+(Y||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(l);function v(Q){var Y=!1;return function(){if(!Y)return Y=!0,Q.apply(this,arguments)}}var y=function(){};function w(Q){return Q!==null&&typeof Q=="object"}function b(Q){if(Q===null||typeof Q!="object")return!1;var Y=Object.getPrototypeOf(Q);return Y===Object.prototype||Y===null}function k(Q,Y,le){Object.defineProperty(Q,Y,{enumerable:!1,writable:!0,configurable:!0,value:le})}function C(Q,Y){var le="isMobX"+Q;return Y.prototype[le]=!0,function(Ce){return w(Ce)&&Ce[le]===!0}}function T(Q){return Q instanceof Map}function $(Q){return Q instanceof Set}function P(Q){var Y=new Set;for(var le in Q)Y.add(le);return Object.getOwnPropertySymbols(Q).forEach(function(Ce){Object.getOwnPropertyDescriptor(Q,Ce).enumerable&&Y.add(Ce)}),Array.from(Y)}function A(Q){return Q&&Q.toString?Q.toString():new String(Q).toString()}function R(Q){return Q===null?null:typeof Q=="object"?""+Q:Q}var B=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(Q){return Object.getOwnPropertyNames(Q).concat(Object.getOwnPropertySymbols(Q))}:Object.getOwnPropertyNames,N=Symbol("mobx administration"),I=function(){function Q(Y){Y===void 0&&(Y="Atom@"+u()),this.name=Y,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Ke.NOT_TRACKING}return Q.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(Y){return Y()})},Q.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(Y){return Y()})},Q.prototype.reportObserved=function(){return Wi(this)},Q.prototype.reportChanged=function(){Yn(),function(Y){Y.lowestObserverState!==Ke.STALE&&(Y.lowestObserverState=Ke.STALE,Y.observers.forEach(function(le){le.dependenciesState===Ke.UP_TO_DATE&&(le.isTracing!==be.NONE&&oi(le,Y),le.onBecomeStale()),le.dependenciesState=Ke.STALE}))}(this),fr()},Q.prototype.toString=function(){return this.name},Q}(),D=C("Atom",I);function L(Q,Y,le){Y===void 0&&(Y=y),le===void 0&&(le=y);var Ce,Qe=new I(Q);return Y!==y&&Pv("onBecomeObserved",Qe,Y,Ce),le!==y&&Hr(Qe,le),Qe}var z={identity:function(Q,Y){return Q===Y},structural:function(Q,Y){return At(Q,Y)},default:function(Q,Y){return Object.is(Q,Y)},shallow:function(Q,Y){return At(Q,Y,1)}},q=function(Q,Y){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,Ce){le.__proto__=Ce}||function(le,Ce){for(var Qe in Ce)Ce.hasOwnProperty(Qe)&&(le[Qe]=Ce[Qe])},q(Q,Y)};/*! *****************************************************************************
  73. Copyright (c) Microsoft Corporation. All rights reserved.
  74. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  75. this file except in compliance with the License. You may obtain a copy of the
  76. License at http://www.apache.org/licenses/LICENSE-2.0
  77. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  78. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  79. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  80. MERCHANTABLITY OR NON-INFRINGEMENT.
  81. See the Apache Version 2.0 License for specific language governing permissions
  82. and limitations under the License.
  83. ***************************************************************************** */var ae=function(){return ae=Object.assign||function(Q){for(var Y,le=1,Ce=arguments.length;le<Ce;le++)for(var Qe in Y=arguments[le])Object.prototype.hasOwnProperty.call(Y,Qe)&&(Q[Qe]=Y[Qe]);return Q},ae.apply(this,arguments)};function K(Q){var Y=typeof Symbol=="function"&&Q[Symbol.iterator],le=0;return Y?Y.call(Q):{next:function(){return Q&&le>=Q.length&&(Q=void 0),{value:Q&&Q[le++],done:!Q}}}}function H(Q,Y){var le=typeof Symbol=="function"&&Q[Symbol.iterator];if(!le)return Q;var Ce,Qe,st=le.call(Q),Ot=[];try{for(;(Y===void 0||Y-- >0)&&!(Ce=st.next()).done;)Ot.push(Ce.value)}catch(Wt){Qe={error:Wt}}finally{try{Ce&&!Ce.done&&(le=st.return)&&le.call(st)}finally{if(Qe)throw Qe.error}}return Ot}function ne(){for(var Q=[],Y=0;Y<arguments.length;Y++)Q=Q.concat(H(arguments[Y]));return Q}var X=Symbol("mobx did run lazy initializers"),V=Symbol("mobx pending decorators"),G={},se={};function he(Q,Y){var le=Y?G:se;return le[Q]||(le[Q]={configurable:!0,enumerable:Y,get:function(){return pe(this),this[Q]},set:function(Ce){pe(this),this[Q]=Ce}})}function pe(Q){var Y,le;if(Q[X]!==!0){var Ce=Q[V];if(Ce){k(Q,X,!0);var Qe=ne(Object.getOwnPropertySymbols(Ce),Object.keys(Ce));try{for(var st=K(Qe),Ot=st.next();!Ot.done;Ot=st.next()){var Wt=Ce[Ot.value];Wt.propertyCreator(Q,Wt.prop,Wt.descriptor,Wt.decoratorTarget,Wt.decoratorArguments)}}catch(mn){Y={error:mn}}finally{try{Ot&&!Ot.done&&(le=st.return)&&le.call(st)}finally{if(Y)throw Y.error}}}}}function Be(Q,Y){return function(){var le,Ce=function(Qe,st,Ot,Wt){if(Wt===!0)return Y(Qe,st,Ot,Qe,le),null;if(!Object.prototype.hasOwnProperty.call(Qe,V)){var mn=Qe[V];k(Qe,V,ae({},mn))}return Qe[V][st]={prop:st,propertyCreator:Y,descriptor:Ot,decoratorTarget:Qe,decoratorArguments:le},he(st,Q)};return De(arguments)?(le=s,Ce.apply(null,arguments)):(le=Array.prototype.slice.call(arguments),Ce)}}function De(Q){return(Q.length===2||Q.length===3)&&(typeof Q[1]=="string"||typeof Q[1]=="symbol")||Q.length===4&&Q[3]===!0}function ze(Q,Y,le){return xc(Q)?Q:Array.isArray(Q)?Ve.array(Q,{name:le}):b(Q)?Ve.object(Q,void 0,{name:le}):T(Q)?Ve.map(Q,{name:le}):$(Q)?Ve.set(Q,{name:le}):Q}function $e(Q){return Q}function _e(Q){p(Q);var Y=Be(!0,function(Ce,Qe,st,Ot,Wt){var mn=st?st.initializer?st.initializer.call(Ce):st.value:void 0;Fa(Ce).addObservableProp(Qe,mn,Q)}),le=(i!==void 0&&i.env,Y);return le.enhancer=Q,le}var me={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Re(Q){return Q==null?me:typeof Q=="string"?{name:Q,deep:!0,proxy:!0}:Q}Object.freeze(me);var we=_e(ze),fe=_e(function(Q,Y,le){return Q==null||Sa(Q)||cs(Q)||ii(Q)||ia(Q)?Q:Array.isArray(Q)?Ve.array(Q,{name:le,deep:!1}):b(Q)?Ve.object(Q,void 0,{name:le,deep:!1}):T(Q)?Ve.map(Q,{name:le,deep:!1}):$(Q)?Ve.set(Q,{name:le,deep:!1}):d(!1)}),oe=_e($e),ke=_e(function(Q,Y,le){return At(Q,Y)?Y:Q});function We(Q){return Q.defaultDecorator?Q.defaultDecorator.enhancer:Q.deep===!1?$e:ze}var et={box:function(Q,Y){arguments.length>2&&Me("box");var le=Re(Y);return new eo(Q,We(le),le.name,!0,le.equals)},array:function(Q,Y){arguments.length>2&&Me("array");var le=Re(Y);return Mf(Q,We(le),le.name)},map:function(Q,Y){arguments.length>2&&Me("map");var le=Re(Y);return new Bp(Q,We(le),le.name)},set:function(Q,Y){arguments.length>2&&Me("set");var le=Re(Y);return new fl(Q,We(le),le.name)},object:function(Q,Y,le){typeof arguments[1]=="string"&&Me("object");var Ce=Re(le);if(Ce.proxy===!1)return Wl({},Q,Y,Ce);var Qe=$p(Ce),st=Wl({},void 0,void 0,Ce),Ot=kc(st);return $v(Ot,Q,Y,Qe),Ot},ref:oe,shallow:fe,deep:we,struct:ke},Ve=function(Q,Y,le){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return we.apply(null,arguments);if(xc(Q))return Q;var Ce=b(Q)?Ve.object(Q,Y,le):Array.isArray(Q)?Ve.array(Q,Y):T(Q)?Ve.map(Q,Y):$(Q)?Ve.set(Q,Y):Q;if(Ce!==Q)return Ce;d(!1)};function Me(Q){d("Expected one or two arguments to observable."+Q+". Did you accidentally try to use observable."+Q+" as decorator?")}Object.keys(et).forEach(function(Q){return Ve[Q]=et[Q]});var Ke,be,qe=Be(!1,function(Q,Y,le,Ce,Qe){var st=le.get,Ot=le.set,Wt=Qe[0]||{};Fa(Q).addComputedProp(Q,Y,ae({get:st,set:Ot,context:Q},Wt))}),ct=qe({equals:z.structural}),Je=function(Q,Y,le){if(typeof Y=="string"||Q!==null&&typeof Q=="object"&&arguments.length===1)return qe.apply(null,arguments);var Ce=typeof Y=="object"?Y:{};return Ce.get=Q,Ce.set=typeof Y=="function"?Y:Ce.set,Ce.name=Ce.name||Q.name||"",new ci(Ce)};Je.struct=ct,function(Q){Q[Q.NOT_TRACKING=-1]="NOT_TRACKING",Q[Q.UP_TO_DATE=0]="UP_TO_DATE",Q[Q.POSSIBLY_STALE=1]="POSSIBLY_STALE",Q[Q.STALE=2]="STALE"}(Ke||(Ke={})),function(Q){Q[Q.NONE=0]="NONE",Q[Q.LOG=1]="LOG",Q[Q.BREAK=2]="BREAK"}(be||(be={}));var Xe=function(Q){this.cause=Q};function gt(Q){return Q instanceof Xe}function Ct(Q){switch(Q.dependenciesState){case Ke.UP_TO_DATE:return!1;case Ke.NOT_TRACKING:case Ke.STALE:return!0;case Ke.POSSIBLY_STALE:for(var Y=xe(!0),le=ye(),Ce=Q.observing,Qe=Ce.length,st=0;st<Qe;st++){var Ot=Ce[st];if(Va(Ot)){if(bn.disableErrorBoundaries)Ot.get();else try{Ot.get()}catch{return Le(le),Ue(Y),!0}if(Q.dependenciesState===Ke.STALE)return Le(le),Ue(Y),!0}}return rt(Q),Le(le),Ue(Y),!1}}function Zt(){return bn.trackingDerivation!==null}function Et(Q){var Y=Q.observers.size>0;bn.computationDepth>0&&Y&&d(!1),bn.allowStateChanges||!Y&&bn.enforceActions!=="strict"||d(!1)}function ln(Q,Y,le){var Ce=xe(!0);rt(Q),Q.newObserving=new Array(Q.observing.length+100),Q.unboundDepsCount=0,Q.runId=++bn.runId;var Qe,st=bn.trackingDerivation;if(bn.trackingDerivation=Q,bn.disableErrorBoundaries===!0)Qe=Y.call(le);else try{Qe=Y.call(le)}catch(Ot){Qe=new Xe(Ot)}return bn.trackingDerivation=st,function(Ot){for(var Wt=Ot.observing,mn=Ot.observing=Ot.newObserving,_r=Ke.UP_TO_DATE,fn=0,ro=Ot.unboundDepsCount,lr=0;lr<ro;lr++)(zr=mn[lr]).diffValue===0&&(zr.diffValue=1,fn!==lr&&(mn[fn]=zr),fn++),zr.dependenciesState>_r&&(_r=zr.dependenciesState);for(mn.length=fn,Ot.newObserving=null,ro=Wt.length;ro--;)(zr=Wt[ro]).diffValue===0&&wt(zr,Ot),zr.diffValue=0;for(;fn--;){var zr;(zr=mn[fn]).diffValue===1&&(zr.diffValue=0,wc(zr,Ot))}_r!==Ke.UP_TO_DATE&&(Ot.dependenciesState=_r,Ot.onBecomeStale())}(Q),Ue(Ce),Qe}function Ee(Q){var Y=Q.observing;Q.observing=[];for(var le=Y.length;le--;)wt(Y[le],Q);Q.dependenciesState=Ke.NOT_TRACKING}function Ze(Q){var Y=ye();try{return Q()}finally{Le(Y)}}function ye(){var Q=bn.trackingDerivation;return bn.trackingDerivation=null,Q}function Le(Q){bn.trackingDerivation=Q}function xe(Q){var Y=bn.allowStateReads;return bn.allowStateReads=Q,Y}function Ue(Q){bn.allowStateReads=Q}function rt(Q){if(Q.dependenciesState!==Ke.UP_TO_DATE){Q.dependenciesState=Ke.UP_TO_DATE;for(var Y=Q.observing,le=Y.length;le--;)Y[le].lowestObserverState=Ke.UP_TO_DATE}}var Ft=0,Vn=1,ot=Object.getOwnPropertyDescriptor(function(){},"name");ot&&ot.configurable;function Lt(Q,Y,le){var Ce=function(){return wn(Q,Y,le||this,arguments)};return Ce.isMobxAction=!0,Ce}function wn(Q,Y,le,Ce){var Qe=Nt();try{return Y.apply(le,Ce)}catch(st){throw Qe.error=st,st}finally{Xt(Qe)}}function Nt(Q,Y,le){var Ce=0,Qe=ye();Yn();var st={prevDerivation:Qe,prevAllowStateChanges:Sn(!0),prevAllowStateReads:xe(!0),notifySpy:!1,startTime:Ce,actionId:Vn++,parentActionId:Ft};return Ft=st.actionId,st}function Xt(Q){Ft!==Q.actionId&&d("invalid action stack. did you forget to finish an action?"),Ft=Q.parentActionId,Q.error!==void 0&&(bn.suppressReactionErrors=!0),Dr(Q.prevAllowStateChanges),Ue(Q.prevAllowStateReads),fr(),Le(Q.prevDerivation),Q.notifySpy,bn.suppressReactionErrors=!1}function Ht(Q,Y){var le,Ce=Sn(Q);try{le=Y()}finally{Dr(Ce)}return le}function Sn(Q){var Y=bn.allowStateChanges;return bn.allowStateChanges=Q,Y}function Dr(Q){bn.allowStateChanges=Q}var eo=function(Q){function Y(le,Ce,Qe,st,Ot){Qe===void 0&&(Qe="ObservableValue@"+u()),Ot===void 0&&(Ot=z.default);var Wt=Q.call(this,Qe)||this;return Wt.enhancer=Ce,Wt.name=Qe,Wt.equals=Ot,Wt.hasUnreportedChange=!1,Wt.value=Ce(le,void 0,Qe),Wt}return function(le,Ce){function Qe(){this.constructor=le}q(le,Ce),le.prototype=Ce===null?Object.create(Ce):(Qe.prototype=Ce.prototype,new Qe)}(Y,Q),Y.prototype.dehanceValue=function(le){return this.dehancer!==void 0?this.dehancer(le):le},Y.prototype.set=function(le){this.value,(le=this.prepareNewValue(le))!==bn.UNCHANGED&&this.setNewValue(le)},Y.prototype.prepareNewValue=function(le){if(Et(this),Oa(this)){var Ce=Mr(this,{object:this,type:"update",newValue:le});if(!Ce)return bn.UNCHANGED;le=Ce.newValue}return le=this.enhancer(le,this.value,this.name),this.equals(this.value,le)?bn.UNCHANGED:le},Y.prototype.setNewValue=function(le){var Ce=this.value;this.value=le,this.reportChanged(),wa(this)&&Oi(this,{type:"update",object:this,newValue:le,oldValue:Ce})},Y.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},Y.prototype.intercept=function(le){return Zl(this,le)},Y.prototype.observe=function(le,Ce){return Ce&&le({object:this,type:"update",newValue:this.value,oldValue:void 0}),cl(this,le)},Y.prototype.toJSON=function(){return this.get()},Y.prototype.toString=function(){return this.name+"["+this.value+"]"},Y.prototype.valueOf=function(){return R(this.get())},Y.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},Y}(I),ma=C("ObservableValue",eo),ci=function(){function Q(Y){this.dependenciesState=Ke.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=Ke.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+u(),this.value=new Xe(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=be.NONE,p(Y.get,"missing option for computed: get"),this.derivation=Y.get,this.name=Y.name||"ComputedValue@"+u(),Y.set&&(this.setter=Lt(this.name+"-setter",Y.set)),this.equals=Y.equals||(Y.compareStructural||Y.struct?z.structural:z.default),this.scope=Y.context,this.requiresReaction=!!Y.requiresReaction,this.keepAlive=!!Y.keepAlive}return Q.prototype.onBecomeStale=function(){(function(Y){Y.lowestObserverState===Ke.UP_TO_DATE&&(Y.lowestObserverState=Ke.POSSIBLY_STALE,Y.observers.forEach(function(le){le.dependenciesState===Ke.UP_TO_DATE&&(le.dependenciesState=Ke.POSSIBLY_STALE,le.isTracing!==be.NONE&&oi(le,Y),le.onBecomeStale())}))})(this)},Q.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(Y){return Y()})},Q.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(Y){return Y()})},Q.prototype.get=function(){this.isComputing&&d("Cycle detected in computation "+this.name+": "+this.derivation),bn.inBatch!==0||this.observers.size!==0||this.keepAlive?(Wi(this),Ct(this)&&this.trackAndCompute()&&function(le){le.lowestObserverState!==Ke.STALE&&(le.lowestObserverState=Ke.STALE,le.observers.forEach(function(Ce){Ce.dependenciesState===Ke.POSSIBLY_STALE?Ce.dependenciesState=Ke.STALE:Ce.dependenciesState===Ke.UP_TO_DATE&&(le.lowestObserverState=Ke.UP_TO_DATE)}))}(this)):Ct(this)&&(this.warnAboutUntrackedRead(),Yn(),this.value=this.computeValue(!1),fr());var Y=this.value;if(gt(Y))throw Y.cause;return Y},Q.prototype.peek=function(){var Y=this.computeValue(!1);if(gt(Y))throw Y.cause;return Y},Q.prototype.set=function(Y){if(this.setter){p(!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,Y)}finally{this.isRunningSetter=!1}}else p(!1,!1)},Q.prototype.trackAndCompute=function(){var Y=this.value,le=this.dependenciesState===Ke.NOT_TRACKING,Ce=this.computeValue(!0),Qe=le||gt(Y)||gt(Ce)||!this.equals(Y,Ce);return Qe&&(this.value=Ce),Qe},Q.prototype.computeValue=function(Y){var le;if(this.isComputing=!0,bn.computationDepth++,Y)le=ln(this,this.derivation,this.scope);else if(bn.disableErrorBoundaries===!0)le=this.derivation.call(this.scope);else try{le=this.derivation.call(this.scope)}catch(Ce){le=new Xe(Ce)}return bn.computationDepth--,this.isComputing=!1,le},Q.prototype.suspend=function(){this.keepAlive||(Ee(this),this.value=void 0)},Q.prototype.observe=function(Y,le){var Ce=this,Qe=!0,st=void 0;return Pp(function(){var Ot=Ce.get();if(!Qe||le){var Wt=ye();Y({type:"update",object:Ce,newValue:Ot,oldValue:st}),Le(Wt)}Qe=!1,st=Ot})},Q.prototype.warnAboutUntrackedRead=function(){},Q.prototype.toJSON=function(){return this.get()},Q.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},Q.prototype.valueOf=function(){return R(this.get())},Q.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},Q}(),Va=C("ComputedValue",ci),ya=function(){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},$f={};function zl(){return typeof window!="undefined"?window:a!==void 0?a:typeof self!="undefined"?self:$f}var Qi=!0,sl=!1,bn=function(){var Q=zl();return Q.__mobxInstanceCount>0&&!Q.__mobxGlobals&&(Qi=!1),Q.__mobxGlobals&&Q.__mobxGlobals.version!==new ya().version&&(Qi=!1),Qi?Q.__mobxGlobals?(Q.__mobxInstanceCount+=1,Q.__mobxGlobals.UNCHANGED||(Q.__mobxGlobals.UNCHANGED={}),Q.__mobxGlobals):(Q.__mobxInstanceCount=1,Q.__mobxGlobals=new ya):(setTimeout(function(){sl||d("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new ya)}();function wc(Q,Y){Q.observers.add(Y),Q.lowestObserverState>Y.dependenciesState&&(Q.lowestObserverState=Y.dependenciesState)}function wt(Q,Y){Q.observers.delete(Y),Q.observers.size===0&&rn(Q)}function rn(Q){Q.isPendingUnobservation===!1&&(Q.isPendingUnobservation=!0,bn.pendingUnobservations.push(Q))}function Yn(){bn.inBatch++}function fr(){if(--bn.inBatch==0){_t();for(var Q=bn.pendingUnobservations,Y=0;Y<Q.length;Y++){var le=Q[Y];le.isPendingUnobservation=!1,le.observers.size===0&&(le.isBeingObserved&&(le.isBeingObserved=!1,le.onBecomeUnobserved()),le instanceof ci&&le.suspend())}bn.pendingUnobservations=[]}}function Wi(Q){var Y=bn.trackingDerivation;return Y!==null?(Y.runId!==Q.lastAccessedBy&&(Q.lastAccessedBy=Y.runId,Y.newObserving[Y.unboundDepsCount++]=Q,Q.isBeingObserved||(Q.isBeingObserved=!0,Q.onBecomeObserved())),!0):(Q.observers.size===0&&bn.inBatch>0&&rn(Q),!1)}function oi(Q,Y){if(Q.isTracing===be.BREAK){var le=[];Ho(Fo(Q),le,1),new Function(`debugger;
  84. /*
  85. Tracing '`+Q.name+`'
  86. You are entering this break point because derivation '`+Q.name+"' is being traced and '"+Y.name+`' is now forcing it to update.
  87. Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
  88. The stackframe you are looking for is at least ~6-8 stack-frames up.
  89. `+(Q instanceof ci?Q.derivation.toString().replace(/[*]\//g,"/"):"")+`
  90. The dependencies for this derivation are:
  91. `+le.join(`
  92. `)+`
  93. */
  94. `)()}}function Ho(Q,Y,le){Y.length>=1e3?Y.push("(and many more)"):(Y.push(""+new Array(le).join(" ")+Q.name),Q.dependencies&&Q.dependencies.forEach(function(Ce){return Ho(Ce,Y,le+1)}))}var Xo=function(){function Q(Y,le,Ce,Qe){Y===void 0&&(Y="Reaction@"+u()),Qe===void 0&&(Qe=!1),this.name=Y,this.onInvalidate=le,this.errorHandler=Ce,this.requiresObservable=Qe,this.observing=[],this.newObserving=[],this.dependenciesState=Ke.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+u(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=be.NONE}return Q.prototype.onBecomeStale=function(){this.schedule()},Q.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,bn.pendingReactions.push(this),_t())},Q.prototype.isScheduled=function(){return this._isScheduled},Q.prototype.runReaction=function(){if(!this.isDisposed){if(Yn(),this._isScheduled=!1,Ct(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(Y){this.reportExceptionInDerivation(Y)}}fr()}},Q.prototype.track=function(Y){if(!this.isDisposed){Yn(),this._isRunning=!0;var le=ln(this,Y,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Ee(this),gt(le)&&this.reportExceptionInDerivation(le.cause),fr()}},Q.prototype.reportExceptionInDerivation=function(Y){var le=this;if(this.errorHandler)this.errorHandler(Y,this);else{if(bn.disableErrorBoundaries)throw Y;bn.suppressReactionErrors,bn.globalReactionErrorHandlers.forEach(function(Ce){return Ce(Y,le)})}},Q.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Yn(),Ee(this),fr()))},Q.prototype.getDisposer=function(){var Y=this.dispose.bind(this);return Y[N]=this,Y},Q.prototype.toString=function(){return"Reaction["+this.name+"]"},Q.prototype.trace=function(Y){Y===void 0&&(Y=!1),function(){for(var le=[],Ce=0;Ce<arguments.length;Ce++)le[Ce]=arguments[Ce];var Qe=!1;typeof le[le.length-1]=="boolean"&&(Qe=le.pop());var st=jr(le);if(!st)return d(!1);st.isTracing,be.NONE,st.isTracing=Qe?be.BREAK:be.LOG}(this,Y)},Q}(),fi=function(Q){return Q()};function _t(){bn.inBatch>0||bn.isRunningReactions||fi(cn)}function cn(){bn.isRunningReactions=!0;for(var Q=bn.pendingReactions,Y=0;Q.length>0;){++Y==100&&Q.splice(0);for(var le=Q.splice(0),Ce=0,Qe=le.length;Ce<Qe;Ce++)le[Ce].runReaction()}bn.isRunningReactions=!1}var Bn=C("Reaction",Xo);function br(Q){var Y=fi;fi=function(le){return Q(function(){return Y(le)})}}function Ri(Q){return function(){}}function us(){d(!1)}function Iu(Q){return function(Y,le,Ce){if(Ce){if(Ce.value)return{value:Lt(Q,Ce.value),enumerable:!1,configurable:!0,writable:!0};var Qe=Ce.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Lt(Q,Qe.call(this))}}}return Ev(Q).apply(this,arguments)}}function Ev(Q){return function(Y,le,Ce){Object.defineProperty(Y,le,{configurable:!0,enumerable:!1,get:function(){},set:function(Qe){k(this,le,Ql(Q,Qe))}})}}var Ql=function(Q,Y,le,Ce){return arguments.length===1&&typeof Q=="function"?Lt(Q.name||"<unnamed action>",Q):arguments.length===2&&typeof Y=="function"?Lt(Q,Y):arguments.length===1&&typeof Q=="string"?Iu(Q):Ce!==!0?Iu(Y).apply(null,arguments):void k(Q,Y,Lt(Q.name||Y,le.value,this))};function Ep(Q,Y){return wn(typeof Q=="string"?Q:Q.name||"<unnamed action>",typeof Q=="function"?Q:Y,this,void 0)}function Ad(Q){return typeof Q=="function"&&Q.isMobxAction===!0}function Tp(Q,Y,le){k(Q,Y,Lt(Y,le.bind(Q)))}function Pp(Q,Y){Y===void 0&&(Y=l);var le,Ce=Y&&Y.name||Q.name||"Autorun@"+u();if(!Y.scheduler&&!Y.delay)le=new Xo(Ce,function(){this.track(Ot)},Y.onError,Y.requiresObservable);else{var Qe=Tv(Y),st=!1;le=new Xo(Ce,function(){st||(st=!0,Qe(function(){st=!1,le.isDisposed||le.track(Ot)}))},Y.onError,Y.requiresObservable)}function Ot(){Q(le)}return le.schedule(),le.getDisposer()}Ql.bound=function(Q,Y,le,Ce){return Ce===!0?(Tp(Q,Y,le.value),null):le?{configurable:!0,enumerable:!1,get:function(){return Tp(this,Y,le.value||le.initializer.call(this)),this[Y]},set:us}:{enumerable:!1,configurable:!0,set:function(Qe){Tp(this,Y,Qe)},get:function(){}}};var P0=function(Q){return Q()};function Tv(Q){return Q.scheduler?Q.scheduler:Q.delay?function(Y){return setTimeout(Y,Q.delay)}:P0}function Xr(Q,Y,le){le===void 0&&(le=l);var Ce,Qe,st,Ot=le.name||"Reaction@"+u(),Wt=Ql(Ot,le.onError?(Ce=le.onError,Qe=Y,function(){try{return Qe.apply(this,arguments)}catch(xo){Ce.call(this,xo)}}):Y),mn=!le.scheduler&&!le.delay,_r=Tv(le),fn=!0,ro=!1,lr=le.compareStructural?z.structural:le.equals||z.default,zr=new Xo(Ot,function(){fn||mn?ds():ro||(ro=!0,_r(ds))},le.onError,le.requiresObservable);function ds(){if(ro=!1,!zr.isDisposed){var xo=!1;zr.track(function(){var xa=Q(zr);xo=fn||!lr(st,xa),st=xa}),fn&&le.fireImmediately&&Wt(st,zr),fn||xo!==!0||Wt(st,zr),fn&&(fn=!1)}}return zr.schedule(),zr.getDisposer()}function Hr(Q,Y,le){return Pv("onBecomeUnobserved",Q,Y,le)}function Pv(Q,Y,le,Ce){var Qe=typeof Ce=="function"?fs(Y,le):fs(Y),st=typeof Ce=="function"?Ce:le,Ot=Q+"Listeners";return Qe[Ot]?Qe[Ot].add(st):Qe[Ot]=new Set([st]),typeof Qe[Q]!="function"?d(!1):function(){var Wt=Qe[Ot];Wt&&(Wt.delete(st),Wt.size===0&&delete Qe[Ot])}}function Sc(Q){var Y=Q.enforceActions,le=Q.computedRequiresReaction,Ce=Q.computedConfigurable,Qe=Q.disableErrorBoundaries,st=Q.reactionScheduler,Ot=Q.reactionRequiresObservable,Wt=Q.observableRequiresReaction;if(Q.isolateGlobalState===!0&&((bn.pendingReactions.length||bn.inBatch||bn.isRunningReactions)&&d("isolateGlobalState should be called before MobX is running any reactions"),sl=!0,Qi&&(--zl().__mobxInstanceCount==0&&(zl().__mobxGlobals=void 0),bn=new ya)),Y!==void 0){var mn=void 0;switch(Y){case!0:case"observed":mn=!0;break;case!1:case"never":mn=!1;break;case"strict":case"always":mn="strict";break;default:d("Invalid value for 'enforceActions': '"+Y+"', expected 'never', 'always' or 'observed'")}bn.enforceActions=mn,bn.allowStateChanges=mn!==!0&&mn!=="strict"}le!==void 0&&(bn.computedRequiresReaction=!!le),Ot!==void 0&&(bn.reactionRequiresObservable=!!Ot),Wt!==void 0&&(bn.observableRequiresReaction=!!Wt,bn.allowStateReads=!bn.observableRequiresReaction),Ce!==void 0&&(bn.computedConfigurable=!!Ce),Qe!==void 0&&(bn.disableErrorBoundaries=!!Qe),st&&br(st)}function Wl(Q,Y,le,Ce){var Qe=$p(Ce=Re(Ce));return pe(Q),Fa(Q,Ce.name,Qe.enhancer),Y&&$v(Q,Y,le,Qe),Q}function $p(Q){return Q.defaultDecorator||(Q.deep===!1?oe:we)}function $v(Q,Y,le,Ce){var Qe,st;Yn();try{var Ot=B(Y);try{for(var Wt=K(Ot),mn=Wt.next();!mn.done;mn=Wt.next()){var _r=mn.value,fn=Object.getOwnPropertyDescriptor(Y,_r),ro=(le&&_r in le?le[_r]:fn.get?qe:Ce)(Q,_r,fn,!0);ro&&Object.defineProperty(Q,_r,ro)}}catch(lr){Qe={error:lr}}finally{try{mn&&!mn.done&&(st=Wt.return)&&st.call(Wt)}finally{if(Qe)throw Qe.error}}}finally{fr()}}function Fo(Q,Y){return Ap(fs(Q,Y))}function Ap(Q){var Y,le,Ce={name:Q.name};return Q.observing&&Q.observing.length>0&&(Ce.dependencies=(Y=Q.observing,le=[],Y.forEach(function(Qe){le.indexOf(Qe)===-1&&le.push(Qe)}),le).map(Ap)),Ce}var Af=0;function Mp(){this.message="FLOW_CANCELLED"}function Md(Q){arguments.length!==1&&d("Flow expects 1 argument and cannot be used as decorator");var Y=Q.name||"<unnamed flow>";return function(){var le,Ce=this,Qe=arguments,st=++Af,Ot=Ql(Y+" - runid: "+st+" - init",Q).apply(Ce,Qe),Wt=void 0,mn=new Promise(function(_r,fn){var ro=0;function lr(xo){var xa;Wt=void 0;try{xa=Ql(Y+" - runid: "+st+" - yield "+ro++,Ot.next).call(Ot,xo)}catch(Hl){return fn(Hl)}ds(xa)}function zr(xo){var xa;Wt=void 0;try{xa=Ql(Y+" - runid: "+st+" - yield "+ro++,Ot.throw).call(Ot,xo)}catch(Hl){return fn(Hl)}ds(xa)}function ds(xo){if(!xo||typeof xo.then!="function")return xo.done?_r(xo.value):(Wt=Promise.resolve(xo.value)).then(lr,zr);xo.then(ds,fn)}le=fn,lr(void 0)});return mn.cancel=Ql(Y+" - runid: "+st+" - cancel",function(){try{Wt&&Ni(Wt);var _r=Ot.return(void 0),fn=Promise.resolve(_r.value);fn.then(y,y),Ni(fn),le(new Mp)}catch(ro){le(ro)}}),mn}}function Ni(Q){typeof Q.cancel=="function"&&Q.cancel()}function Rp(Q,Y){if(Q==null)return!1;if(Y!==void 0){if(Sa(Q)===!1||!Q[N].values.has(Y))return!1;var le=fs(Q,Y);return Va(le)}return Va(Q)}function Av(Q){return arguments.length>1?d(!1):Rp(Q)}function Np(Q,Y){return typeof Y!="string"?d(!1):Rp(Q,Y)}function Rd(Q,Y){return Q!=null&&(Y!==void 0?!!Sa(Q)&&Q[N].values.has(Y):Sa(Q)||!!Q[N]||D(Q)||Bn(Q)||Va(Q))}function xc(Q){return arguments.length!==1&&d(!1),Rd(Q)}function ll(Q){return Sa(Q)?Q[N].getKeys():ii(Q)||ia(Q)?Array.from(Q.keys()):cs(Q)?Q.map(function(Y,le){return le}):d(!1)}function lo(Q){return Sa(Q)?ll(Q).map(function(Y){return Q[Y]}):ii(Q)?ll(Q).map(function(Y){return Q.get(Y)}):ia(Q)?Array.from(Q.values()):cs(Q)?Q.slice():d(!1)}function Mv(Q){return Sa(Q)?ll(Q).map(function(Y){return[Y,Q[Y]]}):ii(Q)?ll(Q).map(function(Y){return[Y,Q.get(Y)]}):ia(Q)?Array.from(Q.entries()):cs(Q)?Q.map(function(Y,le){return[le,Y]}):d(!1)}function ba(Q,Y,le){if(arguments.length!==2||ia(Q))if(Sa(Q)){var Ce=Q[N],Qe=Ce.values.get(Y);Qe?Ce.write(Y,le):Ce.addObservableProp(Y,le,Ce.defaultEnhancer)}else if(ii(Q))Q.set(Y,le);else if(ia(Q))Q.add(Y);else{if(!cs(Q))return d(!1);typeof Y!="number"&&(Y=parseInt(Y,10)),p(Y>=0,"Not a valid index: '"+Y+"'"),Yn(),Y>=Q.length&&(Q.length=Y+1),Q[Y]=le,fr()}else{Yn();var st=Y;try{for(var Ot in st)ba(Q,Ot,st[Ot])}finally{fr()}}}function Rv(Q,Y,le,Ce){return typeof le=="function"?function(Qe,st,Ot,Wt){return hl(Qe,st).observe(Ot,Wt)}(Q,Y,le,Ce):function(Qe,st,Ot){return hl(Qe).observe(st,Ot)}(Q,Y,le)}Mp.prototype=Object.create(Error.prototype);var Nv={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function oa(Q,Y,le,Ce){return Ce.detectCycles&&Q.set(Y,le),le}function _a(Q,Y,le){if(!Y.recurseEverything&&!xc(Q)||typeof Q!="object")return Q;if(Q===null)return null;if(Q instanceof Date)return Q;if(ma(Q))return _a(Q.get(),Y,le);if(xc(Q)&&ll(Q),Y.detectCycles===!0&&Q!==null&&le.has(Q))return le.get(Q);if(cs(Q)||Array.isArray(Q)){var Ce=oa(le,Q,[],Y),Qe=Q.map(function(lr){return _a(lr,Y,le)});Ce.length=Qe.length;for(var st=0,Ot=Qe.length;st<Ot;st++)Ce[st]=Qe[st];return Ce}if(ia(Q)||Object.getPrototypeOf(Q)===Set.prototype){if(Y.exportMapsAsObjects===!1){var Wt=oa(le,Q,new Set,Y);return Q.forEach(function(lr){Wt.add(_a(lr,Y,le))}),Wt}var mn=oa(le,Q,[],Y);return Q.forEach(function(lr){mn.push(_a(lr,Y,le))}),mn}if(ii(Q)||Object.getPrototypeOf(Q)===Map.prototype){if(Y.exportMapsAsObjects===!1){var _r=oa(le,Q,new Map,Y);return Q.forEach(function(lr,zr){_r.set(zr,_a(lr,Y,le))}),_r}var fn=oa(le,Q,{},Y);return Q.forEach(function(lr,zr){fn[zr]=_a(lr,Y,le)}),fn}var ro=oa(le,Q,{},Y);return P(Q).forEach(function(lr){ro[lr]=_a(Q[lr],Y,le)}),ro}function Ip(Q,Y){var le;return typeof Y=="boolean"&&(Y={detectCycles:Y}),Y||(Y=Nv),Y.detectCycles=Y.detectCycles===void 0?Y.recurseEverything===!0:Y.detectCycles===!0,Y.detectCycles&&(le=new Map),_a(Q,Y,le)}function jr(Q){switch(Q.length){case 0:return bn.trackingDerivation;case 1:return fs(Q[0]);case 2:return fs(Q[0],Q[1])}}function di(Q,Y){Y===void 0&&(Y=void 0),Yn();try{return Q.apply(Y)}finally{fr()}}function Nd(Q,Y,le){return arguments.length===1||Y&&typeof Y=="object"?Dp(Q,Y):Iv(Q,Y,le||{})}function Iv(Q,Y,le){var Ce;typeof le.timeout=="number"&&(Ce=setTimeout(function(){if(!st[N].isDisposed){st();var Ot=new Error("WHEN_TIMEOUT");if(!le.onError)throw Ot;le.onError(Ot)}},le.timeout)),le.name=le.name||"When@"+u();var Qe=Lt(le.name+"-effect",Y),st=Pp(function(Ot){Q()&&(Ot.dispose(),Ce&&clearTimeout(Ce),Qe())},le);return st}function Dp(Q,Y){var le,Ce=new Promise(function(Qe,st){var Ot=Iv(Q,Qe,ae(ae({},Y),{onError:st}));le=function(){Ot(),st("WHEN_CANCELLED")}});return Ce.cancel=le,Ce}function Id(Q){return Q[N]}function ul(Q){return typeof Q=="string"||typeof Q=="number"||typeof Q=="symbol"}var Yl={has:function(Q,Y){if(Y===N||Y==="constructor"||Y===X)return!0;var le=Id(Q);return ul(Y)?le.has(Y):Y in Q},get:function(Q,Y){if(Y===N||Y==="constructor"||Y===X)return Q[Y];var le=Id(Q),Ce=le.values.get(Y);if(Ce instanceof I){var Qe=Ce.get();return Qe===void 0&&le.has(Y),Qe}return ul(Y)&&le.has(Y),Q[Y]},set:function(Q,Y,le){return!!ul(Y)&&(ba(Q,Y,le),!0)},deleteProperty:function(Q,Y){return!!ul(Y)&&(Id(Q).remove(Y),!0)},ownKeys:function(Q){return Id(Q).keysAtom.reportObserved(),Reflect.ownKeys(Q)},preventExtensions:function(Q){return d("Dynamic observable objects cannot be frozen"),!1}};function kc(Q){var Y=new Proxy(Q,Yl);return Q[N].proxy=Y,Y}function Oa(Q){return Q.interceptors!==void 0&&Q.interceptors.length>0}function Zl(Q,Y){var le=Q.interceptors||(Q.interceptors=[]);return le.push(Y),v(function(){var Ce=le.indexOf(Y);Ce!==-1&&le.splice(Ce,1)})}function Mr(Q,Y){var le=ye();try{for(var Ce=ne(Q.interceptors||[]),Qe=0,st=Ce.length;Qe<st&&(p(!(Y=Ce[Qe](Y))||Y.type,"Intercept handlers should return nothing or a change object"),Y);Qe++);return Y}finally{Le(le)}}function wa(Q){return Q.changeListeners!==void 0&&Q.changeListeners.length>0}function cl(Q,Y){var le=Q.changeListeners||(Q.changeListeners=[]);return le.push(Y),v(function(){var Ce=le.indexOf(Y);Ce!==-1&&le.splice(Ce,1)})}function Oi(Q,Y){var le=ye(),Ce=Q.changeListeners;if(Ce){for(var Qe=0,st=(Ce=Ce.slice()).length;Qe<st;Qe++)Ce[Qe](Y);Le(le)}}var Dd={get:function(Q,Y){return Y===N?Q[N]:Y==="length"?Q[N].getArrayLength():typeof Y=="number"?Mo.get.call(Q,Y):typeof Y!="string"||isNaN(Y)?Mo.hasOwnProperty(Y)?Mo[Y]:Q[Y]:Mo.get.call(Q,parseInt(Y))},set:function(Q,Y,le){return Y==="length"&&Q[N].setArrayLength(le),typeof Y=="number"&&Mo.set.call(Q,Y,le),typeof Y=="symbol"||isNaN(Y)?Q[Y]=le:Mo.set.call(Q,parseInt(Y),le),!0},preventExtensions:function(Q){return d("Observable arrays cannot be frozen"),!1}};function Mf(Q,Y,le,Ce){le===void 0&&(le="ObservableArray@"+u()),Ce===void 0&&(Ce=!1);var Qe,st,Ot,Wt=new jp(le,Y,Ce);Qe=Wt.values,st=N,Ot=Wt,Object.defineProperty(Qe,st,{enumerable:!1,writable:!1,configurable:!0,value:Ot});var mn=new Proxy(Wt.values,Dd);if(Wt.proxy=mn,Q&&Q.length){var _r=Sn(!0);Wt.spliceWithArray(0,0,Q),Dr(_r)}return mn}var jp=function(){function Q(Y,le,Ce){this.owned=Ce,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new I(Y||"ObservableArray@"+u()),this.enhancer=function(Qe,st){return le(Qe,st,Y+"[..]")}}return Q.prototype.dehanceValue=function(Y){return this.dehancer!==void 0?this.dehancer(Y):Y},Q.prototype.dehanceValues=function(Y){return this.dehancer!==void 0&&Y.length>0?Y.map(this.dehancer):Y},Q.prototype.intercept=function(Y){return Zl(this,Y)},Q.prototype.observe=function(Y,le){return le===void 0&&(le=!1),le&&Y({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),cl(this,Y)},Q.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},Q.prototype.setArrayLength=function(Y){if(typeof Y!="number"||Y<0)throw new Error("[mobx.array] Out of range: "+Y);var le=this.values.length;if(Y!==le)if(Y>le){for(var Ce=new Array(Y-le),Qe=0;Qe<Y-le;Qe++)Ce[Qe]=void 0;this.spliceWithArray(le,0,Ce)}else this.spliceWithArray(Y,le-Y)},Q.prototype.updateArrayLength=function(Y,le){if(Y!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=le},Q.prototype.spliceWithArray=function(Y,le,Ce){var Qe=this;Et(this.atom);var st=this.values.length;if(Y===void 0?Y=0:Y>st?Y=st:Y<0&&(Y=Math.max(0,st+Y)),le=arguments.length===1?st-Y:le==null?0:Math.max(0,Math.min(le,st-Y)),Ce===void 0&&(Ce=s),Oa(this)){var Ot=Mr(this,{object:this.proxy,type:"splice",index:Y,removedCount:le,added:Ce});if(!Ot)return s;le=Ot.removedCount,Ce=Ot.added}Ce=Ce.length===0?Ce:Ce.map(function(mn){return Qe.enhancer(mn,void 0)});var Wt=this.spliceItemsIntoValues(Y,le,Ce);return le===0&&Ce.length===0||this.notifyArraySplice(Y,Ce,Wt),this.dehanceValues(Wt)},Q.prototype.spliceItemsIntoValues=function(Y,le,Ce){var Qe;if(Ce.length<1e4)return(Qe=this.values).splice.apply(Qe,ne([Y,le],Ce));var st=this.values.slice(Y,Y+le);return this.values=this.values.slice(0,Y).concat(Ce,this.values.slice(Y+le)),st},Q.prototype.notifyArrayChildUpdate=function(Y,le,Ce){var Qe=!this.owned&&!1,st=wa(this),Ot=st||Qe?{object:this.proxy,type:"update",index:Y,newValue:le,oldValue:Ce}:null;this.atom.reportChanged(),st&&Oi(this,Ot)},Q.prototype.notifyArraySplice=function(Y,le,Ce){var Qe=!this.owned&&!1,st=wa(this),Ot=st||Qe?{object:this.proxy,type:"splice",index:Y,removed:Ce,added:le,removedCount:Ce.length,addedCount:le.length}:null;this.atom.reportChanged(),st&&Oi(this,Ot)},Q}(),Mo={intercept:function(Q){return this[N].intercept(Q)},observe:function(Q,Y){return Y===void 0&&(Y=!1),this[N].observe(Q,Y)},clear:function(){return this.splice(0)},replace:function(Q){var Y=this[N];return Y.spliceWithArray(0,Y.values.length,Q)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(Q,Y){for(var le=[],Ce=2;Ce<arguments.length;Ce++)le[Ce-2]=arguments[Ce];var Qe=this[N];switch(arguments.length){case 0:return[];case 1:return Qe.spliceWithArray(Q);case 2:return Qe.spliceWithArray(Q,Y)}return Qe.spliceWithArray(Q,Y,le)},spliceWithArray:function(Q,Y,le){return this[N].spliceWithArray(Q,Y,le)},push:function(){for(var Q=[],Y=0;Y<arguments.length;Y++)Q[Y]=arguments[Y];var le=this[N];return le.spliceWithArray(le.values.length,0,Q),le.values.length},pop:function(){return this.splice(Math.max(this[N].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var Q=[],Y=0;Y<arguments.length;Y++)Q[Y]=arguments[Y];var le=this[N];return le.spliceWithArray(0,0,Q),le.values.length},reverse:function(){var Q=this.slice();return Q.reverse.apply(Q,arguments)},sort:function(Q){var Y=this.slice();return Y.sort.apply(Y,arguments)},remove:function(Q){var Y=this[N],le=Y.dehanceValues(Y.values).indexOf(Q);return le>-1&&(this.splice(le,1),!0)},get:function(Q){var Y=this[N];if(Y&&Q<Y.values.length)return Y.atom.reportObserved(),Y.dehanceValue(Y.values[Q])},set:function(Q,Y){var le=this[N],Ce=le.values;if(Q<Ce.length){Et(le.atom);var Qe=Ce[Q];if(Oa(le)){var st=Mr(le,{type:"update",object:le.proxy,index:Q,newValue:Y});if(!st)return;Y=st.newValue}(Y=le.enhancer(Y,Qe))!==Qe&&(Ce[Q]=Y,le.notifyArrayChildUpdate(Q,Y,Qe))}else{if(Q!==Ce.length)throw new Error("[mobx.array] Index out of bounds, "+Q+" is larger than "+Ce.length);le.spliceWithArray(Q,0,[Y])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(Q){typeof Array.prototype[Q]=="function"&&(Mo[Q]=function(){var Y=this[N];Y.atom.reportObserved();var le=Y.dehanceValues(Y.values);return le[Q].apply(le,arguments)})}),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach(function(Q){typeof Array.prototype[Q]=="function"&&(Mo[Q]=function(Y,le){var Ce=this,Qe=this[N];return Qe.atom.reportObserved(),Qe.dehanceValues(Qe.values)[Q](function(st,Ot){return Y.call(le,st,Ot,Ce)},le)})}),["reduce","reduceRight"].forEach(function(Q){Mo[Q]=function(){var Y=this,le=this[N];le.atom.reportObserved();var Ce=arguments[0];return arguments[0]=function(Qe,st,Ot){return st=le.dehanceValue(st),Ce(Qe,st,Ot,Y)},le.values[Q].apply(le.values,arguments)}});var jd,Ul=C("ObservableArrayAdministration",jp);function cs(Q){return w(Q)&&Ul(Q[N])}var Lp,$0={},Bp=function(){function Q(Y,le,Ce){if(le===void 0&&(le=ze),Ce===void 0&&(Ce="ObservableMap@"+u()),this.enhancer=le,this.name=Ce,this[jd]=$0,this._keysAtom=L(this.name+".keys()"),this[Symbol.toStringTag]="Map",typeof Map!="function")throw new 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(Y)}return Q.prototype._has=function(Y){return this._data.has(Y)},Q.prototype.has=function(Y){var le=this;if(!bn.trackingDerivation)return this._has(Y);var Ce=this._hasMap.get(Y);if(!Ce){var Qe=Ce=new eo(this._has(Y),$e,this.name+"."+A(Y)+"?",!1);this._hasMap.set(Y,Qe),Hr(Qe,function(){return le._hasMap.delete(Y)})}return Ce.get()},Q.prototype.set=function(Y,le){var Ce=this._has(Y);if(Oa(this)){var Qe=Mr(this,{type:Ce?"update":"add",object:this,newValue:le,name:Y});if(!Qe)return this;le=Qe.newValue}return Ce?this._updateValue(Y,le):this._addValue(Y,le),this},Q.prototype.delete=function(Y){var le=this;if(Et(this._keysAtom),Oa(this)&&!(Qe=Mr(this,{type:"delete",object:this,name:Y})))return!1;if(this._has(Y)){var Ce=wa(this),Qe=Ce?{type:"delete",object:this,oldValue:this._data.get(Y).value,name:Y}:null;return di(function(){le._keysAtom.reportChanged(),le._updateHasMapEntry(Y,!1),le._data.get(Y).setNewValue(void 0),le._data.delete(Y)}),Ce&&Oi(this,Qe),!0}return!1},Q.prototype._updateHasMapEntry=function(Y,le){var Ce=this._hasMap.get(Y);Ce&&Ce.setNewValue(le)},Q.prototype._updateValue=function(Y,le){var Ce=this._data.get(Y);if((le=Ce.prepareNewValue(le))!==bn.UNCHANGED){var Qe=wa(this),st=Qe?{type:"update",object:this,oldValue:Ce.value,name:Y,newValue:le}:null;Ce.setNewValue(le),Qe&&Oi(this,st)}},Q.prototype._addValue=function(Y,le){var Ce=this;Et(this._keysAtom),di(function(){var Ot=new eo(le,Ce.enhancer,Ce.name+"."+A(Y),!1);Ce._data.set(Y,Ot),le=Ot.value,Ce._updateHasMapEntry(Y,!0),Ce._keysAtom.reportChanged()});var Qe=wa(this),st=Qe?{type:"add",object:this,name:Y,newValue:le}:null;Qe&&Oi(this,st)},Q.prototype.get=function(Y){return this.has(Y)?this.dehanceValue(this._data.get(Y).get()):this.dehanceValue(void 0)},Q.prototype.dehanceValue=function(Y){return this.dehancer!==void 0?this.dehancer(Y):Y},Q.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},Q.prototype.values=function(){var Y=this,le=this.keys();return Cr({next:function(){var Ce=le.next(),Qe=Ce.done,st=Ce.value;return{done:Qe,value:Qe?void 0:Y.get(st)}}})},Q.prototype.entries=function(){var Y=this,le=this.keys();return Cr({next:function(){var Ce=le.next(),Qe=Ce.done,st=Ce.value;return{done:Qe,value:Qe?void 0:[st,Y.get(st)]}}})},Q.prototype[jd=N,Symbol.iterator]=function(){return this.entries()},Q.prototype.forEach=function(Y,le){var Ce,Qe;try{for(var st=K(this),Ot=st.next();!Ot.done;Ot=st.next()){var Wt=H(Ot.value,2),mn=Wt[0],_r=Wt[1];Y.call(le,_r,mn,this)}}catch(fn){Ce={error:fn}}finally{try{Ot&&!Ot.done&&(Qe=st.return)&&Qe.call(st)}finally{if(Ce)throw Ce.error}}},Q.prototype.merge=function(Y){var le=this;return ii(Y)&&(Y=Y.toJS()),di(function(){var Ce=Sn(!0);try{b(Y)?P(Y).forEach(function(Qe){return le.set(Qe,Y[Qe])}):Array.isArray(Y)?Y.forEach(function(Qe){var st=H(Qe,2),Ot=st[0],Wt=st[1];return le.set(Ot,Wt)}):T(Y)?(Y.constructor!==Map&&d("Cannot initialize from classes that inherit from Map: "+Y.constructor.name),Y.forEach(function(Qe,st){return le.set(st,Qe)})):Y!=null&&d("Cannot initialize map from "+Y)}finally{Dr(Ce)}}),this},Q.prototype.clear=function(){var Y=this;di(function(){Ze(function(){var le,Ce;try{for(var Qe=K(Y.keys()),st=Qe.next();!st.done;st=Qe.next()){var Ot=st.value;Y.delete(Ot)}}catch(Wt){le={error:Wt}}finally{try{st&&!st.done&&(Ce=Qe.return)&&Ce.call(Qe)}finally{if(le)throw le.error}}})})},Q.prototype.replace=function(Y){var le=this;return di(function(){var Ce,Qe,st,Ot,Wt=function(aa){if(T(aa)||ii(aa))return aa;if(Array.isArray(aa))return new Map(aa);if(b(aa)){var Nf=new Map;for(var Ec in aa)Nf.set(Ec,aa[Ec]);return Nf}return d("Cannot convert to map from '"+aa+"'")}(Y),mn=new Map,_r=!1;try{for(var fn=K(le._data.keys()),ro=fn.next();!ro.done;ro=fn.next()){var lr=ro.value;if(!Wt.has(lr))if(le.delete(lr))_r=!0;else{var zr=le._data.get(lr);mn.set(lr,zr)}}}catch(aa){Ce={error:aa}}finally{try{ro&&!ro.done&&(Qe=fn.return)&&Qe.call(fn)}finally{if(Ce)throw Ce.error}}try{for(var ds=K(Wt.entries()),xo=ds.next();!xo.done;xo=ds.next()){var xa=H(xo.value,2),Hl=(lr=xa[0],zr=xa[1],le._data.has(lr));if(le.set(lr,zr),le._data.has(lr)){var Xl=le._data.get(lr);mn.set(lr,Xl),Hl||(_r=!0)}}}catch(aa){st={error:aa}}finally{try{xo&&!xo.done&&(Ot=ds.return)&&Ot.call(ds)}finally{if(st)throw st.error}}if(!_r)if(le._data.size!==mn.size)le._keysAtom.reportChanged();else for(var Rf=le._data.keys(),Fp=mn.keys(),ju=Rf.next(),Bd=Fp.next();!ju.done;){if(ju.value!==Bd.value){le._keysAtom.reportChanged();break}ju=Rf.next(),Bd=Fp.next()}le._data=mn}),this},Object.defineProperty(Q.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),Q.prototype.toPOJO=function(){var Y,le,Ce={};try{for(var Qe=K(this),st=Qe.next();!st.done;st=Qe.next()){var Ot=H(st.value,2),Wt=Ot[0],mn=Ot[1];Ce[typeof Wt=="symbol"?Wt:A(Wt)]=mn}}catch(_r){Y={error:_r}}finally{try{st&&!st.done&&(le=Qe.return)&&le.call(Qe)}finally{if(Y)throw Y.error}}return Ce},Q.prototype.toJS=function(){return new Map(this)},Q.prototype.toJSON=function(){return this.toPOJO()},Q.prototype.toString=function(){var Y=this;return this.name+"[{ "+Array.from(this.keys()).map(function(le){return A(le)+": "+Y.get(le)}).join(", ")+" }]"},Q.prototype.observe=function(Y,le){return cl(this,Y)},Q.prototype.intercept=function(Y){return Zl(this,Y)},Q}(),ii=C("ObservableMap",Bp),Cc={},fl=function(){function Q(Y,le,Ce){if(le===void 0&&(le=ze),Ce===void 0&&(Ce="ObservableSet@"+u()),this.name=Ce,this[Lp]=Cc,this._data=new Set,this._atom=L(this.name),this[Symbol.toStringTag]="Set",typeof Set!="function")throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(Qe,st){return le(Qe,st,Ce)},Y&&this.replace(Y)}return Q.prototype.dehanceValue=function(Y){return this.dehancer!==void 0?this.dehancer(Y):Y},Q.prototype.clear=function(){var Y=this;di(function(){Ze(function(){var le,Ce;try{for(var Qe=K(Y._data.values()),st=Qe.next();!st.done;st=Qe.next()){var Ot=st.value;Y.delete(Ot)}}catch(Wt){le={error:Wt}}finally{try{st&&!st.done&&(Ce=Qe.return)&&Ce.call(Qe)}finally{if(le)throw le.error}}})})},Q.prototype.forEach=function(Y,le){var Ce,Qe;try{for(var st=K(this),Ot=st.next();!Ot.done;Ot=st.next()){var Wt=Ot.value;Y.call(le,Wt,Wt,this)}}catch(mn){Ce={error:mn}}finally{try{Ot&&!Ot.done&&(Qe=st.return)&&Qe.call(st)}finally{if(Ce)throw Ce.error}}},Object.defineProperty(Q.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),Q.prototype.add=function(Y){var le=this;if(Et(this._atom),Oa(this)&&!(Qe=Mr(this,{type:"add",object:this,newValue:Y})))return this;if(!this.has(Y)){di(function(){le._data.add(le.enhancer(Y,void 0)),le._atom.reportChanged()});var Ce=wa(this),Qe=Ce?{type:"add",object:this,newValue:Y}:null;Ce&&Oi(this,Qe)}return this},Q.prototype.delete=function(Y){var le=this;if(Oa(this)&&!(Qe=Mr(this,{type:"delete",object:this,oldValue:Y})))return!1;if(this.has(Y)){var Ce=wa(this),Qe=Ce?{type:"delete",object:this,oldValue:Y}:null;return di(function(){le._atom.reportChanged(),le._data.delete(Y)}),Ce&&Oi(this,Qe),!0}return!1},Q.prototype.has=function(Y){return this._atom.reportObserved(),this._data.has(this.dehanceValue(Y))},Q.prototype.entries=function(){var Y=0,le=Array.from(this.keys()),Ce=Array.from(this.values());return Cr({next:function(){var Qe=Y;return Y+=1,Qe<Ce.length?{value:[le[Qe],Ce[Qe]],done:!1}:{done:!0}}})},Q.prototype.keys=function(){return this.values()},Q.prototype.values=function(){this._atom.reportObserved();var Y=this,le=0,Ce=Array.from(this._data.values());return Cr({next:function(){return le<Ce.length?{value:Y.dehanceValue(Ce[le++]),done:!1}:{done:!0}}})},Q.prototype.replace=function(Y){var le=this;return ia(Y)&&(Y=Y.toJS()),di(function(){var Ce=Sn(!0);try{Array.isArray(Y)||$(Y)?(le.clear(),Y.forEach(function(Qe){return le.add(Qe)})):Y!=null&&d("Cannot initialize set from "+Y)}finally{Dr(Ce)}}),this},Q.prototype.observe=function(Y,le){return cl(this,Y)},Q.prototype.intercept=function(Y){return Zl(this,Y)},Q.prototype.toJS=function(){return new Set(this)},Q.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},Q.prototype[Lp=N,Symbol.iterator]=function(){return this.values()},Q}(),ia=C("ObservableSet",fl),Vp=function(){function Q(Y,le,Ce,Qe){le===void 0&&(le=new Map),this.target=Y,this.values=le,this.name=Ce,this.defaultEnhancer=Qe,this.keysAtom=new I(Ce+".keys")}return Q.prototype.read=function(Y){return this.values.get(Y).get()},Q.prototype.write=function(Y,le){var Ce=this.target,Qe=this.values.get(Y);if(Qe instanceof ci)Qe.set(le);else{if(Oa(this)){if(!(Ot=Mr(this,{type:"update",object:this.proxy||Ce,name:Y,newValue:le})))return;le=Ot.newValue}if((le=Qe.prepareNewValue(le))!==bn.UNCHANGED){var st=wa(this),Ot=st?{type:"update",object:this.proxy||Ce,oldValue:Qe.value,name:Y,newValue:le}:null;Qe.setNewValue(le),st&&Oi(this,Ot)}}},Q.prototype.has=function(Y){var le=this.pendingKeys||(this.pendingKeys=new Map),Ce=le.get(Y);if(Ce)return Ce.get();var Qe=!!this.values.get(Y);return Ce=new eo(Qe,$e,this.name+"."+A(Y)+"?",!1),le.set(Y,Ce),Ce.get()},Q.prototype.addObservableProp=function(Y,le,Ce){Ce===void 0&&(Ce=this.defaultEnhancer);var Qe=this.target;if(Oa(this)){var st=Mr(this,{object:this.proxy||Qe,name:Y,type:"add",newValue:le});if(!st)return;le=st.newValue}var Ot=new eo(le,Ce,this.name+"."+A(Y),!1);this.values.set(Y,Ot),le=Ot.value,Object.defineProperty(Qe,Y,function(Wt){return Du[Wt]||(Du[Wt]={configurable:!0,enumerable:!0,get:function(){return this[N].read(Wt)},set:function(mn){this[N].write(Wt,mn)}})}(Y)),this.notifyPropertyAddition(Y,le)},Q.prototype.addComputedProp=function(Y,le,Ce){var Qe,st,Ot,Wt=this.target;Ce.name=Ce.name||this.name+"."+A(le),this.values.set(le,new ci(Ce)),(Y===Wt||(Qe=Y,st=le,!(Ot=Object.getOwnPropertyDescriptor(Qe,st))||Ot.configurable!==!1&&Ot.writable!==!1))&&Object.defineProperty(Y,le,function(mn){return Ld[mn]||(Ld[mn]={configurable:bn.computedConfigurable,enumerable:!1,get:function(){return dl(this).read(mn)},set:function(_r){dl(this).write(mn,_r)}})}(le))},Q.prototype.remove=function(Y){if(this.values.has(Y)){var le=this.target;if(Oa(this)&&!(mn=Mr(this,{object:this.proxy||le,name:Y,type:"remove"})))return;try{Yn();var Ce=wa(this),Qe=!1,st=this.values.get(Y),Ot=st&&st.get();if(st&&st.set(void 0),this.keysAtom.reportChanged(),this.values.delete(Y),this.pendingKeys){var Wt=this.pendingKeys.get(Y);Wt&&Wt.set(!1)}delete this.target[Y];var mn=Ce?{type:"remove",object:this.proxy||le,oldValue:Ot,name:Y}:null;Ce&&Oi(this,mn)}finally{fr()}}},Q.prototype.illegalAccess=function(Y,le){},Q.prototype.observe=function(Y,le){return cl(this,Y)},Q.prototype.intercept=function(Y){return Zl(this,Y)},Q.prototype.notifyPropertyAddition=function(Y,le){var Ce=wa(this),Qe=Ce?{type:"add",object:this.proxy||this.target,name:Y,newValue:le}:null;if(Ce&&Oi(this,Qe),this.pendingKeys){var st=this.pendingKeys.get(Y);st&&st.set(!0)}this.keysAtom.reportChanged()},Q.prototype.getKeys=function(){var Y,le;this.keysAtom.reportObserved();var Ce=[];try{for(var Qe=K(this.values),st=Qe.next();!st.done;st=Qe.next()){var Ot=H(st.value,2),Wt=Ot[0];Ot[1]instanceof eo&&Ce.push(Wt)}}catch(mn){Y={error:mn}}finally{try{st&&!st.done&&(le=Qe.return)&&le.call(Qe)}finally{if(Y)throw Y.error}}return Ce},Q}();function Fa(Q,Y,le){if(Y===void 0&&(Y=""),le===void 0&&(le=ze),Object.prototype.hasOwnProperty.call(Q,N))return Q[N];b(Q)||(Y=(Q.constructor.name||"ObservableObject")+"@"+u()),Y||(Y="ObservableObject@"+u());var Ce=new Vp(Q,new Map,A(Y),le);return k(Q,N,Ce),Ce}var Du=Object.create(null),Ld=Object.create(null);function dl(Q){var Y=Q[N];return Y||(pe(Q),Q[N])}var za=C("ObservableObjectAdministration",Vp);function Sa(Q){return!!w(Q)&&(pe(Q),za(Q[N]))}function fs(Q,Y){if(typeof Q=="object"&&Q!==null){if(cs(Q))return Y!==void 0&&d(!1),Q[N].atom;if(ia(Q))return Q[N];if(ii(Q)){var le=Q;return Y===void 0?le._keysAtom:((Ce=le._data.get(Y)||le._hasMap.get(Y))||d(!1),Ce)}var Ce;if(pe(Q),Y&&!Q[N]&&Q[Y],Sa(Q))return Y?((Ce=Q[N].values.get(Y))||d(!1),Ce):d(!1);if(D(Q)||Va(Q)||Bn(Q))return Q}else if(typeof Q=="function"&&Bn(Q[N]))return Q[N];return d(!1)}function hl(Q,Y){return Q||d("Expecting some object"),Y!==void 0?hl(fs(Q,Y)):D(Q)||Va(Q)||Bn(Q)||ii(Q)||ia(Q)?Q:(pe(Q),Q[N]?Q[N]:void d(!1))}var mt=Object.prototype.toString;function At(Q,Y,le){return le===void 0&&(le=-1),It(Q,Y,le)}function It(Q,Y,le,Ce,Qe){if(Q===Y)return Q!==0||1/Q==1/Y;if(Q==null||Y==null)return!1;if(Q!=Q)return Y!=Y;var st=typeof Q;if(st!=="function"&&st!=="object"&&typeof Y!="object")return!1;var Ot=mt.call(Q);if(Ot!==mt.call(Y))return!1;switch(Ot){case"[object RegExp]":case"[object String]":return""+Q==""+Y;case"[object Number]":return+Q!=+Q?+Y!=+Y:+Q==0?1/+Q==1/Y:+Q==+Y;case"[object Date]":case"[object Boolean]":return+Q==+Y;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(Q)===Symbol.valueOf.call(Y);case"[object Map]":case"[object Set]":le>=0&&le++}Q=sn(Q),Y=sn(Y);var Wt=Ot==="[object Array]";if(!Wt){if(typeof Q!="object"||typeof Y!="object")return!1;var mn=Q.constructor,_r=Y.constructor;if(mn!==_r&&!(typeof mn=="function"&&mn instanceof mn&&typeof _r=="function"&&_r instanceof _r)&&"constructor"in Q&&"constructor"in Y)return!1}if(le===0)return!1;le<0&&(le=-1),Qe=Qe||[];for(var fn=(Ce=Ce||[]).length;fn--;)if(Ce[fn]===Q)return Qe[fn]===Y;if(Ce.push(Q),Qe.push(Y),Wt){if((fn=Q.length)!==Y.length)return!1;for(;fn--;)if(!It(Q[fn],Y[fn],le-1,Ce,Qe))return!1}else{var ro=Object.keys(Q),lr=void 0;if(fn=ro.length,Object.keys(Y).length!==fn)return!1;for(;fn--;)if(!ar(Y,lr=ro[fn])||!It(Q[lr],Y[lr],le-1,Ce,Qe))return!1}return Ce.pop(),Qe.pop(),!0}function sn(Q){return cs(Q)?Q.slice():T(Q)||ii(Q)||$(Q)||ia(Q)?Array.from(Q.entries()):Q}function ar(Q,Y){return Object.prototype.hasOwnProperty.call(Q,Y)}function Cr(Q){return Q[Symbol.iterator]=po,Q}function po(){return this}if(typeof Proxy=="undefined"||typeof Symbol=="undefined")throw new 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.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ri,extras:{getDebugName:function(Q,Y){return(Y!==void 0?fs(Q,Y):Sa(Q)||ii(Q)||ia(Q)?hl(Q):fs(Q)).name}},$mobx:N})}).call(this,o(163),o(68))},function(n,r,o){var i=o(113),a=o(42),s=o(179);i||a(Object.prototype,"toString",s,{unsafe:!0})},function(n,r,o){var i=o(41),a=o(100),s=o(80),l=o(58),u=o(116),d="Array Iterator",p=l.set,v=l.getterFor(d);n.exports=u(Array,"Array",function(y,w){p(this,{type:d,target:i(y),index:0,kind:w})},function(){var y=v(this),w=y.target,b=y.kind,k=y.index++;return!w||k>=w.length?(y.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:k,done:!1}:b=="values"?{value:w[k],done:!1}:{value:[k,w[k]],done:!1}},"values"),s.Arguments=s.Array,a("keys"),a("values"),a("entries")},function(n,r,o){var i=o(16),a=o(7),s=o(46),l=o(76),u=o(34),d=o(15),p=o(71),v=o(36),y=o(108),w=o(18),b=o(35),k=o(96),C=o(30),T=o(33),$=o(54),P=o(87),A=o(32),R=o(40),B=o(41),N=o(86),I=o(39),D=o(69),L=o(60),z=o(77),q=o(74),ae=o(139),K=o(112),H=o(50),ne=o(38),X=o(84),V=o(98),G=o(42),se=o(89),he=o(93),pe=o(72),Be=o(90),De=o(28),ze=o(140),$e=o(141),_e=o(78),me=o(58),Re=o(79).forEach,we=he("hidden"),fe="Symbol",oe=De("toPrimitive"),ke=me.set,We=me.getterFor(fe),et=Object.prototype,Ve=a.Symbol,Me=Ve&&Ve.prototype,Ke=a.TypeError,be=a.QObject,qe=s("JSON","stringify"),ct=H.f,Je=ne.f,Xe=ae.f,gt=X.f,Ct=d([].push),Zt=se("symbols"),Et=se("op-symbols"),ln=se("string-to-symbol-registry"),Ee=se("symbol-to-string-registry"),Ze=se("wks"),ye=!be||!be.prototype||!be.prototype.findChild,Le=v&&w(function(){return L(Je({},"a",{get:function(){return Je(this,"a",{value:7}).a}})).a!=7})?function(Nt,Xt,Ht){var Sn=ct(et,Xt);Sn&&delete et[Xt],Je(Nt,Xt,Ht),Sn&&Nt!==et&&Je(et,Xt,Sn)}:Je,xe=function(Nt,Xt){var Ht=Zt[Nt]=L(Me);return ke(Ht,{type:fe,tag:Nt,description:Xt}),v||(Ht.description=Xt),Ht},Ue=function(Nt,Xt,Ht){Nt===et&&Ue(Et,Xt,Ht),A(Nt);var Sn=N(Xt);return A(Ht),b(Zt,Sn)?(Ht.enumerable?(b(Nt,we)&&Nt[we][Sn]&&(Nt[we][Sn]=!1),Ht=L(Ht,{enumerable:D(0,!1)})):(b(Nt,we)||Je(Nt,we,D(1,{})),Nt[we][Sn]=!0),Le(Nt,Sn,Ht)):Je(Nt,Sn,Ht)},rt=function(Nt,Xt){A(Nt);var Ht=B(Xt),Sn=z(Ht).concat(Lt(Ht));return Re(Sn,function(Dr){v&&!u(Ft,Ht,Dr)||Ue(Nt,Dr,Ht[Dr])}),Nt},Ft=function(Nt){var Xt=N(Nt),Ht=u(gt,this,Xt);return!(this===et&&b(Zt,Xt)&&!b(Et,Xt))&&(!(Ht||!b(this,Xt)||!b(Zt,Xt)||b(this,we)&&this[we][Xt])||Ht)},Vn=function(Nt,Xt){var Ht=B(Nt),Sn=N(Xt);if(Ht!==et||!b(Zt,Sn)||b(Et,Sn)){var Dr=ct(Ht,Sn);return!Dr||!b(Zt,Sn)||b(Ht,we)&&Ht[we][Sn]||(Dr.enumerable=!0),Dr}},ot=function(Nt){var Xt=Xe(B(Nt)),Ht=[];return Re(Xt,function(Sn){b(Zt,Sn)||b(pe,Sn)||Ct(Ht,Sn)}),Ht},Lt=function(Nt){var Xt=Nt===et,Ht=Xe(Xt?Et:B(Nt)),Sn=[];return Re(Ht,function(Dr){!b(Zt,Dr)||Xt&&!b(et,Dr)||Ct(Sn,Zt[Dr])}),Sn};if(y||(Ve=function(){if($(Me,this))throw Ke("Symbol is not a constructor");var Nt=arguments.length&&arguments[0]!==void 0?I(arguments[0]):void 0,Xt=Be(Nt),Ht=function(Sn){this===et&&u(Ht,Et,Sn),b(this,we)&&b(this[we],Xt)&&(this[we][Xt]=!1),Le(this,Xt,D(1,Sn))};return v&&ye&&Le(et,Xt,{configurable:!0,set:Ht}),xe(Xt,Nt)},G(Me=Ve.prototype,"toString",function(){return We(this).tag}),G(Ve,"withoutSetter",function(Nt){return xe(Be(Nt),Nt)}),X.f=Ft,ne.f=Ue,H.f=Vn,q.f=ae.f=ot,K.f=Lt,ze.f=function(Nt){return xe(De(Nt),Nt)},v&&(Je(Me,"description",{configurable:!0,get:function(){return We(this).description}}),p||G(et,"propertyIsEnumerable",Ft,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!y,sham:!y},{Symbol:Ve}),Re(z(Ze),function(Nt){$e(Nt)}),i({target:fe,stat:!0,forced:!y},{for:function(Nt){var Xt=I(Nt);if(b(ln,Xt))return ln[Xt];var Ht=Ve(Xt);return ln[Xt]=Ht,Ee[Ht]=Xt,Ht},keyFor:function(Nt){if(!P(Nt))throw Ke(Nt+" is not a symbol");if(b(Ee,Nt))return Ee[Nt]},useSetter:function(){ye=!0},useSimple:function(){ye=!1}}),i({target:"Object",stat:!0,forced:!y,sham:!v},{create:function(Nt,Xt){return Xt===void 0?L(Nt):rt(L(Nt),Xt)},defineProperty:Ue,defineProperties:rt,getOwnPropertyDescriptor:Vn}),i({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:ot,getOwnPropertySymbols:Lt}),i({target:"Object",stat:!0,forced:w(function(){K.f(1)})},{getOwnPropertySymbols:function(Nt){return K.f(R(Nt))}}),qe&&i({target:"JSON",stat:!0,forced:!y||w(function(){var Nt=Ve();return qe([Nt])!="[null]"||qe({a:Nt})!="{}"||qe(Object(Nt))!="{}"})},{stringify:function(Nt,Xt,Ht){var Sn=V(arguments),Dr=Xt;if((T(Xt)||Nt!==void 0)&&!P(Nt))return k(Xt)||(Xt=function(eo,ma){if(C(Dr)&&(ma=u(Dr,this,eo,ma)),!P(ma))return ma}),Sn[1]=Xt,l(qe,null,Sn)}}),!Me[oe]){var wn=Me.valueOf;G(Me,oe,function(Nt){return u(wn,this)})}_e(Ve,fe),pe[we]=!0},function(n,r,o){var i=o(7),a=o(152),s=o(153),l=o(3),u=o(57),d=o(28),p=d("iterator"),v=d("toStringTag"),y=l.values,w=function(k,C){if(k){if(k[p]!==y)try{u(k,p,y)}catch{k[p]=y}if(k[v]||u(k,v,C),a[C]){for(var T in l)if(k[T]!==l[T])try{u(k,T,l[T])}catch{k[T]=l[T]}}}};for(var b in a)w(i[b]&&i[b].prototype,b);w(s,"DOMTokenList")},function(n,r,o){var i=o(151).charAt,a=o(39),s=o(58),l=o(116),u="String Iterator",d=s.set,p=s.getterFor(u);l(String,"String",function(v){d(this,{type:u,string:a(v),index:0})},function(){var v,y=p(this),w=y.string,b=y.index;return b>=w.length?{value:void 0,done:!0}:(v=i(w,b),y.index+=v.length,{value:v,done:!1})})},function(n,r,o){(function(i){var a=function(s){return s&&s.Math==Math&&s};n.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof i=="object"&&i)||function(){return this}()||Function("return this")()}).call(this,o(68))},function(n,r,o){var i=o(16),a=o(36),s=o(7),l=o(15),u=o(35),d=o(30),p=o(54),v=o(39),y=o(38).f,w=o(134),b=s.Symbol,k=b&&b.prototype;if(a&&d(b)&&(!("description"in k)||b().description!==void 0)){var C={},T=function(){var I=arguments.length<1||arguments[0]===void 0?void 0:v(arguments[0]),D=p(k,this)?new b(I):I===void 0?b():b(I);return I===""&&(C[D]=!0),D};w(T,b),T.prototype=k,k.constructor=T;var $=String(b("test"))=="Symbol(test)",P=l(k.toString),A=l(k.valueOf),R=/^Symbol\((.*)\)[^)]+$/,B=l("".replace),N=l("".slice);y(k,"description",{configurable:!0,get:function(){var I=A(this),D=P(I);if(u(C,I))return"";var L=$?N(D,7,-1):B(D,R,"$1");return L===""?void 0:L}}),i({global:!0,forced:!0},{Symbol:T})}},function(n,r,o){o(141)("iterator")},function(n,r,o){o.d(r,"a",function(){return l.a}),o.d(r,"c",function(){return l.e}),o.d(r,"h",function(){return R}),o.d(r,"i",function(){return $}),o.d(r,"j",function(){return C}),o.d(r,"b",function(){return H}),o.d(r,"e",function(){return G}),o.d(r,"f",function(){return ne}),o.d(r,"g",function(){return Zt});var i,a,s,l=o(0),u=0,d=[],p=l.i.__b,v=l.i.__r,y=l.i.diffed,w=l.i.__c,b=l.i.unmount;function k(Ee,Ze){l.i.__h&&l.i.__h(a,Ee,u||Ze),u=0;var ye=a.__H||(a.__H={__:[],__h:[]});return Ee>=ye.__.length&&ye.__.push({}),ye.__[Ee]}function C(Ee){return u=1,T(q,Ee)}function T(Ee,Ze,ye){var Le=k(i++,2);return Le.t=Ee,Le.__c||(Le.__=[ye?ye(Ze):q(void 0,Ze),function(xe){var Ue=Le.t(Le.__[0],xe);Le.__[0]!==Ue&&(Le.__=[Ue,Le.__[1]],Le.__c.setState({}))}],Le.__c=a),Le.__}function $(Ee,Ze){var ye=k(i++,3);!l.i.__s&&z(ye.__H,Ze)&&(ye.__=Ee,ye.__H=Ze,a.__H.__h.push(ye))}function P(Ee,Ze){var ye=k(i++,4);!l.i.__s&&z(ye.__H,Ze)&&(ye.__=Ee,ye.__H=Ze,a.__h.push(ye))}function A(Ee,Ze){var ye=k(i++,7);return z(ye.__H,Ze)&&(ye.__=Ee(),ye.__H=Ze,ye.__h=Ee),ye.__}function R(Ee,Ze){return u=8,A(function(){return Ee},Ze)}function B(){var Ee;for(d.sort(function(Ze,ye){return Ze.__v.__b-ye.__v.__b});Ee=d.pop();)if(Ee.__P)try{Ee.__H.__h.forEach(D),Ee.__H.__h.forEach(L),Ee.__H.__h=[]}catch(Ze){Ee.__H.__h=[],l.i.__e(Ze,Ee.__v)}}l.i.__b=function(Ee){a=null,p&&p(Ee)},l.i.__r=function(Ee){v&&v(Ee),i=0;var Ze=(a=Ee.__c).__H;Ze&&(Ze.__h.forEach(D),Ze.__h.forEach(L),Ze.__h=[])},l.i.diffed=function(Ee){y&&y(Ee);var Ze=Ee.__c;Ze&&Ze.__H&&Ze.__H.__h.length&&(d.push(Ze)!==1&&s===l.i.requestAnimationFrame||((s=l.i.requestAnimationFrame)||I)(B)),a=null},l.i.__c=function(Ee,Ze){Ze.some(function(ye){try{ye.__h.forEach(D),ye.__h=ye.__h.filter(function(Le){return!Le.__||L(Le)})}catch(Le){Ze.some(function(xe){xe.__h&&(xe.__h=[])}),Ze=[],l.i.__e(Le,ye.__v)}}),w&&w(Ee,Ze)},l.i.unmount=function(Ee){b&&b(Ee);var Ze,ye=Ee.__c;ye&&ye.__H&&(ye.__H.__.forEach(function(Le){try{D(Le)}catch(xe){Ze=xe}}),Ze&&l.i.__e(Ze,ye.__v))};var N=typeof requestAnimationFrame=="function";function I(Ee){var Ze,ye=function(){clearTimeout(Le),N&&cancelAnimationFrame(Ze),setTimeout(Ee)},Le=setTimeout(ye,100);N&&(Ze=requestAnimationFrame(ye))}function D(Ee){var Ze=a,ye=Ee.__c;typeof ye=="function"&&(Ee.__c=void 0,ye()),a=Ze}function L(Ee){var Ze=a;Ee.__c=Ee.__(),a=Ze}function z(Ee,Ze){return!Ee||Ee.length!==Ze.length||Ze.some(function(ye,Le){return ye!==Ee[Le]})}function q(Ee,Ze){return typeof Ze=="function"?Ze(Ee):Ze}function ae(Ee,Ze){for(var ye in Ze)Ee[ye]=Ze[ye];return Ee}function K(Ee,Ze){for(var ye in Ee)if(ye!=="__source"&&!(ye in Ze))return!0;for(var Le in Ze)if(Le!=="__source"&&Ee[Le]!==Ze[Le])return!0;return!1}function H(Ee){this.props=Ee}function ne(Ee,Ze){function ye(xe){var Ue=this.props.ref,rt=Ue==xe.ref;return!rt&&Ue&&(Ue.call?Ue(null):Ue.current=null),Ze?!Ze(this.props,xe)||!rt:K(this.props,xe)}function Le(xe){return this.shouldComponentUpdate=ye,Object(l.e)(Ee,xe)}return Le.displayName="Memo("+(Ee.displayName||Ee.name)+")",Le.prototype.isReactComponent=!0,Le.__f=!0,Le}(H.prototype=new l.a).isPureReactComponent=!0,H.prototype.shouldComponentUpdate=function(Ee,Ze){return K(this.props,Ee)||K(this.state,Ze)};var X=l.i.__b;l.i.__b=function(Ee){Ee.type&&Ee.type.__f&&Ee.ref&&(Ee.props.ref=Ee.ref,Ee.ref=null),X&&X(Ee)};var V=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function G(Ee){function Ze(ye,Le){var xe=ae({},ye);return delete xe.ref,Ee(xe,!(Le=ye.ref||Le)||typeof Le=="object"&&!("current"in Le)?null:Le)}return Ze.$$typeof=V,Ze.render=Ze,Ze.prototype.isReactComponent=Ze.__f=!0,Ze.displayName="ForwardRef("+(Ee.displayName||Ee.name)+")",Ze}var se=function(Ee,Ze){return Ee==null?null:Object(l.k)(Object(l.k)(Ee).map(Ze))},he={map:se,forEach:se,count:function(Ee){return Ee?Object(l.k)(Ee).length:0},only:function(Ee){var Ze=Object(l.k)(Ee);if(Ze.length!==1)throw"Children.only";return Ze[0]},toArray:l.k},pe=l.i.__e;l.i.__e=function(Ee,Ze,ye){if(Ee.then){for(var Le,xe=Ze;xe=xe.__;)if((Le=xe.__c)&&Le.__c)return Ze.__e==null&&(Ze.__e=ye.__e,Ze.__k=ye.__k),Le.__c(Ee,Ze)}pe(Ee,Ze,ye)};var Be=l.i.unmount;function De(Ee,Ze,ye){return Ee&&(Ee.__c&&Ee.__c.__H&&(Ee.__c.__H.__.forEach(function(Le){typeof Le.__c=="function"&&Le.__c()}),Ee.__c.__H=null),(Ee=ae({},Ee)).__c!=null&&(Ee.__c.__P===ye&&(Ee.__c.__P=Ze),Ee.__c=null),Ee.__k=Ee.__k&&Ee.__k.map(function(Le){return De(Le,Ze,ye)})),Ee}function ze(Ee,Ze,ye){return Ee&&(Ee.__v=null,Ee.__k=Ee.__k&&Ee.__k.map(function(Le){return ze(Le,Ze,ye)}),Ee.__c&&Ee.__c.__P===Ze&&(Ee.__e&&ye.insertBefore(Ee.__e,Ee.__d),Ee.__c.__e=!0,Ee.__c.__P=ye)),Ee}function $e(){this.__u=0,this.t=null,this.__b=null}function _e(Ee){var Ze=Ee.__.__c;return Ze&&Ze.__e&&Ze.__e(Ee)}function me(){this.u=null,this.o=null}l.i.unmount=function(Ee){var Ze=Ee.__c;Ze&&Ze.__R&&Ze.__R(),Ze&&Ee.__h===!0&&(Ee.type=null),Be&&Be(Ee)},($e.prototype=new l.a).__c=function(Ee,Ze){var ye=Ze.__c,Le=this;Le.t==null&&(Le.t=[]),Le.t.push(ye);var xe=_e(Le.__v),Ue=!1,rt=function(){Ue||(Ue=!0,ye.__R=null,xe?xe(Ft):Ft())};ye.__R=rt;var Ft=function(){if(!--Le.__u){if(Le.state.__e){var ot=Le.state.__e;Le.__v.__k[0]=ze(ot,ot.__c.__P,ot.__c.__O)}var Lt;for(Le.setState({__e:Le.__b=null});Lt=Le.t.pop();)Lt.forceUpdate()}},Vn=Ze.__h===!0;Le.__u++||Vn||Le.setState({__e:Le.__b=Le.__v.__k[0]}),Ee.then(rt,rt)},$e.prototype.componentWillUnmount=function(){this.t=[]},$e.prototype.render=function(Ee,Ze){if(this.__b){if(this.__v.__k){var ye=document.createElement("div"),Le=this.__v.__k[0].__c;this.__v.__k[0]=De(this.__b,ye,Le.__O=Le.__P)}this.__b=null}var xe=Ze.__e&&Object(l.e)(l.b,null,Ee.fallback);return xe&&(xe.__h=null),[Object(l.e)(l.b,null,Ze.__e?null:Ee.children),xe]};var Re=function(Ee,Ze,ye){if(++ye[1]===ye[0]&&Ee.o.delete(Ze),Ee.props.revealOrder&&(Ee.props.revealOrder[0]!=="t"||!Ee.o.size))for(ye=Ee.u;ye;){for(;ye.length>3;)ye.pop()();if(ye[1]<ye[0])break;Ee.u=ye=ye[2]}};function we(Ee){return this.getChildContext=function(){return Ee.context},Ee.children}function fe(Ee){var Ze=this,ye=Ee.i;Ze.componentWillUnmount=function(){Object(l.j)(null,Ze.l),Ze.l=null,Ze.i=null},Ze.i&&Ze.i!==ye&&Ze.componentWillUnmount(),Ee.__v?(Ze.l||(Ze.i=ye,Ze.l={nodeType:1,parentNode:ye,childNodes:[],appendChild:function(Le){this.childNodes.push(Le),Ze.i.appendChild(Le)},insertBefore:function(Le,xe){this.childNodes.push(Le),Ze.i.appendChild(Le)},removeChild:function(Le){this.childNodes.splice(this.childNodes.indexOf(Le)>>>1,1),Ze.i.removeChild(Le)}}),Object(l.j)(Object(l.e)(we,{context:Ze.context},Ee.__v),Ze.l)):Ze.l&&Ze.componentWillUnmount()}(me.prototype=new l.a).__e=function(Ee){var Ze=this,ye=_e(Ze.__v),Le=Ze.o.get(Ee);return Le[0]++,function(xe){var Ue=function(){Ze.props.revealOrder?(Le.push(xe),Re(Ze,Ee,Le)):xe()};ye?ye(Ue):Ue()}},me.prototype.render=function(Ee){this.u=null,this.o=new Map;var Ze=Object(l.k)(Ee.children);Ee.revealOrder&&Ee.revealOrder[0]==="b"&&Ze.reverse();for(var ye=Ze.length;ye--;)this.o.set(Ze[ye],this.u=[1,0,this.u]);return Ee.children},me.prototype.componentDidUpdate=me.prototype.componentDidMount=function(){var Ee=this;this.o.forEach(function(Ze,ye){Re(Ee,ye,Ze)})};var oe=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,ke=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,We=typeof document!="undefined",et=function(Ee){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(Ee)};l.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(Ee){Object.defineProperty(l.a.prototype,Ee,{configurable:!0,get:function(){return this["UNSAFE_"+Ee]},set:function(Ze){Object.defineProperty(this,Ee,{configurable:!0,writable:!0,value:Ze})}})});var Ve=l.i.event;function Me(){}function Ke(){return this.cancelBubble}function be(){return this.defaultPrevented}l.i.event=function(Ee){return Ve&&(Ee=Ve(Ee)),Ee.persist=Me,Ee.isPropagationStopped=Ke,Ee.isDefaultPrevented=be,Ee.nativeEvent=Ee};var qe,ct={configurable:!0,get:function(){return this.class}},Je=l.i.vnode;l.i.vnode=function(Ee){var Ze=Ee.type,ye=Ee.props,Le=ye;if(typeof Ze=="string"){var xe=Ze.indexOf("-")===-1;for(var Ue in Le={},ye){var rt=ye[Ue];We&&Ue==="children"&&Ze==="noscript"||Ue==="value"&&"defaultValue"in ye&&rt==null||(Ue==="defaultValue"&&"value"in ye&&ye.value==null?Ue="value":Ue==="download"&&rt===!0?rt="":/ondoubleclick/i.test(Ue)?Ue="ondblclick":/^onchange(textarea|input)/i.test(Ue+Ze)&&!et(ye.type)?Ue="oninput":/^onfocus$/i.test(Ue)?Ue="onfocusin":/^onblur$/i.test(Ue)?Ue="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(Ue)?Ue=Ue.toLowerCase():xe&&ke.test(Ue)?Ue=Ue.replace(/[A-Z0-9]/,"-$&").toLowerCase():rt===null&&(rt=void 0),Le[Ue]=rt)}Ze=="select"&&Le.multiple&&Array.isArray(Le.value)&&(Le.value=Object(l.k)(ye.children).forEach(function(Ft){Ft.props.selected=Le.value.indexOf(Ft.props.value)!=-1})),Ze=="select"&&Le.defaultValue!=null&&(Le.value=Object(l.k)(ye.children).forEach(function(Ft){Ft.props.selected=Le.multiple?Le.defaultValue.indexOf(Ft.props.value)!=-1:Le.defaultValue==Ft.props.value})),Ee.props=Le,ye.class!=ye.className&&(ct.enumerable="className"in ye,ye.className!=null&&(Le.class=ye.className),Object.defineProperty(Le,"className",ct))}Ee.$$typeof=oe,Je&&Je(Ee)};var Xe=l.i.__r;l.i.__r=function(Ee){Xe&&Xe(Ee),qe=Ee.__c};var gt={ReactCurrentDispatcher:{current:{readContext:function(Ee){return qe.__n[Ee.__c].props.value}}}};function Ct(Ee){return!!Ee&&Ee.$$typeof===oe}var Zt=function(Ee,Ze){return Ee(Ze)},Et=l.b,ln={useState:C,useReducer:T,useEffect:$,useLayoutEffect:P,useRef:function(Ee){return u=5,A(function(){return{current:Ee}},[])},useImperativeHandle:function(Ee,Ze,ye){u=6,P(function(){typeof Ee=="function"?Ee(Ze()):Ee&&(Ee.current=Ze())},ye==null?ye:ye.concat(Ee))},useMemo:A,useCallback:R,useContext:function(Ee){var Ze=a.context[Ee.__c],ye=k(i++,9);return ye.c=Ee,Ze?(ye.__==null&&(ye.__=!0,Ze.sub(a)),Ze.props.value):Ee.__},useDebugValue:function(Ee,Ze){l.i.useDebugValue&&l.i.useDebugValue(Ze?Ze(Ee):Ee)},version:"17.0.2",Children:he,render:function(Ee,Ze,ye){return Ze.__k==null&&(Ze.textContent=""),Object(l.j)(Ee,Ze),typeof ye=="function"&&ye(),Ee?Ee.__c:null},hydrate:function(Ee,Ze,ye){return Object(l.h)(Ee,Ze),typeof ye=="function"&&ye(),Ee?Ee.__c:null},unmountComponentAtNode:function(Ee){return!!Ee.__k&&(Object(l.j)(null,Ee),!0)},createPortal:function(Ee,Ze){return Object(l.e)(fe,{__v:Ee,i:Ze})},createElement:l.e,createContext:l.d,createFactory:function(Ee){return l.e.bind(null,Ee)},cloneElement:function(Ee){return Ct(Ee)?l.c.apply(null,arguments):Ee},createRef:l.f,Fragment:l.b,isValidElement:Ct,findDOMNode:function(Ee){return Ee&&(Ee.base||Ee.nodeType===1&&Ee)||null},Component:l.a,PureComponent:H,memo:ne,forwardRef:G,flushSync:function(Ee,Ze){return Ee(Ze)},unstable_batchedUpdates:Zt,StrictMode:Et,Suspense:$e,SuspenseList:me,lazy:function(Ee){var Ze,ye,Le;function xe(Ue){if(Ze||(Ze=Ee()).then(function(rt){ye=rt.default||rt},function(rt){Le=rt}),Le)throw Le;if(!ye)throw Ze;return Object(l.e)(ye,Ue)}return xe.displayName="Lazy",xe.__f=!0,xe},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:gt};r.d=ln},function(n,r,o){var i=o(7),a=o(152),s=o(153),l=o(187),u=o(57),d=function(v){if(v&&v.forEach!==l)try{u(v,"forEach",l)}catch{v.forEach=l}};for(var p in a)a[p]&&d(i[p]&&i[p].prototype);d(s)},function(n,r,o){o(16)({target:"Object",stat:!0},{setPrototypeOf:o(102)})},function(n,r,o){var i=o(16),a=o(18),s=o(40),l=o(101),u=o(143);i({target:"Object",stat:!0,forced:a(function(){l(1)}),sham:!u},{getPrototypeOf:function(d){return l(s(d))}})},function(n,r,o){var i=o(16),a=o(46),s=o(76),l=o(203),u=o(165),d=o(32),p=o(33),v=o(60),y=o(18),w=a("Reflect","construct"),b=Object.prototype,k=[].push,C=y(function(){function P(){}return!(w(function(){},[],P)instanceof P)}),T=!y(function(){w(function(){})}),$=C||T;i({target:"Reflect",stat:!0,forced:$,sham:$},{construct:function(P,A){u(P),d(A);var R=arguments.length<3?P:u(arguments[2]);if(T&&!C)return w(P,A,R);if(P==R){switch(A.length){case 0:return new P;case 1:return new P(A[0]);case 2:return new P(A[0],A[1]);case 3:return new P(A[0],A[1],A[2]);case 4:return new P(A[0],A[1],A[2],A[3])}var B=[null];return s(k,B,A),new(s(l,P,B))}var N=R.prototype,I=v(p(N)?N:b),D=s(P,I,A);return p(D)?D:I}})},function(n,r){var o=Function.prototype,i=o.bind,a=o.call,s=i&&i.bind(a);n.exports=i?function(l){return l&&s(a,l)}:function(l){return l&&function(){return a.apply(l,arguments)}}},function(n,r,o){var i=o(7),a=o(50).f,s=o(57),l=o(42),u=o(110),d=o(134),p=o(95);n.exports=function(v,y){var w,b,k,C,T,$=v.target,P=v.global,A=v.stat;if(w=P?i:A?i[$]||u($,{}):(i[$]||{}).prototype)for(b in y){if(C=y[b],k=v.noTargetGet?(T=a(w,b))&&T.value:w[b],!p(P?b:$+(A?".":"#")+b,v.forced)&&k!==void 0){if(typeof C==typeof k)continue;d(C,k)}(v.sham||k&&k.sham)&&s(C,"sham",!0),l(w,b,C,v)}}},function(n,r,o){var i=o(16),a=o(7),s=o(96),l=o(99),u=o(33),d=o(75),p=o(45),v=o(41),y=o(62),w=o(28),b=o(81),k=o(98),C=b("slice"),T=w("species"),$=a.Array,P=Math.max;i({target:"Array",proto:!0,forced:!C},{slice:function(A,R){var B,N,I,D=v(this),L=p(D),z=d(A,L),q=d(R===void 0?L:R,L);if(s(D)&&(B=D.constructor,(l(B)&&(B===$||s(B.prototype))||u(B)&&(B=B[T])===null)&&(B=void 0),B===$||B===void 0))return k(D,z,q);for(N=new(B===void 0?$:B)(P(q-z,0)),I=0;z<q;z++,I++)z in D&&y(N,I,D[z]);return N.length=I,N}})},function(n,r){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,r,o){var i=o(16),a=o(103);i({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},function(n,r,o){var i=o(16),a=o(40),s=o(77);i({target:"Object",stat:!0,forced:o(18)(function(){s(1)})},{keys:function(l){return s(a(l))}})},function(n,r,o){var i=o(36),a=o(73).EXISTS,s=o(15),l=o(38).f,u=Function.prototype,d=s(u.toString),p=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,v=s(p.exec);i&&!a&&l(u,"name",{configurable:!0,get:function(){try{return v(p,d(this))[1]}catch{return""}}})},function(n,r,o){var i=o(16),a=o(18),s=o(41),l=o(50).f,u=o(36),d=a(function(){l(1)});i({target:"Object",stat:!0,forced:!u||d,sham:!u},{getOwnPropertyDescriptor:function(p,v){return l(s(p),v)}})},function(n,r,o){var i=o(16),a=o(188);i({target:"Array",stat:!0,forced:!o(120)(function(s){Array.from(s)})},{from:a})},function(n,r,o){var i=o(16),a=o(79).filter;i({target:"Array",proto:!0,forced:!o(81)("filter")},{filter:function(s){return a(this,s,arguments.length>1?arguments[1]:void 0)}})},function(n,r,o){var i=o(16),a=o(36),s=o(135),l=o(41),u=o(50),d=o(62);i({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(p){for(var v,y,w=l(p),b=u.f,k=s(w),C={},T=0;k.length>T;)(y=b(w,v=k[T++]))!==void 0&&d(C,v,y);return C}})},function(n,r,o){var i=o(16),a=o(7),s=o(18),l=o(96),u=o(33),d=o(40),p=o(45),v=o(62),y=o(115),w=o(81),b=o(28),k=o(70),C=b("isConcatSpreadable"),T=9007199254740991,$="Maximum allowed index exceeded",P=a.TypeError,A=k>=51||!s(function(){var N=[];return N[C]=!1,N.concat()[0]!==N}),R=w("concat"),B=function(N){if(!u(N))return!1;var I=N[C];return I!==void 0?!!I:l(N)};i({target:"Array",proto:!0,forced:!A||!R},{concat:function(N){var I,D,L,z,q,ae=d(this),K=y(ae,0),H=0;for(I=-1,L=arguments.length;I<L;I++)if(B(q=I===-1?ae:arguments[I])){if(H+(z=p(q))>T)throw P($);for(D=0;D<z;D++,H++)D in q&&v(K,H,q[D])}else{if(H>=T)throw P($);v(K,H++,q)}return K.length=H,K}})},,function(n,r,o){var i=o(7),a=o(89),s=o(35),l=o(90),u=o(108),d=o(132),p=a("wks"),v=i.Symbol,y=v&&v.for,w=d?v:v&&v.withoutSetter||l;n.exports=function(b){if(!s(p,b)||!u&&typeof p[b]!="string"){var k="Symbol."+b;u&&s(v,b)?p[b]=v[b]:p[b]=d&&y?y(k):w(k)}return p[b]}},function(n,r,o){var i=o(16),a=o(202);i({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},function(n,r){n.exports=function(o){return typeof o=="function"}},function(n,r,o){var i=o(106),a=typeof self=="object"&&self&&self.Object===Object&&self,s=i.a||a||Function("return this")();r.a=s},function(n,r,o){var i=o(7),a=o(33),s=i.String,l=i.TypeError;n.exports=function(u){if(a(u))return u;throw l(s(u)+" is not an object")}},function(n,r,o){var i=o(30);n.exports=function(a){return typeof a=="object"?a!==null:i(a)}},function(n,r){var o=Function.prototype.call;n.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(n,r,o){var i=o(15),a=o(40),s=i({}.hasOwnProperty);n.exports=Object.hasOwn||function(l,u){return s(a(l),u)}},function(n,r,o){var i=o(18);n.exports=!i(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(n,r,o){var i=o(16),a=o(79).map;i({target:"Array",proto:!0,forced:!o(81)("map")},{map:function(s){return a(this,s,arguments.length>1?arguments[1]:void 0)}})},function(n,r,o){var i=o(7),a=o(36),s=o(133),l=o(32),u=o(86),d=i.TypeError,p=Object.defineProperty;r.f=a?p:function(v,y,w){if(l(v),y=u(y),l(w),s)try{return p(v,y,w)}catch{}if("get"in w||"set"in w)throw d("Accessors not supported");return"value"in w&&(v[y]=w.value),v}},function(n,r,o){var i=o(7),a=o(97),s=i.String;n.exports=function(l){if(a(l)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return s(l)}},function(n,r,o){var i=o(7),a=o(44),s=i.Object;n.exports=function(l){return s(a(l))}},function(n,r,o){var i=o(85),a=o(44);n.exports=function(s){return i(a(s))}},function(n,r,o){var i=o(7),a=o(30),s=o(35),l=o(57),u=o(110),d=o(92),p=o(58),v=o(73).CONFIGURABLE,y=p.get,w=p.enforce,b=String(String).split("String");(n.exports=function(k,C,T,$){var P,A=!!$&&!!$.unsafe,R=!!$&&!!$.enumerable,B=!!$&&!!$.noTargetGet,N=$&&$.name!==void 0?$.name:C;a(T)&&(String(N).slice(0,7)==="Symbol("&&(N="["+String(N).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!s(T,"name")||v&&T.name!==N)&&l(T,"name",N),(P=w(T)).source||(P.source=b.join(typeof N=="string"?N:""))),k!==i?(A?!B&&k[C]&&(R=!0):delete k[C],R?k[C]=T:l(k,C,T)):R?k[C]=T:u(C,T)})(Function.prototype,"toString",function(){return a(this)&&y(this).source||d(this)})},function(n,r,o){(function(i){o.d(r,"d",function(){return l}),o.d(r,"c",function(){return u}),o.d(r,"b",function(){return d}),o.d(r,"a",function(){return v});var a=o(10),s=function(y,w){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var k,C,T=b.call(y),$=[];try{for(;(w===void 0||w-- >0)&&!(k=T.next()).done;)$.push(k.value)}catch(P){C={error:P}}finally{try{k&&!k.done&&(b=T.return)&&b.call(T)}finally{if(C)throw C.error}}return $};function l(){var y=s(Object(a.j)(0),2)[1];return Object(a.h)(function(){y(function(w){return w+1})},[])}function u(y){if(!y||typeof y!="object")return!1;var w=Object.getPrototypeOf(y);return!w||w===Object.prototype}function d(y){return typeof Symbol=="function"?Symbol.for(y):"__$mobx-react "+y+"__"}var p={};function v(){return typeof window!="undefined"?window:i!==void 0?i:typeof self!="undefined"?self:p}}).call(this,o(68))},function(n,r,o){var i=o(7).TypeError;n.exports=function(a){if(a==null)throw i("Can't call method on "+a);return a}},function(n,r,o){var i=o(94);n.exports=function(a){return i(a.length)}},function(n,r,o){var i=o(7),a=o(30),s=function(l){return a(l)?l:void 0};n.exports=function(l,u){return arguments.length<2?s(i[l]):i[l]&&i[l][u]}},function(n,r,o){var i=o(16),a=o(34),s=o(33),l=o(32),u=o(204),d=o(50),p=o(101);i({target:"Reflect",stat:!0},{get:function v(y,w){var b,k,C=arguments.length<3?y:arguments[2];return l(y)===C?y[w]:(b=d.f(y,w))?u(b)?b.value:b.get===void 0?void 0:a(b.get,C):s(k=p(y))?v(k,w,C):void 0}})},function(n,r,o){(function(i){var a=o(31),s=o(171),l=t&&!t.nodeType&&t,u=l&&typeof i=="object"&&i&&!i.nodeType&&i,d=u&&u.exports===l?a.a.Buffer:void 0,p=(d?d.isBuffer:void 0)||s.a;r.a=p}).call(this,o(122)(n))},function(n,r,o){(function(i){var a=o(106),s=t&&!t.nodeType&&t,l=s&&typeof i=="object"&&i&&!i.nodeType&&i,u=l&&l.exports===s&&a.a.process,d=function(){try{var p=l&&l.require&&l.require("util").types;return p||u&&u.binding&&u.binding("util")}catch{}}();r.a=d}).call(this,o(122)(n))},function(n,r,o){var i=o(36),a=o(34),s=o(84),l=o(69),u=o(41),d=o(86),p=o(35),v=o(133),y=Object.getOwnPropertyDescriptor;r.f=i?y:function(w,b){if(w=u(w),b=d(b),v)try{return y(w,b)}catch{}if(p(w,b))return l(!a(s.f,w,b),w[b])}},function(n,r,o){var i=o(15),a=i({}.toString),s=i("".slice);n.exports=function(l){return s(a(l),8,-1)}},function(n,r,o){o(182)("Map",function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},o(186))},function(n,r,o){var i=o(16),a=o(219).entries;i({target:"Object",stat:!0},{entries:function(s){return a(s)}})},function(n,r,o){var i=o(15);n.exports=i({}.isPrototypeOf)},function(n,r,o){var i=o(46);n.exports=i("navigator","userAgent")||""},function(n,r,o){var i=o(7),a=o(30),s=o(88),l=i.TypeError;n.exports=function(u){if(a(u))return u;throw l(s(u)+" is not a function")}},function(n,r,o){var i=o(36),a=o(38),s=o(69);n.exports=i?function(l,u,d){return a.f(l,u,s(1,d))}:function(l,u,d){return l[u]=d,l}},function(n,r,o){var i,a,s,l=o(175),u=o(7),d=o(15),p=o(33),v=o(57),y=o(35),w=o(109),b=o(93),k=o(72),C="Object already initialized",T=u.TypeError,$=u.WeakMap;if(l||w.state){var P=w.state||(w.state=new $),A=d(P.get),R=d(P.has),B=d(P.set);i=function(I,D){if(R(P,I))throw new T(C);return D.facade=I,B(P,I,D),D},a=function(I){return A(P,I)||{}},s=function(I){return R(P,I)}}else{var N=b("state");k[N]=!0,i=function(I,D){if(y(I,N))throw new T(C);return D.facade=I,v(I,N,D),D},a=function(I){return y(I,N)?I[N]:{}},s=function(I){return y(I,N)}}n.exports={set:i,get:a,has:s,enforce:function(I){return s(I)?a(I):i(I,{})},getterFor:function(I){return function(D){var L;if(!p(D)||(L=a(D)).type!==I)throw T("Incompatible receiver, "+I+" required");return L}}}},function(n,r){var o=Math.ceil,i=Math.floor;n.exports=function(a){var s=+a;return s!=s||s===0?0:(s>0?i:o)(s)}},function(n,r,o){var i,a=o(32),s=o(176),l=o(111),u=o(72),d=o(138),p=o(91),v=o(93),y=v("IE_PROTO"),w=function(){},b=function(T){return"<script>"+T+"<\/script>"},k=function(T){T.write(b("")),T.close();var $=T.parentWindow.Object;return T=null,$},C=function(){try{i=new ActiveXObject("htmlfile")}catch{}var T,$;C=typeof document!="undefined"?document.domain&&i?k(i):(($=p("iframe")).style.display="none",d.appendChild($),$.src=String("javascript:"),(T=$.contentWindow.document).open(),T.write(b("document.F=Object")),T.close(),T.F):k(i);for(var P=l.length;P--;)delete C.prototype[l[P]];return C()};u[y]=!0,n.exports=Object.create||function(T,$){var P;return T!==null?(w.prototype=a(T),P=new w,w.prototype=null,P[y]=T):P=C(),$===void 0?P:s(P,$)}},function(n,r,o){var i=o(56);n.exports=function(a,s){var l=a[s];return l==null?void 0:i(l)}},function(n,r,o){var i=o(86),a=o(38),s=o(69);n.exports=function(l,u,d){var p=i(u);p in l?a.f(l,p,s(0,d)):l[p]=d}},function(n,r,o){var i=o(15),a=o(56),s=i(i.bind);n.exports=function(l,u){return a(l),u===void 0?l:s?s(l,u):function(){return l.apply(u,arguments)}}},function(n,r,o){var i=o(36),a=o(7),s=o(15),l=o(95),u=o(42),d=o(35),p=o(148),v=o(54),y=o(87),w=o(131),b=o(18),k=o(74).f,C=o(50).f,T=o(38).f,$=o(160),P=o(161).trim,A="Number",R=a.Number,B=R.prototype,N=a.TypeError,I=s("".slice),D=s("".charCodeAt),L=function(ne){var X=w(ne,"number");return typeof X=="bigint"?X:z(X)},z=function(ne){var X,V,G,se,he,pe,Be,De,ze=w(ne,"number");if(y(ze))throw N("Cannot convert a Symbol value to a number");if(typeof ze=="string"&&ze.length>2){if(ze=P(ze),(X=D(ze,0))===43||X===45){if((V=D(ze,2))===88||V===120)return NaN}else if(X===48){switch(D(ze,1)){case 66:case 98:G=2,se=49;break;case 79:case 111:G=8,se=55;break;default:return+ze}for(pe=(he=I(ze,2)).length,Be=0;Be<pe;Be++)if((De=D(he,Be))<48||De>se)return NaN;return parseInt(he,G)}}return+ze};if(l(A,!R(" 0o1")||!R("0b1")||R("+0x1"))){for(var q,ae=function(ne){var X=arguments.length<1?0:R(L(ne)),V=this;return v(B,V)&&b(function(){$(V)})?p(Object(X),V,ae):X},K=i?k(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),H=0;K.length>H;H++)d(R,q=K[H])&&!d(ae,q)&&T(ae,q,C(R,q));ae.prototype=B,B.constructor=ae,u(a,A,ae)}},function(n,r,o){var i=o(16),a=o(15),s=o(85),l=o(41),u=o(121),d=a([].join),p=s!=Object,v=u("join",",");i({target:"Array",proto:!0,forced:p||!v},{join:function(y){return d(l(this),y===void 0?",":y)}})},function(n,r,o){var i=o(15),a=o(73).PROPER,s=o(42),l=o(32),u=o(54),d=o(39),p=o(18),v=o(154),y="toString",w=RegExp.prototype,b=w.toString,k=i(v),C=p(function(){return b.call({source:"a",flags:"b"})!="/a/b"}),T=a&&b.name!=y;(C||T)&&s(RegExp.prototype,y,function(){var $=l(this),P=d($.source),A=$.flags;return"/"+P+"/"+d(A===void 0&&u(w,$)&&!("flags"in w)?k($):A)},{unsafe:!0})},function(n,r,o){var i=o(16),a=o(216),s=o(100);i({target:"Array",proto:!0},{fill:a}),s("fill")},function(n,r){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,r){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,r,o){var i,a,s=o(7),l=o(55),u=s.process,d=s.Deno,p=u&&u.versions||d&&d.version,v=p&&p.v8;v&&(a=(i=v.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&l&&(!(i=l.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=l.match(/Chrome\/(\d+)/))&&(a=+i[1]),n.exports=a},function(n,r){n.exports=!1},function(n,r){n.exports={}},function(n,r,o){var i=o(36),a=o(35),s=Function.prototype,l=i&&Object.getOwnPropertyDescriptor,u=a(s,"name"),d=u&&function(){}.name==="something",p=u&&(!i||i&&l(s,"name").configurable);n.exports={EXISTS:u,PROPER:d,CONFIGURABLE:p}},function(n,r,o){var i=o(136),a=o(111).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(s){return i(s,a)}},function(n,r,o){var i=o(59),a=Math.max,s=Math.min;n.exports=function(l,u){var d=i(l);return d<0?a(d+u,0):s(d,u)}},function(n,r){var o=Function.prototype,i=o.apply,a=o.bind,s=o.call;n.exports=typeof Reflect=="object"&&Reflect.apply||(a?s.bind(i):function(){return s.apply(i,arguments)})},function(n,r,o){var i=o(136),a=o(111);n.exports=Object.keys||function(s){return i(s,a)}},function(n,r,o){var i=o(38).f,a=o(35),s=o(28)("toStringTag");n.exports=function(l,u,d){l&&!a(l=d?l:l.prototype,s)&&i(l,s,{configurable:!0,value:u})}},function(n,r,o){var i=o(63),a=o(15),s=o(85),l=o(40),u=o(45),d=o(115),p=a([].push),v=function(y){var w=y==1,b=y==2,k=y==3,C=y==4,T=y==6,$=y==7,P=y==5||T;return function(A,R,B,N){for(var I,D,L=l(A),z=s(L),q=i(R,B),ae=u(z),K=0,H=N||d,ne=w?H(A,ae):b||$?H(A,0):void 0;ae>K;K++)if((P||K in z)&&(D=q(I=z[K],K,L),y))if(w)ne[K]=D;else if(D)switch(y){case 3:return!0;case 5:return I;case 6:return K;case 2:p(ne,I)}else switch(y){case 4:return!1;case 7:p(ne,I)}return T?-1:k||C?C:ne}};n.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)}},function(n,r){n.exports={}},function(n,r,o){var i=o(18),a=o(28),s=o(70),l=a("species");n.exports=function(u){return s>=51||!i(function(){var d=[];return(d.constructor={})[l]=function(){return{foo:1}},d[u](Boolean).foo!==1})}},function(n,r,o){var i=o(76),a=o(34),s=o(15),l=o(123),u=o(159),d=o(32),p=o(44),v=o(164),y=o(124),w=o(94),b=o(39),k=o(61),C=o(114),T=o(125),$=o(103),P=o(155),A=o(18),R=P.UNSUPPORTED_Y,B=4294967295,N=Math.min,I=[].push,D=s(/./.exec),L=s(I),z=s("".slice),q=!A(function(){var ae=/(?:)/,K=ae.exec;ae.exec=function(){return K.apply(this,arguments)};var H="ab".split(ae);return H.length!==2||H[0]!=="a"||H[1]!=="b"});l("split",function(ae,K,H){var ne;return ne="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(X,V){var G=b(p(this)),se=V===void 0?B:V>>>0;if(se===0)return[];if(X===void 0)return[G];if(!u(X))return a(K,G,X,se);for(var he,pe,Be,De=[],ze=(X.ignoreCase?"i":"")+(X.multiline?"m":"")+(X.unicode?"u":"")+(X.sticky?"y":""),$e=0,_e=new RegExp(X.source,ze+"g");(he=a($,_e,G))&&!((pe=_e.lastIndex)>$e&&(L(De,z(G,$e,he.index)),he.length>1&&he.index<G.length&&i(I,De,C(he,1)),Be=he[0].length,$e=pe,De.length>=se));)_e.lastIndex===he.index&&_e.lastIndex++;return $e===G.length?!Be&&D(_e,"")||L(De,""):L(De,z(G,$e)),De.length>se?C(De,0,se):De}:"0".split(void 0,0).length?function(X,V){return X===void 0&&V===0?[]:a(K,this,X,V)}:K,[function(X,V){var G=p(this),se=X==null?void 0:k(X,ae);return se?a(se,X,G,V):a(ne,b(G),X,V)},function(X,V){var G=d(this),se=b(X),he=H(ne,G,se,V,ne!==K);if(he.done)return he.value;var pe=v(G,RegExp),Be=G.unicode,De=(G.ignoreCase?"i":"")+(G.multiline?"m":"")+(G.unicode?"u":"")+(R?"g":"y"),ze=new pe(R?"^(?:"+G.source+")":G,De),$e=V===void 0?B:V>>>0;if($e===0)return[];if(se.length===0)return T(ze,se)===null?[se]:[];for(var _e=0,me=0,Re=[];me<se.length;){ze.lastIndex=R?0:me;var we,fe=T(ze,R?z(se,me):se);if(fe===null||(we=N(w(ze.lastIndex+(R?me:0)),se.length))===_e)me=y(se,me,Be);else{if(L(Re,z(se,_e,me)),Re.length===$e)return Re;for(var oe=1;oe<=fe.length-1;oe++)if(L(Re,fe[oe]),Re.length===$e)return Re;me=_e=we}}return L(Re,z(se,_e)),Re}]},!q,R)},function(n,r,o){o(16)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(n,r,o){var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,s=a&&!i.call({1:2},1);r.f=s?function(l){var u=a(this,l);return!!u&&u.enumerable}:i},function(n,r,o){var i=o(7),a=o(15),s=o(18),l=o(51),u=i.Object,d=a("".split);n.exports=s(function(){return!u("z").propertyIsEnumerable(0)})?function(p){return l(p)=="String"?d(p,""):u(p)}:u},function(n,r,o){var i=o(131),a=o(87);n.exports=function(s){var l=i(s,"string");return a(l)?l:l+""}},function(n,r,o){var i=o(7),a=o(46),s=o(30),l=o(54),u=o(132),d=i.Object;n.exports=u?function(p){return typeof p=="symbol"}:function(p){var v=a("Symbol");return s(v)&&l(v.prototype,d(p))}},function(n,r,o){var i=o(7).String;n.exports=function(a){try{return i(a)}catch{return"Object"}}},function(n,r,o){var i=o(71),a=o(109);(n.exports=function(s,l){return a[s]||(a[s]=l!==void 0?l:{})})("versions",[]).push({version:"3.19.3",mode:i?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},function(n,r,o){var i=o(15),a=0,s=Math.random(),l=i(1 .toString);n.exports=function(u){return"Symbol("+(u===void 0?"":u)+")_"+l(++a+s,36)}},function(n,r,o){var i=o(7),a=o(33),s=i.document,l=a(s)&&a(s.createElement);n.exports=function(u){return l?s.createElement(u):{}}},function(n,r,o){var i=o(15),a=o(30),s=o(109),l=i(Function.toString);a(s.inspectSource)||(s.inspectSource=function(u){return l(u)}),n.exports=s.inspectSource},function(n,r,o){var i=o(89),a=o(90),s=i("keys");n.exports=function(l){return s[l]||(s[l]=a(l))}},function(n,r,o){var i=o(59),a=Math.min;n.exports=function(s){return s>0?a(i(s),9007199254740991):0}},function(n,r,o){var i=o(18),a=o(30),s=/#|\.prototype\./,l=function(y,w){var b=d[u(y)];return b==v||b!=p&&(a(w)?i(w):!!w)},u=l.normalize=function(y){return String(y).replace(s,".").toLowerCase()},d=l.data={},p=l.NATIVE="N",v=l.POLYFILL="P";n.exports=l},function(n,r,o){var i=o(51);n.exports=Array.isArray||function(a){return i(a)=="Array"}},function(n,r,o){var i=o(7),a=o(113),s=o(30),l=o(51),u=o(28)("toStringTag"),d=i.Object,p=l(function(){return arguments}())=="Arguments";n.exports=a?l:function(v){var y,w,b;return v===void 0?"Undefined":v===null?"Null":typeof(w=function(k,C){try{return k[C]}catch{}}(y=d(v),u))=="string"?w:p?l(y):(b=l(y))=="Object"&&s(y.callee)?"Arguments":b}},function(n,r,o){var i=o(15);n.exports=i([].slice)},function(n,r,o){var i=o(15),a=o(18),s=o(30),l=o(97),u=o(46),d=o(92),p=function(){},v=[],y=u("Reflect","construct"),w=/^\s*(?:class|function)\b/,b=i(w.exec),k=!w.exec(p),C=function(T){if(!s(T))return!1;try{return y(p,v,T),!0}catch{return!1}};n.exports=!y||a(function(){var T;return C(C.call)||!C(Object)||!C(function(){T=!0})||T})?function(T){if(!s(T))return!1;switch(l(T)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return k||!!b(w,d(T))}:C},function(n,r,o){var i=o(28),a=o(60),s=o(38),l=i("unscopables"),u=Array.prototype;u[l]==null&&s.f(u,l,{configurable:!0,value:a(null)}),n.exports=function(d){u[l][d]=!0}},function(n,r,o){var i=o(7),a=o(35),s=o(30),l=o(40),u=o(93),d=o(143),p=u("IE_PROTO"),v=i.Object,y=v.prototype;n.exports=d?v.getPrototypeOf:function(w){var b=l(w);if(a(b,p))return b[p];var k=b.constructor;return s(k)&&b instanceof k?k.prototype:b instanceof v?y:null}},function(n,r,o){var i=o(15),a=o(32),s=o(181);n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l,u=!1,d={};try{(l=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(d,[]),u=d instanceof Array}catch{}return function(p,v){return a(p),s(v),u?l(p,v):p.__proto__=v,p}}():void 0)},function(n,r,o){var i,a,s=o(34),l=o(15),u=o(39),d=o(154),p=o(155),v=o(89),y=o(60),w=o(58).get,b=o(190),k=o(191),C=v("native-string-replace",String.prototype.replace),T=RegExp.prototype.exec,$=T,P=l("".charAt),A=l("".indexOf),R=l("".replace),B=l("".slice),N=(a=/b*/g,s(T,i=/a/,"a"),s(T,a,"a"),i.lastIndex!==0||a.lastIndex!==0),I=p.BROKEN_CARET,D=/()??/.exec("")[1]!==void 0;(N||D||I||b||k)&&($=function(L){var z,q,ae,K,H,ne,X,V=this,G=w(V),se=u(L),he=G.raw;if(he)return he.lastIndex=V.lastIndex,z=s($,he,se),V.lastIndex=he.lastIndex,z;var pe=G.groups,Be=I&&V.sticky,De=s(d,V),ze=V.source,$e=0,_e=se;if(Be&&(De=R(De,"y",""),A(De,"g")===-1&&(De+="g"),_e=B(se,V.lastIndex),V.lastIndex>0&&(!V.multiline||V.multiline&&P(se,V.lastIndex-1)!==`
  95. `)&&(ze="(?: "+ze+")",_e=" "+_e,$e++),q=new RegExp("^(?:"+ze+")",De)),D&&(q=new RegExp("^"+ze+"$(?!\\s)",De)),N&&(ae=V.lastIndex),K=s(T,Be?q:V,_e),Be?K?(K.input=B(K.input,$e),K[0]=B(K[0],$e),K.index=V.lastIndex,V.lastIndex+=K[0].length):V.lastIndex=0:N&&K&&(V.lastIndex=V.global?K.index+K[0].length:ae),D&&K&&K.length>1&&s(C,K[0],q,function(){for(H=1;H<arguments.length-2;H++)arguments[H]===void 0&&(K[H]=void 0)}),K&&pe)for(K.groups=ne=y(null),H=0;H<pe.length;H++)ne[(X=pe[H])[0]]=K[X[1]];return K}),n.exports=$},function(n,r,o){var i=o(16),a=o(7),s=o(75),l=o(59),u=o(45),d=o(40),p=o(115),v=o(62),y=o(81)("splice"),w=a.TypeError,b=Math.max,k=Math.min,C=9007199254740991,T="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!y},{splice:function($,P){var A,R,B,N,I,D,L=d(this),z=u(L),q=s($,z),ae=arguments.length;if(ae===0?A=R=0:ae===1?(A=0,R=z-q):(A=ae-2,R=k(b(l(P),0),z-q)),z+A-R>C)throw w(T);for(B=p(L,R),N=0;N<R;N++)(I=q+N)in L&&v(B,N,L[I]);if(B.length=R,A<R){for(N=q;N<z-R;N++)D=N+A,(I=N+R)in L?L[D]=L[I]:delete L[D];for(N=z;N>z-R+A;N--)delete L[N-1]}else if(A>R)for(N=z-R;N>q;N--)D=N+A-1,(I=N+R-1)in L?L[D]=L[I]:delete L[D];for(N=0;N<A;N++)L[N+q]=arguments[N+2];return L.length=z-R+A,B}})},function(n,r,o){var i=o(16),a=o(205);i({target:"String",proto:!0,forced:o(206)("anchor")},{anchor:function(s){return a(this,"a","name",s)}})},function(n,r,o){(function(i){var a=typeof i=="object"&&i&&i.Object===Object&&i;r.a=a}).call(this,o(68))},function(n,r,o){(function(i){var a=o(31),s=t&&!t.nodeType&&t,l=s&&typeof i=="object"&&i&&!i.nodeType&&i,u=l&&l.exports===s?a.a.Buffer:void 0,d=u?u.allocUnsafe:void 0;r.a=function(p,v){if(v)return p.slice();var y=p.length,w=d?d(y):new p.constructor(y);return p.copy(w),w}}).call(this,o(122)(n))},function(n,r,o){var i=o(70),a=o(18);n.exports=!!Object.getOwnPropertySymbols&&!a(function(){var s=Symbol();return!String(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&i&&i<41})},function(n,r,o){var i=o(7),a=o(110),s="__core-js_shared__",l=i[s]||a(s,{});n.exports=l},function(n,r,o){var i=o(7),a=Object.defineProperty;n.exports=function(s,l){try{a(i,s,{value:l,configurable:!0,writable:!0})}catch{i[s]=l}return l}},function(n,r){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(n,r){r.f=Object.getOwnPropertySymbols},function(n,r,o){var i={};i[o(28)("toStringTag")]="z",n.exports=String(i)==="[object z]"},function(n,r,o){var i=o(7),a=o(75),s=o(45),l=o(62),u=i.Array,d=Math.max;n.exports=function(p,v,y){for(var w=s(p),b=a(v,w),k=a(y===void 0?w:y,w),C=u(d(k-b,0)),T=0;b<k;b++,T++)l(C,T,p[b]);return C.length=T,C}},function(n,r,o){var i=o(178);n.exports=function(a,s){return new(i(a))(s===0?0:s)}},function(n,r,o){var i=o(16),a=o(34),s=o(71),l=o(73),u=o(30),d=o(180),p=o(101),v=o(102),y=o(78),w=o(57),b=o(42),k=o(28),C=o(80),T=o(142),$=l.PROPER,P=l.CONFIGURABLE,A=T.IteratorPrototype,R=T.BUGGY_SAFARI_ITERATORS,B=k("iterator"),N="keys",I="values",D="entries",L=function(){return this};n.exports=function(z,q,ae,K,H,ne,X){d(ae,q,K);var V,G,se,he=function(me){if(me===H&&$e)return $e;if(!R&&me in De)return De[me];switch(me){case N:case I:case D:return function(){return new ae(this,me)}}return function(){return new ae(this)}},pe=q+" Iterator",Be=!1,De=z.prototype,ze=De[B]||De["@@iterator"]||H&&De[H],$e=!R&&ze||he(H),_e=q=="Array"&&De.entries||ze;if(_e&&(V=p(_e.call(new z)))!==Object.prototype&&V.next&&(s||p(V)===A||(v?v(V,A):u(V[B])||b(V,B,L)),y(V,pe,!0,!0),s&&(C[pe]=L)),$&&H==I&&ze&&ze.name!==I&&(!s&&P?w(De,"name",I):(Be=!0,$e=function(){return a(ze,this)})),H)if(G={values:he(I),keys:ne?$e:he(N),entries:he(D)},X)for(se in G)(R||Be||!(se in De))&&b(De,se,G[se]);else i({target:q,proto:!0,forced:R||Be},G);return s&&!X||De[B]===$e||b(De,B,$e,{name:H}),C[q]=$e,G}},function(n,r,o){var i=o(7),a=o(63),s=o(34),l=o(32),u=o(88),d=o(145),p=o(45),v=o(54),y=o(146),w=o(118),b=o(147),k=i.TypeError,C=function($,P){this.stopped=$,this.result=P},T=C.prototype;n.exports=function($,P,A){var R,B,N,I,D,L,z,q=A&&A.that,ae=!(!A||!A.AS_ENTRIES),K=!(!A||!A.IS_ITERATOR),H=!(!A||!A.INTERRUPTED),ne=a(P,q),X=function(G){return R&&b(R,"normal",G),new C(!0,G)},V=function(G){return ae?(l(G),H?ne(G[0],G[1],X):ne(G[0],G[1])):H?ne(G,X):ne(G)};if(K)R=$;else{if(!(B=w($)))throw k(u($)+" is not iterable");if(d(B)){for(N=0,I=p($);I>N;N++)if((D=V($[N]))&&v(T,D))return D;return new C(!1)}R=y($,B)}for(L=R.next;!(z=s(L,R)).done;){try{D=V(z.value)}catch(G){b(R,"throw",G)}if(typeof D=="object"&&D&&v(T,D))return D}return new C(!1)}},function(n,r,o){var i=o(97),a=o(61),s=o(80),l=o(28)("iterator");n.exports=function(u){if(u!=null)return a(u,l)||a(u,"@@iterator")||s[i(u)]}},function(n,r,o){var i=o(7),a=o(54),s=i.TypeError;n.exports=function(l,u){if(a(u,l))return l;throw s("Incorrect invocation")}},function(n,r,o){var i=o(28)("iterator"),a=!1;try{var s=0,l={next:function(){return{done:!!s++}},return:function(){a=!0}};l[i]=function(){return this},Array.from(l,function(){throw 2})}catch{}n.exports=function(u,d){if(!d&&!a)return!1;var p=!1;try{var v={};v[i]=function(){return{next:function(){return{done:p=!0}}}},u(v)}catch{}return p}},function(n,r,o){var i=o(18);n.exports=function(a,s){var l=[][a];return!!l&&i(function(){l.call(null,s||function(){throw 1},1)})}},function(n,r){n.exports=function(o){if(!o.webpackPolyfill){var i=Object.create(o);i.children||(i.children=[]),Object.defineProperty(i,"loaded",{enumerable:!0,get:function(){return i.l}}),Object.defineProperty(i,"id",{enumerable:!0,get:function(){return i.i}}),Object.defineProperty(i,"exports",{enumerable:!0}),i.webpackPolyfill=1}return i}},function(n,r,o){o(19);var i=o(15),a=o(42),s=o(103),l=o(18),u=o(28),d=o(57),p=u("species"),v=RegExp.prototype;n.exports=function(y,w,b,k){var C=u(y),T=!l(function(){var R={};return R[C]=function(){return 7},""[y](R)!=7}),$=T&&!l(function(){var R=!1,B=/a/;return y==="split"&&((B={}).constructor={},B.constructor[p]=function(){return B},B.flags="",B[C]=/./[C]),B.exec=function(){return R=!0,null},B[C](""),!R});if(!T||!$||b){var P=i(/./[C]),A=w(C,""[y],function(R,B,N,I,D){var L=i(R),z=B.exec;return z===s||z===v.exec?T&&!D?{done:!0,value:P(B,N,I)}:{done:!0,value:L(N,B,I)}:{done:!1}});a(String.prototype,y,A[0]),a(v,C,A[1])}k&&d(v[C],"sham",!0)}},function(n,r,o){var i=o(151).charAt;n.exports=function(a,s,l){return s+(l?i(a,s).length:1)}},function(n,r,o){var i=o(7),a=o(34),s=o(32),l=o(30),u=o(51),d=o(103),p=i.TypeError;n.exports=function(v,y){var w=v.exec;if(l(w)){var b=a(w,v,y);return b!==null&&s(b),b}if(u(v)==="RegExp")return a(d,v,y);throw p("RegExp#exec called on incompatible receiver")}},function(n,r,o){var i=o(76),a=o(34),s=o(15),l=o(123),u=o(18),d=o(32),p=o(30),v=o(59),y=o(94),w=o(39),b=o(44),k=o(124),C=o(61),T=o(201),$=o(125),P=o(28)("replace"),A=Math.max,R=Math.min,B=s([].concat),N=s([].push),I=s("".indexOf),D=s("".slice),L="a".replace(/./,"$0")==="$0",z=!!/./[P]&&/./[P]("a","$0")==="";l("replace",function(q,ae,K){var H=z?"$":"$0";return[function(ne,X){var V=b(this),G=ne==null?void 0:C(ne,P);return G?a(G,ne,V,X):a(ae,w(V),ne,X)},function(ne,X){var V=d(this),G=w(ne);if(typeof X=="string"&&I(X,H)===-1&&I(X,"$<")===-1){var se=K(ae,V,G,X);if(se.done)return se.value}var he=p(X);he||(X=w(X));var pe=V.global;if(pe){var Be=V.unicode;V.lastIndex=0}for(var De=[];;){var ze=$(V,G);if(ze===null||(N(De,ze),!pe))break;w(ze[0])===""&&(V.lastIndex=k(G,y(V.lastIndex),Be))}for(var $e,_e="",me=0,Re=0;Re<De.length;Re++){for(var we=w((ze=De[Re])[0]),fe=A(R(v(ze.index),G.length),0),oe=[],ke=1;ke<ze.length;ke++)N(oe,($e=ze[ke])===void 0?$e:String($e));var We=ze.groups;if(he){var et=B([we],oe,fe,G);We!==void 0&&N(et,We);var Ve=w(i(X,void 0,et))}else Ve=T(we,G,fe,oe,We,X);fe>=me&&(_e+=D(G,me,fe)+Ve,me=fe+we.length)}return _e+D(G,me)}]},!!u(function(){var q=/./;return q.exec=function(){var ae=[];return ae.groups={a:"7"},ae},"".replace(q,"$<a>")!=="7"})||!L||z)},function(n,r,o){var i=o(16),a=Math.hypot,s=Math.abs,l=Math.sqrt;i({target:"Math",stat:!0,forced:!!a&&a(1/0,NaN)!==1/0},{hypot:function(u,d){for(var p,v,y=0,w=0,b=arguments.length,k=0;w<b;)k<(p=s(arguments[w++]))?(y=y*(v=k/p)*v+1,k=p):y+=p>0?(v=p/k)*v:p;return k===1/0?1/0:k*l(y)}})},function(n,r,o){var i=o(51),a=o(7);n.exports=i(a.process)=="process"},function(n,r,o){o(16)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(n,r,o){(function(i,a){var s;/**
  96. * @license
  97. * Lodash <https://lodash.com/>
  98. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  99. * Released under MIT license <https://lodash.com/license>
  100. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  101. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  102. */(function(){var l,u="Expected a function",d="__lodash_hash_undefined__",p="__lodash_placeholder__",v=16,y=32,w=64,b=128,k=256,C=1/0,T=9007199254740991,$=NaN,P=4294967295,A=[["ary",b],["bind",1],["bindKey",2],["curry",8],["curryRight",v],["flip",512],["partial",y],["partialRight",w],["rearg",k]],R="[object Arguments]",B="[object Array]",N="[object Boolean]",I="[object Date]",D="[object Error]",L="[object Function]",z="[object GeneratorFunction]",q="[object Map]",ae="[object Number]",K="[object Object]",H="[object Promise]",ne="[object RegExp]",X="[object Set]",V="[object String]",G="[object Symbol]",se="[object WeakMap]",he="[object ArrayBuffer]",pe="[object DataView]",Be="[object Float32Array]",De="[object Float64Array]",ze="[object Int8Array]",$e="[object Int16Array]",_e="[object Int32Array]",me="[object Uint8Array]",Re="[object Uint8ClampedArray]",we="[object Uint16Array]",fe="[object Uint32Array]",oe=/\b__p \+= '';/g,ke=/\b(__p \+=) '' \+/g,We=/(__e\(.*?\)|\b__t\)) \+\n'';/g,et=/&(?:amp|lt|gt|quot|#39);/g,Ve=/[&<>"']/g,Me=RegExp(et.source),Ke=RegExp(Ve.source),be=/<%-([\s\S]+?)%>/g,qe=/<%([\s\S]+?)%>/g,ct=/<%=([\s\S]+?)%>/g,Je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xe=/^\w*$/,gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ct=/[\\^$.*+?()[\]{}|]/g,Zt=RegExp(Ct.source),Et=/^\s+/,ln=/\s/,Ee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ze=/\{\n\/\* \[wrapped with (.+)\] \*/,ye=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xe=/[()=,{}\[\]\/\s]/,Ue=/\\(\\)?/g,rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ft=/\w*$/,Vn=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,Lt=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,Nt=/^(?:0|[1-9]\d*)$/,Xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ht=/($^)/,Sn=/['\n\r\u2028\u2029\\]/g,Dr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",eo="\\u2700-\\u27bf",ma="a-z\\xdf-\\xf6\\xf8-\\xff",ci="A-Z\\xc0-\\xd6\\xd8-\\xde",Va="\\ufe0e\\ufe0f",ya="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$f="['\u2019]",zl="[\\ud800-\\udfff]",Qi="["+ya+"]",sl="["+Dr+"]",bn="\\d+",wc="[\\u2700-\\u27bf]",wt="["+ma+"]",rn="[^\\ud800-\\udfff"+ya+bn+eo+ma+ci+"]",Yn="\\ud83c[\\udffb-\\udfff]",fr="[^\\ud800-\\udfff]",Wi="(?:\\ud83c[\\udde6-\\uddff]){2}",oi="[\\ud800-\\udbff][\\udc00-\\udfff]",Ho="["+ci+"]",Xo="(?:"+wt+"|"+rn+")",fi="(?:"+Ho+"|"+rn+")",_t="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",cn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Bn="(?:"+sl+"|"+Yn+")?",br="[\\ufe0e\\ufe0f]?",Ri=br+Bn+("(?:\\u200d(?:"+[fr,Wi,oi].join("|")+")"+br+Bn+")*"),us="(?:"+[wc,Wi,oi].join("|")+")"+Ri,Iu="(?:"+[fr+sl+"?",sl,Wi,oi,zl].join("|")+")",Ev=RegExp($f,"g"),Ql=RegExp(sl,"g"),Ep=RegExp(Yn+"(?="+Yn+")|"+Iu+Ri,"g"),Ad=RegExp([Ho+"?"+wt+"+"+_t+"(?="+[Qi,Ho,"$"].join("|")+")",fi+"+"+cn+"(?="+[Qi,Ho+Xo,"$"].join("|")+")",Ho+"?"+Xo+"+"+_t,Ho+"+"+cn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bn,us].join("|"),"g"),Tp=RegExp("[\\u200d\\ud800-\\udfff"+Dr+Va+"]"),Pp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,P0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Tv=-1,Xr={};Xr[Be]=Xr[De]=Xr[ze]=Xr[$e]=Xr[_e]=Xr[me]=Xr[Re]=Xr[we]=Xr[fe]=!0,Xr[R]=Xr[B]=Xr[he]=Xr[N]=Xr[pe]=Xr[I]=Xr[D]=Xr[L]=Xr[q]=Xr[ae]=Xr[K]=Xr[ne]=Xr[X]=Xr[V]=Xr[se]=!1;var Hr={};Hr[R]=Hr[B]=Hr[he]=Hr[pe]=Hr[N]=Hr[I]=Hr[Be]=Hr[De]=Hr[ze]=Hr[$e]=Hr[_e]=Hr[q]=Hr[ae]=Hr[K]=Hr[ne]=Hr[X]=Hr[V]=Hr[G]=Hr[me]=Hr[Re]=Hr[we]=Hr[fe]=!0,Hr[D]=Hr[L]=Hr[se]=!1;var Pv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sc=parseFloat,Wl=parseInt,$p=typeof i=="object"&&i&&i.Object===Object&&i,$v=typeof self=="object"&&self&&self.Object===Object&&self,Fo=$p||$v||Function("return this")(),Ap=r&&!r.nodeType&&r,Af=Ap&&typeof a=="object"&&a&&!a.nodeType&&a,Mp=Af&&Af.exports===Ap,Md=Mp&&$p.process,Ni=function(){try{var mt=Af&&Af.require&&Af.require("util").types;return mt||Md&&Md.binding&&Md.binding("util")}catch{}}(),Rp=Ni&&Ni.isArrayBuffer,Av=Ni&&Ni.isDate,Np=Ni&&Ni.isMap,Rd=Ni&&Ni.isRegExp,xc=Ni&&Ni.isSet,ll=Ni&&Ni.isTypedArray;function lo(mt,At,It){switch(It.length){case 0:return mt.call(At);case 1:return mt.call(At,It[0]);case 2:return mt.call(At,It[0],It[1]);case 3:return mt.call(At,It[0],It[1],It[2])}return mt.apply(At,It)}function Mv(mt,At,It,sn){for(var ar=-1,Cr=mt==null?0:mt.length;++ar<Cr;){var po=mt[ar];At(sn,po,It(po),mt)}return sn}function ba(mt,At){for(var It=-1,sn=mt==null?0:mt.length;++It<sn&&At(mt[It],It,mt)!==!1;);return mt}function Rv(mt,At){for(var It=mt==null?0:mt.length;It--&&At(mt[It],It,mt)!==!1;);return mt}function Nv(mt,At){for(var It=-1,sn=mt==null?0:mt.length;++It<sn;)if(!At(mt[It],It,mt))return!1;return!0}function oa(mt,At){for(var It=-1,sn=mt==null?0:mt.length,ar=0,Cr=[];++It<sn;){var po=mt[It];At(po,It,mt)&&(Cr[ar++]=po)}return Cr}function _a(mt,At){return!!(mt!=null&&mt.length)&&kc(mt,At,0)>-1}function Ip(mt,At,It){for(var sn=-1,ar=mt==null?0:mt.length;++sn<ar;)if(It(At,mt[sn]))return!0;return!1}function jr(mt,At){for(var It=-1,sn=mt==null?0:mt.length,ar=Array(sn);++It<sn;)ar[It]=At(mt[It],It,mt);return ar}function di(mt,At){for(var It=-1,sn=At.length,ar=mt.length;++It<sn;)mt[ar+It]=At[It];return mt}function Nd(mt,At,It,sn){var ar=-1,Cr=mt==null?0:mt.length;for(sn&&Cr&&(It=mt[++ar]);++ar<Cr;)It=At(It,mt[ar],ar,mt);return It}function Iv(mt,At,It,sn){var ar=mt==null?0:mt.length;for(sn&&ar&&(It=mt[--ar]);ar--;)It=At(It,mt[ar],ar,mt);return It}function Dp(mt,At){for(var It=-1,sn=mt==null?0:mt.length;++It<sn;)if(At(mt[It],It,mt))return!0;return!1}var Id=wa("length");function ul(mt,At,It){var sn;return It(mt,function(ar,Cr,po){if(At(ar,Cr,po))return sn=Cr,!1}),sn}function Yl(mt,At,It,sn){for(var ar=mt.length,Cr=It+(sn?1:-1);sn?Cr--:++Cr<ar;)if(At(mt[Cr],Cr,mt))return Cr;return-1}function kc(mt,At,It){return At==At?function(sn,ar,Cr){for(var po=Cr-1,Q=sn.length;++po<Q;)if(sn[po]===ar)return po;return-1}(mt,At,It):Yl(mt,Zl,It)}function Oa(mt,At,It,sn){for(var ar=It-1,Cr=mt.length;++ar<Cr;)if(sn(mt[ar],At))return ar;return-1}function Zl(mt){return mt!=mt}function Mr(mt,At){var It=mt==null?0:mt.length;return It?Dd(mt,At)/It:$}function wa(mt){return function(At){return At==null?l:At[mt]}}function cl(mt){return function(At){return mt==null?l:mt[At]}}function Oi(mt,At,It,sn,ar){return ar(mt,function(Cr,po,Q){It=sn?(sn=!1,Cr):At(It,Cr,po,Q)}),It}function Dd(mt,At){for(var It,sn=-1,ar=mt.length;++sn<ar;){var Cr=At(mt[sn]);Cr!==l&&(It=It===l?Cr:It+Cr)}return It}function Mf(mt,At){for(var It=-1,sn=Array(mt);++It<mt;)sn[It]=At(It);return sn}function jp(mt){return mt&&mt.slice(0,Sa(mt)+1).replace(Et,"")}function Mo(mt){return function(At){return mt(At)}}function jd(mt,At){return jr(At,function(It){return mt[It]})}function Ul(mt,At){return mt.has(At)}function cs(mt,At){for(var It=-1,sn=mt.length;++It<sn&&kc(At,mt[It],0)>-1;);return It}function Lp(mt,At){for(var It=mt.length;It--&&kc(At,mt[It],0)>-1;);return It}function $0(mt,At){for(var It=mt.length,sn=0;It--;)mt[It]===At&&++sn;return sn}var Bp=cl({\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"}),ii=cl({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Cc(mt){return"\\"+Pv[mt]}function fl(mt){return Tp.test(mt)}function ia(mt){var At=-1,It=Array(mt.size);return mt.forEach(function(sn,ar){It[++At]=[ar,sn]}),It}function Vp(mt,At){return function(It){return mt(At(It))}}function Fa(mt,At){for(var It=-1,sn=mt.length,ar=0,Cr=[];++It<sn;){var po=mt[It];po!==At&&po!==p||(mt[It]=p,Cr[ar++]=It)}return Cr}function Du(mt){var At=-1,It=Array(mt.size);return mt.forEach(function(sn){It[++At]=sn}),It}function Ld(mt){var At=-1,It=Array(mt.size);return mt.forEach(function(sn){It[++At]=[sn,sn]}),It}function dl(mt){return fl(mt)?function(At){for(var It=Ep.lastIndex=0;Ep.test(At);)++It;return It}(mt):Id(mt)}function za(mt){return fl(mt)?function(At){return At.match(Ep)||[]}(mt):function(At){return At.split("")}(mt)}function Sa(mt){for(var At=mt.length;At--&&ln.test(mt.charAt(At)););return At}var fs=cl({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hl=function mt(At){var It,sn=(At=At==null?Fo:hl.defaults(Fo.Object(),At,hl.pick(Fo,P0))).Array,ar=At.Date,Cr=At.Error,po=At.Function,Q=At.Math,Y=At.Object,le=At.RegExp,Ce=At.String,Qe=At.TypeError,st=sn.prototype,Ot=po.prototype,Wt=Y.prototype,mn=At["__core-js_shared__"],_r=Ot.toString,fn=Wt.hasOwnProperty,ro=0,lr=(It=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||""))?"Symbol(src)_1."+It:"",zr=Wt.toString,ds=_r.call(Y),xo=Fo._,xa=le("^"+_r.call(fn).replace(Ct,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hl=Mp?At.Buffer:l,Xl=At.Symbol,Rf=At.Uint8Array,Fp=Hl?Hl.allocUnsafe:l,ju=Vp(Y.getPrototypeOf,Y),Bd=Y.create,aa=Wt.propertyIsEnumerable,Nf=st.splice,Ec=Xl?Xl.isConcatSpreadable:l,Lu=Xl?Xl.iterator:l,Bu=Xl?Xl.toStringTag:l,zp=function(){try{var S=Nc(Y,"defineProperty");return S({},"",{}),S}catch{}}(),hE=At.clearTimeout!==Fo.clearTimeout&&At.clearTimeout,pE=ar&&ar.now!==Fo.Date.now&&ar.now,Z1=At.setTimeout!==Fo.setTimeout&&At.setTimeout,Dv=Q.ceil,Vd=Q.floor,A0=Y.getOwnPropertySymbols,gE=Hl?Hl.isBuffer:l,U1=At.isFinite,vE=st.join,H1=Vp(Y.keys,Y),wi=Q.max,sa=Q.min,jv=ar.now,Lv=At.parseInt,Bv=Q.random,mE=st.reverse,Fd=Nc(At,"DataView"),Gl=Nc(At,"Map"),M0=Nc(At,"Promise"),If=Nc(At,"Set"),zd=Nc(At,"WeakMap"),Qp=Nc(Y,"create"),Vv=zd&&new zd,Qd={},yE=Ya(Fd),X1=Ya(Gl),bE=Ya(M0),_E=Ya(If),G1=Ya(zd),Fv=Xl?Xl.prototype:l,Si=Fv?Fv.valueOf:l,q1=Fv?Fv.toString:l;function Te(S){if(Io(S)&&!dr(S)&&!(S instanceof Ir)){if(S instanceof Ds)return S;if(fn.call(S,"__wrapped__"))return $w(S)}return new Ds(S)}var Wd=function(){function S(){}return function(E){if(!No(E))return{};if(Bd)return Bd(E);S.prototype=E;var F=new S;return S.prototype=l,F}}();function Wp(){}function Ds(S,E){this.__wrapped__=S,this.__actions__=[],this.__chain__=!!E,this.__index__=0,this.__values__=l}function Ir(S){this.__wrapped__=S,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=P,this.__views__=[]}function Df(S){var E=-1,F=S==null?0:S.length;for(this.clear();++E<F;){var ie=S[E];this.set(ie[0],ie[1])}}function oo(S){var E=-1,F=S==null?0:S.length;for(this.clear();++E<F;){var ie=S[E];this.set(ie[0],ie[1])}}function ql(S){var E=-1,F=S==null?0:S.length;for(this.clear();++E<F;){var ie=S[E];this.set(ie[0],ie[1])}}function Tc(S){var E=-1,F=S==null?0:S.length;for(this.__data__=new ql;++E<F;)this.add(S[E])}function js(S){var E=this.__data__=new oo(S);this.size=E.size}function R0(S,E){var F=dr(S),ie=!F&&zf(S),ge=!F&&!ie&&Yu(S),Ae=!F&&!ie&&!ge&&Ic(S),tt=F||ie||ge||Ae,it=tt?Mf(S.length,Ce):[],ht=it.length;for(var Ye in S)!E&&!fn.call(S,Ye)||tt&&(Ye=="length"||ge&&(Ye=="offset"||Ye=="parent")||Ae&&(Ye=="buffer"||Ye=="byteLength"||Ye=="byteOffset")||nu(Ye,ht))||it.push(Ye);return it}function N0(S){var E=S.length;return E?S[z0(0,E-1)]:l}function K1(S,E){return Lf(Wa(S),Pc(E,0,S.length))}function J1(S){return Lf(Wa(S))}function zv(S,E,F){(F!==l&&!To(S[E],F)||F===l&&!(E in S))&&Kl(S,E,F)}function Yd(S,E,F){var ie=S[E];fn.call(S,E)&&To(ie,F)&&(F!==l||E in S)||Kl(S,E,F)}function Yp(S,E){for(var F=S.length;F--;)if(To(S[F][0],E))return F;return-1}function ew(S,E,F,ie){return ko(S,function(ge,Ae,tt){E(ie,ge,F(ge),tt)}),ie}function I0(S,E){return S&&Jl(E,gi(E),S)}function Kl(S,E,F){E=="__proto__"&&zp?zp(S,E,{configurable:!0,enumerable:!0,value:F,writable:!0}):S[E]=F}function Qv(S,E){for(var F=-1,ie=E.length,ge=sn(ie),Ae=S==null;++F<ie;)ge[F]=Ae?l:og(S,E[F]);return ge}function Pc(S,E,F){return S==S&&(F!==l&&(S=S<=F?S:F),E!==l&&(S=S>=E?S:E)),S}function hs(S,E,F,ie,ge,Ae){var tt,it=1&E,ht=2&E,Ye=4&E;if(F&&(tt=ge?F(S,ie,ge,Ae):F(S)),tt!==l)return tt;if(!No(S))return S;var Mt=dr(S);if(Mt){if(tt=function(Bt){var Kt=Bt.length,qn=new Bt.constructor(Kt);return Kt&&typeof Bt[0]=="string"&&fn.call(Bt,"index")&&(qn.index=Bt.index,qn.input=Bt.input),qn}(S),!it)return Wa(S,tt)}else{var Ut=Yi(S),kn=Ut==L||Ut==z;if(Yu(S))return X0(S,it);if(Ut==K||Ut==R||kn&&!ge){if(tt=ht||kn?{}:nb(S),!it)return ht?function(Bt,Kt){return Jl(Bt,$t(Bt),Kt)}(S,function(Bt,Kt){return Bt&&Jl(Kt,Di(Kt),Bt)}(tt,S)):function(Bt,Kt){return Jl(Bt,eb(Bt),Kt)}(S,I0(tt,S))}else{if(!Hr[Ut])return ge?S:{};tt=function(Bt,Kt,qn){var On=Bt.constructor;switch(Kt){case he:return G0(Bt);case N:case I:return new On(+Bt);case pe:return function(or,Tr){var jn=Tr?G0(or.buffer):or.buffer;return new or.constructor(jn,or.byteOffset,or.byteLength)}(Bt,qn);case Be:case De:case ze:case $e:case _e:case me:case Re:case we:case fe:return vo(Bt,qn);case q:return new On;case ae:case V:return new On(Bt);case ne:return function(or){var Tr=new or.constructor(or.source,Ft.exec(or));return Tr.lastIndex=or.lastIndex,Tr}(Bt);case X:return new On;case G:return Kn=Bt,Si?Y(Si.call(Kn)):{}}var Kn}(S,Ut,it)}}Ae||(Ae=new js);var Nn=Ae.get(S);if(Nn)return Nn;Ae.set(S,tt),oh(S)?S.forEach(function(Bt){tt.add(hs(Bt,E,F,Bt,S,Ae))}):zw(S)&&S.forEach(function(Bt,Kt){tt.set(Kt,hs(Bt,E,F,Kt,S,Ae))});var Un=Mt?l:(Ye?ht?J0:Gp:ht?Di:gi)(S);return ba(Un||S,function(Bt,Kt){Un&&(Bt=S[Kt=Bt]),Yd(tt,Kt,hs(Bt,E,F,Kt,S,Ae))}),tt}function D0(S,E,F){var ie=F.length;if(S==null)return!ie;for(S=Y(S);ie--;){var ge=F[ie],Ae=E[ge],tt=S[ge];if(tt===l&&!(ge in S)||!Ae(tt))return!1}return!0}function j0(S,E,F){if(typeof S!="function")throw new Qe(u);return th(function(){S.apply(l,F)},E)}function Vu(S,E,F,ie){var ge=-1,Ae=_a,tt=!0,it=S.length,ht=[],Ye=E.length;if(!it)return ht;F&&(E=jr(E,Mo(F))),ie?(Ae=Ip,tt=!1):E.length>=200&&(Ae=Ul,tt=!1,E=new Tc(E));e:for(;++ge<it;){var Mt=S[ge],Ut=F==null?Mt:F(Mt);if(Mt=ie||Mt!==0?Mt:0,tt&&Ut==Ut){for(var kn=Ye;kn--;)if(E[kn]===Ut)continue e;ht.push(Mt)}else Ae(E,Ut,ie)||ht.push(Mt)}return ht}Te.templateSettings={escape:be,evaluate:qe,interpolate:ct,variable:"",imports:{_:Te}},Te.prototype=Wp.prototype,Te.prototype.constructor=Te,Ds.prototype=Wd(Wp.prototype),Ds.prototype.constructor=Ds,Ir.prototype=Wd(Wp.prototype),Ir.prototype.constructor=Ir,Df.prototype.clear=function(){this.__data__=Qp?Qp(null):{},this.size=0},Df.prototype.delete=function(S){var E=this.has(S)&&delete this.__data__[S];return this.size-=E?1:0,E},Df.prototype.get=function(S){var E=this.__data__;if(Qp){var F=E[S];return F===d?l:F}return fn.call(E,S)?E[S]:l},Df.prototype.has=function(S){var E=this.__data__;return Qp?E[S]!==l:fn.call(E,S)},Df.prototype.set=function(S,E){var F=this.__data__;return this.size+=this.has(S)?0:1,F[S]=Qp&&E===l?d:E,this},oo.prototype.clear=function(){this.__data__=[],this.size=0},oo.prototype.delete=function(S){var E=this.__data__,F=Yp(E,S);return!(F<0)&&(F==E.length-1?E.pop():Nf.call(E,F,1),--this.size,!0)},oo.prototype.get=function(S){var E=this.__data__,F=Yp(E,S);return F<0?l:E[F][1]},oo.prototype.has=function(S){return Yp(this.__data__,S)>-1},oo.prototype.set=function(S,E){var F=this.__data__,ie=Yp(F,S);return ie<0?(++this.size,F.push([S,E])):F[ie][1]=E,this},ql.prototype.clear=function(){this.size=0,this.__data__={hash:new Df,map:new(Gl||oo),string:new Df}},ql.prototype.delete=function(S){var E=Jd(this,S).delete(S);return this.size-=E?1:0,E},ql.prototype.get=function(S){return Jd(this,S).get(S)},ql.prototype.has=function(S){return Jd(this,S).has(S)},ql.prototype.set=function(S,E){var F=Jd(this,S),ie=F.size;return F.set(S,E),this.size+=F.size==ie?0:1,this},Tc.prototype.add=Tc.prototype.push=function(S){return this.__data__.set(S,d),this},Tc.prototype.has=function(S){return this.__data__.has(S)},js.prototype.clear=function(){this.__data__=new oo,this.size=0},js.prototype.delete=function(S){var E=this.__data__,F=E.delete(S);return this.size=E.size,F},js.prototype.get=function(S){return this.__data__.get(S)},js.prototype.has=function(S){return this.__data__.has(S)},js.prototype.set=function(S,E){var F=this.__data__;if(F instanceof oo){var ie=F.__data__;if(!Gl||ie.length<199)return ie.push([S,E]),this.size=++F.size,this;F=this.__data__=new ql(ie)}return F.set(S,E),this.size=F.size,this};var ko=mw($n),tw=mw(go,!0);function nw(S,E){var F=!0;return ko(S,function(ie,ge,Ae){return F=!!E(ie,ge,Ae)}),F}function Go(S,E,F){for(var ie=-1,ge=S.length;++ie<ge;){var Ae=S[ie],tt=E(Ae);if(tt!=null&&(it===l?tt==tt&&!Zi(tt):F(tt,it)))var it=tt,ht=Ae}return ht}function Gr(S,E){var F=[];return ko(S,function(ie,ge,Ae){E(ie,ge,Ae)&&F.push(ie)}),F}function Ii(S,E,F,ie,ge){var Ae=-1,tt=S.length;for(F||(F=Cw),ge||(ge=[]);++Ae<tt;){var it=S[Ae];E>0&&F(it)?E>1?Ii(it,E-1,F,ie,ge):di(ge,it):ie||(ge[ge.length]=it)}return ge}var wr=yw(),ai=yw(!0);function $n(S,E){return S&&wr(S,E,gi)}function go(S,E){return S&&ai(S,E,gi)}function Wv(S,E){return oa(E,function(F){return Zu(S[F])})}function Fu(S,E){for(var F=0,ie=(E=Ac(E,S)).length;S!=null&&F<ie;)S=S[hi(E[F++])];return F&&F==ie?S:l}function L0(S,E,F){var ie=E(S);return dr(S)?ie:di(ie,F(S))}function Ro(S){return S==null?S===l?"[object Undefined]":"[object Null]":Bu&&Bu in Y(S)?function(E){var F=fn.call(E,Bu),ie=E[Bu];try{E[Bu]=l;var ge=!0}catch{}var Ae=zr.call(E);return ge&&(F?E[Bu]=ie:delete E[Bu]),Ae}(S):function(E){return zr.call(E)}(S)}function zo(S,E){return S>E}function rw(S,E){return S!=null&&fn.call(S,E)}function ow(S,E){return S!=null&&E in Y(S)}function Yv(S,E,F){for(var ie=F?Ip:_a,ge=S[0].length,Ae=S.length,tt=Ae,it=sn(Ae),ht=1/0,Ye=[];tt--;){var Mt=S[tt];tt&&E&&(Mt=jr(Mt,Mo(E))),ht=sa(Mt.length,ht),it[tt]=!F&&(E||ge>=120&&Mt.length>=120)?new Tc(tt&&Mt):l}Mt=S[0];var Ut=-1,kn=it[0];e:for(;++Ut<ge&&Ye.length<ht;){var Nn=Mt[Ut],Un=E?E(Nn):Nn;if(Nn=F||Nn!==0?Nn:0,!(kn?Ul(kn,Un):ie(Ye,Un,F))){for(tt=Ae;--tt;){var Bt=it[tt];if(!(Bt?Ul(Bt,Un):ie(S[tt],Un,F)))continue e}kn&&kn.push(Un),Ye.push(Nn)}}return Ye}function Zd(S,E,F){var ie=(S=ab(S,E=Ac(E,S)))==null?S:S[hi(mo(E))];return ie==null?l:lo(ie,S,F)}function B0(S){return Io(S)&&Ro(S)==R}function Ud(S,E,F,ie,ge){return S===E||(S==null||E==null||!Io(S)&&!Io(E)?S!=S&&E!=E:function(Ae,tt,it,ht,Ye,Mt){var Ut=dr(Ae),kn=dr(tt),Nn=Ut?B:Yi(Ae),Un=kn?B:Yi(tt),Bt=(Nn=Nn==R?K:Nn)==K,Kt=(Un=Un==R?K:Un)==K,qn=Nn==Un;if(qn&&Yu(Ae)){if(!Yu(tt))return!1;Ut=!0,Bt=!1}if(qn&&!Bt)return Mt||(Mt=new js),Ut||Ic(Ae)?kw(Ae,tt,it,ht,Ye,Mt):function(jn,Hn,vi,Ui,vl,xi,ou){switch(vi){case pe:if(jn.byteLength!=Hn.byteLength||jn.byteOffset!=Hn.byteOffset)return!1;jn=jn.buffer,Hn=Hn.buffer;case he:return!(jn.byteLength!=Hn.byteLength||!xi(new Rf(jn),new Rf(Hn)));case N:case I:case ae:return To(+jn,+Hn);case D:return jn.name==Hn.name&&jn.message==Hn.message;case ne:case V:return jn==Hn+"";case q:var ml=ia;case X:var Xu=1&Ui;if(ml||(ml=Du),jn.size!=Hn.size&&!Xu)return!1;var Gu=ou.get(jn);if(Gu)return Gu==Hn;Ui|=2,ou.set(jn,Hn);var Yf=kw(ml(jn),ml(Hn),Ui,vl,xi,ou);return ou.delete(jn),Yf;case G:if(Si)return Si.call(jn)==Si.call(Hn)}return!1}(Ae,tt,Nn,it,ht,Ye,Mt);if(!(1&it)){var On=Bt&&fn.call(Ae,"__wrapped__"),Kn=Kt&&fn.call(tt,"__wrapped__");if(On||Kn){var or=On?Ae.value():Ae,Tr=Kn?tt.value():tt;return Mt||(Mt=new js),Ye(or,Tr,it,ht,Mt)}}return qn?(Mt||(Mt=new js),function(jn,Hn,vi,Ui,vl,xi){var ou=1&vi,ml=Gp(jn),Xu=ml.length,Gu=Gp(Hn).length;if(Xu!=Gu&&!ou)return!1;for(var Yf=Xu;Yf--;){var qu=ml[Yf];if(!(ou?qu in Hn:fn.call(Hn,qu)))return!1}var fg=xi.get(jn),gs=xi.get(Hn);if(fg&&gs)return fg==Hn&&gs==jn;var xm=!0;xi.set(jn,Hn),xi.set(Hn,jn);for(var vs=ou;++Yf<Xu;){var Ln=jn[qu=ml[Yf]],dg=Hn[qu];if(Ui)var qb=ou?Ui(dg,Ln,qu,Hn,jn,xi):Ui(Ln,dg,qu,jn,Hn,xi);if(!(qb===l?Ln===dg||vl(Ln,dg,vi,Ui,xi):qb)){xm=!1;break}vs||(vs=qu=="constructor")}if(xm&&!vs){var hg=jn.constructor,km=Hn.constructor;hg==km||!("constructor"in jn)||!("constructor"in Hn)||typeof hg=="function"&&hg instanceof hg&&typeof km=="function"&&km instanceof km||(xm=!1)}return xi.delete(jn),xi.delete(Hn),xm}(Ae,tt,it,ht,Ye,Mt)):!1}(S,E,F,ie,Ud,ge))}function Zv(S,E,F,ie){var ge=F.length,Ae=ge,tt=!ie;if(S==null)return!Ae;for(S=Y(S);ge--;){var it=F[ge];if(tt&&it[2]?it[1]!==S[it[0]]:!(it[0]in S))return!1}for(;++ge<Ae;){var ht=(it=F[ge])[0],Ye=S[ht],Mt=it[1];if(tt&&it[2]){if(Ye===l&&!(ht in S))return!1}else{var Ut=new js;if(ie)var kn=ie(Ye,Mt,ht,S,E,Ut);if(!(kn===l?Ud(Mt,Ye,3,ie,Ut):kn))return!1}}return!0}function Hd(S){return!(!No(S)||(E=S,lr&&lr in E))&&(Zu(S)?xa:Lt).test(Ya(S));var E}function V0(S){return typeof S=="function"?S:S==null?ua:typeof S=="object"?dr(S)?aw(S[0],S[1]):iw(S):Hb(S)}function zu(S){if(!eh(S))return H1(S);var E=[];for(var F in Y(S))fn.call(S,F)&&F!="constructor"&&E.push(F);return E}function OE(S){if(!No(S))return function(ge){var Ae=[];if(ge!=null)for(var tt in Y(ge))Ae.push(tt);return Ae}(S);var E=eh(S),F=[];for(var ie in S)(ie!="constructor"||!E&&fn.call(S,ie))&&F.push(ie);return F}function Qu(S,E){return S<E}function Ls(S,E){var F=-1,ie=ka(S)?sn(S.length):[];return ko(S,function(ge,Ae,tt){ie[++F]=E(ge,Ae,tt)}),ie}function iw(S){var E=im(S);return E.length==1&&E[0][2]?ob(E[0][0],E[0][1]):function(F){return F===S||Zv(F,S,E)}}function aw(S,E){return am(S)&&rb(E)?ob(hi(S),E):function(F){var ie=og(F,S);return ie===l&&ie===E?ig(F,S):Ud(E,ie,3)}}function Uv(S,E,F,ie,ge){S!==E&&wr(E,function(Ae,tt){if(ge||(ge=new js),No(Ae))(function(ht,Ye,Mt,Ut,kn,Nn,Un){var Bt=lm(ht,Mt),Kt=lm(Ye,Mt),qn=Un.get(Kt);if(qn)return void zv(ht,Mt,qn);var On=Nn?Nn(Bt,Kt,Mt+"",ht,Ye,Un):l,Kn=On===l;if(Kn){var or=dr(Kt),Tr=!or&&Yu(Kt),jn=!or&&!Tr&&Ic(Kt);On=Kt,or||Tr||jn?dr(Bt)?On=Bt:qo(Bt)?On=Wa(Bt):Tr?(Kn=!1,On=X0(Kt,!0)):jn?(Kn=!1,On=vo(Kt,!0)):On=[]:Uu(Kt)||zf(Kt)?(On=Bt,zf(Bt)?On=$b(Bt):No(Bt)&&!Zu(Bt)||(On=nb(Kt))):Kn=!1}Kn&&(Un.set(Kt,On),kn(On,Kt,Ut,Nn,Un),Un.delete(Kt)),zv(ht,Mt,On)})(S,E,tt,F,Uv,ie,ge);else{var it=ie?ie(lm(S,tt),Ae,tt+"",S,E,ge):l;it===l&&(it=Ae),zv(S,tt,it)}},Di)}function sw(S,E){var F=S.length;if(F)return nu(E+=E<0?F:0,F)?S[E]:l}function lw(S,E,F){E=E.length?jr(E,function(Ae){return dr(Ae)?function(tt){return Fu(tt,Ae.length===1?Ae[0]:Ae)}:Ae}):[ua];var ie=-1;E=jr(E,Mo(Qn()));var ge=Ls(S,function(Ae,tt,it){var ht=jr(E,function(Ye){return Ye(Ae)});return{criteria:ht,index:++ie,value:Ae}});return function(Ae,tt){var it=Ae.length;for(Ae.sort(tt);it--;)Ae[it]=Ae[it].value;return Ae}(ge,function(Ae,tt){return function(it,ht,Ye){for(var Mt=-1,Ut=it.criteria,kn=ht.criteria,Nn=Ut.length,Un=Ye.length;++Mt<Nn;){var Bt=vw(Ut[Mt],kn[Mt]);if(Bt)return Mt>=Un?Bt:Bt*(Ye[Mt]=="desc"?-1:1)}return it.index-ht.index}(Ae,tt,F)})}function uw(S,E,F){for(var ie=-1,ge=E.length,Ae={};++ie<ge;){var tt=E[ie],it=Fu(S,tt);F(it,tt)&&Gd(Ae,Ac(tt,S),it)}return Ae}function F0(S,E,F,ie){var ge=ie?Oa:kc,Ae=-1,tt=E.length,it=S;for(S===E&&(E=Wa(E)),F&&(it=jr(S,Mo(F)));++Ae<tt;)for(var ht=0,Ye=E[Ae],Mt=F?F(Ye):Ye;(ht=ge(it,Mt,ht,ie))>-1;)it!==S&&Nf.call(it,ht,1),Nf.call(S,ht,1);return S}function Xd(S,E){for(var F=S?E.length:0,ie=F-1;F--;){var ge=E[F];if(F==ie||ge!==Ae){var Ae=ge;nu(ge)?Nf.call(S,ge,1):Gv(S,ge)}}return S}function z0(S,E){return S+Vd(Bv()*(E-S+1))}function Hv(S,E){var F="";if(!S||E<1||E>T)return F;do E%2&&(F+=S),(E=Vd(E/2))&&(S+=S);while(E);return F}function Sr(S,E){return um(ib(S,E,ua),S+"")}function wE(S){return N0(jc(S))}function Q0(S,E){var F=jc(S);return Lf(F,Pc(E,0,F.length))}function Gd(S,E,F,ie){if(!No(S))return S;for(var ge=-1,Ae=(E=Ac(E,S)).length,tt=Ae-1,it=S;it!=null&&++ge<Ae;){var ht=hi(E[ge]),Ye=F;if(ht==="__proto__"||ht==="constructor"||ht==="prototype")return S;if(ge!=tt){var Mt=it[ht];(Ye=ie?ie(Mt,ht,it):l)===l&&(Ye=No(Mt)?Mt:nu(E[ge+1])?[]:{})}Yd(it,ht,Ye),it=it[ht]}return S}var cw=Vv?function(S,E){return Vv.set(S,E),S}:ua,SE=zp?function(S,E){return zp(S,"toString",{configurable:!0,enumerable:!1,value:_m(E),writable:!0})}:ua;function xE(S){return Lf(jc(S))}function Bs(S,E,F){var ie=-1,ge=S.length;E<0&&(E=-E>ge?0:ge+E),(F=F>ge?ge:F)<0&&(F+=ge),ge=E>F?0:F-E>>>0,E>>>=0;for(var Ae=sn(ge);++ie<ge;)Ae[ie]=S[ie+E];return Ae}function W0(S,E){var F;return ko(S,function(ie,ge,Ae){return!(F=E(ie,ge,Ae))}),!!F}function Xv(S,E,F){var ie=0,ge=S==null?ie:S.length;if(typeof E=="number"&&E==E&&ge<=2147483647){for(;ie<ge;){var Ae=ie+ge>>>1,tt=S[Ae];tt!==null&&!Zi(tt)&&(F?tt<=E:tt<E)?ie=Ae+1:ge=Ae}return ge}return Y0(S,E,ua,F)}function Y0(S,E,F,ie){var ge=0,Ae=S==null?0:S.length;if(Ae===0)return 0;for(var tt=(E=F(E))!=E,it=E===null,ht=Zi(E),Ye=E===l;ge<Ae;){var Mt=Vd((ge+Ae)/2),Ut=F(S[Mt]),kn=Ut!==l,Nn=Ut===null,Un=Ut==Ut,Bt=Zi(Ut);if(tt)var Kt=ie||Un;else Kt=Ye?Un&&(ie||kn):it?Un&&kn&&(ie||!Nn):ht?Un&&kn&&!Nn&&(ie||!Bt):!Nn&&!Bt&&(ie?Ut<=E:Ut<E);Kt?ge=Mt+1:Ae=Mt}return sa(Ae,4294967294)}function fw(S,E){for(var F=-1,ie=S.length,ge=0,Ae=[];++F<ie;){var tt=S[F],it=E?E(tt):tt;if(!F||!To(it,ht)){var ht=it;Ae[ge++]=tt===0?0:tt}}return Ae}function Z0(S){return typeof S=="number"?S:Zi(S)?$:+S}function Qa(S){if(typeof S=="string")return S;if(dr(S))return jr(S,Qa)+"";if(Zi(S))return q1?q1.call(S):"";var E=S+"";return E=="0"&&1/S==-1/0?"-0":E}function $c(S,E,F){var ie=-1,ge=_a,Ae=S.length,tt=!0,it=[],ht=it;if(F)tt=!1,ge=Ip;else if(Ae>=200){var Ye=E?null:K0(S);if(Ye)return Du(Ye);tt=!1,ge=Ul,ht=new Tc}else ht=E?[]:it;e:for(;++ie<Ae;){var Mt=S[ie],Ut=E?E(Mt):Mt;if(Mt=F||Mt!==0?Mt:0,tt&&Ut==Ut){for(var kn=ht.length;kn--;)if(ht[kn]===Ut)continue e;E&&ht.push(Ut),it.push(Mt)}else ge(ht,Ut,F)||(ht!==it&&ht.push(Ut),it.push(Mt))}return it}function Gv(S,E){return(S=ab(S,E=Ac(E,S)))==null||delete S[hi(mo(E))]}function dw(S,E,F,ie){return Gd(S,E,F(Fu(S,E)),ie)}function Zp(S,E,F,ie){for(var ge=S.length,Ae=ie?ge:-1;(ie?Ae--:++Ae<ge)&&E(S[Ae],Ae,S););return F?Bs(S,ie?0:Ae,ie?Ae+1:ge):Bs(S,ie?Ae+1:0,ie?ge:Ae)}function hw(S,E){var F=S;return F instanceof Ir&&(F=F.value()),Nd(E,function(ie,ge){return ge.func.apply(ge.thisArg,di([ie],ge.args))},F)}function qv(S,E,F){var ie=S.length;if(ie<2)return ie?$c(S[0]):[];for(var ge=-1,Ae=sn(ie);++ge<ie;)for(var tt=S[ge],it=-1;++it<ie;)it!=ge&&(Ae[ge]=Vu(Ae[ge]||tt,S[it],E,F));return $c(Ii(Ae,1),E,F)}function pw(S,E,F){for(var ie=-1,ge=S.length,Ae=E.length,tt={};++ie<ge;){var it=ie<Ae?E[ie]:l;F(tt,S[ie],it)}return tt}function Kv(S){return qo(S)?S:[]}function U0(S){return typeof S=="function"?S:ua}function Ac(S,E){return dr(S)?S:am(S,E)?[S]:Pw(qr(S))}var gw=Sr;function Mc(S,E,F){var ie=S.length;return F=F===l?ie:F,!E&&F>=ie?S:Bs(S,E,F)}var H0=hE||function(S){return Fo.clearTimeout(S)};function X0(S,E){if(E)return S.slice();var F=S.length,ie=Fp?Fp(F):new S.constructor(F);return S.copy(ie),ie}function G0(S){var E=new S.constructor(S.byteLength);return new Rf(E).set(new Rf(S)),E}function vo(S,E){var F=E?G0(S.buffer):S.buffer;return new S.constructor(F,S.byteOffset,S.length)}function vw(S,E){if(S!==E){var F=S!==l,ie=S===null,ge=S==S,Ae=Zi(S),tt=E!==l,it=E===null,ht=E==E,Ye=Zi(E);if(!it&&!Ye&&!Ae&&S>E||Ae&&tt&&ht&&!it&&!Ye||ie&&tt&&ht||!F&&ht||!ge)return 1;if(!ie&&!Ae&&!Ye&&S<E||Ye&&F&&ge&&!ie&&!Ae||it&&F&&ge||!tt&&ge||!ht)return-1}return 0}function Co(S,E,F,ie){for(var ge=-1,Ae=S.length,tt=F.length,it=-1,ht=E.length,Ye=wi(Ae-tt,0),Mt=sn(ht+Ye),Ut=!ie;++it<ht;)Mt[it]=E[it];for(;++ge<tt;)(Ut||ge<Ae)&&(Mt[F[ge]]=S[ge]);for(;Ye--;)Mt[it++]=S[ge++];return Mt}function Jv(S,E,F,ie){for(var ge=-1,Ae=S.length,tt=-1,it=F.length,ht=-1,Ye=E.length,Mt=wi(Ae-it,0),Ut=sn(Mt+Ye),kn=!ie;++ge<Mt;)Ut[ge]=S[ge];for(var Nn=ge;++ht<Ye;)Ut[Nn+ht]=E[ht];for(;++tt<it;)(kn||ge<Ae)&&(Ut[Nn+F[tt]]=S[ge++]);return Ut}function Wa(S,E){var F=-1,ie=S.length;for(E||(E=sn(ie));++F<ie;)E[F]=S[F];return E}function Jl(S,E,F,ie){var ge=!F;F||(F={});for(var Ae=-1,tt=E.length;++Ae<tt;){var it=E[Ae],ht=ie?ie(F[it],S[it],it,F,S):l;ht===l&&(ht=S[it]),ge?Kl(F,it,ht):Yd(F,it,ht)}return F}function em(S,E){return function(F,ie){var ge=dr(F)?Mv:ew,Ae=E?E():{};return ge(F,S,Qn(ie,2),Ae)}}function jf(S){return Sr(function(E,F){var ie=-1,ge=F.length,Ae=ge>1?F[ge-1]:l,tt=ge>2?F[2]:l;for(Ae=S.length>3&&typeof Ae=="function"?(ge--,Ae):l,tt&&la(F[0],F[1],tt)&&(Ae=ge<3?l:Ae,ge=1),E=Y(E);++ie<ge;){var it=F[ie];it&&S(E,it,ie,Ae)}return E})}function mw(S,E){return function(F,ie){if(F==null)return F;if(!ka(F))return S(F,ie);for(var ge=F.length,Ae=E?ge:-1,tt=Y(F);(E?Ae--:++Ae<ge)&&ie(tt[Ae],Ae,tt)!==!1;);return F}}function yw(S){return function(E,F,ie){for(var ge=-1,Ae=Y(E),tt=ie(E),it=tt.length;it--;){var ht=tt[S?it:++ge];if(F(Ae[ht],ht,Ae)===!1)break}return E}}function bw(S){return function(E){var F=fl(E=qr(E))?za(E):l,ie=F?F[0]:E.charAt(0),ge=F?Mc(F,1).join(""):E.slice(1);return ie[S]()+ge}}function Rc(S){return function(E){return Nd(gl(ym(E).replace(Ev,"")),S,"")}}function Up(S){return function(){var E=arguments;switch(E.length){case 0:return new S;case 1:return new S(E[0]);case 2:return new S(E[0],E[1]);case 3:return new S(E[0],E[1],E[2]);case 4:return new S(E[0],E[1],E[2],E[3]);case 5:return new S(E[0],E[1],E[2],E[3],E[4]);case 6:return new S(E[0],E[1],E[2],E[3],E[4],E[5]);case 7:return new S(E[0],E[1],E[2],E[3],E[4],E[5],E[6])}var F=Wd(S.prototype),ie=S.apply(F,E);return No(ie)?ie:F}}function _w(S){return function(E,F,ie){var ge=Y(E);if(!ka(E)){var Ae=Qn(F,3);E=gi(E),F=function(it){return Ae(ge[it],it,ge)}}var tt=S(E,F,ie);return tt>-1?ge[Ae?E[tt]:tt]:l}}function Ow(S){return Eo(function(E){var F=E.length,ie=F,ge=Ds.prototype.thru;for(S&&E.reverse();ie--;){var Ae=E[ie];if(typeof Ae!="function")throw new Qe(u);if(ge&&!tt&&pl(Ae)=="wrapper")var tt=new Ds([],!0)}for(ie=tt?ie:F;++ie<F;){var it=pl(Ae=E[ie]),ht=it=="wrapper"?qp(Ae):l;tt=ht&&sm(ht[0])&&ht[1]==424&&!ht[4].length&&ht[9]==1?tt[pl(ht[0])].apply(tt,ht[3]):Ae.length==1&&sm(Ae)?tt[it]():tt.thru(Ae)}return function(){var Ye=arguments,Mt=Ye[0];if(tt&&Ye.length==1&&dr(Mt))return tt.plant(Mt).value();for(var Ut=0,kn=F?E[Ut].apply(this,Ye):Mt;++Ut<F;)kn=E[Ut].call(this,kn);return kn}})}function Hp(S,E,F,ie,ge,Ae,tt,it,ht,Ye){var Mt=E&b,Ut=1&E,kn=2&E,Nn=24&E,Un=512&E,Bt=kn?l:Up(S);return function Kt(){for(var qn=arguments.length,On=sn(qn),Kn=qn;Kn--;)On[Kn]=arguments[Kn];if(Nn)var or=Kd(Kt),Tr=$0(On,or);if(ie&&(On=Co(On,ie,ge,Nn)),Ae&&(On=Jv(On,Ae,tt,Nn)),qn-=Tr,Nn&&qn<Ye){var jn=Fa(On,or);return nm(S,E,Hp,Kt.placeholder,F,On,jn,it,ht,Ye-qn)}var Hn=Ut?F:this,vi=kn?Hn[S]:S;return qn=On.length,it?On=Tw(On,it):Un&&qn>1&&On.reverse(),Mt&&ht<qn&&(On.length=ht),this&&this!==Fo&&this instanceof Kt&&(vi=Bt||Up(vi)),vi.apply(Hn,On)}}function ww(S,E){return function(F,ie){return function(ge,Ae,tt,it){return $n(ge,function(ht,Ye,Mt){Ae(it,tt(ht),Ye,Mt)}),it}(F,S,E(ie),{})}}function Xp(S,E){return function(F,ie){var ge;if(F===l&&ie===l)return E;if(F!==l&&(ge=F),ie!==l){if(ge===l)return ie;typeof F=="string"||typeof ie=="string"?(F=Qa(F),ie=Qa(ie)):(F=Z0(F),ie=Z0(ie)),ge=S(F,ie)}return ge}}function q0(S){return Eo(function(E){return E=jr(E,Mo(Qn())),Sr(function(F){var ie=this;return S(E,function(ge){return lo(ge,ie,F)})})})}function tm(S,E){var F=(E=E===l?" ":Qa(E)).length;if(F<2)return F?Hv(E,S):E;var ie=Hv(E,Dv(S/dl(E)));return fl(E)?Mc(za(ie),0,S).join(""):ie.slice(0,S)}function eu(S){return function(E,F,ie){return ie&&typeof ie!="number"&&la(E,F,ie)&&(F=ie=l),E=ru(E),F===l?(F=E,E=0):F=ru(F),function(ge,Ae,tt,it){for(var ht=-1,Ye=wi(Dv((Ae-ge)/(tt||1)),0),Mt=sn(Ye);Ye--;)Mt[it?Ye:++ht]=ge,ge+=tt;return Mt}(E,F,ie=ie===l?E<F?1:-1:ru(ie),S)}}function qd(S){return function(E,F){return typeof E=="string"&&typeof F=="string"||(E=Ca(E),F=Ca(F)),S(E,F)}}function nm(S,E,F,ie,ge,Ae,tt,it,ht,Ye){var Mt=8&E;E|=Mt?y:w,4&(E&=~(Mt?w:y))||(E&=-4);var Ut=[S,E,ge,Mt?Ae:l,Mt?tt:l,Mt?l:Ae,Mt?l:tt,it,ht,Ye],kn=F.apply(l,Ut);return sm(S)&&sb(kn,Ut),kn.placeholder=ie,lb(kn,S,E)}function rm(S){var E=Q[S];return function(F,ie){if(F=Ca(F),(ie=ie==null?0:sa(vr(ie),292))&&U1(F)){var ge=(qr(F)+"e").split("e");return+((ge=(qr(E(ge[0]+"e"+(+ge[1]+ie)))+"e").split("e"))[0]+"e"+(+ge[1]-ie))}return E(F)}}var K0=If&&1/Du(new If([,-0]))[1]==C?function(S){return new If(S)}:Om;function om(S){return function(E){var F=Yi(E);return F==q?ia(E):F==X?Ld(E):function(ie,ge){return jr(ge,function(Ae){return[Ae,ie[Ae]]})}(E,S(E))}}function tu(S,E,F,ie,ge,Ae,tt,it){var ht=2&E;if(!ht&&typeof S!="function")throw new Qe(u);var Ye=ie?ie.length:0;if(Ye||(E&=-97,ie=ge=l),tt=tt===l?tt:wi(vr(tt),0),it=it===l?it:vr(it),Ye-=ge?ge.length:0,E&w){var Mt=ie,Ut=ge;ie=ge=l}var kn=ht?l:qp(S),Nn=[S,E,F,ie,ge,Mt,Ut,Ae,tt,it];if(kn&&function(Bt,Kt){var qn=Bt[1],On=Kt[1],Kn=qn|On,or=Kn<131,Tr=On==b&&qn==8||On==b&&qn==k&&Bt[7].length<=Kt[8]||On==384&&Kt[7].length<=Kt[8]&&qn==8;if(!or&&!Tr)return Bt;1&On&&(Bt[2]=Kt[2],Kn|=1&qn?0:4);var jn=Kt[3];if(jn){var Hn=Bt[3];Bt[3]=Hn?Co(Hn,jn,Kt[4]):jn,Bt[4]=Hn?Fa(Bt[3],p):Kt[4]}(jn=Kt[5])&&(Hn=Bt[5],Bt[5]=Hn?Jv(Hn,jn,Kt[6]):jn,Bt[6]=Hn?Fa(Bt[5],p):Kt[6]),(jn=Kt[7])&&(Bt[7]=jn),On&b&&(Bt[8]=Bt[8]==null?Kt[8]:sa(Bt[8],Kt[8])),Bt[9]==null&&(Bt[9]=Kt[9]),Bt[0]=Kt[0],Bt[1]=Kn}(Nn,kn),S=Nn[0],E=Nn[1],F=Nn[2],ie=Nn[3],ge=Nn[4],!(it=Nn[9]=Nn[9]===l?ht?0:S.length:wi(Nn[9]-Ye,0))&&24&E&&(E&=-25),E&&E!=1)Un=E==8||E==v?function(Bt,Kt,qn){var On=Up(Bt);return function Kn(){for(var or=arguments.length,Tr=sn(or),jn=or,Hn=Kd(Kn);jn--;)Tr[jn]=arguments[jn];var vi=or<3&&Tr[0]!==Hn&&Tr[or-1]!==Hn?[]:Fa(Tr,Hn);return(or-=vi.length)<qn?nm(Bt,Kt,Hp,Kn.placeholder,l,Tr,vi,l,l,qn-or):lo(this&&this!==Fo&&this instanceof Kn?On:Bt,this,Tr)}}(S,E,it):E!=y&&E!=33||ge.length?Hp.apply(l,Nn):function(Bt,Kt,qn,On){var Kn=1&Kt,or=Up(Bt);return function Tr(){for(var jn=-1,Hn=arguments.length,vi=-1,Ui=On.length,vl=sn(Ui+Hn),xi=this&&this!==Fo&&this instanceof Tr?or:Bt;++vi<Ui;)vl[vi]=On[vi];for(;Hn--;)vl[vi++]=arguments[++jn];return lo(xi,Kn?qn:this,vl)}}(S,E,F,ie);else var Un=function(Bt,Kt,qn){var On=1&Kt,Kn=Up(Bt);return function or(){return(this&&this!==Fo&&this instanceof or?Kn:Bt).apply(On?qn:this,arguments)}}(S,E,F);return lb((kn?cw:sb)(Un,Nn),S,E)}function Sw(S,E,F,ie){return S===l||To(S,Wt[F])&&!fn.call(ie,F)?E:S}function xw(S,E,F,ie,ge,Ae){return No(S)&&No(E)&&(Ae.set(E,S),Uv(S,E,l,xw,Ae),Ae.delete(E)),S}function kE(S){return Uu(S)?l:S}function kw(S,E,F,ie,ge,Ae){var tt=1&F,it=S.length,ht=E.length;if(it!=ht&&!(tt&&ht>it))return!1;var Ye=Ae.get(S),Mt=Ae.get(E);if(Ye&&Mt)return Ye==E&&Mt==S;var Ut=-1,kn=!0,Nn=2&F?new Tc:l;for(Ae.set(S,E),Ae.set(E,S);++Ut<it;){var Un=S[Ut],Bt=E[Ut];if(ie)var Kt=tt?ie(Bt,Un,Ut,E,S,Ae):ie(Un,Bt,Ut,S,E,Ae);if(Kt!==l){if(Kt)continue;kn=!1;break}if(Nn){if(!Dp(E,function(qn,On){if(!Ul(Nn,On)&&(Un===qn||ge(Un,qn,F,ie,Ae)))return Nn.push(On)})){kn=!1;break}}else if(Un!==Bt&&!ge(Un,Bt,F,ie,Ae)){kn=!1;break}}return Ae.delete(S),Ae.delete(E),kn}function Eo(S){return um(ib(S,l,db),S+"")}function Gp(S){return L0(S,gi,eb)}function J0(S){return L0(S,Di,$t)}var qp=Vv?function(S){return Vv.get(S)}:Om;function pl(S){for(var E=S.name+"",F=Qd[E],ie=fn.call(Qd,E)?F.length:0;ie--;){var ge=F[ie],Ae=ge.func;if(Ae==null||Ae==S)return ge.name}return E}function Kd(S){return(fn.call(Te,"placeholder")?Te:S).placeholder}function Qn(){var S=Te.iteratee||Yb;return S=S===Yb?V0:S,arguments.length?S(arguments[0],arguments[1]):S}function Jd(S,E){var F,ie,ge=S.__data__;return((ie=typeof(F=E))=="string"||ie=="number"||ie=="symbol"||ie=="boolean"?F!=="__proto__":F===null)?ge[typeof E=="string"?"string":"hash"]:ge.map}function im(S){for(var E=gi(S),F=E.length;F--;){var ie=E[F],ge=S[ie];E[F]=[ie,ge,rb(ge)]}return E}function Nc(S,E){var F=function(ie,ge){return ie==null?l:ie[ge]}(S,E);return Hd(F)?F:l}var eb=A0?function(S){return S==null?[]:(S=Y(S),oa(A0(S),function(E){return aa.call(S,E)}))}:sh,$t=A0?function(S){for(var E=[];S;)di(E,eb(S)),S=ju(S);return E}:sh,Yi=Ro;function tb(S,E,F){for(var ie=-1,ge=(E=Ac(E,S)).length,Ae=!1;++ie<ge;){var tt=hi(E[ie]);if(!(Ae=S!=null&&F(S,tt)))break;S=S[tt]}return Ae||++ie!=ge?Ae:!!(ge=S==null?0:S.length)&&Qf(ge)&&nu(tt,ge)&&(dr(S)||zf(S))}function nb(S){return typeof S.constructor!="function"||eh(S)?{}:Wd(ju(S))}function Cw(S){return dr(S)||zf(S)||!!(Ec&&S&&S[Ec])}function nu(S,E){var F=typeof S;return!!(E=E==null?T:E)&&(F=="number"||F!="symbol"&&Nt.test(S))&&S>-1&&S%1==0&&S<E}function la(S,E,F){if(!No(F))return!1;var ie=typeof E;return!!(ie=="number"?ka(F)&&nu(E,F.length):ie=="string"&&E in F)&&To(F[E],S)}function am(S,E){if(dr(S))return!1;var F=typeof S;return!(F!="number"&&F!="symbol"&&F!="boolean"&&S!=null&&!Zi(S))||Xe.test(S)||!Je.test(S)||E!=null&&S in Y(E)}function sm(S){var E=pl(S),F=Te[E];if(typeof F!="function"||!(E in Ir.prototype))return!1;if(S===F)return!0;var ie=qp(F);return!!ie&&S===ie[0]}(Fd&&Yi(new Fd(new ArrayBuffer(1)))!=pe||Gl&&Yi(new Gl)!=q||M0&&Yi(M0.resolve())!=H||If&&Yi(new If)!=X||zd&&Yi(new zd)!=se)&&(Yi=function(S){var E=Ro(S),F=E==K?S.constructor:l,ie=F?Ya(F):"";if(ie)switch(ie){case yE:return pe;case X1:return q;case bE:return H;case _E:return X;case G1:return se}return E});var Ew=mn?Zu:cg;function eh(S){var E=S&&S.constructor;return S===(typeof E=="function"&&E.prototype||Wt)}function rb(S){return S==S&&!No(S)}function ob(S,E){return function(F){return F!=null&&F[S]===E&&(E!==l||S in Y(F))}}function ib(S,E,F){return E=wi(E===l?S.length-1:E,0),function(){for(var ie=arguments,ge=-1,Ae=wi(ie.length-E,0),tt=sn(Ae);++ge<Ae;)tt[ge]=ie[E+ge];ge=-1;for(var it=sn(E+1);++ge<E;)it[ge]=ie[ge];return it[E]=F(tt),lo(S,this,it)}}function ab(S,E){return E.length<2?S:Fu(S,Bs(E,0,-1))}function Tw(S,E){for(var F=S.length,ie=sa(E.length,F),ge=Wa(S);ie--;){var Ae=E[ie];S[ie]=nu(Ae,F)?ge[Ae]:l}return S}function lm(S,E){if((E!=="constructor"||typeof S[E]!="function")&&E!="__proto__")return S[E]}var sb=cm(cw),th=Z1||function(S,E){return Fo.setTimeout(S,E)},um=cm(SE);function lb(S,E,F){var ie=E+"";return um(S,function(ge,Ae){var tt=Ae.length;if(!tt)return ge;var it=tt-1;return Ae[it]=(tt>1?"& ":"")+Ae[it],Ae=Ae.join(tt>2?", ":" "),ge.replace(Ee,`{
  103. /* [wrapped with `+Ae+`] */
  104. `)}(ie,function(ge,Ae){return ba(A,function(tt){var it="_."+tt[0];Ae&tt[1]&&!_a(ge,it)&&ge.push(it)}),ge.sort()}(function(ge){var Ae=ge.match(Ze);return Ae?Ae[1].split(ye):[]}(ie),F)))}function cm(S){var E=0,F=0;return function(){var ie=jv(),ge=16-(ie-F);if(F=ie,ge>0){if(++E>=800)return arguments[0]}else E=0;return S.apply(l,arguments)}}function Lf(S,E){var F=-1,ie=S.length,ge=ie-1;for(E=E===l?ie:E;++F<E;){var Ae=z0(F,ge),tt=S[Ae];S[Ae]=S[F],S[F]=tt}return S.length=E,S}var Pw=function(S){var E=rh(S,function(ie){return F.size===500&&F.clear(),ie}),F=E.cache;return E}(function(S){var E=[];return S.charCodeAt(0)===46&&E.push(""),S.replace(gt,function(F,ie,ge,Ae){E.push(ge?Ae.replace(Ue,"$1"):ie||F)}),E});function hi(S){if(typeof S=="string"||Zi(S))return S;var E=S+"";return E=="0"&&1/S==-1/0?"-0":E}function Ya(S){if(S!=null){try{return _r.call(S)}catch{}try{return S+""}catch{}}return""}function $w(S){if(S instanceof Ir)return S.clone();var E=new Ds(S.__wrapped__,S.__chain__);return E.__actions__=Wa(S.__actions__),E.__index__=S.__index__,E.__values__=S.__values__,E}var ps=Sr(function(S,E){return qo(S)?Vu(S,Ii(E,1,qo,!0)):[]}),Aw=Sr(function(S,E){var F=mo(E);return qo(F)&&(F=l),qo(S)?Vu(S,Ii(E,1,qo,!0),Qn(F,2)):[]}),ub=Sr(function(S,E){var F=mo(E);return qo(F)&&(F=l),qo(S)?Vu(S,Ii(E,1,qo,!0),l,F):[]});function cb(S,E,F){var ie=S==null?0:S.length;if(!ie)return-1;var ge=F==null?0:vr(F);return ge<0&&(ge=wi(ie+ge,0)),Yl(S,Qn(E,3),ge)}function fb(S,E,F){var ie=S==null?0:S.length;if(!ie)return-1;var ge=ie-1;return F!==l&&(ge=vr(F),ge=F<0?wi(ie+ge,0):sa(ge,ie-1)),Yl(S,Qn(E,3),ge,!0)}function db(S){return S!=null&&S.length?Ii(S,1):[]}function hb(S){return S&&S.length?S[0]:l}var Mw=Sr(function(S){var E=jr(S,Kv);return E.length&&E[0]===S[0]?Yv(E):[]}),pb=Sr(function(S){var E=mo(S),F=jr(S,Kv);return E===mo(F)?E=l:F.pop(),F.length&&F[0]===S[0]?Yv(F,Qn(E,2)):[]}),Kp=Sr(function(S){var E=mo(S),F=jr(S,Kv);return(E=typeof E=="function"?E:l)&&F.pop(),F.length&&F[0]===S[0]?Yv(F,l,E):[]});function mo(S){var E=S==null?0:S.length;return E?S[E-1]:l}var CE=Sr(Rw);function Rw(S,E){return S&&S.length&&E&&E.length?F0(S,E):S}var gb=Eo(function(S,E){var F=S==null?0:S.length,ie=Qv(S,E);return Xd(S,jr(E,function(ge){return nu(ge,F)?+ge:ge}).sort(vw)),ie});function fm(S){return S==null?S:mE.call(S)}var Za=Sr(function(S){return $c(Ii(S,1,qo,!0))}),pi=Sr(function(S){var E=mo(S);return qo(E)&&(E=l),$c(Ii(S,1,qo,!0),Qn(E,2))}),EE=Sr(function(S){var E=mo(S);return E=typeof E=="function"?E:l,$c(Ii(S,1,qo,!0),l,E)});function Ua(S){if(!S||!S.length)return[];var E=0;return S=oa(S,function(F){if(qo(F))return E=wi(F.length,E),!0}),Mf(E,function(F){return jr(S,wa(F))})}function Zn(S,E){if(!S||!S.length)return[];var F=Ua(S);return E==null?F:jr(F,function(ie){return lo(E,l,ie)})}var vb=Sr(function(S,E){return qo(S)?Vu(S,E):[]}),mb=Sr(function(S){return qv(oa(S,qo))}),yb=Sr(function(S){var E=mo(S);return qo(E)&&(E=l),qv(oa(S,qo),Qn(E,2))}),Nw=Sr(function(S){var E=mo(S);return E=typeof E=="function"?E:l,qv(oa(S,qo),l,E)}),Iw=Sr(Ua),TE=Sr(function(S){var E=S.length,F=E>1?S[E-1]:l;return F=typeof F=="function"?(S.pop(),F):l,Zn(S,F)});function Dw(S){var E=Te(S);return E.__chain__=!0,E}function nh(S,E){return E(S)}var PE=Eo(function(S){var E=S.length,F=E?S[0]:0,ie=this.__wrapped__,ge=function(Ae){return Qv(Ae,S)};return!(E>1||this.__actions__.length)&&ie instanceof Ir&&nu(F)?((ie=ie.slice(F,+F+(E?1:0))).__actions__.push({func:nh,args:[ge],thisArg:l}),new Ds(ie,this.__chain__).thru(function(Ae){return E&&!Ae.length&&Ae.push(l),Ae})):this.thru(ge)}),bb=em(function(S,E,F){fn.call(S,F)?++S[F]:Kl(S,F,1)}),$E=_w(cb),AE=_w(fb);function _b(S,E){return(dr(S)?ba:ko)(S,Qn(E,3))}function Bf(S,E){return(dr(S)?Rv:tw)(S,Qn(E,3))}var jw=em(function(S,E,F){fn.call(S,F)?S[F].push(E):Kl(S,F,[E])}),ur=Sr(function(S,E,F){var ie=-1,ge=typeof E=="function",Ae=ka(S)?sn(S.length):[];return ko(S,function(tt){Ae[++ie]=ge?lo(E,tt,F):Zd(tt,E,F)}),Ae}),Lw=em(function(S,E,F){Kl(S,F,E)});function Vf(S,E){return(dr(S)?jr:Ls)(S,Qn(E,3))}var Ob=em(function(S,E,F){S[F?0:1].push(E)},function(){return[[],[]]}),ME=Sr(function(S,E){if(S==null)return[];var F=E.length;return F>1&&la(S,E[0],E[1])?E=[]:F>2&&la(E[0],E[1],E[2])&&(E=[E[0]]),lw(S,Ii(E,1),[])}),Jp=pE||function(){return Fo.Date.now()};function wb(S,E,F){return E=F?l:E,E=S&&E==null?S.length:E,tu(S,b,l,l,l,l,E)}function Sb(S,E){var F;if(typeof E!="function")throw new Qe(u);return S=vr(S),function(){return--S>0&&(F=E.apply(this,arguments)),S<=1&&(E=l),F}}var xb=Sr(function(S,E,F){var ie=1;if(F.length){var ge=Fa(F,Kd(xb));ie|=y}return tu(S,ie,E,F,ge)}),Bw=Sr(function(S,E,F){var ie=3;if(F.length){var ge=Fa(F,Kd(Bw));ie|=y}return tu(E,ie,S,F,ge)});function Vw(S,E,F){var ie,ge,Ae,tt,it,ht,Ye=0,Mt=!1,Ut=!1,kn=!0;if(typeof S!="function")throw new Qe(u);function Nn(Kn){var or=ie,Tr=ge;return ie=ge=l,Ye=Kn,tt=S.apply(Tr,or)}function Un(Kn){return Ye=Kn,it=th(Kt,E),Mt?Nn(Kn):tt}function Bt(Kn){var or=Kn-ht;return ht===l||or>=E||or<0||Ut&&Kn-Ye>=Ae}function Kt(){var Kn=Jp();if(Bt(Kn))return qn(Kn);it=th(Kt,function(or){var Tr=E-(or-ht);return Ut?sa(Tr,Ae-(or-Ye)):Tr}(Kn))}function qn(Kn){return it=l,kn&&ie?Nn(Kn):(ie=ge=l,tt)}function On(){var Kn=Jp(),or=Bt(Kn);if(ie=arguments,ge=this,ht=Kn,or){if(it===l)return Un(ht);if(Ut)return H0(it),it=th(Kt,E),Nn(ht)}return it===l&&(it=th(Kt,E)),tt}return E=Ca(E)||0,No(F)&&(Mt=!!F.leading,Ae=(Ut="maxWait"in F)?wi(Ca(F.maxWait)||0,E):Ae,kn="trailing"in F?!!F.trailing:kn),On.cancel=function(){it!==l&&H0(it),Ye=0,ie=ht=ge=it=l},On.flush=function(){return it===l?tt:qn(Jp())},On}var eg=Sr(function(S,E){return j0(S,1,E)}),RE=Sr(function(S,E,F){return j0(S,Ca(E)||0,F)});function rh(S,E){if(typeof S!="function"||E!=null&&typeof E!="function")throw new Qe(u);var F=function(){var ie=arguments,ge=E?E.apply(this,ie):ie[0],Ae=F.cache;if(Ae.has(ge))return Ae.get(ge);var tt=S.apply(this,ie);return F.cache=Ae.set(ge,tt)||Ae,tt};return F.cache=new(rh.Cache||ql),F}function dm(S){if(typeof S!="function")throw new Qe(u);return function(){var E=arguments;switch(E.length){case 0:return!S.call(this);case 1:return!S.call(this,E[0]);case 2:return!S.call(this,E[0],E[1]);case 3:return!S.call(this,E[0],E[1],E[2])}return!S.apply(this,E)}}rh.Cache=ql;var NE=gw(function(S,E){var F=(E=E.length==1&&dr(E[0])?jr(E[0],Mo(Qn())):jr(Ii(E,1),Mo(Qn()))).length;return Sr(function(ie){for(var ge=-1,Ae=sa(ie.length,F);++ge<Ae;)ie[ge]=E[ge].call(this,ie[ge]);return lo(S,this,ie)})}),Ff=Sr(function(S,E){var F=Fa(E,Kd(Ff));return tu(S,y,l,E,F)}),Wu=Sr(function(S,E){var F=Fa(E,Kd(Wu));return tu(S,w,l,E,F)}),kb=Eo(function(S,E){return tu(S,k,l,l,l,E)});function To(S,E){return S===E||S!=S&&E!=E}var hm=qd(zo),tg=qd(function(S,E){return S>=E}),zf=B0(function(){return arguments}())?B0:function(S){return Io(S)&&fn.call(S,"callee")&&!aa.call(S,"callee")},dr=sn.isArray,Fw=Rp?Mo(Rp):function(S){return Io(S)&&Ro(S)==he};function ka(S){return S!=null&&Qf(S.length)&&!Zu(S)}function qo(S){return Io(S)&&ka(S)}var Yu=gE||cg,pm=Av?Mo(Av):function(S){return Io(S)&&Ro(S)==I};function Cb(S){if(!Io(S))return!1;var E=Ro(S);return E==D||E=="[object DOMException]"||typeof S.message=="string"&&typeof S.name=="string"&&!Uu(S)}function Zu(S){if(!No(S))return!1;var E=Ro(S);return E==L||E==z||E=="[object AsyncFunction]"||E=="[object Proxy]"}function gm(S){return typeof S=="number"&&S==vr(S)}function Qf(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=T}function No(S){var E=typeof S;return S!=null&&(E=="object"||E=="function")}function Io(S){return S!=null&&typeof S=="object"}var zw=Np?Mo(Np):function(S){return Io(S)&&Yi(S)==q};function Eb(S){return typeof S=="number"||Io(S)&&Ro(S)==ae}function Uu(S){if(!Io(S)||Ro(S)!=K)return!1;var E=ju(S);if(E===null)return!0;var F=fn.call(E,"constructor")&&E.constructor;return typeof F=="function"&&F instanceof F&&_r.call(F)==ds}var Tb=Rd?Mo(Rd):function(S){return Io(S)&&Ro(S)==ne},oh=xc?Mo(xc):function(S){return Io(S)&&Yi(S)==X};function ng(S){return typeof S=="string"||!dr(S)&&Io(S)&&Ro(S)==V}function Zi(S){return typeof S=="symbol"||Io(S)&&Ro(S)==G}var Ic=ll?Mo(ll):function(S){return Io(S)&&Qf(S.length)&&!!Xr[Ro(S)]},ih=qd(Qu),rg=qd(function(S,E){return S<=E});function ah(S){if(!S)return[];if(ka(S))return ng(S)?za(S):Wa(S);if(Lu&&S[Lu])return function(F){for(var ie,ge=[];!(ie=F.next()).done;)ge.push(ie.value);return ge}(S[Lu]());var E=Yi(S);return(E==q?ia:E==X?Du:jc)(S)}function ru(S){return S?(S=Ca(S))===C||S===-1/0?17976931348623157e292*(S<0?-1:1):S==S?S:0:S===0?S:0}function vr(S){var E=ru(S),F=E%1;return E==E?F?E-F:E:0}function Pb(S){return S?Pc(vr(S),0,P):0}function Ca(S){if(typeof S=="number")return S;if(Zi(S))return $;if(No(S)){var E=typeof S.valueOf=="function"?S.valueOf():S;S=No(E)?E+"":E}if(typeof S!="string")return S===0?S:+S;S=jp(S);var F=ot.test(S);return F||wn.test(S)?Wl(S.slice(2),F?2:8):Vn.test(S)?$:+S}function $b(S){return Jl(S,Di(S))}function qr(S){return S==null?"":Qa(S)}var Qw=jf(function(S,E){if(eh(E)||ka(E))Jl(E,gi(E),S);else for(var F in E)fn.call(E,F)&&Yd(S,F,E[F])}),Ab=jf(function(S,E){Jl(E,Di(E),S)}),Hu=jf(function(S,E,F,ie){Jl(E,Di(E),S,ie)}),Mb=jf(function(S,E,F,ie){Jl(E,gi(E),S,ie)}),Ww=Eo(Qv),Yw=Sr(function(S,E){S=Y(S);var F=-1,ie=E.length,ge=ie>2?E[2]:l;for(ge&&la(E[0],E[1],ge)&&(ie=1);++F<ie;)for(var Ae=E[F],tt=Di(Ae),it=-1,ht=tt.length;++it<ht;){var Ye=tt[it],Mt=S[Ye];(Mt===l||To(Mt,Wt[Ye])&&!fn.call(S,Ye))&&(S[Ye]=Ae[Ye])}return S}),Rb=Sr(function(S){return S.push(l,xw),lo(Db,l,S)});function og(S,E,F){var ie=S==null?l:Fu(S,E);return ie===l?F:ie}function ig(S,E){return S!=null&&tb(S,E,ow)}var Zw=ww(function(S,E,F){E!=null&&typeof E.toString!="function"&&(E=zr.call(E)),S[E]=F},_m(ua)),Nb=ww(function(S,E,F){E!=null&&typeof E.toString!="function"&&(E=zr.call(E)),fn.call(S,E)?S[E].push(F):S[E]=[F]},Qn),Ib=Sr(Zd);function gi(S){return ka(S)?R0(S):zu(S)}function Di(S){return ka(S)?R0(S,!0):OE(S)}var Dc=jf(function(S,E,F){Uv(S,E,F)}),Db=jf(function(S,E,F,ie){Uv(S,E,F,ie)}),Uw=Eo(function(S,E){var F={};if(S==null)return F;var ie=!1;E=jr(E,function(Ae){return Ae=Ac(Ae,S),ie||(ie=Ae.length>1),Ae}),Jl(S,J0(S),F),ie&&(F=hs(F,7,kE));for(var ge=E.length;ge--;)Gv(F,E[ge]);return F}),jb=Eo(function(S,E){return S==null?{}:function(F,ie){return uw(F,ie,function(ge,Ae){return ig(F,Ae)})}(S,E)});function vm(S,E){if(S==null)return{};var F=jr(J0(S),function(ie){return[ie]});return E=Qn(E),uw(S,F,function(ie,ge){return E(ie,ge[0])})}var Hw=om(gi),Lb=om(Di);function jc(S){return S==null?[]:jd(S,gi(S))}var mm=Rc(function(S,E,F){return E=E.toLowerCase(),S+(F?ag(E):E)});function ag(S){return Ko(qr(S).toLowerCase())}function ym(S){return(S=qr(S))&&S.replace(Xt,Bp).replace(Ql,"")}var Bb=Rc(function(S,E,F){return S+(F?"-":"")+E.toLowerCase()}),Xw=Rc(function(S,E,F){return S+(F?" ":"")+E.toLowerCase()}),Vb=bw("toLowerCase"),Gw=Rc(function(S,E,F){return S+(F?"_":"")+E.toLowerCase()}),Fb=Rc(function(S,E,F){return S+(F?" ":"")+Ko(E)}),IE=Rc(function(S,E,F){return S+(F?" ":"")+E.toUpperCase()}),Ko=bw("toUpperCase");function gl(S,E,F){return S=qr(S),(E=F?l:E)===l?function(ie){return Pp.test(ie)}(S)?function(ie){return ie.match(Ad)||[]}(S):function(ie){return ie.match(Le)||[]}(S):S.match(E)||[]}var bm=Sr(function(S,E){try{return lo(S,l,E)}catch(F){return Cb(F)?F:new Cr(F)}}),zb=Eo(function(S,E){return ba(E,function(F){F=hi(F),Kl(S,F,xb(S[F],S))}),S});function _m(S){return function(){return S}}var Qb=Ow(),Wb=Ow(!0);function ua(S){return S}function Yb(S){return V0(typeof S=="function"?S:hs(S,1))}var Wf=Sr(function(S,E){return function(F){return Zd(F,S,E)}}),Zb=Sr(function(S,E){return function(F){return Zd(S,F,E)}});function sg(S,E,F){var ie=gi(E),ge=Wv(E,ie);F!=null||No(E)&&(ge.length||!ie.length)||(F=E,E=S,S=this,ge=Wv(E,gi(E)));var Ae=!(No(F)&&"chain"in F&&!F.chain),tt=Zu(S);return ba(ge,function(it){var ht=E[it];S[it]=ht,tt&&(S.prototype[it]=function(){var Ye=this.__chain__;if(Ae||Ye){var Mt=S(this.__wrapped__),Ut=Mt.__actions__=Wa(this.__actions__);return Ut.push({func:ht,args:arguments,thisArg:S}),Mt.__chain__=Ye,Mt}return ht.apply(S,di([this.value()],arguments))})}),S}function Om(){}var lg=q0(jr),ug=q0(Nv),Ub=q0(Dp);function Hb(S){return am(S)?wa(hi(S)):function(E){return function(F){return Fu(F,E)}}(S)}var qw=eu(),ji=eu(!0);function sh(){return[]}function cg(){return!1}var Xb=Xp(function(S,E){return S+E},0),Kw=rm("ceil"),Jw=Xp(function(S,E){return S/E},1),Gb=rm("floor"),lh,eS=Xp(function(S,E){return S*E},1),wm=rm("round"),Sm=Xp(function(S,E){return S-E},0);return Te.after=function(S,E){if(typeof E!="function")throw new Qe(u);return S=vr(S),function(){if(--S<1)return E.apply(this,arguments)}},Te.ary=wb,Te.assign=Qw,Te.assignIn=Ab,Te.assignInWith=Hu,Te.assignWith=Mb,Te.at=Ww,Te.before=Sb,Te.bind=xb,Te.bindAll=zb,Te.bindKey=Bw,Te.castArray=function(){if(!arguments.length)return[];var S=arguments[0];return dr(S)?S:[S]},Te.chain=Dw,Te.chunk=function(S,E,F){E=(F?la(S,E,F):E===l)?1:wi(vr(E),0);var ie=S==null?0:S.length;if(!ie||E<1)return[];for(var ge=0,Ae=0,tt=sn(Dv(ie/E));ge<ie;)tt[Ae++]=Bs(S,ge,ge+=E);return tt},Te.compact=function(S){for(var E=-1,F=S==null?0:S.length,ie=0,ge=[];++E<F;){var Ae=S[E];Ae&&(ge[ie++]=Ae)}return ge},Te.concat=function(){var S=arguments.length;if(!S)return[];for(var E=sn(S-1),F=arguments[0],ie=S;ie--;)E[ie-1]=arguments[ie];return di(dr(F)?Wa(F):[F],Ii(E,1))},Te.cond=function(S){var E=S==null?0:S.length,F=Qn();return S=E?jr(S,function(ie){if(typeof ie[1]!="function")throw new Qe(u);return[F(ie[0]),ie[1]]}):[],Sr(function(ie){for(var ge=-1;++ge<E;){var Ae=S[ge];if(lo(Ae[0],this,ie))return lo(Ae[1],this,ie)}})},Te.conforms=function(S){return function(E){var F=gi(E);return function(ie){return D0(ie,E,F)}}(hs(S,1))},Te.constant=_m,Te.countBy=bb,Te.create=function(S,E){var F=Wd(S);return E==null?F:I0(F,E)},Te.curry=function S(E,F,ie){var ge=tu(E,8,l,l,l,l,l,F=ie?l:F);return ge.placeholder=S.placeholder,ge},Te.curryRight=function S(E,F,ie){var ge=tu(E,v,l,l,l,l,l,F=ie?l:F);return ge.placeholder=S.placeholder,ge},Te.debounce=Vw,Te.defaults=Yw,Te.defaultsDeep=Rb,Te.defer=eg,Te.delay=RE,Te.difference=ps,Te.differenceBy=Aw,Te.differenceWith=ub,Te.drop=function(S,E,F){var ie=S==null?0:S.length;return ie?Bs(S,(E=F||E===l?1:vr(E))<0?0:E,ie):[]},Te.dropRight=function(S,E,F){var ie=S==null?0:S.length;return ie?Bs(S,0,(E=ie-(E=F||E===l?1:vr(E)))<0?0:E):[]},Te.dropRightWhile=function(S,E){return S&&S.length?Zp(S,Qn(E,3),!0,!0):[]},Te.dropWhile=function(S,E){return S&&S.length?Zp(S,Qn(E,3),!0):[]},Te.fill=function(S,E,F,ie){var ge=S==null?0:S.length;return ge?(F&&typeof F!="number"&&la(S,E,F)&&(F=0,ie=ge),function(Ae,tt,it,ht){var Ye=Ae.length;for((it=vr(it))<0&&(it=-it>Ye?0:Ye+it),(ht=ht===l||ht>Ye?Ye:vr(ht))<0&&(ht+=Ye),ht=it>ht?0:Pb(ht);it<ht;)Ae[it++]=tt;return Ae}(S,E,F,ie)):[]},Te.filter=function(S,E){return(dr(S)?oa:Gr)(S,Qn(E,3))},Te.flatMap=function(S,E){return Ii(Vf(S,E),1)},Te.flatMapDeep=function(S,E){return Ii(Vf(S,E),C)},Te.flatMapDepth=function(S,E,F){return F=F===l?1:vr(F),Ii(Vf(S,E),F)},Te.flatten=db,Te.flattenDeep=function(S){return S!=null&&S.length?Ii(S,C):[]},Te.flattenDepth=function(S,E){return S!=null&&S.length?Ii(S,E=E===l?1:vr(E)):[]},Te.flip=function(S){return tu(S,512)},Te.flow=Qb,Te.flowRight=Wb,Te.fromPairs=function(S){for(var E=-1,F=S==null?0:S.length,ie={};++E<F;){var ge=S[E];ie[ge[0]]=ge[1]}return ie},Te.functions=function(S){return S==null?[]:Wv(S,gi(S))},Te.functionsIn=function(S){return S==null?[]:Wv(S,Di(S))},Te.groupBy=jw,Te.initial=function(S){return S!=null&&S.length?Bs(S,0,-1):[]},Te.intersection=Mw,Te.intersectionBy=pb,Te.intersectionWith=Kp,Te.invert=Zw,Te.invertBy=Nb,Te.invokeMap=ur,Te.iteratee=Yb,Te.keyBy=Lw,Te.keys=gi,Te.keysIn=Di,Te.map=Vf,Te.mapKeys=function(S,E){var F={};return E=Qn(E,3),$n(S,function(ie,ge,Ae){Kl(F,E(ie,ge,Ae),ie)}),F},Te.mapValues=function(S,E){var F={};return E=Qn(E,3),$n(S,function(ie,ge,Ae){Kl(F,ge,E(ie,ge,Ae))}),F},Te.matches=function(S){return iw(hs(S,1))},Te.matchesProperty=function(S,E){return aw(S,hs(E,1))},Te.memoize=rh,Te.merge=Dc,Te.mergeWith=Db,Te.method=Wf,Te.methodOf=Zb,Te.mixin=sg,Te.negate=dm,Te.nthArg=function(S){return S=vr(S),Sr(function(E){return sw(E,S)})},Te.omit=Uw,Te.omitBy=function(S,E){return vm(S,dm(Qn(E)))},Te.once=function(S){return Sb(2,S)},Te.orderBy=function(S,E,F,ie){return S==null?[]:(dr(E)||(E=E==null?[]:[E]),dr(F=ie?l:F)||(F=F==null?[]:[F]),lw(S,E,F))},Te.over=lg,Te.overArgs=NE,Te.overEvery=ug,Te.overSome=Ub,Te.partial=Ff,Te.partialRight=Wu,Te.partition=Ob,Te.pick=jb,Te.pickBy=vm,Te.property=Hb,Te.propertyOf=function(S){return function(E){return S==null?l:Fu(S,E)}},Te.pull=CE,Te.pullAll=Rw,Te.pullAllBy=function(S,E,F){return S&&S.length&&E&&E.length?F0(S,E,Qn(F,2)):S},Te.pullAllWith=function(S,E,F){return S&&S.length&&E&&E.length?F0(S,E,l,F):S},Te.pullAt=gb,Te.range=qw,Te.rangeRight=ji,Te.rearg=kb,Te.reject=function(S,E){return(dr(S)?oa:Gr)(S,dm(Qn(E,3)))},Te.remove=function(S,E){var F=[];if(!S||!S.length)return F;var ie=-1,ge=[],Ae=S.length;for(E=Qn(E,3);++ie<Ae;){var tt=S[ie];E(tt,ie,S)&&(F.push(tt),ge.push(ie))}return Xd(S,ge),F},Te.rest=function(S,E){if(typeof S!="function")throw new Qe(u);return Sr(S,E=E===l?E:vr(E))},Te.reverse=fm,Te.sampleSize=function(S,E,F){return E=(F?la(S,E,F):E===l)?1:vr(E),(dr(S)?K1:Q0)(S,E)},Te.set=function(S,E,F){return S==null?S:Gd(S,E,F)},Te.setWith=function(S,E,F,ie){return ie=typeof ie=="function"?ie:l,S==null?S:Gd(S,E,F,ie)},Te.shuffle=function(S){return(dr(S)?J1:xE)(S)},Te.slice=function(S,E,F){var ie=S==null?0:S.length;return ie?(F&&typeof F!="number"&&la(S,E,F)?(E=0,F=ie):(E=E==null?0:vr(E),F=F===l?ie:vr(F)),Bs(S,E,F)):[]},Te.sortBy=ME,Te.sortedUniq=function(S){return S&&S.length?fw(S):[]},Te.sortedUniqBy=function(S,E){return S&&S.length?fw(S,Qn(E,2)):[]},Te.split=function(S,E,F){return F&&typeof F!="number"&&la(S,E,F)&&(E=F=l),(F=F===l?P:F>>>0)?(S=qr(S))&&(typeof E=="string"||E!=null&&!Tb(E))&&!(E=Qa(E))&&fl(S)?Mc(za(S),0,F):S.split(E,F):[]},Te.spread=function(S,E){if(typeof S!="function")throw new Qe(u);return E=E==null?0:wi(vr(E),0),Sr(function(F){var ie=F[E],ge=Mc(F,0,E);return ie&&di(ge,ie),lo(S,this,ge)})},Te.tail=function(S){var E=S==null?0:S.length;return E?Bs(S,1,E):[]},Te.take=function(S,E,F){return S&&S.length?Bs(S,0,(E=F||E===l?1:vr(E))<0?0:E):[]},Te.takeRight=function(S,E,F){var ie=S==null?0:S.length;return ie?Bs(S,(E=ie-(E=F||E===l?1:vr(E)))<0?0:E,ie):[]},Te.takeRightWhile=function(S,E){return S&&S.length?Zp(S,Qn(E,3),!1,!0):[]},Te.takeWhile=function(S,E){return S&&S.length?Zp(S,Qn(E,3)):[]},Te.tap=function(S,E){return E(S),S},Te.throttle=function(S,E,F){var ie=!0,ge=!0;if(typeof S!="function")throw new Qe(u);return No(F)&&(ie="leading"in F?!!F.leading:ie,ge="trailing"in F?!!F.trailing:ge),Vw(S,E,{leading:ie,maxWait:E,trailing:ge})},Te.thru=nh,Te.toArray=ah,Te.toPairs=Hw,Te.toPairsIn=Lb,Te.toPath=function(S){return dr(S)?jr(S,hi):Zi(S)?[S]:Wa(Pw(qr(S)))},Te.toPlainObject=$b,Te.transform=function(S,E,F){var ie=dr(S),ge=ie||Yu(S)||Ic(S);if(E=Qn(E,4),F==null){var Ae=S&&S.constructor;F=ge?ie?new Ae:[]:No(S)&&Zu(Ae)?Wd(ju(S)):{}}return(ge?ba:$n)(S,function(tt,it,ht){return E(F,tt,it,ht)}),F},Te.unary=function(S){return wb(S,1)},Te.union=Za,Te.unionBy=pi,Te.unionWith=EE,Te.uniq=function(S){return S&&S.length?$c(S):[]},Te.uniqBy=function(S,E){return S&&S.length?$c(S,Qn(E,2)):[]},Te.uniqWith=function(S,E){return E=typeof E=="function"?E:l,S&&S.length?$c(S,l,E):[]},Te.unset=function(S,E){return S==null||Gv(S,E)},Te.unzip=Ua,Te.unzipWith=Zn,Te.update=function(S,E,F){return S==null?S:dw(S,E,U0(F))},Te.updateWith=function(S,E,F,ie){return ie=typeof ie=="function"?ie:l,S==null?S:dw(S,E,U0(F),ie)},Te.values=jc,Te.valuesIn=function(S){return S==null?[]:jd(S,Di(S))},Te.without=vb,Te.words=gl,Te.wrap=function(S,E){return Ff(U0(E),S)},Te.xor=mb,Te.xorBy=yb,Te.xorWith=Nw,Te.zip=Iw,Te.zipObject=function(S,E){return pw(S||[],E||[],Yd)},Te.zipObjectDeep=function(S,E){return pw(S||[],E||[],Gd)},Te.zipWith=TE,Te.entries=Hw,Te.entriesIn=Lb,Te.extend=Ab,Te.extendWith=Hu,sg(Te,Te),Te.add=Xb,Te.attempt=bm,Te.camelCase=mm,Te.capitalize=ag,Te.ceil=Kw,Te.clamp=function(S,E,F){return F===l&&(F=E,E=l),F!==l&&(F=(F=Ca(F))==F?F:0),E!==l&&(E=(E=Ca(E))==E?E:0),Pc(Ca(S),E,F)},Te.clone=function(S){return hs(S,4)},Te.cloneDeep=function(S){return hs(S,5)},Te.cloneDeepWith=function(S,E){return hs(S,5,E=typeof E=="function"?E:l)},Te.cloneWith=function(S,E){return hs(S,4,E=typeof E=="function"?E:l)},Te.conformsTo=function(S,E){return E==null||D0(S,E,gi(E))},Te.deburr=ym,Te.defaultTo=function(S,E){return S==null||S!=S?E:S},Te.divide=Jw,Te.endsWith=function(S,E,F){S=qr(S),E=Qa(E);var ie=S.length,ge=F=F===l?ie:Pc(vr(F),0,ie);return(F-=E.length)>=0&&S.slice(F,ge)==E},Te.eq=To,Te.escape=function(S){return(S=qr(S))&&Ke.test(S)?S.replace(Ve,ii):S},Te.escapeRegExp=function(S){return(S=qr(S))&&Zt.test(S)?S.replace(Ct,"\\$&"):S},Te.every=function(S,E,F){var ie=dr(S)?Nv:nw;return F&&la(S,E,F)&&(E=l),ie(S,Qn(E,3))},Te.find=$E,Te.findIndex=cb,Te.findKey=function(S,E){return ul(S,Qn(E,3),$n)},Te.findLast=AE,Te.findLastIndex=fb,Te.findLastKey=function(S,E){return ul(S,Qn(E,3),go)},Te.floor=Gb,Te.forEach=_b,Te.forEachRight=Bf,Te.forIn=function(S,E){return S==null?S:wr(S,Qn(E,3),Di)},Te.forInRight=function(S,E){return S==null?S:ai(S,Qn(E,3),Di)},Te.forOwn=function(S,E){return S&&$n(S,Qn(E,3))},Te.forOwnRight=function(S,E){return S&&go(S,Qn(E,3))},Te.get=og,Te.gt=hm,Te.gte=tg,Te.has=function(S,E){return S!=null&&tb(S,E,rw)},Te.hasIn=ig,Te.head=hb,Te.identity=ua,Te.includes=function(S,E,F,ie){S=ka(S)?S:jc(S),F=F&&!ie?vr(F):0;var ge=S.length;return F<0&&(F=wi(ge+F,0)),ng(S)?F<=ge&&S.indexOf(E,F)>-1:!!ge&&kc(S,E,F)>-1},Te.indexOf=function(S,E,F){var ie=S==null?0:S.length;if(!ie)return-1;var ge=F==null?0:vr(F);return ge<0&&(ge=wi(ie+ge,0)),kc(S,E,ge)},Te.inRange=function(S,E,F){return E=ru(E),F===l?(F=E,E=0):F=ru(F),function(ie,ge,Ae){return ie>=sa(ge,Ae)&&ie<wi(ge,Ae)}(S=Ca(S),E,F)},Te.invoke=Ib,Te.isArguments=zf,Te.isArray=dr,Te.isArrayBuffer=Fw,Te.isArrayLike=ka,Te.isArrayLikeObject=qo,Te.isBoolean=function(S){return S===!0||S===!1||Io(S)&&Ro(S)==N},Te.isBuffer=Yu,Te.isDate=pm,Te.isElement=function(S){return Io(S)&&S.nodeType===1&&!Uu(S)},Te.isEmpty=function(S){if(S==null)return!0;if(ka(S)&&(dr(S)||typeof S=="string"||typeof S.splice=="function"||Yu(S)||Ic(S)||zf(S)))return!S.length;var E=Yi(S);if(E==q||E==X)return!S.size;if(eh(S))return!zu(S).length;for(var F in S)if(fn.call(S,F))return!1;return!0},Te.isEqual=function(S,E){return Ud(S,E)},Te.isEqualWith=function(S,E,F){var ie=(F=typeof F=="function"?F:l)?F(S,E):l;return ie===l?Ud(S,E,l,F):!!ie},Te.isError=Cb,Te.isFinite=function(S){return typeof S=="number"&&U1(S)},Te.isFunction=Zu,Te.isInteger=gm,Te.isLength=Qf,Te.isMap=zw,Te.isMatch=function(S,E){return S===E||Zv(S,E,im(E))},Te.isMatchWith=function(S,E,F){return F=typeof F=="function"?F:l,Zv(S,E,im(E),F)},Te.isNaN=function(S){return Eb(S)&&S!=+S},Te.isNative=function(S){if(Ew(S))throw new Cr("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Hd(S)},Te.isNil=function(S){return S==null},Te.isNull=function(S){return S===null},Te.isNumber=Eb,Te.isObject=No,Te.isObjectLike=Io,Te.isPlainObject=Uu,Te.isRegExp=Tb,Te.isSafeInteger=function(S){return gm(S)&&S>=-9007199254740991&&S<=T},Te.isSet=oh,Te.isString=ng,Te.isSymbol=Zi,Te.isTypedArray=Ic,Te.isUndefined=function(S){return S===l},Te.isWeakMap=function(S){return Io(S)&&Yi(S)==se},Te.isWeakSet=function(S){return Io(S)&&Ro(S)=="[object WeakSet]"},Te.join=function(S,E){return S==null?"":vE.call(S,E)},Te.kebabCase=Bb,Te.last=mo,Te.lastIndexOf=function(S,E,F){var ie=S==null?0:S.length;if(!ie)return-1;var ge=ie;return F!==l&&(ge=(ge=vr(F))<0?wi(ie+ge,0):sa(ge,ie-1)),E==E?function(Ae,tt,it){for(var ht=it+1;ht--;)if(Ae[ht]===tt)return ht;return ht}(S,E,ge):Yl(S,Zl,ge,!0)},Te.lowerCase=Xw,Te.lowerFirst=Vb,Te.lt=ih,Te.lte=rg,Te.max=function(S){return S&&S.length?Go(S,ua,zo):l},Te.maxBy=function(S,E){return S&&S.length?Go(S,Qn(E,2),zo):l},Te.mean=function(S){return Mr(S,ua)},Te.meanBy=function(S,E){return Mr(S,Qn(E,2))},Te.min=function(S){return S&&S.length?Go(S,ua,Qu):l},Te.minBy=function(S,E){return S&&S.length?Go(S,Qn(E,2),Qu):l},Te.stubArray=sh,Te.stubFalse=cg,Te.stubObject=function(){return{}},Te.stubString=function(){return""},Te.stubTrue=function(){return!0},Te.multiply=eS,Te.nth=function(S,E){return S&&S.length?sw(S,vr(E)):l},Te.noConflict=function(){return Fo._===this&&(Fo._=xo),this},Te.noop=Om,Te.now=Jp,Te.pad=function(S,E,F){S=qr(S);var ie=(E=vr(E))?dl(S):0;if(!E||ie>=E)return S;var ge=(E-ie)/2;return tm(Vd(ge),F)+S+tm(Dv(ge),F)},Te.padEnd=function(S,E,F){S=qr(S);var ie=(E=vr(E))?dl(S):0;return E&&ie<E?S+tm(E-ie,F):S},Te.padStart=function(S,E,F){S=qr(S);var ie=(E=vr(E))?dl(S):0;return E&&ie<E?tm(E-ie,F)+S:S},Te.parseInt=function(S,E,F){return F||E==null?E=0:E&&(E=+E),Lv(qr(S).replace(Et,""),E||0)},Te.random=function(S,E,F){if(F&&typeof F!="boolean"&&la(S,E,F)&&(E=F=l),F===l&&(typeof E=="boolean"?(F=E,E=l):typeof S=="boolean"&&(F=S,S=l)),S===l&&E===l?(S=0,E=1):(S=ru(S),E===l?(E=S,S=0):E=ru(E)),S>E){var ie=S;S=E,E=ie}if(F||S%1||E%1){var ge=Bv();return sa(S+ge*(E-S+Sc("1e-"+((ge+"").length-1))),E)}return z0(S,E)},Te.reduce=function(S,E,F){var ie=dr(S)?Nd:Oi,ge=arguments.length<3;return ie(S,Qn(E,4),F,ge,ko)},Te.reduceRight=function(S,E,F){var ie=dr(S)?Iv:Oi,ge=arguments.length<3;return ie(S,Qn(E,4),F,ge,tw)},Te.repeat=function(S,E,F){return E=(F?la(S,E,F):E===l)?1:vr(E),Hv(qr(S),E)},Te.replace=function(){var S=arguments,E=qr(S[0]);return S.length<3?E:E.replace(S[1],S[2])},Te.result=function(S,E,F){var ie=-1,ge=(E=Ac(E,S)).length;for(ge||(ge=1,S=l);++ie<ge;){var Ae=S==null?l:S[hi(E[ie])];Ae===l&&(ie=ge,Ae=F),S=Zu(Ae)?Ae.call(S):Ae}return S},Te.round=wm,Te.runInContext=mt,Te.sample=function(S){return(dr(S)?N0:wE)(S)},Te.size=function(S){if(S==null)return 0;if(ka(S))return ng(S)?dl(S):S.length;var E=Yi(S);return E==q||E==X?S.size:zu(S).length},Te.snakeCase=Gw,Te.some=function(S,E,F){var ie=dr(S)?Dp:W0;return F&&la(S,E,F)&&(E=l),ie(S,Qn(E,3))},Te.sortedIndex=function(S,E){return Xv(S,E)},Te.sortedIndexBy=function(S,E,F){return Y0(S,E,Qn(F,2))},Te.sortedIndexOf=function(S,E){var F=S==null?0:S.length;if(F){var ie=Xv(S,E);if(ie<F&&To(S[ie],E))return ie}return-1},Te.sortedLastIndex=function(S,E){return Xv(S,E,!0)},Te.sortedLastIndexBy=function(S,E,F){return Y0(S,E,Qn(F,2),!0)},Te.sortedLastIndexOf=function(S,E){if(S!=null&&S.length){var F=Xv(S,E,!0)-1;if(To(S[F],E))return F}return-1},Te.startCase=Fb,Te.startsWith=function(S,E,F){return S=qr(S),F=F==null?0:Pc(vr(F),0,S.length),E=Qa(E),S.slice(F,F+E.length)==E},Te.subtract=Sm,Te.sum=function(S){return S&&S.length?Dd(S,ua):0},Te.sumBy=function(S,E){return S&&S.length?Dd(S,Qn(E,2)):0},Te.template=function(S,E,F){var ie=Te.templateSettings;F&&la(S,E,F)&&(E=l),S=qr(S),E=Hu({},E,ie,Sw);var ge,Ae,tt=Hu({},E.imports,ie.imports,Sw),it=gi(tt),ht=jd(tt,it),Ye=0,Mt=E.interpolate||Ht,Ut="__p += '",kn=le((E.escape||Ht).source+"|"+Mt.source+"|"+(Mt===ct?rt:Ht).source+"|"+(E.evaluate||Ht).source+"|$","g"),Nn="//# sourceURL="+(fn.call(E,"sourceURL")?(E.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Tv+"]")+`
  105. `;S.replace(kn,function(Kt,qn,On,Kn,or,Tr){return On||(On=Kn),Ut+=S.slice(Ye,Tr).replace(Sn,Cc),qn&&(ge=!0,Ut+=`' +
  106. __e(`+qn+`) +
  107. '`),or&&(Ae=!0,Ut+=`';
  108. `+or+`;
  109. __p += '`),On&&(Ut+=`' +
  110. ((__t = (`+On+`)) == null ? '' : __t) +
  111. '`),Ye=Tr+Kt.length,Kt}),Ut+=`';
  112. `;var Un=fn.call(E,"variable")&&E.variable;if(Un){if(xe.test(Un))throw new Cr("Invalid `variable` option passed into `_.template`")}else Ut=`with (obj) {
  113. `+Ut+`
  114. }
  115. `;Ut=(Ae?Ut.replace(oe,""):Ut).replace(ke,"$1").replace(We,"$1;"),Ut="function("+(Un||"obj")+`) {
  116. `+(Un?"":`obj || (obj = {});
  117. `)+"var __t, __p = ''"+(ge?", __e = _.escape":"")+(Ae?`, __j = Array.prototype.join;
  118. function print() { __p += __j.call(arguments, '') }
  119. `:`;
  120. `)+Ut+`return __p
  121. }`;var Bt=bm(function(){return po(it,Nn+"return "+Ut).apply(l,ht)});if(Bt.source=Ut,Cb(Bt))throw Bt;return Bt},Te.times=function(S,E){if((S=vr(S))<1||S>T)return[];var F=P,ie=sa(S,P);E=Qn(E),S-=P;for(var ge=Mf(ie,E);++F<S;)E(F);return ge},Te.toFinite=ru,Te.toInteger=vr,Te.toLength=Pb,Te.toLower=function(S){return qr(S).toLowerCase()},Te.toNumber=Ca,Te.toSafeInteger=function(S){return S?Pc(vr(S),-9007199254740991,T):S===0?S:0},Te.toString=qr,Te.toUpper=function(S){return qr(S).toUpperCase()},Te.trim=function(S,E,F){if((S=qr(S))&&(F||E===l))return jp(S);if(!S||!(E=Qa(E)))return S;var ie=za(S),ge=za(E);return Mc(ie,cs(ie,ge),Lp(ie,ge)+1).join("")},Te.trimEnd=function(S,E,F){if((S=qr(S))&&(F||E===l))return S.slice(0,Sa(S)+1);if(!S||!(E=Qa(E)))return S;var ie=za(S);return Mc(ie,0,Lp(ie,za(E))+1).join("")},Te.trimStart=function(S,E,F){if((S=qr(S))&&(F||E===l))return S.replace(Et,"");if(!S||!(E=Qa(E)))return S;var ie=za(S);return Mc(ie,cs(ie,za(E))).join("")},Te.truncate=function(S,E){var F=30,ie="...";if(No(E)){var ge="separator"in E?E.separator:ge;F="length"in E?vr(E.length):F,ie="omission"in E?Qa(E.omission):ie}var Ae=(S=qr(S)).length;if(fl(S)){var tt=za(S);Ae=tt.length}if(F>=Ae)return S;var it=F-dl(ie);if(it<1)return ie;var ht=tt?Mc(tt,0,it).join(""):S.slice(0,it);if(ge===l)return ht+ie;if(tt&&(it+=ht.length-it),Tb(ge)){if(S.slice(it).search(ge)){var Ye,Mt=ht;for(ge.global||(ge=le(ge.source,qr(Ft.exec(ge))+"g")),ge.lastIndex=0;Ye=ge.exec(Mt);)var Ut=Ye.index;ht=ht.slice(0,Ut===l?it:Ut)}}else if(S.indexOf(Qa(ge),it)!=it){var kn=ht.lastIndexOf(ge);kn>-1&&(ht=ht.slice(0,kn))}return ht+ie},Te.unescape=function(S){return(S=qr(S))&&Me.test(S)?S.replace(et,fs):S},Te.uniqueId=function(S){var E=++ro;return qr(S)+E},Te.upperCase=IE,Te.upperFirst=Ko,Te.each=_b,Te.eachRight=Bf,Te.first=hb,sg(Te,(lh={},$n(Te,function(S,E){fn.call(Te.prototype,E)||(lh[E]=S)}),lh),{chain:!1}),Te.VERSION="4.17.21",ba(["bind","bindKey","curry","curryRight","partial","partialRight"],function(S){Te[S].placeholder=Te}),ba(["drop","take"],function(S,E){Ir.prototype[S]=function(F){F=F===l?1:wi(vr(F),0);var ie=this.__filtered__&&!E?new Ir(this):this.clone();return ie.__filtered__?ie.__takeCount__=sa(F,ie.__takeCount__):ie.__views__.push({size:sa(F,P),type:S+(ie.__dir__<0?"Right":"")}),ie},Ir.prototype[S+"Right"]=function(F){return this.reverse()[S](F).reverse()}}),ba(["filter","map","takeWhile"],function(S,E){var F=E+1,ie=F==1||F==3;Ir.prototype[S]=function(ge){var Ae=this.clone();return Ae.__iteratees__.push({iteratee:Qn(ge,3),type:F}),Ae.__filtered__=Ae.__filtered__||ie,Ae}}),ba(["head","last"],function(S,E){var F="take"+(E?"Right":"");Ir.prototype[S]=function(){return this[F](1).value()[0]}}),ba(["initial","tail"],function(S,E){var F="drop"+(E?"":"Right");Ir.prototype[S]=function(){return this.__filtered__?new Ir(this):this[F](1)}}),Ir.prototype.compact=function(){return this.filter(ua)},Ir.prototype.find=function(S){return this.filter(S).head()},Ir.prototype.findLast=function(S){return this.reverse().find(S)},Ir.prototype.invokeMap=Sr(function(S,E){return typeof S=="function"?new Ir(this):this.map(function(F){return Zd(F,S,E)})}),Ir.prototype.reject=function(S){return this.filter(dm(Qn(S)))},Ir.prototype.slice=function(S,E){S=vr(S);var F=this;return F.__filtered__&&(S>0||E<0)?new Ir(F):(S<0?F=F.takeRight(-S):S&&(F=F.drop(S)),E!==l&&(F=(E=vr(E))<0?F.dropRight(-E):F.take(E-S)),F)},Ir.prototype.takeRightWhile=function(S){return this.reverse().takeWhile(S).reverse()},Ir.prototype.toArray=function(){return this.take(P)},$n(Ir.prototype,function(S,E){var F=/^(?:filter|find|map|reject)|While$/.test(E),ie=/^(?:head|last)$/.test(E),ge=Te[ie?"take"+(E=="last"?"Right":""):E],Ae=ie||/^find/.test(E);ge&&(Te.prototype[E]=function(){var tt=this.__wrapped__,it=ie?[1]:arguments,ht=tt instanceof Ir,Ye=it[0],Mt=ht||dr(tt),Ut=function(qn){var On=ge.apply(Te,di([qn],it));return ie&&kn?On[0]:On};Mt&&F&&typeof Ye=="function"&&Ye.length!=1&&(ht=Mt=!1);var kn=this.__chain__,Nn=!!this.__actions__.length,Un=Ae&&!kn,Bt=ht&&!Nn;if(!Ae&&Mt){tt=Bt?tt:new Ir(this);var Kt=S.apply(tt,it);return Kt.__actions__.push({func:nh,args:[Ut],thisArg:l}),new Ds(Kt,kn)}return Un&&Bt?S.apply(this,it):(Kt=this.thru(Ut),Un?ie?Kt.value()[0]:Kt.value():Kt)})}),ba(["pop","push","shift","sort","splice","unshift"],function(S){var E=st[S],F=/^(?:push|sort|unshift)$/.test(S)?"tap":"thru",ie=/^(?:pop|shift)$/.test(S);Te.prototype[S]=function(){var ge=arguments;if(ie&&!this.__chain__){var Ae=this.value();return E.apply(dr(Ae)?Ae:[],ge)}return this[F](function(tt){return E.apply(dr(tt)?tt:[],ge)})}}),$n(Ir.prototype,function(S,E){var F=Te[E];if(F){var ie=F.name+"";fn.call(Qd,ie)||(Qd[ie]=[]),Qd[ie].push({name:E,func:F})}}),Qd[Hp(l,2).name]=[{name:"wrapper",func:l}],Ir.prototype.clone=function(){var S=new Ir(this.__wrapped__);return S.__actions__=Wa(this.__actions__),S.__dir__=this.__dir__,S.__filtered__=this.__filtered__,S.__iteratees__=Wa(this.__iteratees__),S.__takeCount__=this.__takeCount__,S.__views__=Wa(this.__views__),S},Ir.prototype.reverse=function(){if(this.__filtered__){var S=new Ir(this);S.__dir__=-1,S.__filtered__=!0}else(S=this.clone()).__dir__*=-1;return S},Ir.prototype.value=function(){var S=this.__wrapped__.value(),E=this.__dir__,F=dr(S),ie=E<0,ge=F?S.length:0,Ae=function(Tr,jn,Hn){for(var vi=-1,Ui=Hn.length;++vi<Ui;){var vl=Hn[vi],xi=vl.size;switch(vl.type){case"drop":Tr+=xi;break;case"dropRight":jn-=xi;break;case"take":jn=sa(jn,Tr+xi);break;case"takeRight":Tr=wi(Tr,jn-xi)}}return{start:Tr,end:jn}}(0,ge,this.__views__),tt=Ae.start,it=Ae.end,ht=it-tt,Ye=ie?it:tt-1,Mt=this.__iteratees__,Ut=Mt.length,kn=0,Nn=sa(ht,this.__takeCount__);if(!F||!ie&&ge==ht&&Nn==ht)return hw(S,this.__actions__);var Un=[];e:for(;ht--&&kn<Nn;){for(var Bt=-1,Kt=S[Ye+=E];++Bt<Ut;){var qn=Mt[Bt],On=qn.iteratee,Kn=qn.type,or=On(Kt);if(Kn==2)Kt=or;else if(!or){if(Kn==1)continue e;break e}}Un[kn++]=Kt}return Un},Te.prototype.at=PE,Te.prototype.chain=function(){return Dw(this)},Te.prototype.commit=function(){return new Ds(this.value(),this.__chain__)},Te.prototype.next=function(){this.__values__===l&&(this.__values__=ah(this.value()));var S=this.__index__>=this.__values__.length;return{done:S,value:S?l:this.__values__[this.__index__++]}},Te.prototype.plant=function(S){for(var E,F=this;F instanceof Wp;){var ie=$w(F);ie.__index__=0,ie.__values__=l,E?ge.__wrapped__=ie:E=ie;var ge=ie;F=F.__wrapped__}return ge.__wrapped__=S,E},Te.prototype.reverse=function(){var S=this.__wrapped__;if(S instanceof Ir){var E=S;return this.__actions__.length&&(E=new Ir(this)),(E=E.reverse()).__actions__.push({func:nh,args:[fm],thisArg:l}),new Ds(E,this.__chain__)}return this.thru(fm)},Te.prototype.toJSON=Te.prototype.valueOf=Te.prototype.value=function(){return hw(this.__wrapped__,this.__actions__)},Te.prototype.first=Te.prototype.head,Lu&&(Te.prototype[Lu]=function(){return this}),Te}();Fo._=hl,(s=function(){return hl}.call(r,o,r,a))===l||(a.exports=s)}).call(this)}).call(this,o(68),o(220)(n))},function(n,r,o){var i=o(7),a=o(34),s=o(33),l=o(87),u=o(61),d=o(174),p=o(28),v=i.TypeError,y=p("toPrimitive");n.exports=function(w,b){if(!s(w)||l(w))return w;var k,C=u(w,y);if(C){if(b===void 0&&(b="default"),k=a(C,w,b),!s(k)||l(k))return k;throw v("Can't convert object to primitive value")}return b===void 0&&(b="number"),d(w,b)}},function(n,r,o){var i=o(108);n.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(n,r,o){var i=o(36),a=o(18),s=o(91);n.exports=!i&&!a(function(){return Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a!=7})},function(n,r,o){var i=o(35),a=o(135),s=o(50),l=o(38);n.exports=function(u,d){for(var p=a(d),v=l.f,y=s.f,w=0;w<p.length;w++){var b=p[w];i(u,b)||v(u,b,y(d,b))}}},function(n,r,o){var i=o(46),a=o(15),s=o(74),l=o(112),u=o(32),d=a([].concat);n.exports=i("Reflect","ownKeys")||function(p){var v=s.f(u(p)),y=l.f;return y?d(v,y(p)):v}},function(n,r,o){var i=o(15),a=o(35),s=o(41),l=o(137).indexOf,u=o(72),d=i([].push);n.exports=function(p,v){var y,w=s(p),b=0,k=[];for(y in w)!a(u,y)&&a(w,y)&&d(k,y);for(;v.length>b;)a(w,y=v[b++])&&(~l(k,y)||d(k,y));return k}},function(n,r,o){var i=o(41),a=o(75),s=o(45),l=function(u){return function(d,p,v){var y,w=i(d),b=s(w),k=a(v,b);if(u&&p!=p){for(;b>k;)if((y=w[k++])!=y)return!0}else for(;b>k;k++)if((u||k in w)&&w[k]===p)return u||k||0;return!u&&-1}};n.exports={includes:l(!0),indexOf:l(!1)}},function(n,r,o){var i=o(46);n.exports=i("document","documentElement")},function(n,r,o){var i=o(51),a=o(41),s=o(74).f,l=o(114),u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(d){return u&&i(d)=="Window"?function(p){try{return s(p)}catch{return l(u)}}(d):s(a(d))}},function(n,r,o){var i=o(28);r.f=i},function(n,r,o){var i=o(177),a=o(35),s=o(140),l=o(38).f;n.exports=function(u){var d=i.Symbol||(i.Symbol={});a(d,u)||l(d,u,{value:s.f(u)})}},function(n,r,o){var i,a,s,l=o(18),u=o(30),d=o(60),p=o(101),v=o(42),y=o(28),w=o(71),b=y("iterator"),k=!1;[].keys&&("next"in(s=[].keys())?(a=p(p(s)))!==Object.prototype&&(i=a):k=!0),i==null||l(function(){var C={};return i[b].call(C)!==C})?i={}:w&&(i=d(i)),u(i[b])||v(i,b,function(){return this}),n.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:k}},function(n,r,o){var i=o(18);n.exports=!i(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},function(n,r,o){var i=o(16),a=o(15),s=o(72),l=o(33),u=o(35),d=o(38).f,p=o(74),v=o(139),y=o(183),w=o(90),b=o(185),k=!1,C=w("meta"),T=0,$=function(A){d(A,C,{value:{objectID:"O"+T++,weakData:{}}})},P=n.exports={enable:function(){P.enable=function(){},k=!0;var A=p.f,R=a([].splice),B={};B[C]=1,A(B).length&&(p.f=function(N){for(var I=A(N),D=0,L=I.length;D<L;D++)if(I[D]===C){R(I,D,1);break}return I},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:v.f}))},fastKey:function(A,R){if(!l(A))return typeof A=="symbol"?A:(typeof A=="string"?"S":"P")+A;if(!u(A,C)){if(!y(A))return"F";if(!R)return"E";$(A)}return A[C].objectID},getWeakData:function(A,R){if(!u(A,C)){if(!y(A))return!0;if(!R)return!1;$(A)}return A[C].weakData},onFreeze:function(A){return b&&k&&y(A)&&!u(A,C)&&$(A),A}};s[C]=!0},function(n,r,o){var i=o(28),a=o(80),s=i("iterator"),l=Array.prototype;n.exports=function(u){return u!==void 0&&(a.Array===u||l[s]===u)}},function(n,r,o){var i=o(7),a=o(34),s=o(56),l=o(32),u=o(88),d=o(118),p=i.TypeError;n.exports=function(v,y){var w=arguments.length<2?d(v):y;if(s(w))return l(a(w,v));throw p(u(v)+" is not iterable")}},function(n,r,o){var i=o(34),a=o(32),s=o(61);n.exports=function(l,u,d){var p,v;a(l);try{if(!(p=s(l,"return"))){if(u==="throw")throw d;return d}p=i(p,l)}catch(y){v=!0,p=y}if(u==="throw")throw d;if(v)throw p;return a(p),d}},function(n,r,o){var i=o(30),a=o(33),s=o(102);n.exports=function(l,u,d){var p,v;return s&&i(p=u.constructor)&&p!==d&&a(v=p.prototype)&&v!==d.prototype&&s(l,v),l}},function(n,r,o){var i=o(42);n.exports=function(a,s,l){for(var u in s)i(a,u,s[u],l);return a}},function(n,r,o){var i=o(46),a=o(38),s=o(28),l=o(36),u=s("species");n.exports=function(d){var p=i(d),v=a.f;l&&p&&!p[u]&&v(p,u,{configurable:!0,get:function(){return this}})}},function(n,r,o){var i=o(15),a=o(59),s=o(39),l=o(44),u=i("".charAt),d=i("".charCodeAt),p=i("".slice),v=function(y){return function(w,b){var k,C,T=s(l(w)),$=a(b),P=T.length;return $<0||$>=P?y?"":void 0:(k=d(T,$))<55296||k>56319||$+1===P||(C=d(T,$+1))<56320||C>57343?y?u(T,$):k:y?p(T,$,$+2):C-56320+(k-55296<<10)+65536}};n.exports={codeAt:v(!1),charAt:v(!0)}},function(n,r){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(n,r,o){var i=o(91)("span").classList,a=i&&i.constructor&&i.constructor.prototype;n.exports=a===Object.prototype?void 0:a},function(n,r,o){var i=o(32);n.exports=function(){var a=i(this),s="";return a.global&&(s+="g"),a.ignoreCase&&(s+="i"),a.multiline&&(s+="m"),a.dotAll&&(s+="s"),a.unicode&&(s+="u"),a.sticky&&(s+="y"),s}},function(n,r,o){var i=o(18),a=o(7).RegExp,s=i(function(){var d=a("a","y");return d.lastIndex=2,d.exec("abcd")!=null}),l=s||i(function(){return!a("a","y").sticky}),u=s||i(function(){var d=a("^r","gy");return d.lastIndex=2,d.exec("str")!=null});n.exports={BROKEN_CARET:u,MISSED_STICKY:l,UNSUPPORTED_Y:s}},function(n,r,o){var i=o(16),a=o(79).find,s=o(100),l="find",u=!0;l in[]&&Array(1).find(function(){u=!1}),i({target:"Array",proto:!0,forced:u},{find:function(d){return a(this,d,arguments.length>1?arguments[1]:void 0)}}),s(l)},function(n,r,o){var i=o(16),a=o(137).includes,s=o(100);i({target:"Array",proto:!0},{includes:function(l){return a(this,l,arguments.length>1?arguments[1]:void 0)}}),s("includes")},function(n,r,o){var i=o(16),a=o(15),s=o(197),l=o(44),u=o(39),d=o(198),p=a("".indexOf);i({target:"String",proto:!0,forced:!d("includes")},{includes:function(v){return!!~p(u(l(this)),u(s(v)),arguments.length>1?arguments[1]:void 0)}})},function(n,r,o){var i=o(33),a=o(51),s=o(28)("match");n.exports=function(l){var u;return i(l)&&((u=l[s])!==void 0?!!u:a(l)=="RegExp")}},function(n,r,o){var i=o(15);n.exports=i(1 .valueOf)},function(n,r,o){var i=o(15),a=o(44),s=o(39),l=o(162),u=i("".replace),d="["+l+"]",p=RegExp("^"+d+d+"*"),v=RegExp(d+d+"*$"),y=function(w){return function(b){var k=s(a(b));return 1&w&&(k=u(k,p,"")),2&w&&(k=u(k,v,"")),k}};n.exports={start:y(1),end:y(2),trim:y(3)}},function(n,r){n.exports=`
  122. \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(n,r){var o,i,a=n.exports={};function s(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function u(T){if(o===setTimeout)return setTimeout(T,0);if((o===s||!o)&&setTimeout)return o=setTimeout,setTimeout(T,0);try{return o(T,0)}catch{try{return o.call(null,T,0)}catch{return o.call(this,T,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:s}catch{o=s}try{i=typeof clearTimeout=="function"?clearTimeout:l}catch{i=l}})();var d,p=[],v=!1,y=-1;function w(){v&&d&&(v=!1,d.length?p=d.concat(p):y=-1,p.length&&b())}function b(){if(!v){var T=u(w);v=!0;for(var $=p.length;$;){for(d=p,p=[];++y<$;)d&&d[y].run();y=-1,$=p.length}d=null,v=!1,function(P){if(i===clearTimeout)return clearTimeout(P);if((i===l||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(P);try{i(P)}catch{try{return i.call(null,P)}catch{return i.call(this,P)}}}(T)}}function k(T,$){this.fun=T,this.array=$}function C(){}a.nextTick=function(T){var $=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)$[P-1]=arguments[P];p.push(new k(T,$)),p.length!==1||v||u(b)},k.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=C,a.addListener=C,a.once=C,a.off=C,a.removeListener=C,a.removeAllListeners=C,a.emit=C,a.prependListener=C,a.prependOnceListener=C,a.listeners=function(T){return[]},a.binding=function(T){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(T){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(n,r,o){var i=o(32),a=o(165),s=o(28)("species");n.exports=function(l,u){var d,p=i(l).constructor;return p===void 0||(d=i(p)[s])==null?u:a(d)}},function(n,r,o){var i=o(7),a=o(99),s=o(88),l=i.TypeError;n.exports=function(u){if(a(u))return u;throw l(s(u)+" is not a constructor")}},function(n,r,o){var i=o(16),a=o(161).trim;i({target:"String",proto:!0,forced:o(200)("trim")},{trim:function(){return a(this)}})},function(n,r,o){var i=o(34),a=o(123),s=o(32),l=o(94),u=o(39),d=o(44),p=o(61),v=o(124),y=o(125);a("match",function(w,b,k){return[function(C){var T=d(this),$=C==null?void 0:p(C,w);return $?i($,C,T):new RegExp(C)[w](u(T))},function(C){var T=s(this),$=u(C),P=k(b,T,$);if(P.done)return P.value;if(!T.global)return y(T,$);var A=T.unicode;T.lastIndex=0;for(var R,B=[],N=0;(R=y(T,$))!==null;){var I=u(R[0]);B[N]=I,I===""&&(T.lastIndex=v($,l(T.lastIndex),A)),N++}return N===0?null:B}]})},function(n,r,o){var i,a,s,l,u=o(7),d=o(76),p=o(63),v=o(30),y=o(35),w=o(18),b=o(138),k=o(98),C=o(91),T=o(169),$=o(128),P=u.setImmediate,A=u.clearImmediate,R=u.process,B=u.Dispatch,N=u.Function,I=u.MessageChannel,D=u.String,L=0,z={},q="onreadystatechange";try{i=u.location}catch{}var ae=function(X){if(y(z,X)){var V=z[X];delete z[X],V()}},K=function(X){return function(){ae(X)}},H=function(X){ae(X.data)},ne=function(X){u.postMessage(D(X),i.protocol+"//"+i.host)};P&&A||(P=function(X){var V=k(arguments,1);return z[++L]=function(){d(v(X)?X:N(X),void 0,V)},a(L),L},A=function(X){delete z[X]},$?a=function(X){R.nextTick(K(X))}:B&&B.now?a=function(X){B.now(K(X))}:I&&!T?(l=(s=new I).port2,s.port1.onmessage=H,a=p(l.postMessage,l)):u.addEventListener&&v(u.postMessage)&&!u.importScripts&&i&&i.protocol!=="file:"&&!w(ne)?(a=ne,u.addEventListener("message",H,!1)):a=q in C("script")?function(X){b.appendChild(C("script")).onreadystatechange=function(){b.removeChild(this),ae(X)}}:function(X){setTimeout(K(X),0)}),n.exports={set:P,clear:A}},function(n,r,o){var i=o(55);n.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},function(n,r,o){var i=o(56),a=function(s){var l,u;this.promise=new s(function(d,p){if(l!==void 0||u!==void 0)throw TypeError("Bad Promise constructor");l=d,u=p}),this.resolve=i(l),this.reject=i(u)};n.exports.f=function(s){return new a(s)}},function(n,r,o){r.a=function(){return!1}},function(n,r,o){(function(i){o.d(r,"a",function(){return R});var a=o(1);function s(I){throw new Error("[mobx-utils] "+I)}function l(I,D){D===void 0&&(D="Illegal state"),I||s(D)}var u=function(I){return I&&I!==Object.prototype&&Object.getOwnPropertyNames(I).concat(u(Object.getPrototypeOf(I))||[])},d=function(I){return function(D){var L=u(D);return L.filter(function(z,q){return L.indexOf(z)===q})}(I).filter(function(D){return D!=="constructor"&&!~D.indexOf("__")})},p="pending",v="fulfilled",y="rejected";function w(I){switch(this.state){case p:return I.pending&&I.pending(this.value);case y:return I.rejected&&I.rejected(this.value);case v:return I.fulfilled?I.fulfilled(this.value):this.value}}function b(I,D){if(l(arguments.length<=2,"fromPromise expects up to two arguments"),l(typeof I=="function"||typeof I=="object"&&I&&typeof I.then=="function","Please pass a promise or function to fromPromise"),I.isPromiseBasedObservable===!0)return I;typeof I=="function"&&(I=new Promise(I));var L=I;I.then(Object(a.k)("observableFromPromise-resolve",function(q){L.value=q,L.state=v}),Object(a.k)("observableFromPromise-reject",function(q){L.value=q,L.state=y})),L.isPromiseBasedObservable=!0,L.case=w;var z=D&&D.state===v?D.value:void 0;return Object(a.q)(L,{value:z,state:p},{},{deep:!1}),L}(function(I){I.reject=Object(a.k)("fromPromise.reject",function(D){var L=I(Promise.reject(D));return L.state=y,L.value=D,L}),I.resolve=Object(a.k)("fromPromise.resolve",function(D){D===void 0&&(D=void 0);var L=I(Promise.resolve(D));return L.state=v,L.value=D,L})})(b||(b={}));var k=function(I,D,L,z){var q,ae=arguments.length,K=ae<3?D:z===null?z=Object.getOwnPropertyDescriptor(D,L):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(I,D,L,z);else for(var H=I.length-1;H>=0;H--)(q=I[H])&&(K=(ae<3?q(K):ae>3?q(D,L,K):q(D,L))||K);return ae>3&&K&&Object.defineProperty(D,L,K),K};(function(){function I(D,L){var z=this;Object(a.G)(function(){z.current=L,z.subscription=D.subscribe(z)})}I.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},I.prototype.next=function(D){this.current=D},I.prototype.complete=function(){this.dispose()},I.prototype.error=function(D){this.current=D,this.dispose()},k([a.C.ref],I.prototype,"current",void 0),k([a.k.bound],I.prototype,"next",null),k([a.k.bound],I.prototype,"complete",null),k([a.k.bound],I.prototype,"error",null)})();var C=function(){return C=Object.assign||function(I){for(var D,L=1,z=arguments.length;L<z;L++)for(var q in D=arguments[L])Object.prototype.hasOwnProperty.call(D,q)&&(I[q]=D[q]);return I},C.apply(this,arguments)},T=function(I,D,L,z){var q,ae=arguments.length,K=ae<3?D:z===null?z=Object.getOwnPropertyDescriptor(D,L):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(I,D,L,z);else for(var H=I.length-1;H>=0;H--)(q=I[H])&&(K=(ae<3?q(K):ae>3?q(D,L,K):q(D,L))||K);return ae>3&&K&&Object.defineProperty(D,L,K),K},$=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function I(D){var L=this;this.model=D,this.localValues=a.C.map({}),this.localComputedValues=a.C.map({}),this.isPropertyDirty=function(z){return L.localValues.has(z)},l(Object(a.A)(D),"createViewModel expects an observable object"),d(D).forEach(function(z){if(z!==a.a&&z!=="__mobxDidRunLazyInitializers"){if(l($.indexOf(z)===-1,"The propertyname "+z+" is reserved and cannot be used with viewModels"),Object(a.w)(D,z)){var q=Object(a.h)(D,z).derivation;L.localComputedValues.set(z,Object(a.m)(q.bind(L)))}var ae=Object.getOwnPropertyDescriptor(D,z),K=ae?{enumerable:ae.enumerable}:{};Object.defineProperty(L,z,C(C({},K),{configurable:!0,get:function(){return Object(a.w)(D,z)?L.localComputedValues.get(z).get():L.isPropertyDirty(z)?L.localValues.get(z):L.model[z]},set:Object(a.k)(function(H){H!==L.model[z]?L.localValues.set(z,H):L.localValues.delete(z)})}))}})}Object.defineProperty(I.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),I.prototype.submit=function(){var D=this;Object(a.B)(this.localValues).forEach(function(L){var z=D.localValues.get(L),q=D.model[L];Object(a.y)(q)?q.replace(z):Object(a.z)(q)?(q.clear(),q.merge(z)):Object(a.v)(z)||(D.model[L]=z)}),this.localValues.clear()},I.prototype.reset=function(){this.localValues.clear()},I.prototype.resetProperty=function(D){this.localValues.delete(D)},T([a.m],I.prototype,"isDirty",null),T([a.m],I.prototype,"changedValues",null),T([a.k.bound],I.prototype,"submit",null),T([a.k.bound],I.prototype,"reset",null),T([a.k.bound],I.prototype,"resetProperty",null)})();function P(I){if(!I)return"ROOT";for(var D=[];I.parent;)D.push(I.path),I=I.parent;return D.reverse().join("/")}function A(I){return Object(a.A)(I)||Object(a.y)(I)||Object(a.z)(I)}function R(I,D){var L=new WeakMap;function z(K){var H=L.get(K.object);(function(ne,X){switch(ne.type){case"add":q(ne.newValue,X,ne.name);break;case"update":ae(ne.oldValue),q(ne.newValue,X,ne.name||""+ne.index);break;case"remove":case"delete":ae(ne.oldValue);break;case"splice":ne.removed.map(ae),ne.added.forEach(function(se,he){return q(se,X,""+(ne.index+he))});for(var V=ne.index+ne.addedCount;V<ne.object.length;V++)if(A(ne.object[V])){var G=L.get(ne.object[V]);G&&(G.path=""+V)}}})(K,H),D(K,P(H),I)}function q(K,H,ne){if(A(K)){var X=L.get(K);if(X){if(X.parent!==H||X.path!==ne)throw new Error("The same observable object cannot appear twice in the same tree, trying to assign it to '"+P(H)+"/"+ne+"', but it already exists at '"+P(X.parent)+"/"+X.path+"'")}else{var V={parent:H,path:ne,dispose:Object(a.D)(K,z)};L.set(K,V),Object(a.p)(K).forEach(function(G){var se=G[0];return q(G[1],V,se)})}}}function ae(K){if(A(K)){var H=L.get(K);if(!H)return;L.delete(K),H.dispose(),Object(a.L)(K).forEach(ae)}}return q(I,void 0,""),function(){ae(I)}}var B,N=(B=function(I,D){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,z){L.__proto__=z}||function(L,z){for(var q in z)z.hasOwnProperty(q)&&(L[q]=z[q])},B(I,D)},function(I,D){function L(){this.constructor=I}B(I,D),I.prototype=D===null?Object.create(D):(L.prototype=D.prototype,new L)});(function(I){function D(L,z,q){var ae=q===void 0?{}:q,K=ae.name,H=K===void 0?"ogm"+(1e3*Math.random()|0):K,ne=ae.keyToName,X=ne===void 0?function(se){return""+se}:ne,V=I.call(this)||this;V._keyToName=X,V._groupBy=z,V._ogmInfoKey=Symbol("ogmInfo"+H),V._base=L;for(var G=0;G<L.length;G++)V._addItem(L[G]);return V._disposeBaseObserver=Object(a.D)(V._base,function(se){if(se.type==="splice")Object(a.J)(function(){for(var he=0,pe=se.removed;he<pe.length;he++){var Be=pe[he];V._removeItem(Be)}for(var De=0,ze=se.added;De<ze.length;De++){var $e=ze[De];V._addItem($e)}});else{if(se.type!=="update")throw new Error("illegal state");Object(a.J)(function(){V._removeItem(se.oldValue),V._addItem(se.newValue)})}}),V}N(D,I),D.prototype.clear=function(){throw new Error("not supported")},D.prototype.delete=function(L){throw new Error("not supported")},D.prototype.set=function(L,z){throw new Error("not supported")},D.prototype.dispose=function(){this._disposeBaseObserver();for(var L=0;L<this._base.length;L++){var z=this._base[L];z[this._ogmInfoKey].reaction(),delete z[this._ogmInfoKey]}},D.prototype._getGroupArr=function(L){var z=I.prototype.get.call(this,L);return z===void 0&&(z=Object(a.C)([],{name:"GroupArray["+this._keyToName(L)+"]",deep:!1}),I.prototype.set.call(this,L,z)),z},D.prototype._removeFromGroupArr=function(L,z){var q=I.prototype.get.call(this,L);q.length===1?I.prototype.delete.call(this,L):(z===q.length-1||(q[z]=q[q.length-1],q[z][this._ogmInfoKey].groupArrIndex=z),q.length--)},D.prototype._addItem=function(L){var z=this,q=this._groupBy(L),ae=this._getGroupArr(q),K={groupByValue:q,groupArrIndex:ae.length,reaction:Object(a.F)(function(){return z._groupBy(L)},function(H,ne){var X=L[z._ogmInfoKey];z._removeFromGroupArr(X.groupByValue,X.groupArrIndex);var V=z._getGroupArr(H),G=V.length;V.push(L),X.groupByValue=H,X.groupArrIndex=G})};Object.defineProperty(L,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:K}),ae.push(L)},D.prototype._removeItem=function(L){var z=L[this._ogmInfoKey];this._removeFromGroupArr(z.groupByValue,z.groupArrIndex),z.reaction(),delete L[this._ogmInfoKey]}})(a.b),function(){function I(D,L){this.base=D,this.args=L,this.closestIdx=0,this.isDisposed=!1;for(var z=this.closest=this.root=D,q=0;q<this.args.length-1&&(z=z.get(L[q]));q++)this.closest=z;this.closestIdx=q}return I.prototype.exists=function(){this.assertNotDisposed();var D=this.args.length;return this.closestIdx>=D-1&&this.closest.has(this.args[D-1])},I.prototype.get=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");return this.closest.get(this.args[this.args.length-1])},I.prototype.set=function(D){this.assertNotDisposed();for(var L=this.args.length,z=this.closest,q=this.closestIdx;q<L-1;q++){var ae=new Map;z.set(this.args[q],ae),z=ae}this.closestIdx=L-1,this.closest=z,z.set(this.args[L-1],D)},I.prototype.delete=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var D=this.args.length;this.closest.delete(this.args[D-1]);for(var L=this.root,z=[L],q=0;q<D-1;q++)L=L.get(this.args[q]),z.push(L);for(q=z.length-1;q>0;q--)z[q].size===0&&z[q-1].delete(this.args[q-1]);this.isDisposed=!0},I.prototype.assertNotDisposed=function(){if(this.isDisposed)throw new Error("Concurrent modification exception")},I}(),Promise.resolve(),typeof queueMicrotask!="undefined"||i!==void 0&&i.nextTick}).call(this,o(163))},function(n,r,o){var i;(function(a,s,l){if(a){for(var u,d={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"},p={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},v={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},y={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},w=1;w<20;++w)d[111+w]="f"+w;for(w=0;w<=9;++w)d[w+96]=w.toString();A.prototype.bind=function(R,B,N){var I=this;return R=R instanceof Array?R:[R],I._bindMultiple.call(I,R,B,N),I},A.prototype.unbind=function(R,B){return this.bind.call(this,R,function(){},B)},A.prototype.trigger=function(R,B){var N=this;return N._directMap[R+":"+B]&&N._directMap[R+":"+B]({},R),N},A.prototype.reset=function(){var R=this;return R._callbacks={},R._directMap={},R},A.prototype.stopCallback=function(R,B){if((" "+B.className+" ").indexOf(" mousetrap ")>-1||P(B,this.target))return!1;if("composedPath"in R&&typeof R.composedPath=="function"){var N=R.composedPath()[0];N!==R.target&&(B=N)}return B.tagName=="INPUT"||B.tagName=="SELECT"||B.tagName=="TEXTAREA"||B.isContentEditable},A.prototype.handleKey=function(){var R=this;return R._handleKey.apply(R,arguments)},A.addKeycodes=function(R){for(var B in R)R.hasOwnProperty(B)&&(d[B]=R[B]);u=null},A.init=function(){var R=A(s);for(var B in R)B.charAt(0)!=="_"&&(A[B]=function(N){return function(){return R[N].apply(R,arguments)}}(B))},A.init(),a.Mousetrap=A,n.exports&&(n.exports=A),(i=function(){return A}.call(r,o,r,n))===void 0||(n.exports=i)}function b(R,B,N){R.addEventListener?R.addEventListener(B,N,!1):R.attachEvent("on"+B,N)}function k(R){if(R.type=="keypress"){var B=String.fromCharCode(R.which);return R.shiftKey||(B=B.toLowerCase()),B}return d[R.which]?d[R.which]:p[R.which]?p[R.which]:String.fromCharCode(R.which).toLowerCase()}function C(R){return R=="shift"||R=="ctrl"||R=="alt"||R=="meta"}function T(R,B,N){return N||(N=function(){if(!u)for(var I in u={},d)I>95&&I<112||d.hasOwnProperty(I)&&(u[d[I]]=I);return u}()[R]?"keydown":"keypress"),N=="keypress"&&B.length&&(N="keydown"),N}function $(R,B){var N,I,D,L=[];for(N=function(z){return z==="+"?["+"]:(z=z.replace(/\+{2}/g,"+plus")).split("+")}(R),D=0;D<N.length;++D)I=N[D],y[I]&&(I=y[I]),B&&B!="keypress"&&v[I]&&(I=v[I],L.push("shift")),C(I)&&L.push(I);return{key:I,modifiers:L,action:B=T(I,L,B)}}function P(R,B){return R!==null&&R!==s&&(R===B||P(R.parentNode,B))}function A(R){var B=this;if(R=R||s,!(B instanceof A))return new A(R);B.target=R,B._callbacks={},B._directMap={};var N,I={},D=!1,L=!1,z=!1;function q(V){V=V||{};var G,se=!1;for(G in I)V[G]?se=!0:I[G]=0;se||(z=!1)}function ae(V,G,se,he,pe,Be){var De,ze,$e,_e,me=[],Re=se.type;if(!B._callbacks[V])return[];for(Re=="keyup"&&C(V)&&(G=[V]),De=0;De<B._callbacks[V].length;++De)if(ze=B._callbacks[V][De],(he||!ze.seq||I[ze.seq]==ze.level)&&Re==ze.action&&(Re=="keypress"&&!se.metaKey&&!se.ctrlKey||($e=G,_e=ze.modifiers,$e.sort().join(",")===_e.sort().join(",")))){var we=!he&&ze.combo==pe,fe=he&&ze.seq==he&&ze.level==Be;(we||fe)&&B._callbacks[V].splice(De,1),me.push(ze)}return me}function K(V,G,se,he){B.stopCallback(G,G.target||G.srcElement,se,he)||V(G,se)===!1&&(function(pe){pe.preventDefault?pe.preventDefault():pe.returnValue=!1}(G),function(pe){pe.stopPropagation?pe.stopPropagation():pe.cancelBubble=!0}(G))}function H(V){typeof V.which!="number"&&(V.which=V.keyCode);var G=k(V);G&&(V.type!="keyup"||D!==G?B.handleKey(G,function(se){var he=[];return se.shiftKey&&he.push("shift"),se.altKey&&he.push("alt"),se.ctrlKey&&he.push("ctrl"),se.metaKey&&he.push("meta"),he}(V),V):D=!1)}function ne(V,G,se,he){function pe($e){return function(){z=$e,++I[V],clearTimeout(N),N=setTimeout(q,1e3)}}function Be($e){K(se,$e,V),he!=="keyup"&&(D=k($e)),setTimeout(q,10)}I[V]=0;for(var De=0;De<G.length;++De){var ze=De+1===G.length?Be:pe(he||$(G[De+1]).action);X(G[De],ze,he,V,De)}}function X(V,G,se,he,pe){B._directMap[V+":"+se]=G;var Be,De=(V=V.replace(/\s+/g," ")).split(" ");De.length>1?ne(V,De,G,se):(Be=$(V,se),B._callbacks[Be.key]=B._callbacks[Be.key]||[],ae(Be.key,Be.modifiers,{type:Be.action},he,V,pe),B._callbacks[Be.key][he?"unshift":"push"]({callback:G,modifiers:Be.modifiers,action:Be.action,seq:he,level:pe,combo:V}))}B._handleKey=function(V,G,se){var he,pe=ae(V,G,se),Be={},De=0,ze=!1;for(he=0;he<pe.length;++he)pe[he].seq&&(De=Math.max(De,pe[he].level));for(he=0;he<pe.length;++he)if(pe[he].seq){if(pe[he].level!=De)continue;ze=!0,Be[pe[he].seq]=1,K(pe[he].callback,se,pe[he].combo,pe[he].seq)}else ze||K(pe[he].callback,se,pe[he].combo);var $e=se.type=="keypress"&&L;se.type!=z||C(V)||$e||q(Be),L=ze&&se.type=="keydown"},B._bindMultiple=function(V,G,se){for(var he=0;he<V.length;++he)X(V[he],G,se)},b(R,"keypress",H),b(R,"keydown",H),b(R,"keyup",H)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)},function(n,r,o){var i=o(7),a=o(34),s=o(30),l=o(33),u=i.TypeError;n.exports=function(d,p){var v,y;if(p==="string"&&s(v=d.toString)&&!l(y=a(v,d))||s(v=d.valueOf)&&!l(y=a(v,d))||p!=="string"&&s(v=d.toString)&&!l(y=a(v,d)))return y;throw u("Can't convert object to primitive value")}},function(n,r,o){var i=o(7),a=o(30),s=o(92),l=i.WeakMap;n.exports=a(l)&&/native code/.test(s(l))},function(n,r,o){var i=o(36),a=o(38),s=o(32),l=o(41),u=o(77);n.exports=i?Object.defineProperties:function(d,p){s(d);for(var v,y=l(p),w=u(p),b=w.length,k=0;b>k;)a.f(d,v=w[k++],y[v]);return d}},function(n,r,o){var i=o(7);n.exports=i},function(n,r,o){var i=o(7),a=o(96),s=o(99),l=o(33),u=o(28)("species"),d=i.Array;n.exports=function(p){var v;return a(p)&&(v=p.constructor,(s(v)&&(v===d||a(v.prototype))||l(v)&&(v=v[u])===null)&&(v=void 0)),v===void 0?d:v}},function(n,r,o){var i=o(113),a=o(97);n.exports=i?{}.toString:function(){return"[object "+a(this)+"]"}},function(n,r,o){var i=o(142).IteratorPrototype,a=o(60),s=o(69),l=o(78),u=o(80),d=function(){return this};n.exports=function(p,v,y,w){var b=v+" Iterator";return p.prototype=a(i,{next:s(+!w,y)}),l(p,b,!1,!0),u[b]=d,p}},function(n,r,o){var i=o(7),a=o(30),s=i.String,l=i.TypeError;n.exports=function(u){if(typeof u=="object"||a(u))return u;throw l("Can't set "+s(u)+" as a prototype")}},function(n,r,o){var i=o(16),a=o(7),s=o(15),l=o(95),u=o(42),d=o(144),p=o(117),v=o(119),y=o(30),w=o(33),b=o(18),k=o(120),C=o(78),T=o(148);n.exports=function($,P,A){var R=$.indexOf("Map")!==-1,B=$.indexOf("Weak")!==-1,N=R?"set":"add",I=a[$],D=I&&I.prototype,L=I,z={},q=function(V){var G=s(D[V]);u(D,V,V=="add"?function(se){return G(this,se===0?0:se),this}:V=="delete"?function(se){return!(B&&!w(se))&&G(this,se===0?0:se)}:V=="get"?function(se){return B&&!w(se)?void 0:G(this,se===0?0:se)}:V=="has"?function(se){return!(B&&!w(se))&&G(this,se===0?0:se)}:function(se,he){return G(this,se===0?0:se,he),this})};if(l($,!y(I)||!(B||D.forEach&&!b(function(){new I().entries().next()}))))L=A.getConstructor(P,$,R,N),d.enable();else if(l($,!0)){var ae=new L,K=ae[N](B?{}:-0,1)!=ae,H=b(function(){ae.has(1)}),ne=k(function(V){new I(V)}),X=!B&&b(function(){for(var V=new I,G=5;G--;)V[N](G,G);return!V.has(-0)});ne||((L=P(function(V,G){v(V,D);var se=T(new I,V,L);return G!=null&&p(G,se[N],{that:se,AS_ENTRIES:R}),se})).prototype=D,D.constructor=L),(H||X)&&(q("delete"),q("has"),R&&q("get")),(X||K)&&q(N),B&&D.clear&&delete D.clear}return z[$]=L,i({global:!0,forced:L!=I},z),C(L,$),B||A.setStrong(L,$,R),L}},function(n,r,o){var i=o(18),a=o(33),s=o(51),l=o(184),u=Object.isExtensible,d=i(function(){});n.exports=d||l?function(p){return!!a(p)&&(!l||s(p)!="ArrayBuffer")&&(!u||u(p))}:u},function(n,r,o){var i=o(18);n.exports=i(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},function(n,r,o){var i=o(18);n.exports=!i(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(n,r,o){var i=o(38).f,a=o(60),s=o(149),l=o(63),u=o(119),d=o(117),p=o(116),v=o(150),y=o(36),w=o(144).fastKey,b=o(58),k=b.set,C=b.getterFor;n.exports={getConstructor:function(T,$,P,A){var R=T(function(L,z){u(L,B),k(L,{type:$,index:a(null),first:void 0,last:void 0,size:0}),y||(L.size=0),z!=null&&d(z,L[A],{that:L,AS_ENTRIES:P})}),B=R.prototype,N=C($),I=function(L,z,q){var ae,K,H=N(L),ne=D(L,z);return ne?ne.value=q:(H.last=ne={index:K=w(z,!0),key:z,value:q,previous:ae=H.last,next:void 0,removed:!1},H.first||(H.first=ne),ae&&(ae.next=ne),y?H.size++:L.size++,K!=="F"&&(H.index[K]=ne)),L},D=function(L,z){var q,ae=N(L),K=w(z);if(K!=="F")return ae.index[K];for(q=ae.first;q;q=q.next)if(q.key==z)return q};return s(B,{clear:function(){for(var L=N(this),z=L.index,q=L.first;q;)q.removed=!0,q.previous&&(q.previous=q.previous.next=void 0),delete z[q.index],q=q.next;L.first=L.last=void 0,y?L.size=0:this.size=0},delete:function(L){var z=this,q=N(z),ae=D(z,L);if(ae){var K=ae.next,H=ae.previous;delete q.index[ae.index],ae.removed=!0,H&&(H.next=K),K&&(K.previous=H),q.first==ae&&(q.first=K),q.last==ae&&(q.last=H),y?q.size--:z.size--}return!!ae},forEach:function(L){for(var z,q=N(this),ae=l(L,arguments.length>1?arguments[1]:void 0);z=z?z.next:q.first;)for(ae(z.value,z.key,this);z&&z.removed;)z=z.previous},has:function(L){return!!D(this,L)}}),s(B,P?{get:function(L){var z=D(this,L);return z&&z.value},set:function(L,z){return I(this,L===0?0:L,z)}}:{add:function(L){return I(this,L=L===0?0:L,L)}}),y&&i(B,"size",{get:function(){return N(this).size}}),R},setStrong:function(T,$,P){var A=$+" Iterator",R=C($),B=C(A);p(T,$,function(N,I){k(this,{type:A,target:N,state:R(N),kind:I,last:void 0})},function(){for(var N=B(this),I=N.kind,D=N.last;D&&D.removed;)D=D.previous;return N.target&&(N.last=D=D?D.next:N.state.first)?I=="keys"?{value:D.key,done:!1}:I=="values"?{value:D.value,done:!1}:{value:[D.key,D.value],done:!1}:(N.target=void 0,{value:void 0,done:!0})},P?"entries":"values",!P,!0),v($)}}},function(n,r,o){var i=o(79).forEach,a=o(121)("forEach");n.exports=a?[].forEach:function(s){return i(this,s,arguments.length>1?arguments[1]:void 0)}},function(n,r,o){var i=o(7),a=o(63),s=o(34),l=o(40),u=o(189),d=o(145),p=o(99),v=o(45),y=o(62),w=o(146),b=o(118),k=i.Array;n.exports=function(C){var T=l(C),$=p(this),P=arguments.length,A=P>1?arguments[1]:void 0,R=A!==void 0;R&&(A=a(A,P>2?arguments[2]:void 0));var B,N,I,D,L,z,q=b(T),ae=0;if(!q||this==k&&d(q))for(B=v(T),N=$?new this(B):k(B);B>ae;ae++)z=R?A(T[ae],ae):T[ae],y(N,ae,z);else for(L=(D=w(T,q)).next,N=$?new this:[];!(I=s(L,D)).done;ae++)z=R?u(D,A,[I.value,ae],!0):I.value,y(N,ae,z);return N.length=ae,N}},function(n,r,o){var i=o(32),a=o(147);n.exports=function(s,l,u,d){try{return d?l(i(u)[0],u[1]):l(u)}catch(p){a(s,"throw",p)}}},function(n,r,o){var i=o(18),a=o(7).RegExp;n.exports=i(function(){var s=a(".","s");return!(s.dotAll&&s.exec(`
  123. `)&&s.flags==="s")})},function(n,r,o){var i=o(18),a=o(7).RegExp;n.exports=i(function(){var s=a("(?<a>b)","g");return s.exec("b").groups.a!=="b"||"b".replace(s,"$<a>c")!=="bc"})},function(n,r,o){var i=o(16),a=o(15),s=o(56),l=o(40),u=o(45),d=o(39),p=o(18),v=o(193),y=o(121),w=o(194),b=o(195),k=o(70),C=o(196),T=[],$=a(T.sort),P=a(T.push),A=p(function(){T.sort(void 0)}),R=p(function(){T.sort(null)}),B=y("sort"),N=!p(function(){if(k)return k<70;if(!(w&&w>3)){if(b)return!0;if(C)return C<603;var I,D,L,z,q="";for(I=65;I<76;I++){switch(D=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:L=3;break;case 68:case 71:L=4;break;default:L=2}for(z=0;z<47;z++)T.push({k:D+z,v:L})}for(T.sort(function(ae,K){return K.v-ae.v}),z=0;z<T.length;z++)D=T[z].k.charAt(0),q.charAt(q.length-1)!==D&&(q+=D);return q!=="DGBEFHACIJK"}});i({target:"Array",proto:!0,forced:A||!R||!B||!N},{sort:function(I){I!==void 0&&s(I);var D=l(this);if(N)return I===void 0?$(D):$(D,I);var L,z,q=[],ae=u(D);for(z=0;z<ae;z++)z in D&&P(q,D[z]);for(v(q,function(K){return function(H,ne){return ne===void 0?-1:H===void 0?1:K!==void 0?+K(H,ne)||0:d(H)>d(ne)?1:-1}}(I)),L=q.length,z=0;z<L;)D[z]=q[z++];for(;z<ae;)delete D[z++];return D}})},function(n,r,o){var i=o(114),a=Math.floor,s=function(d,p){var v=d.length,y=a(v/2);return v<8?l(d,p):u(d,s(i(d,0,y),p),s(i(d,y),p),p)},l=function(d,p){for(var v,y,w=d.length,b=1;b<w;){for(y=b,v=d[b];y&&p(d[y-1],v)>0;)d[y]=d[--y];y!==b++&&(d[y]=v)}return d},u=function(d,p,v,y){for(var w=p.length,b=v.length,k=0,C=0;k<w||C<b;)d[k+C]=k<w&&C<b?y(p[k],v[C])<=0?p[k++]:v[C++]:k<w?p[k++]:v[C++];return d};n.exports=s},function(n,r,o){var i=o(55).match(/firefox\/(\d+)/i);n.exports=!!i&&+i[1]},function(n,r,o){var i=o(55);n.exports=/MSIE|Trident/.test(i)},function(n,r,o){var i=o(55).match(/AppleWebKit\/(\d+)\./);n.exports=!!i&&+i[1]},function(n,r,o){var i=o(7),a=o(159),s=i.TypeError;n.exports=function(l){if(a(l))throw s("The method doesn't accept regular expressions");return l}},function(n,r,o){var i=o(28)("match");n.exports=function(a){var s=/./;try{"/./"[a](s)}catch{try{return s[i]=!1,"/./"[a](s)}catch{}}return!1}},function(n,r,o){o(16)({target:"Number",stat:!0},{isNaN:function(i){return i!=i}})},function(n,r,o){var i=o(73).PROPER,a=o(18),s=o(162);n.exports=function(l){return a(function(){return!!s[l]()||"\u200B\x85\u180E"[l]()!=="\u200B\x85\u180E"||i&&s[l].name!==l})}},function(n,r,o){var i=o(15),a=o(40),s=Math.floor,l=i("".charAt),u=i("".replace),d=i("".slice),p=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,v=/\$([$&'`]|\d{1,2})/g;n.exports=function(y,w,b,k,C,T){var $=b+y.length,P=k.length,A=v;return C!==void 0&&(C=a(C),A=p),u(T,A,function(R,B){var N;switch(l(B,0)){case"$":return"$";case"&":return y;case"`":return d(w,0,b);case"'":return d(w,$);case"<":N=C[d(B,1,-1)];break;default:var I=+B;if(I===0)return R;if(I>P){var D=s(I/10);return D===0?R:D<=P?k[D-1]===void 0?l(B,1):k[D-1]+l(B,1):R}N=k[I-1]}return N===void 0?"":N})}},function(n,r,o){var i=o(36),a=o(15),s=o(34),l=o(18),u=o(77),d=o(112),p=o(84),v=o(40),y=o(85),w=Object.assign,b=Object.defineProperty,k=a([].concat);n.exports=!w||l(function(){if(i&&w({b:1},w(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var C={},T={},$=Symbol(),P="abcdefghijklmnopqrst";return C[$]=7,P.split("").forEach(function(A){T[A]=A}),w({},C)[$]!=7||u(w({},T)).join("")!=P})?function(C,T){for(var $=v(C),P=arguments.length,A=1,R=d.f,B=p.f;P>A;)for(var N,I=y(arguments[A++]),D=R?k(u(I),R(I)):u(I),L=D.length,z=0;L>z;)N=D[z++],i&&!s(B,I,N)||($[N]=I[N]);return $}:w},function(n,r,o){var i=o(7),a=o(15),s=o(56),l=o(33),u=o(35),d=o(98),p=i.Function,v=a([].concat),y=a([].join),w={},b=function(k,C,T){if(!u(w,C)){for(var $=[],P=0;P<C;P++)$[P]="a["+P+"]";w[C]=p("C,a","return new C("+y($,",")+")")}return w[C](k,T)};n.exports=p.bind||function(k){var C=s(this),T=C.prototype,$=d(arguments,1),P=function(){var A=v($,d(arguments));return this instanceof P?b(C,A.length,A):C.apply(k,A)};return l(T)&&(P.prototype=T),P}},function(n,r,o){var i=o(35);n.exports=function(a){return a!==void 0&&(i(a,"value")||i(a,"writable"))}},function(n,r,o){var i=o(15),a=o(44),s=o(39),l=/"/g,u=i("".replace);n.exports=function(d,p,v,y){var w=s(a(d)),b="<"+p;return v!==""&&(b+=" "+v+'="'+u(s(y),l,"&quot;")+'"'),b+">"+w+"</"+p+">"}},function(n,r,o){var i=o(18);n.exports=function(a){return i(function(){var s=""[a]('"');return s!==s.toLowerCase()||s.split('"').length>3})}},function(n,r,o){var i,a,s,l,u=o(16),d=o(71),p=o(7),v=o(46),y=o(34),w=o(208),b=o(42),k=o(149),C=o(102),T=o(78),$=o(150),P=o(56),A=o(30),R=o(33),B=o(119),N=o(92),I=o(117),D=o(120),L=o(164),z=o(168).set,q=o(209),ae=o(212),K=o(213),H=o(170),ne=o(214),X=o(58),V=o(95),G=o(28),se=o(215),he=o(128),pe=o(70),Be=G("species"),De="Promise",ze=X.getterFor(De),$e=X.set,_e=X.getterFor(De),me=w&&w.prototype,Re=w,we=me,fe=p.TypeError,oe=p.document,ke=p.process,We=H.f,et=We,Ve=!!(oe&&oe.createEvent&&p.dispatchEvent),Me=A(p.PromiseRejectionEvent),Ke="unhandledrejection",be=!1,qe=V(De,function(){var ye=N(Re),Le=ye!==String(Re);if(!Le&&pe===66||d&&!we.finally)return!0;if(pe>=51&&/native code/.test(ye))return!1;var xe=new Re(function(rt){rt(1)}),Ue=function(rt){rt(function(){},function(){})};return(xe.constructor={})[Be]=Ue,!(be=xe.then(function(){})instanceof Ue)||!Le&&se&&!Me}),ct=qe||!D(function(ye){Re.all(ye).catch(function(){})}),Je=function(ye){var Le;return!(!R(ye)||!A(Le=ye.then))&&Le},Xe=function(ye,Le){if(!ye.notified){ye.notified=!0;var xe=ye.reactions;q(function(){for(var Ue=ye.value,rt=ye.state==1,Ft=0;xe.length>Ft;){var Vn,ot,Lt,wn=xe[Ft++],Nt=rt?wn.ok:wn.fail,Xt=wn.resolve,Ht=wn.reject,Sn=wn.domain;try{Nt?(rt||(ye.rejection===2&&Et(ye),ye.rejection=1),Nt===!0?Vn=Ue:(Sn&&Sn.enter(),Vn=Nt(Ue),Sn&&(Sn.exit(),Lt=!0)),Vn===wn.promise?Ht(fe("Promise-chain cycle")):(ot=Je(Vn))?y(ot,Vn,Xt,Ht):Xt(Vn)):Ht(Ue)}catch(Dr){Sn&&!Lt&&Sn.exit(),Ht(Dr)}}ye.reactions=[],ye.notified=!1,Le&&!ye.rejection&&Ct(ye)})}},gt=function(ye,Le,xe){var Ue,rt;Ve?((Ue=oe.createEvent("Event")).promise=Le,Ue.reason=xe,Ue.initEvent(ye,!1,!0),p.dispatchEvent(Ue)):Ue={promise:Le,reason:xe},!Me&&(rt=p["on"+ye])?rt(Ue):ye===Ke&&K("Unhandled promise rejection",xe)},Ct=function(ye){y(z,p,function(){var Le,xe=ye.facade,Ue=ye.value;if(Zt(ye)&&(Le=ne(function(){he?ke.emit("unhandledRejection",Ue,xe):gt(Ke,xe,Ue)}),ye.rejection=he||Zt(ye)?2:1,Le.error))throw Le.value})},Zt=function(ye){return ye.rejection!==1&&!ye.parent},Et=function(ye){y(z,p,function(){var Le=ye.facade;he?ke.emit("rejectionHandled",Le):gt("rejectionhandled",Le,ye.value)})},ln=function(ye,Le,xe){return function(Ue){ye(Le,Ue,xe)}},Ee=function(ye,Le,xe){ye.done||(ye.done=!0,xe&&(ye=xe),ye.value=Le,ye.state=2,Xe(ye,!0))},Ze=function(ye,Le,xe){if(!ye.done){ye.done=!0,xe&&(ye=xe);try{if(ye.facade===Le)throw fe("Promise can't be resolved itself");var Ue=Je(Le);Ue?q(function(){var rt={done:!1};try{y(Ue,Le,ln(Ze,rt,ye),ln(Ee,rt,ye))}catch(Ft){Ee(rt,Ft,ye)}}):(ye.value=Le,ye.state=1,Xe(ye,!1))}catch(rt){Ee({done:!1},rt,ye)}}};if(qe&&(we=(Re=function(ye){B(this,we),P(ye),y(i,this);var Le=ze(this);try{ye(ln(Ze,Le),ln(Ee,Le))}catch(xe){Ee(Le,xe)}}).prototype,(i=function(ye){$e(this,{type:De,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=k(we,{then:function(ye,Le){var xe=_e(this),Ue=xe.reactions,rt=We(L(this,Re));return rt.ok=!A(ye)||ye,rt.fail=A(Le)&&Le,rt.domain=he?ke.domain:void 0,xe.parent=!0,Ue[Ue.length]=rt,xe.state!=0&&Xe(xe,!1),rt.promise},catch:function(ye){return this.then(void 0,ye)}}),a=function(){var ye=new i,Le=ze(ye);this.promise=ye,this.resolve=ln(Ze,Le),this.reject=ln(Ee,Le)},H.f=We=function(ye){return ye===Re||ye===s?new a(ye):et(ye)},!d&&A(w)&&me!==Object.prototype)){l=me.then,be||(b(me,"then",function(ye,Le){var xe=this;return new Re(function(Ue,rt){y(l,xe,Ue,rt)}).then(ye,Le)},{unsafe:!0}),b(me,"catch",we.catch,{unsafe:!0}));try{delete me.constructor}catch{}C&&C(me,we)}u({global:!0,wrap:!0,forced:qe},{Promise:Re}),T(Re,De,!1,!0),$(De),s=v(De),u({target:De,stat:!0,forced:qe},{reject:function(ye){var Le=We(this);return y(Le.reject,void 0,ye),Le.promise}}),u({target:De,stat:!0,forced:d||qe},{resolve:function(ye){return ae(d&&this===s?Re:this,ye)}}),u({target:De,stat:!0,forced:ct},{all:function(ye){var Le=this,xe=We(Le),Ue=xe.resolve,rt=xe.reject,Ft=ne(function(){var Vn=P(Le.resolve),ot=[],Lt=0,wn=1;I(ye,function(Nt){var Xt=Lt++,Ht=!1;wn++,y(Vn,Le,Nt).then(function(Sn){Ht||(Ht=!0,ot[Xt]=Sn,--wn||Ue(ot))},rt)}),--wn||Ue(ot)});return Ft.error&&rt(Ft.value),xe.promise},race:function(ye){var Le=this,xe=We(Le),Ue=xe.reject,rt=ne(function(){var Ft=P(Le.resolve);I(ye,function(Vn){y(Ft,Le,Vn).then(xe.resolve,Ue)})});return rt.error&&Ue(rt.value),xe.promise}})},function(n,r,o){var i=o(7);n.exports=i.Promise},function(n,r,o){var i,a,s,l,u,d,p,v,y=o(7),w=o(63),b=o(50).f,k=o(168).set,C=o(169),T=o(210),$=o(211),P=o(128),A=y.MutationObserver||y.WebKitMutationObserver,R=y.document,B=y.process,N=y.Promise,I=b(y,"queueMicrotask"),D=I&&I.value;D||(i=function(){var L,z;for(P&&(L=B.domain)&&L.exit();a;){z=a.fn,a=a.next;try{z()}catch(q){throw a?l():s=void 0,q}}s=void 0,L&&L.enter()},C||P||$||!A||!R?!T&&N&&N.resolve?((p=N.resolve(void 0)).constructor=N,v=w(p.then,p),l=function(){v(i)}):P?l=function(){B.nextTick(i)}:(k=w(k,y),l=function(){k(i)}):(u=!0,d=R.createTextNode(""),new A(i).observe(d,{characterData:!0}),l=function(){d.data=u=!u})),n.exports=D||function(L){var z={fn:L,next:void 0};s&&(s.next=z),a||(a=z,l()),s=z}},function(n,r,o){var i=o(55),a=o(7);n.exports=/ipad|iphone|ipod/i.test(i)&&a.Pebble!==void 0},function(n,r,o){var i=o(55);n.exports=/web0s(?!.*chrome)/i.test(i)},function(n,r,o){var i=o(32),a=o(33),s=o(170);n.exports=function(l,u){if(i(l),a(u)&&u.constructor===l)return u;var d=s.f(l);return(0,d.resolve)(u),d.promise}},function(n,r,o){var i=o(7);n.exports=function(a,s){var l=i.console;l&&l.error&&(arguments.length==1?l.error(a):l.error(a,s))}},function(n,r){n.exports=function(o){try{return{error:!1,value:o()}}catch(i){return{error:!0,value:i}}}},function(n,r){n.exports=typeof window=="object"},function(n,r,o){var i=o(40),a=o(75),s=o(45);n.exports=function(l){for(var u=i(this),d=s(u),p=arguments.length,v=a(p>1?arguments[1]:void 0,d),y=p>2?arguments[2]:void 0,w=y===void 0?d:a(y,d);w>v;)u[v++]=l;return u}},function(n,r,o){var i=o(16),a=o(7),s=o(15),l=o(59),u=o(160),d=o(218),p=o(18),v=a.RangeError,y=a.String,w=Math.floor,b=s(d),k=s("".slice),C=s(1 .toFixed),T=function(R,B,N){return B===0?N:B%2==1?T(R,B-1,N*R):T(R*R,B/2,N)},$=function(R,B,N){for(var I=-1,D=N;++I<6;)D+=B*R[I],R[I]=D%1e7,D=w(D/1e7)},P=function(R,B){for(var N=6,I=0;--N>=0;)I+=R[N],R[N]=w(I/B),I=I%B*1e7},A=function(R){for(var B=6,N="";--B>=0;)if(N!==""||B===0||R[B]!==0){var I=y(R[B]);N=N===""?I:N+b("0",7-I.length)+I}return N};i({target:"Number",proto:!0,forced:p(function(){return C(8e-5,3)!=="0.000"||C(.9,0)!=="1"||C(1.255,2)!=="1.25"||C(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!p(function(){C({})})},{toFixed:function(R){var B,N,I,D,L=u(this),z=l(R),q=[0,0,0,0,0,0],ae="",K="0";if(z<0||z>20)throw v("Incorrect fraction digits");if(L!=L)return"NaN";if(L<=-1e21||L>=1e21)return y(L);if(L<0&&(ae="-",L=-L),L>1e-21)if(N=(B=function(H){for(var ne=0,X=H;X>=4096;)ne+=12,X/=4096;for(;X>=2;)ne+=1,X/=2;return ne}(L*T(2,69,1))-69)<0?L*T(2,-B,1):L/T(2,B,1),N*=4503599627370496,(B=52-B)>0){for($(q,0,N),I=z;I>=7;)$(q,1e7,0),I-=7;for($(q,T(10,I,1),0),I=B-1;I>=23;)P(q,1<<23),I-=23;P(q,1<<I),$(q,1,1),P(q,2),K=A(q)}else $(q,0,N),$(q,1<<-B,0),K=A(q)+b("0",z);return K=z>0?ae+((D=K.length)<=z?"0."+b("0",z-D)+K:k(K,0,D-z)+"."+k(K,D-z)):ae+K}})},function(n,r,o){var i=o(7),a=o(59),s=o(39),l=o(44),u=i.RangeError;n.exports=function(d){var p=s(l(this)),v="",y=a(d);if(y<0||y==1/0)throw u("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(p+=p))1&y&&(v+=p);return v}},function(n,r,o){var i=o(36),a=o(15),s=o(77),l=o(41),u=a(o(84).f),d=a([].push),p=function(v){return function(y){for(var w,b=l(y),k=s(b),C=k.length,T=0,$=[];C>T;)w=k[T++],i&&!u(b,w)||d($,v?[w,b[w]]:b[w]);return $}};n.exports={entries:p(!0),values:p(!1)}},function(n,r){n.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children||(o.children=[]),Object.defineProperty(o,"loaded",{enumerable:!0,get:function(){return o.l}}),Object.defineProperty(o,"id",{enumerable:!0,get:function(){return o.i}}),o.webpackPolyfill=1),o}},function(n,r,o){o.r(r),o.d(r,"observer",function(){return tc}),o.d(r,"LogicFlow",function(){return d$}),o.d(r,"h",function(){return be.g}),o.d(r,"LogicFlowUtil",function(){return i}),o.d(r,"BaseNode",function(){return Gf}),o.d(r,"RectNode",function(){return rP}),o.d(r,"CircleNode",function(){return sP}),o.d(r,"PolygonNode",function(){return dP}),o.d(r,"DiamondNode",function(){return vP}),o.d(r,"EllipseNode",function(){return OP}),o.d(r,"TextNode",function(){return xP}),o.d(r,"HtmlNode",function(){return TP}),o.d(r,"BaseEdge",function(){return s_}),o.d(r,"LineEdge",function(){return zP}),o.d(r,"PolylineEdge",function(){return UP}),o.d(r,"BezierEdge",function(){return qP}),o.d(r,"Arrow",function(){return bne}),o.d(r,"BaseEdgeModel",function(){return vb}),o.d(r,"BezierEdgeModel",function(){return uT}),o.d(r,"LineEdgeModel",function(){return Vf}),o.d(r,"PolylineEdgeModel",function(){return hm}),o.d(r,"BaseNodeModel",function(){return Xf}),o.d(r,"CircleNodeModel",function(){return gT}),o.d(r,"DiamondNodeModel",function(){return _T}),o.d(r,"EllipseNodeModel",function(){return xT}),o.d(r,"PolygonNodeModel",function(){return $T}),o.d(r,"RectNodeModel",function(){return NT}),o.d(r,"TextNodeModel",function(){return LT}),o.d(r,"HtmlNodeModel",function(){return FT}),o.d(r,"EditConfigModel",function(){return L0}),o.d(r,"GraphModel",function(){return hg}),o.d(r,"SnaplineModel",function(){return Fj}),o.d(r,"Keyboard",function(){return T8}),o.d(r,"get",function(){return E4}),o.d(r,"defaults",function(){return P4}),o.d(r,"ElementState",function(){return Gr}),o.d(r,"ModelType",function(){return wr}),o.d(r,"ElementType",function(){return ai}),o.d(r,"EventType",function(){return $n}),o.d(r,"formateAnchorConnectValidateData",function(){return Kp});var i={};o.r(i),o.d(i,"createUuid",function(){return pl}),o.d(i,"refreshGraphId",function(){return Kd}),o.d(i,"StepDrag",function(){return gl}),o.d(i,"setupEdgeModel",function(){return zw}),o.d(i,"isBboxOverLapping",function(){return Eb}),o.d(i,"filterRepeatPoints",function(){return Uu}),o.d(i,"getSimplePolyline",function(){return Tb}),o.d(i,"getExpandedBBox",function(){return oh}),o.d(i,"pointDirection",function(){return ng}),o.d(i,"getExpandedBBoxPoint",function(){return Zi}),o.d(i,"mergeBBox",function(){return Ic}),o.d(i,"getBBoxOfPoints",function(){return ih}),o.d(i,"getPointsFromBBox",function(){return rg}),o.d(i,"isPointOutsideBBox",function(){return ah}),o.d(i,"getBBoxXCrossPoints",function(){return ru}),o.d(i,"getBBoxYCrossPoints",function(){return vr}),o.d(i,"getBBoxCrossPointsByPoint",function(){return Pb}),o.d(i,"estimateDistance",function(){return Ca}),o.d(i,"costByPoints",function(){return $b}),o.d(i,"heuristicCostEstimate",function(){return qr}),o.d(i,"rebuildPath",function(){return Qw}),o.d(i,"removeClosePointFromOpenList",function(){return Ab}),o.d(i,"isSegmentsIntersected",function(){return Hu}),o.d(i,"isSegmentCrossingBBox",function(){return Mb}),o.d(i,"getNextNeighborPoints",function(){return Ww}),o.d(i,"pathFinder",function(){return Yw}),o.d(i,"getBoxByOriginNode",function(){return Rb}),o.d(i,"pointFilter",function(){return og}),o.d(i,"getPolylinePoints",function(){return ig}),o.d(i,"getLongestEdge",function(){return Zw}),o.d(i,"isSegmentsInNode",function(){return Nb}),o.d(i,"isSegmentsCrossNode",function(){return Ib}),o.d(i,"getCrossPointInRect",function(){return gi}),o.d(i,"segmentDirection",function(){return Di}),o.d(i,"points2PointsList",function(){return Dc}),o.d(i,"getSimplePoints",function(){return Db}),o.d(i,"getBytesLength",function(){return jb}),o.d(i,"getTextWidth",function(){return Hw}),o.d(i,"getAppendAttributes",function(){return Lb}),o.d(i,"getBezierControlPoints",function(){return jc}),o.d(i,"getBezierPoints",function(){return mm}),o.d(i,"getEndTangent",function(){return ym}),o.d(i,"getClosestPointOfPolyline",function(){return Bb}),o.d(i,"pickEdgeConfig",function(){return Xw}),o.d(i,"twoPointDistance",function(){return Vb}),o.d(i,"createEdgeGenerator",function(){return Gw}),o.d(i,"snapToGrid",function(){return eu}),o.d(i,"getGridOffset",function(){return qd}),o.d(i,"sampleCubic",function(){return dr}),o.d(i,"getThetaOfVector",function(){return ka}),o.d(i,"degrees",function(){return qo}),o.d(i,"Vector",function(){return ji}),o.d(i,"Point",function(){return sh}),o.d(i,"Matrix",function(){return jn}),o.d(i,"RotateMatrix",function(){return Hn}),o.d(i,"ScaleMatrix",function(){return vi}),o.d(i,"TranslateMatrix",function(){return Ui});var a=o(1),s=o(10);if(!s.j)throw new Error("mobx-react-lite requires React with Hooks support");if(!a.H)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var l=o(43),u=Object(l.b)("observerBatching");function d(f){f()}var p=!1;function v(){return p}function y(f){return Object(a.t)(f)}var w,b=1e4,k=new Set;function C(){w===void 0&&(w=setTimeout(T,1e4))}function T(){w=void 0;var f=Date.now();k.forEach(function(c){var h=c.current;h&&f>=h.cleanAt&&(h.reaction.dispose(),c.current=null,k.delete(c))}),k.size>0&&C()}var $=!1,P=[],A={};function R(f){return"observer"+f}function B(f,c,h){c===void 0&&(c="observed"),h===void 0&&(h=A),v();var g,O=function(U){return function(){$?P.push(U):U()}}((h.useForceUpdate||l.d)()),_=s.d.useRef(null);if(!_.current){var x=new a.c(R(c),function(){M.mounted?O():(x.dispose(),_.current=null)}),M=function(U){return{cleanAt:Date.now()+b,reaction:U}}(x);_.current=M,g=_,k.add(g),C()}var j=_.current.reaction;return s.d.useDebugValue(j,y),s.d.useEffect(function(){var U;return U=_,k.delete(U),_.current?_.current.mounted=!0:(_.current={reaction:new a.c(R(c),function(){O()}),cleanAt:1/0},O()),function(){_.current.reaction.dispose(),_.current=null}},[]),function(U){$=!0,P=[];try{var te=U();$=!1;var de=P.length>0?P:void 0;return s.d.useLayoutEffect(function(){de&&de.forEach(function(Oe){return Oe()})},[de]),te}finally{$=!1}}(function(){var U,te;if(j.track(function(){try{U=f()}catch(de){te=de}}),te)throw te;return U})}var N=function(){return N=Object.assign||function(f){for(var c,h=1,g=arguments.length;h<g;h++)for(var O in c=arguments[h])Object.prototype.hasOwnProperty.call(c,O)&&(f[O]=c[O]);return f},N.apply(this,arguments)};function I(f,c){var h,g,O,_=N({forwardRef:!1},c),x=f.displayName||f.name,M=function(j,U){return B(function(){return f(j,U)},x)};return M.displayName=x,h=_.forwardRef?Object(s.f)(Object(s.e)(M)):Object(s.f)(M),g=f,O=h,Object.keys(g).forEach(function(j){D[j]||Object.defineProperty(O,j,Object.getOwnPropertyDescriptor(g,j))}),h.displayName=x,h}var D={$$typeof:!0,render:!0,compare:!0,type:!0};function L(f){var c=f.children,h=f.render,g=c||h;return typeof g!="function"?null:B(g)}function z(f,c,h,g,O){var _=c==="children"?"render":"children",x=typeof f[c]=="function",M=typeof f[_]=="function";return x&&M?new Error("MobX Observer: Do not use children and render in the same time in`"+h):x||M?null:new Error("Invalid prop `"+O+"` of type `"+typeof f[c]+"` supplied to `"+h+"`, expected `function`.")}L.propTypes={children:z,render:z},L.displayName="Observer";var q;(q=s.g)||(q=d),Object(a.n)({reactionScheduler:q}),Object(l.a)()[u]=!0;var ae=0,K={};function H(f){return K[f]||(K[f]=function(c){if(typeof Symbol=="function")return Symbol(c);var h="__$mobx-react "+c+" ("+ae+")";return ae++,h}(f)),K[f]}function ne(f,c){if(X(f,c))return!0;if(typeof f!="object"||f===null||typeof c!="object"||c===null)return!1;var h=Object.keys(f),g=Object.keys(c);if(h.length!==g.length)return!1;for(var O=0;O<h.length;O++)if(!Object.hasOwnProperty.call(c,h[O])||!X(f[h[O]],c[h[O]]))return!1;return!0}function X(f,c){return f===c?f!==0||1/f==1/c:f!=f&&c!=c}function V(f,c,h){Object.hasOwnProperty.call(f,c)?f[c]=h:Object.defineProperty(f,c,{enumerable:!1,configurable:!0,writable:!0,value:h})}var G=H("patchMixins"),se=H("patchedDefinition");function he(f,c){for(var h=this,g=arguments.length,O=new Array(g>2?g-2:0),_=2;_<g;_++)O[_-2]=arguments[_];c.locks++;try{var x;return f!=null&&(x=f.apply(this,O)),x}finally{c.locks--,c.locks===0&&c.methods.forEach(function(M){M.apply(h,O)})}}function pe(f,c){return function(){for(var h=arguments.length,g=new Array(h),O=0;O<h;O++)g[O]=arguments[O];he.call.apply(he,[this,f,c].concat(g))}}function Be(f,c,h){var g=function(M,j){var U=M[G]=M[G]||{},te=U[j]=U[j]||{};return te.locks=te.locks||0,te.methods=te.methods||[],te}(f,c);g.methods.indexOf(h)<0&&g.methods.push(h);var O=Object.getOwnPropertyDescriptor(f,c);if(!O||!O[se]){var _=f[c],x=De(f,c,O?O.enumerable:void 0,g,_);Object.defineProperty(f,c,x)}}function De(f,c,h,g,O){var _,x=pe(O,g);return(_={})[se]=!0,_.get=function(){return x},_.set=function(M){if(this===f)x=pe(M,g);else{var j=De(this,c,h,g,M);Object.defineProperty(this,c,j)}},_.configurable=!0,_.enumerable=h,_}var ze=a.a||"$mobx",$e=H("isMobXReactObserver"),_e=H("isUnmounted"),me=H("skipRender"),Re=H("isForcingUpdate");function we(f){var c=f.prototype;if(f[$e]?fe(c):f[$e]=!0,c.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(f.__proto__!==s.b)if(c.shouldComponentUpdate){if(c.shouldComponentUpdate!==ke)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else c.shouldComponentUpdate=ke;We(c,"props"),We(c,"state");var h=c.render;return c.render=function(){return oe.call(this,h)},Be(c,"componentWillUnmount",function(){var g;(g=this.render[ze])===null||g===void 0||g.dispose(),this[_e]=!0,!this.render[ze]&&fe(this)}),f}function fe(f){return f.displayName||f.name||f.constructor&&(f.constructor.displayName||f.constructor.name)||"<component>"}function oe(f){var c=this;V(this,me,!1),V(this,Re,!1);var h=fe(this),g=f.bind(this),O=!1,_=new a.c(h+".render()",function(){if(!O&&(O=!0,c[_e]!==!0)){var M=!0;try{V(c,Re,!0),c[me]||s.a.prototype.forceUpdate.call(c),M=!1}finally{V(c,Re,!1),M&&_.dispose()}}});function x(){O=!1;var M=void 0,j=void 0;if(_.track(function(){try{j=Object(a.d)(!1,g)}catch(U){M=U}}),M)throw M;return j}return _.reactComponent=this,x[ze]=_,this.render=x,x.call(this)}function ke(f,c){return this.state!==c||!ne(this.props,f)}function We(f,c){var h=H("reactProp_"+c+"_valueHolder"),g=H("reactProp_"+c+"_atomHolder");function O(){return this[g]||V(this,g,Object(a.o)("reactive "+c)),this[g]}Object.defineProperty(f,c,{configurable:!0,enumerable:!0,get:function(){var _=!1;return a.f&&a.e&&(_=Object(a.f)(!0)),O.call(this).reportObserved(),a.f&&a.e&&Object(a.e)(_),this[h]},set:function(_){this[Re]||ne(this[h],_)?V(this,h,_):(V(this,h,_),V(this,me,!0),O.call(this).reportChanged(),V(this,me,!1))}})}var et=typeof Symbol=="function"&&Symbol.for,Ve=et?Symbol.for("react.forward_ref"):typeof s.e=="function"&&Object(s.e)(function(f){return null}).$$typeof,Me=et?Symbol.for("react.memo"):typeof s.f=="function"&&Object(s.f)(function(f){return null}).$$typeof;function Ke(f){if(f.isMobxInjector,Me&&f.$$typeof===Me)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(Ve&&f.$$typeof===Ve){var c=f.render;if(typeof c!="function")throw new Error("render property of ForwardRef was not a function");return Object(s.e)(function(){var h=arguments;return Object(s.c)(L,null,function(){return c.apply(void 0,h)})})}return typeof f!="function"||f.prototype&&f.prototype.render||f.isReactClass||Object.prototype.isPrototypeOf.call(s.a,f)?we(f):I(f)}if(!s.a)throw new Error("mobx-react requires React to be available");if(!a.C)throw new Error("mobx-react requires mobx to be available");var be=o(0);o(4),o(8),o(2),o(3),o(52),o(6),o(5),o(11),o(37),o(26),o(21),o(20),o(24),o(22),o(25),o(9),o(17),o(23),o(19),o(192),o(156),o(104),o(157),o(158),o(199),o(64);var qe=function(f,c){for(var h=-1,g=f==null?0:f.length,O=Array(g);++h<g;)O[h]=c(f[h],h,f);return O},ct=function(){this.__data__=[],this.size=0},Je=function(f,c){return f===c||f!=f&&c!=c},Xe=function(f,c){for(var h=f.length;h--;)if(Je(f[h][0],c))return h;return-1},gt=Array.prototype.splice,Ct=function(f){var c=this.__data__,h=Xe(c,f);return!(h<0)&&(h==c.length-1?c.pop():gt.call(c,h,1),--this.size,!0)},Zt=function(f){var c=this.__data__,h=Xe(c,f);return h<0?void 0:c[h][1]},Et=function(f){return Xe(this.__data__,f)>-1},ln=function(f,c){var h=this.__data__,g=Xe(h,f);return g<0?(++this.size,h.push([f,c])):h[g][1]=c,this};function Ee(f){var c=-1,h=f==null?0:f.length;for(this.clear();++c<h;){var g=f[c];this.set(g[0],g[1])}}Ee.prototype.clear=ct,Ee.prototype.delete=Ct,Ee.prototype.get=Zt,Ee.prototype.has=Et,Ee.prototype.set=ln;var Ze=Ee,ye=function(){this.__data__=new Ze,this.size=0},Le=function(f){var c=this.__data__,h=c.delete(f);return this.size=c.size,h},xe=function(f){return this.__data__.get(f)},Ue=function(f){return this.__data__.has(f)},rt=o(31),Ft=rt.a.Symbol,Vn=Object.prototype,ot=Vn.hasOwnProperty,Lt=Vn.toString,wn=Ft?Ft.toStringTag:void 0,Nt=function(f){var c=ot.call(f,wn),h=f[wn];try{f[wn]=void 0;var g=!0}catch{}var O=Lt.call(f);return g&&(c?f[wn]=h:delete f[wn]),O},Xt=Object.prototype.toString,Ht=function(f){return Xt.call(f)},Sn=Ft?Ft.toStringTag:void 0,Dr=function(f){return f==null?f===void 0?"[object Undefined]":"[object Null]":Sn&&Sn in Object(f)?Nt(f):Ht(f)},eo=function(f){var c=typeof f;return f!=null&&(c=="object"||c=="function")},ma,ci=function(f){if(!eo(f))return!1;var c=Dr(f);return c=="[object Function]"||c=="[object GeneratorFunction]"||c=="[object AsyncFunction]"||c=="[object Proxy]"},Va=rt.a["__core-js_shared__"],ya=(ma=/[^.]+$/.exec(Va&&Va.keys&&Va.keys.IE_PROTO||""))?"Symbol(src)_1."+ma:"",$f=function(f){return!!ya&&ya in f},zl=Function.prototype.toString,Qi=function(f){if(f!=null){try{return zl.call(f)}catch{}try{return f+""}catch{}}return""},sl=/^\[object .+?Constructor\]$/,bn=Function.prototype,wc=Object.prototype,wt=bn.toString,rn=wc.hasOwnProperty,Yn=RegExp("^"+wt.call(rn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fr=function(f){return!(!eo(f)||$f(f))&&(ci(f)?Yn:sl).test(Qi(f))},Wi=function(f,c){return f==null?void 0:f[c]},oi=function(f,c){var h=Wi(f,c);return fr(h)?h:void 0},Ho=oi(rt.a,"Map"),Xo=oi(Object,"create"),fi=function(){this.__data__=Xo?Xo(null):{},this.size=0},_t=function(f){var c=this.has(f)&&delete this.__data__[f];return this.size-=c?1:0,c},cn=Object.prototype.hasOwnProperty,Bn=function(f){var c=this.__data__;if(Xo){var h=c[f];return h==="__lodash_hash_undefined__"?void 0:h}return cn.call(c,f)?c[f]:void 0},br=Object.prototype.hasOwnProperty,Ri=function(f){var c=this.__data__;return Xo?c[f]!==void 0:br.call(c,f)},us=function(f,c){var h=this.__data__;return this.size+=this.has(f)?0:1,h[f]=Xo&&c===void 0?"__lodash_hash_undefined__":c,this};function Iu(f){var c=-1,h=f==null?0:f.length;for(this.clear();++c<h;){var g=f[c];this.set(g[0],g[1])}}Iu.prototype.clear=fi,Iu.prototype.delete=_t,Iu.prototype.get=Bn,Iu.prototype.has=Ri,Iu.prototype.set=us;var Ev=Iu,Ql=function(){this.size=0,this.__data__={hash:new Ev,map:new(Ho||Ze),string:new Ev}},Ep=function(f){var c=typeof f;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?f!=="__proto__":f===null},Ad=function(f,c){var h=f.__data__;return Ep(c)?h[typeof c=="string"?"string":"hash"]:h.map},Tp=function(f){var c=Ad(this,f).delete(f);return this.size-=c?1:0,c},Pp=function(f){return Ad(this,f).get(f)},P0=function(f){return Ad(this,f).has(f)},Tv=function(f,c){var h=Ad(this,f),g=h.size;return h.set(f,c),this.size+=h.size==g?0:1,this};function Xr(f){var c=-1,h=f==null?0:f.length;for(this.clear();++c<h;){var g=f[c];this.set(g[0],g[1])}}Xr.prototype.clear=Ql,Xr.prototype.delete=Tp,Xr.prototype.get=Pp,Xr.prototype.has=P0,Xr.prototype.set=Tv;var Hr=Xr,Pv=function(f,c){var h=this.__data__;if(h instanceof Ze){var g=h.__data__;if(!Ho||g.length<199)return g.push([f,c]),this.size=++h.size,this;h=this.__data__=new Hr(g)}return h.set(f,c),this.size=h.size,this};function Sc(f){var c=this.__data__=new Ze(f);this.size=c.size}Sc.prototype.clear=ye,Sc.prototype.delete=Le,Sc.prototype.get=xe,Sc.prototype.has=Ue,Sc.prototype.set=Pv;var Wl=Sc,$p=function(f){return this.__data__.set(f,"__lodash_hash_undefined__"),this},$v=function(f){return this.__data__.has(f)};function Fo(f){var c=-1,h=f==null?0:f.length;for(this.__data__=new Hr;++c<h;)this.add(f[c])}Fo.prototype.add=Fo.prototype.push=$p,Fo.prototype.has=$v;var Ap=Fo,Af=function(f,c){for(var h=-1,g=f==null?0:f.length;++h<g;)if(c(f[h],h,f))return!0;return!1},Mp=function(f,c){return f.has(c)},Md=function(f,c,h,g,O,_){var x=1&h,M=f.length,j=c.length;if(M!=j&&!(x&&j>M))return!1;var U=_.get(f),te=_.get(c);if(U&&te)return U==c&&te==f;var de=-1,Oe=!0,Ne=2&h?new Ap:void 0;for(_.set(f,c),_.set(c,f);++de<M;){var Ge=f[de],nt=c[de];if(g)var ft=x?g(nt,Ge,de,c,f,_):g(Ge,nt,de,f,c,_);if(ft!==void 0){if(ft)continue;Oe=!1;break}if(Ne){if(!Af(c,function(dt,yt){if(!Mp(Ne,yt)&&(Ge===dt||O(Ge,dt,h,g,_)))return Ne.push(yt)})){Oe=!1;break}}else if(Ge!==nt&&!O(Ge,nt,h,g,_)){Oe=!1;break}}return _.delete(f),_.delete(c),Oe},Ni=rt.a.Uint8Array,Rp=function(f){var c=-1,h=Array(f.size);return f.forEach(function(g,O){h[++c]=[O,g]}),h},Av=function(f){var c=-1,h=Array(f.size);return f.forEach(function(g){h[++c]=g}),h},Np=Ft?Ft.prototype:void 0,Rd=Np?Np.valueOf:void 0,xc=function(f,c,h,g,O,_,x){switch(h){case"[object DataView]":if(f.byteLength!=c.byteLength||f.byteOffset!=c.byteOffset)return!1;f=f.buffer,c=c.buffer;case"[object ArrayBuffer]":return!(f.byteLength!=c.byteLength||!_(new Ni(f),new Ni(c)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Je(+f,+c);case"[object Error]":return f.name==c.name&&f.message==c.message;case"[object RegExp]":case"[object String]":return f==c+"";case"[object Map]":var M=Rp;case"[object Set]":var j=1&g;if(M||(M=Av),f.size!=c.size&&!j)return!1;var U=x.get(f);if(U)return U==c;g|=2,x.set(f,c);var te=Md(M(f),M(c),g,O,_,x);return x.delete(f),te;case"[object Symbol]":if(Rd)return Rd.call(f)==Rd.call(c)}return!1},ll=function(f,c){for(var h=-1,g=c.length,O=f.length;++h<g;)f[O+h]=c[h];return f},lo=Array.isArray,Mv=function(f,c,h){var g=c(f);return lo(f)?g:ll(g,h(f))},ba=function(f,c){for(var h=-1,g=f==null?0:f.length,O=0,_=[];++h<g;){var x=f[h];c(x,h,f)&&(_[O++]=x)}return _},Rv=function(){return[]},Nv=Object.prototype.propertyIsEnumerable,oa=Object.getOwnPropertySymbols,_a=oa?function(f){return f==null?[]:(f=Object(f),ba(oa(f),function(c){return Nv.call(f,c)}))}:Rv,Ip=function(f,c){for(var h=-1,g=Array(f);++h<f;)g[h]=c(h);return g},jr=function(f){return f!=null&&typeof f=="object"},di=function(f){return jr(f)&&Dr(f)=="[object Arguments]"},Nd=Object.prototype,Iv=Nd.hasOwnProperty,Dp=Nd.propertyIsEnumerable,Id=di(function(){return arguments}())?di:function(f){return jr(f)&&Iv.call(f,"callee")&&!Dp.call(f,"callee")},ul=Id,Yl=o(48),kc=/^(?:0|[1-9]\d*)$/,Oa=function(f,c){var h=typeof f;return!!(c=c==null?9007199254740991:c)&&(h=="number"||h!="symbol"&&kc.test(f))&&f>-1&&f%1==0&&f<c},Zl=function(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=9007199254740991},Mr={};Mr["[object Float32Array]"]=Mr["[object Float64Array]"]=Mr["[object Int8Array]"]=Mr["[object Int16Array]"]=Mr["[object Int32Array]"]=Mr["[object Uint8Array]"]=Mr["[object Uint8ClampedArray]"]=Mr["[object Uint16Array]"]=Mr["[object Uint32Array]"]=!0,Mr["[object Arguments]"]=Mr["[object Array]"]=Mr["[object ArrayBuffer]"]=Mr["[object Boolean]"]=Mr["[object DataView]"]=Mr["[object Date]"]=Mr["[object Error]"]=Mr["[object Function]"]=Mr["[object Map]"]=Mr["[object Number]"]=Mr["[object Object]"]=Mr["[object RegExp]"]=Mr["[object Set]"]=Mr["[object String]"]=Mr["[object WeakMap]"]=!1;var wa=function(f){return jr(f)&&Zl(f.length)&&!!Mr[Dr(f)]},cl=function(f){return function(c){return f(c)}},Oi=o(49),Dd=Oi.a&&Oi.a.isTypedArray,Mf=Dd?cl(Dd):wa,jp=Object.prototype.hasOwnProperty,Mo=function(f,c){var h=lo(f),g=!h&&ul(f),O=!h&&!g&&Object(Yl.a)(f),_=!h&&!g&&!O&&Mf(f),x=h||g||O||_,M=x?Ip(f.length,String):[],j=M.length;for(var U in f)!c&&!jp.call(f,U)||x&&(U=="length"||O&&(U=="offset"||U=="parent")||_&&(U=="buffer"||U=="byteLength"||U=="byteOffset")||Oa(U,j))||M.push(U);return M},jd=Object.prototype,Ul=function(f){var c=f&&f.constructor;return f===(typeof c=="function"&&c.prototype||jd)},cs=function(f,c){return function(h){return f(c(h))}},Lp=cs(Object.keys,Object),$0=Object.prototype.hasOwnProperty,Bp=function(f){if(!Ul(f))return Lp(f);var c=[];for(var h in Object(f))$0.call(f,h)&&h!="constructor"&&c.push(h);return c},ii=function(f){return f!=null&&Zl(f.length)&&!ci(f)},Cc=function(f){return ii(f)?Mo(f):Bp(f)},fl=function(f){return Mv(f,Cc,_a)},ia=Object.prototype.hasOwnProperty,Vp=function(f,c,h,g,O,_){var x=1&h,M=fl(f),j=M.length;if(j!=fl(c).length&&!x)return!1;for(var U=j;U--;){var te=M[U];if(!(x?te in c:ia.call(c,te)))return!1}var de=_.get(f),Oe=_.get(c);if(de&&Oe)return de==c&&Oe==f;var Ne=!0;_.set(f,c),_.set(c,f);for(var Ge=x;++U<j;){var nt=f[te=M[U]],ft=c[te];if(g)var dt=x?g(ft,nt,te,c,f,_):g(nt,ft,te,f,c,_);if(!(dt===void 0?nt===ft||O(nt,ft,h,g,_):dt)){Ne=!1;break}Ge||(Ge=te=="constructor")}if(Ne&&!Ge){var yt=f.constructor,Rt=c.constructor;yt==Rt||!("constructor"in f)||!("constructor"in c)||typeof yt=="function"&&yt instanceof yt&&typeof Rt=="function"&&Rt instanceof Rt||(Ne=!1)}return _.delete(f),_.delete(c),Ne},Fa=oi(rt.a,"DataView"),Du=oi(rt.a,"Promise"),Ld=oi(rt.a,"Set"),dl=oi(rt.a,"WeakMap"),za="[object Map]",Sa="[object Promise]",fs="[object Set]",hl="[object WeakMap]",mt="[object DataView]",At=Qi(Fa),It=Qi(Ho),sn=Qi(Du),ar=Qi(Ld),Cr=Qi(dl),po=Dr;(Fa&&po(new Fa(new ArrayBuffer(1)))!=mt||Ho&&po(new Ho)!=za||Du&&po(Du.resolve())!=Sa||Ld&&po(new Ld)!=fs||dl&&po(new dl)!=hl)&&(po=function(f){var c=Dr(f),h=c=="[object Object]"?f.constructor:void 0,g=h?Qi(h):"";if(g)switch(g){case At:return mt;case It:return za;case sn:return Sa;case ar:return fs;case Cr:return hl}return c});var Q=po,Y="[object Arguments]",le="[object Array]",Ce="[object Object]",Qe=Object.prototype.hasOwnProperty,st=function(f,c,h,g,O,_){var x=lo(f),M=lo(c),j=x?le:Q(f),U=M?le:Q(c),te=(j=j==Y?Ce:j)==Ce,de=(U=U==Y?Ce:U)==Ce,Oe=j==U;if(Oe&&Object(Yl.a)(f)){if(!Object(Yl.a)(c))return!1;x=!0,te=!1}if(Oe&&!te)return _||(_=new Wl),x||Mf(f)?Md(f,c,h,g,O,_):xc(f,c,j,h,g,O,_);if(!(1&h)){var Ne=te&&Qe.call(f,"__wrapped__"),Ge=de&&Qe.call(c,"__wrapped__");if(Ne||Ge){var nt=Ne?f.value():f,ft=Ge?c.value():c;return _||(_=new Wl),O(nt,ft,h,g,_)}}return!!Oe&&(_||(_=new Wl),Vp(f,c,h,g,O,_))},Ot=function f(c,h,g,O,_){return c===h||(c==null||h==null||!jr(c)&&!jr(h)?c!=c&&h!=h:st(c,h,g,O,f,_))},Wt=function(f,c,h,g){var O=h.length,_=O,x=!g;if(f==null)return!_;for(f=Object(f);O--;){var M=h[O];if(x&&M[2]?M[1]!==f[M[0]]:!(M[0]in f))return!1}for(;++O<_;){var j=(M=h[O])[0],U=f[j],te=M[1];if(x&&M[2]){if(U===void 0&&!(j in f))return!1}else{var de=new Wl;if(g)var Oe=g(U,te,j,f,c,de);if(!(Oe===void 0?Ot(te,U,3,g,de):Oe))return!1}}return!0},mn=function(f){return f==f&&!eo(f)},_r=function(f){for(var c=Cc(f),h=c.length;h--;){var g=c[h],O=f[g];c[h]=[g,O,mn(O)]}return c},fn=function(f,c){return function(h){return h!=null&&h[f]===c&&(c!==void 0||f in Object(h))}},ro=function(f){var c=_r(f);return c.length==1&&c[0][2]?fn(c[0][0],c[0][1]):function(h){return h===f||Wt(h,f,c)}},lr=function(f){return typeof f=="symbol"||jr(f)&&Dr(f)=="[object Symbol]"},zr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ds=/^\w*$/,xo=function(f,c){if(lo(f))return!1;var h=typeof f;return!(h!="number"&&h!="symbol"&&h!="boolean"&&f!=null&&!lr(f))||ds.test(f)||!zr.test(f)||c!=null&&f in Object(c)};function xa(f,c){if(typeof f!="function"||c!=null&&typeof c!="function")throw new TypeError("Expected a function");var h=function(){var g=arguments,O=c?c.apply(this,g):g[0],_=h.cache;if(_.has(O))return _.get(O);var x=f.apply(this,g);return h.cache=_.set(O,x)||_,x};return h.cache=new(xa.Cache||Hr),h}xa.Cache=Hr;var Hl=xa,Xl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rf=/\\(\\)?/g,Fp=function(f){var c=Hl(f,function(g){return h.size===500&&h.clear(),g}),h=c.cache;return c}(function(f){var c=[];return f.charCodeAt(0)===46&&c.push(""),f.replace(Xl,function(h,g,O,_){c.push(O?_.replace(Rf,"$1"):g||h)}),c}),ju=Ft?Ft.prototype:void 0,Bd=ju?ju.toString:void 0,aa=function f(c){if(typeof c=="string")return c;if(lo(c))return qe(c,f)+"";if(lr(c))return Bd?Bd.call(c):"";var h=c+"";return h=="0"&&1/c==-1/0?"-0":h},Nf=function(f){return f==null?"":aa(f)},Ec=function(f,c){return lo(f)?f:xo(f,c)?[f]:Fp(Nf(f))},Lu=function(f){if(typeof f=="string"||lr(f))return f;var c=f+"";return c=="0"&&1/f==-1/0?"-0":c},Bu=function(f,c){for(var h=0,g=(c=Ec(c,f)).length;f!=null&&h<g;)f=f[Lu(c[h++])];return h&&h==g?f:void 0},zp=function(f,c,h){var g=f==null?void 0:Bu(f,c);return g===void 0?h:g},hE=function(f,c){return f!=null&&c in Object(f)},pE=function(f,c,h){for(var g=-1,O=(c=Ec(c,f)).length,_=!1;++g<O;){var x=Lu(c[g]);if(!(_=f!=null&&h(f,x)))break;f=f[x]}return _||++g!=O?_:!!(O=f==null?0:f.length)&&Zl(O)&&Oa(x,O)&&(lo(f)||ul(f))},Z1=function(f,c){return f!=null&&pE(f,c,hE)},Dv=function(f,c){return xo(f)&&mn(c)?fn(Lu(f),c):function(h){var g=zp(h,f);return g===void 0&&g===c?Z1(h,f):Ot(c,g,3)}},Vd=function(f){return f},A0=function(f){return function(c){return c==null?void 0:c[f]}},gE=function(f){return function(c){return Bu(c,f)}},U1=function(f){return xo(f)?A0(Lu(f)):gE(f)},vE=function(f){return typeof f=="function"?f:f==null?Vd:typeof f=="object"?lo(f)?Dv(f[0],f[1]):ro(f):U1(f)},H1=function(f){return function(c,h,g){for(var O=-1,_=Object(c),x=g(c),M=x.length;M--;){var j=x[f?M:++O];if(h(_[j],j,_)===!1)break}return c}}(),wi=function(f,c){return function(h,g){if(h==null)return h;if(!ii(h))return f(h,g);for(var O=h.length,_=c?O:-1,x=Object(h);(c?_--:++_<O)&&g(x[_],_,x)!==!1;);return h}}(function(f,c){return f&&H1(f,c,Cc)}),sa=function(f,c){var h=-1,g=ii(f)?Array(f.length):[];return wi(f,function(O,_,x){g[++h]=c(O,_,x)}),g},jv=function(f,c){return(lo(f)?qe:sa)(f,vE(c))};Object(a.n)({isolateGlobalState:!0});var Lv=function(){try{var f=oi(Object,"defineProperty");return f({},"",{}),f}catch{}}(),Bv=function(f,c,h){c=="__proto__"&&Lv?Lv(f,c,{configurable:!0,enumerable:!0,value:h,writable:!0}):f[c]=h},mE=Object.prototype.hasOwnProperty,Fd=function(f,c,h){var g=f[c];mE.call(f,c)&&Je(g,h)&&(h!==void 0||c in f)||Bv(f,c,h)},Gl=function(f,c,h,g){var O=!h;h||(h={});for(var _=-1,x=c.length;++_<x;){var M=c[_],j=g?g(h[M],f[M],M,h,f):void 0;j===void 0&&(j=f[M]),O?Bv(h,M,j):Fd(h,M,j)}return h},M0=function(f,c,h){switch(h.length){case 0:return f.call(c);case 1:return f.call(c,h[0]);case 2:return f.call(c,h[0],h[1]);case 3:return f.call(c,h[0],h[1],h[2])}return f.apply(c,h)},If=Math.max,zd=function(f,c,h){return c=If(c===void 0?f.length-1:c,0),function(){for(var g=arguments,O=-1,_=If(g.length-c,0),x=Array(_);++O<_;)x[O]=g[c+O];O=-1;for(var M=Array(c+1);++O<c;)M[O]=g[O];return M[c]=h(x),M0(f,this,M)}},Qp=function(f){return function(){return f}},Vv=Lv?function(f,c){return Lv(f,"toString",{configurable:!0,enumerable:!1,value:Qp(c),writable:!0})}:Vd,Qd=Date.now,yE=function(f){var c=0,h=0;return function(){var g=Qd(),O=16-(g-h);if(h=g,O>0){if(++c>=800)return arguments[0]}else c=0;return f.apply(void 0,arguments)}},X1=yE(Vv),bE=function(f,c){return X1(zd(f,c,Vd),f+"")},_E=function(f,c,h){if(!eo(h))return!1;var g=typeof c;return!!(g=="number"?ii(h)&&Oa(c,h.length):g=="string"&&c in h)&&Je(h[c],f)},G1=function(f){return bE(function(c,h){var g=-1,O=h.length,_=O>1?h[O-1]:void 0,x=O>2?h[2]:void 0;for(_=f.length>3&&typeof _=="function"?(O--,_):void 0,x&&_E(h[0],h[1],x)&&(_=O<3?void 0:_,O=1),c=Object(c);++g<O;){var M=h[g];M&&f(c,M,g,_)}return c})},Fv=Object.prototype.hasOwnProperty,Si=G1(function(f,c){if(Ul(c)||ii(c))Gl(c,Cc(c),f);else for(var h in c)Fv.call(c,h)&&Fd(f,h,c[h])}),q1=function(f,c,h,g){if(!eo(f))return f;for(var O=-1,_=(c=Ec(c,f)).length,x=_-1,M=f;M!=null&&++O<_;){var j=Lu(c[O]),U=h;if(j==="__proto__"||j==="constructor"||j==="prototype")return f;if(O!=x){var te=M[j];(U=g?g(te,j,M):void 0)===void 0&&(U=eo(te)?te:Oa(c[O+1])?[]:{})}Fd(M,j,U),M=M[j]}return f},Te=function(f,c,h){for(var g=-1,O=c.length,_={};++g<O;){var x=c[g],M=Bu(f,x);h(M,x)&&q1(_,Ec(x,f),M)}return _},Wd=function(f,c){return Te(f,c,function(h,g){return Z1(f,g)})},Wp=Ft?Ft.isConcatSpreadable:void 0,Ds=function(f){return lo(f)||ul(f)||!!(Wp&&f&&f[Wp])},Ir=function f(c,h,g,O,_){var x=-1,M=c.length;for(g||(g=Ds),_||(_=[]);++x<M;){var j=c[x];h>0&&g(j)?h>1?f(j,h-1,g,O,_):ll(_,j):O||(_[_.length]=j)}return _},Df=function(f){return f!=null&&f.length?Ir(f,1):[]},oo,ql,Tc,js,R0,N0,K1,J1,zv,Yd,Yp,ew,I0,Kl,Qv,Pc,hs,D0,j0,Vu=function(f){return X1(zd(f,void 0,Df),f+"")}(function(f,c){return f==null?{}:Wd(f,c)});function ko(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function tw(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function nw(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Go(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var Gr,Ii,wr,ai,$n,go,Wv={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotation:!1,nodeSelectedOutline:!0,nodeTextEdit:!1,edgeTextEdit:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Fu=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustNodePosition","hideAnchors","allowRotation","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","nodeTextEdit","edgeTextEdit","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","autoExpand"],L0=(ql=Go((oo=function(){function f(g){(function(O,_){if(!(O instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),ko(this,"isSilentMode",ql,this),ko(this,"stopZoomGraph",Tc,this),ko(this,"stopScrollGraph",js,this),ko(this,"stopMoveGraph",R0,this),ko(this,"adjustEdge",N0,this),ko(this,"adjustEdgeMiddle",K1,this),ko(this,"adjustEdgeStartAndEnd",J1,this),ko(this,"adjustNodePosition",zv,this),ko(this,"hideAnchors",Yd,this),ko(this,"allowRotation",Yp,this),ko(this,"hoverOutline",ew,this),ko(this,"nodeSelectedOutline",I0,this),ko(this,"edgeSelectedOutline",Kl,this),ko(this,"nodeTextEdit",Qv,this),ko(this,"edgeTextEdit",Pc,this),ko(this,"nodeTextDraggable",hs,this),ko(this,"edgeTextDraggable",D0,this),ko(this,"autoExpand",j0,this),nw(this,"multipleSelectKey",""),nw(this,"defaultConfig",{}),Si(this,this.getConfigDetail(g))}var c,h;return c=f,(h=[{key:"updateEditConfig",value:function(g){var O=this.getConfigDetail(g);Si(this,O)}},{key:"getConfigDetail",value:function(g){var O=g.isSilentMode,_=g.textEdit,x={};if(O===!1&&Si(x,this.defaultConfig),O===!0&&O!==this.isSilentMode){var M=Vu(Wv,Fu);this.defaultConfig={stopZoomGraph:this.stopZoomGraph,stopScrollGraph:this.stopScrollGraph,stopMoveGraph:this.stopMoveGraph,adjustEdge:this.adjustEdge,adjustEdgeMiddle:this.adjustEdgeMiddle,adjustEdgeStartAndEnd:this.adjustEdgeStartAndEnd,adjustNodePosition:this.adjustNodePosition,hideAnchors:this.hideAnchors,allowRotation:this.allowRotation,hoverOutline:this.hoverOutline,nodeSelectedOutline:this.nodeSelectedOutline,edgeSelectedOutline:this.edgeSelectedOutline,nodeTextEdit:this.nodeTextEdit,edgeTextEdit:this.edgeTextEdit,nodeTextDraggable:this.nodeTextDraggable,edgeTextDraggable:this.edgeTextDraggable,autoExpand:this.autoExpand},Si(x,M)}_===!1&&Si(x,{nodeTextEdit:!1,edgeTextEdit:!1});var j=Vu(g,Fu);return Si(x,j)}},{key:"getConfig",value:function(){return Vu(this,Fu)}}])&&tw(c.prototype,h),f}()).prototype,"isSilentMode",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Tc=Go(oo.prototype,"stopZoomGraph",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),js=Go(oo.prototype,"stopScrollGraph",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R0=Go(oo.prototype,"stopMoveGraph",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),N0=Go(oo.prototype,"adjustEdge",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),K1=Go(oo.prototype,"adjustEdgeMiddle",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),J1=Go(oo.prototype,"adjustEdgeStartAndEnd",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zv=Go(oo.prototype,"adjustNodePosition",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Yd=Go(oo.prototype,"hideAnchors",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yp=Go(oo.prototype,"allowRotation",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ew=Go(oo.prototype,"hoverOutline",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),I0=Go(oo.prototype,"nodeSelectedOutline",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Kl=Go(oo.prototype,"edgeSelectedOutline",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Qv=Go(oo.prototype,"nodeTextEdit",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Pc=Go(oo.prototype,"edgeTextEdit",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),hs=Go(oo.prototype,"nodeTextDraggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D0=Go(oo.prototype,"edgeTextDraggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),j0=Go(oo.prototype,"autoExpand",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Go(oo.prototype,"updateEditConfig",[a.k],Object.getOwnPropertyDescriptor(oo.prototype,"updateEditConfig"),oo.prototype),oo);o(65),o(66),function(f){f[f.DEFAULT=1]="DEFAULT",f[f.TEXT_EDIT=2]="TEXT_EDIT",f[f.SHOW_MENU=3]="SHOW_MENU",f[f.ALLOW_CONNECT=4]="ALLOW_CONNECT",f[f.NOT_ALLOW_CONNECT=5]="NOT_ALLOW_CONNECT"}(Gr||(Gr={})),function(f){f.KEY="logic-flow",f.NODE_NAME="lf-node",f.EDGE_NAME="lf-edge"}(Ii||(Ii={})),function(f){f.NODE="node",f.CIRCLE_NODE="circle-node",f.POLYGON_NODE="polygon-node",f.RECT_NODE="rect-node",f.TEXT_NODE="text-node",f.ELLIPSE_NODE="ellipse-node",f.DIAMOND_NODE="diamond-node",f.HTML_NODE="html-node",f.EDGE="edge",f.LINE_EDGE="line-edge",f.POLYLINE_EDGE="polyline-edge",f.BEZIER_EDGE="bezier-edge",f.GRAPH="graph"}(wr||(wr={})),function(f){f.NODE="node",f.EDGE="edge",f.GRAPH="graph"}(ai||(ai={})),function(f){f.ELEMENT_CLICK="element:click",f.NODE_CLICK="node:click",f.NODE_DBCLICK="node:dbclick",f.NODE_DELETE="node:delete",f.NODE_ADD="node:add",f.NODE_GROUP_COPY="node:group-copy-add",f.NODE_DND_ADD="node:dnd-add",f.NODE_DND_DRAG="node:dnd-drag",f.NODE_MOUSEDOWN="node:mousedown",f.NODE_DRAGSTART="node:dragstart",f.NODE_DRAG="node:drag",f.NODE_DROP="node:drop",f.NODE_MOUSEUP="node:mouseup",f.NODE_MOUSEMOVE="node:mousemove",f.NODE_MOUSEENTER="node:mouseenter",f.NODE_MOUSELEAVE="node:mouseleave",f.NODE_CONTEXTMENU="node:contextmenu",f.NODE_ROTATE="node:rotate",f.EDGE_DELETE="edge:delete",f.EDGE_ADD="edge:add",f.EDGE_CLICK="edge:click",f.EDGE_DBCLICK="edge:dbclick",f.EDGE_MOUSEENTER="edge:mouseenter",f.EDGE_MOUSELEAVE="edge:mouseleave",f.EDGE_CONTEXTMENU="edge:contextmenu",f.EDGE_ADJUST="edge:adjust",f.EDGE_EXCHANGE_NODE="edge:exchange-node",f.ANCHOR_DRAGSTART="anchor:dragstart",f.ANCHOR_DRAG="anchor:drag",f.ANCHOR_DROP="anchor:drop",f.ANCHOR_DRAGEND="anchor:dragend",f.ADJUST_POINT_MOUSEDOWN="adjustPoint:mousedown",f.ADJUST_POINT_MOUSEUP="adjustPoint:mouseup",f.ADJUST_POINT_MOUSEMOVE="adjustPoint:mousemove",f.ADJUST_POINT_DRAGSTART="adjustPoint:dragstart",f.ADJUST_POINT_DRAG="adjustPoint:drag",f.ADJUST_POINT_DROP="adjustPoint:drop",f.ADJUST_POINT_DRAGEND="adjustPoint:dragend",f.BLANK_MOUSEDOWN="blank:mousedown",f.BLANK_DRAGSTART="blank:dragstart",f.BLANK_DRAG="blank:drag",f.BLANK_DROP="blank:drop",f.BLANK_MOUSEMOVE="blank:mousemove",f.BLANK_MOUSEUP="blank:mouseup",f.BLANK_CLICK="blank:click",f.BLANK_CONTEXTMENU="blank:contextmenu",f.SELECTION_MOUSEDOWN="selection:mousedown",f.SELECTION_DRAGSTART="selection:dragstart",f.SELECTION_DRAG="selection:drag",f.SELECTION_DROP="selection:drop",f.SELECTION_MOUSEMOVE="selection:mousemove",f.SELECTION_MOUSEUP="selection:mouseup",f.SELECTION_CONTEXTMENU="selection:contextmenu",f.CONNECTION_NOT_ALLOWED="connection:not-allowed",f.HISTORY_CHANGE="history:change",f.TEXT_UPDATE="text:update",f.GRAPH_TRANSFORM="graph:transform",f.GRAPH_RENDERED="graph:rendered"}($n||($n={})),function(f){f.HORIZONTAL="horizontal",f.VERTICAL="vertical"}(go||(go={}));var Ro,zo,rw,ow,Yv,Zd,B0,Ud,Zv;function Hd(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return V0(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return V0(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  124. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function V0(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function zu(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function OE(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function Qu(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Ls(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}(function(f){f[f.DEFAULT=0]="DEFAULT",f[f.INCREASE=1]="INCREASE"})(Ro||(Ro={}));var iw={false:[-1/0,-1/0,1/0,1/0],true:[0,0,0,0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},aw=(zo=function(){function f(g,O){(function(M,j){if(!(M instanceof j))throw new TypeError("Cannot call a class as a function")})(this,f),Qu(this,"MINI_SCALE_SIZE",.2),Qu(this,"MAX_SCALE_SIZE",16),zu(this,"SCALE_X",rw,this),zu(this,"SKEW_Y",ow,this),zu(this,"SKEW_X",Yv,this),zu(this,"SCALE_Y",Zd,this),zu(this,"TRANSLATE_X",B0,this),zu(this,"TRANSLATE_Y",Ud,this),zu(this,"ZOOM_SIZE",Zv,this),Qu(this,"eventCenter",void 0),Qu(this,"translateLimitMinX",void 0),Qu(this,"translateLimitMinY",void 0),Qu(this,"translateLimitMaxX",void 0),Qu(this,"translateLimitMaxY",void 0),this.eventCenter=g;var _=O.stopMoveGraph,x=_!==void 0&&_;this.updateTranslateLimits(x)}var c,h;return c=f,h=[{key:"setZoomMiniSize",value:function(g){this.MINI_SCALE_SIZE=g}},{key:"setZoomMaxSize",value:function(g){this.MAX_SCALE_SIZE=g}},{key:"HtmlPointToCanvasPoint",value:function(g){var O=Hd(g,2),_=O[0],x=O[1];return[(_-this.TRANSLATE_X)/this.SCALE_X,(x-this.TRANSLATE_Y)/this.SCALE_Y]}},{key:"CanvasPointToHtmlPoint",value:function(g){var O=Hd(g,2),_=O[0],x=O[1];return[_*this.SCALE_X+this.TRANSLATE_X,x*this.SCALE_Y+this.TRANSLATE_Y]}},{key:"moveCanvasPointByHtml",value:function(g,O,_){var x=Hd(g,2),M=x[0],j=x[1];return[M+O/this.SCALE_X,j+_/this.SCALE_Y]}},{key:"fixDeltaXY",value:function(g,O){return[g/this.SCALE_X,O/this.SCALE_Y]}},{key:"getTransformStyle",value:function(){var g=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(g,")")}}},{key:"zoom",value:function(){var g=arguments.length>0&&arguments[0]!==void 0&&arguments[0],O=arguments.length>1?arguments[1]:void 0,_=this.SCALE_X,x=this.SCALE_Y;return g===!0?(_+=this.ZOOM_SIZE,x+=this.ZOOM_SIZE):g===!1?(_-=this.ZOOM_SIZE,x-=this.ZOOM_SIZE):typeof g=="number"&&(_=g,x=g),_<this.MINI_SCALE_SIZE||_>this.MAX_SCALE_SIZE||(O&&(this.TRANSLATE_X-=(_-this.SCALE_X)*O[0],this.TRANSLATE_Y-=(x-this.SCALE_Y)*O[1]),this.SCALE_X=_,this.SCALE_Y=x,this.emitGraphTransform("zoom")),"".concat(100*this.SCALE_X,"%")}},{key:"emitGraphTransform",value:function(g){this.eventCenter.emit($n.GRAPH_TRANSFORM,{type:g,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}})}},{key:"resetZoom",value:function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")}},{key:"translate",value:function(g,O){this.TRANSLATE_X+g<=this.translateLimitMaxX&&this.TRANSLATE_X+g>=this.translateLimitMinX&&(this.TRANSLATE_X+=g),this.TRANSLATE_Y+O<=this.translateLimitMaxY&&this.TRANSLATE_Y+O>=this.translateLimitMinY&&(this.TRANSLATE_Y+=O),this.emitGraphTransform("translate")}},{key:"focusOn",value:function(g,O,_,x){var M=Hd(this.CanvasPointToHtmlPoint([g,O]),2),j=_/2-M[0],U=x/2-M[1];this.TRANSLATE_X+=j,this.TRANSLATE_Y+=U,this.emitGraphTransform("focusOn")}},{key:"updateTranslateLimits",value:function(g){var O=Hd(Array.isArray(g)&&g.length===4?g:iw[g.toString()],4);this.translateLimitMinX=O[0],this.translateLimitMinY=O[1],this.translateLimitMaxX=O[2],this.translateLimitMaxY=O[3]}}],h&&OE(c.prototype,h),f}(),rw=Ls(zo.prototype,"SCALE_X",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),ow=Ls(zo.prototype,"SKEW_Y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Yv=Ls(zo.prototype,"SKEW_X",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Zd=Ls(zo.prototype,"SCALE_Y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),B0=Ls(zo.prototype,"TRANSLATE_X",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ud=Ls(zo.prototype,"TRANSLATE_Y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Zv=Ls(zo.prototype,"ZOOM_SIZE",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return .04}}),Ls(zo.prototype,"zoom",[a.k],Object.getOwnPropertyDescriptor(zo.prototype,"zoom"),zo.prototype),Ls(zo.prototype,"resetZoom",[a.k],Object.getOwnPropertyDescriptor(zo.prototype,"resetZoom"),zo.prototype),Ls(zo.prototype,"translate",[a.k],Object.getOwnPropertyDescriptor(zo.prototype,"translate"),zo.prototype),Ls(zo.prototype,"focusOn",[a.k],Object.getOwnPropertyDescriptor(zo.prototype,"focusOn"),zo.prototype),zo),Uv=function(f,c){for(var h=-1,g=f==null?0:f.length;++h<g&&c(f[h],h,f)!==!1;);return f},sw=function(f,c){return f&&Gl(c,Cc(c),f)},lw=function(f){var c=[];if(f!=null)for(var h in Object(f))c.push(h);return c},uw=Object.prototype.hasOwnProperty,F0=function(f){if(!eo(f))return lw(f);var c=Ul(f),h=[];for(var g in f)(g!="constructor"||!c&&uw.call(f,g))&&h.push(g);return h},Xd=function(f){return ii(f)?Mo(f,!0):F0(f)},z0=function(f,c){return f&&Gl(c,Xd(c),f)},Hv=o(107),Sr=function(f,c){var h=-1,g=f.length;for(c||(c=Array(g));++h<g;)c[h]=f[h];return c},wE=function(f,c){return Gl(f,_a(f),c)},Q0=cs(Object.getPrototypeOf,Object),Gd=Object.getOwnPropertySymbols?function(f){for(var c=[];f;)ll(c,_a(f)),f=Q0(f);return c}:Rv,cw=function(f,c){return Gl(f,Gd(f),c)},SE=function(f){return Mv(f,Xd,Gd)},xE=Object.prototype.hasOwnProperty,Bs=function(f){var c=f.length,h=new f.constructor(c);return c&&typeof f[0]=="string"&&xE.call(f,"index")&&(h.index=f.index,h.input=f.input),h},W0=function(f){var c=new f.constructor(f.byteLength);return new Ni(c).set(new Ni(f)),c},Xv=function(f,c){var h=c?W0(f.buffer):f.buffer;return new f.constructor(h,f.byteOffset,f.byteLength)},Y0=/\w*$/,fw=function(f){var c=new f.constructor(f.source,Y0.exec(f));return c.lastIndex=f.lastIndex,c},Z0=Ft?Ft.prototype:void 0,Qa=Z0?Z0.valueOf:void 0,$c=function(f){return Qa?Object(Qa.call(f)):{}},Gv=function(f,c){var h=c?W0(f.buffer):f.buffer;return new f.constructor(h,f.byteOffset,f.length)},dw=function(f,c,h){var g=f.constructor;switch(c){case"[object ArrayBuffer]":return W0(f);case"[object Boolean]":case"[object Date]":return new g(+f);case"[object DataView]":return Xv(f,h);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Gv(f,h);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(f);case"[object RegExp]":return fw(f);case"[object Symbol]":return $c(f)}},Zp=Object.create,hw=function(){function f(){}return function(c){if(!eo(c))return{};if(Zp)return Zp(c);f.prototype=c;var h=new f;return f.prototype=void 0,h}}(),qv=function(f){return typeof f.constructor!="function"||Ul(f)?{}:hw(Q0(f))},pw=function(f){return jr(f)&&Q(f)=="[object Map]"},Kv=Oi.a&&Oi.a.isMap,U0=Kv?cl(Kv):pw,Ac=function(f){return jr(f)&&Q(f)=="[object Set]"},gw=Oi.a&&Oi.a.isSet,Mc=gw?cl(gw):Ac,H0="[object Arguments]",X0="[object Function]",G0="[object Object]",vo={};vo[H0]=vo["[object Array]"]=vo["[object ArrayBuffer]"]=vo["[object DataView]"]=vo["[object Boolean]"]=vo["[object Date]"]=vo["[object Float32Array]"]=vo["[object Float64Array]"]=vo["[object Int8Array]"]=vo["[object Int16Array]"]=vo["[object Int32Array]"]=vo["[object Map]"]=vo["[object Number]"]=vo["[object Object]"]=vo["[object RegExp]"]=vo["[object Set]"]=vo["[object String]"]=vo["[object Symbol]"]=vo["[object Uint8Array]"]=vo["[object Uint8ClampedArray]"]=vo["[object Uint16Array]"]=vo["[object Uint32Array]"]=!0,vo["[object Error]"]=vo[X0]=vo["[object WeakMap]"]=!1;var vw=function f(c,h,g,O,_,x){var M,j=1&h,U=2&h,te=4&h;if(g&&(M=_?g(c,O,_,x):g(c)),M!==void 0)return M;if(!eo(c))return c;var de=lo(c);if(de){if(M=Bs(c),!j)return Sr(c,M)}else{var Oe=Q(c),Ne=Oe==X0||Oe=="[object GeneratorFunction]";if(Object(Yl.a)(c))return Object(Hv.a)(c,j);if(Oe==G0||Oe==H0||Ne&&!_){if(M=U||Ne?{}:qv(c),!j)return U?cw(c,z0(M,c)):wE(c,sw(M,c))}else{if(!vo[Oe])return _?c:{};M=dw(c,Oe,j)}}x||(x=new Wl);var Ge=x.get(c);if(Ge)return Ge;x.set(c,M),Mc(c)?c.forEach(function(ft){M.add(f(ft,h,g,ft,c,x))}):U0(c)&&c.forEach(function(ft,dt){M.set(dt,f(ft,h,g,dt,c,x))});var nt=de?void 0:(te?U?SE:fl:U?Xd:Cc)(c);return Uv(nt||c,function(ft,dt){nt&&(ft=c[dt=ft]),Fd(M,dt,f(ft,h,g,dt,c,x))}),M},Co=function(f){return vw(f,5)},Jv=function(f,c,h){(h!==void 0&&!Je(f[c],h)||h===void 0&&!(c in f))&&Bv(f,c,h)},Wa=function(f){return jr(f)&&ii(f)},Jl=Function.prototype,em=Object.prototype,jf=Jl.toString,mw=em.hasOwnProperty,yw=jf.call(Object),bw=function(f){if(!jr(f)||Dr(f)!="[object Object]")return!1;var c=Q0(f);if(c===null)return!0;var h=mw.call(c,"constructor")&&c.constructor;return typeof h=="function"&&h instanceof h&&jf.call(h)==yw},Rc=function(f,c){if((c!=="constructor"||typeof f[c]!="function")&&c!="__proto__")return f[c]},Up=function(f){return Gl(f,Xd(f))},_w=function(f,c,h,g,O,_,x){var M=Rc(f,h),j=Rc(c,h),U=x.get(j);if(U)Jv(f,h,U);else{var te=_?_(M,j,h+"",f,c,x):void 0,de=te===void 0;if(de){var Oe=lo(j),Ne=!Oe&&Object(Yl.a)(j),Ge=!Oe&&!Ne&&Mf(j);te=j,Oe||Ne||Ge?lo(M)?te=M:Wa(M)?te=Sr(M):Ne?(de=!1,te=Object(Hv.a)(j,!0)):Ge?(de=!1,te=Gv(j,!0)):te=[]:bw(j)||ul(j)?(te=M,ul(M)?te=Up(M):eo(M)&&!ci(M)||(te=qv(j))):de=!1}de&&(x.set(j,te),O(te,j,g,_,x),x.delete(j)),Jv(f,h,te)}},Ow=function f(c,h,g,O,_){c!==h&&H1(h,function(x,M){if(_||(_=new Wl),eo(x))_w(c,h,M,g,f,O,_);else{var j=O?O(Rc(c,M),x,M+"",c,h,_):void 0;j===void 0&&(j=x),Jv(c,M,j)}},Xd)},Hp=G1(function(f,c,h){Ow(f,c,h)}),ww={baseNode:{fill:"#FFFFFF",stroke:"#000000",strokeWidth:2},baseEdge:{stroke:"#000000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000000",fill:"#FFFFFF",r:4,hover:{fill:"#949494",fillOpacity:.5,stroke:"#949494",r:10}},nodeText:{color:"#000000",overflowMode:"default",lineHeight:1.2,fontSize:12},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#FFFFFF"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",stroke:"#949494",fillOpacity:1}},arrow:{offset:10,verticalLength:5},anchorLine:{stroke:"#000000",strokeWidth:2,strokeDasharray:"3,2"},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#FFFFFF",stroke:"#949494",strokeWidth:2},outline:{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}},Xp=function(f){var c=Co(ww);return f&&(c=Hp(c,f)),c};o(82),o(166);function q0(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}var tm=function(){function f(){var g,O,_;(function(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")})(this,f),_={},(O="_events")in(g=this)?Object.defineProperty(g,O,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[O]=_}var c,h;return c=f,(h=[{key:"on",value:function(g,O,_){var x=this;return g==null||g.split(",").forEach(function(M){M=M.trim(),x._events[M]||(x._events[M]=[]),x._events[M].push({callback:O,once:!!_})}),this}},{key:"once",value:function(g,O){var _=this;g==null||g.split(",").forEach(function(x){return x=x.trim(),_.on(x,O,!0)})}},{key:"emit",value:function(g,O){var _=this;g==null||g.split(",").forEach(function(x){var M=_._events[x]||[],j=_._events["*"]||[],U=function(te){for(var de=te.length,Oe=0;Oe<de;Oe++)if(te[Oe]){var Ne=te[Oe],Ge=Ne.callback;Ne.once&&(te.splice(Oe,1),te.length===0&&delete _._events[x],de--,Oe--),Ge.apply(_,[O])}};U(M),U(j)})}},{key:"off",value:function(g,O){var _=this;return g||(this._events={}),g.split(",").forEach(function(x){if(O){for(var M=_._events[x]||[],j=M.length,U=0;U<j;U++)M[U].callback===O&&(M.splice(U,1),j--,U--);M.length===0&&delete _._events[x]}else delete _._events[x]}),this}},{key:"getEvents",value:function(){return this._events}}])&&q0(c.prototype,h),f}();function eu(f,c){return c*Math.round(f/c)||f}function qd(f,c){return f%c}function nm(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return rm(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return rm(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  125. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function rm(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}var K0,om=function(f,c,h){var g=nm(f,2),O=g[0],_=g[1],x=nm(c,2),M=x[0],j=x[1],U=nm(h,2),te=U[0],de=U[1];return O>M&&O<te&&_>j&&_<de},tu=function(f,c){var h=!1;switch(c.multipleSelectKey){case"meta":h=f.metaKey;break;case"alt":h=f.altKey;break;case"shift":h=f.shiftKey;break;case"ctrl":h=f.ctrlKey;break;default:h=!1}return h},Sw=(o(167),o(126),o(83),o(29),o(12),o(13),o(14),o(47),new Uint8Array(16));function xw(){if(!K0&&!(K0=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return K0(Sw)}for(var kE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,kw=function(f){return typeof f=="string"&&kE.test(f)},Eo=[],Gp=0;Gp<256;++Gp)Eo.push((Gp+256).toString(16).substr(1));var J0=function(f){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h=(Eo[f[c+0]]+Eo[f[c+1]]+Eo[f[c+2]]+Eo[f[c+3]]+"-"+Eo[f[c+4]]+Eo[f[c+5]]+"-"+Eo[f[c+6]]+Eo[f[c+7]]+"-"+Eo[f[c+8]]+Eo[f[c+9]]+"-"+Eo[f[c+10]]+Eo[f[c+11]]+Eo[f[c+12]]+Eo[f[c+13]]+Eo[f[c+14]]+Eo[f[c+15]]).toLowerCase();if(!kw(h))throw TypeError("Stringified UUID is invalid");return h},qp=function(f,c,h){var g=(f=f||{}).random||(f.rng||xw)();if(g[6]=15&g[6]|64,g[8]=63&g[8]|128,c){h=h||0;for(var O=0;O<16;++O)c[h+O]=g[O];return c}return J0(g)},pl=function(){return qp()},Kd=function(f){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",h=f.nodes.reduce(function(g,O){return g[O.id]=c+qp(),O.id=g[O.id],g},{});return f.edges.forEach(function(g){g.id=c+qp(),g.sourceNodeId=h[g.sourceNodeId],g.targetNodeId=h[g.targetNodeId]}),f},Qn=(o(105),o(127),function(f,c,h){var g=f.x,O=f.y;return(g-c.x)*(g-h.x)<=0&&(O-c.y)*(O-h.y)<=0});function Jd(f){return Jd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},Jd(f)}function im(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function Nc(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?im(Object(h),!0).forEach(function(g){eb(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):im(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function eb(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var $t,Yi,tb,nb,Cw,nu,la,am,sm,Ew,eh,rb,ob,ib,ab,Tw,lm,sb,th,um,lb,cm=function(f){return f.anchors},Lf=function(f,c){for(var h,g=c.nodes,O=g.length-1;O>=0;O--){var _=g[O];if($w(f,_)){var x=_.getTargetAnchor(f);if(x){var M={node:_,anchorIndex:x.index,anchor:x.anchor};h&&!Pw(_,h.node,c)||(h=M)}}}return h},Pw=function(f,c,h){return f.zIndex>c.zIndex||h.nodesMap[f.id].index>h.nodesMap[c.id].index},hi=function(f,c,h,g){return Math.hypot(f-h,c-g)},Ya=function(f,c){var h=!1,g=ps(c);return f.x>=g.minX-0&&f.x<=g.maxX+0&&f.y>=g.minY-0&&f.y<=g.maxY+0&&(h=!0),h},$w=function(f,c){var h=!1,g=ps(c);return f.x>=g.minX-5&&f.x<=g.maxX+5&&f.y>=g.minY-5&&f.y<=g.maxY+5&&(h=!0),h},ps=function(f){var c=f.x,h=f.y,g=f.width,O=f.height;return{minX:c-g/2,minY:h-O/2,maxX:c+g/2,maxY:h+O/2,x:c,y:h,width:g,height:O,centerX:c,centerY:h}},Aw=function(f,c,h){var g,O=function(x){var M=x,j=M.x,U=M.y,te=M.width,de=M.height,Oe=M.radius;return[{x:j-te/2+Oe,y:U-de/2+Oe,r:Oe},{x:j+te/2-Oe,y:U-de/2+Oe,r:Oe},{x:j-te/2+Oe,y:U+de/2-Oe,r:Oe},{x:j+te/2-Oe,y:U+de/2-Oe,r:Oe}]}(h),_=Number.MAX_SAFE_INTEGER;return O.forEach(function(x){var M=hi(f.x,f.y,x.x,x.y);M<_&&(_=M,g=x)}),ub(f,c,g)},ub=function(f,c,h){var g,O=h,_=O.x,x=O.y,M=O.r;if(c===go.HORIZONTAL){var j=_-Math.sqrt(M*M-(f.y-x)*(f.y-x)),U=_+Math.sqrt(M*M-(f.y-x)*(f.y-x));g={x:Math.abs(j-f.x)<Math.abs(U-f.x)?j:U,y:f.y}}else if(c===go.VERTICAL){var te=x-Math.sqrt(M*M-(f.x-_)*(f.x-_)),de=x+Math.sqrt(M*M-(f.x-_)*(f.x-_)),Oe=Math.abs(te-f.y)<Math.abs(de-f.y)?te:de;g={x:f.x,y:Oe}}return g},cb=function(f,c){var h=c,g=!1,O=h.x-h.width/2+h.radius,_=h.x+h.width/2-h.radius,x=h.y-h.height/2+h.radius,M=h.y+h.height/2-h.radius,j=h.x,U=h.y,te=h.width,de=h.height;return f.y===U+de/2||f.y===U-de/2?g=f.x>O&&f.x<_:f.x!==j+te/2&&f.x!==j-te/2||(g=f.y>x&&f.y<M),g},fb=function(f,c,h){var g,O=h,_=O.x,x=O.y,M=O.rx,j=O.ry;if(c===go.HORIZONTAL){var U=_-Math.sqrt(M*M-(f.y-x)*(f.y-x)*M*M/(j*j)),te=_+Math.sqrt(M*M-(f.y-x)*(f.y-x)*M*M/(j*j));g={x:Math.abs(U-f.x)<Math.abs(te-f.x)?U:te,y:f.y}}else if(c===go.VERTICAL){var de=x-Math.sqrt(j*j-(f.x-_)*(f.x-_)*j*j/(M*M)),Oe=x+Math.sqrt(j*j-(f.x-_)*(f.x-_)*j*j/(M*M)),Ne=Math.abs(de-f.y)<Math.abs(Oe-f.y)?de:Oe;g={x:f.x,y:Ne}}return g},db=function(f,c,h){for(var g,O=h.pointsPosition,_=Number.MAX_SAFE_INTEGER,x=[],M=0;M<O.length;M++)x.push({start:O[M],end:O[(M+1)%O.length]});return x.forEach(function(j){var U=j.start,te=j.end,de=U,Oe=te;U.x>te.x&&(de=te,Oe=U);var Ne={x:f.x,y:f.y};if(de.x===Oe.x&&c===go.HORIZONTAL&&(Ne={x:de.x,y:f.y}),de.y===Oe.y&&c===go.VERTICAL&&(Ne={x:f.x,y:de.y}),de.x!==Oe.x&&de.y!==Oe.y){var Ge=(Oe.y-de.y)/(Oe.x-de.x),nt=(de.x*Oe.y-Oe.x*de.y)/(de.x-Oe.x);c===go.HORIZONTAL?Ne={x:(f.y-nt)/Ge,y:f.y}:c===go.VERTICAL&&(Ne={x:f.x,y:Ge*f.x+nt})}if(Qn(Ne,U,te)){var ft=hi(Ne.x,Ne.y,f.x,f.y);ft<_&&(_=ft,g=Ne)}}),g},hb=function(f,c,h,g){var O=f.x,_=f.y;return c.x>f.x?O=f.x+h/2:c.x<f.x&&(O=f.x-h/2),c.y>f.y?_=f.y+g/2:c.y<f.y&&(_=f.y-g/2),{x:O,y:_}},Mw=function(f){var c=f.rows,h=f.style,g=f.rowsLength,O=f.className,_=document.createElement("div");_.style.fontSize=h.fontSize,_.style.width=h.width,_.className=O,_.style.lineHeight=h.lineHeight,_.style.padding=h.padding,h.fontFamily&&(_.style.fontFamily=h.fontFamily),g>1?c.forEach(function(M){var j=document.createElement("div");j.textContent=M,_.appendChild(j)}):_.textContent=c,document.body.appendChild(_);var x=_.clientHeight;return document.body.removeChild(_),x},pb=function(f){var c=f.rows,h=f.rowsLength,g=f.fontSize,O=0;return c&&c.forEach(function(_){var x=jb(_);O=x>O?x:O}),{width:Math.ceil(O/2)*g+g/4,height:h*(g+2)+g/4}},Kp=function(f){return Jd(f)!=="object"?{isAllPass:!!f,msg:f?"":"\u4E0D\u5141\u8BB8\u8FDE\u63A5"}:f},mo=function(f){try{return JSON.parse(JSON.stringify(f))}catch{return f}},CE=1e3,Rw=999,gb=function(){return++CE};function fm(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function Za(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?fm(Object(h),!0).forEach(function(g){Ua(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):fm(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function pi(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function EE(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function Ua(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Zn(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var vb=($t=function(){function f(g,O){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,f),Ua(this,"id",""),pi(this,"type",Yi,this),pi(this,"sourceNodeId",tb,this),pi(this,"targetNodeId",nb,this),pi(this,"startPoint",Cw,this),pi(this,"endPoint",nu,this),pi(this,"text",la,this),pi(this,"properties",am,this),pi(this,"points",sm,this),pi(this,"pointsList",Ew,this),pi(this,"isSelected",eh,this),pi(this,"isHovered",rb,this),pi(this,"isHitable",ob,this),pi(this,"draggable",ib,this),pi(this,"visible",ab,this),Ua(this,"virtual",!1),pi(this,"isAnimation",Tw,this),pi(this,"isShowAdjustPoint",lm,this),Ua(this,"graphModel",void 0),pi(this,"zIndex",sb,this),Ua(this,"BaseType",ai.EDGE),Ua(this,"modelType",wr.EDGE),pi(this,"state",th,this),Ua(this,"additionStateData",void 0),Ua(this,"sourceAnchorId",""),Ua(this,"targetAnchorId",""),Ua(this,"menu",void 0),Ua(this,"customTextPosition",!1),pi(this,"style",um,this),pi(this,"arrowConfig",lb,this),this.graphModel=O,this.initEdgeData(g),this.setAttributes()}var c,h;return c=f,h=[{key:"initEdgeData",value:function(g){if(g.properties||(g.properties={}),!g.id){var O=this.graphModel.idGenerator,_=O&&O(g.type),x=this.createId();g.id=x||_||pl()}this.arrowConfig.markerEnd="url(#marker-end-".concat(g.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(g.id,")");var M=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=M,Si(this,Xw(g)),this.graphModel.overlapMode===Ro.INCREASE&&(this.zIndex=g.zIndex||gb()),this.setAnchors(),this.initPoints(),this.formatText(g)}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"getEdgeStyle",value:function(){return Za(Za({},this.graphModel.theme.baseEdge),this.style)}},{key:"getAdjustPointStyle",value:function(){return Za({},this.graphModel.theme.edgeAdjust)}},{key:"getTextStyle",value:function(){var g=this.graphModel.theme.edgeText;return Co(g)}},{key:"getEdgeAnimationStyle",value:function(){var g=this.graphModel.theme.edgeAnimation;return Co(g)}},{key:"getArrowStyle",value:function(){var g=this.getEdgeStyle(),O=this.getEdgeAnimationStyle(),_=this.graphModel.theme.arrow,x=this.isAnimation?O.stroke:g.stroke;return Za(Za({},g),{},{fill:x,stroke:x},_)}},{key:"getOutlineStyle",value:function(){var g=this.graphModel.theme.outline;return Co(g)}},{key:"getTextPosition",value:function(){return{x:0,y:0}}},{key:"sourceNode",get:function(){var g,O;return(g=this.graphModel)===null||g===void 0||(O=g.nodesMap[this.sourceNodeId])===null||O===void 0?void 0:O.model}},{key:"targetNode",get:function(){var g,O;return(g=this.graphModel)===null||g===void 0||(O=g.nodesMap[this.targetNodeId])===null||O===void 0?void 0:O.model}},{key:"textPosition",get:function(){return this.getTextPosition()}},{key:"getBeginAnchor",value:function(g,O){var _,x;return cm(g).forEach(function(M){var j=Vb(M,O);(x===void 0||j<x)&&(x=j,_=M)}),_}},{key:"getEndAnchor",value:function(g){var O,_,x=this;return cm(g).forEach(function(M){var j=Vb(M,x.startPoint);(_===void 0||j<_)&&(_=j,O=M)}),O}},{key:"getProperties",value:function(){return Object(a.I)(this.properties)}},{key:"getData",value:function(){var g=this.text,O=g.x,_=g.y,x=g.value,M={id:this.id,type:this.type,sourceNodeId:this.sourceNode.id,targetNodeId:this.targetNode.id,startPoint:Object.assign({},this.startPoint),endPoint:Object.assign({},this.endPoint),properties:Object(a.I)(this.properties)};return x&&(M.text={x:O,y:_,value:x}),this.graphModel.overlapMode===Ro.INCREASE&&(M.zIndex=this.zIndex),M}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"setProperty",value:function(g,O){this.properties[g]=mo(O),this.setAttributes()}},{key:"deleteProperty",value:function(g){delete this.properties[g],this.setAttributes()}},{key:"setProperties",value:function(g){this.properties=Za(Za({},Object(a.I)(this.properties)),mo(g)),this.setAttributes()}},{key:"changeEdgeId",value:function(g){var O=this.arrowConfig,_=O.markerEnd,x=O.markerStart;x&&x==="url(#marker-start-".concat(this.id,")")&&(this.arrowConfig.markerStart="url(#marker-start-".concat(g,")")),_&&_==="url(#marker-end-".concat(this.id,")")&&(this.arrowConfig.markerEnd="url(#marker-end-".concat(g,")")),this.id=g}},{key:"setStyle",value:function(g,O){this.style=Za(Za({},this.style),{},Ua({},g,mo(O)))}},{key:"setStyles",value:function(g){this.style=Za(Za({},this.style),mo(g))}},{key:"updateStyles",value:function(g){this.style=Za({},mo(g))}},{key:"formatText",value:function(g){var O=this.textPosition,_=O.x,x=O.y;g.text&&typeof g.text!="string"?Object.prototype.toString.call(g.text)==="[object Object]"&&(this.text={x:g.text.x||_,y:g.text.y||x,value:g.text.value||"",draggable:this.text.draggable,editable:this.text.editable}):this.text={value:g.text||"",x:_,y:x,draggable:this.text.draggable,editable:this.text.editable}}},{key:"resetTextPosition",value:function(){var g=this.textPosition,O=g.x,_=g.y;this.text.x=O,this.text.y=_}},{key:"moveText",value:function(g,O){if(this.text){var _=this.text,x=_.x,M=_.y,j=_.value,U=_.draggable,te=_.editable;this.text={value:j,draggable:U,x:x+g,y:M+O,editable:te}}}},{key:"setText",value:function(g){g&&Si(this.text,g)}},{key:"updateText",value:function(g){this.text=Za(Za({},Object(a.I)(this.text)),{},{value:g})}},{key:"setAnchors",value:function(){if(!this.sourceAnchorId||!this.startPoint){var g=this.getBeginAnchor(this.sourceNode,this.targetNode);if(!(g||this.startPoint&&this.sourceAnchorId))throw new Error("\u65E0\u6CD5\u83B7\u53D6beginAnchor\uFF0C\u8BF7\u68C0\u67E5anchors\u76F8\u5173\u903B\u8F91\uFF0Canchors\u4E0D\u80FD\u4E3A\u7A7A");this.startPoint||(this.startPoint={x:g.x,y:g.y}),this.sourceAnchorId||(this.sourceAnchorId=g.id)}if(!this.targetAnchorId||!this.endPoint){var O=this.getEndAnchor(this.targetNode);if(!(O||this.endPoint&&this.targetAnchorId))throw new Error("\u65E0\u6CD5\u83B7\u53D6endAnchor\uFF0C\u8BF7\u68C0\u67E5anchors\u76F8\u5173\u903B\u8F91\uFF0Canchors\u4E0D\u80FD\u4E3A\u7A7A");this.endPoint||(this.endPoint={x:O.x,y:O.y}),this.targetAnchorId||(this.targetAnchorId=O.id)}}},{key:"setSelected",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=g}},{key:"setHovered",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=g}},{key:"setHitable",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=g}},{key:"openEdgeAnimation",value:function(){this.isAnimation=!0}},{key:"closeEdgeAnimation",value:function(){this.isAnimation=!1}},{key:"setElementState",value:function(g,O){this.state=g,this.additionStateData=O}},{key:"updateStartPoint",value:function(g){this.startPoint=g}},{key:"moveStartPoint",value:function(g,O){this.startPoint.x+=g,this.startPoint.y+=O}},{key:"updateEndPoint",value:function(g){this.endPoint=g}},{key:"moveEndPoint",value:function(g,O){this.endPoint.x+=g,this.endPoint.y+=O}},{key:"setZIndex",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.zIndex=g}},{key:"initPoints",value:function(){}},{key:"updateAttributes",value:function(g){Si(this,g)}},{key:"getAdjustStart",value:function(){return this.startPoint}},{key:"getAdjustEnd",value:function(){return this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(g){var O=g.startPoint,_=g.endPoint;this.updateStartPoint({x:O.x,y:O.y}),this.updateEndPoint({x:_.x,y:_.y})}}],h&&EE(c.prototype,h),f}(),Yi=Zn($t.prototype,"type",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),tb=Zn($t.prototype,"sourceNodeId",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),nb=Zn($t.prototype,"targetNodeId",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Cw=Zn($t.prototype,"startPoint",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),nu=Zn($t.prototype,"endPoint",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),la=Zn($t.prototype,"text",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),am=Zn($t.prototype,"properties",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),sm=Zn($t.prototype,"points",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ew=Zn($t.prototype,"pointsList",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),eh=Zn($t.prototype,"isSelected",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),rb=Zn($t.prototype,"isHovered",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ob=Zn($t.prototype,"isHitable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ib=Zn($t.prototype,"draggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ab=Zn($t.prototype,"visible",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tw=Zn($t.prototype,"isAnimation",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lm=Zn($t.prototype,"isShowAdjustPoint",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),sb=Zn($t.prototype,"zIndex",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),th=Zn($t.prototype,"state",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),um=Zn($t.prototype,"style",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),lb=Zn($t.prototype,"arrowConfig",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")}}}),Zn($t.prototype,"sourceNode",[a.m],Object.getOwnPropertyDescriptor($t.prototype,"sourceNode"),$t.prototype),Zn($t.prototype,"targetNode",[a.m],Object.getOwnPropertyDescriptor($t.prototype,"targetNode"),$t.prototype),Zn($t.prototype,"textPosition",[a.m],Object.getOwnPropertyDescriptor($t.prototype,"textPosition"),$t.prototype),Zn($t.prototype,"setProperty",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setProperty"),$t.prototype),Zn($t.prototype,"deleteProperty",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"deleteProperty"),$t.prototype),Zn($t.prototype,"setProperties",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setProperties"),$t.prototype),Zn($t.prototype,"changeEdgeId",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"changeEdgeId"),$t.prototype),Zn($t.prototype,"setStyle",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setStyle"),$t.prototype),Zn($t.prototype,"setStyles",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setStyles"),$t.prototype),Zn($t.prototype,"updateStyles",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"updateStyles"),$t.prototype),Zn($t.prototype,"formatText",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"formatText"),$t.prototype),Zn($t.prototype,"resetTextPosition",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"resetTextPosition"),$t.prototype),Zn($t.prototype,"moveText",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"moveText"),$t.prototype),Zn($t.prototype,"setText",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setText"),$t.prototype),Zn($t.prototype,"updateText",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"updateText"),$t.prototype),Zn($t.prototype,"setAnchors",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setAnchors"),$t.prototype),Zn($t.prototype,"setSelected",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setSelected"),$t.prototype),Zn($t.prototype,"setHovered",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setHovered"),$t.prototype),Zn($t.prototype,"setHitable",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setHitable"),$t.prototype),Zn($t.prototype,"openEdgeAnimation",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"openEdgeAnimation"),$t.prototype),Zn($t.prototype,"closeEdgeAnimation",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"closeEdgeAnimation"),$t.prototype),Zn($t.prototype,"setElementState",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setElementState"),$t.prototype),Zn($t.prototype,"updateStartPoint",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"updateStartPoint"),$t.prototype),Zn($t.prototype,"moveStartPoint",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"moveStartPoint"),$t.prototype),Zn($t.prototype,"updateEndPoint",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"updateEndPoint"),$t.prototype),Zn($t.prototype,"moveEndPoint",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"moveEndPoint"),$t.prototype),Zn($t.prototype,"setZIndex",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"setZIndex"),$t.prototype),Zn($t.prototype,"initPoints",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"initPoints"),$t.prototype),Zn($t.prototype,"updateAttributes",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"updateAttributes"),$t.prototype),Zn($t.prototype,"getAdjustStart",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"getAdjustStart"),$t.prototype),Zn($t.prototype,"getAdjustEnd",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"getAdjustEnd"),$t.prototype),Zn($t.prototype,"updateAfterAdjustStartAndEnd",[a.k],Object.getOwnPropertyDescriptor($t.prototype,"updateAfterAdjustStartAndEnd"),$t.prototype),$t),mb=vb;function yb(f){return yb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},yb(f)}function Nw(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function Iw(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?Nw(Object(h),!0).forEach(function(g){jw(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Nw(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function TE(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function Dw(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function nh(){return nh=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=PE(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},nh.apply(this,arguments)}function PE(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Bf(f))!==null;);return f}function bb(f,c){return bb=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},bb(f,c)}function $E(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=Bf(f);if(c){var O=Bf(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return AE(this,h)}}function AE(f,c){if(c&&(yb(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _b(f)}function _b(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Bf(f){return Bf=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Bf(f)}function jw(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var ur,Lw,Vf=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&bb(_,x)})(O,f);var c,h,g=$E(O);function O(){var _;TE(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return jw(_b(_=g.call.apply(g,[this].concat(M))),"modelType",wr.LINE_EDGE),_}return c=O,(h=[{key:"getEdgeStyle",value:function(){var _=this.graphModel.theme.line;return Iw(Iw({},nh(Bf(O.prototype),"getEdgeStyle",this).call(this)),Co(_))}},{key:"getTextPosition",value:function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}}])&&Dw(c.prototype,h),O}(mb);function Ob(f){return Ob=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},Ob(f)}function ME(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return Jp(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return Jp(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  126. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Jp(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function wb(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function Sb(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?wb(Object(h),!0).forEach(function(g){kb(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):wb(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function xb(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function Bw(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function Vw(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function eg(){return eg=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=RE(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},eg.apply(this,arguments)}function RE(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Wu(f))!==null;);return f}function rh(f,c){return rh=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},rh(f,c)}function dm(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=Wu(f);if(c){var O=Wu(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return NE(this,h)}}function NE(f,c){if(c&&(Ob(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ff(f)}function Ff(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Wu(f){return Wu=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Wu(f)}function kb(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function To(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var hm=(ur=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&rh(_,x)})(O,f);var c,h,g=dm(O);function O(){var _;Bw(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return kb(Ff(_=g.call.apply(g,[this].concat(M))),"modelType",wr.POLYLINE_EDGE),kb(Ff(_),"draggingPointList",void 0),xb(Ff(_),"dbClickPosition",Lw,Ff(_)),_}return c=O,(h=[{key:"initEdgeData",value:function(_){this.offset=30,eg(Wu(O.prototype),"initEdgeData",this).call(this,_)}},{key:"getEdgeStyle",value:function(){var _=this.graphModel.theme.polyline;return Sb(Sb({},eg(Wu(O.prototype),"getEdgeStyle",this).call(this)),Co(_))}},{key:"getTextPosition",value:function(){var _,x=(_=this.text)===null||_===void 0?void 0:_.value;if(this.dbClickPosition&&!x){var M=this.dbClickPosition;return{x:M.x,y:M.y}}var j=Dc(this.points),U=ME(Zw(j),2),te=U[0],de=U[1];return{x:(te.x+de.x)/2,y:(te.y+de.y)/2}}},{key:"getAfterAnchor",value:function(_,x,M){var j,U;return M.forEach(function(te){var de;_===go.HORIZONTAL?de=Math.abs(x.y-te.y):_===go.VERTICAL&&(de=Math.abs(x.x-te.x)),(!U||U>de)&&(U=de,j=te)}),j}},{key:"getCrossPoint",value:function(_,x,M){var j;return _===go.HORIZONTAL?j={x:M.x,y:x.y}:_===go.VERTICAL&&(j={x:x.x,y:M.y}),j}},{key:"removeCrossPoints",value:function(_,x,M){var j=M.map(function(dt){return dt});if(_===1){var U=j[_],te=j[x],de=j[_-1];if(Nb(de,U,this.sourceNode)){if(Ib(U,te,this.sourceNode)){var Oe=gi(U,te,this.sourceNode);Oe&&(j[_]=Oe,j.splice(_-1,1),_--,x--)}}else this.sourceNode.anchors.forEach(function(dt){(dt.x===de.x&&dt.x===U.x||dt.y===de.y&&dt.y===U.y)&&hi(dt.x,dt.y,U.x,U.y)<hi(de.x,de.y,U.x,U.y)&&(j[_-1]=dt)})}if(x===M.length-2){var Ne=j[_],Ge=j[x],nt=j[x+1];if(Nb(Ge,nt,this.targetNode)){if(Ib(Ne,Ge,this.targetNode)){var ft=gi(Ne,Ge,this.targetNode);ft&&(j[x]=ft,j.splice(x+1,1))}}else this.targetNode.anchors.forEach(function(dt){(dt.x===nt.x&&dt.x===Ge.x||dt.y===nt.y&&dt.y===Ge.y)&&hi(dt.x,dt.y,Ge.x,Ge.y)<hi(nt.x,nt.y,Ge.x,Ge.y)&&(j[x+1]=dt)})}return j}},{key:"getDraggingPoints",value:function(_,x,M,j,U){var te=U.map(function(Ne){return Ne}),de=this.getAfterAnchor(_,M,j),Oe=this.getCrossPoint(_,M,de);return x==="start"?(te.unshift(Oe),te.unshift(de)):(te.push(Oe),te.push(de)),te}},{key:"updateCrossPoints",value:function(_){var x=_.map(function(Rt){return Rt}),M=_[0],j=_[1],U=_[x.length-2],te=_[x.length-1],de=this.sourceNode,Oe=this.targetNode,Ne=de.modelType,Ge=Oe.modelType,nt=Di(M,j),ft=x[0];switch(Ne){case wr.RECT_NODE:de.radius!==0&&(cb(M,de)||(ft=Aw(M,nt,de)));break;case wr.CIRCLE_NODE:ft=ub(M,nt,de);break;case wr.ELLIPSE_NODE:ft=fb(M,nt,de);break;case wr.DIAMOND_NODE:case wr.POLYGON_NODE:ft=db(M,nt,de)}x[0]=ft;var dt=Di(U,te),yt=x[x.length-1];switch(Ge){case wr.RECT_NODE:Oe.radius!==0&&(cb(te,Oe)||(yt=Aw(te,dt,Oe)));break;case wr.CIRCLE_NODE:yt=ub(te,dt,Oe);break;case wr.ELLIPSE_NODE:yt=fb(te,dt,Oe);break;case wr.DIAMOND_NODE:case wr.POLYGON_NODE:yt=db(te,dt,Oe)}return x[x.length-1]=yt,x}},{key:"getData",value:function(){var _=eg(Wu(O.prototype),"getData",this).call(this),x=this.pointsList.map(function(M){return{x:M.x,y:M.y}});return Object.assign({},_,{pointsList:x})}},{key:"initPoints",value:function(){this.pointsList.length>0?this.points=this.pointsList.map(function(_){return"".concat(_.x,",").concat(_.y)}).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var _=ig({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.points=_.map(function(x){return"".concat(x.x,",").concat(x.y)}).join(" ")}},{key:"updateStartPoint",value:function(_){this.startPoint=_,this.updatePoints()}},{key:"moveStartPoint",value:function(_,x){this.startPoint.x+=_,this.startPoint.y+=x,this.updatePoints()}},{key:"updateEndPoint",value:function(_){this.endPoint=_,this.updatePoints()}},{key:"moveEndPoint",value:function(_,x){this.endPoint.x+=_,this.endPoint.y+=x,this.updatePoints()}},{key:"dragAppendStart",value:function(){this.draggingPointList=this.pointsList.map(function(_){return _})}},{key:"dragAppendSimple",value:function(_,x){this.isDragging=!0;var M=_.start,j=_.end,U=_.startIndex,te=_.endIndex,de=_.direction,Oe=this.pointsList,Ne=Oe;return de===go.HORIZONTAL?(Oe[U]={x:M.x,y:M.y+x.y},Oe[te]={x:j.x,y:j.y+x.y},Ne=this.pointsList.map(function(Ge){return Ge})):de===go.VERTICAL&&(Oe[U]={x:M.x+x.x,y:M.y},Oe[te]={x:j.x+x.x,y:j.y},Ne=this.pointsList.map(function(Ge){return Ge})),this.updatePointsAfterDrag(Ne),this.draggingPointList=Ne,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},Oe[U]),end:Object.assign({},Oe[te]),startIndex:U,endIndex:te,direction:de}}},{key:"dragAppend",value:function(_,x){this.isDragging=!0;var M=_.start,j=_.end,U=_.startIndex,te=_.endIndex,de=_.direction,Oe=this.pointsList;if(de===go.HORIZONTAL){Oe[U]={x:M.x,y:M.y+x.y},Oe[te]={x:j.x,y:j.y+x.y};var Ne=this.pointsList.map(function(an){return an});if(U!==0&&te!==this.pointsList.length-1&&(Ne=this.removeCrossPoints(U,te,Ne)),U===0){var Ge={x:M.x,y:M.y+x.y};if(!Ya(Ge,this.sourceNode)){var nt=this.sourceNode.anchors;Ne=this.getDraggingPoints(de,"start",Ge,nt,Ne)}}if(te===this.pointsList.length-1){var ft={x:j.x,y:j.y+x.y};if(!Ya(ft,this.targetNode)){var dt=this.targetNode.anchors;Ne=this.getDraggingPoints(de,"end",ft,dt,Ne)}}this.updatePointsAfterDrag(Ne),this.draggingPointList=Ne}else if(de===go.VERTICAL){Oe[U]={x:M.x+x.x,y:M.y},Oe[te]={x:j.x+x.x,y:j.y};var yt=this.pointsList.map(function(an){return an});if(U!==0&&te!==this.pointsList.length-1&&(yt=this.removeCrossPoints(U,te,yt)),U===0){var Rt={x:M.x+x.x,y:M.y};if(!Ya(Rt,this.sourceNode)){var on=this.sourceNode.anchors;yt=this.getDraggingPoints(de,"start",Rt,on,yt)}}if(te===this.pointsList.length-1){var dn={x:j.x+x.x,y:j.y};if(!Ya(dn,this.targetNode)){var zn=this.targetNode.anchors;yt=this.getDraggingPoints(de,"end",dn,zn,yt)}}this.updatePointsAfterDrag(yt),this.draggingPointList=yt}return this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},Oe[U]),end:Object.assign({},Oe[te]),startIndex:U,endIndex:te,direction:de}}},{key:"dragAppendEnd",value:function(){if(this.draggingPointList){var _=og(Dc(this.points));this.pointsList=_.map(function(j){return j}),this.draggingPointList=[];var x=_[0];this.startPoint=Object.assign({},x);var M=_[_.length-1];this.endPoint=Object.assign({},M)}this.isDragging=!1}},{key:"updatePointsAfterDrag",value:function(_){var x=this.updateCrossPoints(_);this.points=x.map(function(M){return"".concat(M.x,",").concat(M.y)}).join(" ")}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var _=this.pointsList;return _[_.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(_){var x=_.startPoint,M=_.endPoint,j=_.sourceNode,U=_.targetNode,te=ig({x:x.x,y:x.y},{x:M.x,y:M.y},j,U,this.offset||0);this.pointsList=te,this.initPoints()}}])&&Vw(c.prototype,h),O}(mb),Lw=To(ur.prototype,"dbClickPosition",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),To(ur.prototype,"initPoints",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"initPoints"),ur.prototype),To(ur.prototype,"updatePoints",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"updatePoints"),ur.prototype),To(ur.prototype,"updateStartPoint",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"updateStartPoint"),ur.prototype),To(ur.prototype,"moveStartPoint",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"moveStartPoint"),ur.prototype),To(ur.prototype,"updateEndPoint",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"updateEndPoint"),ur.prototype),To(ur.prototype,"moveEndPoint",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"moveEndPoint"),ur.prototype),To(ur.prototype,"dragAppendStart",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"dragAppendStart"),ur.prototype),To(ur.prototype,"dragAppendSimple",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"dragAppendSimple"),ur.prototype),To(ur.prototype,"dragAppend",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"dragAppend"),ur.prototype),To(ur.prototype,"dragAppendEnd",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"dragAppendEnd"),ur.prototype),To(ur.prototype,"updatePointsAfterDrag",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"updatePointsAfterDrag"),ur.prototype),To(ur.prototype,"getAdjustStart",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"getAdjustStart"),ur.prototype),To(ur.prototype,"getAdjustEnd",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"getAdjustEnd"),ur.prototype),To(ur.prototype,"updateAfterAdjustStartAndEnd",[a.k],Object.getOwnPropertyDescriptor(ur.prototype,"updateAfterAdjustStartAndEnd"),ur.prototype),ur),tg=function(f){var c=f.start,h=f.end,g=f.offset,O=f.verticalLength,_=f.type,x={leftX:0,leftY:0,rightX:0,rightY:0},M=Math.atan((h.y-c.y)/(h.x-c.x)),j=Math.atan(g/O),U=Math.sqrt(O*O+g*g);return _==="start"?h.x>=c.x?(x.leftX=c.x+U*Math.sin(M+j),x.leftY=c.y-U*Math.cos(M+j),x.rightX=c.x-U*Math.sin(M-j),x.rightY=c.y+U*Math.cos(M-j)):(x.leftX=c.x-U*Math.sin(M+j),x.leftY=c.y+U*Math.cos(M+j),x.rightX=c.x+U*Math.sin(M-j),x.rightY=c.y-U*Math.cos(M-j)):_==="end"&&(h.x>=c.x?(x.leftX=h.x+U*Math.sin(M-j),x.leftY=h.y-U*Math.cos(M-j),x.rightX=h.x-U*Math.sin(M+j),x.rightY=h.y+U*Math.cos(M+j)):(x.leftX=h.x-U*Math.sin(M-j),x.leftY=h.y+U*Math.cos(M-j),x.rightX=h.x+U*Math.sin(M+j),x.rightY=h.y-U*Math.cos(M+j))),x},zf={x:1,y:0,z:0};function dr(f,c,h,g,O){for(var _=function(Ge){if(Ge<0||Ge>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:f.x*Math.pow(1-Ge,3)+3*c.x*Ge*Math.pow(1-Ge,2)+3*h.x*Math.pow(Ge,2)*(1-Ge)+g.x*Math.pow(Ge,3),y:f.y*Math.pow(1-Ge,3)+3*c.y*Ge*Math.pow(1-Ge,2)+3*h.y*Math.pow(Ge,2)*(1-Ge)+g.y*Math.pow(Ge,3)}},x=0,M=2,j=g.x,U=g.y,te=g;x<O&&M<50;){var de=te=_(1-M/100),Oe=de.x,Ne=de.y;x=hi(j,U,Oe,Ne),M++}return te}function Fw(f){var c=Math.hypot(f.x,f.y);return{x:f.x/c,y:f.y/c,z:0}}function ka(f){return g=function(_,x){return _.x*x.y-_.y*x.x}(c=zf,h=f),O=Math.acos(function(_,x){var M=[_.x,_.y,_.z];return[x.x,x.y,x.z].reduce(function(j,U,te){return j+U*M[te]})}(Fw(c),Fw(h))),g>=0?O:-O;var c,h,g,O}function qo(f){return f*(180/Math.PI)}function Yu(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function pm(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?Yu(Object(h),!0).forEach(function(g){Cb(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Yu(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function Cb(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Zu(f){return function(c){if(Array.isArray(c))return Io(c)}(f)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(f)||No(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  127. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function gm(f){return gm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},gm(f)}function Qf(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||No(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  128. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function No(f,c){if(f){if(typeof f=="string")return Io(f,c);var h=Object.prototype.toString.call(f).slice(8,-1);return h==="Object"&&f.constructor&&(h=f.constructor.name),h==="Map"||h==="Set"?Array.from(f):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?Io(f,c):void 0}}function Io(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}var zw=function(f,c){var h;switch(f.type){case"line":default:h=new Vf(f,c);break;case"polyline":h=new hm(f,c)}return h},Eb=function(f,c){return 2*Math.abs(f.centerX-c.centerX)<f.width+c.width&&2*Math.abs(f.centerY-c.centerY)<f.height+c.height},Uu=function(f){var c=[],h={};return f.forEach(function(g){var O="".concat(g.x,"-").concat(g.y);g.id=O,h[O]=g}),Object.keys(h).forEach(function(g){c.push(h[g])}),c},Tb=function(f,c){var h=[f,{x:f.x,y:c.y},c];return Uu(h)},oh=function(f,c){return f.width===0&&f.height===0?f:{centerX:f.centerX,centerY:f.centerY,minX:f.minX-c,minY:f.minY-c,maxX:f.maxX+c,maxY:f.maxY+c,height:f.height+2*c,width:f.width+2*c}},ng=function(f,c){var h=Math.abs(f.x-c.centerX),g=Math.abs(f.y-c.centerY);return h/c.width>g/c.height?go.HORIZONTAL:go.VERTICAL},Zi=function(f,c,h){return ng(h,c)===go.HORIZONTAL?{x:h.x>f.centerX?f.maxX:f.minX,y:h.y}:{x:h.x,y:h.y>f.centerY?f.maxY:f.minY}},Ic=function(f,c){var h=Math.min(f.minX,c.minX),g=Math.min(f.minY,c.minY),O=Math.max(f.maxX,c.maxX),_=Math.max(f.maxY,c.maxY);return{centerX:(h+O)/2,centerY:(g+_)/2,minX:h,minY:g,maxX:O,maxY:_,height:_-g,width:O-h}},ih=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0,h=[],g=[];f.forEach(function(te){h.push(te.x),g.push(te.y)});var O=Math.min.apply(Math,h),_=Math.max.apply(Math,h),x=Math.min.apply(Math,g),M=Math.max.apply(Math,g),j=_-O,U=M-x;return c&&(j+=c,U+=c),{centerX:(O+_)/2,centerY:(x+M)/2,maxX:_,maxY:M,minX:O,minY:x,x:(O+_)/2,y:(x+M)/2,height:U,width:j}},rg=function(f){var c=f.minX,h=f.minY,g=f.maxX,O=f.maxY;return[{x:c,y:h},{x:g,y:h},{x:g,y:O},{x:c,y:O}]},ah=function(f,c){var h=f.x,g=f.y;return h<c.minX||h>c.maxX||g<c.minY||g>c.maxY},ru=function(f,c){return c<f.minX||c>f.maxX?[]:[{x:c,y:f.minY},{x:c,y:f.maxY}]},vr=function(f,c){return c<f.minY||c>f.maxY?[]:[{x:f.minX,y:c},{x:f.maxX,y:c}]},Pb=function(f,c){return ru(f,c.x).concat(vr(f,c.y))},Ca=function(f,c){return Math.abs(f.x-c.x)+Math.abs(f.y-c.y)},$b=function(f,c){var h=0;return c.forEach(function(g){g&&(f.x===g.x&&(h+=-2),f.y===g.y&&(h+=-2))}),h},qr=function(f,c,h,g,O){return Ca(f,c)+Ca(f,h)+$b(f,[c,h,g,O])},Qw=function f(c,h,g,O,_){_||(_=0),c.unshift(h[O]),g[O]&&g[O]!==O&&_<=100&&f(c,h,g,g[O],_+1)},Ab=function(f,c){var h=f.indexOf(c);h>-1&&f.splice(h,1)},Hu=function(f,c,h,g){var O=c.x-f.x,_=c.y-f.y,x=g.x-h.x,M=g.y-h.y,j=(-_*(f.x-h.x)+O*(f.y-h.y))/(-x*_+O*M),U=(x*(f.y-h.y)-M*(f.x-h.x))/(-x*_+O*M);return j>=0&&j<=1&&U>=0&&U<=1},Mb=function(f,c,h){if(h.width===0&&h.height===0)return!1;var g=Qf(rg(h),4),O=g[0],_=g[1],x=g[2],M=g[3];return Hu(f,c,O,_)||Hu(f,c,O,M)||Hu(f,c,_,x)||Hu(f,c,x,M)},Ww=function(f,c,h,g){var O=[];return f.forEach(function(_){_!==c&&(_.x!==c.x&&_.y!==c.y||Mb(_,c,h)||Mb(_,c,g)||O.push(_))}),Uu(O)},Yw=function(f,c,h,g,O,_,x){var M=[],j=[c],U={},te={},de={};te[c.id]=0,de[c.id]=qr(c,h,c);var Oe={};f.forEach(function(nt){Oe[nt.id]=nt});for(var Ne=function(){var nt=void 0,ft=1/0;if(j.forEach(function(yt){de[yt.id]<ft&&(ft=de[yt.id],nt=yt)}),nt===h){var dt=[];return Qw(dt,Oe,U,h.id),{v:dt}}Ab(j,nt),M.push(nt),Ww(f,nt,g,O).forEach(function(yt){if(M.indexOf(yt)===-1){j.indexOf(yt)===-1&&j.push(yt);var Rt=de[nt.id]+Ca(nt,yt);te[yt.id]&&Rt>=te[yt.id]||(U[yt.id]=nt.id,te[yt.id]=Rt,de[yt.id]=te[yt.id]+qr(yt,h,c,_,x))}})};j.length;){var Ge=Ne();if(gm(Ge)==="object")return Ge.v}return[c,h]},Rb=function(f){return ps(f)},og=function(f){for(var c=1;c<f.length-1;){var h=f[c-1],g=f[c],O=f[c+1];h.x===g.x&&g.x===O.x||h.y===g.y&&g.y===O.y?f.splice(c,1):c++}return f},ig=function(f,c,h,g,O){var _=Rb(h),x=Rb(g),M=oh(_,O),j=oh(x,O),U=Zi(M,_,f),te=Zi(j,x,c);if(Eb(M,j)){var de=Db(f,c,U,te);return[f,U].concat(Zu(de),[te,c])}var Oe=ih([U,te]),Ne=Ic(M,Oe),Ge=Ic(j,Oe),nt=[];nt=(nt=nt.concat(rg(Ne))).concat(rg(Ge));var ft={x:(f.x+c.x)/2,y:(f.y+c.y)/2};[Oe,Ne,Ge].forEach(function(yt){nt=nt.concat(Pb(yt,ft).filter(function(Rt){return ah(Rt,M)&&ah(Rt,j)}))}),[{x:U.x,y:te.y},{x:te.x,y:U.y}].forEach(function(yt){ah(yt,M)&&ah(yt,j)&&nt.push(yt)}),nt.unshift(U),nt.push(te),nt=Uu(nt);var dt=Yw(nt,U,te,_,x,f,c);return dt.unshift(f),dt.push(c),dt.length>2&&(dt=og(dt)),Uu(dt)},Zw=function(f){var c;if(f.length===1)c=[f[0],f[0]];else if(f.length>=2){for(var h=f[0],g=f[1],O=hi(h.x,h.y,g.x,g.y),_=1;_<f.length-1;_++){var x=f[_],M=f[_+1],j=hi(x.x,x.y,M.x,M.y);j>O&&(O=j,h=x,g=M)}c=[h,g]}return c},Nb=function(f,c,h){var g=Ya(f,h),O=Ya(c,h);return g&&O},Ib=function(f,c,h){var g=Ya(f,h),O=Ya(c,h);return!(g&&O)&&(g||O)},gi=function(f,c,h){for(var g,O,_=ps(h),x=rg(_),M=0;M<x.length;M++)Hu(f,c,x[M],x[(M+1)%x.length])&&(O=[x[M],x[(M+1)%x.length]]);return O&&(g=function(j,U,te,de){var Oe=(U.y-j.y)*(de.x-te.x)-(j.x-U.x)*(te.y-de.y);if(Oe===0)return!1;var Ne=((U.x-j.x)*(de.x-te.x)*(te.y-j.y)+(U.y-j.y)*(de.x-te.x)*j.x-(de.y-te.y)*(U.x-j.x)*te.x)/Oe,Ge=-((U.y-j.y)*(de.y-te.y)*(te.x-j.x)+(U.x-j.x)*(de.y-te.y)*j.y-(de.x-te.x)*(U.y-j.y)*te.y)/Oe;return(Ne-j.x)*(Ne-U.x)<=0&&(Ge-j.y)*(Ge-U.y)<=0&&(Ne-te.x)*(Ne-de.x)<=0&&(Ge-te.y)*(Ge-de.y)<=0&&{x:Ne,y:Ge}}(f,c,O[0],O[1])),g},Di=function(f,c){var h;return f.x===c.x?h=go.VERTICAL:f.y===c.y&&(h=go.HORIZONTAL),h},Dc=function(f){var c=f.split(" "),h=[];return c&&c.forEach(function(g){var O=Qf(g.split(","),2),_=O[0],x=O[1];h.push({x:Number(_),y:Number(x)})}),h},Db=function(f,c,h,g){var O=[];if(Di(f,h)===Di(c,g))f.y===h.y?(O.push({x:h.x,y:(h.y+g.y)/2}),O.push({x:g.x,y:(h.y+g.y)/2})):(O.push({x:(h.x+g.x)/2,y:h.y}),O.push({x:(h.x+g.x)/2,y:g.y}));else{var _={x:h.x,y:g.y},x=Qn(_,f,h),M=Qn(_,c,g);if(x||M)_={x:g.x,y:h.y};else{var j=Uw(_,f,h),U=Uw(_,c,g);j&&U&&(_={x:g.x,y:h.y})}O.push(_)}return O},Uw=function(f,c,h){return f.x===c.x&&f.x===h.x||f.y===c.y&&f.y===h.y},jb=function(f){if(!f)return 0;for(var c=0,h=0;h<f.length;h++){var g=f.charCodeAt(h);f.match(/[A-Z]/)?c+=1.5:c+=g>=1&&g<=126||g>=65376&&g<=65439?1:2}return c},vm=null,Hw=function(f,c){vm||(vm=document.createElement("canvas"));var h=vm.getContext("2d");return h.font=c,h.measureText(f).width},Lb=function(f){var c,h=f.start,g=f.end;if(h.x===g.x&&h.y===g.y)c="";else{var O={start:h,end:g,offset:10,verticalLength:5},_=tg(pm(pm({},O),{},{type:"start"})),x=tg(pm(pm({},O),{},{type:"end"}));c="M".concat(_.leftX," ").concat(_.leftY,`
  129. L`).concat(_.rightX," ").concat(_.rightY,`
  130. L`).concat(x.rightX," ").concat(x.rightY,`
  131. L`).concat(x.leftX," ").concat(x.leftY," z")}return{d:c,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},jc=function(f){var c=f.start,h=f.end,g=f.sourceNode,O=f.targetNode,_=f.offset,x=ps(g),M=ps(O),j=oh(x,_),U=oh(M,_);return{sNext:Zi(j,x,c),ePre:Zi(U,M,h)}},mm=function(f){var c=f.replace(/M/g,"").replace(/C/g,",").split(",");return[ag(c[0]),ag(c[1]),ag(c[2]),ag(c[3])]},ag=function(f){var c=Qf(f.replace(/(^\s*)/g,"").split(" "),2);return{x:+c[0],y:+c[1]}},ym=function(f,c){var h=Qf(f,4);return[dr(h[0],h[1],h[2],h[3],c),f[3]]},Bb=function(f,c){for(var h,g=f.x,O=f.y,_=Dc(c),x=Number.MAX_SAFE_INTEGER,M=[],j=0;j<_.length;j++)M.push({start:_[j],end:_[(j+1)%_.length]});if(M.forEach(function(Oe){var Ne=Oe.start,Ge=Oe.end;if(Ne.x===Ge.x){var nt={x:Ne.x,y:O};if(Qn(nt,Ne,Ge)){var ft=Math.abs(Ne.x-g);ft<x&&(x=ft,h=nt)}}else if(Ne.y===Ge.y){var dt={x:g,y:Ne.y};if(Qn(dt,Ne,Ge)){var yt=Math.abs(Ne.y-O);yt<x&&(x=yt,h=dt)}}}),!h){var U=M[0],te=U.start,de=U.end;h={x:te.x+(de.x-te.x)/2,y:te.y+(de.y-te.y)/2}}return h},Xw=function(f){return Vu(f,["id","type","sourceNodeId","sourceAnchorId","targetNodeId","targetAnchorId","pointsList","startPoint","endPoint","properties"])},Vb=function(f,c){return Math.sqrt(Math.pow(f.x-c.x,2)+Math.pow(f.y-c.y,2))};function Gw(f,c){return typeof c!="function"?function(h,g,O){return Object.assign({type:f.edgeType},O)}:function(h,g,O){var _=c(h,g,O);return _?typeof _=="string"?Object.assign({},O,{type:_}):Object.assign({type:_},O):{type:f.edgeType}}}o(207);var Fb=function(){};function IE(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function Ko(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var gl=function(){function f(g){var O=this,_=g.onDragStart,x=_===void 0?Fb:_,M=g.onDragging,j=M===void 0?Fb:M,U=g.onDragEnd,te=U===void 0?Fb:U,de=g.eventType,Oe=de===void 0?"":de,Ne=g.eventCenter,Ge=Ne===void 0?null:Ne,nt=g.step,ft=nt===void 0?1:nt,dt=g.isStopPropagation,yt=dt===void 0||dt,Rt=g.model,on=Rt===void 0?null:Rt,dn=g.data,zn=dn===void 0?null:dn;(function(an,An){if(!(an instanceof An))throw new TypeError("Cannot call a class as a function")})(this,f),Ko(this,"onDragStart",void 0),Ko(this,"onDragging",void 0),Ko(this,"onDragEnd",void 0),Ko(this,"step",void 0),Ko(this,"isStopPropagation",void 0),Ko(this,"isDragging",!1),Ko(this,"isStartDragging",!1),Ko(this,"startX",0),Ko(this,"startY",0),Ko(this,"sumDeltaX",0),Ko(this,"sumDeltaY",0),Ko(this,"eventType",void 0),Ko(this,"eventCenter",void 0),Ko(this,"model",void 0),Ko(this,"data",void 0),Ko(this,"startTime",void 0),Ko(this,"handleMouseDown",function(an){var An,gn,Er,Rr=(An=window)===null||An===void 0?void 0:An.document;if(an.button===0){O.isStopPropagation&&an.stopPropagation(),O.isStartDragging=!0,O.startX=an.clientX,O.startY=an.clientY,Rr.addEventListener("mousemove",O.handleMouseMove,!1),Rr.addEventListener("mouseup",O.handleMouseUp,!1);var Jn=(gn=O.model)===null||gn===void 0?void 0:gn.getData();(Er=O.eventCenter)===null||Er===void 0||Er.emit($n["".concat(O.eventType,"_MOUSEDOWN")],{e:an,data:O.data||Jn}),O.startTime=new Date().getTime()}}),Ko(this,"handleMouseMove",function(an){if(O.isStopPropagation&&an.stopPropagation(),O.isStartDragging&&(O.sumDeltaX+=an.clientX-O.startX,O.sumDeltaY+=an.clientY-O.startY,O.startX=an.clientX,O.startY=an.clientY,O.step<=1||Math.abs(O.sumDeltaX)>O.step||Math.abs(O.sumDeltaY)>O.step)){var An,gn=O.sumDeltaX%O.step,Er=O.sumDeltaY%O.step,Rr=O.sumDeltaX-gn,Jn=O.sumDeltaY-Er;O.sumDeltaX=gn,O.sumDeltaY=Er;var Qr,si=(An=O.model)===null||An===void 0?void 0:An.getData();O.isDragging||((Qr=O.eventCenter)===null||Qr===void 0||Qr.emit($n["".concat(O.eventType,"_DRAGSTART")],{e:an,data:O.data||si}),O.onDragStart({event:an})),O.isDragging=!0,Promise.resolve().then(function(){var li,Ta;O.onDragging({deltaX:Rr,deltaY:Jn,event:an}),(li=O.eventCenter)===null||li===void 0||li.emit($n["".concat(O.eventType,"_MOUSEMOVE")],{e:an,data:O.data||si}),(Ta=O.eventCenter)===null||Ta===void 0||Ta.emit($n["".concat(O.eventType,"_DRAG")],{e:an,data:O.data||si})})}}),Ko(this,"handleMouseUp",function(an){var An=window.document;O.isStartDragging=!1,O.isStopPropagation&&an.stopPropagation(),Promise.resolve().then(function(){var gn,Er,Rr;An.removeEventListener("mousemove",O.handleMouseMove,!1),An.removeEventListener("mouseup",O.handleMouseUp,!1);var Jn=(gn=O.model)===null||gn===void 0?void 0:gn.getData();(Er=O.eventCenter)===null||Er===void 0||Er.emit($n["".concat(O.eventType,"_MOUSEUP")],{e:an,data:O.data||Jn}),O.isDragging&&(O.isDragging=!1,O.onDragEnd({event:an}),(Rr=O.eventCenter)===null||Rr===void 0||Rr.emit($n["".concat(O.eventType,"_DROP")],{e:an,data:O.data||Jn}))})}),Ko(this,"cancelDrag",function(){var an,An=(an=window)===null||an===void 0?void 0:an.document;An.removeEventListener("mousemove",O.handleMouseMove,!1),An.removeEventListener("mouseup",O.handleMouseUp,!1),O.onDragEnd({event:null}),O.isDragging=!1}),this.onDragStart=x,this.onDragging=j,this.onDragEnd=te,this.step=ft,this.isStopPropagation=yt,this.eventType=Oe,this.eventCenter=Ge,this.model=on,this.data=zn}var c,h;return c=f,(h=[{key:"setStep",value:function(g){this.step=g}},{key:"setModel",value:function(g){this.model=g}}])&&IE(c.prototype,h),f}();function bm(f){return bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},bm(f)}function zb(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function _m(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function Qb(f,c,h){return c&&_m(f.prototype,c),h&&_m(f,h),f}function Wb(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(c&&c.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),c&&lg(f,c)}function ua(f){var c=Om();return function(){var h,g=ug(f);if(c){var O=ug(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Yb(this,h)}}function Yb(f,c){if(c&&(bm(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wf(f)}function Wf(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Zb(f){var c=typeof Map=="function"?new Map:void 0;return Zb=function(h){if(h===null||(g=h,Function.toString.call(g).indexOf("[native code]")===-1))return h;var g;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,O)}function O(){return sg(h,arguments,ug(this).constructor)}return O.prototype=Object.create(h.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),lg(O,h)},Zb(f)}function sg(f,c,h){return sg=Om()?Reflect.construct:function(g,O,_){var x=[null];x.push.apply(x,O);var M=new(Function.bind.apply(g,x));return _&&lg(M,_.prototype),M},sg.apply(null,arguments)}function Om(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lg(f,c){return lg=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},lg(f,c)}function ug(f){return ug=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ug(f)}function Ub(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Hb(f,c){return f instanceof ji&&c instanceof ji}var qw=function(f){Wb(h,f);var c=ua(h);function h(g,O,_){var x;return zb(this,h),Ub(Wf(x=c.call(this,3)),"x",void 0),Ub(Wf(x),"y",void 0),Ub(Wf(x),"z",void 0),x[0]=g,x[1]=O,x[2]=_,x.x=g,x.y=O,x.z=_,Object.setPrototypeOf(Wf(x),h.prototype),x}return Qb(h,[{key:"add",value:function(g){if(Hb(this,g))return new ji(this.x+g.x,this.y+g.y);var O=this.z+g.z;return new sh((this.x+g.x)/O,(this.y+g.y)/O)}},{key:"subtract",value:function(g){if(Hb(this,g))return new ji(this.x-g.x,this.y-g.y);var O=this.z-g.z;return O===0?new ji(this.x-g.x,this.y-g.y):new sh((this.x-g.x)/O,(this.y-g.y)/O)}}]),h}(Zb(Array)),ji=function(f){Wb(h,f);var c=ua(h);function h(g,O,_){var x;return zb(this,h),x=c.call(this,g,O,_!=null?_:0),Object.setPrototypeOf(Wf(x),h.prototype),x}return Qb(h,[{key:"toString",value:function(){return"Vector"}},{key:"dot",value:function(g){var O=this;return g.reduce(function(_,x,M){return _+x*O[M]})}},{key:"cross",value:function(g){return new h(this.y*g.z-this.z*g.y,this.z*g.x-this.x*g.z,this.x*g.y-this.y*g.x)}},{key:"getLength",value:function(){return Math.hypot(this.x,this.y)}},{key:"normalize",value:function(){var g=this.getLength();return new h(this.x/g,this.y/g)}},{key:"crossZ",value:function(g){return this.x*g.y-this.y*g.x}},{key:"angle",value:function(g){var O=this.crossZ(g),_=Math.acos(this.normalize().dot(g.normalize()));return O>=0?_:-_}}]),h}(qw),sh=function(f){Wb(h,f);var c=ua(h);function h(g,O){var _;return zb(this,h),_=c.call(this,g,O,1),Object.setPrototypeOf(Wf(_),h.prototype),_}return Qb(h,[{key:"toString",value:function(){return"Point"}}]),h}(qw);o(67),o(217);function cg(f){return cg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},cg(f)}function Xb(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||Jw(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  132. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Kw(f){return function(c){if(Array.isArray(c))return Gb(c)}(f)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(f)||Jw(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  133. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Jw(f,c){if(f){if(typeof f=="string")return Gb(f,c);var h=Object.prototype.toString.call(f).slice(8,-1);return h==="Object"&&f.constructor&&(h=f.constructor.name),h==="Map"||h==="Set"?Array.from(f):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?Gb(f,c):void 0}}function Gb(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function lh(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function eS(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function wm(f,c,h){return c&&eS(f.prototype,c),h&&eS(f,h),f}function Sm(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(c&&c.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),c&&tt(f,c)}function S(f){var c=Ae();return function(){var h,g=it(f);if(c){var O=it(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return E(this,h)}}function E(f,c){if(c&&(cg(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(f)}function F(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ie(f){var c=typeof Map=="function"?new Map:void 0;return ie=function(h){if(h===null||(g=h,Function.toString.call(g).indexOf("[native code]")===-1))return h;var g;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,O)}function O(){return ge(h,arguments,it(this).constructor)}return O.prototype=Object.create(h.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),tt(O,h)},ie(f)}function ge(f,c,h){return ge=Ae()?Reflect.construct:function(g,O,_){var x=[null];x.push.apply(x,O);var M=new(Function.bind.apply(g,x));return _&&tt(M,_.prototype),M},ge.apply(null,arguments)}function Ae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tt(f,c){return tt=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},tt(f,c)}function it(f){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},it(f)}function ht(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var Ye,Mt,Ut,kn,Nn,Un,Bt,Kt,qn,On,Kn,or,Tr,jn=function(f){Sm(h,f);var c=S(h);function h(){var g;lh(this,h);for(var O=arguments.length,_=new Array(O),x=0;x<O;x++)_[x]=arguments[x];return ht(F(g=c.call(this,_.length)),"rows",void 0),ht(F(g),"columns",void 0),g.fill(new Array(3)),_.forEach(function(M,j){g[j]=M}),g.columns=_[0].length,g.rows=_.length,Object.setPrototypeOf(F(g),h.prototype),g}return wm(h,[{key:"getRow",value:function(g){return this[g]}},{key:"getColumn",value:function(g){return Kw(this.map(function(O){return O[g]}))}},{key:"transpose",value:function(){for(var g=[],O=0;O<this.columns;O++)g.push(this.getColumn(O));return ge(h,g)}},{key:"cross",value:function(g){var O=new Array(this.rows).fill("").map(function(){return[]});if(this.columns===g.rows)for(var _=0;_<this.rows;_++)for(var x=this.getRow(_),M=function(U){var te=g.getColumn(U);O[_][U]=x.reduce(function(de,Oe,Ne){return de+Oe*te[Ne]},0)},j=0;j<g.columns;j++)M(j);return ge(h,Kw(O))}},{key:"to2D",value:function(){return this.map(function(g){return[g[0],g[1]]})}},{key:"toPoints",value:function(){return this.map(function(g){return new sh(g[0],g[1])})}},{key:"toString",value:function(){var g=Xb(this[0],2),O=g[0],_=g[1],x=Xb(this[1],2),M=x[0],j=x[1],U=Xb(this[2],2),te=U[0],de=U[1];return"matrix(".concat(O," ").concat(_," ").concat(M," ").concat(j," ").concat(te," ").concat(de,")")}},{key:"translate",value:function(g,O){return this.cross(new Ui(g,O))}},{key:"rotate",value:function(g){return this.cross(new Hn(g))}},{key:"scale",value:function(g,O){return this.cross(new vi(g,O))}}]),h}(ie(Array)),Hn=function(f){Sm(h,f);var c=S(h);function h(g){var O;return lh(this,h),O=c.call(this,new ji(+Math.cos(g).toFixed(2),+Math.sin(g).toFixed(2),0),new ji(-Math.sin(g).toFixed(2),+Math.cos(g).toFixed(2),0),new ji(0,0,1)),Object.setPrototypeOf(F(O),h.prototype),O}return wm(h,[{key:"inverse",value:function(){return this.transpose()}}]),h}(jn),vi=function(f){Sm(h,f);var c=S(h);function h(g,O){var _;return lh(this,h),ht(F(_=c.call(this,new ji(g,0,0),new ji(0,O,0),new ji(0,0,1))),"sx",void 0),ht(F(_),"sy",void 0),_.sx=g,_.sy=O,Object.setPrototypeOf(F(_),h.prototype),_}return wm(h,[{key:"inverse",value:function(){return new h(1/this.sx,1/this.sy)}}]),h}(jn),Ui=function(f){Sm(h,f);var c=S(h);function h(g,O){var _;return lh(this,h),ht(F(_=c.call(this,new ji(1,0,0),new ji(0,1,0),new ji(g,O,1))),"tx",void 0),ht(F(_),"ty",void 0),_.tx=g,_.ty=O,Object.setPrototypeOf(F(_),h.prototype),_}return wm(h,[{key:"inverse",value:function(){return new h(-this.tx,-this.ty)}}]),h}(jn),vl={node:!1,edge:!1},xi={node:!0,edge:!0};function ou(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function ml(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?ou(Object(h),!0).forEach(function(g){vs(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):ou(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function Xu(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||Yf(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  134. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Gu(f){return function(c){if(Array.isArray(c))return qu(c)}(f)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(f)||Yf(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  135. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yf(f,c){if(f){if(typeof f=="string")return qu(f,c);var h=Object.prototype.toString.call(f).slice(8,-1);return h==="Object"&&f.constructor&&(h=f.constructor.name),h==="Map"||h==="Set"?Array.from(f):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?qu(f,c):void 0}}function qu(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function fg(f){return fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},fg(f)}function gs(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function xm(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function vs(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Ln(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var dg,qb=200,hg=(Ye=function(){function f(g){(function(Ne,Ge){if(!(Ne instanceof Ge))throw new TypeError("Cannot call a class as a function")})(this,f),vs(this,"rootEl",void 0),gs(this,"width",Mt,this),gs(this,"height",Ut,this),vs(this,"theme",void 0),vs(this,"eventCenter",void 0),vs(this,"modelMap",new Map),vs(this,"topElement",void 0),vs(this,"animation",void 0),vs(this,"idGenerator",void 0),vs(this,"edgeGenerator",void 0),vs(this,"nodeMoveRules",[]),vs(this,"customTrajectory",void 0),gs(this,"edgeType",kn,this),gs(this,"nodes",Nn,this),gs(this,"edges",Un,this),gs(this,"overlapMode",Bt,this),gs(this,"background",Kt,this),gs(this,"transformModel",qn,this),gs(this,"editConfigModel",On,this),gs(this,"gridSize",Kn,this),gs(this,"partial",or,this),gs(this,"fakerNode",Tr,this);var O,_=g.container,x=g.background,M=x===void 0?{}:x,j=g.grid,U=g.idGenerator,te=g.edgeGenerator,de=g.animation,Oe=g.customTrajectory;this.background=M,fg(j)==="object"&&(this.gridSize=j.size),this.rootEl=_,this.editConfigModel=new L0(g),this.eventCenter=new tm,this.transformModel=new aw(this.eventCenter,g),this.theme=Xp(g.style),this.edgeType=g.edgeType||"polyline",this.width=g.width,this.height=g.height,this.animation=(O=de)&&typeof O!="boolean"?Hp(Co(vl),O):Co(O===!0?xi:vl),this.partial=g.partial,this.overlapMode=g.overlapMode||0,this.idGenerator=U,this.customTrajectory=Oe,this.edgeGenerator=Gw(this,te),this.width=g.width||this.rootEl.getBoundingClientRect().width,this.height=g.height||this.rootEl.getBoundingClientRect().height,this.flowId=pl()}var c,h;return c=f,h=[{key:"nodesMap",get:function(){return this.nodes.reduce(function(g,O,_){return g[O.id]={index:_,model:O},g},{})}},{key:"edgesMap",get:function(){return this.edges.reduce(function(g,O,_){return g[O.id]={index:_,model:O},g},{})}},{key:"modelsMap",get:function(){return[].concat(Gu(this.nodes),Gu(this.edges)).reduce(function(g,O){return g[O.id]=O,g},{})}},{key:"sortElements",get:function(){var g=[];this.nodes.forEach(function(U){return g.push(U)}),this.edges.forEach(function(U){return g.push(U)}),g=g.sort(function(U,te){return U.zIndex-te.zIndex});for(var O=[],_=[-200,-200],x=[this.width+qb,this.height+qb],M=0;M<g.length;M++){var j=g[M];j.visible&&(!this.partial||j.isSelected||this.isElementInArea(j,_,x,!1,!1))&&O.push(j)}return O}},{key:"textEditElement",get:function(){var g=this.nodes.find(function(_){return _.state===Gr.TEXT_EDIT}),O=this.edges.find(function(_){return _.state===Gr.TEXT_EDIT});return g||O}},{key:"selectElements",get:function(){var g=new Map;return this.nodes.forEach(function(O){O.isSelected&&g.set(O.id,O)}),this.edges.forEach(function(O){O.isSelected&&g.set(O.id,O)}),g}},{key:"selectNodes",get:function(){var g=[];return this.nodes.forEach(function(O){O.isSelected&&g.push(O)}),g}},{key:"getAreaElement",value:function(g,O){var _=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],x=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],M=arguments.length>4&&arguments[4]!==void 0&&arguments[4],j=[],U=[];this.nodes.forEach(function(Oe){return U.push(Oe)}),this.edges.forEach(function(Oe){return U.push(Oe)});for(var te=0;te<U.length;te++){var de=U[te];M&&!de.visible||!this.isElementInArea(de,g,O,_,x)||j.push(de)}return j}},{key:"getModel",value:function(g){return this.modelMap.get(g)}},{key:"getNodeModelById",value:function(g){var O;return this.fakerNode&&g===this.fakerNode.id?this.fakerNode:(O=this.nodesMap[g])===null||O===void 0?void 0:O.model}},{key:"getPointByClient",value:function(g){var O=g.x,_=g.y,x=this.rootEl.getBoundingClientRect(),M={x:O-x.left,y:_-x.top},j=Xu(this.transformModel.HtmlPointToCanvasPoint([M.x,M.y]),2);return{domOverlayPosition:M,canvasOverlayPosition:{x:j[0],y:j[1]}}}},{key:"isElementInArea",value:function(g,O,_){var x=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],M=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];if(g.BaseType===ai.NODE){for(var j=ps(g=g),U=j.minX,te=j.minY,de=j.maxX,Oe=j.maxY,Ne=[{x:U,y:te},{x:de,y:te},{x:de,y:Oe},{x:U,y:Oe}],Ge=M,nt=0;nt<Ne.length;nt++){var ft=Ne[nt],dt=ft.x,yt=ft.y,Rt=this.transformModel.CanvasPointToHtmlPoint([dt,yt]),on=Xu(Rt,2);if(dt=on[0],yt=on[1],om([dt,yt],O,_)!==M){Ge=!M;break}}return Ge}if(g.BaseType===ai.EDGE){var dn=g=g,zn=dn.startPoint,an=dn.endPoint,An=this.transformModel.CanvasPointToHtmlPoint([zn.x,zn.y]),gn=this.transformModel.CanvasPointToHtmlPoint([an.x,an.y]),Er=om(An,O,_),Rr=om(gn,O,_);return x?Er&&Rr:Er||Rr}return!1}},{key:"graphDataToModel",value:function(g){var O=this;if(this.width&&this.height||this.resize(),!g)return this.nodes=[],void(this.edges=[]);g.nodes?this.nodes=jv(g.nodes,function(_){var x=O.getModel(_.type);if(!x)throw new Error("\u627E\u4E0D\u5230".concat(_.type,"\u5BF9\u5E94\u7684\u8282\u70B9\u3002"));var M=_.x,j=_.y;return M&&j&&(_.x=eu(M,O.gridSize),_.y=eu(j,O.gridSize),fg(_.text)==="object"&&(_.text.x-=qd(M,O.gridSize),_.text.y-=qd(j,O.gridSize))),new x(_,O)}):this.nodes=[],g.edges?this.edges=jv(g.edges,function(_){var x=O.getModel(_.type);if(!x)throw new Error("\u627E\u4E0D\u5230".concat(_.type,"\u5BF9\u5E94\u7684\u8FB9\u3002"));return new x(_,O)}):this.edges=[]}},{key:"modelToGraphData",value:function(){var g=[];this.edges.forEach(function(_){var x=_.getData();x&&!_.virtual&&g.push(x)});var O=[];return this.nodes.forEach(function(_){var x=_.getData();x&&!_.virtual&&O.push(x)}),{nodes:O,edges:g}}},{key:"modelToHistoryData",value:function(){for(var g=!1,O=[],_=0;_<this.nodes.length;_++){var x=this.nodes[_];if(x.isDragging){g=!0;break}O.push(x.getHistoryData())}if(g)return!1;for(var M=!1,j=[],U=0;U<this.edges.length;U++){var te=this.edges[U];if(te.isDragging){M=!0;break}j.push(te.getHistoryData())}return!M&&{nodes:O,edges:j}}},{key:"getEdgeModelById",value:function(g){var O;return(O=this.edgesMap[g])===null||O===void 0?void 0:O.model}},{key:"getElement",value:function(g){return this.modelsMap[g]}},{key:"getNodeEdges",value:function(g){for(var O=[],_=0;_<this.edges.length;_++){var x=this.edges[_],M=this.edges[_].sourceNodeId===g,j=this.edges[_].targetNodeId===g;(M||j)&&O.push(x)}return O}},{key:"getSelectElements",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],O=this.selectElements,_={nodes:[],edges:[]};return O.forEach(function(x){if(x.BaseType===ai.NODE&&_.nodes.push(x.getData()),x.BaseType===ai.EDGE){var M=x.getData(),j=O.get(M.sourceNodeId)&&O.get(M.targetNodeId);(g||j)&&_.edges.push(M)}}),_}},{key:"updateAttributes",value:function(g,O){this.getElement(g).updateAttributes(O)}},{key:"changeNodeId",value:function(g,O){return O||(O=pl()),this.nodesMap[O]?"":this.nodesMap[g]?(this.edges.forEach(function(_){_.sourceNodeId===g&&(_.sourceNodeId=O),_.targetNodeId===g&&(_.targetNodeId=O)}),this.nodesMap[g].model.id=O,this.nodesMap[O]=this.nodesMap[g],O):""}},{key:"changeEdgeId",value:function(g,O){return O||(O=pl()),this.edgesMap[O]?"":this.edgesMap[g]?(this.edges.forEach(function(_){_.id===g&&_.changeEdgeId(O)}),O):""}},{key:"setFakerNode",value:function(g){this.fakerNode=g}},{key:"removeFakerNode",value:function(){this.fakerNode=null}},{key:"setModel",value:function(g,O){return this.modelMap.set(g,O)}},{key:"toFront",value:function(g){var O,_,x,M=((O=this.nodesMap[g])===null||O===void 0?void 0:O.model)||((_=this.edgesMap[g])===null||_===void 0?void 0:_.model);M&&(this.overlapMode===Ro.DEFAULT&&((x=this.topElement)===null||x===void 0||x.setZIndex(),M.setZIndex(9999),this.topElement=M),this.overlapMode===Ro.INCREASE&&this.setElementZIndex(g,"top"))}},{key:"setElementZIndex",value:function(g,O){var _,x,M,j=((_=this.nodesMap[g])===null||_===void 0?void 0:_.model)||((x=this.edgesMap[g])===null||x===void 0?void 0:x.model);j&&(typeof O=="number"&&(M=O),O==="top"&&(M=gb()),O==="bottom"&&(M=--Rw),j.setZIndex(M))}},{key:"deleteNode",value:function(g){var O=this.nodesMap[g].model.getData();this.deleteEdgeBySource(g),this.deleteEdgeByTarget(g),this.nodes.splice(this.nodesMap[g].index,1),this.eventCenter.emit($n.NODE_DELETE,{data:O})}},{key:"addNode",value:function(g){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$n.NODE_ADD,_=arguments.length>2?arguments[2]:void 0,x=mo(g);x.id&&this.nodesMap[g.id]&&delete x.id;var M=this.getModel(x.type);if(!M)throw new Error("\u627E\u4E0D\u5230".concat(x.type,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));x.x=eu(x.x,this.gridSize),x.y=eu(x.y,this.gridSize);var j=new M(x,this);this.nodes.push(j);var U=j.getData(),te={data:U};return _&&(te.e=_),this.eventCenter.emit(O,te),j}},{key:"cloneNode",value:function(g){var O=this.getNodeModelById(g),_=O.getData();_.x+=30,_.y+=30,delete _.id,_.text&&(_.text.x+=30,_.text.y+=30);var x=this.addNode(_);return x.setSelected(!0),O.setSelected(!1),x.getData()}},{key:"moveNode",value:function(g,O,_){var x=arguments.length>3&&arguments[3]!==void 0&&arguments[3],M=this.nodesMap[g];if(M){var j=M.model,U=j.getMoveDistance(O,_,x),te=Xu(U,2);O=te[0],_=te[1],this.moveEdge(g,O,_)}}},{key:"moveNode2Coordinate",value:function(g,O,_){var x=arguments.length>3&&arguments[3]!==void 0&&arguments[3],M=this.nodesMap[g];if(M){var j=M.model,U=j.x,te=j.y,de=O-U,Oe=_-te;this.moveNode(g,de,Oe,x)}}},{key:"editText",value:function(g){this.setElementStateById(g,Gr.TEXT_EDIT)}},{key:"addEdge",value:function(g){var O=mo(g),_=O.type;_||(_=this.edgeType),O.id&&this.edgesMap[O.id]&&delete O.id;var x=this.getModel(_);if(!x)throw new Error("\u627E\u4E0D\u5230".concat(_,"\u5BF9\u5E94\u7684\u8FB9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8FB9\u3002"));var M=new x(ml(ml({},O),{},{type:_}),this),j=M.getData();return this.edges.push(M),this.eventCenter.emit($n.EDGE_ADD,{data:j}),M}},{key:"moveEdge",value:function(g,O,_){for(var x=0;x<this.edges.length;x++){var M=this.edges[x],j=M.textPosition,U=j.x,te=j.y,de=this.edges[x].sourceNodeId===g,Oe=this.edges[x].targetNodeId===g;de&&M.moveStartPoint(O,_),Oe&&M.moveEndPoint(O,_),(de||Oe)&&this.handleEdgeTextMove(M,U,te)}}},{key:"handleEdgeTextMove",value:function(g,O,_){var x;if(g.customTextPosition===!0)g.resetTextPosition();else if(g.modelType===wr.POLYLINE_EDGE&&(x=g.text)!==null&&x!==void 0&&x.value){var M=g.text,j=Bb(M,g.points);g.moveText(j.x-M.x,j.y-M.y)}else{var U=g.textPosition,te=U.x,de=U.y;g.moveText(te-O,de-_)}}},{key:"deleteEdgeBySourceAndTarget",value:function(g,O){for(var _=0;_<this.edges.length;_++)if(this.edges[_].sourceNodeId===g&&this.edges[_].targetNodeId===O){var x=this.edges[_].getData();this.edges.splice(_,1),_--,this.eventCenter.emit($n.EDGE_DELETE,{data:x})}}},{key:"deleteEdgeById",value:function(g){if(this.edgesMap[g]){var O=this.edgesMap[g].index,_=this.edgesMap[g].model.getData();this.edges.splice(O,1),this.eventCenter.emit($n.EDGE_DELETE,{data:_})}}},{key:"deleteEdgeBySource",value:function(g){for(var O=0;O<this.edges.length;O++)if(this.edges[O].sourceNodeId===g){var _=this.edges[O].getData();this.edges.splice(O,1),O--,this.eventCenter.emit($n.EDGE_DELETE,{data:_})}}},{key:"deleteEdgeByTarget",value:function(g){for(var O=0;O<this.edges.length;O++)if(this.edges[O].targetNodeId===g){var _=this.edges[O].getData();this.edges.splice(O,1),O--,this.eventCenter.emit($n.EDGE_DELETE,{data:_})}}},{key:"setElementStateById",value:function(g,O,_){this.nodes.forEach(function(x){x.id===g?x.setElementState(O,_):x.setElementState(Gr.DEFAULT)}),this.edges.forEach(function(x){x.id===g?x.setElementState(O,_):x.setElementState(Gr.DEFAULT)})}},{key:"updateText",value:function(g,O){this.nodes.forEach(function(_){_.id===g&&_.updateText(O)}),this.edges.forEach(function(_){_.id===g&&_.updateText(O)})}},{key:"selectNodeById",value:function(g){var O,_=arguments.length>1&&arguments[1]!==void 0&&arguments[1];_||this.clearSelectElements();var x=(O=this.nodesMap[g])===null||O===void 0?void 0:O.model;x==null||x.setSelected(!0)}},{key:"selectEdgeById",value:function(g){var O,_=arguments.length>1&&arguments[1]!==void 0&&arguments[1];_||this.clearSelectElements();var x=(O=this.edgesMap[g])===null||O===void 0?void 0:O.model;x==null||x.setSelected(!0)}},{key:"selectElementById",value:function(g){var O=arguments.length>1&&arguments[1]!==void 0&&arguments[1];O||this.clearSelectElements();var _=this.getElement(g);_==null||_.setSelected(!0)}},{key:"clearSelectElements",value:function(){var g;this.selectElements.forEach(function(O){O==null||O.setSelected(!1)}),this.selectElements.clear(),this.overlapMode===Ro.DEFAULT&&((g=this.topElement)===null||g===void 0||g.setZIndex())}},{key:"moveNodes",value:function(g,O,_){for(var x=this,M=arguments.length>3&&arguments[3]!==void 0&&arguments[3],j=g.reduce(function(on,dn){var zn=x.nodesMap[dn].model.getMoveDistance(O,_,M);return on[dn]=zn,on},{}),U=0;U<this.edges.length;U++){var te=this.edges[U],de=te.textPosition,Oe=de.x,Ne=de.y,Ge=j[te.sourceNodeId],nt=void 0,ft=void 0;if(Ge){var dt=Xu(Ge,2);nt=dt[0],ft=dt[1],te.moveStartPoint(nt,ft)}var yt=j[te.targetNodeId];if(yt){var Rt=Xu(yt,2);nt=Rt[0],ft=Rt[1],te.moveEndPoint(nt,ft)}(Ge||yt)&&this.handleEdgeTextMove(te,Oe,Ne)}}},{key:"addNodeMoveRules",value:function(g){this.nodeMoveRules.includes(g)||this.nodeMoveRules.push(g)}},{key:"setDefaultEdgeType",value:function(g){this.edgeType=g}},{key:"changeNodeType",value:function(g,O){var _=this.getNodeModelById(g);if(_){var x=_.getData();x.type=O;var M=this.getModel(O);if(!M)throw new Error("\u627E\u4E0D\u5230".concat(O,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var j=new M(x,this);this.nodes.splice(this.nodesMap[g].index,1,j),this.getNodeEdges(g).forEach(function(U){if(U.sourceNodeId===g){var te=hb(j,U.startPoint,j.width,j.height);U.updateStartPoint(te)}if(U.targetNodeId===g){var de=hb(j,U.endPoint,j.width,j.height);U.updateEndPoint(de)}})}}},{key:"changeEdgeType",value:function(g,O){var _=this.getEdgeModelById(g);if(_&&_.type!==O){var x=_.getData();x.type=O;var M=this.getModel(O);if(!M)throw new Error("\u627E\u4E0D\u5230".concat(O,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));delete x.pointsList;var j=new M(x,this);this.edges.splice(this.edgesMap[g].index,1,j)}}},{key:"getNodeIncomingEdge",value:function(g){var O=[];return this.edges.forEach(function(_){_.targetNodeId===g&&O.push(_)}),O}},{key:"getNodeOutgoingEdge",value:function(g){var O=[];return this.edges.forEach(function(_){_.sourceNodeId===g&&O.push(_)}),O}},{key:"getNodeIncomingNode",value:function(g){var O=this,_=[];return this.edges.forEach(function(x){x.targetNodeId===g&&_.push(O.nodesMap[x.sourceNodeId].model)}),_}},{key:"getNodeOutgoingNode",value:function(g){var O=this,_=[];return this.edges.forEach(function(x){x.sourceNodeId===g&&_.push(O.nodesMap[x.targetNodeId].model)}),_}},{key:"setTheme",value:function(g){this.theme=Xp(ml(ml({},this.theme),g))}},{key:"resize",value:function(g,O){this.width=g||this.rootEl.getBoundingClientRect().width,this.height=O||this.rootEl.getBoundingClientRect().height,!this.width||this.height}},{key:"clearData",value:function(){this.nodes=[],this.edges=[]}},{key:"getVirtualRectSize",value:function(){var g=this.nodes,O=[],_=[];g.forEach(function(de){var Oe=de.x,Ne=de.y,Ge=de.width,nt=de.height,ft=de.getNodeStyle().strokeWidth,dt=ft===void 0?0:ft,yt=Oe+Ge/2+dt,Rt=Oe-Ge/2-dt,on=Ne+nt/2+dt,dn=Ne-nt/2-dt;O=O.concat([yt,Rt].filter(function(zn){return!Number.isNaN(zn)})),_=_.concat([on,dn].filter(function(zn){return!Number.isNaN(zn)}))});var x=Math.min.apply(Math,Gu(O)),M=Math.max.apply(Math,Gu(O)),j=Math.min.apply(Math,Gu(_)),U=M-x||0,te=Math.max.apply(Math,Gu(_))-j||0;return{virtualRectWidth:U,virtualRectHeight:te,virtualRectCenterPositionX:x+U/2,virtualRectCenterPositionY:j+te/2}}},{key:"translateCenter",value:function(){var g=this.nodes,O=this.width,_=this.height,x=this.rootEl,M=this.transformModel;if(g.length){var j=O||x.clientWidth,U=_||x.clientHeight,te=this.getVirtualRectSize(),de=te.virtualRectCenterPositionX,Oe=te.virtualRectCenterPositionY;M.focusOn(de,Oe,j,U)}}},{key:"fitView",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:20,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,_=this.nodes,x=this.width,M=this.height,j=this.rootEl,U=this.transformModel;if(_.length){var te=x||j.clientWidth,de=M||j.clientHeight,Oe=this.getVirtualRectSize(),Ne=Oe.virtualRectWidth,Ge=Oe.virtualRectHeight,nt=Oe.virtualRectCenterPositionX,ft=Oe.virtualRectCenterPositionY,dt=(Ne+O)/te,yt=(Ge+g)/de,Rt=0;Rt=1/Math.max(dt,yt);var on=[te/2,de/2];U.zoom(Rt,on),U.focusOn(nt,ft,te,de)}}},{key:"openEdgeAnimation",value:function(g){this.getEdgeModelById(g).openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(g){this.getEdgeModelById(g).closeEdgeAnimation()}}],h&&xm(c.prototype,h),f}(),Mt=Ln(Ye.prototype,"width",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ut=Ln(Ye.prototype,"height",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kn=Ln(Ye.prototype,"edgeType",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nn=Ln(Ye.prototype,"nodes",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Un=Ln(Ye.prototype,"edges",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Bt=Ln(Ye.prototype,"overlapMode",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ro.DEFAULT}}),Kt=Ln(Ye.prototype,"background",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qn=Ln(Ye.prototype,"transformModel",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),On=Ln(Ye.prototype,"editConfigModel",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kn=Ln(Ye.prototype,"gridSize",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),or=Ln(Ye.prototype,"partial",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Tr=Ln(Ye.prototype,"fakerNode",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ln(Ye.prototype,"nodesMap",[a.m],Object.getOwnPropertyDescriptor(Ye.prototype,"nodesMap"),Ye.prototype),Ln(Ye.prototype,"edgesMap",[a.m],Object.getOwnPropertyDescriptor(Ye.prototype,"edgesMap"),Ye.prototype),Ln(Ye.prototype,"modelsMap",[a.m],Object.getOwnPropertyDescriptor(Ye.prototype,"modelsMap"),Ye.prototype),Ln(Ye.prototype,"sortElements",[a.m],Object.getOwnPropertyDescriptor(Ye.prototype,"sortElements"),Ye.prototype),Ln(Ye.prototype,"textEditElement",[a.m],Object.getOwnPropertyDescriptor(Ye.prototype,"textEditElement"),Ye.prototype),Ln(Ye.prototype,"selectElements",[a.m],Object.getOwnPropertyDescriptor(Ye.prototype,"selectElements"),Ye.prototype),Ln(Ye.prototype,"selectNodes",[a.m],Object.getOwnPropertyDescriptor(Ye.prototype,"selectNodes"),Ye.prototype),Ln(Ye.prototype,"setFakerNode",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"setFakerNode"),Ye.prototype),Ln(Ye.prototype,"removeFakerNode",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"removeFakerNode"),Ye.prototype),Ln(Ye.prototype,"setModel",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"setModel"),Ye.prototype),Ln(Ye.prototype,"toFront",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"toFront"),Ye.prototype),Ln(Ye.prototype,"setElementZIndex",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"setElementZIndex"),Ye.prototype),Ln(Ye.prototype,"deleteNode",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"deleteNode"),Ye.prototype),Ln(Ye.prototype,"addNode",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"addNode"),Ye.prototype),Ln(Ye.prototype,"cloneNode",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"cloneNode"),Ye.prototype),Ln(Ye.prototype,"moveNode",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"moveNode"),Ye.prototype),Ln(Ye.prototype,"moveNode2Coordinate",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"moveNode2Coordinate"),Ye.prototype),Ln(Ye.prototype,"editText",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"editText"),Ye.prototype),Ln(Ye.prototype,"addEdge",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"addEdge"),Ye.prototype),Ln(Ye.prototype,"moveEdge",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"moveEdge"),Ye.prototype),Ln(Ye.prototype,"deleteEdgeBySourceAndTarget",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"deleteEdgeBySourceAndTarget"),Ye.prototype),Ln(Ye.prototype,"deleteEdgeById",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"deleteEdgeById"),Ye.prototype),Ln(Ye.prototype,"deleteEdgeBySource",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"deleteEdgeBySource"),Ye.prototype),Ln(Ye.prototype,"deleteEdgeByTarget",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"deleteEdgeByTarget"),Ye.prototype),Ln(Ye.prototype,"setElementStateById",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"setElementStateById"),Ye.prototype),Ln(Ye.prototype,"updateText",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"updateText"),Ye.prototype),Ln(Ye.prototype,"selectNodeById",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"selectNodeById"),Ye.prototype),Ln(Ye.prototype,"selectEdgeById",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"selectEdgeById"),Ye.prototype),Ln(Ye.prototype,"selectElementById",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"selectElementById"),Ye.prototype),Ln(Ye.prototype,"clearSelectElements",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"clearSelectElements"),Ye.prototype),Ln(Ye.prototype,"moveNodes",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"moveNodes"),Ye.prototype),Ln(Ye.prototype,"setDefaultEdgeType",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"setDefaultEdgeType"),Ye.prototype),Ln(Ye.prototype,"changeNodeType",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"changeNodeType"),Ye.prototype),Ln(Ye.prototype,"changeEdgeType",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"changeEdgeType"),Ye.prototype),Ln(Ye.prototype,"getNodeIncomingEdge",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"getNodeIncomingEdge"),Ye.prototype),Ln(Ye.prototype,"getNodeOutgoingEdge",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"getNodeOutgoingEdge"),Ye.prototype),Ln(Ye.prototype,"getNodeIncomingNode",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"getNodeIncomingNode"),Ye.prototype),Ln(Ye.prototype,"getNodeOutgoingNode",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"getNodeOutgoingNode"),Ye.prototype),Ln(Ye.prototype,"setTheme",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"setTheme"),Ye.prototype),Ln(Ye.prototype,"resize",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"resize"),Ye.prototype),Ln(Ye.prototype,"clearData",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"clearData"),Ye.prototype),Ln(Ye.prototype,"translateCenter",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"translateCenter"),Ye.prototype),Ln(Ye.prototype,"fitView",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"fitView"),Ye.prototype),Ln(Ye.prototype,"openEdgeAnimation",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"openEdgeAnimation"),Ye.prototype),Ln(Ye.prototype,"closeEdgeAnimation",[a.k],Object.getOwnPropertyDescriptor(Ye.prototype,"closeEdgeAnimation"),Ye.prototype),Ye),km=hg;function DE(f){return DE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},DE(f)}function jE(){return jE=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},jE.apply(this,arguments)}function HK(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function LE(f,c){return LE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},LE(f,c)}function XK(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=tS(f);if(c){var O=tS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return GK(this,h)}}function GK(f,c){if(c&&(DE(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lc(f)}function Lc(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function tS(f){return tS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},tS(f)}function Zf(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var o4,qK=tc(dg=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&LE(_,x)})(O,f);var c,h,g=XK(O);function O(_){var x;(function(te,de){if(!(te instanceof de))throw new TypeError("Cannot call a class as a function")})(this,O),Zf(Lc(x=g.call(this)),"stepDrag",void 0),Zf(Lc(x),"stepScrollX",0),Zf(Lc(x),"stepScrollY",0),Zf(Lc(x),"onDragging",function(te){var de=te.deltaX,Oe=te.deltaY;x.setState({isDragging:!0});var Ne=x.props.graphModel,Ge=Ne.transformModel;Ne.editConfigModel.stopMoveGraph!==!0&&Ge.translate(de,Oe)}),Zf(Lc(x),"onDragEnd",function(){x.setState({isDragging:!1})}),Zf(Lc(x),"zoomHandler",function(te){var de=x.props,Oe=de.graphModel,Ne=Oe.editConfigModel,Ge=Oe.transformModel,nt=Oe.gridSize,ft=de.graphModel,dt=te.deltaX,yt=te.deltaY;if(Ne.stopScrollGraph||te.ctrlKey===!0){if(!Ne.stopZoomGraph){te.preventDefault();var Rt=ft.getPointByClient({x:te.clientX,y:te.clientY}).canvasOverlayPosition,on=Rt.x,dn=Rt.y;Ge.zoom(te.deltaY<0,[on,dn])}}else{if(te.preventDefault(),x.stepScrollX+=dt,x.stepScrollY+=yt,Math.abs(x.stepScrollX)>=nt){var zn=x.stepScrollX%nt,an=x.stepScrollX-zn;Ge.translate(-an*Ge.SCALE_X,0),x.stepScrollX=zn}if(Math.abs(x.stepScrollY)>=nt){var An=x.stepScrollY%nt,gn=x.stepScrollY-An;Ge.translate(0,-gn*Ge.SCALE_Y),x.stepScrollY=An}}}),Zf(Lc(x),"clickHandler",function(te){if(te.target.getAttribute("name")==="canvas-overlay"){var de=x.props.graphModel;de.selectElements.size>0&&de.clearSelectElements(),de.eventCenter.emit($n.BLANK_CLICK,{e:te})}}),Zf(Lc(x),"handleContextMenu",function(te){if(te.target.getAttribute("name")==="canvas-overlay"){te.preventDefault();var de=x.props.graphModel,Oe=de.getPointByClient({x:te.clientX,y:te.clientY});de.eventCenter.emit($n.BLANK_CONTEXTMENU,{e:te,position:Oe})}}),Zf(Lc(x),"mouseDownHandler",function(te){var de=x.props.graphModel,Oe=de.eventCenter,Ne=de.editConfigModel,Ge=de.transformModel.SCALE_X,nt=de.gridSize,ft=te.target,dt=!Ne.adjustEdge&&!Ne.adjustNodePosition;(ft.getAttribute("name")==="canvas-overlay"||dt)&&(Ne.stopMoveGraph!==!0?(x.stepDrag.setStep(nt*Ge),x.stepDrag.handleMouseDown(te)):Oe.emit($n.BLANK_MOUSEDOWN,{e:te}),x.clickHandler(te))});var M=_.graphModel,j=M.gridSize,U=M.eventCenter;return x.stepDrag=new gl({onDragging:x.onDragging,onDragEnd:x.onDragEnd,step:j,eventType:"BLANK",isStopPropagation:!1,eventCenter:U,model:null}),x.state={isDragging:!1},x}return c=O,(h=[{key:"render",value:function(){var _=this.props.graphModel.transformModel.getTransformStyle().transform,x=this.props,M=x.children,j=x.dnd,U=this.state.isDragging;return Object(be.g)("svg",jE({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:U?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},j.eventMap()),Object(be.g)("g",{transform:_},M))}}])&&HK(c.prototype,h),O}(be.a))||dg;function BE(f){return BE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},BE(f)}function KK(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function JK(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function VE(f,c){return VE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},VE(f,c)}function eJ(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=nS(f);if(c){var O=nS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return tJ(this,h)}}function tJ(f,c){if(c&&(BE(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function nS(f){return nS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},nS(f)}var nJ=tc(o4=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&VE(_,x)})(O,f);var c,h,g=eJ(O);function O(){return KK(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"componentDidMount",value:function(){this.triggerToolRender()}},{key:"componentDidUpdate",value:function(){this.triggerToolRender()}},{key:"getTools",value:function(){var _=this.props,x=_.tool,M=_.graphModel,j=x.getTools().map(function(U){return Object(be.g)(U,{graphModel:M,logicFlow:x.instance})});return x.components=j,j}},{key:"triggerToolRender",value:function(){var _=this.props,x=_.tool,M=_.graphModel,j=document.querySelector("#ToolOverlay_".concat(M.flowId)),U=x.getInstance();U.components.forEach(function(te){return te(U,j)}),U.components=[]}},{key:"render",value:function(){var _=this.props.graphModel;return Object(be.g)("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(_.flowId)},this.getTools())}}])&&JK(c.prototype,h),O}(be.a))||o4;function FE(f){return FE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},FE(f)}function rJ(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function oJ(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function zE(f,c){return zE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},zE(f,c)}function iJ(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=rS(f);if(c){var O=rS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return aJ(this,h)}}function aJ(f,c){if(c&&(FE(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function rS(f){return rS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},rS(f)}var i4,sJ=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&zE(_,x)})(O,f);var c,h,g=iJ(O);function O(){return rJ(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"render",value:function(){var _=this.props.background;return Object(be.g)("div",{className:"lf-background"},Object(be.g)("div",{style:_,className:"lf-background-area"}))}}])&&oJ(c.prototype,h),O}(be.a);function QE(f){return QE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},QE(f)}function lJ(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function uJ(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function WE(f,c){return WE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},WE(f,c)}function cJ(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=oS(f);if(c){var O=oS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return fJ(this,h)}}function fJ(f,c){if(c&&(QE(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a4(f)}function a4(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function oS(f){return oS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},oS(f)}function dJ(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var s4=tc(i4=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&WE(_,x)})(O,f);var c,h,g=cJ(O);function O(){var _;lJ(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return dJ(a4(_=g.call.apply(g,[this].concat(M))),"id",pl()),_}return c=O,(h=[{key:"renderDot",value:function(){var _=this.props,x=_.config,M=x.color,j=x.thickness,U=j===void 0?2:j,te=_.size,de=_.visible,Oe=Math.min(Math.max(2,U),te/2),Ne=1;return de||(Ne=0),Object(be.g)("rect",{width:Oe,height:Oe,rx:Oe/2,ry:Oe/2,fill:M,opacity:Ne})}},{key:"renderMesh",value:function(){var _=this.props,x=_.config,M=x.color,j=x.thickness,U=j===void 0?1:j,te=_.size,de=_.visible,Oe=Math.min(Math.max(1,U),te/2),Ne="M ".concat(te," 0 H0 M0 0 V0 ").concat(te),Ge=1;return de||(Ge=0),Object(be.g)("path",{d:Ne,stroke:M,strokeWidth:Oe,opacity:Ge})}},{key:"render",value:function(){var _=this.props,x=_.type,M=_.size,j=_.graphModel.transformModel,U=[j.SCALE_X,j.SKEW_Y,j.SKEW_X,j.SCALE_Y,j.TRANSLATE_X,j.TRANSLATE_Y].join(","),te="matrix(".concat(U,")");return Object(be.g)("div",{className:"lf-grid"},Object(be.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},Object(be.g)("defs",null,Object(be.g)("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:te,x:"0",y:"0",width:M,height:M},x==="dot"&&this.renderDot(),x==="mesh"&&this.renderMesh())),Object(be.g)("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})))}}])&&uJ(c.prototype,h),O}(be.a))||i4;s4.defaultProps={size:20,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}},o(53);function YE(f){return YE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},YE(f)}function hJ(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return l4(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return l4(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  136. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function l4(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}var u4,Cm=function(f){var c={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return Object.entries(f).forEach(function(h){var g=hJ(h,2),O=g[0],_=g[1];(O==="style"||YE(_)!=="object")&&(c[O]=_)}),Object(be.g)("line",c)};function ZE(f){return ZE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},ZE(f)}function c4(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function iS(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?c4(Object(h),!0).forEach(function(g){pJ(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):c4(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function pJ(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function gJ(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function vJ(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function UE(f,c){return UE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},UE(f,c)}function mJ(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=aS(f);if(c){var O=aS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return yJ(this,h)}}function yJ(f,c){if(c&&(ZE(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function aS(f){return aS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},aS(f)}var f4,bJ=tc(u4=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&UE(_,x)})(O,f);var c,h,g=mJ(O);function O(){return gJ(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"render",value:function(){var _=this.props.snaplineModel,x=_.position,M=_.isShowHorizontal,j=_.isShowVertical,U=_.getStyle(),te=x.x,de=te===void 0?0:te,Oe=x.y,Ne=Oe===void 0?0:Oe,Ge=iS(iS({x1:-1e5,y1:Ne,x2:1e5,y2:Ne},U),{},{stroke:M?U.stroke:"none"}),nt=iS(iS({x1:de,y1:-1e5,x2:de,y2:1e5},U),{},{stroke:j?U.stroke:"none"});return Object(be.g)("g",{className:"lf-snapline"},Object(be.g)(Cm,Ge),Object(be.g)(Cm,nt))}}])&&vJ(c.prototype,h),O}(be.a))||u4;function HE(f){return HE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},HE(f)}function _J(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return d4(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return d4(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  137. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function d4(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function uh(f){var c=f.x,h=f.y,g=f.width,O=f.height,_=f.className,x=f.radius,M=c-g/2,j=h-O/2,U={};return Object.entries(f).forEach(function(te){var de=_J(te,2),Oe=de[0],Ne=de[1];HE(Ne)!=="object"&&(U[Oe]=Ne)}),U.className=_?"lf-basic-shape ".concat(_):"lf-basic-shape",x&&(U.rx=x,U.ry=x),U.x=M,U.y=j,Object(be.g)("rect",U)}function XE(f){return XE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},XE(f)}function Em(){return Em=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},Em.apply(this,arguments)}function h4(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function p4(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?h4(Object(h),!0).forEach(function(g){OJ(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):h4(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function OJ(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function wJ(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function SJ(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function GE(f,c){return GE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},GE(f,c)}function xJ(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=sS(f);if(c){var O=sS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return kJ(this,h)}}function kJ(f,c){if(c&&(XE(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function sS(f){return sS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},sS(f)}uh.defaultProps={className:"",radius:""};var g4,CJ=tc(f4=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&GE(_,x)})(O,f);var c,h,g=xJ(O);function O(){return wJ(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"getNodesOutline",value:function(){var _=this.props.graphModel,x=_.nodes,M=_.editConfigModel,j=M.hoverOutline,U=M.nodeSelectedOutline,te=[];return x.forEach(function(de){if(de.isHovered||de.isSelected){var Oe=de.isHovered,Ne=de.isSelected,Ge=de.x,nt=de.y,ft=de.width,dt=de.height;if(U&&Ne||j&&Oe){var yt=de.getOutlineStyle(),Rt={};if(Object.keys(yt).forEach(function(dn){dn!=="hover"&&(Rt[dn]=yt[dn])}),Oe){var on=yt.hover;Rt=p4(p4({},Rt),on)}te.push(Object(be.g)(uh,Em({transform:de.transform,className:"lf-outline-node",x:Ge,y:nt,width:ft+10,height:dt+10},Rt)))}}}),te}},{key:"getEdgeOutline",value:function(){for(var _=this.props.graphModel,x=_.edges,M=_.editConfigModel,j=M.edgeSelectedOutline,U=M.hoverOutline,te=[],de=0;de<x.length;de++){var Oe=x[de];(j&&Oe.isSelected||U&&Oe.isHovered)&&(Oe.modelType===wr.LINE_EDGE?te.push(this.getLineOutline(Oe)):Oe.modelType===wr.POLYLINE_EDGE?te.push(this.getPolylineOutline(Oe)):Oe.modelType===wr.BEZIER_EDGE&&te.push(this.getBezierOutline(Oe)))}return te}},{key:"getLineOutline",value:function(_){var x=_.startPoint,M=_.endPoint,j=(x.x+M.x)/2,U=(x.y+M.y)/2,te=Math.abs(x.x-M.x)+10,de=Math.abs(x.y-M.y)+10,Oe=_.getOutlineStyle();return Object(be.g)(uh,Em({className:"lf-outline-edge",x:j,y:U,width:te,height:de},Oe))}},{key:"getPolylineOutline",value:function(_){var x=_.points,M=Dc(x),j=ih(M,8),U=j.x,te=j.y,de=j.width,Oe=j.height,Ne=_.getOutlineStyle();return Object(be.g)(uh,Em({className:"lf-outline",x:U,y:te,width:de,height:Oe},Ne))}},{key:"getBezierOutline",value:function(_){var x=_.path,M=mm(x),j=ih(M,8),U=j.x,te=j.y,de=j.width,Oe=j.height,Ne=_.getOutlineStyle();return Object(be.g)(uh,Em({className:"lf-outline",x:U,y:te,width:de,height:Oe},Ne))}},{key:"render",value:function(){return Object(be.g)("g",{className:"lf-outline"},this.getNodesOutline(),this.getEdgeOutline())}}])&&SJ(c.prototype,h),O}(be.a))||f4;function qE(f){return qE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},qE(f)}function EJ(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return v4(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return v4(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  138. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v4(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Tm(f){var c=f.x,h=c===void 0?0:c,g=f.y,O=g===void 0?0:g,_=f.r,x=_===void 0?4:_,M=f.className,j={cx:h,cy:O,r:x,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(f).forEach(function(U){var te=EJ(U,2),de=te[0],Oe=te[1];qE(Oe)!=="object"&&(j[de]=Oe)}),j.className=M?"lf-basic-shape ".concat(M):"lf-basic-shape",Object(be.g)("circle",j)}function KE(f){return KE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},KE(f)}function TJ(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return m4(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return m4(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  139. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function m4(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Kb(){return Kb=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},Kb.apply(this,arguments)}function y4(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function b4(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function _4(f,c,h){return c&&b4(f.prototype,c),h&&b4(f,h),f}function O4(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(c&&c.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),c&&JE(f,c)}function JE(f,c){return JE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},JE(f,c)}function w4(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=uS(f);if(c){var O=uS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return PJ(this,h)}}function PJ(f,c){if(c&&(KE(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lS(f)}function lS(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function uS(f){return uS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},uS(f)}function eT(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var S4,x4=function(f){O4(h,f);var c=w4(h);function h(){var g;return y4(this,h),eT(lS(g=c.call(this)),"dragHandler",void 0),eT(lS(g),"onDragging",function(O){var _=O.event,x=g.props,M=x.graphModel,j=x.bezierModel,U=x.type,te=M.getPointByClient({x:_.clientX,y:_.clientY}).canvasOverlayPosition,de=te.x,Oe=te.y;j.updateAdjustAnchor({x:de,y:Oe},U),M.eventCenter.emit($n.EDGE_ADJUST,{data:j.getData()})}),eT(lS(g),"onDragEnd",function(){g.props.bezierModel.isDragging=!1}),g.dragHandler=new gl({onDragging:g.onDragging,onDragEnd:g.onDragEnd}),g}return _4(h,[{key:"render",value:function(){var g=this,O=this.props.position,_=O.x,x=O.y,M=this.props.bezierModel.getEdgeStyle().adjustAnchor;return Object(be.g)(Tm,Kb({className:"lf-bezier-adjust-anchor",x:_,y:x},M,{onMouseDown:function(j){g.dragHandler.handleMouseDown(j)}}))}}]),h}(be.a),$J=tc(g4=function(f){O4(h,f);var c=w4(h);function h(){return y4(this,h),c.apply(this,arguments)}return _4(h,[{key:"getBezierAdjust",value:function(g,O){var _=g.path,x=g.id,M=TJ(mm(_),4),j=M[0],U=M[1],te=M[2],de=M[3],Oe=g.getEdgeStyle().adjustLine,Ne=[];return Ne.push(Object(be.g)(Cm,Kb({x1:j.x,y1:j.y,x2:U.x,y2:U.y},Oe))),Ne.push(Object(be.g)(x4,{position:U,bezierModel:g,graphModel:O,key:"".concat(x,"_ePre"),type:"sNext"})),Ne.push(Object(be.g)(Cm,Kb({x1:de.x,y1:de.y,x2:te.x,y2:te.y},Oe))),Ne.push(Object(be.g)(x4,{position:te,bezierModel:g,graphModel:O,key:"".concat(x,"_sNext"),type:"ePre"})),Ne}},{key:"selectedBezierEdge",value:function(){for(var g=this.props.graphModel,O=g.edges,_=[],x=0;x<O.length;x++){var M=O[x];M.isSelected&&M.modelType===wr.BEZIER_EDGE&&M.draggable&&_.push(this.getBezierAdjust(M,g))}return _}},{key:"render",value:function(){return Object(be.g)("g",{className:"lf-bezier-adjust"},this.selectedBezierEdge())}}]),h}(be.a))||g4;function tT(f){return tT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},tT(f)}function AJ(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function MJ(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function nT(f,c){return nT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},nT(f,c)}function RJ(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=cS(f);if(c){var O=cS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return NJ(this,h)}}function NJ(f,c){if(c&&(tT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function cS(f){return cS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},cS(f)}var k4,IJ=tc(S4=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&nT(_,x)})(O,f);var c,h,g=RJ(O);function O(){return AJ(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"render",value:function(){var _=this.props.graphModel.transformModel.getTransformStyle().transform,x=this.props.children;return Object(be.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay"},Object(be.g)("g",{transform:_},x))}}])&&MJ(c.prototype,h),O}(be.a))||S4;function rT(f){return rT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},rT(f)}function oT(){return oT=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},oT.apply(this,arguments)}function DJ(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function jJ(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function iT(f,c){return iT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},iT(f,c)}function LJ(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=fS(f);if(c){var O=fS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return BJ(this,h)}}function BJ(f,c){if(c&&(rT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function fS(f){return fS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},fS(f)}var VJ=tc(k4=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&iT(_,x)})(O,f);var c,h,g=LJ(O);function O(){return DJ(this,O),g.apply(this,arguments)}return c=O,h=[{key:"getComponent",value:function(_,x){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"canvas-overlay",j=this.props.getView,U=j(_.type);return Object(be.g)(U,{key:_.id,model:_,graphModel:x,overlay:M})}},{key:"render",value:function(){var _=this,x=this.props,M=x.graphModel,j=x.tool,U=x.options,te=x.dnd,de=x.snaplineModel,Oe={};U.width&&(Oe.width="".concat(M.width,"px")),U.height&&(Oe.height="".concat(M.height,"px"));var Ne=U.grid,Ge=M.fakerNode,nt=M.editConfigModel.adjustEdge;return Object(be.g)("div",{className:"lf-graph","flow-id":M.flowId,style:Oe},Object(be.g)(qK,{graphModel:M,dnd:te},Object(be.g)("g",{className:"lf-base"},jv(M.sortElements,function(ft){return _.getComponent(ft,M)})),Ge?this.getComponent(Ge,M):""),Object(be.g)(IJ,{graphModel:M},Object(be.g)(CJ,{graphModel:M}),nt?Object(be.g)($J,{graphModel:M}):"",U.snapline!==!1?Object(be.g)(bJ,{snaplineModel:de}):""),Object(be.g)(nJ,{graphModel:M,tool:j}),U.background&&Object(be.g)(sJ,{background:U.background}),U.grid&&Object(be.g)(s4,oT({},Ne,{graphModel:M})))}}],h&&jJ(c.prototype,h),O}(be.a))||k4,FJ=VJ;function C4(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function dS(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?C4(Object(h),!0).forEach(function(g){Uf(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):C4(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function zJ(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function Uf(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var QJ=function(){function f(g){var O=this;(function(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")})(this,f),Uf(this,"nodeConfig",void 0),Uf(this,"lf",void 0),Uf(this,"fakerNode",void 0),Uf(this,"stopDrag",function(){O.nodeConfig=null,window.document.removeEventListener("mouseup",O.stopDrag)}),Uf(this,"dragEnter",function(x){O.nodeConfig&&!O.fakerNode&&(O.fakerNode=O.lf.createFakerNode(dS(dS({},O.nodeConfig),O.clientToLocalPoint({x:x.clientX,y:x.clientY}))))}),Uf(this,"onDragOver",function(x){if(x.preventDefault(),O.fakerNode){var M=O.clientToLocalPoint({x:x.clientX,y:x.clientY}),j=M.x,U=M.y;O.fakerNode.moveTo(j,U);var te=O.fakerNode.getData();O.lf.setNodeSnapLine(te),O.lf.graphModel.eventCenter.emit($n.NODE_DND_DRAG,{data:te})}return!1}),Uf(this,"onDragLeave",function(){O.fakerNode&&(O.lf.removeNodeSnapLine(),O.lf.graphModel.removeFakerNode(),O.fakerNode=null)}),Uf(this,"onDrop",function(x){O.lf.graphModel&&x&&O.nodeConfig&&(O.lf.addNode(dS(dS({},O.nodeConfig),O.clientToLocalPoint({x:x.clientX,y:x.clientY})),$n.NODE_DND_ADD,x),x.preventDefault(),x.stopPropagation(),O.nodeConfig=null,O.lf.removeNodeSnapLine(),O.lf.graphModel.removeFakerNode(),O.fakerNode=null)});var _=g.lf;this.lf=_}var c,h;return c=f,(h=[{key:"clientToLocalPoint",value:function(g){var O=g.x,_=g.y,x=zp(this.lf.options,["grid","size"]),M=this.lf.graphModel.getPointByClient({x:O,y:_}).canvasOverlayPosition,j=M.x,U=M.y;return{x:eu(j,x),y:eu(U,x)}}},{key:"startDrag",value:function(g){this.lf.options.isSilentMode||(this.nodeConfig=g,window.document.addEventListener("mouseup",this.stopDrag))}},{key:"eventMap",value:function(){return{onMouseEnter:this.dragEnter,onMouseOver:this.dragEnter,onMouseMove:this.onDragOver,onMouseLeave:this.onDragLeave,onMouseUp:this.onDrop}}}])&&zJ(c.prototype,h),f}();function E4(f){var c=f.container,h=f.grid,g=f.width,O=f.height;if(!c)throw new Error("\u8BF7\u68C0\u67E5 container \u53C2\u6570\u662F\u5426\u6709\u6548");if(typeof g=="string"||typeof O=="string")throw new Error("width\u6216height\u4E0D\u652F\u6301\u4F20\u5165\u5B57\u7B26\u4E32\uFF0C\u8BF7\u4F20\u6570\u5B57");return h&&(f.grid=Si({size:20,type:"dot",visible:!0,config:{color:"#ababab",thickness:1}},h)),Si({},P4,f)}var to,T4,P4={background:!1,grid:!1,textEdit:!0,disabledTools:[]};function aT(f){return aT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},aT(f)}function sT(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return $4(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return $4(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  140. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $4(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function A4(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function hS(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?A4(Object(h),!0).forEach(function(g){M4(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):A4(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function WJ(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function YJ(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function ZJ(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function Jb(){return Jb=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=UJ(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},Jb.apply(this,arguments)}function UJ(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=ch(f))!==null;);return f}function lT(f,c){return lT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},lT(f,c)}function HJ(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=ch(f);if(c){var O=ch(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return XJ(this,h)}}function XJ(f,c){if(c&&(aT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pS(f)}function pS(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ch(f){return ch=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ch(f)}function M4(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Ku(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var uT=(to=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&lT(_,x)})(O,f);var c,h,g=HJ(O);function O(){var _;YJ(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return M4(pS(_=g.call.apply(g,[this].concat(M))),"modelType",wr.BEZIER_EDGE),WJ(pS(_),"path",T4,pS(_)),_}return c=O,(h=[{key:"initEdgeData",value:function(_){this.offset=100,Jb(ch(O.prototype),"initEdgeData",this).call(this,_)}},{key:"getEdgeStyle",value:function(){var _=this.graphModel.theme.bezier;return hS(hS({},Jb(ch(O.prototype),"getEdgeStyle",this).call(this)),Co(_))}},{key:"getTextPosition",value:function(){if(this.pointsList&&this.pointsList.length>0){var _=0,x=0;return this.pointsList.forEach(function(M){var j=M.x,U=M.y;_+=j,x+=U}),{x:_/this.pointsList.length,y:x/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}},{key:"getData",value:function(){var _=Jb(ch(O.prototype),"getData",this).call(this),x=this.pointsList.map(function(M){return{x:M.x,y:M.y}});return hS(hS({},_),{},{pointsList:x})}},{key:"getControls",value:function(){var _=this.startPoint,x=this.endPoint;return jc({start:_,end:x,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})}},{key:"getPath",value:function(_){var x=sT(_,4),M=x[0],j=x[1],U=x[2],te=x[3];return"M ".concat(M.x," ").concat(M.y,`
  141. C `).concat(j.x," ").concat(j.y,`,
  142. `).concat(U.x," ").concat(U.y,`,
  143. `).concat(te.x," ").concat(te.y)}},{key:"initPoints",value:function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()}},{key:"updatePoints",value:function(){var _=this.getControls(),x=_.sNext,M=_.ePre;this.updatePath(x,M)}},{key:"updatePath",value:function(_,x){_=Co(_),x=Co(x);var M={x:this.startPoint.x,y:this.startPoint.y},j={x:this.endPoint.x,y:this.endPoint.y};if(!_||!x){var U=this.getControls();_=U.sNext,x=U.ePre}this.pointsList=[M,_,x,j],this.path=this.getPath(this.pointsList)}},{key:"updateStartPoint",value:function(_){this.startPoint=_,this.updatePoints()}},{key:"updateEndPoint",value:function(_){this.endPoint=_,this.updatePoints()}},{key:"moveStartPoint",value:function(_,x){this.startPoint.x+=_,this.startPoint.y+=x;var M=sT(this.pointsList,3),j=M[1],U=M[2];j.x+=_,j.y+=x,this.updatePath(j,U)}},{key:"moveEndPoint",value:function(_,x){this.endPoint.x+=_,this.endPoint.y+=x;var M=sT(this.pointsList,3),j=M[1],U=M[2];U.x+=_,U.y+=x,this.updatePath(j,U)}},{key:"updateAdjustAnchor",value:function(_,x){x==="sNext"?this.pointsList[1]=_:x==="ePre"&&(this.pointsList[2]=_),this.path=this.getPath(this.pointsList),this.setText(Object.assign({},this.text,this.textPosition))}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var _=this.pointsList;return _[_.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(_){var x=_.startPoint,M=_.endPoint,j=_.sourceNode,U=_.targetNode,te=jc({start:x,end:M,sourceNode:j,targetNode:U,offset:this.offset}),de=te.sNext,Oe=te.ePre;this.pointsList=[x,de,Oe,M],this.initPoints()}}])&&ZJ(c.prototype,h),O}(mb),T4=Ku(to.prototype,"path",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ku(to.prototype,"initPoints",[a.k],Object.getOwnPropertyDescriptor(to.prototype,"initPoints"),to.prototype),Ku(to.prototype,"updatePoints",[a.k],Object.getOwnPropertyDescriptor(to.prototype,"updatePoints"),to.prototype),Ku(to.prototype,"updateStartPoint",[a.k],Object.getOwnPropertyDescriptor(to.prototype,"updateStartPoint"),to.prototype),Ku(to.prototype,"updateEndPoint",[a.k],Object.getOwnPropertyDescriptor(to.prototype,"updateEndPoint"),to.prototype),Ku(to.prototype,"moveStartPoint",[a.k],Object.getOwnPropertyDescriptor(to.prototype,"moveStartPoint"),to.prototype),Ku(to.prototype,"moveEndPoint",[a.k],Object.getOwnPropertyDescriptor(to.prototype,"moveEndPoint"),to.prototype),Ku(to.prototype,"updateAdjustAnchor",[a.k],Object.getOwnPropertyDescriptor(to.prototype,"updateAdjustAnchor"),to.prototype),Ku(to.prototype,"getAdjustStart",[a.k],Object.getOwnPropertyDescriptor(to.prototype,"getAdjustStart"),to.prototype),Ku(to.prototype,"getAdjustEnd",[a.k],Object.getOwnPropertyDescriptor(to.prototype,"getAdjustEnd"),to.prototype),Ku(to.prototype,"updateAfterAdjustStartAndEnd",[a.k],Object.getOwnPropertyDescriptor(to.prototype,"updateAfterAdjustStartAndEnd"),to.prototype),to),Jt,R4,N4,I4,D4,j4,L4,B4,V4,F4,z4,Q4,W4,Y4,Z4,U4,H4,X4,G4,q4,K4,J4,ej,GJ=function(f){return f==null};function qJ(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||tj(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  144. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function cT(f){return cT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},cT(f)}function tj(f,c){if(f){if(typeof f=="string")return nj(f,c);var h=Object.prototype.toString.call(f).slice(8,-1);return h==="Object"&&f.constructor&&(h=f.constructor.name),h==="Map"||h==="Set"?Array.from(f):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?nj(f,c):void 0}}function nj(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function rj(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function ms(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?rj(Object(h),!0).forEach(function(g){Vs(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):rj(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function mi(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function KJ(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function Vs(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function mr(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var Hf,oj,Xf=(Jt=function(){function f(g,O){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,f),Vs(this,"id",""),mi(this,"type",R4,this),mi(this,"x",N4,this),mi(this,"y",I4,this),mi(this,"text",D4,this),mi(this,"properties",j4,this),mi(this,"_width",L4,this),mi(this,"_height",B4,this),mi(this,"anchorsOffset",V4,this),mi(this,"isSelected",F4,this),mi(this,"isHovered",z4,this),mi(this,"isShowAnchor",Q4,this),mi(this,"isDragging",W4,this),mi(this,"isHitable",Y4,this),mi(this,"draggable",Z4,this),mi(this,"visible",U4,this),mi(this,"enableRotate",H4,this),Vs(this,"virtual",!1),Vs(this,"graphModel",void 0),mi(this,"zIndex",X4,this),mi(this,"state",G4,this),mi(this,"autoToFront",q4,this),mi(this,"style",K4,this),mi(this,"transform",J4,this),mi(this,"_rotate",ej,this),Vs(this,"BaseType",ai.NODE),Vs(this,"modelType",wr.NODE),Vs(this,"additionStateData",void 0),Vs(this,"targetRules",[]),Vs(this,"sourceRules",[]),Vs(this,"moveRules",[]),Vs(this,"hasSetTargetRules",!1),Vs(this,"hasSetSourceRules",!1),this.graphModel=O,this.initNodeData(g),this.setAttributes()}var c,h;return c=f,h=[{key:"width",get:function(){return this._width},set:function(g){this._width=g}},{key:"height",get:function(){return this._height},set:function(g){this._height=g}},{key:"rotate",get:function(){return this._rotate},set:function(g){this._rotate=g;var O=this.x,_=O===void 0?0:O,x=this.y,M=x===void 0?0:x;this.transform=new Ui(-_,-M).rotate(g).translate(_,M).toString()}},{key:"incoming",get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}}},{key:"outgoing",get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}}},{key:"initNodeData",value:function(g){if(g.properties||(g.properties={}),!g.id){var O=this.graphModel.idGenerator,_=O&&O(g.type),x=this.createId();g.id=x||_||pl()}this.formatText(g),Si(this,function(M){return Vu(M,["id","type","x","y","text","properties","virtual","rotate"])}(g)),this.graphModel.overlapMode===Ro.INCREASE&&(this.zIndex=g.zIndex||gb())}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"formatText",value:function(g){g.text||(g.text={value:"",x:g.x,y:g.y,draggable:!1,editable:!0}),g.text&&typeof g.text=="string"?g.text={value:g.text,x:g.x,y:g.y,draggable:!1,editable:!0}:g.text&&g.text.editable===void 0&&(g.text.editable=!0)}},{key:"getData",value:function(){var g=this.text,O=g.x,_=g.y,x=g.value,M=this.properties;Object(a.x)(M)&&(M=Object(a.I)(M));var j={id:this.id,type:this.type,x:this.x,y:this.y,properties:M};return this.rotate&&(j.rotate=this.rotate),this.graphModel.overlapMode===Ro.INCREASE&&(j.zIndex=this.zIndex),x&&(j.text={x:O,y:_,value:x}),j}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"getProperties",value:function(){return Object(a.I)(this.properties)}},{key:"getOuterGAttributes",value:function(){return{className:""}}},{key:"getNodeStyle",value:function(){return ms(ms({},this.graphModel.theme.baseNode),this.style)}},{key:"getTextStyle",value:function(){var g=this.graphModel.theme.nodeText;return Co(g)}},{key:"getRotateControlStyle",value:function(){var g=this.graphModel.theme.rotateControl;return Co(g)}},{key:"getAnchorStyle",value:function(g){var O=this.graphModel.theme.anchor;return Co(O)}},{key:"getAnchorLineStyle",value:function(g){var O=this.graphModel.theme.anchorLine;return Co(O)}},{key:"getOutlineStyle",value:function(){var g=this.graphModel.theme.outline;return Co(g)}},{key:"isAllowConnectedAsSource",value:function(g,O,_,x){var M=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var j,U=!0,te=0;te<M.length;te++){var de=M[te];if(!de.validate.call(this,this,g,O,_,x)){U=!1,j=de.message;break}}return{isAllPass:U,msg:j}}},{key:"getConnectedSourceRules",value:function(){return this.sourceRules}},{key:"isAllowConnectedAsTarget",value:function(g,O,_,x){var M=this.hasSetTargetRules?this.targetRules:this.getConnectedTargetRules();this.hasSetTargetRules=!0;for(var j,U=!0,te=0;te<M.length;te++){var de=M[te];if(!de.validate.call(this,g,this,O,_,x)){U=!1,j=de.message;break}}return{isAllPass:U,msg:j}}},{key:"isAllowMoveNode",value:function(g,O){var _,x=!0,M=!0,j=function(de,Oe){var Ne=typeof Symbol!="undefined"&&de[Symbol.iterator]||de["@@iterator"];if(!Ne){if(Array.isArray(de)||(Ne=tj(de))||Oe&&de&&typeof de.length=="number"){Ne&&(de=Ne);var Ge=0,nt=function(){};return{s:nt,n:function(){return Ge>=de.length?{done:!0}:{done:!1,value:de[Ge++]}},e:function(Rt){throw Rt},f:nt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  145. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ft,dt=!0,yt=!1;return{s:function(){Ne=Ne.call(de)},n:function(){var Rt=Ne.next();return dt=Rt.done,Rt},e:function(Rt){yt=!0,ft=Rt},f:function(){try{dt||Ne.return==null||Ne.return()}finally{if(yt)throw ft}}}}(this.moveRules.concat(this.graphModel.nodeMoveRules));try{for(j.s();!(_=j.n()).done;){var U=(0,_.value)(this,g,O);if(!U)return!1;if(cT(U)==="object"){var te=U;if(te.x===!1&&te.y===!1)return!1;x=x&&te.x,M=M&&te.y}}}catch(de){j.e(de)}finally{j.f()}return{x,y:M}}},{key:"getConnectedTargetRules",value:function(){return this.targetRules}},{key:"getAnchorsByOffset",value:function(){var g=this.anchorsOffset,O=this.id,_=this.x,x=this.y;return g&&g.length>0?g.map(function(M,j){return M.length?(M=M,{id:"".concat(O,"_").concat(j),x:_+M[0],y:x+M[1]}):ms(ms({},M=M),{},{x:_+M.x,y:x+M.y,id:M.id||"".concat(O,"_").concat(j)})}):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getTargetAnchor",value:function(g){return function(O,_){for(var x,M=cm(_),j=Number.MAX_SAFE_INTEGER,U=0;U<M.length;U++){var te=hi(O.x,O.y,M[U].x,M[U].y);te<j&&(j=te,x={index:U,anchor:Nc(Nc({},M[U]),{},{x:M[U].x,y:M[U].y,id:M[U].id})})}return x}(g,this)}},{key:"getBounds",value:function(){return{x1:this.x-this.width/2,y1:this.y-this.height/2,x2:this.x+this.width/2,y2:this.y+this.height/2}}},{key:"anchors",get:function(){var g=this.getAnchorsByOffset(),O=this.x,_=this.y,x=this.rotate;return g.forEach(function(M){var j=M.x,U=M.y,te=qJ(new jn([j,U,1]).translate(-O,-_).rotate(x).translate(O,_)[0],2),de=te[0],Oe=te[1];M.x=de,M.y=Oe}),g}},{key:"getAnchorInfo",value:function(g){if(!GJ(g))for(var O=0;O<this.anchors.length;O++){var _=this.anchors[O];if(_.id===g)return _}}},{key:"addNodeMoveRules",value:function(g){this.moveRules.includes(g)||this.moveRules.push(g)}},{key:"move",value:function(g,O){var _=arguments.length>2&&arguments[2]!==void 0&&arguments[2],x=!1,M=!1;if(_)x=!0,M=!0;else{var j=this.isAllowMoveNode(g,O);typeof j=="boolean"?(x=j,M=j):(x=j.x,M=j.y)}if(x){var U=this.x+g;this.x=U,this.text&&this.moveText(g,0)}if(M){var te=this.y+O;this.y=te,this.text&&this.moveText(0,O)}return x||M}},{key:"getMoveDistance",value:function(g,O){var _=arguments.length>2&&arguments[2]!==void 0&&arguments[2],x=!1,M=!1,j=0,U=0;if(_)x=!0,M=!0;else{var te=this.isAllowMoveNode(g,O);typeof te=="boolean"?(x=te,M=te):(x=te.x,M=te.y)}if(x&&g){var de=this.x+g;this.x=de,this.text&&this.moveText(g,0),j=g}if(M&&O){var Oe=this.y+O;this.y=Oe,this.text&&this.moveText(0,O),U=O}return[j,U]}},{key:"moveTo",value:function(g,O){var _=arguments.length>2&&arguments[2]!==void 0&&arguments[2],x=g-this.x,M=O-this.y;return!(!_&&!this.isAllowMoveNode(x,M)||(this.text&&this.text&&this.moveText(x,M),this.x=g,this.y=O,0))}},{key:"moveText",value:function(g,O){var _=this.text,x=_.x,M=_.y,j=_.value,U=_.draggable,te=_.editable;this.text={value:j,editable:te,draggable:U,x:x+g,y:M+O}}},{key:"updateText",value:function(g){this.text=ms(ms({},Object(a.I)(this.text)),{},{value:g})}},{key:"setSelected",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=g}},{key:"setHovered",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=g,this.setIsShowAnchor(g)}},{key:"setIsShowAnchor",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isShowAnchor=g}},{key:"setEnableRotate",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.enableRotate=g}},{key:"setHitable",value:function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=g}},{key:"setElementState",value:function(g,O){this.state=g,this.additionStateData=O}},{key:"setProperty",value:function(g,O){this.properties=ms(ms({},Object(a.I)(this.properties)),{},Vs({},g,mo(O))),this.setAttributes()}},{key:"setProperties",value:function(g){this.properties=ms(ms({},Object(a.I)(this.properties)),mo(g)),this.setAttributes()}},{key:"deleteProperty",value:function(g){delete this.properties[g],this.setAttributes()}},{key:"setStyle",value:function(g,O){this.style=ms(ms({},this.style),{},Vs({},g,mo(O)))}},{key:"setStyles",value:function(g){this.style=ms(ms({},this.style),mo(g))}},{key:"updateStyles",value:function(g){this.style=ms({},mo(g))}},{key:"setZIndex",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.zIndex=g}},{key:"updateAttributes",value:function(g){Si(this,g)}}],h&&KJ(c.prototype,h),f}(),R4=mr(Jt.prototype,"type",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),N4=mr(Jt.prototype,"x",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),I4=mr(Jt.prototype,"y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),D4=mr(Jt.prototype,"text",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),j4=mr(Jt.prototype,"properties",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),L4=mr(Jt.prototype,"_width",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),B4=mr(Jt.prototype,"_height",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),V4=mr(Jt.prototype,"anchorsOffset",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),F4=mr(Jt.prototype,"isSelected",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z4=mr(Jt.prototype,"isHovered",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Q4=mr(Jt.prototype,"isShowAnchor",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),W4=mr(Jt.prototype,"isDragging",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Y4=mr(Jt.prototype,"isHitable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Z4=mr(Jt.prototype,"draggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),U4=mr(Jt.prototype,"visible",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),H4=mr(Jt.prototype,"enableRotate",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),X4=mr(Jt.prototype,"zIndex",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),G4=mr(Jt.prototype,"state",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),q4=mr(Jt.prototype,"autoToFront",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),K4=mr(Jt.prototype,"style",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),J4=mr(Jt.prototype,"transform",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ej=mr(Jt.prototype,"_rotate",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),mr(Jt.prototype,"incoming",[a.m],Object.getOwnPropertyDescriptor(Jt.prototype,"incoming"),Jt.prototype),mr(Jt.prototype,"outgoing",[a.m],Object.getOwnPropertyDescriptor(Jt.prototype,"outgoing"),Jt.prototype),mr(Jt.prototype,"addNodeMoveRules",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"addNodeMoveRules"),Jt.prototype),mr(Jt.prototype,"move",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"move"),Jt.prototype),mr(Jt.prototype,"getMoveDistance",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"getMoveDistance"),Jt.prototype),mr(Jt.prototype,"moveTo",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"moveTo"),Jt.prototype),mr(Jt.prototype,"moveText",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"moveText"),Jt.prototype),mr(Jt.prototype,"updateText",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"updateText"),Jt.prototype),mr(Jt.prototype,"setSelected",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setSelected"),Jt.prototype),mr(Jt.prototype,"setHovered",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setHovered"),Jt.prototype),mr(Jt.prototype,"setIsShowAnchor",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setIsShowAnchor"),Jt.prototype),mr(Jt.prototype,"setEnableRotate",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setEnableRotate"),Jt.prototype),mr(Jt.prototype,"setHitable",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setHitable"),Jt.prototype),mr(Jt.prototype,"setElementState",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setElementState"),Jt.prototype),mr(Jt.prototype,"setProperty",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setProperty"),Jt.prototype),mr(Jt.prototype,"setProperties",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setProperties"),Jt.prototype),mr(Jt.prototype,"deleteProperty",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"deleteProperty"),Jt.prototype),mr(Jt.prototype,"setStyle",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setStyle"),Jt.prototype),mr(Jt.prototype,"setStyles",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setStyles"),Jt.prototype),mr(Jt.prototype,"updateStyles",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"updateStyles"),Jt.prototype),mr(Jt.prototype,"setZIndex",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setZIndex"),Jt.prototype),mr(Jt.prototype,"updateAttributes",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"updateAttributes"),Jt.prototype),Jt);function fT(f){return fT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},fT(f)}function ij(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function aj(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?ij(Object(h),!0).forEach(function(g){sj(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):ij(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function JJ(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function eee(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function tee(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function dT(){return dT=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=nee(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},dT.apply(this,arguments)}function nee(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Pm(f))!==null;);return f}function hT(f,c){return hT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},hT(f,c)}function ree(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=Pm(f);if(c){var O=Pm(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return oee(this,h)}}function oee(f,c){if(c&&(fT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gS(f)}function gS(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Pm(f){return Pm=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Pm(f)}function sj(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function pT(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var Ha,lj,uj,gT=(Hf=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&hT(_,x)})(O,f);var c,h,g=ree(O);function O(){var _;eee(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return sj(gS(_=g.call.apply(g,[this].concat(M))),"modelType",wr.CIRCLE_NODE),JJ(gS(_),"r",oj,gS(_)),_}return c=O,(h=[{key:"width",get:function(){return 2*this.r}},{key:"height",get:function(){return 2*this.r}},{key:"getNodeStyle",value:function(){var _=dT(Pm(O.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.circle;return aj(aj({},_),Co(x))}},{key:"getDefaultAnchor",value:function(){var _=this.x,x=this.y,M=this.r;return[{x:_,y:x-M,id:"".concat(this.id,"_0")},{x:_+M,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+M,id:"".concat(this.id,"_2")},{x:_-M,y:x,id:"".concat(this.id,"_3")}]}}])&&tee(c.prototype,h),O}(Xf),oj=pT(Hf.prototype,"r",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),pT(Hf.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(Hf.prototype,"width"),Hf.prototype),pT(Hf.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(Hf.prototype,"height"),Hf.prototype),Hf);o(129);function vT(f){return vT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},vT(f)}function mT(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return cj(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return cj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  146. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function cj(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function fj(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function dj(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?fj(Object(h),!0).forEach(function(g){pj(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):fj(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function hj(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function iee(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function aee(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function yT(){return yT=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=see(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},yT.apply(this,arguments)}function see(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Am(f))!==null;);return f}function bT(f,c){return bT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},bT(f,c)}function lee(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=Am(f);if(c){var O=Am(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return uee(this,h)}}function uee(f,c){if(c&&(vT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $m(f)}function $m(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Am(f){return Am=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Am(f)}function pj(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Mm(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var Bc,gj,vj,_T=(Ha=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&bT(_,x)})(O,f);var c,h,g=lee(O);function O(){var _;iee(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return pj($m(_=g.call.apply(g,[this].concat(M))),"modelType",wr.DIAMOND_NODE),hj($m(_),"rx",lj,$m(_)),hj($m(_),"ry",uj,$m(_)),_}return c=O,(h=[{key:"getNodeStyle",value:function(){var _=yT(Am(O.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.diamond;return dj(dj({},_),Co(x))}},{key:"points",get:function(){var _=this.x,x=this.y,M=this.rx,j=this.ry;return[[_,x-j],[_+M,x],[_,x+j],[_-M,x]]}},{key:"pointsPosition",get:function(){return this.points.map(function(_){return{x:_[0],y:_[1]}})}},{key:"width",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var j=mT(M,1)[0];j<_&&(_=j),j>x&&(x=j)}),x-_}},{key:"height",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var j=mT(M,2)[1];j<_&&(_=j),j>x&&(x=j)}),x-_}},{key:"getDefaultAnchor",value:function(){var _=this;return this.points.map(function(x,M){var j=mT(x,2);return{x:j[0],y:j[1],id:"".concat(_.id,"_").concat(M)}})}}])&&aee(c.prototype,h),O}(Xf),lj=Mm(Ha.prototype,"rx",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),uj=Mm(Ha.prototype,"ry",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),Mm(Ha.prototype,"points",[a.m],Object.getOwnPropertyDescriptor(Ha.prototype,"points"),Ha.prototype),Mm(Ha.prototype,"pointsPosition",[a.m],Object.getOwnPropertyDescriptor(Ha.prototype,"pointsPosition"),Ha.prototype),Mm(Ha.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(Ha.prototype,"width"),Ha.prototype),Mm(Ha.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(Ha.prototype,"height"),Ha.prototype),Ha);function OT(f){return OT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},OT(f)}function mj(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function yj(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?mj(Object(h),!0).forEach(function(g){_j(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):mj(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function bj(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function cee(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function fee(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function wT(){return wT=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=dee(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},wT.apply(this,arguments)}function dee(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Nm(f))!==null;);return f}function ST(f,c){return ST=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},ST(f,c)}function hee(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=Nm(f);if(c){var O=Nm(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return pee(this,h)}}function pee(f,c){if(c&&(OT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rm(f)}function Rm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Nm(f){return Nm=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Nm(f)}function _j(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function vS(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var iu,Oj,xT=(Bc=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&ST(_,x)})(O,f);var c,h,g=hee(O);function O(){var _;cee(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return _j(Rm(_=g.call.apply(g,[this].concat(M))),"modelType",wr.ELLIPSE_NODE),bj(Rm(_),"rx",gj,Rm(_)),bj(Rm(_),"ry",vj,Rm(_)),_}return c=O,(h=[{key:"getNodeStyle",value:function(){var _=wT(Nm(O.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.ellipse;return yj(yj({},_),Co(x))}},{key:"width",get:function(){return 2*this.rx}},{key:"height",get:function(){return 2*this.ry}},{key:"getDefaultAnchor",value:function(){var _=this.x,x=this.y,M=this.rx,j=this.ry;return[{x:_,y:x-j,id:"".concat(this.id,"_0")},{x:_+M,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+j,id:"".concat(this.id,"_2")},{x:_-M,y:x,id:"".concat(this.id,"_3")}]}}])&&fee(c.prototype,h),O}(Xf),gj=vS(Bc.prototype,"rx",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),vj=vS(Bc.prototype,"ry",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),vS(Bc.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(Bc.prototype,"width"),Bc.prototype),vS(Bc.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(Bc.prototype,"height"),Bc.prototype),Bc);function kT(f){return kT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},kT(f)}function CT(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return wj(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return wj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  147. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function wj(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Sj(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function xj(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?Sj(Object(h),!0).forEach(function(g){kj(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Sj(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function gee(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function vee(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function mee(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function ET(){return ET=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=yee(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},ET.apply(this,arguments)}function yee(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Im(f))!==null;);return f}function TT(f,c){return TT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},TT(f,c)}function bee(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=Im(f);if(c){var O=Im(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return _ee(this,h)}}function _ee(f,c){if(c&&(kT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mS(f)}function mS(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Im(f){return Im=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Im(f)}function kj(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function yS(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var PT,Cj,$T=(iu=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&TT(_,x)})(O,f);var c,h,g=bee(O);function O(){var _;vee(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return kj(mS(_=g.call.apply(g,[this].concat(M))),"modelType",wr.POLYGON_NODE),gee(mS(_),"points",Oj,mS(_)),_}return c=O,(h=[{key:"getNodeStyle",value:function(){var _=ET(Im(O.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.polygon;return xj(xj({},_),Co(x))}},{key:"pointsPosition",get:function(){var _=this.x,x=this.y,M=this.width,j=this.height;return this.points.map(function(U){return{x:U[0]+_-M/2,y:U[1]+x-j/2}})}},{key:"width",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var j=CT(M,1)[0];j<_&&(_=j),j>x&&(x=j)}),x-_}},{key:"height",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var j=CT(M,2)[1];j<_&&(_=j),j>x&&(x=j)}),x-_}},{key:"getDefaultAnchor",value:function(){var _=this,x=this.x,M=this.y,j=this.width,U=this.height;return this.points.map(function(te,de){var Oe=CT(te,2),Ne=Oe[0],Ge=Oe[1];return{x:x+Ne-j/2,y:M+Ge-U/2,id:"".concat(_.id,"_").concat(de)}})}}])&&mee(c.prototype,h),O}(Xf),Oj=yS(iu.prototype,"points",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),yS(iu.prototype,"pointsPosition",[a.m],Object.getOwnPropertyDescriptor(iu.prototype,"pointsPosition"),iu.prototype),yS(iu.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(iu.prototype,"width"),iu.prototype),yS(iu.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(iu.prototype,"height"),iu.prototype),iu);function AT(f){return AT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},AT(f)}function Ej(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function Tj(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?Ej(Object(h),!0).forEach(function(g){Pj(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Ej(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function Oee(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function wee(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function See(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function MT(){return MT=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=xee(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},MT.apply(this,arguments)}function xee(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Dm(f))!==null;);return f}function RT(f,c){return RT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},RT(f,c)}function kee(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=Dm(f);if(c){var O=Dm(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Cee(this,h)}}function Cee(f,c){if(c&&(AT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bS(f)}function bS(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Dm(f){return Dm=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Dm(f)}function Pj(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var fh,NT=(PT=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&RT(_,x)})(O,f);var c,h,g=kee(O);function O(){var _;wee(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return Pj(bS(_=g.call.apply(g,[this].concat(M))),"modelType",wr.RECT_NODE),Oee(bS(_),"radius",Cj,bS(_)),_}return c=O,(h=[{key:"getDefaultAnchor",value:function(){var _=this.x,x=this.y,M=this.width,j=this.height;return[{x:_,y:x-j/2,id:"".concat(this.id,"_0")},{x:_+M/2,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+j/2,id:"".concat(this.id,"_2")},{x:_-M/2,y:x,id:"".concat(this.id,"_3")}]}},{key:"getNodeStyle",value:function(){var _=MT(Dm(O.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.rect;return Tj(Tj({},_),Co(x))}}])&&See(c.prototype,h),O}(Xf),Cj=function(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}(PT.prototype,"radius",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),PT);function IT(f){return IT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},IT(f)}function $j(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function Aj(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?$j(Object(h),!0).forEach(function(g){Rj(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):$j(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function Eee(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function Tee(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function DT(){return DT=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=Pee(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},DT.apply(this,arguments)}function Pee(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=jm(f))!==null;);return f}function jT(f,c){return jT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},jT(f,c)}function $ee(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=jm(f);if(c){var O=jm(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Aee(this,h)}}function Aee(f,c){if(c&&(IT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mj(f)}function Mj(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function jm(f){return jm=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},jm(f)}function Rj(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Nj(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var LT=(fh=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&jT(_,x)})(O,f);var c,h,g=$ee(O);function O(){var _;Eee(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return Rj(Mj(_=g.call.apply(g,[this].concat(M))),"modelType",wr.TEXT_NODE),_}return c=O,(h=[{key:"getTextStyle",value:function(){var _=DT(jm(O.prototype),"getTextStyle",this).call(this),x=this.graphModel.theme.text;return Aj(Aj({},_),Co(x))}},{key:"width",get:function(){var _=String(this.text.value).split(/[\r\n]/g),x=this.getTextStyle().fontSize;return pb({rows:_,fontSize:x,rowsLength:_.length}).width}},{key:"height",get:function(){var _=String(this.text.value).split(/[\r\n]/g),x=this.getTextStyle().fontSize;return pb({rows:_,fontSize:x,rowsLength:_.length}).height}}])&&Tee(c.prototype,h),O}(Xf),Nj(fh.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(fh.prototype,"width"),fh.prototype),Nj(fh.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(fh.prototype,"height"),fh.prototype),fh);function BT(f){return BT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},BT(f)}function Mee(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function Ree(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function VT(f,c){return VT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},VT(f,c)}function Nee(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=_S(f);if(c){var O=_S(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Iee(this,h)}}function Iee(f,c){if(c&&(BT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ij(f)}function Ij(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function _S(f){return _S=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},_S(f)}function Dee(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var Ju,Dj,jj,Lj,FT=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&VT(_,x)})(O,f);var c,h,g=Nee(O);function O(){var _;Mee(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return Dee(Ij(_=g.call.apply(g,[this].concat(M))),"modelType",wr.HTML_NODE),_}return c=O,(h=[{key:"getDefaultAnchor",value:function(){var _=this.x,x=this.y,M=this.width,j=this.height;return[{x:_,y:x-j/2,id:"".concat(this.id,"_0")},{x:_+M/2,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+j/2,id:"".concat(this.id,"_2")},{x:_-M/2,y:x,id:"".concat(this.id,"_3")}]}}])&&Ree(c.prototype,h),O}(Xf);function Bj(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function zT(f,c,h,g){h&&Object.defineProperty(f,c,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(g):void 0})}function jee(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function Vj(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function e_(f,c,h,g,O){var _={};return Object.keys(g).forEach(function(x){_[x]=g[x]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=h.slice().reverse().reduce(function(x,M){return M(f,c,x)||x},_),O&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(O):void 0,_.initializer=void 0),_.initializer===void 0&&(Object.defineProperty(f,c,_),_=null),_}var Fj=(Ju=function(){function f(g){(function(O,_){if(!(O instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),Vj(this,"graphModel",void 0),zT(this,"isShowHorizontal",Dj,this),zT(this,"isShowVertical",jj,this),zT(this,"position",Lj,this),this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=g}var c,h;return c=f,h=[{key:"getStyle",value:function(){return function(g){for(var O=1;O<arguments.length;O++){var _=arguments[O]!=null?arguments[O]:{};O%2?Bj(Object(_),!0).forEach(function(x){Vj(g,x,_[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(_)):Bj(Object(_)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(_,x))})}return g}({},this.graphModel.theme.snapline)}},{key:"getCenterSnapLine",value:function(g,O){for(var _=g.x,x=g.y,M=!1,j=!1,U=0;U<O.length;U++){var te=O[U];if(te.id!==g.id&&(_===te.x&&(M=!0),x===te.y&&(j=!0),M&&j))break}return{isShowVertical:M,isShowHorizontal:j,position:{x:_,y:x}}}},{key:"getHorizontalSnapline",value:function(g,O){var _,x,M=!1,j=g.id;if(j){var U=this.graphModel.fakerNode;if(U&&U.id===j)x=ps(U);else{var te=this.graphModel.getNodeModelById(j);x=ps(te)}}for(var de=0;de<O.length;de++){var Oe=O[de];if(Oe.id!==g.id){var Ne=ps(Oe);if(Ne.minY===x.minY||Ne.maxY===x.minY){M=!0,_=x.minY;break}if(Ne.minY===x.maxY||Ne.maxY===x.maxY){M=!0,_=x.maxY;break}}}return Si({isShowHorizontal:M,position:{y:_}})}},{key:"getVerticalSnapline",value:function(g,O){var _,x,M=!1,j=g.id;if(j){var U=this.graphModel.fakerNode;if(U&&U.id===j)x=ps(U);else{var te=this.graphModel.getNodeModelById(j);x=ps(te)}}for(var de=0;de<O.length;de++){var Oe=O[de];if(Oe.id!==g.id){var Ne=ps(Oe);if(Ne.minX===x.minX||Ne.maxX===x.minX){M=!0,_=x.minX;break}if(Ne.minX===x.maxX||Ne.maxX===x.maxX){M=!0,_=x.maxX;break}}}return Si({isShowVertical:M,position:{x:_}})}},{key:"getSnapLinePosition",value:function(g,O){var _=this.getCenterSnapLine(g,O),x=_.isShowHorizontal,M=_.isShowVertical;if(!x){var j=this.getHorizontalSnapline(g,O);j.isShowHorizontal&&(_.isShowHorizontal=j.isShowHorizontal,_.position.y=j.position.y)}if(!M){var U=this.getVerticalSnapline(g,O);U.isShowVertical&&(_.isShowVertical=U.isShowVertical,_.position.x=U.position.x)}return _}},{key:"setSnaplineInfo",value:function(g){var O=g.isShowHorizontal,_=g.isShowVertical,x=g.position;this.position=x,this.isShowHorizontal=O,this.isShowVertical=_}},{key:"clearSnapline",value:function(){this.position={x:0,y:0},this.isShowHorizontal=!1,this.isShowVertical=!1}},{key:"setNodeSnapLine",value:function(g){var O=this.graphModel.nodes,_=this.getSnapLinePosition(g,O);this.setSnaplineInfo(_)}}],h&&jee(c.prototype,h),f}(),Dj=e_(Ju.prototype,"isShowHorizontal",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jj=e_(Ju.prototype,"isShowVertical",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lj=e_(Ju.prototype,"position",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),e_(Ju.prototype,"clearSnapline",[a.k],Object.getOwnPropertyDescriptor(Ju.prototype,"clearSnapline"),Ju.prototype),e_(Ju.prototype,"setNodeSnapLine",[a.k],Object.getOwnPropertyDescriptor(Ju.prototype,"setNodeSnapLine"),Ju.prototype),Ju),t_=new Map,zj=function(f){var c=pl(),h=window.requestAnimationFrame(function g(){if(f(),t_.get(c)){var O=window.requestAnimationFrame(g);t_.set(c,O)}});return t_.set(c,h),c},OS=function(f){var c=t_.get(f);c&&(window.cancelAnimationFrame(c),t_.delete(f))};function QT(f){return QT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},QT(f)}function n_(){return n_=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},n_.apply(this,arguments)}function Qj(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function r_(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?Qj(Object(h),!0).forEach(function(g){Fc(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Qj(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function Lee(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return Wj(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return Wj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  148. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Wj(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Bee(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function WT(f,c){return WT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},WT(f,c)}function Vee(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=wS(f);if(c){var O=wS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Fee(this,h)}}function Fee(f,c){if(c&&(QT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vc(f)}function Vc(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function wS(f){return wS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},wS(f)}function Fc(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var zee=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&WT(_,x)})(O,f);var c,h,g=Vee(O);function O(){var _;return function(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")}(this,O),Fc(Vc(_=g.call(this)),"preTargetNode",void 0),Fc(Vc(_),"sourceRuleResults",void 0),Fc(Vc(_),"targetRuleResults",void 0),Fc(Vc(_),"dragHandler",void 0),Fc(Vc(_),"t",void 0),Fc(Vc(_),"onDragStart",function(x){var M=x.event,j=_.props,U=j.anchorData,te=j.nodeModel,de=j.graphModel;de.overlapMode,de.selectNodeById(te.id),te.autoToFront&&de.toFront(te.id),de.eventCenter.emit($n.ANCHOR_DRAGSTART,{data:U,e:M,nodeModel:te}),_.setState({startX:U.x,startY:U.y,endX:U.x,endY:U.y})}),Fc(Vc(_),"onDragging",function(x){var M=x.event,j=_.props,U=j.graphModel,te=j.nodeModel,de=j.anchorData,Oe=U.transformModel,Ne=U.eventCenter,Ge=U.width,nt=U.height,ft=U.editConfigModel,dt=ft.autoExpand,yt=ft.stopMoveGraph,Rt=M.clientX,on=M.clientY,dn=U.getPointByClient({x:Rt,y:on}),zn=dn.domOverlayPosition,an=zn.x,An=zn.y,gn=dn.canvasOverlayPosition,Er=gn.x,Rr=gn.y;_.t&&OS(_.t);var Jn=[];an<10?Jn=[10,0]:an+10>Ge?Jn=[-10,0]:An<10?Jn=[0,10]:An+10>nt&&(Jn=[0,-10]),_.setState({endX:Er,endY:Rr,dragging:!0}),_.moveAnchorEnd(Er,Rr),Jn.length>0&&!yt&&dt&&(_.t=zj(function(){var Qr=Lee(Jn,2),si=Qr[0],li=Qr[1];Oe.translate(si,li);var Ta=_.state,_l=Ta.endX,Ol=Ta.endY;_.setState({endX:_l-si,endY:Ol-li}),_.moveAnchorEnd(_l-si,Ol-li)})),Ne.emit($n.ANCHOR_DRAG,{data:de,e:M,nodeModel:te})}),Fc(Vc(_),"onDragEnd",function(x){var M=x.event;_.t&&OS(_.t);var j=_.checkEnd(M);_.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),_.sourceRuleResults.clear(),_.targetRuleResults.clear();var U=_.props,te=U.graphModel,de=U.nodeModel,Oe=U.anchorData;te.eventCenter.emit($n.ANCHOR_DRAGEND,{data:Oe,e:M,nodeModel:de,edgeModel:j})}),Fc(Vc(_),"checkEnd",function(x){var M=_.props,j=M.graphModel,U=M.nodeModel,te=M.anchorData,de=te.x,Oe=te.y,Ne=te.id,Ge=(j.edgeType,_.state),nt=Ge.endX,ft=Ge.endY,dt=Ge.dragging,yt=Lf({x:nt,y:ft},j);if(_.preTargetNode&&_.preTargetNode.state!==Gr.DEFAULT&&_.preTargetNode.setElementState(Gr.DEFAULT),dt&&yt&&yt.node){var Rt=yt.node,on=yt.anchor.id,dn="".concat(U.id,"_").concat(Rt.id,"_").concat(on,"_").concat(Ne),zn=_.sourceRuleResults.get(dn)||{},an=zn.isAllPass,An=zn.msg,gn=_.targetRuleResults.get(dn)||{},Er=gn.isAllPass,Rr=gn.msg;if(an&&Er){Rt.setElementState(Gr.DEFAULT);var Jn=j.edgeGenerator(U.getData(),j.getNodeModelById(yt.node.id).getData()),Qr=j.addEdge(r_(r_({},Jn),{},{sourceNodeId:U.id,sourceAnchorId:Ne,startPoint:{x:de,y:Oe},targetNodeId:yt.node.id,targetAnchorId:yt.anchor.id,endPoint:{x:yt.anchor.x,y:yt.anchor.y}})),si=_.props.anchorData;return j.eventCenter.emit($n.ANCHOR_DROP,{data:si,e:x,nodeModel:U,edgeModel:Qr}),Qr}var li=Rt.getData();return j.eventCenter.emit($n.CONNECTION_NOT_ALLOWED,{data:li,msg:Rr||An}),null}}),_.sourceRuleResults=new Map,_.targetRuleResults=new Map,_.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},_.dragHandler=new gl({onDragStart:_.onDragStart,onDragging:_.onDragging,onDragEnd:_.onDragEnd}),_}return c=O,(h=[{key:"getAnchorShape",value:function(){var _=this.props,x=_.anchorData,M=_.style,j=_.node.getAnchorShape(x);if(j)return j;var U=x.x,te=x.y,de=r_(r_({},M),M.hover);return Object(be.g)("g",null,Object(be.g)(Tm,n_({className:"lf-node-anchor-hover"},de,{x:U,y:te})),Object(be.g)(Tm,n_({className:"lf-node-anchor"},M,{x:U,y:te})))}},{key:"customTrajectory",get:function(){return this.props.graphModel.customTrajectory}},{key:"moveAnchorEnd",value:function(_,x){var M=this.props,j=M.graphModel,U=M.nodeModel,te=M.anchorData,de=Lf({x:_,y:x},j);if(de){var Oe=de.node,Ne=de.anchor.id;if(this.preTargetNode&&this.preTargetNode!==de.node&&this.preTargetNode.setElementState(Gr.DEFAULT),te.id===Ne)return;this.preTargetNode=Oe;var Ge="".concat(U.id,"_").concat(Oe.id,"_").concat(Ne,"_").concat(te.id);if(!this.targetRuleResults.has(Ge)){var nt=de.anchor,ft=U.isAllowConnectedAsSource(Oe,te,nt),dt=Oe.isAllowConnectedAsTarget(U,te,nt);this.sourceRuleResults.set(Ge,Kp(ft)),this.targetRuleResults.set(Ge,Kp(dt))}var yt=this.sourceRuleResults.get(Ge).isAllPass,Rt=this.targetRuleResults.get(Ge).isAllPass;yt&&Rt?Oe.setElementState(Gr.ALLOW_CONNECT):Oe.setElementState(Gr.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==Gr.DEFAULT&&this.preTargetNode.setElementState(Gr.DEFAULT)}},{key:"isShowLine",value:function(){var _=this.state,x=_.startX,M=_.startY,j=_.endX,U=_.endY;return hi(x,M,j,U)>10}},{key:"render",value:function(){var _=this,x=this.state,M=x.startX,j=x.startY,U=x.endX,te=x.endY,de=this.props,Oe=de.anchorData.edgeAddable,Ne=de.edgeStyle;return Object(be.g)("g",{className:"lf-anchor"},Object(be.g)("g",{onMouseDown:function(Ge){Oe!==!1&&_.dragHandler.handleMouseDown(Ge)}},this.getAnchorShape()),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(r_({sourcePoint:{x:M,y:j},targetPoint:{x:U,y:te}},Ne)):Object(be.g)(Cm,n_({x1:M,y1:j,x2:U,y2:te},Ne,{"pointer-events":"none"}))))}}])&&Bee(c.prototype,h),O}(be.a);function Yj(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function Qee(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?Yj(Object(h),!0).forEach(function(g){Wee(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Yj(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function Wee(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function YT(f){return YT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},YT(f)}function Yee(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return Zj(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return Zj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  149. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Zj(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Uj(f){var c=f.x,h=c===void 0?0:c,g=f.y,O=g===void 0?0:g,_=f.value,x=f.fontSize,M=f.fill,j=M===void 0?"currentColor":M,U=f.overflowMode,te=U===void 0?"default":U,de=f.textWidth,Oe=de===void 0?"":de,Ne=f.model,Ge={textAnchor:"middle","dominant-baseline":"middle",x:h,y:O,fill:j};if(Object.entries(f).forEach(function(on){var dn=Yee(on,2),zn=dn[0],an=dn[1];YT(an)!=="object"&&(Ge[zn]=an)}),_){var nt=String(_).split(/[\r\n]/g),ft=nt.length;if(te!=="default"){var dt=Ne.BaseType,yt=Ne.modelType;if(dt===ai.NODE&&yt!==wr.TEXT_NODE||dt===ai.EDGE&&Oe)return function(on){var dn=on.value,zn=on.fontSize,an=on.model,An=on.fontFamily,gn=An===void 0?"":An,Er=on.lineHeight,Rr=on.wrapPadding,Jn=Rr===void 0?"0, 0":Rr,Qr=on.overflowMode,si=on.x,li=on.y,Ta=an.width,_l=an.textHeight,Ol=on.textWidth||Ta,Wc=String(dn).split(/[\r\n]/g),yg=Wc.length,US=Mw({rows:Wc,style:{fontSize:"".concat(zn,"px"),width:"".concat(Ol,"px"),fontFamily:gn,lineHeight:Er,padding:Jn},rowsLength:yg,className:"lf-get-text-height"}),bg=an.height>US?an.height:US;_l&&(bg=_l);var ph=Qr==="ellipsis";return ph&&(bg=zn+2),Object(be.g)("g",null,Object(be.g)("foreignObject",{width:Ol,height:bg,x:si-Ol/2,y:li-bg/2},Object(be.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:bg,width:Ol,padding:Jn}},Object(be.g)("div",{className:ph?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:ph?Wc.join(""):"",style:Qee({},on)},Wc.map(function(gh){return Object(be.g)("div",{className:"lf-node-text--auto-wrap-inner"},gh)})))))}(f)}if(ft>1){var Rt=nt.map(function(on,dn){var zn=(dn-(ft-1)/2)*(x+2);return Object(be.g)("tspan",{className:"lf-text-tspan",x:h,y:O+zn},on)});return Object(be.g)("text",Ge,Rt)}return Object(be.g)("text",Ge,_)}}function ZT(f){return ZT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},ZT(f)}function UT(){return UT=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},UT.apply(this,arguments)}function Zee(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return Hj(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return Hj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  150. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Hj(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Uee(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function HT(f,c){return HT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},HT(f,c)}function Hee(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=SS(f);if(c){var O=SS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Xee(this,h)}}function Xee(f,c){if(c&&(ZT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dh(f)}function dh(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function SS(f){return SS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},SS(f)}function pg(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var Xj=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&HT(_,x)})(O,f);var c,h,g=Hee(O);function O(_){var x;(function(j,U){if(!(j instanceof U))throw new TypeError("Cannot call a class as a function")})(this,O),pg(dh(x=g.call(this)),"dragHandler",void 0),pg(dh(x),"sumDeltaX",0),pg(dh(x),"sumDeltaY",0),pg(dh(x),"stepDrag",void 0),pg(dh(x),"onDragging",function(j){var U=j.deltaX,te=j.deltaY,de=x.props,Oe=de.model,Ne=Zee(de.graphModel.transformModel.fixDeltaXY(U,te),2),Ge=Ne[0],nt=Ne[1];Oe.moveText(Ge,nt)}),pg(dh(x),"dblClickHandler",function(){x.props.editable&&x.props.model.setElementState(Gr.TEXT_EDIT)}),pg(dh(x),"mouseDownHandle",function(j){var U=x.props,te=U.draggable,de=U.model,Oe=U.graphModel.editConfigModel.nodeTextDraggable;(te||Oe)&&(x.stepDrag.model=de,x.stepDrag.handleMouseDown(j))}),_.model;var M=_.draggable;return x.stepDrag=new gl({onDragging:x.onDragging,step:1,isStopPropagation:M}),x}return c=O,(h=[{key:"getShape",value:function(){var _=this.props,x=_.model,M=_.graphModel,j=x.text,U=M.editConfigModel,te=j.value,de=j.x,Oe=j.y,Ne=j.editable,Ge=j.draggable,nt={x:de,y:Oe,className:"",value:te};Ne?nt.className="lf-element-text":Ge||U.nodeTextDraggable?nt.className="lf-text-draggable":nt.className="lf-text-disabled";var ft=x.getTextStyle();return Object(be.g)(Uj,UT({},nt,ft,{model:x}))}},{key:"render",value:function(){if(this.props.model.text)return Object(be.g)("g",{onMouseDown:this.mouseDownHandle,onDblClick:this.dblClickHandler},this.getShape())}}])&&Uee(c.prototype,h),O}(be.a),Gee=window.navigator.userAgent.match(/MSIE|Trident/)!==null,Gj=o(130);function XT(f){return XT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},XT(f)}function GT(){return GT=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},GT.apply(this,arguments)}function qee(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function qT(f,c){return qT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},qT(f,c)}function Kee(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=xS(f);if(c){var O=xS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Jee(this,h)}}function Jee(f,c){if(c&&(XT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lm(f)}function Lm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function xS(f){return xS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},xS(f)}function o_(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var ete=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&qT(_,x)})(O,f);var c,h,g=Kee(O);function O(_){var x;return function(M,j){if(!(M instanceof j))throw new TypeError("Cannot call a class as a function")}(this,O),o_(Lm(x=g.call(this,_)),"style",{}),o_(Lm(x),"defaultAngle",void 0),o_(Lm(x),"normal",void 0),o_(Lm(x),"stepperDrag",void 0),o_(Lm(x),"onDragging",function(M){var j,U=M.event,te=x.props,de=te.graphModel,Oe=te.nodeModel,Ne=te.eventCenter,Ge=de.selectNodes,nt=Oe.x,ft=Oe.y,dt=U.clientX,yt=U.clientY,Rt=de.getPointByClient({x:dt,y:yt}).canvasOverlayPosition,on=Rt.x,dn=Rt.y,zn=new ji(on-nt,dn-ft),an=((j=x.normal)===null||j===void 0?void 0:j.angle(zn))-x.defaultAngle,An=new Ui(-nt,-ft).rotate(an).translate(nt,ft).toString();Oe.transform=An,Oe.rotate=an;var gn=Object(Gj.map)(Ge,function(Rr){return Rr.id});gn.indexOf(Oe.id)===-1&&(gn=[Oe.id]);var Er=Object(Gj.reduce)(gn,function(Rr,Jn){var Qr=de.getNodeModelById(Jn);return Rr[Jn]=Qr==null?void 0:Qr.getMoveDistance(0,0,!1),Rr},{});gn.forEach(function(Rr){de.getNodeEdges(Rr).forEach(function(Jn){if(Er[Jn.sourceNodeId]){var Qr=de.getNodeModelById(Jn.sourceNodeId).anchors.find(function(li){return li.id===Jn.sourceAnchorId});Jn.updateStartPoint(Qr)}if(Er[Jn.targetNodeId]){var si=de.getNodeModelById(Jn.targetNodeId).anchors.find(function(li){return li.id===Jn.targetAnchorId});Jn.updateEndPoint(si)}})}),Ne.emit($n.NODE_ROTATE,{e:U,nodeModel:Oe})}),x.style=_.style,x.stepperDrag=new gl({onDragging:x.onDragging}),x}return c=O,(h=[{key:"render",value:function(){var _=this,x=this.props.nodeModel,M=x.x,j=x.y,U=M+x.width/2+20,te=j-x.height/2-20;return this.normal=new ji(1,0),this.defaultAngle=this.normal.angle(new ji(U-M,te-j)),x.defaultAngle=this.defaultAngle,Object(be.g)("g",{className:"lf-rotate-control"},Object(be.g)("g",{onMouseDown:function(de){_.stepperDrag.handleMouseDown(de)}},Object(be.g)(Tm,GT({},this.style,{cx:U,cy:te}))))}}])&&qee(c.prototype,h),O}(be.a);function KT(f){return KT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},KT(f)}var tte=["className"];function kS(){return kS=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},kS.apply(this,arguments)}function nte(f,c){if(f==null)return{};var h,g,O=function(x,M){if(x==null)return{};var j,U,te={},de=Object.keys(x);for(U=0;U<de.length;U++)j=de[U],M.indexOf(j)>=0||(te[j]=x[j]);return te}(f,c);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(f);for(g=0;g<_.length;g++)h=_[g],c.indexOf(h)>=0||Object.prototype.propertyIsEnumerable.call(f,h)&&(O[h]=f[h])}return O}function CS(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return qj(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return qj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  151. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function qj(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Kj(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function JT(f,c){return JT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},JT(f,c)}function rte(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=ES(f);if(c){var O=ES(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return ote(this,h)}}function ote(f,c){if(c&&(KT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ea(f)}function Ea(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ES(f){return ES=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ES(f)}function Xa(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var Gf=function(f){(function(x,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(M&&M.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),M&&JT(x,M)})(_,f);var c,h,g,O=rte(_);function _(x){var M;(function(Oe,Ne){if(!(Oe instanceof Ne))throw new TypeError("Cannot call a class as a function")})(this,_),Xa(Ea(M=O.call(this)),"t",void 0),Xa(Ea(M),"moveOffset",void 0),Xa(Ea(M),"stepDrag",void 0),Xa(Ea(M),"contextMenuTime",void 0),Xa(Ea(M),"startTime",void 0),Xa(Ea(M),"clickTimer",void 0),Xa(Ea(M),"modelDisposer",void 0),Xa(Ea(M),"onDragStart",function(Oe){var Ne=Oe.event,Ge=Ne.clientX,nt=Ne.clientY,ft=M.props,dt=ft.model,yt=ft.graphModel.getPointByClient({x:Ge,y:nt}).canvasOverlayPosition,Rt=yt.x,on=yt.y;M.moveOffset={x:dt.x-Rt,y:dt.y-on}}),Xa(Ea(M),"onDragging",function(Oe){var Ne=Oe.event,Ge=M.props,nt=Ge.model,ft=Ge.graphModel,dt=ft.editConfigModel,yt=dt.stopMoveGraph,Rt=dt.autoExpand,on=ft.transformModel,dn=ft.selectNodes,zn=ft.width,an=ft.height,An=ft.gridSize;nt.isDragging=!0;var gn=Ne.clientX,Er=Ne.clientY,Rr=ft.getPointByClient({x:gn,y:Er}).canvasOverlayPosition,Jn=Rr.x,Qr=Rr.y,si=CS(on.CanvasPointToHtmlPoint([Jn,Qr]),2),li=si[0],Ta=si[1];if(Jn+=M.moveOffset.x,Qr+=M.moveOffset.y,Jn=eu(Jn,An),Qr=eu(Qr,An),zn&&an){if(!Rt||yt||!(li<0||Ta<0||li>zn||Ta>an)){var _l=CS(on.CanvasPointToHtmlPoint([Jn-nt.width/2,Qr-nt.height/2]),2),Ol=_l[0],Wc=_l[1],yg=CS(on.CanvasPointToHtmlPoint([Jn+nt.width/2,Qr+nt.height/2]),2),US=yg[0],bg=yg[1],ph=Math.max(An,20),gh=[];Ol<0?gh=[ph,0]:US>ft.width?gh=[-ph,0]:Wc<0?gh=[0,ph]:bg>ft.height&&(gh=[0,-ph]),M.t&&OS(M.t);var Xne=new Ui(-Jn,-Qr).rotate(nt.rotate).translate(Jn,Qr).toString();nt.transform=Xne;var HS=dn.map(function(XS){return XS.id});HS.indexOf(nt.id)===-1&&(HS=[nt.id]),gh.length>0&&!yt&&Rt?M.t=zj(function(){var XS=CS(gh,2),R8=XS[0],N8=XS[1];on.translate(R8,N8);var Gne=-R8/on.SCALE_X,qne=-N8/on.SCALE_X;ft.moveNodes(HS,Gne,qne)}):ft.moveNodes(HS,Jn-nt.x,Qr-nt.y)}}else ft.moveNode2Coordinate(nt.id,Jn,Qr)}),Xa(Ea(M),"onDragEnd",function(){M.t&&OS(M.t),M.props.model.isDragging=!1}),Xa(Ea(M),"handleClick",function(Oe){if(M.startTime&&!(new Date().getTime()-M.startTime>200)){var Ne=M.props,Ge=Ne.model,nt=Ne.graphModel,ft={data:Ge.getData(),e:Oe,position:nt.getPointByClient({x:Oe.clientX,y:Oe.clientY}),isSelected:!1,isMultiple:!1},dt=Oe.button===2,yt=Oe.detail===2;if(!dt){var Rt=nt.editConfigModel,on=tu(Oe,Rt);ft.isMultiple=on,Ge.isSelected&&!yt&&on?(ft.isSelected=!1,Ge.setSelected(!1)):(nt.selectNodeById(Ge.id,on),ft.isSelected=!0,M.toFront()),yt?(Rt.nodeTextEdit&&Ge.text.editable&&(Ge.setSelected(!1),nt.setElementStateById(Ge.id,Gr.TEXT_EDIT)),nt.eventCenter.emit($n.NODE_DBCLICK,ft)):(nt.eventCenter.emit($n.ELEMENT_CLICK,ft),nt.eventCenter.emit($n.NODE_CLICK,ft))}}}),Xa(Ea(M),"handleContextMenu",function(Oe){Oe.preventDefault();var Ne=M.props,Ge=Ne.model,nt=Ne.graphModel,ft=Ge.getData(),dt=nt.getPointByClient({x:Oe.clientX,y:Oe.clientY});nt.setElementStateById(Ge.id,Gr.SHOW_MENU,dt.domOverlayPosition),Ge.isSelected||nt.selectNodeById(Ge.id),nt.eventCenter.emit($n.NODE_CONTEXTMENU,{data:ft,e:Oe,position:dt}),M.toFront()}),Xa(Ea(M),"handleMouseDown",function(Oe){var Ne=M.props,Ge=Ne.model,nt=Ne.graphModel;M.startTime=new Date().getTime(),nt.editConfigModel.adjustNodePosition&&Ge.draggable&&M.stepDrag&&M.stepDrag.handleMouseDown(Oe)}),Xa(Ea(M),"setHoverON",function(Oe){var Ne=M.props,Ge=Ne.model,nt=Ne.graphModel;if(!Ge.isHovered){var ft=Ge.getData();Ge.setHovered(!0),nt.eventCenter.emit($n.NODE_MOUSEENTER,{data:ft,e:Oe})}}),Xa(Ea(M),"setHoverOFF",function(Oe){var Ne=M.props,Ge=Ne.model,nt=Ne.graphModel,ft=Ge.getData();Ge.isHovered&&(Ge.setHovered(!1),nt.eventCenter.emit($n.NODE_MOUSELEAVE,{data:ft,e:Oe}))}),Xa(Ea(M),"onMouseOut",function(Oe){Gee&&M.setHoverOFF(Oe)});var j=x.graphModel,U=j.gridSize,te=j.eventCenter,de=x.model;return M.stepDrag=new gl({onDragStart:M.onDragStart,onDragging:M.onDragging,onDragEnd:M.onDragEnd,step:U,eventType:"NODE",isStopPropagation:!1,eventCenter:te,model:de}),M.modelDisposer=Object(a.F)(function(){return M.props},function(Oe){Oe&&Oe.model&&M.stepDrag.setModel(Oe.model)}),M}return c=_,g=[{key:"getModel",value:function(x){return x}}],(h=[{key:"componentWillUnmount",value:function(){this.modelDisposer&&this.modelDisposer()}},{key:"getAnchorShape",value:function(x){return null}},{key:"getAnchors",value:function(){var x=this,M=this.props,j=M.model,U=M.graphModel,te=j.isSelected,de=j.isHitable,Oe=j.isDragging,Ne=j.isShowAnchor;return de&&(te||Ne)&&!Oe?jv(j.anchors,function(Ge,nt){var ft=j.getAnchorLineStyle(Ge),dt=j.getAnchorStyle(Ge);return Object(be.g)(zee,{anchorData:Ge,node:x,style:dt,edgeStyle:ft,anchorIndex:nt,nodeModel:j,graphModel:U,setHoverOFF:x.setHoverOFF})}):[]}},{key:"getRotateControl",value:function(){var x=this.props,M=x.model,j=x.graphModel,U=M.isSelected,te=M.isHitable,de=M.enableRotate,Oe=M.isHovered,Ne=M.getRotateControlStyle().style;if(te&&(U||Oe)&&de)return Object(be.g)(ete,{graphModel:j,nodeModel:M,eventCenter:j.eventCenter,style:Ne})}},{key:"getText",value:function(){var x=this.props,M=x.model,j=x.graphModel;if(M.state===Gr.TEXT_EDIT)return"";if(M.text){var U=j.editConfigModel,te=!1;return(M.text.draggable||U.nodeTextDraggable)&&(te=!0),Object(be.g)(Xj,{editable:U.nodeTextEdit&&M.text.editable,model:M,graphModel:j,draggable:te})}}},{key:"getStateClassName",value:function(){var x=this.props.model,M=x.state,j=x.isDragging,U=x.isSelected,te="lf-node";switch(M){case Gr.ALLOW_CONNECT:te+=" lf-node-allow";break;case Gr.NOT_ALLOW_CONNECT:te+=" lf-node-not-allow";break;default:te+=" lf-node-default"}return j&&(te+=" lf-isDragging"),U&&(te+=" lf-node-selected"),te}},{key:"toFront",value:function(){var x=this.props,M=x.model,j=x.graphModel;M.autoToFront&&j.toFront(M.id)}},{key:"render",value:function(){var x,M=this.props,j=M.model,U=M.graphModel,te=U.editConfigModel,de=te.hideAnchors,Oe=te.adjustNodePosition,Ne=te.allowRotation,Ge=U.gridSize,nt=U.transformModel.SCALE_X,ft=j.isHitable,dt=j.draggable,yt=j.transform,Rt=j.getOuterGAttributes(),on=Rt.className,dn=on===void 0?"":on,zn=nte(Rt,tte),an=Object(be.g)("g",{className:"lf-node-content"},Object(be.g)("g",{transform:yt},this.getShape(),this.getText(),Ne&&this.getRotateControl()),!de&&this.getAnchors());return ft?(Oe&&dt&&this.stepDrag.setStep(Ge*nt),x=Object(be.g)("g",kS({className:"".concat(this.getStateClassName()," ").concat(dn),onMouseDown:this.handleMouseDown,onClick:this.handleClick,onMouseEnter:this.setHoverON,onMouseOver:this.setHoverON,onMouseLeave:this.setHoverOFF,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},zn),an)):x=Object(be.g)("g",kS({className:"".concat(this.getStateClassName()," ").concat(dn)},zn),an),x}}])&&Kj(c.prototype,h),g&&Kj(c,g),_}(be.a);function eP(f){return eP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},eP(f)}function tP(){return tP=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},tP.apply(this,arguments)}function ite(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function ate(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function nP(f,c){return nP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},nP(f,c)}function ste(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=TS(f);if(c){var O=TS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return lte(this,h)}}function lte(f,c){if(c&&(eP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function TS(f){return TS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},TS(f)}var rP=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&nP(_,x)})(O,f);var c,h,g=ste(O);function O(){return ite(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"getShape",value:function(){var _=this.props.model,x=_.getNodeStyle();return Object(be.g)(uh,tP({},x,{x:_.x,y:_.y,width:_.width,height:_.height,radius:_.radius}))}}])&&ate(c.prototype,h),O}(Gf);function oP(f){return oP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},oP(f)}function iP(){return iP=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},iP.apply(this,arguments)}function ute(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function cte(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function aP(f,c){return aP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},aP(f,c)}function fte(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=PS(f);if(c){var O=PS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return dte(this,h)}}function dte(f,c){if(c&&(oP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function PS(f){return PS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},PS(f)}var sP=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&aP(_,x)})(O,f);var c,h,g=fte(O);function O(){return ute(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"getShape",value:function(){var _=this.props.model,x=_.x,M=_.y,j=_.r,U=_.getNodeStyle();return Object(be.g)(Tm,iP({},U,{x,y:M,r:j}))}}])&&cte(c.prototype,h),O}(Gf);function lP(f){return lP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},lP(f)}function hte(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return Jj(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return Jj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  152. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Jj(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function e8(f){var c=f.points,h=f.className,g={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return Object.entries(f).forEach(function(O){var _=hte(O,2),x=_[0],M=_[1];lP(M)!=="object"&&(g[x]=M)}),g.className=h?"lf-basic-shape ".concat(h):"lf-basic-shape",g.points=c.map(function(O){return O.join(",")}).join(" "),Object(be.g)("polygon",g)}function uP(f){return uP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},uP(f)}function cP(){return cP=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},cP.apply(this,arguments)}function pte(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function gte(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function fP(f,c){return fP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},fP(f,c)}function vte(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=$S(f);if(c){var O=$S(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return mte(this,h)}}function mte(f,c){if(c&&(uP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function $S(f){return $S=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},$S(f)}var dP=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&fP(_,x)})(O,f);var c,h,g=vte(O);function O(){return pte(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"getShape",value:function(){var _=this.props.model,x=_.x,M=_.y,j=_.width,U=_.height,te=_.points,de=_.getNodeStyle(),Oe={transform:"matrix(1 0 0 1 ".concat(x-j/2," ").concat(M-U/2,")")};return Object(be.g)("g",Oe,Object(be.g)(e8,cP({},de,{points:te,x,y:M})))}}])&&gte(c.prototype,h),O}(Gf);function hP(f){return hP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},hP(f)}function pP(){return pP=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},pP.apply(this,arguments)}function yte(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function bte(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function gP(f,c){return gP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},gP(f,c)}function _te(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=AS(f);if(c){var O=AS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Ote(this,h)}}function Ote(f,c){if(c&&(hP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function AS(f){return AS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},AS(f)}var vP=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&gP(_,x)})(O,f);var c,h,g=_te(O);function O(){return yte(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"getShape",value:function(){var _=this.props.model,x=_.getNodeStyle();return Object(be.g)("g",null,Object(be.g)(e8,pP({},x,{points:_.points,x:_.x,y:_.y})))}}])&&bte(c.prototype,h),O}(Gf);function mP(f){return mP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},mP(f)}function wte(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return t8(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return t8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  153. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function t8(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Ste(f){var c=f.x,h=c===void 0?0:c,g=f.y,O=g===void 0?0:g,_=f.rx,x=_===void 0?4:_,M=f.ry,j=M===void 0?4:M,U=f.className,te={cx:h,cy:O,rx:x,ry:j,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(f).forEach(function(de){var Oe=wte(de,2),Ne=Oe[0],Ge=Oe[1];mP(Ge)!=="object"&&(te[Ne]=Ge)}),te.className=U?"lf-basic-shape ".concat(U):"lf-basic-shape",Object(be.g)("ellipse",te)}function yP(f){return yP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},yP(f)}function bP(){return bP=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},bP.apply(this,arguments)}function xte(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function kte(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function _P(f,c){return _P=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},_P(f,c)}function Cte(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=MS(f);if(c){var O=MS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Ete(this,h)}}function Ete(f,c){if(c&&(yP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function MS(f){return MS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},MS(f)}var OP=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&_P(_,x)})(O,f);var c,h,g=Cte(O);function O(){return xte(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"getShape",value:function(){var _=this.props.model,x=_.getNodeStyle();return Object(be.g)(Ste,bP({},x,{x:_.x,y:_.y,rx:_.rx,ry:_.ry}))}}])&&kte(c.prototype,h),O}(Gf);function wP(f){return wP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},wP(f)}function n8(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function r8(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?n8(Object(h),!0).forEach(function(g){Tte(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):n8(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function Tte(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Pte(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function $te(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function SP(f,c){return SP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},SP(f,c)}function Ate(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=RS(f);if(c){var O=RS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Mte(this,h)}}function Mte(f,c){if(c&&(wP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function RS(f){return RS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},RS(f)}var xP=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&SP(_,x)})(O,f);var c,h,g=Ate(O);function O(){return Pte(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"getBackground",value:function(){var _=this.props.model,x=_.getTextStyle(),M=_.width,j=_.height,U=_.x,te=_.y,de=r8(r8({},x.background),{},{x:U,y:te-1,width:M,height:j});return Object(be.g)(uh,de)}},{key:"getShape",value:function(){return Object(be.g)("g",null,this.getBackground())}}])&&$te(c.prototype,h),O}(Gf);function kP(f){return kP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},kP(f)}function CP(){return CP=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},CP.apply(this,arguments)}function Rte(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function Nte(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function EP(f,c){return EP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},EP(f,c)}function Ite(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=NS(f);if(c){var O=NS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Dte(this,h)}}function Dte(f,c){if(c&&(kP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i_(f)}function i_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function NS(f){return NS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},NS(f)}function IS(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var TP=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&EP(_,x)})(O,f);var c,h,g=Ite(O);function O(){var _;Rte(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return IS(i_(_=g.call.apply(g,[this].concat(M))),"ref",void 0),IS(i_(_),"currentProperties",void 0),IS(i_(_),"preProperties",void 0),IS(i_(_),"setRef",function(U){_.ref=U}),_}return c=O,(h=[{key:"rootEl",get:function(){return this.ref}},{key:"setHtml",value:function(_){_.appendChild(document.createElement("div"))}},{key:"shouldUpdate",value:function(){if(!this.preProperties||this.preProperties!==this.currentProperties)return this.preProperties=this.currentProperties,!0}},{key:"componentDidMount",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"componentDidUpdate",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"getShape",value:function(){var _=this.props.model,x=_.x,M=_.y,j=_.height,U=_.width,te=_.getNodeStyle();return this.currentProperties=JSON.stringify(_.properties),Object(be.g)("foreignObject",CP({},te,{x:x-U/2,y:M-j/2,width:U,height:j,ref:this.setRef}))}}])&&Nte(c.prototype,h),O}(Gf);function PP(f){return PP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},PP(f)}function $P(){return $P=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},$P.apply(this,arguments)}function o8(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function gg(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?o8(Object(h),!0).forEach(function(g){RP(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):o8(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function jte(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function AP(f,c){return AP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},AP(f,c)}function Lte(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=DS(f);if(c){var O=DS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Bte(this,h)}}function Bte(f,c){if(c&&(PP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MP(f)}function MP(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function DS(f){return DS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},DS(f)}function RP(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var Vte=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&AP(_,x)})(O,f);var c,h,g=Lte(O);function O(_){var x;return function(M,j){if(!(M instanceof j))throw new TypeError("Cannot call a class as a function")}(this,O),RP(MP(x=g.call(this,_)),"setHoverON",function(){x.setState({isHovered:!0})}),RP(MP(x),"setHoverOFF",function(){x.setState({isHovered:!1})}),x.state={isHovered:!1},x}return c=O,(h=[{key:"getBackground",value:function(){var _=this.props.model,x=_.getTextStyle(),M=_.text,j=_.width,U=x.background||{};if(this.state.isHovered&&x.hover&&x.hover.background&&(U=gg(gg({},U),x.hover.background)),M&&M.value&&U.fill!=="transparent"){var te,de=x.fontSize,Oe=x.overflowMode,Ne=x.lineHeight,Ge=x.wrapPadding,nt=x.textWidth,ft=M.value,dt=M.x,yt=M.y,Rt=String(ft).split(/[\r\n]/g),on=Rt.length;if(Oe==="autoWrap"&&nt){var dn=Mw({rows:Rt,style:{fontSize:"".concat(de,"px"),width:"".concat(nt,"px"),lineHeight:Ne,padding:Ge},rowsLength:on,className:"lf-get-text-height"});te=gg(gg({},U),{},{x:dt-1,y:yt-1,width:nt,height:dn})}else{Rt&&Rt.forEach(function(Er){jb(Er)});var zn=pb({rows:Rt,fontSize:de,rowsLength:on}),an=zn.width,An=zn.height;if(Oe==="ellipsis"&&(an=nt||j,An=de+2),typeof U.wrapPadding=="string"){var gn=U.wrapPadding.split(",").filter(function(Er){return Er.trim()}).map(function(Er){return parseFloat(Er.trim())});gn.length>0&&gn.length<=4&&(gn.length===1?gn=[gn[0],gn[0],gn[0],gn[0]]:gn.length===2?gn=[gn[0],gn[1],gn[0],gn[1]]:gn.length===3&&(gn=[gn[0],gn[1],gn[2],gn[1]]),an+=gn[1]+gn[3],An+=gn[0]+gn[2],dt+=(gn[1]-gn[3])/2,yt+=(gn[2]-gn[0])/2)}te=gg(gg({},U),{},{x:dt-1,y:yt-1,width:an,height:An})}return Object(be.g)(uh,te)}}},{key:"getShape",value:function(){var _=this.props.model,x=_.text,M=x.value,j=x.x,U=x.y;if(M){var te=gg({x:j,y:U,className:"lf-element-text",value:M},_.getTextStyle());return Object(be.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackground(),Object(be.g)(Uj,$P({},te,{model:_})))}}}])&&jte(c.prototype,h),O}(Xj);function NP(f){return NP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},NP(f)}var zc,Fte=["text","sourceAnchorId","targetAnchorId"];function i8(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function qf(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?i8(Object(h),!0).forEach(function(g){bl(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):i8(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function zte(f,c){if(f==null)return{};var h,g,O=function(x,M){if(x==null)return{};var j,U,te={},de=Object.keys(x);for(U=0;U<de.length;U++)j=de[U],M.indexOf(j)>=0||(te[j]=x[j]);return te}(f,c);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(f);for(g=0;g<_.length;g++)h=_[g],c.indexOf(h)>=0||Object.prototype.propertyIsEnumerable.call(f,h)&&(O[h]=f[h])}return O}function Qte(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return a8(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return a8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  154. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function a8(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Wte(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function IP(f,c){return IP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},IP(f,c)}function Yte(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=jS(f);if(c){var O=jS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Zte(this,h)}}function Zte(f,c){if(c&&(NP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yl(f)}function yl(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function jS(f){return jS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},jS(f)}function bl(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}(function(f){f.SOURCE="SOURCE",f.TARGET="TARGET"})(zc||(zc={}));var s8=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&IP(_,x)})(O,f);var c,h,g=Yte(O);function O(_){var x;(function(te,de){if(!(te instanceof de))throw new TypeError("Cannot call a class as a function")})(this,O),bl(yl(x=g.call(this)),"stepDragData",void 0),bl(yl(x),"stepDrag",void 0),bl(yl(x),"oldEdge",void 0),bl(yl(x),"preTargetNode",void 0),bl(yl(x),"targetRuleResults",void 0),bl(yl(x),"sourceRuleResults",void 0),bl(yl(x),"handleMouseDown",function(te){x.stepDrag&&x.stepDrag.handleMouseDown(te)}),bl(yl(x),"onDragStart",function(){var te=x.props,de=te.x,Oe=te.y,Ne=te.edgeModel,Ge=Ne.startPoint,nt=Ne.endPoint,ft=Ne.pointsList;x.oldEdge={startPoint:Ge,endPoint:nt,pointsList:ft},x.setState({endX:de,endY:Oe,dragging:!0})}),bl(yl(x),"onDragging",function(te){var de=te.deltaX,Oe=te.deltaY,Ne=x.state,Ge=Ne.endX,nt=Ne.endY,ft=x.props,dt=ft.graphModel,yt=ft.type,Rt=dt.transformModel,on=dt.editConfigModel,dn=Qte(Rt.moveCanvasPointByHtml([Ge,nt],de,Oe),2),zn=dn[0],an=dn[1];x.setState({endX:zn,endY:an,dragging:!0});var An=x.props.edgeModel,gn=Lf({x:Ge,y:nt},dt);if(gn&&gn.node&&x.isAllowAdjust(gn).pass){var Er,Rr=An.startPoint,Jn=An.endPoint,Qr=An.sourceNode,si=An.targetNode;yt===zc.SOURCE?Er={startPoint:{x:gn.anchor.x,y:gn.anchor.y},endPoint:{x:Jn.x,y:Jn.y},sourceNode:gn.node,targetNode:si}:yt===zc.TARGET&&(Er={startPoint:{x:Rr.x,y:Rr.y},endPoint:{x:gn.anchor.x,y:gn.anchor.y},sourceNode:Qr,targetNode:gn.node}),An.updateAfterAdjustStartAndEnd(Er)}else yt===zc.SOURCE?An.updateStartPoint({x:zn,y:an}):yt===zc.TARGET&&An.updateEndPoint({x:zn,y:an});An.text.value&&on.adjustEdge&&An.setText(Object.assign({},An.text,An.textPosition))}),bl(yl(x),"onDragEnd",function(te){var de=te.event;try{var Oe;x.setState({dragging:!1});var Ne=x.props,Ge=Ne.graphModel,nt=Ne.edgeModel,ft=Ne.type,dt=x.state,yt=dt.endX,Rt=dt.endY,on=dt.dragging,dn=Lf({x:yt,y:Rt},Ge);if(!on)return;var zn,an=!1;if(dn&&dn.node){var An=x.isAllowAdjust(dn),gn=An.pass,Er=An.msg,Rr=An.newTargetNode;if(gn){var Jn=nt.getData(),Qr=Jn.text,si=Jn.sourceAnchorId,li=si===void 0?"":si,Ta=Jn.targetAnchorId;zn=qf(qf({sourceAnchorId:li,targetAnchorId:Ta===void 0?"":Ta},zte(Jn,Fte)),{},{text:(Qr==null?void 0:Qr.value)||""}),ft===zc.SOURCE?(zn=qf(qf({},Ge.edgeGenerator(Ge.getNodeModelById(dn.node.id).getData(),Ge.getNodeModelById(nt.targetNodeId).getData(),zn)),{},{sourceNodeId:dn.node.id,sourceAnchorId:dn.anchor.id,startPoint:{x:dn.anchor.x,y:dn.anchor.y},targetNodeId:nt.targetNodeId,endPoint:qf({},nt.endPoint)}),nt.sourceNodeId===dn.node.id&&nt.sourceAnchorId===dn.anchor.id&&(an=!0)):ft===zc.TARGET&&(zn=qf(qf({},Ge.edgeGenerator(Ge.getNodeModelById(nt.sourceNodeId).getData(),Ge.getNodeModelById(dn.node.id).getData(),zn)),{},{sourceNodeId:nt.sourceNodeId,startPoint:qf({},nt.startPoint),targetNodeId:dn.node.id,targetAnchorId:dn.anchor.id,endPoint:{x:dn.anchor.x,y:dn.anchor.y}}),nt.targetNodeId===dn.node.id&&nt.targetAnchorId===dn.anchor.id&&(an=!0))}else{an=!0;var _l=Rr.getData();Ge.eventCenter.emit($n.CONNECTION_NOT_ALLOWED,{data:_l,msg:Er})}}else an=!0;if(an)x.recoveryEdge();else{var Ol=nt.getData();Ge.deleteEdgeById(nt.id);var Wc=Ge.addEdge(qf({},zn));Ge.eventCenter.emit($n.EDGE_EXCHANGE_NODE,{data:{newEdge:Wc.getData(),oldEdge:Ol}})}(Oe=x.preTargetNode)===null||Oe===void 0||Oe.setElementState(Gr.DEFAULT)}finally{x.props.graphModel.eventCenter.emit($n.ADJUST_POINT_DRAGEND,{e:de,data:x.stepDragData})}}),bl(yl(x),"recoveryEdge",function(){var te=x.props.edgeModel,de=x.oldEdge,Oe=de.startPoint,Ne=de.endPoint,Ge=de.pointsList;te.updateStartPoint(Oe),te.updateEndPoint(Ne),te.modelType!==wr.LINE_EDGE&&(te.pointsList=Ge,te.initPoints())}),bl(yl(x),"getAdjustPointStyle",function(){var te=x.props,de=te.graphModel.theme;return te.edgeModel,de.edgeAdjust}),x.state={dragging:!1,endX:0,endY:0},x.targetRuleResults=new Map,x.sourceRuleResults=new Map;var M=_.type,j=_.edgeModel,U=_.graphModel.eventCenter;return x.stepDragData={type:M,edgeData:j.getData()},x.stepDrag=new gl({onDragStart:x.onDragStart,onDragging:x.onDragging,onDragEnd:x.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:U,data:x.stepDragData}),x}return c=O,(h=[{key:"isAllowAdjust",value:function(_){var x=this.props,M=x.edgeModel,j=M.id,U=M.sourceNode,te=M.targetNode,de=M.sourceAnchorId,Oe=M.targetAnchorId,Ne=x.type,Ge=null,nt=null,ft=null,dt=null;if(Ne===zc.SOURCE?(Ge=_.node,nt=te,ft=_.anchor,dt=te.getAnchorInfo(Oe)):(Ge=U,nt=_.node,dt=_.anchor,ft=U.getAnchorInfo(de)),this.preTargetNode&&this.preTargetNode!==_.node&&this.preTargetNode.setElementState(Gr.DEFAULT),this.preTargetNode=_.node,dt.id===ft.id)return{pass:!1,msg:"",newTargetNode:nt};var yt="".concat(Ge.id,"_").concat(nt.id,"_").concat(ft.id,"_").concat(dt.id);if(!this.targetRuleResults.has(yt)){var Rt=Ge.isAllowConnectedAsSource(nt,ft,dt,j),on=nt.isAllowConnectedAsTarget(Ge,ft,dt,j);this.sourceRuleResults.set(yt,Kp(Rt)),this.targetRuleResults.set(yt,Kp(on))}var dn=this.sourceRuleResults.get(yt),zn=dn.isAllPass,an=dn.msg,An=this.targetRuleResults.get(yt),gn=An.isAllPass,Er=An.msg,Rr=zn&&gn?Gr.ALLOW_CONNECT:Gr.NOT_ALLOW_CONNECT;return Ne===zc.SOURCE?Ge.setElementState(Rr):nt.setElementState(Rr),{pass:zn&&gn,msg:Er||an,newTargetNode:nt}}},{key:"render",value:function(){var _=this.props,x=_.x,M=_.y,j=_.getAdjustPointShape,U=_.edgeModel,te=this.state.dragging;return Object(be.g)("g",{pointerEvents:te?"none":"",onMouseDown:this.handleMouseDown},te?"":j(x,M,U))}}])&&Wte(c.prototype,h),O}(be.a);function DP(f){return DP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},DP(f)}function a_(){return a_=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},a_.apply(this,arguments)}function Ute(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return l8(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return l8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  155. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function l8(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Hte(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function Xte(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function jP(f,c){return jP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},jP(f,c)}function Gte(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=LS(f);if(c){var O=LS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return qte(this,h)}}function qte(f,c){if(c&&(DP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ec(f)}function ec(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function LS(f){return LS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},LS(f)}function Qc(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var s_=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&jP(_,x)})(O,f);var c,h,g=Gte(O);function O(){var _;Hte(this,O);for(var x=arguments.length,M=new Array(x),j=0;j<x;j++)M[j]=arguments[j];return Qc(ec(_=g.call.apply(g,[this].concat(M))),"startTime",void 0),Qc(ec(_),"contextMenuTime",void 0),Qc(ec(_),"clickTimer",void 0),Qc(ec(_),"textRef",Object(be.f)()),Qc(ec(_),"handleHover",function(U,te){var de=_.props,Oe=de.model,Ne=de.graphModel.eventCenter;Oe.setHovered(U);var Ge=U?$n.EDGE_MOUSEENTER:$n.EDGE_MOUSELEAVE,nt=Oe.getData();Ne.emit(Ge,{data:nt,e:te})}),Qc(ec(_),"setHoverON",function(U){_.props.model.isHovered||(_.textRef&&_.textRef.current&&_.textRef.current.setHoverON(),_.handleHover(!0,U))}),Qc(ec(_),"setHoverOFF",function(U){_.props.model.isHovered&&(_.textRef&&_.textRef.current&&_.textRef.current.setHoverOFF(),_.handleHover(!1,U))}),Qc(ec(_),"handleContextMenu",function(U){U.preventDefault(),_.contextMenuTime=new Date().getTime(),_.clickTimer&&clearTimeout(_.clickTimer);var te=_.props,de=te.model,Oe=te.graphModel,Ne=Oe.getPointByClient({x:U.clientX,y:U.clientY});Oe.setElementStateById(de.id,Gr.SHOW_MENU,Ne.domOverlayPosition),_.toFront(),de.isSelected||Oe.selectEdgeById(de.id);var Ge=de==null?void 0:de.getData();Oe.eventCenter.emit($n.EDGE_CONTEXTMENU,{data:Ge,e:U,position:Ne})}),Qc(ec(_),"handleMouseDown",function(U){U.stopPropagation(),_.startTime=new Date().getTime()}),Qc(ec(_),"handleMouseUp",function(U){if(_.startTime&&!(new Date().getTime()-_.startTime>200||U.button===2)){var te=U.detail===2,de=_.props,Oe=de.model,Ne=de.graphModel,Ge=Oe==null?void 0:Oe.getData(),nt=Ne.getPointByClient({x:U.clientX,y:U.clientY});if(te){var ft=Ne.editConfigModel,dt=Ne.textEditElement;if(dt&&dt.id===Oe.id&&Ne.setElementStateById(Oe.id,Gr.DEFAULT),ft.edgeTextEdit&&Oe.text.editable&&Ne.setElementStateById(Oe.id,Gr.TEXT_EDIT),Oe.modelType===wr.POLYLINE_EDGE){var yt=Oe,Rt=Ne.getPointByClient({x:U.x,y:U.y}).canvasOverlayPosition,on=Rt.x,dn=Rt.y,zn=Bb({x:on,y:dn},yt.points);yt.dbClickPosition=zn}Ne.eventCenter.emit($n.EDGE_DBCLICK,{data:Ge,e:U,position:nt})}else Ne.eventCenter.emit($n.ELEMENT_CLICK,{data:Ge,e:U,position:nt}),Ne.eventCenter.emit($n.EDGE_CLICK,{data:Ge,e:U,position:nt});var an=Ne.editConfigModel;Ne.selectEdgeById(Oe.id,tu(U,an)),_.toFront()}}),_}return c=O,(h=[{key:"getShape",value:function(){return Object(be.g)("g",null,this.getEdge())}},{key:"getTextStyle",value:function(){}},{key:"getText",value:function(){var _=this.props,x=_.model,M=_.graphModel;if(x.state===Gr.TEXT_EDIT)return null;var j=!1,U=M.editConfigModel;return(x.text.draggable||U.edgeTextDraggable)&&(j=!0),Object(be.g)(Vte,{ref:this.textRef,editable:U.edgeTextEdit&&x.text.editable,model:x,graphModel:M,draggable:j})}},{key:"getArrowInfo",value:function(){var _=this.props.model,x=_.startPoint,M=_.endPoint,j=_.isSelected;return{start:x,end:M,hover:this.state.hover,isSelected:j}}},{key:"getLastTwoPoints",value:function(){var _=this.props.model;return[_.startPoint,_.endPoint]}},{key:"getArrowStyle",value:function(){return null}},{key:"getArrow",value:function(){var _=this.props.model,x=_.id,M=_.getArrowStyle(),j=M.refY,U=j===void 0?0:j,te=M.refX,de=te===void 0?2:te,Oe=Ute(this.getLastTwoPoints(),2),Ne=Oe[0],Ge=Oe[1],nt="auto";return Ne!==null&&Ge!==null&&(nt=qo(ka({x:Ge.x-Ne.x,y:Ge.y-Ne.y,z:0}))),Object(be.g)("g",null,Object(be.g)("defs",null,Object(be.g)("marker",{id:"marker-start-".concat(x),refX:-de,refY:U,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},this.getStartArrow()),Object(be.g)("marker",{id:"marker-end-".concat(x),refX:de,refY:U,overflow:"visible",orient:nt,markerUnits:"userSpaceOnUse"},this.getEndArrow())))}},{key:"getStartArrow",value:function(){var _=this.props.model.getArrowStyle();return _.stroke,_.strokeWidth,_.offset,_.verticalLength,Object(be.g)("path",null)}},{key:"getEndArrow",value:function(){var _=this.props.model.getArrowStyle(),x=_.stroke,M=_.strokeWidth,j=_.offset,U=_.verticalLength;return Object(be.g)("path",{stroke:x,fill:x,strokeWidth:M,transform:"rotate(180)",d:"M 0 0 L ".concat(j," -").concat(U," L ").concat(j," ").concat(U," Z")})}},{key:"getAdjustPointShape",value:function(_,x,M){var j=M.getAdjustPointStyle();return Object(be.g)(Tm,a_({className:"lf-edge-adjust-point"},j,{x:_,y:x}))}},{key:"getAdjustPoints",value:function(){var _=this.props,x=_.model,M=_.graphModel,j=x.getAdjustStart(),U=x.getAdjustEnd();return Object(be.g)("g",null,Object(be.g)(s8,a_({type:"SOURCE"},j,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:x,graphModel:M})),Object(be.g)(s8,a_({type:"TARGET"},U,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:x,graphModel:M})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(be.g)("g",null)}},{key:"getAppend",value:function(){return Object(be.g)("g",{className:"lf-edge-append"},this.getAppendWidth())}},{key:"getEdge",value:function(){return null}},{key:"toFront",value:function(){var _=this.props,x=_.graphModel,M=_.model;x.toFront(M.id)}},{key:"render",value:function(){var _=this.props,x=_.model,M=x.isSelected,j=x.isHitable,U=x.isShowAdjustPoint;return _.graphModel.animation,Object(be.g)("g",null,Object(be.g)("g",{className:["lf-edge",!j&&"pointer-none",M&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverON,onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getShape(),this.getAppend(),this.getText(),this.getArrow()),U&&M?this.getAdjustPoints():"")}}])&&Xte(c.prototype,h),O}(be.a);function LP(f){return LP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},LP(f)}function Kte(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return u8(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return u8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  156. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function u8(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}var l_=function(f){var c={d:""};return Object.entries(f).forEach(function(h){var g=Kte(h,2),O=g[0],_=g[1],x=LP(_);O!=="style"&&x==="object"||(c[O]=_)}),Object(be.g)("path",c)};function BP(f){return BP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},BP(f)}function VP(){return VP=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},VP.apply(this,arguments)}function Jte(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function ene(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function FP(f,c){return FP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},FP(f,c)}function tne(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=BS(f);if(c){var O=BS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return nne(this,h)}}function nne(f,c){if(c&&(BP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function BS(f){return BS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},BS(f)}var zP=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&FP(_,x)})(O,f);var c,h,g=tne(O);function O(){return Jte(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"getEdge",value:function(){var _=this.props.model,x=_.startPoint,M=_.endPoint,j=_.isAnimation,U=_.arrowConfig,te=_.getEdgeStyle(),de=_.getEdgeAnimationStyle(),Oe=de.strokeDasharray,Ne=de.stroke,Ge=de.strokeDashoffset,nt=de.animationName,ft=de.animationDuration,dt=de.animationIterationCount,yt=de.animationTimingFunction,Rt=de.animationDirection;return Object(be.g)(Cm,VP({},te,{x1:x.x,y1:x.y,x2:M.x,y2:M.y},U,j?{strokeDasharray:Oe,stroke:Ne,style:{strokeDashoffset:Ge,animationName:nt,animationDuration:ft,animationIterationCount:dt,animationTimingFunction:yt,animationDirection:Rt}}:{}))}},{key:"getAppendWidth",value:function(){var _=this.props.model,x=_.startPoint,M=_.endPoint,j=Lb({start:x,end:M}),U=j.d,te=j.strokeWidth,de=j.fill,Oe=j.strokeDasharray,Ne=j.stroke;return Object(be.g)(l_,{d:U,fill:de,strokeWidth:te,stroke:Ne,strokeDasharray:Oe})}}])&&ene(c.prototype,h),O}(s_);function QP(f){return QP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},QP(f)}function rne(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return c8(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return c8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  157. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function c8(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}var one=function(f){var c={points:"",fill:"none"};return Object.entries(f).forEach(function(h){var g=rne(h,2),O=g[0],_=g[1];(O==="style"||QP(_)!=="object")&&(c[O]=_)}),Object(be.g)("polyline",c)};function WP(f){return WP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},WP(f)}function f8(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function VS(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?f8(Object(h),!0).forEach(function(g){Jf(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):f8(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function YP(){return YP=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},YP.apply(this,arguments)}function ine(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return d8(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return d8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  158. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function d8(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function ane(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function ZP(f,c){return ZP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},ZP(f,c)}function sne(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=FS(f);if(c){var O=FS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return lne(this,h)}}function lne(f,c){if(c&&(WP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kf(f)}function Kf(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function FS(f){return FS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},FS(f)}function Jf(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var UP=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&ZP(_,x)})(O,f);var c,h,g=sne(O);function O(){var _;return function(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")}(this,O),Jf(Kf(_=g.call(this)),"drag",void 0),Jf(Kf(_),"isDragging",void 0),Jf(Kf(_),"isShowAdjustPointTemp",void 0),Jf(Kf(_),"appendInfo",void 0),Jf(Kf(_),"onDragStart",function(){var x=_.props.model;x.dragAppendStart(),_.isShowAdjustPointTemp=x.isShowAdjustPoint,x.isShowAdjustPoint=!1}),Jf(Kf(_),"onDragging",function(x){var M=x.deltaX,j=x.deltaY,U=_.props,te=U.model,de=U.graphModel;_.isDragging=!0;var Oe=de.transformModel,Ne=de.editConfigModel,Ge=ine(Oe.fixDeltaXY(M,j),2),nt=Ge[0],ft=Ge[1],dt=te,yt=Ne.adjustEdgeMiddle;_.appendInfo=yt?dt.dragAppendSimple(_.appendInfo,{x:nt,y:ft}):dt.dragAppend(_.appendInfo,{x:nt,y:ft})}),Jf(Kf(_),"onDragEnd",function(){var x=_.props,M=x.model,j=x.graphModel.eventCenter,U=M;U.dragAppendEnd(),_.isDragging=!1,U.isShowAdjustPoint=_.isShowAdjustPointTemp,_.appendInfo=void 0,j.emit($n.EDGE_ADJUST,{data:U.getData()})}),Jf(Kf(_),"beforeDragStart",function(x,M){M.dragAble&&_.drag.handleMouseDown(x),_.appendInfo=M}),_.drag=new gl({onDragStart:_.onDragStart,onDragging:_.onDragging,onDragEnd:_.onDragEnd,isStopPropagation:!1}),_}return c=O,(h=[{key:"getEdge",value:function(){var _=this.props.model,x=_.points,M=_.isAnimation,j=_.arrowConfig,U=_.getEdgeStyle(),te=_.getEdgeAnimationStyle(),de=te.strokeDasharray,Oe=te.stroke,Ne=te.strokeDashoffset,Ge=te.animationName,nt=te.animationDuration,ft=te.animationIterationCount,dt=te.animationTimingFunction,yt=te.animationDirection;return Object(be.g)(one,YP({points:x},U,j,M?{strokeDasharray:de,stroke:Oe,style:{strokeDashoffset:Ne,animationName:Ge,animationDuration:nt,animationIterationCount:ft,animationTimingFunction:dt,animationDirection:yt}}:{}))}},{key:"getArrowInfo",value:function(){var _=this.props.model,x=_.points,M=_.isSelected,j={start:null,end:null,hover:this.state.hover,isSelected:M},U=Dc(x);return U.length>=2&&(j.start=U[U.length-2],j.end=U[U.length-1]),j}},{key:"getLastTwoPoints",value:function(){var _=this.props.model.points,x=Dc(_);return x.length>=2?[x[x.length-2],x[x.length-1]]:[null,null]}},{key:"getAppendAttributes",value:function(_){var x,M=_.start,j=_.end;if(M.x===j.x&&M.y===j.y)x="";else{var U={start:M,end:j,offset:10,verticalLength:5},te=tg(VS(VS({},U),{},{type:"start"})),de=tg(VS(VS({},U),{},{type:"end"}));x="M".concat(te.leftX," ").concat(te.leftY,`
  159. L`).concat(te.rightX," ").concat(te.rightY,`
  160. L`).concat(de.rightX," ").concat(de.rightY,`
  161. L`).concat(de.leftX," ").concat(de.leftY," z")}return{d:x,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}}},{key:"getAppendShape",value:function(_){var x=this.getAppendAttributes(_),M=x.d,j=x.strokeWidth,U=x.fill,te=x.strokeDasharray,de=x.stroke;return Object(be.g)(l_,{d:M,fill:U,strokeWidth:j,stroke:de,strokeDasharray:te})}},{key:"getAppendWidth",value:function(){for(var _=this,x=this.props,M=x.model,j=x.graphModel,U=M.pointsList,te=M.draggable,de=[],Oe=U.length,Ne=function(nt){var ft="lf-polyline-append",dt={start:{x:U[nt].x,y:U[nt].y},end:{x:U[nt+1].x,y:U[nt+1].y},startIndex:nt,endIndex:nt+1,direction:"",dragAble:!0},yt=Object(be.g)("g",{className:ft},_.getAppendShape(dt)),Rt=j.editConfigModel,on=Rt.adjustEdge,dn=Rt.adjustEdgeMiddle;if(on&&te){var zn=dt.startIndex,an=dt.endIndex,An=dn&&(zn===0||an===Oe-1);dt.dragAble=!An,dt.start.x===dt.end.x?(dt.dragAble&&(ft+="-ew-resize"),dt.direction=go.VERTICAL):dt.start.y===dt.end.y&&(dt.dragAble&&(ft+="-ns-resize"),dt.direction=go.HORIZONTAL),yt=Object(be.g)("g",{className:_.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(gn){return _.beforeDragStart(gn,dt)}},Object(be.g)("g",{className:ft},_.getAppendShape(dt)))}de.push(yt)},Ge=0;Ge<Oe-1;Ge++)Ne(Ge);return Object(be.g)("g",null,de)}}])&&ane(c.prototype,h),O}(s_);function HP(f){return HP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},HP(f)}function une(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return h8(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return h8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  162. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function h8(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function XP(){return XP=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])}return f},XP.apply(this,arguments)}function cne(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function fne(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function GP(f,c){return GP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},GP(f,c)}function dne(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=zS(f);if(c){var O=zS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return hne(this,h)}}function hne(f,c){if(c&&(HP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function zS(f){return zS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},zS(f)}var qP=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&GP(_,x)})(O,f);var c,h,g=dne(O);function O(){return cne(this,O),g.apply(this,arguments)}return c=O,(h=[{key:"getEdge",value:function(){var _=this.props.model,x=_.getEdgeStyle(),M=_.path,j=_.isAnimation,U=_.arrowConfig,te=_.getEdgeAnimationStyle(),de=te.strokeDasharray,Oe=te.stroke,Ne=te.strokeDashoffset,Ge=te.animationName,nt=te.animationDuration,ft=te.animationIterationCount,dt=te.animationTimingFunction,yt=te.animationDirection;return Object(be.g)(l_,XP({d:M},x,U,j?{strokeDasharray:de,stroke:Oe,style:{strokeDashoffset:Ne,animationName:Ge,animationDuration:nt,animationIterationCount:ft,animationTimingFunction:dt,animationDirection:yt}}:{}))}},{key:"getAppendWidth",value:function(){var _=this.props.model.path;return Object(be.g)(l_,{d:_,strokeWidth:10,stroke:"transparent",fill:"none"})}},{key:"getArrowInfo",value:function(){var _=this.props.model,x=this.state.hover,M=_.isSelected,j=_.getArrowStyle().offset,U=_.pointsList.map(function(de){return{x:de.x,y:de.y}}),te=une(ym(U,j),2);return{start:te[0],end:te[1],hover:x,isSelected:M}}},{key:"getLastTwoPoints",value:function(){var _=this.props.model,x=_.getArrowStyle().offset,M=_.pointsList.map(function(j){return{x:j.x,y:j.y}});return ym(M,x)}}])&&fne(c.prototype,h),O}(s_);function KP(f){return KP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},KP(f)}function p8(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function pne(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function gne(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function vne(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function JP(f,c){return JP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},JP(f,c)}function mne(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=QS(f);if(c){var O=QS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return yne(this,h)}}function yne(f,c){if(c&&(KP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function QS(f){return QS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},QS(f)}var bne=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&JP(_,x)})(O,f);var c,h,g=mne(O);function O(){return gne(this,O),g.apply(this,arguments)}return c=O,h=[{key:"getArrowAttributes",value:function(){var _=this.props,x=_.arrowInfo,M=_.style,j=x.start,U=x.end,te={start:j,end:U,offset:M.offset,verticalLength:M.verticalLength,type:"end"},de=tg(te),Oe=de.leftX,Ne=de.leftY,Ge=de.rightX,nt=de.rightY;return function(ft){for(var dt=1;dt<arguments.length;dt++){var yt=arguments[dt]!=null?arguments[dt]:{};dt%2?p8(Object(yt),!0).forEach(function(Rt){pne(ft,Rt,yt[Rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ft,Object.getOwnPropertyDescriptors(yt)):p8(Object(yt)).forEach(function(Rt){Object.defineProperty(ft,Rt,Object.getOwnPropertyDescriptor(yt,Rt))})}return ft}({d:"M".concat(Oe," ").concat(Ne," L").concat(U.x," ").concat(U.y," L").concat(Ge," ").concat(nt," z")},M)}},{key:"getShape",value:function(){var _=this.getArrowAttributes(),x=_.d,M=_.strokeWidth,j=_.stroke,U=_.fill;return Object(be.g)(l_,{d:x,fill:U,strokeWidth:M,stroke:j})}},{key:"render",value:function(){return Object(be.g)("g",{className:"lf-arrow"},this.getShape())}}],h&&vne(c.prototype,h),O}(be.a),g8=function(f,c){return Ot(f,c)},_ne=function(f){var c=f==null?0:f.length;return c?f[c-1]:void 0},e$=function(){return rt.a.Date.now()},One=/\s/,wne=function(f){for(var c=f.length;c--&&One.test(f.charAt(c)););return c},Sne=/^\s+/,xne=function(f){return f&&f.slice(0,wne(f)+1).replace(Sne,"")},kne=/^[-+]0x[0-9a-f]+$/i,Cne=/^0b[01]+$/i,Ene=/^0o[0-7]+$/i,Tne=parseInt,v8=function(f){if(typeof f=="number")return f;if(lr(f))return NaN;if(eo(f)){var c=typeof f.valueOf=="function"?f.valueOf():f;f=eo(c)?c+"":c}if(typeof f!="string")return f===0?f:+f;f=xne(f);var h=Cne.test(f);return h||Ene.test(f)?Tne(f.slice(2),h?2:8):kne.test(f)?NaN:+f},Pne=Math.max,$ne=Math.min,Ane=function(f,c,h){var g,O,_,x,M,j,U=0,te=!1,de=!1,Oe=!0;if(typeof f!="function")throw new TypeError("Expected a function");function Ne(Rt){var on=g,dn=O;return g=O=void 0,U=Rt,x=f.apply(dn,on)}function Ge(Rt){return U=Rt,M=setTimeout(ft,c),te?Ne(Rt):x}function nt(Rt){var on=Rt-j;return j===void 0||on>=c||on<0||de&&Rt-U>=_}function ft(){var Rt=e$();if(nt(Rt))return dt(Rt);M=setTimeout(ft,function(on){var dn=c-(on-j);return de?$ne(dn,_-(on-U)):dn}(Rt))}function dt(Rt){return M=void 0,Oe&&g?Ne(Rt):(g=O=void 0,x)}function yt(){var Rt=e$(),on=nt(Rt);if(g=arguments,O=this,j=Rt,on){if(M===void 0)return Ge(j);if(de)return clearTimeout(M),M=setTimeout(ft,c),Ne(j)}return M===void 0&&(M=setTimeout(ft,c)),x}return c=v8(c)||0,eo(h)&&(te=!!h.leading,_=(de="maxWait"in h)?Pne(v8(h.maxWait)||0,c):_,Oe="trailing"in h?!!h.trailing:Oe),yt.cancel=function(){M!==void 0&&clearTimeout(M),U=0,g=j=O=M=void 0},yt.flush=function(){return M===void 0?x:dt(e$())},yt},Mne=o(172);function Rne(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function hh(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var m8,y8,b8,Nne=function(){function f(g){(function(O,_){if(!(O instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),hh(this,"undos",[]),hh(this,"redos",[]),hh(this,"callbacks",[]),hh(this,"stopWatch",null),hh(this,"curData",null),hh(this,"maxSize",50),hh(this,"waitTime",100),hh(this,"eventCenter",void 0),this.eventCenter=g}var c,h;return c=f,(h=[{key:"add",value:function(g){g8(_ne(this.undos),g)||(this.undos.push(g),g8(this.curData,g)||(this.redos=[]),this.eventCenter.emit($n.HISTORY_CHANGE,{data:{undos:this.undos,redos:this.redos,undoAble:this.undos.length>1,redoAble:this.redos.length>0}}),this.undos.length>this.maxSize&&this.undos.shift())}},{key:"undoAble",value:function(){return this.undos.length>1}},{key:"undo",value:function(){if(this.undoAble()){var g=this.undos.pop();this.redos.push(g);var O=this.undos.pop();return this.curData=Co(O),O}}},{key:"redoAble",value:function(){return this.redos.length>0}},{key:"redo",value:function(){if(this.redoAble()){var g=this.redos.pop();return this.curData=Co(g),g}}},{key:"watch",value:function(g){var O=this;this.stopWatch&&this.stopWatch(),this.undos.push(g.modelToGraphData()),this.stopWatch=Object(Mne.a)(g,Ane(function(){var _=g.modelToHistoryData();_&&O.add(_)},this.waitTime))}}])&&Rne(c.prototype,h),f}();function t$(f){return t$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t$(f)}function Ine(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return _8(h,g);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return _8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  163. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _8(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function O8(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function vg(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?O8(Object(h),!0).forEach(function(g){mg(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):O8(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function w8(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function n$(f,c){return n$=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},n$(f,c)}function Dne(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=WS(f);if(c){var O=WS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return jne(this,h)}}function jne(f,c){if(c&&(t$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bm(f)}function Bm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function WS(f){return WS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},WS(f)}function mg(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var S8,x8,k8,r$=tc((b8=y8=function(f){(function(x,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(M&&M.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),M&&n$(x,M)})(_,f);var c,h,g,O=Dne(_);function _(){var x;return function(M,j){if(!(M instanceof j))throw new TypeError("Cannot call a class as a function")}(this,_),mg(Bm(x=O.call(this)),"ref",Object(be.f)()),mg(Bm(x),"__prevText",{type:"",text:"",id:""}),mg(Bm(x),"keyupHandler",function(M){var j=x.props.graphModel.textEditElement;M.key==="Enter"&&M.altKey&&j.setElementState(0)}),mg(Bm(x),"inputHandler",function(M){var j=M.target.innerText,U=x.props.graphModel.textEditElement;x.__prevText={type:U.type,text:j.replace(/(\r\n)+$|(\n)+$/,""),id:U.id}}),mg(Bm(x),"keydownHandler",function(M){M.stopPropagation()}),x.state={style:{left:0,top:0}},x}return c=_,g=[{key:"getDerivedStateFromProps",value:function(x){var M,j=x.graphModel,U=j.transformModel,te=j.theme,de=te.inputText,Oe=j.textEditElement;if(Oe){var Ne;if((Ne=Oe.text)===null||Ne===void 0||!Ne.value)if(Oe.BaseType===ai.EDGE){var Ge=(Oe=Oe).text,nt=Oe.textPosition,ft=nt.x,dt=nt.y;Ge.x=ft,Ge.y=dt,Oe.setText(Ge)}else Oe=Oe;var yt={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(Oe.BaseType===ai.EDGE){var Rt=te.edgeText,on=Rt.overflowMode,dn=Rt.lineHeight,zn=Rt.wrapPadding,an=Rt.textWidth;an&&on==="autoWrap"&&(M=vg(vg({},yt),{},{width:an,minWidth:an,lineHeight:dn,padding:zn}))}else if(Oe.BaseType===ai.NODE){var An=te.nodeText,gn=An.overflowMode,Er=An.lineHeight,Rr=An.wrapPadding,Jn=An.textWidth,Qr=Oe,si=Qr.width,li=Qr.modelType,Ta=Qr.textWidth||Jn||si;(li!==wr.TEXT_NODE&&gn==="autoWrap"||li===wr.TEXT_NODE&&Jn)&&(M=vg(vg({},yt),{},{width:Ta,minWidth:Ta,lineHeight:Er,padding:Rr}))}var _l=Oe.text,Ol=_l.x,Wc=_l.y,yg=Ine(U.CanvasPointToHtmlPoint([Ol,Wc]),2);return{style:vg(vg({left:yg[0],top:yg[1]},M),de)}}}}],(h=[{key:"componentDidUpdate",value:function(){var x=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var M=this.__prevText,j=M.text,U=M.id;x.updateText(U,j),x.eventCenter.emit($n.TEXT_UPDATE,vg({},this.__prevText)),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}}},{key:"placeCaretAtEnd",value:function(x){if(window.getSelection!==void 0&&document.createRange!==void 0){var M=document.createRange();M.selectNodeContents(x),M.collapse(!1);var j=window.getSelection();j.removeAllRanges(),j.addRange(M)}}},{key:"render",value:function(){var x,M=this.props.graphModel.textEditElement,j=this.state.style;return M?Object(be.g)("div",{contentEditable:!0,className:"lf-text-input",style:j,ref:this.ref,key:M.id,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler},(x=M.text)===null||x===void 0?void 0:x.value):null}}])&&w8(c.prototype,h),g&&w8(c,g),_}(be.a),mg(y8,"toolName","textEdit"),m8=b8))||m8,Lne=function(f){return f.modelType===wr.LINE_EDGE?function(c){var h=c.startPoint,g=c.endPoint,O=(h.x+g.x)/2,_=(h.y+g.y)/2,x=Math.abs(h.x-g.x)+10,M=Math.abs(h.y-g.y)+10;return{x:O-x/2,y:_-M/2,x1:O+x/2,y1:_+M/2}}(f):f.modelType===wr.POLYLINE_EDGE?function(c){var h=c.points,g=Dc(h),O=ih(g,8),_=O.x,x=O.y,M=O.width,j=O.height;return{x:_-M/2,y:x-j/2,x1:_+M/2,y1:x+j/2}}(f):f.modelType===wr.BEZIER_EDGE?function(c){var h=c.path,g=mm(h),O=ih(g,8),_=O.x,x=O.y,M=O.width,j=O.height;return{x:_-M/2,y:x-j/2,x1:_+M/2,y1:x+j/2}}(f):void 0};function o$(f){return o$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},o$(f)}function C8(f,c){return function(h){if(Array.isArray(h))return h}(f)||function(h,g){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var _,x,M=[],j=!0,U=!1;try{for(O=O.call(h);!(j=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);j=!0);}catch(te){U=!0,x=te}finally{try{j||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||E8(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  164. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Bne(f){return function(c){if(Array.isArray(c))return i$(c)}(f)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(f)||E8(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  165. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E8(f,c){if(f){if(typeof f=="string")return i$(f,c);var h=Object.prototype.toString.call(f).slice(8,-1);return h==="Object"&&f.constructor&&(h=f.constructor.name),h==="Map"||h==="Set"?Array.from(f):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?i$(f,c):void 0}}function i$(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,g=new Array(c);h<c;h++)g[h]=f[h];return g}function Vne(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function a$(f,c){return a$=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},a$(f,c)}function Fne(f){var c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=YS(f);if(c){var O=YS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return zne(this,h)}}function zne(f,c){if(c&&(o$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u_(f)}function u_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function YS(f){return YS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},YS(f)}function c_(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var s$=tc((k8=x8=function(f){(function(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),x&&a$(_,x)})(O,f);var c,h,g=Fne(O);function O(_){var x;(function(te,de){if(!(te instanceof de))throw new TypeError("Cannot call a class as a function")})(this,O),c_(u_(x=g.call(this)),"stepDrag",void 0),c_(u_(x),"handleMouseDown",function(te){x.stepDrag.handleMouseDown(te)}),c_(u_(x),"onDragging",function(te){var de=te.deltaX,Oe=te.deltaY,Ne=x.props.graphModel,Ge=Ne.getSelectElements(!0);Ne.moveNodes(Ge.nodes.map(function(nt){return nt.id}),de,Oe)}),c_(u_(x),"handleContextMenu",function(te){te.preventDefault();var de=x.props,Oe=de.graphModel,Ne=de.graphModel,Ge=Ne.eventCenter,nt=Ne.selectElements,ft=Oe.getPointByClient({x:te.clientX,y:te.clientY}),dt={nodes:[],edges:[]};Bne(nt.values()).forEach(function(yt){yt.BaseType===ai.NODE&&dt.nodes.push(yt.getData()),yt.BaseType===ai.EDGE&&dt.edges.push(yt.getData())}),Ge.emit($n.SELECTION_CONTEXTMENU,{data:dt,e:te,position:ft})});var M=_.graphModel,j=M.gridSize,U=M.eventCenter;return x.stepDrag=new gl({onDragging:x.onDragging,step:j,eventType:"SELECTION",eventCenter:U}),x}return c=O,(h=[{key:"render",value:function(){var _=this.props.graphModel,x=_.selectElements,M=_.transformModel;if(!(x.size<=1)){var j=Number.MAX_SAFE_INTEGER,U=Number.MAX_SAFE_INTEGER,te=Number.MIN_SAFE_INTEGER,de=Number.MIN_SAFE_INTEGER;x.forEach(function(nt){var ft={x:0,y:0,x1:0,y1:0};nt.BaseType===ai.NODE&&(ft=function(dt){var yt=dt.x,Rt=dt.y,on=dt.width,dn=dt.height;return{x:yt-on/2,y:Rt-dn/2,x1:yt+on/2,y1:Rt+dn/2}}(nt)),nt.BaseType===ai.EDGE&&(ft=Lne(nt)),j=Math.min(j,ft.x),U=Math.min(U,ft.y),te=Math.max(te,ft.x1),de=Math.max(de,ft.y1)});var Oe=C8(M.CanvasPointToHtmlPoint([j,U]),2);j=Oe[0],U=Oe[1];var Ne=C8(M.CanvasPointToHtmlPoint([te,de]),2);te=Ne[0],de=Ne[1];var Ge={left:"".concat(j-10,"px"),top:"".concat(U-10,"px"),width:"".concat(te-j+20,"px"),height:"".concat(de-U+20,"px")};return Object(be.g)("div",{className:"lf-multiple-select",style:Ge,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu})}}}])&&Vne(c.prototype,h),O}(be.a),c_(x8,"toolName","multipleSelect"),S8=k8))||S8;function Qne(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function ZS(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var Wne=function(){function f(g){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,f),ZS(this,"tools",void 0),ZS(this,"components",void 0),ZS(this,"toolMap",new Map),ZS(this,"instance",void 0),this.instance=g,this.isDisabledTool(r$.toolName)||this.registerTool(r$.toolName,r$),this.isDisabledTool(s$.toolName)||this.registerTool(s$.toolName,s$);var O=g.graphModel;O.eventCenter.on("".concat($n.GRAPH_TRANSFORM,",").concat($n.NODE_CLICK,",").concat($n.BLANK_CLICK," "),function(){var _=O.textEditElement,x=O.editConfigModel,M=x.edgeTextEdit,j=x.nodeTextEdit;(M||j)&&_&&O.textEditElement.setElementState(Gr.DEFAULT)})}var c,h;return c=f,(h=[{key:"isDisabledTool",value:function(g){return this.instance.options.disabledTools.indexOf(g)!==-1}},{key:"registerTool",value:function(g,O){this.toolMap.set(g,O)}},{key:"getTools",value:function(){return Array.from(this.toolMap.values())}},{key:"getInstance",value:function(){return this.instance}}])&&Qne(c.prototype,h),f}(),Yne=o(173),Zne=o.n(Yne);function Une(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function l$(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var T8=function(){function f(g){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,f),l$(this,"mousetrap",void 0),l$(this,"options",void 0),l$(this,"target",void 0),g.keyboard||(g.keyboard={enabled:!1}),this.options=g;var O=g.lf;this.target=O.container,this.mousetrap=new Zne.a(this.target),g.keyboard.enabled&&this.enable(!0)}var c,h;return c=f,(h=[{key:"initShortcuts",value:function(){var g=this,O=this.options.keyboard.shortcuts;if(O)if(lo(O))O.forEach(function(j){var U=j.keys,te=j.callback,de=j.action;return g.on(U,te,de)});else{var _=O.keys,x=O.callback,M=O.action;this.on(_,x,M)}}},{key:"on",value:function(g,O,_){this.mousetrap.bind(this.getKeys(g),O,_)}},{key:"disabled",get:function(){return this.options.keyboard.enabled!==!0}},{key:"off",value:function(g,O){this.mousetrap.unbind(this.getKeys(g),O)}},{key:"enable",value:function(g){(this.disabled||g)&&(this.options.keyboard.enabled=!0,this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))}},{key:"disable",value:function(){this.disabled||(this.options.keyboard.enabled=!1,this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))}},{key:"getKeys",value:function(g){var O=this;return(Array.isArray(g)?g:[g]).map(function(_){return O.formatKey(_)})}},{key:"formatKey",value:function(g){return g.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")}}])&&Une(c.prototype,h),f}(),Hne=T8,ed=null;function P8(f,c){return f.x+=c,f.y+=c,f.text&&(f.text.x+=c,f.text.y+=c),f}function $8(f,c){return f.startPoint&&(f.startPoint.x+=c,f.startPoint.y+=c),f.endPoint&&(f.endPoint.x+=c,f.endPoint.y+=c),f.pointsList&&f.pointsList.length>0&&f.pointsList.forEach(function(h){h.x+=c,h.y+=c}),f.text&&(f.text.x+=c,f.text.y+=c),f}var Vm=40,u$=40;function c$(f){return c$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},c$(f)}function A8(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);c&&(g=g.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),h.push.apply(h,g)}return h}function f_(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?A8(Object(h),!0).forEach(function(g){Jo(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):A8(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function M8(f,c){for(var h=0;h<c.length;h++){var g=c[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function Jo(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var f$=Symbol("plugin register by Logicflow.use"),d$=function(){function f(O){var _,x,M=this;(function(j,U){if(!(j instanceof U))throw new TypeError("Cannot call a class as a function")})(this,f),Jo(this,"container",void 0),Jo(this,"width",void 0),Jo(this,"height",void 0),Jo(this,"graphModel",void 0),Jo(this,"history",void 0),Jo(this,"viewMap",new Map),Jo(this,"tool",void 0),Jo(this,"keyboard",void 0),Jo(this,"dnd",void 0),Jo(this,"options",void 0),Jo(this,"snaplineModel",void 0),Jo(this,"components",[]),Jo(this,"plugins",void 0),Jo(this,"extension",{}),Jo(this,"adapterIn",void 0),Jo(this,"adapterOut",void 0),Jo(this,"getView",function(j){return M.viewMap.get(j)}),O=E4(O),this.options=O,this.container=this.initContainer(O.container),this.plugins=O.plugins,this.graphModel=new km(f_({},O)),this.tool=new Wne(this),this.history=new Nne(this.graphModel.eventCenter),this.dnd=new QJ({lf:this}),this.keyboard=new Hne({lf:this,keyboard:O.keyboard}),O.snapline!==!1&&(this.snaplineModel=new Fj(this.graphModel),_=this.graphModel.eventCenter,x=this.snaplineModel,_.on("node:mousemove",function(j){var U=j.data;x.setNodeSnapLine(U)}),_.on("node:mouseup",function(){x.clearSnapline()})),this.options.isSilentMode||(function(j,U){var te=j.keyboard,de=te.options.keyboard;te.on(["cmd + c","ctrl + c"],function(){if(u$=Vm,!de.enabled||U.textEditElement)return!0;var Oe=j.options.guards,Ne=U.getSelectElements(!1);return Oe&&Oe.beforeClone&&!Oe.beforeClone(Ne)||Ne.nodes.length===0&&Ne.edges.length===0?(ed=null,!0):((ed=Ne).nodes.forEach(function(Ge){return P8(Ge,Vm)}),ed.edges.forEach(function(Ge){return $8(Ge,Vm)}),!1)}),te.on(["cmd + v","ctrl + v"],function(){if(!de.enabled||U.textEditElement)return!0;if(ed&&(ed.nodes||ed.edges)){j.clearSelectElements();var Oe=j.addElements(ed,u$);if(!Oe)return!0;Oe.nodes.forEach(function(Ne){return j.selectElementById(Ne.id,!0)}),Oe.edges.forEach(function(Ne){return j.selectElementById(Ne.id,!0)}),ed.nodes.forEach(function(Ne){return P8(Ne,Vm)}),ed.edges.forEach(function(Ne){return $8(Ne,Vm)}),u$+=Vm}return!1}),te.on(["cmd + z","ctrl + z"],function(){return!de.enabled||!!U.textEditElement||(j.undo(),!1)}),te.on(["cmd + y","ctrl + y"],function(){return!de.enabled||!!U.textEditElement||(j.redo(),!1)}),te.on(["backspace"],function(){if(!de.enabled||U.textEditElement)return!0;var Oe=U.getSelectElements(!0);return j.clearSelectElements(),Oe.edges.forEach(function(Ne){return j.deleteEdge(Ne.id)}),Oe.nodes.forEach(function(Ne){return j.deleteNode(Ne.id)}),!1})}(this,this.graphModel),this.keyboard.initShortcuts()),this.defaultRegister(),this.installPlugins(O.disabledPlugins)}var c,h,g;return c=f,h=[{key:"register",value:function(O,_){var x=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(typeof O=="string"){var M={BaseEdge:s_,BaseEdgeModel:vb,BaseNode:Gf,BaseNodeModel:Xf,RectNode:rP,RectNodeModel:NT,CircleNode:sP,CircleNodeModel:gT,PolygonNode:dP,PolygonNodeModel:$T,TextNode:xP,TextNodeModel:LT,LineEdge:zP,LineEdgeModel:Vf,DiamondNode:vP,DiamondNodeModel:_T,PolylineEdge:UP,PolylineEdgeModel:hm,BezierEdge:qP,BezierEdgeModel:uT,EllipseNode:OP,EllipseNodeModel:xT,HtmlNode:TP,HtmlNodeModel:FT,h:be.g,type:O};this.viewMap.forEach(function(Oe){var Ne=Oe.extendKey;Ne&&(M[Ne]=Oe)}),this.graphModel.modelMap.forEach(function(Oe){var Ne=Oe.extendKey;Ne&&(M[Ne]=Oe)});var j=_(M),U=j.view,te=j.model,de=U;x&&!de.isObervered&&(de.isObervered=!0,de=Ke(de)),this.setView(O,de),this.graphModel.setModel(O,te)}else this.registerElement(O)}},{key:"registerElement",value:function(O){var _=O.view;O.isObserverView===!1||_.isObervered||(_.isObervered=!0,_=Ke(_)),this.setView(O.type,_),this.graphModel.setModel(O.type,O.model)}},{key:"batchRegister",value:function(){var O=this,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(x){O.registerElement(x)})}},{key:"defaultRegister",value:function(){this.registerElement({view:rP,model:NT,type:"rect"}),this.registerElement({type:"circle",view:sP,model:gT}),this.registerElement({type:"polygon",view:dP,model:$T}),this.registerElement({type:"line",view:zP,model:Vf}),this.registerElement({type:"polyline",view:UP,model:hm}),this.registerElement({type:"bezier",view:qP,model:uT}),this.registerElement({type:"text",view:xP,model:LT}),this.registerElement({type:"ellipse",view:OP,model:xT}),this.registerElement({type:"diamond",view:vP,model:_T}),this.registerElement({type:"html",view:TP,model:FT})}},{key:"selectElementById",value:function(O){var _=arguments.length>1&&arguments[1]!==void 0&&arguments[1],x=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.graphModel.selectElementById(O,_),!_&&x&&this.graphModel.toFront(O)}},{key:"focusOn",value:function(O){var _=this.graphModel.transformModel,x=O.coordinate,M=O.id;if(!x){var j=this.getNodeModelById(M);j&&(x=j.getData());var U=this.getEdgeModelById(M);U&&(x=U.textPosition)}var te=x,de=te.x,Oe=te.y;_.focusOn(de,Oe,this.graphModel.width,this.graphModel.height)}},{key:"setTheme",value:function(O){this.graphModel.setTheme(O)}},{key:"resize",value:function(O,_){this.graphModel.resize(O,_),this.options.width=this.graphModel.width,this.options.height=this.graphModel.height}},{key:"setDefaultEdgeType",value:function(O){this.graphModel.setDefaultEdgeType(O)}},{key:"updateText",value:function(O,_){this.graphModel.updateText(O,_)}},{key:"deleteElement",value:function(O){var _,x,M,j=this.getModelById(O);return!!j&&(x=(M=(Jo(_={},ai.NODE,this.deleteNode),Jo(_,ai.EDGE,this.deleteEdge),_)[j.BaseType])===null||M===void 0?void 0:M.call(this,O))!==null&&x!==void 0&&x}},{key:"getModelById",value:function(O){return this.graphModel.getElement(O)}},{key:"getDataById",value:function(O){var _;return(_=this.graphModel.getElement(O))===null||_===void 0?void 0:_.getData()}},{key:"changeNodeType",value:function(O,_){this.graphModel.changeNodeType(O,_)}},{key:"changeEdgeType",value:function(O,_){this.graphModel.changeEdgeType(O,_)}},{key:"getNodeEdges",value:function(O){return this.graphModel.getNodeEdges(O)}},{key:"addNode",value:function(O){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$n.NODE_ADD,x=arguments.length>2?arguments[2]:void 0;return this.graphModel.addNode(O,_,x)}},{key:"deleteNode",value:function(O){var _=this.graphModel.getNodeModelById(O);if(!_)return!1;var x=_.getData(),M=this.options.guards,j=!M||!M.beforeDelete||M.beforeDelete(x);return j&&this.graphModel.deleteNode(O),j}},{key:"cloneNode",value:function(O){var _=this.graphModel.getNodeModelById(O).getData(),x=this.options.guards;if(!x||!x.beforeClone||x.beforeClone(_))return this.graphModel.cloneNode(O)}},{key:"changeNodeId",value:function(O,_){return this.graphModel.changeNodeId(O,_)}},{key:"getNodeModelById",value:function(O){return this.graphModel.getNodeModelById(O)}},{key:"getNodeDataById",value:function(O){var _;return(_=this.graphModel.getNodeModelById(O))===null||_===void 0?void 0:_.getData()}},{key:"addEdge",value:function(O){return this.graphModel.addEdge(O)}},{key:"deleteEdge",value:function(O){var _=this.options.guards,x=this.graphModel.edgesMap[O];if(!x)return!1;var M=x.model.getData(),j=!_||!_.beforeDelete||_.beforeDelete(M);return j&&this.graphModel.deleteEdgeById(O),j}},{key:"deleteEdgeByNodeId",value:function(O){var _=O.sourceNodeId,x=O.targetNodeId;_&&x?this.graphModel.deleteEdgeBySourceAndTarget(_,x):_?this.graphModel.deleteEdgeBySource(_):x&&this.graphModel.deleteEdgeByTarget(x)}},{key:"changeEdgeId",value:function(O,_){return this.graphModel.changeEdgeId(O,_)}},{key:"getEdgeModelById",value:function(O){var _;return(_=this.graphModel.edgesMap[O])===null||_===void 0?void 0:_.model}},{key:"getEdgeModels",value:function(O){var _=this.graphModel.edges,x=O.sourceNodeId,M=O.targetNodeId;if(x&&M){var j=[];return _.forEach(function(de){de.sourceNodeId===x&&de.targetNodeId===M&&j.push(de)}),j}if(x){var U=[];return _.forEach(function(de){de.sourceNodeId===x&&U.push(de)}),U}if(M){var te=[];return _.forEach(function(de){de.targetNodeId===M&&te.push(de)}),te}return[]}},{key:"getEdgeDataById",value:function(O){var _;return(_=this.getEdgeModelById(O))===null||_===void 0?void 0:_.getData()}},{key:"getNodeIncomingEdge",value:function(O){return this.graphModel.getNodeIncomingEdge(O)}},{key:"getNodeOutgoingEdge",value:function(O){return this.graphModel.getNodeOutgoingEdge(O)}},{key:"getNodeIncomingNode",value:function(O){return this.graphModel.getNodeIncomingNode(O)}},{key:"getNodeOutgoingNode",value:function(O){return this.graphModel.getNodeOutgoingNode(O)}},{key:"editText",value:function(O){this.graphModel.editText(O)}},{key:"setProperties",value:function(O,_){var x;(x=this.graphModel.getElement(O))===null||x===void 0||x.setProperties(mo(_))}},{key:"deleteProperty",value:function(O,_){var x;(x=this.graphModel.getElement(O))===null||x===void 0||x.deleteProperty(_)}},{key:"getProperties",value:function(O){var _;return(_=this.graphModel.getElement(O))===null||_===void 0?void 0:_.getProperties()}},{key:"toFront",value:function(O){this.graphModel.toFront(O)}},{key:"setElementZIndex",value:function(O,_){return this.graphModel.setElementZIndex(O,_)}},{key:"addElements",value:function(O){for(var _=this,x=O.nodes,M=O.edges,j={},U={nodes:[],edges:[]},te=0;te<x.length;te++){var de=x[te],Oe=de.id,Ne=this.addNode(de);if(!Ne)return;Oe&&(j[Oe]=Ne.id),U.nodes.push(Ne)}return M.forEach(function(Ge){var nt=Ge.sourceNodeId,ft=Ge.targetNodeId;j[nt]&&(nt=j[nt]),j[ft]&&(ft=j[ft]);var dt=_.graphModel.addEdge(f_(f_({},Ge),{},{sourceNodeId:nt,targetNodeId:ft}));U.edges.push(dt)}),U}},{key:"getAreaElement",value:function(O,_){var x=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],M=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],j=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return this.graphModel.getAreaElement(O,_,x,M,j).map(function(U){return U.getData()})}},{key:"getSelectElements",value:function(){var O=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.graphModel.getSelectElements(O)}},{key:"clearSelectElements",value:function(){this.graphModel.clearSelectElements()}},{key:"getGraphData",value:function(){var O=this.graphModel.modelToGraphData();if(this.adapterOut){for(var _=arguments.length,x=new Array(_),M=0;M<_;M++)x[M]=arguments[M];return this.adapterOut.apply(this,[O].concat(x))}return O}},{key:"getGraphRawData",value:function(){return this.graphModel.modelToGraphData()}},{key:"clearData",value:function(){this.graphModel.clearData()}},{key:"updateEditConfig",value:function(O){this.graphModel.editConfigModel.updateEditConfig(O)}},{key:"getEditConfig",value:function(){return this.graphModel.editConfigModel.getConfig()}},{key:"getPointByClient",value:function(O,_){return this.graphModel.getPointByClient({x:O,y:_})}},{key:"undo",value:function(){if(this.history.undoAble()){var O=mo(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(O)}}},{key:"redo",value:function(){if(this.history.redoAble()){var O=mo(this.history.redo());this.clearSelectElements(),this.graphModel.graphDataToModel(O)}}},{key:"zoom",value:function(O,_){return this.graphModel.transformModel.zoom(O,_)}},{key:"resetZoom",value:function(){this.graphModel.transformModel.resetZoom()}},{key:"setZoomMiniSize",value:function(O){this.graphModel.transformModel.setZoomMiniSize(O)}},{key:"setZoomMaxSize",value:function(O){this.graphModel.transformModel.setZoomMaxSize(O)}},{key:"getTransform",value:function(){var O=this.graphModel.transformModel;return{SCALE_X:O.SCALE_X,SCALE_Y:O.SCALE_Y,TRANSLATE_X:O.TRANSLATE_X,TRANSLATE_Y:O.TRANSLATE_Y}}},{key:"translate",value:function(O,_){this.graphModel.transformModel.translate(O,_)}},{key:"resetTranslate",value:function(){var O=this.graphModel.transformModel,_=O.TRANSLATE_X,x=O.TRANSLATE_Y;this.translate(-_,-x)}},{key:"translateCenter",value:function(){this.graphModel.translateCenter()}},{key:"fitView",value:function(O,_){_===void 0&&(_=O),this.graphModel.fitView(O,_)}},{key:"openEdgeAnimation",value:function(O){this.graphModel.openEdgeAnimation(O)}},{key:"closeEdgeAnimation",value:function(O){this.graphModel.closeEdgeAnimation(O)}},{key:"on",value:function(O,_){this.graphModel.eventCenter.on(O,_)}},{key:"off",value:function(O,_){this.graphModel.eventCenter.off(O,_)}},{key:"once",value:function(O,_){this.graphModel.eventCenter.once(O,_)}},{key:"emit",value:function(O,_){this.graphModel.eventCenter.emit(O,_)}},{key:"initContainer",value:function(O){var _=document.createElement("div");return _.style.position="relative",_.style.width="100%",_.style.height="100%",O.innerHTML="",O.appendChild(_),_}},{key:"installPlugins",value:function(){var O,_=this,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=(O=this.plugins)!==null&&O!==void 0?O:f.extensions;M.forEach(function(j){var U=null,te=null;j[f$]?(U=j.extension,te=j.props):U=j;var de=U.pluginName||U.name;x.indexOf(de)===-1&&_.installPlugin(U,te)})}},{key:"installPlugin",value:function(O,_){if(c$(O)==="object"){var x=O.install,M=O.render;return x&&x.call(O,this,f),M&&this.components.push(M.bind(O)),void(this.extension[O.pluginName]=O)}var j=O,U=new j({lf:this,LogicFlow:f,options:this.options.pluginsOptions,props:_});U.render&&this.components.push(U.render.bind(U)),this.extension[j.pluginName]=U}},{key:"updateAttributes",value:function(O,_){this.graphModel.updateAttributes(O,_)}},{key:"createFakerNode",value:function(O){var _=this.graphModel.modelMap.get(O.type);if(_){var x=new _(f_(f_({},O),{},{virtual:!0}),this.graphModel);return this.graphModel.setFakerNode(x),x}}},{key:"removeFakerNode",value:function(){this.graphModel.removeFakerNode()}},{key:"setNodeSnapLine",value:function(O){this.snaplineModel&&this.snaplineModel.setNodeSnapLine(O)}},{key:"removeNodeSnapLine",value:function(){this.snaplineModel&&this.snaplineModel.clearSnapline()}},{key:"setView",value:function(O,_){this.viewMap.set(O,_)}},{key:"renderRawData",value:function(O){this.graphModel.graphDataToModel(mo(O)),this.options.history!==!1&&this.history.watch(this.graphModel),Object(be.j)(Object(be.g)(FJ,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit($n.GRAPH_RENDERED,this.graphModel.modelToGraphData())}},{key:"render",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.adapterIn&&(O=this.adapterIn(O)),this.renderRawData(O)}}],g=[{key:"use",value:function(O,_){var x,M,j=O.pluginName;j||(j=O.name);var U=(x=this.extensions.get(j))===null||x===void 0?void 0:x.extension;U&&U.destroy&&U.destroy(),this.extensions.set(j,(Jo(M={},f$,f$),Jo(M,"extension",O),Jo(M,"props",_),M))}}],h&&M8(c.prototype,h),g&&M8(c,g),f}();function tc(f){return Ke(f)}Jo(d$,"extensions",new Map),r.default=d$}])})})(qt,qt.exports);var kH=tEe(qt.exports),r6e=function(){function e(){globalThis._ids=this,this._ids=new Set}return e.prototype.generateId=function(){var t="xxxxxxx".replace(/[x]/g,function(n){var r=Math.random()*16|0,o=n==="x"?r:r&3|8;return o.toString(16)});return t},e.prototype.next=function(){for(var t=this.generateId();this._ids.has(t);)t=this.generateId();return this._ids.add(t),t},e}(),o6e=(globalThis==null?void 0:globalThis._ids)||new r6e;function _0(){return o6e.next()}var CH=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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){CH(t,e);function t(n,r){var o=this;return n.id||(n.id="Event_"+_0()),n.text||(n.text=""),n.text&&typeof n.text=="string"&&(n.text={value:n.text,x:n.x,y:n.y+40}),o=e.call(this,n,r)||this,o}return t.prototype.setAttributes=function(){this.r=18},t.prototype.getConnectedTargetRules=function(){var n=e.prototype.getConnectedTargetRules.call(this),r={message:"\u8D77\u59CB\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u7EC8\u70B9",validate:function(){return!1}};return n.push(r),n},t.extendKey="StartEventModel",t})(qt.exports.CircleNodeModel);(function(e){CH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.extendKey="StartEventNode",t})(qt.exports.CircleNode);var EH=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),r2=globalThis&&globalThis.__assign||function(){return r2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r2.apply(this,arguments)};(function(e){EH(t,e);function t(n,r){var o=this;return n.id||(n.id="Event_"+_0()),n.text||(n.text=""),n.text&&typeof n.text=="string"&&(n.text={value:n.text,x:n.x,y:n.y+40}),o=e.call(this,n,r)||this,o}return t.prototype.setAttributes=function(){this.r=18},t.prototype.getConnectedSourceRules=function(){var n=e.prototype.getConnectedSourceRules.call(this),r={message:"\u7ED3\u675F\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u8D77\u70B9",validate:function(){return!1}};return n.push(r),n},t.extendKey="EndEventModel",t})(qt.exports.CircleNodeModel);(function(e){EH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getAnchorStyle=function(){return{visibility:"hidden"}},t.prototype.getShape=function(){var n=this.props.model,r=n.getNodeStyle(),o=n.x,i=n.y,a=n.r,s=e.prototype.getShape.call(this);return qt.exports.h("g",{},s,qt.exports.h("circle",r2(r2({},r),{cx:o,cy:i,r:a-5})))},t.extendKey="EndEventView",t})(qt.exports.CircleNode);var TH=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),K_=globalThis&&globalThis.__assign||function(){return K_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},K_.apply(this,arguments)};(function(e){TH(t,e);function t(n,r){var o=this;return n.id||(n.id="Gateway_"+_0()),n.text||(n.text=""),n.text&&typeof n.text=="string"&&(n.text={value:n.text,x:n.x,y:n.y+40}),o=e.call(this,n,r)||this,o.points=[[25,0],[50,25],[25,50],[0,25]],o}return t.extendKey="ExclusiveGatewayModel",t})(qt.exports.PolygonNodeModel);(function(e){TH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getShape=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.points,l=n.getNodeStyle();return qt.exports.h("g",{transform:"matrix(1 0 0 1 "+(r-i/2)+" "+(o-a/2)+")"},qt.exports.h("polygon",K_(K_({},l),{x:r,y:o,points:s})),qt.exports.h("path",K_({d:"m 16,15 7.42857142857143,9.714285714285715 -7.42857142857143,9.714285714285715 3.428571428571429,0 5.714285714285715,-7.464228571428572 5.714285714285715,7.464228571428572 3.428571428571429,0 -7.42857142857143,-9.714285714285715 7.42857142857143,-9.714285714285715 -3.428571428571429,0 -5.714285714285715,7.464228571428572 -5.714285714285715,-7.464228571428572 -3.428571428571429,0 z"},l)))},t.extendKey="ExclusiveGatewayNode",t})(qt.exports.PolygonNode);var PH=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),o2=globalThis&&globalThis.__assign||function(){return o2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o2.apply(this,arguments)};(function(e){PH(t,e);function t(n,r){var o=this;return n.id||(n.id="Activity_"+_0()),o=e.call(this,n,r)||this,o}return t.extendKey="UserTaskModel",t})(qt.exports.RectNodeModel);(function(e){PH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelShape=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.getNodeStyle();return qt.exports.h("svg",{x:r-i/2+5,y:o-a/2+5,width:25,height:25,viewBox:"0 0 1274 1024"},qt.exports.h("path",{fill:s.stroke,d:"M655.807326 287.35973m-223.989415 0a218.879 218.879 0 1 0 447.978829 0 218.879 218.879 0 1 0-447.978829 0ZM1039.955839 895.482975c-0.490184-212.177424-172.287821-384.030443-384.148513-384.030443-211.862739 0-383.660376 171.85302-384.15056 384.030443L1039.955839 895.482975z"}))},t.prototype.getShape=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.radius,l=n.getNodeStyle();return qt.exports.h("g",{},[qt.exports.h("rect",o2(o2({},l),{x:r-i/2,y:o-a/2,rx:s,ry:s,width:i,height:a})),this.getLabelShape()])},t.extendKey="UserTaskNode",t})(qt.exports.RectNode);var $H=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),oR=globalThis&&globalThis.__assign||function(){return oR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},oR.apply(this,arguments)};(function(e){$H(t,e);function t(n,r){var o=this;return n.id||(n.id="Activity_"+_0()),o=e.call(this,n,r)||this,o}return t.extendKey="ServiceTaskModel",t})(qt.exports.RectNodeModel);(function(e){$H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelShape=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.getNodeStyle();return qt.exports.h("svg",{x:r-i/2+5,y:o-a/2+5,width:30,height:30,viewBox:"0 0 1274 1024"},qt.exports.h("path",{fill:s.stroke,d:"M882.527918 434.149934c-2.234901-5.303796-7.311523-8.853645-13.059434-9.138124l-61.390185-3.009544c-6.635117-20.973684-15.521508-41.175795-26.513864-60.282968l42.051745-47.743374c4.308119-4.889357 4.955872-12.004405 1.602498-17.59268-46.384423-77.30362-103.969956-101.422947-106.400309-102.410438-5.332449-2.170432-11.432377-1.090844-15.693424 2.77009L654.674467 240.664222c-17.004279-8.654101-35.092239-15.756869-53.995775-21.210068l-3.26537-66.490344c-0.280386-5.747911-3.833305-10.824533-9.134031-13.059434-1.683339-0.709151-30.193673-12.391215-76.866668-12.051477-46.672996-0.339738-75.18333 11.342326-76.866668 12.051477-5.300726 2.234901-8.853645 7.311523-9.134031 13.059434l-3.26537 66.490344c-18.903535 5.453199-36.991496 12.555967-53.995775 21.210068l-48.450479-43.922349c-4.261047-3.860934-10.360975-4.940522-15.693424-2.77009-2.430352 0.98749-60.015885 25.106818-106.400309 102.410438-3.353374 5.588275-2.705622 12.703323 1.602498 17.59268l42.051745 47.743374c-10.992355 19.107173-19.878746 39.309284-26.513864 60.282968l-61.390185 3.009544c-5.747911 0.284479-10.824533 3.834328-13.059434 9.138124-1.01512 2.415003-24.687262 60.190871-2.822278 147.651828 1.583055 6.324032 7.072069 10.893094 13.57518 11.308557 5.892197 0.37146 11.751648 0.523933 17.419741 0.667196 14.498202 0.372483 28.193109 0.723477 40.908712 4.63353 4.212952 1.294482 6.435573 8.270361 9.349949 18.763342 1.287319 4.640694 2.617617 9.43693 4.484128 14.010085 1.794879 4.393054 3.75758 8.570189 5.66093 12.607132 1.302669 2.765997 2.529613 5.380544 3.689019 8.018627 2.986007 6.803963 2.682086 9.773598 2.578732 10.349719-3.061732 3.672646-6.391571 7.238868-9.91379 11.015891-1.810229 1.943258-3.680832 3.949962-5.523807 5.980201l-22.560832 24.8909c-3.865028 4.261047-4.940522 10.365068-2.774183 15.693424 0.991584 2.426259 25.102724 60.011792 102.414531 106.400309 5.588275 3.353374 12.703323 2.701528 17.591657-1.603521l23.476691-20.682042c2.346441-2.061962 4.64888-4.336772 6.875594-6.534833 9.05319-8.93858 14.018272-12.95608 17.73185-11.576663 3.305279 1.222851 6.907317 3.166109 10.720156 5.228071 3.325745 1.794879 6.764054 3.650133 10.465352 5.288446 6.016017 2.662643 12.120039 4.688789 18.019399 6.65149 6.827499 2.266623 13.279445 4.409426 18.819624 7.275707 1.518586 0.782829 1.926886 0.994654 2.358721 7.830339 0.726547 11.496845 1.25048 23.276123 1.753947 34.672684 0.264013 5.900384 0.528026 11.803837 0.815575 17.700127 0.284479 5.743818 3.833305 10.82044 9.138124 13.05534 1.654686 0.698918 29.371958 12.063757 74.869175 12.063757 0.328481 0 3.65832 0 3.986801 0 45.497217 0 73.214489-11.364839 74.869175-12.063757 5.304819-2.234901 8.853645-7.311523 9.138124-13.05534 0.287549-5.89629 0.551562-11.799744 0.815575-17.700127 0.503467-11.396561 1.027399-23.175839 1.753947-34.672684 0.431835-6.835685 0.840134-7.04751 2.358721-7.830339 5.54018-2.866281 11.992125-5.009084 18.819624-7.275707 5.89936-1.962701 12.003382-3.988848 18.019399-6.65149 3.701299-1.638313 7.139607-3.493567 10.465352-5.288446 3.812839-2.061962 7.414877-4.00522 10.720156-5.228071 3.713578-1.379417 8.67866 2.638083 17.73185 11.576663 2.226714 2.198062 4.529153 4.472871 6.875594 6.534833l23.476691 20.682042c4.888334 4.305049 12.003382 4.956895 17.591657 1.603521 77.311807-46.388517 101.422947-103.97405 102.414531-106.400309 2.166339-5.328355 1.090844-11.432377-2.774183-15.693424l-22.560832-24.8909c-1.842974-2.030239-3.713578-4.036943-5.523807-5.980201-3.52222-3.777023-6.852058-7.343245-9.91379-11.015891-0.103354-0.576121-0.407276-3.545756 2.578732-10.349719 1.159406-2.638083 2.38635-5.252631 3.689019-8.018627 1.90335-4.036943 3.866051-8.214079 5.66093-12.607132 1.866511-4.573155 3.196809-9.369392 4.484128-14.010085 2.914376-10.492982 5.136997-17.46886 9.349949-18.763342 12.715603-3.910053 26.41051-4.261047 40.908712-4.63353 5.668093-0.143263 11.527544-0.295735 17.419741-0.667196 6.503111-0.415462 11.992125-4.984524 13.57518-11.308557C907.21518 494.340805 883.543038 436.564937 882.527918 434.149934zM643.49894 643.761929c-35.280528 35.280528-82.191954 54.711066-132.086317 54.711066s-96.806813-19.430538-132.086317-54.711066c-35.280528-35.279504-54.711066-82.191954-54.711066-132.086317 0-49.894364 19.430538-96.80272 54.711066-132.082224 35.283598-35.284621 82.191954-54.711066 132.086317-54.711066s96.80579 19.426445 132.086317 54.711066c35.279504 35.279504 54.711066 82.187861 54.711066 132.082224C698.210006 561.569976 678.782537 608.482425 643.49894 643.761929z"}))},t.prototype.getShape=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.radius,l=n.getNodeStyle();return qt.exports.h("g",{},[qt.exports.h("rect",oR({x:r-i/2,y:o-a/2,rx:s,ry:s,width:i,height:a},l)),this.getLabelShape()])},t.extendKey="ServiceTaskNode",t})(qt.exports.RectNode);var AH=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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){AH(t,e);function t(n,r){var o=this;return n.id||(n.id="Flow_"+_0()),o=e.call(this,n,r)||this,o}return t.extendKey="SequenceFlowModel",t})(qt.exports.PolylineEdgeModel);(function(e){AH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.extendKey="SequenceFlowEdge",t})(qt.exports.PolylineEdge);var RB={width:40,height:40},NB={width:40,height:40},IB={width:40,height:40},DB={width:100,height:80},jB={width:100,height:80},i6e=function(){function e(){globalThis._ids=this,this._ids=new Set}return e.prototype.generateId=function(){var t="xxxxxxx".replace(/[x]/g,function(n){var r=Math.random()*16|0,o=n==="x"?r:r&3|8;return o.toString(16)});return t},e.prototype.next=function(){for(var t=this.generateId();this._ids.has(t);)t=this.generateId();return this._ids.add(t),t},e}(),a6e=(globalThis==null?void 0:globalThis._ids)||new i6e;function LB(){return a6e.next()}function MH(e){return Object.prototype.toString.call(e)}function s6e(e){return" ".repeat(e)}function i2(e){var t=e;return MH(e)==="[object Object]"?(t={},Object.keys(e).forEach(function(n){var r=n;n.charAt(0)==="-"&&(r=n.substring(1)),t[r]=i2(e[n])})):Array.isArray(e)&&(t=[],e.forEach(function(n,r){t[r]=i2(n)})),t}function l6e(e){var t=e;try{typeof t!="string"&&(t=JSON.parse(e))}catch{t=JSON.stringify(i2(e)).replace(/"/g,"'")}return t}var Zm=`
  166. `;function hk(e,t,n){var r=s6e(n),o="";if(t==="#text")return Zm+r+e;if(t==="#cdata-section")return Zm+r+"<![CDATA["+e+"]]>";if(t==="#comment")return Zm+r+"<!--"+e+"-->";if((""+t).charAt(0)==="-")return" "+t.substring(1)+'="'+l6e(e)+'"';if(Array.isArray(e))e.forEach(function(l){o+=hk(l,t,n+1)});else if(MH(e)==="[object Object]"){var i=Object.keys(e),a="",s="";o+=(n===0?"":Zm+r)+"<"+t,i.forEach(function(l){l.charAt(0)==="-"?a+=hk(e[l],l,n+1):s+=hk(e[l],l,n+1)}),o+=a+(s!==""?">"+s+(Zm+r)+"</"+t+">":" />")}else o+=Zm+r+("<"+t+">"+e.toString()+"</"+t+">");return o}function u6e(e){var t="";for(var n in e)t+=hk(e[n],n,0);return t}var Ns=function(){};Ns.ObjTree=function(){return this};Ns.ObjTree.VERSION="0.23";Ns.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
  167. `;Ns.ObjTree.prototype.attr_prefix="-";Ns.ObjTree.prototype.parseXML=function(e){var t;if(window.DOMParser){var n=new DOMParser,r=n.parseFromString(e,"application/xml");if(!r)return;t=r.documentElement}else window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLDOM"),n.async=!1,n.loadXML(e),t=n.documentElement);if(!!t)return this.parseDOM(t)};Ns.ObjTree.prototype.parseHTTP=function(e,t,n){var r={};for(var o in t)r[o]=t[o];if(r.method||(typeof r.postBody=="undefined"&&typeof r.postbody=="undefined"&&typeof r.parameters=="undefined"?r.method="get":r.method="post"),n){r.asynchronous=!0;var i=this,a=n,s=r.onComplete;r.onComplete=function(d){var p;d&&d.responseXML&&d.responseXML.documentElement&&(p=i.parseDOM(d.responseXML.documentElement)),a(p,d),s&&s(d)}}else r.asynchronous=!1;var l;if(typeof HTTP!="undefined"&&HTTP.Request){r.uri=e;var u=new HTTP.Request(r);u&&(l=u.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var u=new Ajax.Request(e,r);u&&(l=u.transport)}if(n)return l;if(l&&l.responseXML&&l.responseXML.documentElement)return this.parseDOM(l.responseXML.documentElement)};Ns.ObjTree.prototype.parseDOM=function(e){if(!!e){if(this.__force_array={},this.force_array)for(var t=0;t<this.force_array.length;t++)this.__force_array[this.force_array[t]]=1;var n=this.parseElement(e);if(this.__force_array[e.nodeName]&&(n=[n]),e.nodeType!=11){var r={};r[e.nodeName]=n,n=r}return n}};Ns.ObjTree.prototype.parseElement=function(e){if(e.nodeType!=7){if(e.nodeType==3||e.nodeType==4||e.nodeType==8){var t=e.nodeValue.match(/[^\x00-\x20]/);return t==null?void 0:e.nodeValue}var n=null,r={};if(e.attributes&&e.attributes.length){n={};for(var o=0;o<e.attributes.length;o++){var i=e.attributes[o].nodeName;if(typeof i=="string"){var a=e.attributes[o].nodeValue;try{a=JSON.parse(e.attributes[o].nodeValue.replace(/'/g,'"'))}catch{a=e.attributes[o].nodeValue}!a||(i=this.attr_prefix+i,typeof r[i]=="undefined"&&(r[i]=0),r[i]++,this.addNode(n,i,r[i],a))}}}if(e.childNodes&&e.childNodes.length){var s=!0;n&&(s=!1);for(var o=0;o<e.childNodes.length&&s;o++){var l=e.childNodes[o].nodeType;l==3||l==4||l==8||(s=!1)}if(s){n||(n="");for(var o=0;o<e.childNodes.length;o++)n+=e.childNodes[o].nodeValue}else{n||(n={});for(var o=0;o<e.childNodes.length;o++){var i=e.childNodes[o].nodeName;if(typeof i=="string"){var a=this.parseElement(e.childNodes[o]);!a||(typeof r[i]=="undefined"&&(r[i]=0),r[i]++,this.addNode(n,i,r[i],a))}}}}else n===null&&(n={});return n}};Ns.ObjTree.prototype.addNode=function(e,t,n,r){this.__force_array[t]?(n==1&&(e[t]=[]),e[t][e[t].length]=r):n==1?e[t]=r:n==2?e[t]=[e[t],r]:e[t][e[t].length]=r};Ns.ObjTree.prototype.writeXML=function(e){var t=this.hash_to_xml(null,e);return this.xmlDecl+t};Ns.ObjTree.prototype.hash_to_xml=function(e,t){var n=[],r=[];for(var o in t)if(!!t.hasOwnProperty(o)){var i=t[o];o.charAt(0)!=this.attr_prefix?typeof i=="undefined"||i==null?n[n.length]="<"+o+" />":typeof i=="object"&&i.constructor==Array?n[n.length]=this.array_to_xml(o,i):typeof i=="object"?n[n.length]=this.hash_to_xml(o,i):n[n.length]=this.scalar_to_xml(o,i):r[r.length]=" "+o.substring(1)+'="'+this.xml_escape(i)+'"'}var a=r.join(""),s=n.join("");return typeof e=="undefined"||e==null||(n.length>0?s.match(/\n/)?s="<"+e+a+`>
  168. `+s+"</"+e+`>
  169. `:s="<"+e+a+">"+s+"</"+e+`>
  170. `:s="<"+e+a+` />
  171. `),s};Ns.ObjTree.prototype.array_to_xml=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r];typeof o=="undefined"||o==null?n[n.length]="<"+e+" />":typeof o=="object"&&o.constructor==Array?n[n.length]=this.array_to_xml(e,o):typeof o=="object"?n[n.length]=this.hash_to_xml(e,o):n[n.length]=this.scalar_to_xml(e,o)}return n.join("")};Ns.ObjTree.prototype.scalar_to_xml=function(e,t){return e=="#text"?this.xml_escape(t):"<"+e+">"+this.xml_escape(t)+"</"+e+`>
  172. `};Ns.ObjTree.prototype.xml_escape=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var c6e=function(e){return new Ns.ObjTree().parseXML(e)},f6e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),iR=globalThis&&globalThis.__assign||function(){return iR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},iR.apply(this,arguments)},ZC=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},pf;(function(e){e.START="bpmn:startEvent",e.END="bpmn:endEvent",e.GATEWAY="bpmn:exclusiveGateway",e.USER="bpmn:userTask",e.SYSTEM="bpmn:serviceTask",e.FLOW="bpmn:sequenceFlow"})(pf||(pf={}));var RH=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"],BB=["properties","startPoint","endPoint","pointsList"];function VB(e){var t=e?BB.concat(e):BB;return function(n){function r(o){var i={};return typeof o=="string"?o:Array.isArray(o)?o.map(function(a){return r(a)}):(Object.entries(o).forEach(function(a){var s=ZC(a,2),l=s[0],u=s[1];typeof u!="object"?l.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(l)?i[l]=u:i["-"+l]=u:t.includes(l)?i["-"+l]=r(u):i[l]=r(u)}),i)}return r(n)}}function a2(e){var t={};return Object.entries(e).forEach(function(n){var r=ZC(n,2),o=r[0],i=r[1];o.indexOf("-")===0?t[o.substring(1)]=i2(i):typeof i=="string"?t[o]=i:Object.prototype.toString.call(i)==="[object Object]"?t[o]=a2(i):Array.isArray(i)?t[o]=i.map(function(a){return a2(a)}):t[o]=i}),t}function d6e(e,t,n){var r=new Map;t.nodes.forEach(function(i){var a,s={"-id":i.id};if(!((a=i.text)===null||a===void 0)&&a.value&&(s["-name"]=i.text.value),i.properties){var l=VB(n)(i.properties);Object.assign(s,l)}r.set(i.id,s),e[i.type]?Array.isArray(e[i.type])?e[i.type].push(s):e[i.type]=[e[i.type],s]:e[i.type]=s});var o=t.edges.map(function(i){var a,s,l=r.get(i.targetNodeId);l["bpmn:incoming"]?Array.isArray(l["bpmn:incoming"])?l["bpmn:incoming"].push(i.id):l["bpmn:incoming"]=[l["bpmn:incoming"],i.id]:l["bpmn:incoming"]=i.id;var u={"-id":i.id,"-sourceRef":i.sourceNodeId,"-targetRef":i.targetNodeId};if(!((a=i.text)===null||a===void 0)&&a.value&&(u["-name"]=(s=i.text)===null||s===void 0?void 0:s.value),i.properties){var d=VB(n)(i.properties);Object.assign(u,d)}return u});t.edges.forEach(function(i){var a=r.get(i.sourceNodeId);a["bpmn:outgoing"]?Array.isArray(a["bpmn:outgoing"])?a["bpmn:outgoing"].push(i.id):a["bpmn:outgoing"]=[a["bpmn:outgoing"],i.id]:a["bpmn:outgoing"]=i.id}),e[pf.FLOW]=o}function h6e(e,t){e["bpmndi:BPMNEdge"]=t.edges.map(function(n){var r,o=n.id,i=n.pointsList.map(function(s){var l=s.x,u=s.y;return{"-x":l,"-y":u}}),a={"-id":o+"_di","-bpmnElement":o,"di:waypoint":i};return!((r=n.text)===null||r===void 0)&&r.value&&(a["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":n.text.x-n.text.value.length*10/2,"-y":n.text.y-7,"-width":n.text.value.length*10,"-height":14}}),a}),e["bpmndi:BPMNShape"]=t.nodes.map(function(n){var r,o=n.id,i=100,a=80,s=n.x,l=n.y,u=wp.shapeConfigMap.get(n.type);u&&(i=u.width,a=u.height),s-=i/2,l-=a/2;var d={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":s,"-y":l,"-width":i,"-height":a}};return!((r=n.text)===null||r===void 0)&&r.value&&(d["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":n.text.x-n.text.value.length*10/2,"-y":n.text.y-7,"-width":n.text.value.length*10,"-height":14}}),d})}function p6e(e){var t=[],n=[],r=e["bpmn:definitions"];if(r){var o=r["bpmn:process"];Object.keys(o).forEach(function(i){if(i.indexOf("bpmn:")===0){var a=o[i];if(i===pf.FLOW){var s=r["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];n=v6e(a,s)}else{var l=r["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];t=t.concat(g6e(a,l,i))}}})}return{nodes:t,edges:n}}function g6e(e,t,n){var r=[];if(Array.isArray(e))e.forEach(function(a){var s;Array.isArray(t)?s=t.find(function(u){return u["-bpmnElement"]===a["-id"]}):s=t;var l=FB(s,n,a);r.push(l)});else{var o=void 0;Array.isArray(t)?o=t.find(function(a){return a["-bpmnElement"]===e["-id"]}):o=t;var i=FB(o,n,e);r.push(i)}return r}function FB(e,t,n){var r=Number(e["dc:Bounds"]["-x"]),o=Number(e["dc:Bounds"]["-y"]),i=n["-name"],a=wp.shapeConfigMap.get(t);a&&(r+=a.width/2,o+=a.height/2);var s;Object.entries(n).forEach(function(p){var v=ZC(p,2),y=v[0],w=v[1];RH.indexOf(y)===-1&&(s||(s={}),s[y]=w)}),s&&(s=a2(s));var l;if(i&&(l={x:r,y:o,value:i},e["bpmndi:BPMNLabel"]&&e["bpmndi:BPMNLabel"]["dc:Bounds"])){var u=e["bpmndi:BPMNLabel"]["dc:Bounds"];l.x=Number(u["-x"])+Number(u["-width"])/2,l.y=Number(u["-y"])+Number(u["-height"])/2}var d={id:e["-bpmnElement"],type:t,x:r,y:o,properties:s};return l&&(d.text=l),d}function v6e(e,t){var n=[];if(Array.isArray(e))e.forEach(function(o){var i;Array.isArray(t)?i=t.find(function(a){return a["-bpmnElement"]===o["-id"]}):i=t,n.push(zB(i,o))});else{var r=void 0;Array.isArray(t)?r=t.find(function(o){return o["-bpmnElement"]===e["-id"]}):r=t,n.push(zB(r,e))}return n}function zB(e,t){var n,r=t["-name"];if(r){var o=e["bpmndi:BPMNLabel"]["dc:Bounds"],i=0;r.split(`
  173. `).forEach(function(l){i<l.length&&(i=l.length)}),n={value:r,x:Number(o["-x"])+i*10/2,y:Number(o["-y"])+7}}var a;Object.entries(t).forEach(function(l){var u=ZC(l,2),d=u[0],p=u[1];RH.indexOf(d)===-1&&(a||(a={}),a[d]=p)}),a&&(a=a2(a));var s={id:t["-id"],type:pf.FLOW,pointsList:e["di:waypoint"].map(function(l){return{x:Number(l["-x"]),y:Number(l["-y"])}}),sourceNodeId:t["-sourceRef"],targetNodeId:t["-targetRef"],properties:a};return n&&(s.text=n),s}var wp=function(){function e(t){var n=this,r=t.lf;this.adapterOut=function(o,i){var a=iR({},n.processAttributes);d6e(a,o,i);var s={"-id":"BPMNPlane_1","-bpmnElement":a["-id"]};h6e(s,o);var l=n.definitionAttributes;l["bpmn:process"]=a,l["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":s};var u={"bpmn:definitions":l};return u},this.adapterIn=function(o){if(o)return p6e(o)},r.adapterIn=function(o){return n.adapterIn(o)},r.adapterOut=function(o,i){return n.adapterOut(o,i)},this.processAttributes={"-isExecutable":"true","-id":"Process_"+LB()},this.definitionAttributes={"-id":"Definitions_"+LB(),"-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.0"}}return e.prototype.setCustomShape=function(t,n){e.shapeConfigMap.set(t,n)},e.pluginName="bpmn-adapter",e.shapeConfigMap=new Map,e}();wp.shapeConfigMap.set(pf.START,{width:RB.width,height:RB.height});wp.shapeConfigMap.set(pf.END,{width:NB.width,height:NB.height});wp.shapeConfigMap.set(pf.GATEWAY,{width:IB.width,height:IB.height});wp.shapeConfigMap.set(pf.SYSTEM,{width:DB.width,height:DB.height});wp.shapeConfigMap.set(pf.USER,{width:jB.width,height:jB.height});(function(e){f6e(t,e);function t(n){var r=e.call(this,n)||this;r.adapterXmlIn=function(i){var a=c6e(i);return r.adapterIn(a)},r.adapterXmlOut=function(i,a){var s=r.adapterOut(i,a);return u6e(s)};var o=n.lf;return o.adapterIn=r.adapterXmlIn,o.adapterOut=r.adapterXmlOut,r}return t.pluginName="bpmnXmlAdapter",t})(wp);var m6e=function(){function e(){globalThis._ids=this,this._ids=new Set}return e.prototype.generateId=function(){var t="xxxxxxx".replace(/[x]/g,function(n){var r=Math.random()*16|0,o=n==="x"?r:r&3|8;return o.toString(16)});return t},e.prototype.next=function(){for(var t=this.generateId();this._ids.has(t);)t=this.generateId();return this._ids.add(t),t},e}(),y6e=(globalThis==null?void 0:globalThis._ids)||new m6e;function b6e(){return y6e.next()}globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}();var QB=globalThis&&globalThis.__assign||function(){return QB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},QB.apply(this,arguments)},_6e=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}();var WB=globalThis&&globalThis.__assign||function(){return WB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},WB.apply(this,arguments)},O6e=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}();var YB=globalThis&&globalThis.__assign||function(){return YB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},YB.apply(this,arguments)},w6e=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}();var ZB=globalThis&&globalThis.__assign||function(){return ZB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ZB.apply(this,arguments)},S6e=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}();var UB=globalThis&&globalThis.__assign||function(){return UB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},UB.apply(this,arguments)},x6e=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;qt.exports.h("circle",{cx:18,cy:18,r:11,style:"stroke-linecap: round;stroke-linejoin: round;stroke: rgb(34, 36, 42);stroke-width: 2px;fill: white"}),qt.exports.h("path",{d:"M 18,18 l 2.25,-7.5 m -2.25,7.5 l 5.25,1.5",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(0,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(30,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(60,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(90,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(120,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(150,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(180,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(210,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(240,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(270,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(300,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),qt.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(330,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"});qt.exports.h("circle",{cx:18,cy:18,r:10,style:"stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 4px; fill: rgb(34, 36, 42);"});qt.exports.h("circle",{cx:25,cy:25,r:13,style:"stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2.5px; fill: white;"});globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}();var HB=globalThis&&globalThis.__assign||function(){return HB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},HB.apply(this,arguments)};globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}();var XB=globalThis&&globalThis.__assign||function(){return XB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},XB.apply(this,arguments)},k6e=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;var sD,Li,NH,J_,GB,IH={},DH=[],C6e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ah(e,t){for(var n in t)e[n]=t[n];return e}function jH(e){var t=e.parentNode;t&&t.removeChild(e)}function eO(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?sD.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return pk(e,a,r,o,null)}function pk(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o==null?++NH:o};return o==null&&Li.vnode!=null&&Li.vnode(i),i}function lD(e){return e.children}function _y(e,t){this.props=e,this.context=t}function Hy(e,t){if(t==null)return e.__?Hy(e.__,e.__.__k.indexOf(e)+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"?Hy(e):null}function LH(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return LH(e)}}function qB(e){(!e.__d&&(e.__d=!0)&&J_.push(e)&&!s2.__r++||GB!==Li.debounceRendering)&&((GB=Li.debounceRendering)||setTimeout)(s2)}function s2(){for(var e;s2.__r=J_.length;)e=J_.sort(function(t,n){return t.__v.__b-n.__v.__b}),J_=[],e.some(function(t){var n,r,o,i,a,s;t.__d&&(a=(i=(n=t).__v).__e,(s=n.__P)&&(r=[],(o=Ah({},i)).__v=i.__v+1,zH(s,i,o,n.__n,s.ownerSVGElement!==void 0,i.__h!=null?[a]:null,r,a==null?Hy(i):a,i.__h),T6e(r,i),i.__e!=a&&LH(i)))})}function BH(e,t,n,r,o,i,a,s,l,u){var d,p,v,y,w,b,k,C=r&&r.__k||DH,T=C.length;for(n.__k=[],d=0;d<t.length;d++)if((y=n.__k[d]=(y=t[d])==null||typeof y=="boolean"?null:typeof y=="string"||typeof y=="number"||typeof y=="bigint"?pk(null,y,null,null,y):Array.isArray(y)?pk(lD,{children:y},null,null,null):y.__b>0?pk(y.type,y.props,y.key,null,y.__v):y)!=null){if(y.__=n,y.__b=n.__b+1,(v=C[d])===null||v&&y.key==v.key&&y.type===v.type)C[d]=void 0;else for(p=0;p<T;p++){if((v=C[p])&&y.key==v.key&&y.type===v.type){C[p]=void 0;break}v=null}zH(e,y,v=v||IH,o,i,a,s,l,u),w=y.__e,(p=y.ref)&&v.ref!=p&&(k||(k=[]),v.ref&&k.push(v.ref,null,y),k.push(p,y.__c||w,y)),w!=null?(b==null&&(b=w),typeof y.type=="function"&&y.__k===v.__k?y.__d=l=VH(y,l,e):l=FH(e,y,v,C,w,l),typeof n.type=="function"&&(n.__d=l)):l&&v.__e==l&&l.parentNode!=e&&(l=Hy(v))}for(n.__e=b,d=T;d--;)C[d]!=null&&(typeof n.type=="function"&&C[d].__e!=null&&C[d].__e==n.__d&&(n.__d=Hy(r,d+1)),WH(C[d],C[d]));if(k)for(d=0;d<k.length;d++)QH(k[d],k[++d],k[++d])}function VH(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?VH(r,t,n):FH(n,r,r,o,r.__e,t));return t}function FH(e,t,n,r,o,i){var a,s,l;if(t.__d!==void 0)a=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return a!==void 0?a:o.nextSibling}function E6e(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||l2(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||l2(e,i,t[i],n[i],r)}function KB(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||C6e.test(t)?n:n+"px"}function l2(e,t,n,r,o){var i;e: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||KB(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||KB(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?eV:JB,i):e.removeEventListener(t,i?eV:JB,i);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function JB(e){this.l[e.type+!1](Li.event?Li.event(e):e)}function eV(e){this.l[e.type+!0](Li.event?Li.event(e):e)}function zH(e,t,n,r,o,i,a,s,l){var u,d,p,v,y,w,b,k,C,T,$,P,A,R=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=Li.__b)&&u(t);try{e:if(typeof R=="function"){if(k=t.props,C=(u=R.contextType)&&r[u.__c],T=u?C?C.props.value:u.__:r,n.__c?b=(d=t.__c=n.__c).__=d.__E:("prototype"in R&&R.prototype.render?t.__c=d=new R(k,T):(t.__c=d=new _y(k,T),d.constructor=R,d.render=$6e),C&&C.sub(d),d.props=k,d.state||(d.state={}),d.context=T,d.__n=r,p=d.__d=!0,d.__h=[]),d.__s==null&&(d.__s=d.state),R.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Ah({},d.__s)),Ah(d.__s,R.getDerivedStateFromProps(k,d.__s))),v=d.props,y=d.state,p)R.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(R.getDerivedStateFromProps==null&&k!==v&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(k,T),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(k,d.__s,T)===!1||t.__v===n.__v){d.props=k,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(B){B&&(B.__=t)}),d.__h.length&&a.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(k,d.__s,T),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(v,y,w)})}if(d.context=T,d.props=k,d.__v=t,d.__P=e,$=Li.__r,P=0,"prototype"in R&&R.prototype.render)d.state=d.__s,d.__d=!1,$&&$(t),u=d.render(d.props,d.state,d.context);else do d.__d=!1,$&&$(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++P<25);d.state=d.__s,d.getChildContext!=null&&(r=Ah(Ah({},r),d.getChildContext())),p||d.getSnapshotBeforeUpdate==null||(w=d.getSnapshotBeforeUpdate(v,y)),A=u!=null&&u.type===lD&&u.key==null?u.props.children:u,BH(e,Array.isArray(A)?A:[A],t,n,r,o,i,a,s,l),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),b&&(d.__E=d.__=null),d.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P6e(n.__e,t,n,r,o,i,a,l);(u=Li.diffed)&&u(t)}catch(B){t.__v=null,(l||i!=null)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),Li.__e(B,t,n)}}function T6e(e,t){Li.__c&&Li.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){Li.__e(r,n.__v)}})}function P6e(e,t,n,r,o,i,a,s){var l,u,d,p=n.props,v=t.props,y=t.type,w=0;if(y==="svg"&&(o=!0),i!=null){for(;w<i.length;w++)if((l=i[w])&&"setAttribute"in l==!!y&&(y?l.localName===y:l.nodeType===3)){e=l,i[w]=null;break}}if(e==null){if(y===null)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),i=null,s=!1}if(y===null)p===v||s&&e.data===v||(e.data=v);else{if(i=i&&sD.call(e.childNodes),u=(p=n.props||IH).dangerouslySetInnerHTML,d=v.dangerouslySetInnerHTML,!s){if(i!=null)for(p={},w=0;w<e.attributes.length;w++)p[e.attributes[w].name]=e.attributes[w].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(E6e(e,v,p,o,s),d)t.__k=[];else if(w=t.props.children,BH(e,Array.isArray(w)?w:[w],t,n,r,o&&y!=="foreignObject",i,a,i?i[0]:n.__k&&Hy(n,0),s),i!=null)for(w=i.length;w--;)i[w]!=null&&jH(i[w]);s||("value"in v&&(w=v.value)!==void 0&&(w!==e.value||y==="progress"&&!w||y==="option"&&w!==p.value)&&l2(e,"value",w,p.value,!1),"checked"in v&&(w=v.checked)!==void 0&&w!==e.checked&&l2(e,"checked",w,p.checked,!1))}return e}function QH(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){Li.__e(r,n)}}function WH(e,t,n){var r,o;if(Li.unmount&&Li.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||QH(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){Li.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&WH(r[o],t,typeof e.type!="function");n||e.__e==null||jH(e.__e),e.__e=e.__d=void 0}function $6e(e,t,n){return this.constructor(e,n)}sD=DH.slice,Li={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},NH=0,_y.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ah({},this.state),typeof e=="function"&&(e=e(Ah({},n),this.props)),e&&Ah(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),qB(this))},_y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),qB(this))},_y.prototype.render=lD,J_=[],s2.__r=0;var tO=globalThis&&globalThis.__assign||function(){return tO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tO.apply(this,arguments)};function uD(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.radius,a=e.className,s=t-r/2,l=n-o/2,u=tO(tO({width:10,height:10,cx:0,cy:0,rx:i||0,ry:i||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape "+a},e),{x:s,y:l});return qt.exports.h("rect",tO({},u))}uD.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""};var iy;(function(e){e.NODE="node",e.CIRCLE_NODE="circle-node",e.POLYGON_NODE="polygon-node",e.RECT_NODE="rect-node",e.HTML_NODE="html-node",e.TEXT_NODE="text-node",e.ELLIPSE_NODE="ellipse-node",e.DIAMOND_NODE="diamond-node",e.EDGE="edge",e.LINE_EDGE="line-edge",e.POLYLINE_EDGE="polyline-edge",e.BEZIER_EDGE="bezier-edge",e.GRAPH="graph"})(iy||(iy={}));var A6e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),Rg=globalThis&&globalThis.__assign||function(){return Rg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Rg.apply(this,arguments)},M6e=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},R6e=qt.exports.LogicFlowUtil.StepDrag,N6e=function(e){A6e(t,e);function t(n){var r=e.call(this)||this;return r.updatePosition=function(o){var i=o.deltaX,a=o.deltaY,s=r.nodeModel,l=s.x,u=s.y;r.nodeModel.x=l+i/2,r.nodeModel.y=u+a/2,r.nodeModel.moveText(i/2,a/2)},r.getResize=function(o){var i=o.index,a=o.deltaX,s=o.deltaY,l=o.width,u=o.height,d=o.PCTResizeInfo,p=o.pct,v=p===void 0?1:p,y={width:l,height:u,deltaX:a,deltaY:s};if(d){var w=4,b=0,k=0;switch(i){case 0:k=(a*-1-s)/w;break;case 1:k=(a-s)/w;break;case 2:k=(a+s)/w;break;case 3:k=(a*-1+s)/w;break}k!==0&&(b=Math.round(k/d.ResizeBasis.basisHeight*1e5)/1e3),d.ResizePCT.widthPCT=Math.max(Math.min(d.ResizePCT.widthPCT+b,d.ScaleLimit.maxScaleLimit),d.ScaleLimit.minScaleLimit),d.ResizePCT.hightPCT=Math.max(Math.min(d.ResizePCT.hightPCT+b,d.ScaleLimit.maxScaleLimit),d.ScaleLimit.minScaleLimit);var C=Math.round(d.ResizePCT.widthPCT*d.ResizeBasis.basisWidth/100),T=Math.round(d.ResizePCT.hightPCT*d.ResizeBasis.basisHeight/100);switch(i){case 0:a=l-C,s=u-T;break;case 1:a=C-l,s=u-T;break;case 2:a=C-l,s=T-u;break;case 3:a=l-C,s=T-u;break}return y.width=C,y.height=T,y.deltaX=a/v,y.deltaY=s/v,y}switch(i){case 0:y.width=l-a*v,y.height=u-s*v;break;case 1:y.width=l+a*v,y.height=u-s*v;break;case 2:y.width=l+a*v,y.height=u+s*v;break;case 3:y.width=l-a*v,y.height=u+s*v;break}return y},r.updateEdgePointByAnchors=function(){var o=r.nodeModel,i=o.id,a=o.anchors,s=r.getNodeEdges(i);s.sourceEdges.forEach(function(l){var u=a.find(function(d){return d.id===l.sourceAnchorId});l.updateStartPoint({x:u.x,y:u.y})}),s.targetEdges.forEach(function(l){var u=a.find(function(d){return d.id===l.targetAnchorId});l.updateEndPoint({x:u.x,y:u.y})})},r.updateRect=function(o){var i=o.deltaX,a=o.deltaY,s=r.nodeModel,l=s.id,u=s.x,d=s.y,p=s.width,v=s.height,y=s.radius,w=s.PCTResizeInfo,b=r.index,k=r.getResize({index:b,deltaX:i,deltaY:a,width:p,height:v,PCTResizeInfo:w,pct:1}),C=r.nodeModel,T=C.minWidth,$=C.minHeight,P=C.maxWidth,A=C.maxHeight;if(k.width<T||k.width>P||k.height<$||k.height>A){r.dragHandler.cancelDrag();return}r.updatePosition({deltaX:k.deltaX,deltaY:k.deltaY}),r.nodeModel.width=k.width,r.nodeModel.height=k.height,r.nodeModel.setProperties({nodeSize:{width:k.width,height:k.height}}),r.getNodeEdges(l);var R={x:u,y:d,width:p,height:v,radius:y},B={x:r.nodeModel.x,y:r.nodeModel.y,width:r.nodeModel.width,height:r.nodeModel.height,radius:y};r.updateEdgePointByAnchors(),r.eventEmit({beforeNode:R,afterNode:B})},r.updateEllipse=function(o){var i=o.deltaX,a=o.deltaY,s=r.nodeModel,l=s.id,u=s.rx,d=s.ry,p=s.x,v=s.y,y=s.PCTResizeInfo,w=r.index,b=u,k=d,C=r.getResize({index:w,deltaX:i,deltaY:a,width:b,height:k,PCTResizeInfo:y,pct:1/2}),T=r.nodeModel,$=T.minWidth,P=T.minHeight,A=T.maxWidth,R=T.maxHeight;if(C.width<$/2||C.width>A/2||C.height<P/2||C.height>R/2){r.dragHandler.cancelDrag();return}r.updatePosition({deltaX:C.deltaX,deltaY:C.deltaY}),r.nodeModel.rx=C.width,r.nodeModel.ry=C.height,r.nodeModel.setProperties({nodeSize:{rx:C.width,ry:C.height}}),r.getNodeEdges(l);var B={x:p,y:v},N={rx:C.width,ry:C.height,x:r.nodeModel.x,y:r.nodeModel.y};r.updateEdgePointByAnchors(),r.eventEmit({beforeNode:Rg(Rg({},B),{rx:u,ry:d}),afterNode:N})},r.updateDiamond=function(o){var i=o.deltaX,a=o.deltaY,s=r.nodeModel;s.id;var l=s.rx,u=s.ry,d=s.x,p=s.y,v=s.PCTResizeInfo,y=r.index,w=l,b=u,k=r.getResize({index:y,deltaX:i,deltaY:a,width:w,height:b,PCTResizeInfo:v,pct:1/2}),C=r.nodeModel,T=C.minWidth,$=C.minHeight,P=C.maxWidth,A=C.maxHeight;if(k.width<T/2||k.width>P/2||k.height<$/2||k.height>A/2){r.dragHandler.cancelDrag();return}r.updatePosition({deltaX:k.deltaX,deltaY:k.deltaY}),r.nodeModel.rx=k.width,r.nodeModel.ry=k.height,r.nodeModel.setProperties({nodeSize:{rx:k.width,ry:k.height}});var R={x:d,y:p,rx:l,ry:u},B={rx:k.width,ry:k.height,x:r.nodeModel.x,y:r.nodeModel.y};r.updateEdgePointByAnchors(),r.eventEmit({beforeNode:R,afterNode:B})},r.eventEmit=function(o){var i=o.beforeNode,a=o.afterNode,s=r.nodeModel,l=s.id,u=s.modelType,d=s.type,p=Rg({id:l,modelType:u,type:d},i),v=Rg({id:l,modelType:u,type:d},a);r.graphModel.eventCenter.emit("node:resize",{oldNodeSize:p,newNodeSize:v})},r.onDragging=function(o){var i,a=o.deltaX,s=o.deltaY,l=r.graphModel.transformModel,u=r.nodeModel.modelType;i=M6e(l.fixDeltaXY(a,s),2),a=i[0],s=i[1],u===iy.RECT_NODE||u===iy.HTML_NODE?r.updateRect({deltaX:a,deltaY:s}):u===iy.ELLIPSE_NODE?r.updateEllipse({deltaX:a,deltaY:s}):u===iy.DIAMOND_NODE&&r.updateDiamond({deltaX:a,deltaY:s})},r.onDragEnd=function(){r.updateEdgePointByAnchors();var o=r.graphModel.gridSize,i=o===void 0?1:o,a=i*Math.round(r.nodeModel.x/i),s=i*Math.round(r.nodeModel.y/i);r.nodeModel.moveTo(a,s)},r.index=n.index,r.nodeModel=n.model,r.graphModel=n.graphModel,r.state={},r.dragHandler=new R6e({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:1}),r}return t.prototype.getNodeEdges=function(n){for(var r=this.graphModel,o=r.edges,i=[],a=[],s=0;s<o.length;s++){var l=o[s];l.sourceNodeId===n?i.push(l):o[s].targetNodeId===n&&a.push(l)}return{sourceEdges:i,targetEdges:a}},t.prototype.render=function(){var n=this.props,r=n.x,o=n.y,i=n.index,a=n.model,s=a.getControlPointStyle();return eO("g",{className:"lf-resize-control-"+i},eO(uD,Rg({className:"lf-node-control"},{x:r,y:o},s,{onMouseDown:this.dragHandler.handleMouseDown})))},t}(_y),I6e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),u2=globalThis&&globalThis.__assign||function(){return u2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},u2.apply(this,arguments)},UC=function(e){I6e(t,e);function t(){var n=e.call(this)||this;return n.state={},n}return t.prototype.getResizeControl=function(){var n=this.props,r=n.model,o=n.graphModel,i=r.x,a=r.y,s=r.width,l=r.height,u={minX:i-s/2,minY:a-l/2,maxX:i+s/2,maxY:a+l/2},d=u.minX,p=u.minY,v=u.maxX,y=u.maxY,w=[{x:d,y:p},{x:v,y:p},{x:v,y},{x:d,y}];return w.map(function(b,k){return eO(N6e,u2({index:k},b,{model:r,graphModel:o}))})},t.prototype.getGroupSolid=function(){var n=this.props.model,r=n.x,o=n.y,i=n.width,a=n.height,s=n.getResizeOutlineStyle();return eO(uD,u2({fill:"none"},s,{x:r,y:o,width:i,height:a}))},t.prototype.render=function(){return eO("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())},t}(_y),YH=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),D6e=function(e){YH(t,e);function t(n,r){var o=e.call(this,n,r)||this,i=o.properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return t.prototype.initNodeData=function(n){e.prototype.initNodeData.call(this,n),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},t.prototype.getOutlineStyle=function(){var n=e.prototype.getOutlineStyle.call(this),r=this.graphModel.editConfigModel.isSilentMode;return r||(n.stroke="none",n.hover&&(n.hover.stroke="none")),n},t.prototype.getResizeOutlineStyle=function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},t.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},t.prototype.resize=function(n,r){console.log(n,r)},t.prototype.enableProportionResize=function(n){if(n===void 0&&(n=!0),n){var r={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},i={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:r,ResizeBasis:o,ScaleLimit:i}}else delete this.PCTResizeInfo},t}(qt.exports.RectNodeModel),j6e=function(e){YH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getControlGroup=function(){var n=this.props,r=n.model,o=n.graphModel;return qt.exports.h(UC,{model:r,graphModel:o})},t.prototype.getResizeShape=function(){return e.prototype.getShape.call(this)},t.prototype.getShape=function(){var n=this.props,r=n.model.isSelected,o=n.graphModel.editConfigModel.isSilentMode;return qt.exports.h("g",null,this.getResizeShape(),r&&!o?this.getControlGroup():"")},t}(qt.exports.RectNode),ZH={type:"rect",view:j6e,model:D6e},UH=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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){UH(t,e);function t(n,r){var o=e.call(this,n,r)||this,i=o.properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return t.prototype.initNodeData=function(n){e.prototype.initNodeData.call(this,n),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},t.prototype.getOutlineStyle=function(){var n=e.prototype.getOutlineStyle.call(this),r=this.graphModel.editConfigModel.isSilentMode;return r||(n.stroke="none",n.hover&&(n.hover.stroke="none")),n},t.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},t.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},t.prototype.enableProportionResize=function(n){if(n===void 0&&(n=!0),n){var r={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},i={maxScaleLimit:Math.min(this.maxWidth/(this.rx*2)*100,this.maxHeight/(this.ry*2)*100),minScaleLimit:Math.max(this.minWidth/(this.rx*2)*100,this.minHeight/(this.ry*2)*100)};this.PCTResizeInfo={ResizePCT:r,ResizeBasis:o,ScaleLimit:i}}else delete this.PCTResizeInfo},t})(qt.exports.EllipseNodeModel);(function(e){UH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getControlGroup=function(){var n=this.props,r=n.model,o=n.graphModel;return qt.exports.h(UC,{model:r,graphModel:o})},t.prototype.getResizeShape=function(){return e.prototype.getShape.call(this)},t.prototype.getShape=function(){var n=this.props,r=n.model,o=n.graphModel.editConfigModel.isSilentMode;return qt.exports.h("g",null,this.getResizeShape(),r.isSelected&&!o?this.getControlGroup():"")},t})(qt.exports.EllipseNode);var aR=globalThis&&globalThis.__assign||function(){return aR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},aR.apply(this,arguments)};function L6e(e){var t=e.fillOpacity,n=t===void 0?1:t,r=e.strokeWidth,o=r===void 0?1:r,i=e.strokeOpacity,a=i===void 0?1:i,s=e.fill,l=s===void 0?"transparent":s,u=e.stroke,d=u===void 0?"#000":u,p=e.points,v=e.className,y=v===void 0?"lf-basic-shape":v,w={fill:l,fillOpacity:n,strokeWidth:o,stroke:d,strokeOpacity:a,points:"",className:y};return w.points=p.map(function(b){return b.join(",")}).join(" "),qt.exports.h("polygon",aR({},w))}var HH=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),sR=globalThis&&globalThis.__assign||function(){return sR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sR.apply(this,arguments)};(function(e){HH(t,e);function t(n,r){var o=e.call(this,n,r)||this,i=o.properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return t.prototype.initNodeData=function(n){e.prototype.initNodeData.call(this,n),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1},t.prototype.getOutlineStyle=function(){var n=e.prototype.getOutlineStyle.call(this),r=this.graphModel.editConfigModel.isSilentMode;return r||(n.stroke="none",n.hover&&(n.hover.stroke="none")),n},t.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},t.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},t.prototype.enableProportionResize=function(n){if(n===void 0&&(n=!0),n){var r={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},i={maxScaleLimit:Math.min(this.maxWidth/(this.rx*2)*100,this.maxHeight/(this.ry*2)*100),minScaleLimit:Math.max(this.minWidth/(this.rx*2)*100,this.minHeight/(this.ry*2)*100)};this.PCTResizeInfo={ResizePCT:r,ResizeBasis:o,ScaleLimit:i}}else delete this.PCTResizeInfo},t})(qt.exports.DiamondNodeModel);(function(e){HH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getControlGroup=function(){var n=this.props,r=n.model,o=n.graphModel;return qt.exports.h(UC,{model:r,graphModel:o})},t.prototype.getResizeShape=function(){var n=this.props.model,r=n.points,o=n.getNodeStyle();return qt.exports.h("g",null,qt.exports.h(L6e,sR({},o,{points:r})))},t.prototype.getShape=function(){var n=this.props,r=n.model.isSelected,o=n.graphModel.editConfigModel.isSilentMode;return qt.exports.h("g",null,this.getResizeShape(),r&&!o?this.getControlGroup():"")},t})(qt.exports.DiamondNode);var XH=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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){XH(t,e);function t(n,r){var o=e.call(this,n,r)||this,i=o.properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return t.prototype.initNodeData=function(n){e.prototype.initNodeData.call(this,n),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},t.prototype.getOutlineStyle=function(){var n=e.prototype.getOutlineStyle.call(this),r=this.graphModel.editConfigModel.isSilentMode;return r||(n.stroke="none",n.hover&&(n.hover.stroke="none")),n},t.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},t.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},t.prototype.enableProportionResize=function(n){if(n===void 0&&(n=!0),n){var r={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},i={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:r,ResizeBasis:o,ScaleLimit:i}}else delete this.PCTResizeInfo},t})(qt.exports.HtmlNodeModel);(function(e){XH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getControlGroup=function(){var n=this.props,r=n.model,o=n.graphModel;return qt.exports.h(UC,{model:r,graphModel:o})},t.prototype.getResizeShape=function(){return e.prototype.getShape.call(this)},t.prototype.getShape=function(){var n=this.props,r=n.model.isSelected,o=n.graphModel.editConfigModel.isSilentMode;return qt.exports.h("g",null,this.getResizeShape(),r&&!o?this.getControlGroup():"")},t})(qt.exports.HtmlNode);var GH=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),c2=globalThis&&globalThis.__assign||function(){return c2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},c2.apply(this,arguments)},B6e=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},V6e=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(B6e(arguments[t]));return e},tV=500,nV=300,F6e=-1e4;(function(e){GH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isGroup=!0,n.unfoldedWidth=tV,n.unfoldedHight=nV,n.childrenLastFoldStatus={},n}return t.prototype.initNodeData=function(n){var r=this;e.prototype.initNodeData.call(this,n);var o=[];Array.isArray(n.children)&&(o=n.children),this.children=new Set(o),this.width=tV,this.height=nV,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=F6e,this.radius=0,this.text.editable=!1,this.text.draggable=!1,this.isRestrict=!1,this.resizable=!1,this.autoToFront=!1,this.foldable=!1,this.properties.isFolded===void 0&&(this.properties.isFolded=!1),this.isFolded=this.properties.isFolded,setTimeout(function(){r.isFolded&&r.foldGroup(r.isFolded)})},t.prototype.getResizeOutlineStyle=function(){var n=e.prototype.getResizeOutlineStyle.call(this);return n.stroke="none",n},t.prototype.foldGroup=function(n){var r=this;if(n!==this.isFolded){this.setProperty("isFolded",n),this.isFolded=n,n?(this.x=this.x-this.width/2+this.foldedWidth/2,this.y=this.y-this.height/2+this.foldedHeight/2,this.unfoldedWidth=this.width,this.unfoldedHight=this.height,this.width=this.foldedWidth,this.height=this.foldedHeight):(this.width=this.unfoldedWidth,this.height=this.unfoldedHight,this.x=this.x+this.width/2-this.foldedWidth/2,this.y=this.y+this.height/2-this.foldedHeight/2);var o=this.incoming.edges.concat(this.outgoing.edges);this.children.forEach(function(i){var a=r.graphModel.getElement(i),s=a.isFolded;if(a.isGroup&&!a.isFolded&&a.foldGroup(n),a.isGroup&&!n){var l=r.childrenLastFoldStatus[i];l!==void 0&&l!==a.isFolded&&a.foldGroup(l)}r.childrenLastFoldStatus[i]=s,a.visible=!n,o=o.concat(a.incoming.edges.concat(a.outgoing.edges))}),this.foldEdge(n,o)}},t.prototype.getAnchorStyle=function(n){var r=e.prototype.getAnchorStyle.call(this,n);return r.stroke="transparent",r.fill="transparent",r.hover.fill="transparent",r.hover.stroke="transparent",r},t.prototype.foldEdge=function(n,r){var o=this;r.forEach(function(i,a){var s=i.id,l=i.sourceNodeId,u=i.targetNodeId,d=i.startPoint,p=i.endPoint,v=i.type,y=i.text,w=i.getProperties(),b={id:s+"__"+a,sourceNodeId:l,targetNodeId:u,startPoint:d,endPoint:p,type:v,properties:w,text:y==null?void 0:y.value};i.virtual&&o.graphModel.deleteEdgeById(i.id);var k=o.graphModel.group.getNodeGroup(u);k||(k=o.graphModel.getNodeModelById(u));var C=o.graphModel.group.getNodeGroup(l);C||(C=o.graphModel.getNodeModelById(l)),n&&i.visible!==!1&&(o.children.has(l)||o.id===l?(b.startPoint=void 0,b.sourceNodeId=o.id):(b.endPoint=void 0,b.targetNodeId=o.id),(k.id!==o.id||C.id!==o.id)&&o.createVirtualEdge(b),i.visible=!1),!n&&i.visible===!1&&(k&&k.isGroup&&k.isFolded?(b.targetNodeId=k.id,b.endPoint=void 0,o.createVirtualEdge(b)):C&&C.isGroup&&C.isFolded?(b.sourceNodeId=C.id,b.startPoint=void 0,o.createVirtualEdge(b)):i.visible=!0)})},t.prototype.createVirtualEdge=function(n){n.pointsList=void 0;var r=this.graphModel.addEdge(n);r.virtual=!0,r.text.editable=!1,r.isFoldedEdge=!0},t.prototype.isInRange=function(n){var r=n.x1,o=n.y1,i=n.x2,a=n.y2;return r>=this.x-this.width/2&&i<=this.x+this.width/2&&o>=this.y-this.height/2&&a<=this.y+this.height/2},t.prototype.isAllowMoveTo=function(n){var r=n.x1,o=n.y1,i=n.x2,a=n.y2;return{x:r>=this.x-this.width/2&&i<=this.x+this.width/2,y:o>=this.y-this.height/2&&a<=this.y+this.height/2}},t.prototype.setAllowAppendChild=function(n){this.setProperty("groupAddable",n)},t.prototype.addChild=function(n){this.children.add(n),this.graphModel.eventCenter.emit("group:add-node",{data:this.getData()})},t.prototype.removeChild=function(n){this.children.delete(n),this.graphModel.eventCenter.emit("group:remove-node",{data:this.getData()})},t.prototype.getAddableOutlineStyle=function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}},t.prototype.getData=function(){var n=this,r=e.prototype.getData.call(this);r.children=[],this.children.forEach(function(i){var a=n.graphModel.getNodeModelById(i);a&&!a.virtual&&r.children.push(i)});var o=r.properties;return delete o.groupAddable,delete o.isFolded,r},t.prototype.getHistoryData=function(){var n=e.prototype.getData.call(this);n.children=V6e(this.children),n.isGroup=!0;var r=n.properties;return delete r.groupAddable,r.isFolded&&(n.x=n.x+this.unfoldedWidth/2-this.foldedWidth/2,n.y=n.y+this.unfoldedHight/2-this.foldedHeight/2),n},t.prototype.isAllowAppendIn=function(n){return!0},t.prototype.toBack=function(){this.zIndex--},t})(ZH.model);(function(e){GH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getControlGroup=function(){var n=this.props.model,r=n.resizable,o=n.properties;return r&&!o.isFolded?e.prototype.getControlGroup.call(this):null},t.prototype.getAddableShape=function(){var n=this.props.model,r=n.width,o=n.height,i=n.x,a=n.y,s=n.radius,l=n.properties;if(!l.groupAddable)return null;var u=this.props.model.getNodeStyle().strokeWidth,d=this.props.model.getAddableOutlineStyle(),p=r+u+8,v=o+u+8;return qt.exports.h("rect",c2(c2({},d),{width:p,height:v,x:i-p/2,y:a-v/2,rx:s,ry:s}))},t.prototype.getFoldIcon=function(){var n=this.props.model,r=n.x-n.width/2+5,o=n.y-n.height/2+5;if(!n.foldable)return null;var i=qt.exports.h("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:n.properties.isFolded?"M "+(r+3)+","+(o+6)+" "+(r+11)+","+(o+6)+" M"+(r+7)+","+(o+2)+" "+(r+7)+","+(o+10):"M "+(r+3)+","+(o+6)+" "+(r+11)+","+(o+6)+" "});return qt.exports.h("g",{},[qt.exports.h("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:n.x-n.width/2+5,y:n.y-n.height/2+5,onClick:function(){n.foldGroup(!n.properties.isFolded)}}),i])},t.prototype.getResizeShape=function(){return qt.exports.h("g",{},[this.getAddableShape(),e.prototype.getResizeShape.call(this),this.getFoldIcon()])},t})(ZH.view);var rV=globalThis&&globalThis.__assign||function(){return rV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},rV.apply(this,arguments)};globalThis&&globalThis.__rest;var z6e=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}();var oV=globalThis&&globalThis.__assign||function(){return oV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},oV.apply(this,arguments)};globalThis&&globalThis.__values;var iV=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),nO=globalThis&&globalThis.__assign||function(){return nO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nO.apply(this,arguments)};function Q6e(e){var t=function(r){iV(o,r);function o(i,a){var s=this;i.id||(i.id="Flow_"+b6e());var l=nO(nO(nO({},e||{}),i.properties),{isDefaultFlow:!1});return i.properties=l,s=r.call(this,i,a)||this,s}return o.extendKey="SequenceFlowModel",o}(qt.exports.PolylineEdgeModel),n=function(r){iV(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}return o.prototype.getStartArrow=function(){var i=this.props.model,a=i.properties.isDefaultFlow;return a?qt.exports.h("path",{refX:15,stroke:"#000000",strokeWidth:2,d:"M 20 5 10 -5 z"}):qt.exports.h("path",{d:""})},o.extendKey="SequenceFlowEdge",o}(qt.exports.PolylineEdge);return{type:"bpmn:sequenceFlow",view:n,model:t}}Q6e();globalThis&&globalThis.__read;var aV={width:40,height:40},sV={width:40,height:40},lV={width:100,height:80},f2={width:100,height:80},uV={width:100,height:80},cV={width:100,height:80},fV={width:100,height:80},dV={width:100,height:80},hV={width:100,height:80},pV={width:100,height:80},Is=function(){};Is.ObjTree=function(){return this};Is.ObjTree.VERSION="0.23";Is.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
  174. `;Is.ObjTree.prototype.attr_prefix="-";Is.ObjTree.prototype.parseXML=function(e){var t;if(window.DOMParser){var n=new DOMParser,r=n.parseFromString(e,"application/xml");if(!r)return;t=r.documentElement}else window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLDOM"),n.async=!1,n.loadXML(e),t=n.documentElement);if(!!t){var o=this.parseDOM(t);return o}};Is.ObjTree.prototype.parseHTTP=function(e,t,n){var r={};for(var o in t)r[o]=t[o];if(r.method||(typeof r.postBody=="undefined"&&typeof r.postbody=="undefined"&&typeof r.parameters=="undefined"?r.method="get":r.method="post"),n){r.asynchronous=!0;var i=this,a=n,s=r.onComplete;r.onComplete=function(d){var p;d&&d.responseXML&&d.responseXML.documentElement&&(p=i.parseDOM(d.responseXML.documentElement)),a(p,d),s&&s(d)}}else r.asynchronous=!1;var l;if(typeof HTTP!="undefined"&&HTTP.Request){r.uri=e;var u=new HTTP.Request(r);u&&(l=u.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var u=new Ajax.Request(e,r);u&&(l=u.transport)}if(n)return l;if(l&&l.responseXML&&l.responseXML.documentElement)return this.parseDOM(l.responseXML.documentElement)};Is.ObjTree.prototype.parseDOM=function(e){if(!!e){if(this.__force_array={},this.force_array)for(var t=0;t<this.force_array.length;t++)this.__force_array[this.force_array[t]]=1;var n=this.parseElement(e);if(this.__force_array[e.nodeName]&&(n=[n]),e.nodeType!==11){var r={};r[e.nodeName]=n,n=r}return n}};Is.ObjTree.prototype.parseElement=function(e){if(e.nodeType!==7){if(e.nodeType===3||e.nodeType===4||e.nodeType===8){var t=e.nodeValue.match(/[^\x00-\x20]/);return t==null?void 0:e.nodeValue}var n=null,r={};if(e.attributes&&e.attributes.length){n={};for(var o=0;o<e.attributes.length;o++){var i=e.attributes[o].nodeName;if(typeof i=="string"){var a=e.attributes[o].nodeValue;try{a=JSON.parse(e.attributes[o].nodeValue.replace(/'/g,'"'))}catch{a=e.attributes[o].nodeValue}a!=null&&(i=this.attr_prefix+i,typeof r[i]=="undefined"&&(r[i]=0),r[i]++,this.addNode(n,i,r[i],a))}}}if(e.childNodes&&e.childNodes.length){var s=!0;n&&(s=!1);for(var o=0;o<e.childNodes.length&&s;o++){var l=e.childNodes[o].nodeType;l===3||l===4||l===8||(s=!1)}if(s){n||(n="");for(var o=0;o<e.childNodes.length;o++)n+=e.childNodes[o].nodeValue}else{n||(n={});for(var o=0;o<e.childNodes.length;o++){var i=e.childNodes[o].nodeName;if(typeof i=="string"){var a=this.parseElement(e.childNodes[o]);!a||(typeof r[i]=="undefined"&&(r[i]=0),r[i]++,this.addNode(n,i,r[i],a))}}}}else n===null&&(n={});return n}};Is.ObjTree.prototype.addNode=function(e,t,n,r){this.__force_array[t]?(n===1&&(e[t]=[]),e[t][e[t].length]=r):n===1?e[t]=r:n===2?e[t]=[e[t],r]:e[t][e[t].length]=r};Is.ObjTree.prototype.writeXML=function(e){var t=this.hash_to_xml(null,e);return this.xmlDecl+t};Is.ObjTree.prototype.hash_to_xml=function(e,t){var n=[],r=[];for(var o in t)if(!!(t!=null&&t.hasOwnProperty(o))){var i=t[o];o.charAt(0)!==this.attr_prefix?typeof i=="undefined"||i==null?n[n.length]="<"+o+" />":typeof i=="object"&&i.constructor===Array?n[n.length]=this.array_to_xml(o,i):typeof i=="object"?n[n.length]=this.hash_to_xml(o,i):n[n.length]=this.scalar_to_xml(o,i):r[r.length]=" "+o.substring(1)+'="'+this.xml_escape(i)+'"'}var a=r.join(""),s=n.join("");return typeof e=="undefined"||e==null||(n.length>0?s.match(/\n/)?s="<"+e+a+`>
  175. `+s+"</"+e+`>
  176. `:s="<"+e+a+">"+s+"</"+e+`>
  177. `:s="<"+e+a+` />
  178. `),s};Is.ObjTree.prototype.array_to_xml=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r];typeof o=="undefined"||o==null?n[n.length]="<"+e+" />":typeof o=="object"&&o.constructor===Array?n[n.length]=this.array_to_xml(e,o):typeof o=="object"?n[n.length]=this.hash_to_xml(e,o):n[n.length]=this.scalar_to_xml(e,o)}return n.join("")};Is.ObjTree.prototype.scalar_to_xml=function(e,t){return e==="#text"?this.xml_escape(t):"<"+e+">"+this.xml_escape(t)+"</"+e+`>
  179. `};Is.ObjTree.prototype.xml_escape=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var W6e=function(e){return new Is.ObjTree().parseXML(e)};function qH(e){return Object.prototype.toString.call(e)}function gV(e){return" ".repeat(e)}function d2(e){return qH(e)==="[object Object]"?Object.keys(e).reduce(function(t,n){var r=n;return n.charAt(0)==="-"&&(r=n.substring(1)),t[r]=d2(e[n]),t},{}):Array.isArray(e)?e.map(function(t){return d2(t)}):e}function Y6e(e){var t=e;try{typeof t!="string"&&(t=JSON.parse(e))}catch{t=JSON.stringify(d2(e)).replace(/"/g,"'")}return t}var vV=`
  180. `;function gk(e,t,n){var r=gV(n),o="",i=vV+r;if(t==="-json")return"";if(t==="#text")return i+e;if(t==="#cdata-section")return i+"<![CDATA["+e+"]]>";if(t==="#comment")return i+"<!--"+e+"-->";if((""+t).charAt(0)==="-")return" "+t.substring(1)+'="'+Y6e(e)+'"';if(Array.isArray(e))o+=e.map(function(u){return gk(u,t,n+1)}).join("");else if(qH(e)==="[object Object]"){var a=Object.keys(e),s="",l=e["-json"]?vV+gV(n+1)+e["-json"]:"";o+=(n===0?"":i)+"<"+t,a.forEach(function(u){u.charAt(0)==="-"?s+=gk(e[u],u,n+1):l+=gk(e[u],u,n+1)}),o+=s+(l!==""?">"+l+i+"</"+t+">":" />")}else o+=i+"<"+t+">"+e.toString()+"</"+t+">";return o}function Z6e(e){var t="";for(var n in e)t+=gk(e[n],n,0);return t}var U6e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),lR=globalThis&&globalThis.__assign||function(){return lR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lR.apply(this,arguments)},mV=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},cD=globalThis&&globalThis.__values||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 new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O0=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Oy=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(O0(arguments[t]));return e},Ps;(function(e){e.START="bpmn:startEvent",e.END="bpmn:endEvent",e.INTERMEDIATE_CATCH="bpmn:intermediateCatchEvent",e.INTERMEDIATE_THROW="bpmn:intermediateThrowEvent",e.BOUNDARY="bpmn:boundaryEvent",e.PARALLEL_GATEWAY="bpmn:parallelGateway",e.INCLUSIVE_GATEWAY="bpmn:inclusiveGateway",e.EXCLUSIVE_GATEWAY="bpmn:exclusiveGateway",e.USER="bpmn:userTask",e.SYSTEM="bpmn:serviceTask",e.FLOW="bpmn:sequenceFlow",e.SUBPROCESS="bpmn:subProcess"})(Ps||(Ps={}));var KH=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef","-children"],H6e=["properties","startPoint","endPoint","pointsList"],h2={in:[],out:["properties.panels","properties.nodeSize","properties.definitionId","properties.timerValue","properties.timerType","properties.definitionType","properties.parent","properties.isBoundaryEventTouchingTask"]},JH=function(e,t){var n=Object.keys(t||{});return n.forEach(function(r){if(e[r]){var o=t[r],i=o.in,a=o.out;i&&(e[r].in=i),a&&(e[r].out=a)}else e[r]=t[r]}),e},du={"bpmn:startEvent":{out:function(e){var t,n,r=e.properties;return((n=(t=du[r.definitionType])===null||t===void 0?void 0:t.out)===null||n===void 0?void 0:n.call(t,e))||{}}},"bpmn:intermediateCatchEvent":{out:function(e){var t,n,r=e.properties;return((n=(t=du[r.definitionType])===null||t===void 0?void 0:t.out)===null||n===void 0?void 0:n.call(t,e))||{}}},"bpmn:intermediateThrowEvent":{out:function(e){var t,n,r=e.properties;return((n=(t=du[r.definitionType])===null||t===void 0?void 0:t.out)===null||n===void 0?void 0:n.call(t,e))||{}}},"bpmn:boundaryEvent":{out:function(e){var t,n,r=e.properties;return((n=(t=du[r.definitionType])===null||t===void 0?void 0:t.out)===null||n===void 0?void 0:n.call(t,e))||{}}},"bpmn:sequenceFlow":{out:function(e){var t=e.properties,n=t.expressionType,r=t.condition;return r?n==="cdata"?{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${'+r+"}]]></bpmn:conditionExpression>"}:{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression">'+r+"</bpmn:conditionExpression>"}:{json:""}}},"bpmn:timerEventDefinition":{out:function(e){var t=e.properties,n=t.timerType,r=t.timerValue,o=t.definitionId,i=function(){return"<bpmn:"+n+' xsi:type="bpmn:tFormalExpression">'+r+"</bpmn:"+n+">"};return{json:'<bpmn:timerEventDefinition id="'+o+'"'+(n&&r?">"+i()+"</bpmn:timerEventDefinition>":"/>")}},in:function(e,t){var n,r,o,i,a=e,s=t["-id"],l="",u="";try{for(var d=cD(Object.keys(t)),p=d.next();!p.done;p=d.next()){var v=p.value;v.includes("bpmn:")&&(o=O0(v.split(":"),2),l=o[1],u=(i=t[v])===null||i===void 0?void 0:i["#text"])}}catch(y){n={error:y}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return{"-definitionId":s,"-definitionType":a,"-timerType":l,"-timerValue":u}}},"bpmn:conditionExpression":{in:function(e,t){var n,r="",o="";return t["#cdata-section"]?(o="cdata",r=((n=/^\$\{(.*)\}$/g.exec(t["#cdata-section"]))===null||n===void 0?void 0:n[1])||""):t["#text"]&&(o="normal",r=t["#text"]),{"-condition":r,"-expressionType":o}}}};function X6e(e){var t=e!=null?e:{},n=t.retainedAttrsFields,r=t.excludeFields,o=t.transformer,i=new Set(Oy(H6e,n||[])),a={in:new Set(Oy(h2.in,(r==null?void 0:r.in)||[])),out:new Set(Oy(h2.out,(r==null?void 0:r.out)||[]))};return du=JH(du,o),function(s){var l=s.nodes,u=s.edges;function d(p,v){var y,w,b;if((p==null?void 0:p.flag)!==1){var k;if((k=du[p.type])&&k.out){var C=k.out(p),T=Object.keys(C);T.length>0&&T.forEach(function(D){p[D]=C[D]})}p!=null&&p.children&&(p.children=p.children.map(function(D){var L=l.find(function(z){return z.id===D})||u.find(function(z){return z.id===D});return L||{}}));var $={};if(typeof p=="string")return p;if(Array.isArray(p))return p.map(function(D){return d(D,"")}).filter(function(D){return D!=null});try{for(var P=cD(Object.entries(p)),A=P.next();!A.done;A=P.next()){var R=O0(A.value,2),B=R[0],N=R[1];if(((b=N)===null||b===void 0?void 0:b.flag)===1)return;var I=[v,B].filter(function(D){return D}).join(".");a.out.has(I)||(typeof N!="object"?B.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(B)?$[B]=N:$["-"+B]=N:i.has(I)?$["-"+B]=d(N,I):$[B]=d(N,I))}}catch(D){y={error:D}}finally{try{A&&!A.done&&(w=P.return)&&w.call(P)}finally{if(y)throw y.error}}return $}}return d(s,"")}}function p2(e){var t,n,r={};try{for(var o=cD(Object.entries(e)),i=o.next();!i.done;i=o.next()){var a=O0(i.value,2),s=a[0],l=a[1];s.indexOf("-")===0?r[s.substring(1)]=d2(l):typeof l=="string"?r[s]=l:Object.prototype.toString.call(l)==="[object Object]"?r[s]=p2(l):Array.isArray(l)?r[s]=l.map(function(u){return p2(u)}):r[s]=l}}catch(u){t={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function G6e(e,t,n){var r,o=new Map,i=X6e(n)(t);i.nodes.forEach(function(s){var l=s["-id"],u=s["-type"],d=s.text,p=s.children,v=mV(s,["-id","-type","text","children"]),y={"-id":l};d!=null&&d["-value"]&&(y["-name"]=d["-value"]),v["-json"]&&(y["-json"]=v["-json"]),v["-properties"]&&Object.assign(y,v["-properties"]),p&&(y.children=p),e[u]||(e[u]=[]),e[u].push(y),o.set(l,y)});var a=i.edges.map(function(s){var l=s["-id"];s["-type"];var u=s["-sourceNodeId"],d=s["-targetNodeId"],p=s.text,v=mV(s,["-id","-type","-sourceNodeId","-targetNodeId","text"]),y=o.get(d);y["bpmn:incoming"]||(y["bpmn:incoming"]=[]),y["bpmn:incoming"].push(l);var w={"-id":l,"-sourceRef":u,"-targetRef":d};return p!=null&&p["-value"]&&(w["-name"]=p["-value"]),v["-json"]&&(w["-json"]=v["-json"]),v["-properties"]&&Object.assign(w,v["-properties"]),w});return t.edges.forEach(function(s){var l=s.sourceNodeId,u=s.id,d=o.get(l);d["bpmn:outgoing"]||(d["bpmn:outgoing"]=[]),d["bpmn:outgoing"].push(u)}),(r=e["bpmn:subProcess"])===null||r===void 0||r.forEach(function(s){var l={"bpmn:incoming":new Set,"bpmn:outgoing":new Set},u=[];s.children.forEach(function(b){var k,C=o.get(b["-id"]);["bpmn:incoming","bpmn:outgoing"].forEach(function($){C[$]&&C[$].forEach(function(P){l[$].add(P)})});var T=(k=e[b["-type"]])===null||k===void 0?void 0:k.findIndex(function($){return $["-id"]===b["-id"]});T>=0&&e[b["-type"]].splice(T,1),o.delete(b["-id"]),s[b["-type"]]||(s[b["-type"]]=[]),s[b["-type"]].push(C)});var d=l["bpmn:incoming"],p=l["bpmn:outgoing"];p.forEach(function(b){d.has(b)&&u.push(b)});for(var v=function(b){var k=a.findIndex(function(C){return C["-id"]===u[b]});k>=0?(s["bpmn:sequenceFlow"]||(s["bpmn:sequenceFlow"]=[]),s["bpmn:sequenceFlow"].push(a[k]),a.splice(k,1)):b++,y=b},y,w=0;w<u.length;)v(w),w=y;delete s.children}),e[Ps.FLOW]=a,e}function q6e(e,t){e["bpmndi:BPMNEdge"]=t.edges.map(function(n){var r,o=n.id,i=n.pointsList.map(function(s){var l=s.x,u=s.y;return{"-x":l,"-y":u}}),a={"-id":o+"_di","-bpmnElement":o,"di:waypoint":i};return!((r=n.text)===null||r===void 0)&&r.value&&(a["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":n.text.x-n.text.value.length*10/2,"-y":n.text.y-7,"-width":n.text.value.length*10,"-height":14}}),a}),e["bpmndi:BPMNShape"]=t.nodes.map(function(n){var r,o=n.id,i=100,a=80,s=n.x,l=n.y,u=al.shapeConfigMap.get(n.type);u&&(i=u.width,a=u.height),s-=i/2,l-=a/2;var d={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":s,"-y":l,"-width":i,"-height":a}};return!((r=n.text)===null||r===void 0)&&r.value&&(d["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":n.text.x-n.text.value.length*10/2,"-y":n.text.y-7,"-width":n.text.value.length*10,"-height":14}}),d})}var K6e=["bpmn:incoming","bpmn:outgoing"];function J6e(e,t){var n=[],r=[],o=new Map,i=t!=null?t:{},a=i.transformer,s=i.excludeFields,l={in:new Set(Oy(h2.in,(s==null?void 0:s.in)||[])),out:new Set(Oy(h2.out,(s==null?void 0:s.out)||[]))};du=JH(du,a);var u=e["bpmn:definitions"];if(u){var d=u["bpmn:process"];(function(v,y){y.forEach(function(w){try{Object.keys(v).forEach(function(b){try{w(b)}catch(k){console.error(k)}})}catch(b){console.error(b)}})})(d,[function(v){function y(b){b["-children"]||(b["-children"]=[]),Object.keys(b).forEach(function(k){var C;k.indexOf("bpmn:")===0&&!K6e.includes(k)&&(d[k]||(d[k]=[]),!Array.isArray(d[k])&&(d[k]=[d[k]]),Array.isArray(b[k])?(C=d[k]).push.apply(C,Oy(b[k])):d[k].push(b[k]),Array.isArray(b[k])?b[k].forEach(function(T){!k.includes("Flow")&&b["-children"].push(T["-id"])}):!k.includes("Flow")&&b["-children"].push(b[k]["-id"]),delete b[k])})}if(v==="bpmn:subProcess"){var w=d[v];Array.isArray(w)?w.forEach(function(b){v==="bpmn:subProcess"&&y(b)}):y(w)}},function(v){var y=function(b){Object.keys(b).forEach(function(k){var C,T;if(k.includes("bpmn:")){var $={};du[k]&&du[k].in?($=(T=(C=du[k]).in)===null||T===void 0?void 0:T.call(C,k,Pe.cloneDeep(b[k])),delete b[k]):w(b[k]);var P=void 0;(P=Reflect.ownKeys($)).length>0&&P.forEach(function(A){Reflect.set(b,A,$[A])})}})};function w(b){o.set(b["-id"],b),Array.isArray(b)?b.forEach(function(k){w(k)}):typeof b=="object"&&y(b)}w(d[v])},function(v){if(v.indexOf("bpmn:")===0){var y=d[v];if(v==="bpmn:sequenceFlow"){var w=u["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];r=tBe(y,w)}else{var b=u["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];if(v==="bpmn:boundaryEvent"){var k=d[v],C=function(T){var $=T["-attachedToRef"],P=o.get($);P["-boundaryEvents"]||(P["-boundaryEvents"]=[]),P["-boundaryEvents"].push(T["-id"])};Array.isArray(k)?k.forEach(function(T){C(T)}):C(k)}n=n.concat(eBe(y,b,v))}}}])}var p=function(v,y,w){Object.keys(v).forEach(function(b){var k=w?w+"."+b:b;y.has(k)?delete v[b]:typeof v[b]=="object"&&p(v[b],y,k)})};return n.forEach(function(v){var y,w;if(!((y=t==null?void 0:t.mapping)===null||y===void 0)&&y.in){var b=(w=t==null?void 0:t.mapping)===null||w===void 0?void 0:w.in,k=v.type;b[k]&&(v.type=b[k])}p(v,l.in,"")}),r.forEach(function(v){var y,w;if(!((y=t==null?void 0:t.mapping)===null||y===void 0)&&y.in){var b=(w=t==null?void 0:t.mapping)===null||w===void 0?void 0:w.in,k=v.type;b[k]&&(v.type=b[k])}p(v,l.in,"")}),{nodes:n,edges:r}}function eBe(e,t,n){var r=[];if(Array.isArray(e))e.forEach(function(a){var s;Array.isArray(t)?s=t.find(function(u){return u["-bpmnElement"]===a["-id"]}):s=t;var l=yV(s,n,a);r.push(l)});else{var o=void 0;Array.isArray(t)?o=t.find(function(a){return a["-bpmnElement"]===e["-id"]}):o=t;var i=yV(o,n,e);r.push(i)}return r}function yV(e,t,n){var r=Number(e["dc:Bounds"]["-x"]),o=Number(e["dc:Bounds"]["-y"]),i=n["-children"],a=n["-name"],s=al.shapeConfigMap.get(t);s&&(r+=s.width/2,o+=s.height/2);var l={};Object.entries(n).forEach(function(v){var y=O0(v,2),w=y[0],b=y[1];KH.includes(w)||(l[w]=b)}),l=p2(l);var u;if(a&&(u={x:r,y:o,value:a},e["bpmndi:BPMNLabel"]&&e["bpmndi:BPMNLabel"]["dc:Bounds"])){var d=e["bpmndi:BPMNLabel"]["dc:Bounds"];u.x=Number(d["-x"])+Number(d["-width"])/2,u.y=Number(d["-y"])+Number(d["-height"])/2}var p={id:e["-bpmnElement"],type:t,x:r,y:o,properties:l};return i&&(p.children=i),u&&(p.text=u),p}function tBe(e,t){var n=[];if(Array.isArray(e))e.forEach(function(o){var i;Array.isArray(t)?i=t.find(function(a){return a["-bpmnElement"]===o["-id"]}):i=t,n.push(bV(i,o))});else{var r=void 0;Array.isArray(t)?r=t.find(function(o){return o["-bpmnElement"]===e["-id"]}):r=t,n.push(bV(r,e))}return n}function bV(e,t){var n,r=t["-name"];if(r){var o=e["bpmndi:BPMNLabel"]["dc:Bounds"],i=0;r.split(`
  181. `).forEach(function(u){i<u.length&&(i=u.length)}),n={value:r,x:Number(o["-x"])+i*10/2,y:Number(o["-y"])+7}}var a={};Object.entries(t).forEach(function(u){var d=O0(u,2),p=d[0],v=d[1];KH.includes(p)||(a[p]=v)}),a=p2(a);var s=e["di:waypoint"].map(function(u){return{x:Number(u["-x"]),y:Number(u["-y"])}}),l={id:t["-id"],type:Ps.FLOW,pointsList:s,sourceNodeId:t["-sourceRef"],targetNodeId:t["-targetRef"],properties:a};return n&&(l.text=n),l}var al=function(){function e(t){var n=this,r=t.lf;this.adapterOut=function(o,i){var a,s,l=lR({},n.processAttributes);G6e(l,o,i);var u={"-id":"BPMNPlane_1","-bpmnElement":l["-id"]};q6e(u,o);var d=n.definitionAttributes;d["bpmn:process"]=l,d["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":u};var p={"bpmn:definitions":d};if(!((a=i==null?void 0:i.mapping)===null||a===void 0)&&a.out){var v=(s=i==null?void 0:i.mapping)===null||s===void 0?void 0:s.out,y=function(w){Array.isArray(w)&&w.forEach(function(b){return y(b)}),typeof w=="object"&&Object.keys(w).forEach(function(b){var k;(k=v[b])?(w[k]=Pe.cloneDeep(w[b]),delete w[b],y(w[k])):y(w[b])})};y(p)}return p},this.adapterIn=function(o,i){if(o)return J6e(o,i)},r.adapterIn=this.adapterIn,r.adapterOut=this.adapterOut,this.processAttributes={"-isExecutable":"true","-id":"Process"},this.definitionAttributes={"-id":"Definitions","-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.10"}}return e.prototype.setCustomShape=function(t,n){e.shapeConfigMap.set(t,n)},e.pluginName="bpmn-adapter",e.shapeConfigMap=new Map,e}();al.shapeConfigMap.set(Ps.START,{width:aV.width,height:aV.height});al.shapeConfigMap.set(Ps.END,{width:sV.width,height:sV.height});al.shapeConfigMap.set(Ps.INTERMEDIATE_CATCH,{width:f2.width,height:f2.height});al.shapeConfigMap.set(Ps.INTERMEDIATE_THROW,{width:f2.width,height:f2.height});al.shapeConfigMap.set(Ps.BOUNDARY,{width:lV.width,height:lV.height});al.shapeConfigMap.set(Ps.PARALLEL_GATEWAY,{width:uV.width,height:uV.height});al.shapeConfigMap.set(Ps.INCLUSIVE_GATEWAY,{width:cV.width,height:cV.height});al.shapeConfigMap.set(Ps.EXCLUSIVE_GATEWAY,{width:fV.width,height:fV.height});al.shapeConfigMap.set(Ps.SYSTEM,{width:dV.width,height:dV.height});al.shapeConfigMap.set(Ps.USER,{width:hV.width,height:hV.height});al.shapeConfigMap.set(Ps.SUBPROCESS,{width:pV.width,height:pV.height});(function(e){U6e(t,e);function t(n){var r=e.call(this,n)||this;r.adapterXmlIn=function(a){var s=W6e(a);return r.adapterIn(s,r.props)},r.adapterXmlOut=function(a){var s=r.adapterOut(a,r.props);return Z6e(s)};var o=n.lf,i=n.props;return o.adapterIn=r.adapterXmlIn,o.adapterOut=r.adapterXmlOut,r.props=i,r}return t.pluginName="BPMNAdapter",t})(al);var nBe=function(){function e(t){var n=this,r=t.lf;this.lf=r,this.customCssRules="",this.useGlobalRules=!0,r.getSnapshot=function(o,i){n.getSnapshot(o,i)},r.getSnapshotBlob=function(o){return n.getSnapshotBlob(o)},r.getSnapshotBase64=function(o){return n.getSnapshotBase64(o)}}return e.prototype.getSvgRootElement=function(t){var n=t.container.querySelector(".lf-canvas-overlay");return n},e.prototype.triggerDownload=function(t){var n=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0}),r=document.createElement("a");r.setAttribute("download",this.fileName),r.setAttribute("href",t),r.setAttribute("target","_blank"),r.dispatchEvent(n)},e.prototype.removeAnchor=function(t){for(var n=t.childNodes,r=t.childNodes&&t.childNodes.length,o=0;o<r;o++){var i=n[o],a=i.classList&&Array.from(i.classList)||[];a.indexOf("lf-anchor")>-1&&(t.removeChild(t.childNodes[o]),r--,o--)}},e.prototype.removeRotateControl=function(t){for(var n=t.childNodes,r=t.childNodes&&t.childNodes.length,o=0;o<r;o++){var i=n[o],a=i.classList&&Array.from(i.classList)||[];a.indexOf("lf-rotate-control")>-1&&(t.removeChild(t.childNodes[o]),r--,o--)}},e.prototype.getSnapshot=function(t,n){var r=this;this.fileName=t||"logic-flow."+Date.now()+".png";var o=this.getSvgRootElement(this.lf);this.getCanvasData(o,n).then(function(i){var a=i.toDataURL("image/png").replace("image/png","image/octet-stream");r.triggerDownload(a)})},e.prototype.getSnapshotBase64=function(t){var n=this,r=this.getSvgRootElement(this.lf);return new Promise(function(o){n.getCanvasData(r,t).then(function(i){var a=i.toDataURL("image/png");o({data:a,width:i.width,height:i.height})})})},e.prototype.getSnapshotBlob=function(t){var n=this,r=this.getSvgRootElement(this.lf);return new Promise(function(o){n.getCanvasData(r,t).then(function(i){i.toBlob(function(a){o({data:a,width:i.width,height:i.height})},"image/png")})})},e.prototype.getClassRules=function(){var t="";if(this.useGlobalRules)for(var n=document.styleSheets,r=0;r<n.length;r++)for(var o=n[r],i=0;i<o.cssRules.length;i++)t+=o.cssRules[i].cssText;return this.customCssRules&&(t+=this.customCssRules),t},e.prototype.getCanvasData=function(t,n){var r=this,o=t.cloneNode(!0),i=o.lastChild,a=i.childNodes&&i.childNodes.length;if(a)for(var s=0;s<a;s++){var l=i.childNodes[s],u=l.classList&&Array.from(l.classList);if(u&&u.indexOf("lf-base")<0)i.removeChild(i.childNodes[s]),a--,s--;else{var d=i.childNodes[s];d&&d.childNodes.forEach(function(ae){var K=ae;r.removeAnchor(K.firstChild),r.removeRotateControl(K.firstChild)})}}var p=window.devicePixelRatio||1;p<1&&(p=1);var v=document.createElement("canvas"),y=this.lf.graphModel.rootEl.querySelector(".lf-base"),w=y.getBoundingClientRect(),b=document.querySelector(".lf-canvas-overlay").getBoundingClientRect(),k=w.x-b.x,C=w.y-b.y,T=this.lf.graphModel,$=T.transformModel,P=$.SCALE_X,A=$.SCALE_Y,R=$.TRANSLATE_X,B=$.TRANSLATE_Y;o.lastChild.style.transform="matrix(1, 0, 0, 1, "+((-k+R)*(1/P)+10)+", "+((-C+B)*(1/A)+10)+")";var N=Math.ceil(w.width/P),I=Math.ceil(w.height/A);v.style.width=N+"px",v.style.height=I+"px",v.width=N*p+80,v.height=I*p+80;var D=v.getContext("2d");D.clearRect(0,0,v.width,v.height),D.scale(p,p),n?(D.fillStyle=n,D.fillRect(0,0,N*p+80,I*p+80)):D.clearRect(0,0,N,I);var L=new Image,z=document.createElement("style");z.innerHTML=this.getClassRules();var q=document.createElement("foreignObject");return q.appendChild(z),o.appendChild(q),new Promise(function(ae){L.onload=function(){var ne=navigator.userAgent.indexOf("Firefox")>-1;try{ne?createImageBitmap(L,{resizeWidth:v.width,resizeHeight:v.height}).then(function(X){D.drawImage(X,0,0),ae(v)}):(D.drawImage(L,0,0),ae(v))}catch{D.drawImage(L,0,0),ae(v)}};var K="data:image/svg+xml;charset=utf-8,"+new XMLSerializer().serializeToString(o),H=K.replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23");L.src=H})},e.pluginName="snapshot",e}(),_V=globalThis&&globalThis.__assign||function(){return _V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_V.apply(this,arguments)};globalThis&&globalThis.__read;var OV;(function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"})(OV||(OV={}));var rBe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;var oBe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;var iBe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;globalThis&&globalThis.__read;var aBe=function(){function e(t){var n=this,r=t.lf;this.__disabled=!1,this.isDefaultStopMoveGraph=!1,this.isWholeNode=!0,this.isWholeEdge=!0,this.__draw=function(i){var a=n.lf.getPointByClient(i.clientX,i.clientY).domOverlayPosition,s=a.x,l=a.y;n.endPoint={x:s,y:l};var u=n.startPoint,d=u.x,p=u.y,v=n.wrapper.style,y=d,w=p,b=s-d,k=l-p;s<d&&(y=s,b=d-s),l<p&&(w=l,k=p-l),v.left=y+"px",v.top=w+"px",v.width=b+"px",v.height=k+"px"},this.__drawOff=function(){document.removeEventListener("mousemove",n.__draw),document.removeEventListener("mouseup",n.__drawOff),n.wrapper.oncontextmenu=null,n.__domContainer.removeChild(n.wrapper);var i=n.startPoint,a=i.x,s=i.y,l=n.endPoint,u=l.x,d=l.y;if(!(Math.abs(u-a)<10&&Math.abs(d-s)<10)){var p=[Math.min(a,u),Math.min(s,d)],v=[Math.max(a,u),Math.max(s,d)],y=n.lf.graphModel.getAreaElement(p,v,n.isWholeEdge,n.isWholeNode,!0),w=n.lf.graphModel.group;y.forEach(function(b){(!w||!w.getNodeGroup(b.id))&&n.lf.selectElementById(b.id,!0)}),n.lf.emit("selection:selected",y)}},this.lf=r;var o=r.getEditConfig().stopMoveGraph;this.isDefaultStopMoveGraph=o,r.openSelectionSelect=function(){n.openSelectionSelect()},r.closeSelectionSelect=function(){n.closeSelectionSelect()}}return e.prototype.render=function(t,n){var r=this;this.__domContainer=n,t.on("blank:mousedown",function(o){var i=o.e,a=t.getEditConfig();if(!(!a.stopMoveGraph||r.__disabled)){var s=i.button===2;if(!s){var l=t.getPointByClient(i.clientX,i.clientY).domOverlayPosition,u=l.x,d=l.y;r.startPoint={x:u,y:d},r.endPoint={x:u,y:d};var p=document.createElement("div");p.className="lf-selection-select",p.oncontextmenu=function(y){y.preventDefault()},p.style.top=r.startPoint.y+"px",p.style.left=r.startPoint.x+"px",n.appendChild(p),r.wrapper=p,document.addEventListener("mousemove",r.__draw),document.addEventListener("mouseup",r.__drawOff)}}})},e.prototype.setSelectionSense=function(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0),this.isWholeEdge=t,this.isWholeNode=n},e.prototype.openSelectionSelect=function(){var t=this.lf.getEditConfig().stopMoveGraph;t||(this.isDefaultStopMoveGraph=!1,this.lf.updateEditConfig({stopMoveGraph:!0})),this.open()},e.prototype.closeSelectionSelect=function(){this.isDefaultStopMoveGraph||this.lf.updateEditConfig({stopMoveGraph:!1}),this.close()},e.prototype.open=function(){this.__disabled=!1},e.prototype.close=function(){this.__disabled=!0},e.pluginName="selectionSelect",e}();globalThis&&globalThis.__values;var eX=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},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)}}(),ay=globalThis&&globalThis.__assign||function(){return ay=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ay.apply(this,arguments)},rO=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},sBe={tr:"tl",lb:"tl",tl:"tr",rb:"tr",br:"bl",lt:"bl",bl:"br",rt:"br"};function lBe(e){for(var t=e,n=1;n<t.length-1;){var r=rO(t[n-1],2),o=r[0],i=r[1],a=rO(t[n],2),s=a[0],l=a[1],u=rO(t[n+1],2),d=u[0],p=u[1];o===s&&s===d||i===l&&l===p?t.splice(n,1):n++}return t}function uBe(e,t,n,r){var o=[e[0],e[1]],i=[e[0],e[1]];switch(n){case"tl":return t==="tr"?(o[1]+=r,i[0]+=r):t==="lb"&&(o[0]+=r,i[1]+=r),[o,i];case"tr":return t==="tl"?(o[1]+=r,i[0]-=r):t==="rb"&&(o[0]-=r,i[1]+=r),[o,i];case"bl":return t==="br"?(o[1]-=r,i[0]+=r):t==="lt"&&(o[0]+=r,i[1]-=r),[o,i];case"br":return t==="bl"?(o[1]-=r,i[0]-=r):t==="rt"&&(o[0]-=r,i[1]-=r),[o,i];default:return[]}}function cBe(e,t,n,r){var o,i="",a="";e[0]===t[0]?i=e[1]>t[1]?"t":"b":e[1]===t[1]&&(i=e[0]>t[0]?"l":"r"),t[0]===n[0]?a=t[1]>n[1]?"t":"b":t[1]===n[1]&&(a=t[0]>n[0]?"l":"r");var s=Math.min(Math.hypot(t[0]-e[0],t[1]-e[1])/2,Math.hypot(n[0]-t[0],n[1]-t[1])/2,r)||1/5*r,l=""+i+a,u=sBe[l]||"-",d="L "+e[0]+" "+e[1];if(u==="-")d+="L "+t[0]+" "+t[1]+" L "+n[0]+" "+n[1];else{var p=rO(uBe(t,l,u,s),2),v=p[0],y=p[1];v&&y&&(d+="L "+v[0]+" "+v[1]+" Q "+t[0]+" "+t[1]+" "+y[0]+" "+y[1],o=rO(y,2),t[0]=o[0],t[1]=o[1])}return d}function fBe(e,t){var n=0,r="";if(e.length===2)r+="M"+e[n][0]+" "+e[n++][1]+" L "+e[n][0]+" "+e[n][1];else{for(r+="M"+e[n][0]+" "+e[n++][1];n+1<e.length;){var o=e[n-1],i=e[n],a=e[n+++1];r+=cBe(o,i,a,t)}r+="L "+e[n][0]+" "+e[n][1]}return r}(function(e){eX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getEdge=function(){var n=this.props.model,r=n.points,o=n.isAnimation,i=n.arrowConfig,a=n.radius,s=a===void 0?5:a,l=n.getEdgeStyle(),u=n.getEdgeAnimationStyle(),d=lBe(r.split(" ").map(function(y){return y.split(",").map(function(w){return+w})})),p=fBe(d,s),v=ay(ay(ay({style:o?u:{}},l),i),{fill:"none"});return qt.exports.h("path",ay({d:p},v))},t})(qt.exports.PolylineEdge);(function(e){eX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(qt.exports.PolylineEdgeModel);var dBe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;var wV=globalThis&&globalThis.__assign||function(){return wV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wV.apply(this,arguments)},SV=globalThis&&globalThis.__assign||function(){return SV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},SV.apply(this,arguments)},hBe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};globalThis&&globalThis.__spread;const pBe={endpoints:{label:"\u8F93\u5165\u7AEF",background:"#A6BBCFFF",nodeType:"endpoint-node"},filter:{label:"\u8FC7\u6EE4\u5668",background:"#f1e861",nodeType:"simple-node"},transform:{label:"\u8F6C\u6362\u5668",background:"#79cef1",nodeType:"simple-node"},action:{label:"\u52A8\u4F5C",background:"#f1928f",nodeType:"simple-node"},external:{label:"\u5916\u90E8\u7684",background:"#fbc766",nodeType:"simple-node"},ai:{label:"AI",background:"#7cbaf8",nodeType:"simple-node"},ci:{label:"CI/CD",background:"#9ec9c9",nodeType:"simple-node"},iot:{label:"IoT",background:"#FFA500",nodeType:"simple-node"},flow:{label:"\u5B50\u89C4\u5219\u94FE",background:"#E6E0F8FF",nodeType:"simple-node"}},xV={Input:"\u8F93\u5165",relationTypes:{Success:"\u6210\u529F",Failure:"\u5931\u8D25",True:"\u771F",False:"\u5047"}},kV={endpoints:{"endpoint/mqtt":{notInput:!0,label:"MQTT",icon:"/images/endpoint/mqtt.svg",desc:'<ul><li>MQTT\u8BA2\u9605\u63A5\u5165\u7AEF</li><li>\u8FDE\u63A5MQTT Server\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u4E3B\u9898\u89E6\u53D1\u89C4\u5219\u94FE</li><a href="https://rulego.cc/pages/2b0760/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',server:{label:"MQTT Server\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""},maxReconnectInterval:{label:"\u91CD\u8FDE\u95F4\u9694\uFF0C\u5355\u4F4D\u79D2",desc:""},qOS:{label:"QOS",desc:""},router:{from:{path:{label:"\u8BA2\u9605\u4E3B\u9898",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u8BA2\u9605\u4E3B\u9898\u6570\u636E\u89E6\u53D1\uFF0C\u4F8B\u5982: devices/msg"}}}},"endpoint/net":{notInput:!0,label:"TCP/UDP",icon:"/images/endpoint/net.svg",desc:'<ul><li>TCP/UDP\u670D\u52A1\u5668\u63A5\u5165\u7AEF\u3002</li><li>\u542F\u52A8TCP/UPD\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u6B63\u5219\u8868\u8FBE\u5F0F\u8DEF\u7531\u6570\u636E\u89E6\u53D1\u89C4\u5219\u94FE\u3002</li><a href="https://rulego.cc/pages/b7050c/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',topic:{label:"\u534F\u8BAE\u7C7B\u578B",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"TCP/UDP"},server:{label:"\u76D1\u542C\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},readTimeout:{label:"\u8BFB\u8D85\u65F6(\u5355\u4F4D\u79D2)",desc:""},router:{from:{path:{label:"\u8DEF\u7531\u6B63\u5219\u8868\u8FBE\u5F0F",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u901A\u8FC7\u6B63\u5219\u8868\u8FBE\u5F0F\u5339\u914D\u6EE1\u8DB3\u6761\u4EF6\u7684\u6570\u636E\u89E6\u53D1"}}}},"endpoint/http":{notInput:!0,label:"HTTP",icon:"/images/endpoint/http.svg",desc:'<ul><li>HTTP\u670D\u52A1\u5668\u63A5\u5165\u7AEF\u3002</li><li>\u542F\u52A8HTTP\u670D\u52A1\u5668\uFF0C\u5904\u7406\u8DEF\u7531\u7ED9\u5B9AURL\u8BF7\u6C42\uFF0C\u628A\u8BF7\u6C42\u6570\u636E\u8DEF\u8DEF\u7531\u5230\u89C4\u5219\u94FE\u3002</li><a href="https://rulego.cc/pages/691dd3/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',server:{label:"\u76D1\u542C\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},router:{from:{path:{label:"Path",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u5BA2\u6237\u7AEF\u8BF7\u6C42\u8BE5URL\u89E6\u53D1\uFF0C\u5982:/api/v1/msg "}}}},"endpoint/ws":{notInput:!0,label:"Websocket",icon:"/images/endpoint/websocket.svg",desc:'<ul><li>Websocket\u670D\u52A1\u5668\u63A5\u5165\u7AEF\u3002</li><li>\u542F\u52A8Websocket\u670D\u52A1\u5668\uFF0C\u5904\u7406\u8DEF\u7531\u7ED9\u5B9AURL\u8BF7\u6C42\uFF0C\u628A\u8BF7\u6C42\u6570\u636E\u8DEF\u8DEF\u7531\u5230\u89C4\u5219\u94FE\u3002</li><a href="https://rulego.cc/pages/e36f41/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',server:{label:"\u76D1\u542C\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},router:{from:{path:{label:"Path",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u5BA2\u6237\u7AEF\u8BF7\u6C42\u8BE5URL\u89E6\u53D1\uFF0C\u5982:/api/ms/ws "}}}},"endpoint/schedule":{notInput:!0,label:"\u5B9A\u65F6\u8C03\u5EA6",icon:"/images/endpoint/schedule.svg",desc:'<ul><li>\u5B9A\u65F6\u8C03\u5EA6\u63A5\u5165\u7AEF</li><li>\u901A\u8FC7\u8DEF\u7531\u7ED9\u5B9ACron\u8868\u8FBE\u5F0F\u5468\u671F\u89E6\u53D1\u89C4\u5219\u94FE</li><a href="https://rulego.cc/pages/4c4e4c/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',router:{from:{path:{label:"cron\u8868\u8FBE\u5F0F",rules:[{required:!0,message:"\u8BF7\u8F93\u5165cron\u8868\u8FBE\u5F0F\u5982: */10 * * * * *"}],desc:"\u901A\u8FC7cron\u8868\u8FBE\u5F0F\u5468\u671F\u89E6\u53D1\uFF0C\u5982: */10 * * * * *"}}}},"endpoint/kafka":{notInput:!0,label:"Kafka",icon:"/images/endpoint/kafka.svg",desc:'<ul><li>Kafka\u8BA2\u9605\u63A5\u5165\u7AEF</li><li>\u8FDE\u63A5Kafka\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u4E3B\u9898\u89E6\u53D1\u89C4\u5219\u94FE</li><a href="https://rulego.cc/pages/07ad50/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',server:{label:"kafka\u670D\u52A1\u5668\u5730\u5740",desc:"\u591A\u4E2A\u5730\u5740\u7528\u9017\u53F7\u9694\u5F00\uFF0C\u5982: 127.0.0.1:9092,127.0.0.2:9092",rules:[{required:!0,message:"\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}]},groupId:{label:"\u6D88\u8D39\u8005\u7EC4ID",desc:"\u9ED8\u8BA4rulego"},router:{from:{path:{label:"\u8BA2\u9605\u4E3B\u9898",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u8BA2\u9605\u4E3B\u9898\u6570\u636E\u89E6\u53D1\uFF0C\u4F8B\u5982: devices/msg"}}}},"endpoint/nats":{notInput:!0,label:"Nats",icon:"/images/endpoint/nats.svg",desc:'<ul><li>Nats\u8BA2\u9605\u63A5\u5165\u7AEF</li><li>\u8FDE\u63A5Nats\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u4E3B\u9898\u89E6\u53D1\u89C4\u5219\u94FE</li><a href="https://rulego.cc/pages/0a7ad4/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',server:{label:"NATS\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""},router:{from:{path:{label:"\u8BA2\u9605\u4E3B\u9898",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u8BA2\u9605\u4E3B\u9898\u6570\u636E\u89E6\u53D1\uFF0C\u4F8B\u5982: devices/msg"}}}},"endpoint/redis":{notInput:!0,label:"Redis",icon:"/images/endpoint/redis.svg",desc:'<ul><li>Redis\u8BA2\u9605\u63A5\u5165\u7AEF</li><li>\u8FDE\u63A5Redis\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u8BA2\u9605\u901A\u9053\u89E6\u53D1\u89C4\u5219\u94FE</li><a href="https://rulego.cc/pages/c96eb4/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',server:{label:"Redis\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},password:{label:"\u5BC6\u7801",desc:""},db:{label:"\u6570\u636E\u5E93\u7F16\u53F7",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"},{type:"integer",required:!0,message:"\u5FC5\u987B\u662F\u6574\u578B"}],desc:"\u9ED8\u8BA40"},router:{from:{path:{label:"\u8BA2\u9605Redis\u901A\u9053",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u591A\u4E2A\u901A\u9053\u4E0E\u9017\u53F7\u5206\u5272\uFF0C\u4F8B\u5982: devices/msg,devices/msg2"}}}},"endpoint/redis/stream":{notInput:!0,label:"Redis\u6D41",icon:"/images/endpoint/redis_stream.svg",desc:'<ul><li>Redis Steam\u63A5\u5165\u7AEF</li><li>\u8FDE\u63A5Redis\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u6D41\u540D\u79F0\u89E6\u53D1\u89C4\u5219\u94FE</li><a href="https://rulego.cc/pages/c96eb5/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',server:{label:"Redis\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},password:{label:"\u5BC6\u7801",desc:""},db:{label:"\u6570\u636E\u5E93\u7F16\u53F7",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"},{type:"integer",required:!0,message:"\u5FC5\u987B\u662F\u6574\u578B"}],desc:"\u9ED8\u8BA40"},groupId:{label:"\u6D88\u8D39\u8005\u7EC4ID",desc:"\u9ED8\u8BA4rulego"},router:{from:{path:{label:"\u8BA2\u9605\u6D41\u540D\u79F0",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u591A\u4E2A\u6D41\u4E0E\u9017\u53F7\u5206\u5272\uFF0C\u4F8B\u5982: devices/msg,devices/msg2"}}}},"endpoint/rabbitmq":{label:"RabbitMQ",icon:"/images/endpoint/rabbitmq.svg",desc:'<ul><li>rabbitmq\u8BA2\u9605\u63A5\u5165\u7AEF</li><li>\u652F\u6301AMQP\u534F\u8BAE</li><li>\u8FDE\u63A5rabbitmq\u670D\u52A1\u5668\uFF0C\u901A\u8FC7\u8BA2\u9605\u8DEF\u7531\u7ED9\u5B9A\u8DEF\u7531\u952E\u89E6\u53D1\u89C4\u5219\u94FE</li><li>\u5982\u679C\u4EA4\u6362\u673A\u4E0D\u5B58\u5728\u5219\u81EA\u52A8\u58F0\u660E</li><a href="https://rulego.cc/pages/endpoint-rabbitmq/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',server:{label:"\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u683C\u5F0F:[amqp[s]://][\u7528\u6237\u540D:\u5BC6\u7801@]\u4E3B\u673A\u540D[\u865A\u62DF\u4E3B\u673A]/\u961F\u5217\u540D\u79F0",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},exchange:{label:"\u4EA4\u6362\u673A\u540D\u79F0",desc:""},exchangeType:{label:"\u4EA4\u6362\u673A\u7C7B\u578B",desc:"direct/fanout/headers/topic"},durable:{label:"\u662F\u5426\u6301\u4E45\u5316",desc:""},autoDelete:{label:"\u662F\u5426\u81EA\u52A8\u5220\u9664",desc:""},router:{from:{path:{label:"\u8DEF\u7531\u952E",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""}}}}},nodes:{delay:{label:"\u5EF6\u8FDF",icon:"/images/delay.svg",desc:'<a href="https://rulego.cc/pages/5f5612/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',periodInSeconds:{label:"\u5EF6\u8FDF\u65F6\u95F4(\u79D2)",desc:""},maxPendingMsgs:{label:"\u6700\u5927\u5141\u8BB8\u6302\u8D77\u6D88\u606F\u7684\u6570\u91CF",desc:"\u5982\u679C\u542F\u7528\u8986\u76D6\u6A21\u5F0F\uFF0C\u8BE5\u53C2\u6570\u5931\u6548"},periodInSecondsPattern:{label:"\u5EF6\u8FDF\u65F6\u95F4\u8868\u8FBE\u5F0F(\u79D2)",desc:"\u901A\u8FC7 ${metadata.key} \u4ECE\u5143\u6570\u636E\u53D8\u91CF\u4E2D\u83B7\u53D6\u6216\u8005\u901A\u8FC7 ${msg.key} \u4ECE\u6D88\u606F\u8D1F\u8377\u4E2D\u83B7\u53D6\uFF0C\u5EF6\u8FDF\u65F6\u95F4\uFF0C\u5982\u679C\u8BE5\u503C\u6709\u503C\uFF0C\u4F18\u5148\u53D6\u8BE5\u503C\u3002"},overwrite:{label:"\u8986\u76D6\u6A21\u5F0F",desc:"\u5982\u679C\u542F\u7528\uFF0C\u5468\u671F\u5185\u53EA\u5141\u8BB8\u6302\u8D77\u4E00\u6761\u6D88\u606F\uFF0C\u65B0\u6D88\u606F\u4F1A\u8986\u76D6\u4E0A\u4E00\u6761\u6D88\u606F"}},log:{label:"\u65E5\u5FD7",icon:"/images/log.svg",desc:'<a href="https://rulego.cc/pages/020050/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',jsScript:{label:"function String(msg, metadata, msgType) {",desc:"}"}},for:{label:"for",icon:"/images/for.svg",desc:'<a href="https://rulego.cc/pages/7db1de/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',range:{label:"\u8FED\u4EE3\u503C\u8868\u8FBE\u5F0F",desc:"\u4F8B\u5982:msg.items;1..3;\u5982\u679C\u7A7A\u5219\u904D\u5386\u6574\u4E2Amsg"},do:{label:"\u5904\u7406\u8282\u70B9ID",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u4F8B\u5982:s3(\u5B50\u94FE\u8D77\u70B9\u8282\u70B9ID);chain:rule03(\u5B50\u89C4\u5219\u94FE)\u3002"},sync:{label:"\u662F\u5426\u6536\u96C6\u904D\u5386\u7ED3\u679C",desc:"\u5982\u679C\u5F00\u542F\u5219\u628A\u904D\u5386\u7ED3\u679C\u5408\u5E76\u8F6C\u53D1\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9"}},functions:{label:"\u51FD\u6570",desc:'<a href="https://rulego.cc/pages/b7edde/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',functionName:{label:"\u51FD\u6570\u540D\u79F0",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"",component:{type:"select",filterable:!0,allowCreate:!0,placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u51FD\u6570\u540D"}}},dbClient:{label:"\u6570\u636E\u5E93",icon:"/images/db.svg",desc:'<a href="https://rulego.cc/pages/32683d/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',sql:{label:"SQL\u8BED\u53E5",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u53EF\u4EE5\u4F7F\u7528 ? \u5360\u4F4D\u7B26"},params:{label:"\u5360\u4F4D\u7B26\u53C2\u6570\u5217\u8868",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},getOne:{label:"\u8FD4\u56DE\u4E00\u6761\u8BB0\u5F55",desc:""},poolSize:{label:"\u8FDE\u63A5\u6C60\u5927\u5C0F",desc:""},driverName:{label:"\u6570\u636E\u5E93\u9A71\u52A8\u540D\u79F0",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"mysql\u6216postgres"},dsn:{label:"\u6570\u636E\u5E93\u8FDE\u63A5",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u5141\u8BB8\u9009\u62E9\u8FDE\u63A5\u6C60\u8FDB\u884C\u8FDE\u63A5",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}}},mqttClient:{label:"MQTT",icon:"/images/mqtt.svg",desc:'<a href="https://rulego.cc/pages/44aa9a/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',topic:{label:"\u53D1\u5E03\u4E3B\u9898",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},server:{label:"MQTT \u670D\u52A1\u5668\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u5141\u8BB8\u9009\u62E9\u8FDE\u63A5\u6C60\u8FDB\u884C\u8FDE\u63A5",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""},maxReconnectInterval:{label:"\u91CD\u8FDE\u95F4\u9694\uFF0C\u5355\u4F4D\u79D2",desc:""},qOS:{label:"QoS",desc:""},clientID:{label:"\u5BA2\u6237\u7AEFID",desc:""},cleanSession:{label:"\u6E05\u9664\u4F1A\u8BDD",desc:""},cAFile:{label:"\u8BC1\u4E66\u9881\u53D1\u673A\u6784(CA)\u6587\u4EF6",desc:""},certFile:{label:"\u8BC1\u4E66\u6587\u4EF6",desc:""},certKeyFile:{label:"\u8BC1\u4E66\u5BC6\u94A5\u6587\u4EF6",desc:""}},restApiCall:{label:"REST",icon:"/images/rest.svg",desc:'<a href="https://rulego.cc/pages/f3a3d5/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',restEndpointUrlPattern:{label:"HTTP URL\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},requestMethod:{label:"\u8BF7\u6C42\u65B9\u6CD5",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"POST/GET/DELETE/PUT/PATCH/HEAD"},withoutRequestBody:{label:"\u4E0D\u4F20\u8F93request body",desc:"\u4E0D\u628A\u6D88\u606F\u8D1F\u8377\u4F20\u8F93\u7ED9\u914D\u7F6E\u7684\u670D\u52A1\u5730\u5740"},headers:{label:"\u8BF7\u6C42\u5934",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},readTimeoutMs:{label:"\u8D85\u65F6\uFF0C\u5355\u4F4D\u6BEB\u79D2\u3002\u9ED8\u8BA4:0",desc:"0\u4EE3\u8868\u4E0D\u8D85\u65F6"},maxParallelRequestsCount:{label:"\u6700\u5927\u5E76\u53D1\u5927\u5C0F",desc:"0\u4EE3\u8868\u4E0D\u9650\u5236"},enableProxy:{label:"\u5F00\u542F\u4EE3\u7406",desc:""},useSystemProxyProperties:{label:"\u4F7F\u7528\u7CFB\u7EDF\u4EE3\u7406\u914D\u7F6E",desc:""},proxyScheme:{label:"\u4EE3\u7406\u534F\u8BAE",desc:""},proxyHost:{label:"\u4EE3\u7406\u4E3B\u673A",desc:""},proxyPort:{label:"\u4EE3\u7406\u7AEF\u53E3",desc:""},proxyUser:{label:"\u7528\u6237\u540D",desc:""},proxyPassword:{label:"\u5BC6\u7801",desc:""}},sendEmail:{label:"\u53D1\u90AE\u4EF6",icon:"/images/email.svg",desc:'<a href="https://rulego.cc/pages/70c37d/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',smtpHost:{label:"SMTP \u4E3B\u673A\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},smtpPort:{label:"SMTP \u4E3B\u673A\u7AEF\u53E3",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},username:{label:"\u7528\u6237\u540D",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},password:{label:"\u6388\u6743\u7801",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},enableTls:{label:"\u662F\u5426\u5F00\u542FTLS",desc:""},email:{label:"\u90AE\u4EF6\u5185\u5BB9",desc:"",from:{label:"\u53D1\u4EF6\u4EBA\u90AE\u7BB1",desc:"\u591A\u4E2A\u4E0E`,`\u9694\u5F00"},to:{label:"\u6536\u4EF6\u4EBA\u90AE\u7BB1",desc:"\u591A\u4E2A\u4E0E`,`\u9694\u5F00"},cc:{label:"\u6284\u9001\u4EBA\u90AE\u7BB1",desc:"\u591A\u4E2A\u4E0E`,`\u9694\u5F00"},bcc:{label:"\u5BC6\u9001\u4EBA\u90AE\u7BB1",desc:"\u591A\u4E2A\u4E0E`,`\u9694\u5F00"},subject:{label:"\u90AE\u4EF6\u4E3B\u9898",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},body:{label:"\u90AE\u4EF6\u5185\u5BB9",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"}},connectTimeout:{label:"\u8FDE\u63A5\u8D85\u65F6,\u5355\u4F4D\u79D2\u3002\u9ED8\u8BA4:10",desc:""}},ssh:{label:"SSH",icon:"/images/ssh.svg",desc:'<a href="https://rulego.cc/pages/fa62c1/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',host:{label:"ssh\u4E3B\u673A\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},port:{label:"ssh\u4E3B\u673A\u7AEF\u53E3",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},username:{label:"ssh\u767B\u5F55\u7528\u6237\u540D",desc:""},password:{label:"ssh\u767B\u5F55\u5BC6\u7801",desc:""},cmd:{label:"shell\u547D\u4EE4",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"}},fieldFilter:{label:"\u5B57\u6BB5\u8FC7\u6EE4",desc:'<a href="https://rulego.cc/pages/502031/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',checkAllKeys:{label:"\u662F\u5426\u6EE1\u8DB3\u9700\u8981\u6240\u6709\u5B57\u6BB5key\u5B58\u5728",desc:""},dataNames:{label:"msg data\u5B57\u6BB5key",desc:"\u591A\u4E2A\u4E0E\u9017\u53F7\u9694\u5F00"},metadataNames:{label:"metadata\u5B57\u6BB5key",desc:"\u591A\u4E2A\u4E0E\u9017\u53F7\u9694\u5F00"}},jsFilter:{label:"js\u8FC7\u6EE4",icon:"/images/jsFilter.svg",desc:'<a href="https://rulego.cc/pages/8269e5/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',jsScript:{label:"function Filter(msg, metadata, msgType) {",desc:"}"}},jsSwitch:{label:"js\u8DEF\u7531",desc:'<a href="https://rulego.cc/pages/bd9a27/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',jsScript:{label:"function Switch(msg, metadata, msgType) {",desc:"}"}},msgTypeSwitch:{label:"\u6D88\u606F\u8DEF\u7531",icon:"/images/msgTypeSwitch.svg",desc:'<a href="https://rulego.cc/pages/09b453/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>'},exprFilter:{label:"\u8868\u8FBE\u5F0F\u8FC7\u6EE4",icon:"/images/exp.svg",desc:'<ul><li>\u4F7F\u7528expr\u8868\u8FBE\u5F0F\u8FC7\u6EE4\u6D88\u606F</li><li>\u901A\u8FC7`msg`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u4F53\u3002\u4F8B\u5982 `msg.temperature`</li><li>\u901A\u8FC7`metadata`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u5143\u6570\u636E\u3002\u4F8B\u5982 `metadata.customerName`</li><li>\u901A\u8FC7`type`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u7C7B\u578B</li><li>\u901A\u8FC7`dataType`\u53D8\u91CF\u8BBF\u95EE\u6570\u636E\u7C7B\u578B</li><a href="https://rulego.cc/pages/c8fe75/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',expr:{label:"\u8FC7\u6EE4\u8868\u8FBE\u5F0F",desc:"\u4F8B\u5982:msg.temperature>5\uFF0C\u8FD4\u56DE\u503C\u5FC5\u987B\u662Fbool\u7C7B\u578B",rules:[{required:!0,message:"\u8FC7\u6EE4\u8868\u8FBE\u5F0F\u662F\u5FC5\u987B\u7684"}]}},exprTransform:{label:"\u8868\u8FBE\u5F0F\u8F6C\u6362",icon:"/images/exp.svg",desc:'<ul><li>\u4F7F\u7528expr\u8868\u8FBE\u5F0F\u8F6C\u6362\u6216\u8005\u521B\u5EFA\u65B0\u7684msg</li><li>\u901A\u8FC7`msg`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u4F53\u3002\u4F8B\u5982 `msg.temperature`</li><li>\u901A\u8FC7`metadata`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u5143\u6570\u636E\u3002\u4F8B\u5982 `metadata.customerName`</li><li>\u901A\u8FC7`type`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u7C7B\u578B</li><li>\u901A\u8FC7`dataType`\u53D8\u91CF\u8BBF\u95EE\u6570\u636E\u7C7B\u578B</li><a href="https://rulego.cc/pages/794696/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',expr:{label:"\u8F6C\u6362\u8868\u8FBE\u5F0F",desc:"\u4F8B\u5982:msg.name\u3002\u5982\u679C\u8BE5\u5B57\u6BB5\u6709\u503C\u5219\u4F18\u5148\u4F7F\u7528\u8BE5\u5B57\u6BB5\u3002"},mapping:{label:"\u5B57\u6BB5-\u8868\u8FBE\u5F0F\u6620\u5C04\u5217\u8868\uFF08\u521B\u5EFA\u65B0\u7684Msg\uFF09",desc:"Key:\u5B57\u6BB5\u540D,Value:\u8868\u8FBE\u5F0F\u3002\u5982\u679C\u8BE5\u5B57\u6BB5\u6709\u503C\uFF0C\u6839\u636E\u6307\u5B9A\u7684\u5B57\u6BB5\u548C\u8F6C\u6362\u8868\u8FBE\u5F0F\u521B\u5EFA\u65B0\u7684Msg"}},metadataTransform:{label:"\u5143\u6570\u636E\u8F6C\u6362",icon:"/images/metadata.svg",desc:'<ul><li>\u4F7F\u7528expr\u8868\u8FBE\u5F0F\u8F6C\u6362\u6216\u8005\u521B\u5EFA\u65B0\u7684\u5143\u6570\u636E</li><li>\u901A\u8FC7`msg`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u4F53\u3002\u4F8B\u5982 `msg.temperature`</li><li>\u901A\u8FC7`metadata`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u5143\u6570\u636E\u3002\u4F8B\u5982 `metadata.customerName`</li><li>\u901A\u8FC7`type`\u53D8\u91CF\u8BBF\u95EE\u6D88\u606F\u7C7B\u578B</li><li>\u901A\u8FC7`dataType`\u53D8\u91CF\u8BBF\u95EE\u6570\u636E\u7C7B\u578B</li><a href="https://rulego.cc/pages/316efe/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',mapping:{label:"\u5B57\u6BB5-\u8868\u8FBE\u5F0F\u6620\u5C04\u5217\u8868",desc:"Key:\u5B57\u6BB5\u540D,Value:\u8F6C\u6362\u8868\u8FBE\u5F0F\u3002\u5982\u679C\u4E0D\u662F\u8868\u8FBE\u5F0F\uFF0C\u4F7F\u7528\u5355\u5F15\u53F7\uFF0C\u5982\uFF1A'xx'"},isNew:{label:"\u662F\u5426\u521B\u5EFA\u65B0\u7684\u5143\u6570\u636E\u5217\u8868",desc:"true:\u521B\u5EFA\u65B0\u7684\u5143\u6570\u636E\u5217\u8868,false:\u66F4\u65B0\u5BF9\u5E94\u7684\u5143\u6570\u636Ekey"}},jsTransform:{label:"js\u8F6C\u6362",desc:'<a href="https://rulego.cc/pages/794696/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',jsScript:{label:"function Transform(msg, metadata, msgType) {",desc:"}"}},net:{label:"TCP/UDP",icon:"/images/net.svg",desc:'<a href="https://rulego.cc/pages/c1af87/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',protocol:{label:"\u534F\u8BAE",desc:"tcp/udp",rules:[{required:!0,message:"\u534F\u8BAE\u662F\u5FC5\u987B\u7684"}]},server:{label:"\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u670D\u52A1\u5730\u5740\u662F\u5FC5\u987B\u7684"}]},connectTimeout:{label:"\u8FDE\u63A5\u8D85\u65F6\uFF0C\u5355\u4F4D\u79D2\uFF0C\u9ED8\u8BA460"},heartbeatInterval:{label:"\u5FC3\u8DF3\u95F4\u9694\uFF0C\u5355\u4F4D\u79D2\uFF0C\u9ED8\u8BA460"}},flow:{label:"\u5B50\u89C4\u5219\u94FE",desc:'<a href="https://rulego.cc/pages/e27cec/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',targetId:{label:"\u5B50\u89C4\u5219\u94FEID",desc:"",rules:[{required:!0,message:"\u5B50\u89C4\u5219\u94FEID\u662F\u5FC5\u987B\u7684"}]}},ref:{label:"\u8282\u70B9\u5F15\u7528",icon:"/images/ref.svg",relationTypeAllowCreate:!0,relationTypes:[{label:"\u6210\u529F",value:"Success"},{label:"\u5931\u8D25",value:"Failure"},{label:"\u771F",value:"True"},{label:"\u5047",value:"False"}],desc:'<a href="https://rulego.cc/pages/ref_node/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',targetId:{label:"\u8282\u70B9ID",desc:"\u683C\u5F0F\uFF1A[{chainId}:]{nodeId}\uFF0C\u5982\uFF1Achain01:s1\uFF0C\u5982\u679C\u662F\u5F15\u5165\u672C\u89C4\u5219\u94FE\uFF0C\u5219\u683C\u5F0F\u4E3A\uFF1A{nodeId}\uFF0C\u5982\uFF1As1",rules:[{required:!0,message:"\u8282\u70B9ID\u662F\u5FC5\u987B\u7684"}]}},groupFilter:{label:"\u8FC7\u6EE4\u5668\u7EC4",icon:"/images/groupFilter.svg",desc:'<a href="https://rulego.cc/pages/b14e3b/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',allMatches:{label:"\u662F\u5426\u9700\u8981\u5168\u5339\u914D",desc:""},nodeIds:{label:"\u7EC4\u5185\u8282\u70B9ID\uFF0C\u591A\u4E2A\u4E0E','\u9694\u5F00",desc:"",rules:[{required:!0,message:"\u7EC4\u5185\u8282\u70B9ID\u662F\u5FC5\u987B\u7684"}]},timeout:{label:"\u7EC4\u5185\u6267\u884C\u8D85\u65F6\uFF0C\u5355\u4F4D\u79D2\uFF0C\u9ED8\u8BA40",desc:"\u9ED8\u8BA40\uFF0C\u4EE3\u8868\u4E0D\u8D85\u65F6"}},groupAction:{label:"\u8282\u70B9\u7EC4",desc:'<ul><li>\u5F02\u6B65\u6267\u884C\u591A\u4E2A\u8282\u70B9\uFF0C\u628A\u6240\u6709\u8282\u70B9\u7ED3\u679C\u5408\u5E76\uFF0C\u53D1\u9001\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9</li><li>\u5982\u679C\u5339\u914D\u5230\u6307\u5B9A\u6570\u91CF\u8282\u70B9\u90FD\u662F\u6307\u5B9A\u5173\u7CFB\u7C7B\u578B\uFF0C\u5219\u628A\u6570\u636E\u5230`Success`\u94FE, \u5426\u5219\u53D1\u5230`Failure`\u94FE</li><a href="https://rulego.cc/pages/bf06e2/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',icon:"/images/groupAction.svg",matchRelationType:{label:"\u5339\u914D\u5173\u7CFB\uFF0C\u9ED8\u8BA4Success",desc:""},matchNum:{label:"\u5339\u914D\u6EE1\u8DB3\u8282\u70B9\u6570\u91CF\uFF0C\u9ED8\u8BA40",desc:"\u9ED8\u8BA40\uFF0C\u8868\u793A\u6240\u6709\u8282\u70B9\u90FD\u6EE1\u8DB3\u6307\u5B9A\u5173\u7CFB"},nodeIds:{label:"\u7EC4\u5185\u8282\u70B9ID\uFF0C\u591A\u4E2A\u4E0E','\u9694\u5F00",desc:"",rules:[{required:!0,message:"\u7EC4\u5185\u8282\u70B9ID\u662F\u5FC5\u987B\u7684"}]},timeout:{label:"\u7EC4\u5185\u6267\u884C\u8D85\u65F6\uFF0C\u5355\u4F4D\u79D2\uFF0C\u9ED8\u8BA40",desc:"\u9ED8\u8BA40\uFF0C\u4EE3\u8868\u4E0D\u8D85\u65F6"}},iterator:{label:"\u8FED\u4EE3\u5668",desc:'<ul><li>\u5F03\u7528\uFF0C\u4F7F\u7528for\u7EC4\u4EF6\u4EE3\u66FF</li><li>\u904D\u5386msg\u6216\u8005msg\u4E2D\u6307\u5B9A\u5B57\u6BB5item\u503C\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9\uFF0C\u904D\u5386\u5B57\u6BB5\u503C\u5FC5\u987B\u662F`\u6570\u7EC4`\u6216\u8005`{key:value}`\u7C7B\u578B</li><li>\u5982\u679Citem\u6EE1\u8DB3jsScript\uFF0C\u5219\u4F1A\u628Aitem\u6570\u636E\u901A\u8FC7`True`\u94FE\u53D1\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9\uFF0C\u5426\u5219\u901A\u8FC7`False`\u94FE\u53D1\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9</li><li>\u5982\u679C\u627E\u4E0D\u5230\u6307\u5B9A\u5B57\u6BB5\u3001js\u811A\u672C\u6267\u884C\u5931\u8D25\u6216\u8005\u904D\u5386\u7684\u5BF9\u8C61\u4E0D\u662F `\u6570\u7EC4`\u6216\u8005`{key:value}`\uFF0C\u5219\u4F1A\u628A\u9519\u8BEF\u4FE1\u606F\u901A\u8FC7`Failure`\u94FE\u53D1\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9</li><li>\u904D\u5386\u7ED3\u675F\u540E\uFF0C\u901A\u8FC7`Success`\u94FE\u628A\u539F\u59CBmsg\u53D1\u9001\u5230\u4E0B\u4E00\u4E2A\u8282\u70B9</li><a href="https://rulego.cc/pages/5898a0/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',icon:"/images/iterator.svg",fieldName:{label:"\u904D\u5386\u5B57\u6BB5",desc:"\u5982\u679C\u7A7A\uFF0C\u904D\u5386\u6574\u4E2Amsg\uFF0C\u652F\u6301\u5D4C\u5957\u65B9\u5F0F\u83B7\u53D6msg\u5B57\u6BB5\u503C\uFF0C\u4F8B\u5982items.value\u3001items"},jsScript:{label:"function Filter(item,index,metadata) {",desc:"} \u5339\u914Ditem\u7684js\u811A\u672C\uFF0C\u53EF\u9009\uFF0C\u5982\u679C\u7A7A\u5219\u904D\u5386\u6240\u6709item"}},join:{label:"\u5408\u5E76",desc:'<ul><li>\u5408\u5E76\u591A\u4E2A\u5F02\u6B65\u8282\u70B9\u6267\u884C\u7ED3\u679C</li><a href="https://rulego.cc/pages/join/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',icon:"/images/join.svg",timeout:{label:"\u7EC4\u5185\u6267\u884C\u8D85\u65F6\uFF0C\u5355\u4F4D\u79D2\uFF0C\u9ED8\u8BA40",desc:"\u9ED8\u8BA40\uFF0C\u4EE3\u8868\u4E0D\u8D85\u65F6"}},fork:{label:"\u5E76\u884C\u7F51\u5173",desc:'<ul><li>\u628A\u6D41\u5206\u6210\u591A\u4E2A\u5E76\u884C\u6267\u884C\u7684\u8DEF\u5F84</li><a href="https://rulego.cc/pages/fork/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',icon:"/images/fork.svg"},"text/template":{label:"\u6A21\u677F\u8F6C\u6362",icon:"/images/template.svg",desc:'<a href="https://rulego.cc/pages/3ffde3/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',template:{label:"\u6A21\u677F\u5185\u5BB9\u6216\u8005\u6587\u4EF6\u8DEF\u5F84",desc:"\u5982\u679C\u662F\u6A21\u677F\u6587\u4EF6\u8DEF\u5F84\u4F7F\u7528file:\u5F00\u5934"}},exec:{label:"\u547D\u4EE4\u884C",icon:"/images/ssh.svg",desc:'<ul><li>\u53EA\u6267\u884C\u7CFB\u7EDF\u767D\u540D\u5355\u7684\u547D\u4EE4</li><a href="https://rulego.cc/pages/413ea9/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',cmd:{label:"\u6267\u884C\u547D\u4EE4",desc:"",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u662F\u5FC5\u987B\u7684"}]},args:{label:"\u53C2\u6570",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},log:{label:"\u6253\u5370\u6807\u51C6\u8F93\u51FA",desc:""},replaceData:{label:"\u66FF\u6362Data",desc:"\u628AData\u66FF\u6362\u4E3A\u6807\u51C6\u8F93\u51FA\uFF0C\u9ED8\u8BA4\u4E3Afalse"}},"x/redisClient":{label:"Redis",icon:"/images/redis.svg",desc:'<a href="https://rulego.cc/pages/de062b/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',server:{label:"redis\u670D\u52A1\u5668\u5730\u5740",desc:"",rules:[{required:!0,message:"redis\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},password:{label:"\u5BC6\u7801",desc:""},poolSize:{label:"\u8FDE\u63A5\u6C60\u5927\u5C0F",desc:""},db:{label:"\u6570\u636E\u5E93\u7F16\u53F7",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"},{type:"integer",required:!0,message:"\u5FC5\u987B\u662F\u6574\u578B"}],desc:"\u9ED8\u8BA40"},cmd:{label:"\u6267\u884C\u547D\u4EE4\uFF0C\u4F8B\u5982SET/GET/DEL/HMSET/HMGET",desc:"\u652F\u6301${metadata.key}\u5360\u4F4D\u7B26\u8BFB\u53D6metadata\u5143\u6570\u636E\uFF0C\u652F\u6301${msg.key}\u5360\u4F4D\u7B26\u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u6307\u5B9Akey\u6570\u636E\uFF0C\u652F\u6301${data}\u83B7\u53D6\u6D88\u606F\u539F\u59CB\u8D1F\u8377",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u662F\u5FC5\u987B\u7684"}]},paramsExpr:{label:"\u547D\u4EE4\u52A8\u6001\u53C2\u6570",desc:'\u652F\u6301Expr\u8868\u8FBE\u5F0F\u3002\u5982:["myhash2", "field1", "value1"]\uFF0C\u6216\u8005\u901A\u8FC7\u53D8\u91CF\u53D6\u503C\u5982:msg\u8868\u793A\u53D6\u6D88\u606F\u8D1F\u8377\u3002\u547D\u4EE4\u52A8\u6001\u53C2\u6570\u548C\u547D\u4EE4\u9759\u6001\u53C2\u6570\uFF0C\u4F18\u5148\u53D6\u547D\u4EE4\u52A8\u6001\u53C2\u6570\u503C\u3002'},params:{label:"\u547D\u4EE4\u9759\u6001\u53C2\u6570",desc:"\u652F\u6301${metadata.key}\u5360\u4F4D\u7B26\u8BFB\u53D6metadata\u5143\u6570\u636E\uFF0C\u652F\u6301${msg.key}\u5360\u4F4D\u7B26\u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u6307\u5B9Akey\u6570\u636E\uFF0C\u652F\u6301${data}\u83B7\u53D6\u6D88\u606F\u539F\u59CB\u8D1F\u8377"}},"x/kafkaProducer":{label:"Kafka",icon:"/images/kafka.svg",desc:'<a href="https://rulego.cc/pages/fa986d/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',server:{label:"kafka\u670D\u52A1\u5668\u5730\u5740",desc:"\u591A\u4E2A\u670D\u52A1\u5668\u5730\u5740\u7528\u9017\u53F7\u9694\u5F00\uFF0C\u5982: 127.0.0.1:9092,127.0.0.2:9092",rules:[{required:!0,message:"\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}]},topic:{label:"\u53D1\u5E03\u4E3B\u9898",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362",rules:[{required:!0,message:"\u4E3B\u9898\u662F\u5FC5\u987B\u7684"}]},key:{label:"\u5206\u533A\u952E",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},partition:{label:"\u5206\u533A\u7F16\u53F7",desc:""}},"x/luaFilter":{label:"Lua\u811A\u672C\u8FC7\u6EE4",icon:"/images/lua.svg",desc:'<ul><li>\u4F7F\u7528Lua\u811A\u672C\u5BF9msg\u3001metadata\u3001msgType\u8FDB\u884C\u8FC7\u6EE4\u3002\u6839\u636E\u811A\u672C\u8FD4\u56DE\u503C\u8DEF\u7531\u5230True\u6216\u8005False\u94FE\u3002</li><li>\u4E5F\u53EF\u4EE5\u4F7F\u7528lua\u811A\u672C\uFF0C\u8FDB\u884C\u4F8B\u5982\uFF1A\u52A0\u89E3\u5BC6\u3001I/O\u3001\u7F51\u7EDC\u3001\u6587\u4EF6\u7B49\u9AD8\u7EA7\u64CD\u4F5C</li><a href="https://rulego.cc/pages/5d61cc/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',script:{label:"\u811A\u672C\u51FD\u6570\u4F53\u6216\u8005\u662F\u811A\u672C\u6587\u4EF6\u8DEF\u5F84",desc:"\u53EA\u9700\u8981\u63D0\u4F9B\u51FD\u6570\u4F53\u5185\u5BB9\uFF0C\u5982\u679C\u662F\u6587\u4EF6\u8DEF\u5F84\uFF0C\u5219\u9700\u8981\u63D0\u4F9B\u5B8C\u6574\u7684\u811A\u672C\u51FD\u6570"}},"x/luaTransform":{label:"Lua\u811A\u672C\u8F6C\u6362",icon:"/images/lua.svg",desc:'<ul><li>lua\u811A\u672C\u8F6C\u6362\u5668\u3002\u53EF\u4EE5\u4F7F\u7528Lua\u811A\u672C\u5BF9msg\u3001metadata\u3001msgType\u8FDB\u884C\u8F6C\u6362\u6216\u589E\u5F3A\u3002</li><li>\u4E5F\u53EF\u4EE5\u4F7F\u7528lua\u811A\u672C\uFF0C\u8FDB\u884C\u4F8B\u5982\uFF1A\u52A0\u89E3\u5BC6\u3001I/O\u3001\u7F51\u7EDC\u3001\u6587\u4EF6\u7B49\u9AD8\u7EA7\u64CD\u4F5C</li><a href="https://rulego.cc/pages/bf0eaf/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',script:{label:"\u811A\u672C\u51FD\u6570\u4F53\u6216\u8005\u662F\u811A\u672C\u6587\u4EF6\u8DEF\u5F84",desc:"\u53EA\u9700\u8981\u63D0\u4F9B\u51FD\u6570\u4F53\u5185\u5BB9\uFF0C\u5982\u679C\u662F\u6587\u4EF6\u8DEF\u5F84\uFF0C\u5219\u9700\u8981\u63D0\u4F9B\u5B8C\u6574\u7684\u811A\u672C\u51FD\u6570"}},"x/natsClient":{label:"NATS",icon:"/images/nats.svg",desc:'<a href="https://rulego.cc/pages/9e177d/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',topic:{label:"\u53D1\u5E03\u4E3B\u9898",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},server:{label:"NATS\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:""},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""}},"x/rabbitmqClient":{label:"RabbitMQ",icon:"/images/rabbitmq.svg",desc:'<ul><li>\u53D1\u6D88\u606F\u8D1F\u8377\u53D1\u9001\u5230rabbitmq\u961F\u5217</li><li>\u652F\u6301AMQP\u534F\u8BAE</li><li><a href="https://rulego.cc/pages/rabbitmq-client/" target="_blank">\u5E2E\u52A9\u6587\u6863</li></ul></a>',server:{label:"\u670D\u52A1\u5730\u5740",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u683C\u5F0F:[amqp[s]://][\u7528\u6237\u540D:\u5BC6\u7801@]\u4E3B\u673A\u540D[\u865A\u62DF\u4E3B\u673A]/\u961F\u5217\u540D\u79F0",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},key:{label:"\u8DEF\u7531\u952E",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},exchange:{label:"\u4EA4\u6362\u673A\u540D\u79F0",desc:""},exchangeType:{label:"\u4EA4\u6362\u673A\u7C7B\u578B",desc:"\u53EF\u9009\u7C7B\u578B\uFF1Adirect/fanout/headers/topic"},durable:{label:"\u662F\u5426\u6301\u4E45\u5316",desc:""},autoDelete:{label:"\u662F\u5426\u81EA\u52A8\u5220\u9664",desc:""}},"x/opengeminiWrite":{label:"opengemini\u5199",icon:"/images/opengemini-write.svg",desc:'<a href="https://rulego.cc/pages/opengemini-write/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',server:{label:"opengemini\u670D\u52A1\u5730\u5740",desc:"\u683C\u5F0F: \u4E3B\u673A\u540D:\u7AEF\u53E3\uFF0C\u591A\u4E2A\u670D\u52A1\u5730\u5740\u7528\u9017\u53F7\u9694\u5F00",rules:[{required:!0,message:"\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},database:{label:"\u6570\u636E\u5E93",desc:"\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF\uFF0C\u4F8B\u5982\uFF1A${metadata.key}\u3001${msg.key}",rules:[{required:!0,message:"\u6570\u636E\u5E93\u662F\u5FC5\u987B\u7684"}]},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""},token:{label:"Token",desc:"\u5982\u679CToken\u4E0D\u4E3A\u7A7A\uFF0C\u4F7F\u7528Token\u8BA4\u8BC1"}},"x/opengeminiQuery":{label:"opengemini\u8BFB",icon:"/images/opengemini.svg",desc:'<a href="https://rulego.cc/pages/opengemini-query/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',server:{label:"opengemini\u670D\u52A1\u5730\u5740",desc:"\u683C\u5F0F: \u4E3B\u673A\u540D:\u7AEF\u53E3\uFF0C\u591A\u4E2A\u670D\u52A1\u5730\u5740\u7528\u9017\u53F7\u9694\u5F00",rules:[{required:!0,message:"\u670D\u52A1\u5730\u5740\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},database:{label:"\u6570\u636E\u5E93",desc:"\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF\uFF0C\u4F8B\u5982\uFF1A${metadata.key}\u3001${msg.key}",rules:[{required:!0,message:"\u6570\u636E\u5E93\u662F\u5FC5\u987B\u7684"}]},username:{label:"\u7528\u6237\u540D",desc:""},password:{label:"\u5BC6\u7801",desc:""},token:{label:"Token",desc:"\u5982\u679CToken\u4E0D\u4E3A\u7A7A\uFF0C\u4F7F\u7528Token\u8BA4\u8BC1"},command:{label:"\u67E5\u8BE2\u8BED\u53E5",desc:"\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF\uFF0C\u4F8B\u5982\uFF1A${metadata.key}\u3001${msg.key}",rules:[{required:!0,message:"\u670D\u52A1\u5668\u5730\u5740\u662F\u5FC5\u987B\u7684"}]}},"x/grpcClient":{label:"gRPC \u5BA2\u6237\u7AEF",icon:"/images/grpc.svg",desc:'<ul><li>\u52A8\u6001\u8C03\u7528gRPC\u670D\u52A1</li></li></ul><a href="https://rulego.cc/pages/grpc-client/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',server:{label:"gRPC\u670D\u52A1\u5730\u5740",desc:"\u683C\u5F0F: \u4E3B\u673A\u540D:\u7AEF\u53E3",rules:[{required:!0,message:"\u670D\u52A1\u5730\u5740\u662F\u5FC5\u987B\u7684"}],component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1}},service:{label:"\u670D\u52A1\u540D\u79F0",desc:"\u793A\u4F8B\uFF1Ahelloworld.Greeter\u3002\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF",rules:[{required:!0,message:"\u670D\u52A1\u540D\u79F0\u662F\u5FC5\u987B\u7684"}]},method:{label:"\u65B9\u6CD5\u540D\u79F0",desc:"\u793A\u4F8B\uFF1ASayHello\u3002\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF",rules:[{required:!0,message:"\u65B9\u6CD5\u540D\u79F0\u662F\u5FC5\u987B\u7684"}]},request:{label:"\u8BF7\u6C42\u53C2\u6570\u5185\u5BB9",desc:'\u793A\u4F8B\uFF1A{"name":"lala"}\u3002\u5982\u679C\u7A7A\uFF0C\u5219\u4F7F\u7528\u5F53\u524D\u6D88\u606F\u8D1F\u8377\u3002\u53C2\u6570\u4F7F\u7528JSON\u7F16\u7801\uFF0C\u5FC5\u987B\u548Cservice/method\u8981\u6C42\u4E00\u81F4\u3002\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF'},headers:{label:"\u8BF7\u6C42\u5934",desc:"\u5141\u8BB8\u4F7F\u7528 ${} \u5360\u4F4D\u7B26\u53D8\u91CF"}},"ai/generate-image":{label:"AI\u56FE\u50CF\u751F\u6210",icon:"/images/generate-image.svg",desc:'<ul><li>\u901A\u8FC7\u63D0\u793A\u8BCD\u751F\u6210\u56FE\u7247</li><a href="https://rulego.cc/pages/b0e537/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',url:{label:"API\u5730\u5740",desc:""},key:{label:"\u6388\u6743\u79D8\u94A5",desc:""},model:{label:"\u6A21\u578B",desc:""}},"ai/generate-text":{label:"AI\u6587\u672C\u751F\u6210",icon:"/images/generate-text.svg",desc:'<ul><li>\u901A\u8FC7\u63D0\u793A\u8BCD\u751F\u6210\u6587\u672C</li><a href="https://rulego.cc/pages/a43229/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',url:{label:"API\u5730\u5740",desc:""},key:{label:"\u6388\u6743\u79D8\u94A5",desc:""},model:{label:"\u6A21\u578B",desc:""}},"ci/exec":{label:"\u547D\u4EE4\u884C",icon:"/images/ssh.svg",desc:"<ul><li>\u53EA\u6267\u884C\u7CFB\u7EDF\u767D\u540D\u5355\u7684\u547D\u4EE4</li></ul>",command:{label:"\u6267\u884C\u547D\u4EE4",desc:""},args:{label:"\u53C2\u6570",desc:"\u53EF\u4EE5\u4F7F\u7528 ${metadata.key} \u8BFB\u53D6\u5143\u6570\u636E\u4E2D\u7684\u53D8\u91CF\u6216\u8005\u4F7F\u7528 ${msg.key} \u8BFB\u53D6\u6D88\u606F\u8D1F\u8377\u4E2D\u7684\u53D8\u91CF\u8FDB\u884C\u66FF\u6362"},log:{label:"\u6253\u5370\u6807\u51C6\u8F93\u51FA",desc:""},replaceData:{label:"\u66FF\u6362Data",desc:"\u628AData\u66FF\u6362\u4E3A\u6807\u51C6\u8F93\u51FA\uFF0C\u9ED8\u8BA4\u4E3Afalse"}},"ci/gitClone":{label:"Git\u62C9\u53D6",icon:"/images/git.svg",desc:'<ul><li>git\u514B\u9686\u6216\u8005\u62C9\u53D6\u4ED3\u5E93\u4EE3\u7801</li><a href="https://rulego.cc/pages/ci-git-clone/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',repository:{label:"\u4ED3\u5E93\u5730\u5740",desc:"\u793A\u4F8B:https://github.com/rulego/rulego.git"},directory:{label:"\u514B\u9686\u5230\u672C\u5730\u76EE\u5F55",desc:"\u9ED8\u8BA4\u53D6\u5143\u6570\u636E\u4E2DworkDir\u503C"},reference:{label:"\u5F15\u7528\u540D\u79F0",desc:"\u53EF\u4EE5\u662F\u5206\u652F\u540D\u3001\u6807\u7B7E\u540D\u5B8C\u6574\u5F15\u7528\u540D\u3002\u4F8B\u5982\uFF1Arefs/heads/main\u3002\u9ED8\u8BA4\u53D6\u5143\u6570\u636E\u4E2Dref\u503C"},authType:{label:"\u8BA4\u8BC1\u7C7B\u578B",desc:"\u53EF\u4EE5\u662F:ssh/password/token"},authUser:{label:"\u7528\u6237\u540D",desc:""},authPassword:{label:"\u5BC6\u7801\u6216 token",desc:"\u5BC6\u7801\u6216 token"},authPemFile:{label:"\u79D8\u94A5\u6587\u4EF6\u8DEF\u5F84",desc:""},proxyUrl:{label:"\u4EE3\u7406URL",desc:""},proxyUsername:{label:"\u4EE3\u7406\u7528\u6237\u540D",desc:""},proxyPassword:{label:"\u4EE3\u7406\u5BC6\u7801",desc:""}},"ci/gitPush":{label:"Git\u63A8\u9001",icon:"/images/git-push.svg",desc:'<ul><li>git\u63A8\u9001</li><a href="https://rulego.cc/pages/ci-git-push/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',repository:{label:"\u4ED3\u5E93\u5730\u5740",desc:"\u793A\u4F8B:https://github.com/rulego/rulego.git"},directory:{label:"\u672C\u5730\u76EE\u5F55",desc:"\u9ED8\u8BA4\u53D6\u5143\u6570\u636E\u4E2DworkDir\u503C"},refSpecs:{label:"\u672C\u5730\u5206\u652F\u4E0E\u8FDC\u7A0B\u5206\u652F\u6620\u5C04\u5173\u7CFB",desc:"\u4F8B\u5982\uFF1Arefs/heads/your-branch:refs/heads/your-branch\uFF0C\u591A\u4E2A\u6620\u5C04\u5173\u7CFB\u4E0E\u9017\u53F7\u9694\u5F00"},authType:{label:"\u8BA4\u8BC1\u7C7B\u578B",desc:"\u53EF\u4EE5\u662F:ssh/password/token"},authUser:{label:"\u7528\u6237\u540D",desc:""},authPassword:{label:"\u5BC6\u7801\u6216 token",desc:"\u5BC6\u7801\u6216 token"},authPemFile:{label:"\u79D8\u94A5\u6587\u4EF6\u8DEF\u5F84",desc:""},proxyUrl:{label:"\u4EE3\u7406\u5730\u5740",desc:""},proxyUsername:{label:"\u4EE3\u7406\u7528\u6237\u540D",desc:""},proxyPassword:{label:"\u4EE3\u7406\u5BC6\u7801",desc:""}},"ci/gitCommit":{label:"Git\u63D0\u4EA4",icon:"/images/git-commit.svg",desc:'<ul><li>git\u63D0\u4EA4\uFF0C\u5982\u679C\u6587\u4EF6\u6CA1\u53D8\u66F4\u5219\u8F6C\u53D1\u5230\u5931\u8D25\u94FE</li><a href="https://rulego.cc/pages/ci-git-commit/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',directory:{label:"\u672C\u5730\u76EE\u5F55",desc:"\u9ED8\u8BA4\u53D6\u5143\u6570\u636E\u4E2DworkDir\u503C"},pattern:{label:"\u6DFB\u52A0\u7684\u6587\u4EF6\u5339\u914D\u6A21\u5F0F",desc:"\u5FC5\u987B\u5F53\u524D\u5DE5\u4F5C\u533A\u76F8\u5BF9\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/example/*.go",rules:[{required:!0,message:"\u6DFB\u52A0\u7684\u6587\u4EF6\u5339\u914D\u6A21\u5F0F\u662F\u5FC5\u987B\u7684"}]},message:{label:"Git\u63D0\u4EA4",desc:"",rules:[{required:!0,message:"\u63D0\u4EA4\u6D88\u606F\u662F\u5FC5\u987B\u7684"}]},signature:{label:"\u4F5C\u8005\u4FE1\u606F",desc:"",authorName:{label:"\u4F5C\u8005\u540D\u79F0",desc:""},authorEmail:{label:"\u4F5C\u8005\u90AE\u7BB1",desc:""}}},"ci/gitCreateTag":{label:"Git\u521B\u5EFA\u6807\u7B7E",icon:"/images/git-tag.svg",desc:'<ul><li>git\u63D0\u4EA4\uFF0C\u5982\u679C\u6587\u4EF6\u6CA1\u53D8\u66F4\u5219\u8F6C\u53D1\u5230\u5931\u8D25\u94FE</li><a href="https://rulego.cc/pages/ci-git-create-tag/" target="_blank">\u5E2E\u52A9\u6587\u6863</a></ul>',directory:{label:"\u672C\u5730\u76EE\u5F55",desc:"\u9ED8\u8BA4\u53D6\u5143\u6570\u636E\u4E2DworkDir\u503C"},tag:{label:"\u6807\u7B7E\u540D\u79F0",desc:"",rules:[{required:!0,message:"\u6807\u7B7E\u540D\u79F0\u662F\u5FC5\u987B\u7684"}]},message:{label:"\u6807\u7B7E\u6D88\u606F",desc:"",rules:[{required:!0,message:"\u6807\u7B7E\u6D88\u606F\u662F\u5FC5\u987B\u7684"}]},signature:{label:"\u4F5C\u8005\u4FE1\u606F",desc:"",authorName:{label:"\u4F5C\u8005\u540D\u79F0",desc:""},authorEmail:{label:"\u4F5C\u8005\u90AE\u7BB1",desc:""}}},"ci/ps":{label:"\u670D\u52A1\u5668\u6307\u6807",icon:"/images/ps.svg",desc:'\u7528\u4E8E\u76D1\u63A7\u670D\u52A1\u5668CPU\u3001\u5185\u5B58\u3001\u78C1\u76D8\u7B49\u6307\u6807\u3002<a href="https://rulego.cc/pages/ci-ps/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',options:{label:"\u6307\u6807\u5217\u8868",desc:"\u5982\u679C\u4E3A\u7A7A\uFF0C\u5219\u67E5\u8BE2\u6240\u6709\u6307\u6807",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!0,options:[{label:"\u4E3B\u673A\u4FE1\u606F",value:"host/info"},{label:"CPU\u4FE1\u606F",value:"cpu/info"},{label:"\u865A\u62DF\u5185\u5B58\u4FE1\u606F",value:"mem/virtualMemory"},{label:"\u4EA4\u6362\u5185\u5B58\u4FE1\u606F",value:"mem/swapMemory"},{label:"\u78C1\u76D8\u4F7F\u7528\u60C5\u51B5",value:"disk/usage"},{label:"\u78C1\u76D8IO\u8BA1\u6570\u5668\u4FE1\u606F",value:"disk/ioCounters"},{label:"\u7F51\u7EDCIO\u8BA1\u6570\u5668\u4FE1\u606F",value:"net/ioCounters"},{label:"\u7F51\u7EDC\u63A5\u53E3\u4FE1\u606F",value:"net/interfaces"}],placeholder:"\u8BF7\u9009\u62E9\u67E5\u8BE2\u6307\u6807"}}}}},gBe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let CV=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+=gBe[n[e]&63];return t};const wy=(e,t)=>{if(e&&t){let n=xV[t];if(n)return n[e]||e}else if(e)return xV[e]||e;return e},vBe=e=>{if(!e)return 0;let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);e.match(/[A-Z]/)?t+=1.5:r>=1&&r<=126||r>=65376&&r<=65439?t+=1:t+=1.8}return t},mBe=e=>{let t=JSON.parse(JSON.stringify(pBe));e.endpoints&&e.endpoints.forEach(n=>{EV(e.builtins,t,n,!0)}),e.nodes||(e.nodes=e),e.nodes.forEach(n=>{EV(e.builtins,t,n,!1)});for(let n in t){let r=t[n];(!r.components||Array.isArray(r.components)&&r.components.length===0)&&delete t[n]}return t},EV=(e,t,n,r)=>{let o="";if(r)o="endpoints";else{o=n.category.split("/")[0];let a=n.type.split("/")[0];t[a]&&(o=a)}let i=t[o];i?(n.background=n.background||i.background,i.components?i.components.push(n):i.components=[n]):t[o]={label:o,background:"#86B4E5FF",components:[n]},n.category=o,yBe(n,r),TBe(e,n,o),bBe(n),n.nodeType=n.nodeType||i&&i.nodeType||"simple-node"},yBe=(e,t)=>{let n={};t?n=kV.endpoints[e.type]:n=kV.nodes[e.type],n?(e.notInput=n.notInput||e.notInput,e.notOutput=n.notOutput||e.notOutput,e.label=n.label||e.label,e.desc=n.desc||e.desc,e.rules=n.rules||e.rules,e.icon=n.icon||e.icon,e.relationTypes=n.relationTypes||TV(e.relationTypes),e.relationTypeAllowCreate=n.relationTypeAllowCreate||e.relationTypeAllowCreate,tX(e,n),t&&(e.router=n.router||e.router)):e.relationTypes=TV(e.relationTypes),t&&(e.router=e.router||{})},TV=e=>{if(e){let t=[];return e.forEach(n=>{let r=n.value!==void 0&&n.value!==null?n.value:n,o=n.label!==void 0&&n.label!==null?n.label:n;t.push({value:r,label:wy(o,"relationTypes")})}),t}return e},tX=(e,t)=>{e.fields&&e.fields.forEach(n=>{let r=t[n.name];r&&nX(n,r),n.fields&&r&&tX(n,r)})},bBe=e=>{e.fields&&e.fields.forEach(t=>{t.type.indexOf("int")>-1&&!t.rules?t.rules=[{type:"number",message:"\u5FC5\u987B\u662F\u6570\u503C\u7C7B\u578B"}]:t.type.indexOf("float")>-1&&!t.rules&&(t.rules=[{pattern:/^-?\d+(\.\d+)?$/,message:"\u5FC5\u987B\u662F\u6D6E\u70B9\u7C7B\u578B"}])})},uR=(e,t)=>{let n={};return e&&e.forEach(r=>{r.id===t&&(n=r)}),n},_Be=(e,t,n)=>{let r=null;return e&&e.forEach(o=>{o.sourceNodeId===t&&o.targetNodeId===n&&(r=o)}),r},OBe=(e,t,n)=>{let r={id:"edge_"+e.edgeCount,type:"flow-link",sourceNodeId:n.fromId,targetNodeId:n.toId,startPoint:{},endPoint:{},text:wy(n.type,"relationTypes")||"",properties:{model:{...n}}},o=uR(t,r.sourceNodeId),i=uR(t,r.targetNodeId);return o&&(r.startPoint.x=o.x+e.nodeWidth/2,r.startPoint.y=o.y),i&&(r.endPoint.x=i.x-e.nodeWidth/2-10,r.endPoint.y=i.y),r},wBe=e=>{let t=e.split("_");if(t.length>0){let n=parseInt(t[t.length-1]);return isNaN(n)?0:n}},SBe=(e,t,n)=>{let r={};e.forEach(i=>{let a=i.properties.model||{};a.routerId&&(r[a.routerId]=i.id)});let o=[];return t.routers&&t.routers.forEach(i=>{if(!r[i.id]||r[i.id]===n){let a=R1(i);o.push({label:a,value:i.id||a})}}),o},xBe=(e,t)=>{let n=[];return e.routers&&e.routers.forEach(r=>{if(r.id===t){let o=R1(r);n.push({label:o,value:t})}}),n},kBe=(e,t,n)=>{let r=[];return n?(t.routers&&t.routers.length>0&&t.routers.forEach(o=>{if(o.to&&o.to.path){let i=o.to.path.split(":"),a=R1(o);if(i.length<=1)r.push({fromId:e,toId:n.id,routerId:o.id,nodeType:"endpoint-node",type:a});else for(let s=1;s<i.length;s++)r.push({fromId:e,toId:i[s],nodeType:"endpoint-node",routerId:o.id,type:a})}}),r):[]},CBe=(e,t,n)=>{e.routers=e.routers||[],e.routers.forEach(r=>{r.to||(r.to={}),r.to.path=t}),n.forEach(r=>{r.fromId===e.id&&e.routers&&e.routers.forEach(o=>{let i=R1(o);(o.id===r.type||i===r.type)&&(o.to.path=o.to.path+":"+r.toId)})})},R1=e=>e.from?(e.params?e.params.join(" "):"")+" "+(e.from&&e.from.path):"",EBe=e=>CV(e||12),TBe=(e,t,n)=>{if(n==="endpoints"){let o=e.endpoints;o&&t.router&&(t.router.options={},Object.keys(o).forEach(i=>{t.router.options[i]=o[i]}))}let r=e.nodePool&&e.nodePool[t.type];if(r&&t.fields){let o=PBe(r);t.fields.forEach(i=>{i.component&&(i.component.options=o)})}Object.keys(e).forEach(o=>{t.type===o&&t.fields&&t.fields.forEach(i=>{e[o][i.name]&&(i.component=i.component||{},i.component.options=e[o][i.name])})})};function PBe(e){let t=[];return e&&e.forEach(n=>{t.push({label:n.name,value:`ref://${n.id}`})}),t}function nX(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n=r=>r&&typeof r=="object"&&!Array.isArray(r);for(const r of t)if(n(r))for(const o in r)n(r[o])&&n(e[o])?nX(e[o],r[o]):e[o]=r[o];return e}const $Be=(e,t,n)=>t.map(r=>{const o=e.find(i=>i.value!==void 0&&i.value!==null?i.value===r:i===r);return o&&o.label?o.label:wy(r,n)}).filter(r=>r!==void 0),ABe=e=>new Promise((t,n)=>{if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(e).then(()=>t(!0)).catch(r=>n(r));else{const r=document.createElement("textarea");r.value=e,document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy")?t(!0):n("execCommand copy failed")}catch(o){n(o)}finally{document.body.removeChild(r)}}}),MBe=()=>new Promise((e,t)=>{navigator.clipboard&&window.isSecureContext?navigator.clipboard.readText().then(n=>e(n)).catch(n=>{PV().then(e,t)}):PV().then(e,t)});function PV(){return new Promise((e,t)=>{let n="";const r=document.createElement("textarea");r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("paste")?(n=r.value,e(n)):t("execCommand paste failed")}catch(o){t(o)}finally{document.body.removeChild(r)}})}const Pr={};Pr.getNodeSeq=wBe;Pr.adapterComponents=mBe;Pr.getNodeByID=uR;Pr.getEdgeBySourceNodeIdAndTargetNodeId=_Be;Pr.createEdge=OBe;Pr.getRelationTypeOptionsFromRouters=SBe;Pr.getEndpointConnections=kBe;Pr.updateEndpointRouterToPath=CBe;Pr.toFromPath=R1;Pr.getRouterRelationTypeLabel=xBe;Pr.genId=EBe;Pr.getSelectedLabels=$Be;Pr.copyToClipboard=ABe;Pr.readFromClipboard=MBe;class RBe extends qt.exports.RectNodeModel{initNodeData(t){super.initNodeData(t),this.width=120,this.height=30,this.radius=5,this.text.x=this.x+10,this.iconPosition="",this.defaultFill="#a6bbcf";const n={message:"\u53EA\u5141\u8BB8\u4ECE\u53F3\u8FB9\u7684\u951A\u70B9\u8FDE\u51FA",validate:(a,s,l,u)=>{let d=a.graphModel.getNodeEdges(a.id);return d&&d.length>0&&d.filter(v=>v.sourceNode.id===a.id&&v.targetNode.id===s.id).length>0?!1:l.type==="right"}},r={message:"Input\u8282\u70B9\u53EA\u80FD\u5141\u8BB8\u5F15\u51FA\u4E00\u6761\u8FB9",validate:(a,s,l,u)=>{let d=a.graphModel.getNodeEdges(a.id);return!(d&&d.length>1&&a.type==="start-node"||s.type==="start-node"||s.type==="endpoint-node")}},o={message:"\u76F8\u540C\u7684\u8F93\u5165\u548C\u8F93\u51FA\u8282\u70B9\uFF0C\u53EA\u80FD\u5141\u8BB8\u521B\u5EFA\u4E00\u6761\u8FB9",validate:(a,s,l,u)=>{let d=a.graphModel.getNodeEdges(a.id);return!(d&&d.length>0&&d.filter(v=>v.sourceNode.id==a.id&&v.targetNode.id==s.id).length>0)}};this.sourceRules.push(n),this.sourceRules.push(r),this.sourceRules.push(o);const i={message:"\u53EA\u5141\u8BB8\u4ECE\u5DE6\u8FB9\u951A\u70B9\u8FDE\u5165",validate:(a,s,l,u)=>u.type==="left"};this.targetRules.push(i)}getData(){const t=super.getData();return t.properties.ui="node-red",t}setAttributes(){if(this.text.value){let t=30+vBe(this.text.value)*9;t=Math.ceil(t/20)*20;let n=Math.ceil((t-this.width)/20);if(n>0){let r=this.text.value.length-n;r>0&&(this.text.value=this.text.value.substring(0,r)+"...")}}}updateText(t){super.updateText(t),this.setAttributes()}getNodeStyle(){const t=super.getNodeStyle(),n=this.properties.view||{};return this.isSelected?(t.strokeWidth=Number(n.borderWidth)||2,t.stroke=n.borderColor||"#ff7f0e"):(t.strokeWidth=Number(n.borderWidth)||1,t.stroke=n.borderColor||"#999"),t.fill=n.background||this.defaultFill||"rgb(230, 224, 248)",this.icon=n.icon||"/images/"+n.category+".svg"||"images/fetch.svg",t}getDefaultAnchor(){const{x:t,y:n,id:r,width:o,height:i}=this;return[{x:t+o/2,y:n,id:`${r}_right`,type:"right"},{x:t-o/2,y:n,id:`${r}_left`,type:"left"}]}getOutlineStyle(){const t=super.getOutlineStyle();return t.stroke="transparent",t.hover.stroke="transparent",t}}class NBe extends qt.exports.RectNode{getAnchorShape(t){const{x:n,y:r,type:o}=t;return qt.exports.h("rect",{x:n-5,y:r-5,width:10,height:10,className:"custom-anchor"})}getIcon(){return null}getShape(){const{text:t,x:n,y:r,width:o,height:i,radius:a}=this.props.model,s=this.props.model.getNodeStyle();return qt.exports.h("g",{className:"lf-red-node"},[qt.exports.h("rect",{...s,x:n-o/2,y:r-i/2,width:o,height:i,rx:a,ry:a}),qt.exports.h("g",{style:"pointer-events: none;",transform:`translate(${n}, ${r})`},[qt.exports.h("rect",{x:-o/2,y:-i/2,width:30,height:30,fill:"#000",fillOpacity:.05,stroke:"none"}),this.getIcon(),qt.exports.h("path",{d:`M ${30-o/2} ${1-i/2} l 0 28`,stroke:"#000",strokeOpacity:.1,strokeWidth:1})])])}}var Sp={type:"red-node",model:RBe,view:NBe};class IBe extends Sp.view{getIcon(){const{width:t,height:n,icon:r}=this.props.model;let o=r||"/images/start.svg";return qt.exports.h("image",{width:30,height:30,x:-t/2,y:-n/2,href:o})}}class DBe extends Sp.model{getDefaultAnchor(){const{x:t,y:n,id:r,width:o}=this;return[{x:t+o/2,y:n,id:`${r}_right`,type:"right"}]}initNodeData(t){super.initNodeData(t)}}var jBe={type:"endpoint-node",model:DBe,view:IBe};class LBe extends Sp.view{getIcon(){const{width:t,height:n,icon:r}=this.props.model;let o=r||"/images/fetch.svg";return qt.exports.h("image",{width:30,height:30,x:-t/2,y:-n/2,href:o})}}class BBe extends Sp.model{initNodeData(t){super.initNodeData(t)}}var VBe={type:"simple-node",model:BBe,view:LBe};class FBe extends Sp.view{getIcon(){const{model:t,graphModel:n}=this.props,{width:r,height:o,icon:i}=t;let a=i||"/images/fetch.svg";return qt.exports.h("image",{width:30,height:30,x:-r/2,y:-o/2,href:a})}}class zBe extends Sp.model{getDefaultAnchor(){const{x:t,y:n,id:r,width:o}=this;return[{x:t-o/2,y:n,id:`${r}_left`,type:"left"}]}initNodeData(t){super.initNodeData(t)}}var QBe={type:"chain-node",model:zBe,view:FBe};class WBe extends Sp.view{getIcon(){const{model:t,graphModel:n}=this.props,{width:r,height:o}=t;return qt.exports.h("image",{width:30,height:30,x:-r/2,y:-o/2,className:"node-red-start",href:"/images/start.svg",onClick:()=>{n.eventCenter.emit("node-red:start")}})}}class YBe extends Sp.model{getDefaultAnchor(){const{x:t,y:n,id:r,width:o}=this;return[{x:t+o/2,y:n,id:`${r}_right`,type:"right"}]}initNodeData(t){super.initNodeData(t),this.defaultFill="rgb(166, 187, 207)"}}var ZBe={type:"start-node",model:YBe,view:WBe};class UBe extends qt.exports.BezierEdgeModel{getEdgeStyle(){const t=super.getEdgeStyle();return t.strokeWidth=this.isHovered?4:3,t.stroke=this.isSelected||this.isHovered?"#ff7f0e":"#999",t}getTextStyle(){const t=super.getTextStyle();t.color="#003a79",t.textWidth=200,t.overflowMode="autoWrap",t.fontSize=16;let n="0px,0px";return this.text.value&&(t.textWidth=Math.ceil(this.text.value.length/2)*t.fontSize+t.fontSize/4+30,t.textWidth>200&&(t.textWidth=200)),t.background={wrapPadding:n,fill:"#FFF",strokeWidth:2,stroke:"#003a79",x:0,y:0,rx:10,ry:10},t}setAttributes(t){super.setAttributes(t),this.offset=20}}class HBe extends qt.exports.BezierEdge{}var XBe={type:"flow-link",view:HBe,model:UBe},w0=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const GBe={class:"demo-collapse"},qBe={class:"classify-title"},KBe=["onMousedown"],JBe={class:"red-ui-palette-label"},eVe={class:"red-ui-palette-icon-container"},tVe={key:0,class:"red-ui-palette-port red-ui-palette-port-input"},nVe={key:1,class:"red-ui-palette-port red-ui-palette-port-output"},rVe=Se({__name:"Sidebar",props:{lf:{type:kH,required:!0}},setup(e){const t=e,n=ee(""),r=ee(["endpoints","action","filter","transform","external","flow","ai","ci","iot"]),o=u=>{const{lf:d}=t;d.dnd.startDrag({type:u.nodeType,text:u.label||u.type,properties:{model:{type:u.type,debugMode:!1},view:u}})},i=ee(null),a=ee(null),{lf:s}=t;s.on("rulego-editor:componentOk",u=>{a.value=u,i.value=u}),vn(()=>{const{lf:u}=t;u.graphModel.eventCenter.emit("rulego-editor:sidebarOk")});const l=()=>{let u=n.value.toLowerCase(),d={};if(u=="")d=a.value;else for(let p in a.value)d[p]||(d[p]=[]),d[p]=JSON.parse(JSON.stringify(a.value[p])),d[p].components&&(d[p].components=d[p].components.filter(v=>v.label.toLowerCase().indexOf(u)>-1||v.type.toLowerCase().indexOf(u)>-1));i.value=d};return(u,d)=>{const p=ei,v=il,y=ol,w=Fi,b=O3,k=_3,C=_c;return Z(),ce("div",GBe,[re(p,{modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=T=>n.value=T),"prefix-icon":m(SW),onInput:l,placeholder:"\u641C\u7D22\u7EC4\u4EF6"},null,8,["modelValue","prefix-icon"]),re(C,{height:"calc(100vh - 82px)"},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(i.value,(T,$,P)=>(Z(),Fe(k,{modelValue:r.value,"onUpdate:modelValue":d[1]||(d[1]=A=>r.value=A)},{default:ue(()=>[re(b,{name:$},{title:ue(()=>[re(y,null,{default:ue(()=>[re(v,{span:3},{default:ue(()=>[ve("span",{class:"red-ui-palette-icon",style:Vt({backgroundImage:`url(${"/images/"+$+"-dark.svg"})`})},null,4)]),_:2},1024),re(v,{span:18,offset:2},{default:ue(()=>[ve("span",qBe,ut(T.label),1)]),_:2},1024)]),_:2},1024)]),default:ue(()=>[(Z(!0),ce(Pt,null,_n(T.components,(A,R)=>(Z(),ce("div",{class:"red-ui-palette-node ui-draggable ui-draggable-handle",onMousedown:B=>o(A),key:R,style:Vt({backgroundColor:A.background||"#a6bbcf"})},[re(w,{class:"box-item",effect:"light","show-after":1e3,content:A.desc,placement:"right-start","raw-content":""},{default:ue(()=>[ve("div",JBe,ut(A.label||A.type),1)]),_:2},1032,["content"]),ve("div",eVe,[A.icon?(Z(),ce("div",{key:0,class:"red-ui-palette-icon",style:Vt({backgroundImage:`url(${A.icon})`})},null,4)):(Z(),ce("div",{key:1,class:"red-ui-palette-icon",style:Vt({backgroundImage:`url(${"/images/"+$+".svg"})`})},null,4))]),A.notInput?je("",!0):(Z(),ce("div",tVe)),A.notOutput?je("",!0):(Z(),ce("div",nVe))],44,KBe))),128))]),_:2},1032,["name"])]),_:2},1032,["modelValue"]))),256))]),_:1})])}}});var oVe=w0(rVe,[["__scopeId","data-v-12de397d"]]);let $V=!1;class rX{constructor({lf:t}){t.register(ZBe),t.register(jBe),t.register(VBe),t.register(QBe),t.register(XBe),t.setDefaultEdgeType("flow-link")}render(t,n){if($V){this.app=tC(oVe,{lf:t});const r=document.createElement("div");r.className="node-red-palette",document.body.appendChild(r),this.app.mount(r)}$V=!0}getNodeList(){let t={};for(let n in this.nodeGroups)this.nodeGroups[n].components.forEach(r=>{t[r.type]=r});return t}}h$(rX,"pluginName","NodeRedExtension");var iVe="/plugin/rule/assets/logo.c4629d28.png",oX={exports:{}};(function(e,t){(function(n,r){r()})(Ys,function(){function n(u,d){return typeof d=="undefined"?d={autoBom:!1}:typeof d!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),d={autoBom:!d}),d.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function r(u,d,p){var v=new XMLHttpRequest;v.open("GET",u),v.responseType="blob",v.onload=function(){l(v.response,d,p)},v.onerror=function(){console.error("could not download file")},v.send()}function o(u){var d=new XMLHttpRequest;d.open("HEAD",u,!1);try{d.send()}catch{}return 200<=d.status&&299>=d.status}function i(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var d=document.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(d)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ys=="object"&&Ys.global===Ys?Ys:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(u,d,p){var v=a.URL||a.webkitURL,y=document.createElement("a");d=d||u.name||"download",y.download=d,y.rel="noopener",typeof u=="string"?(y.href=u,y.origin===location.origin?i(y):o(y.href)?r(u,d,p):i(y,y.target="_blank")):(y.href=v.createObjectURL(u),setTimeout(function(){v.revokeObjectURL(y.href)},4e4),setTimeout(function(){i(y)},0))}:"msSaveOrOpenBlob"in navigator?function(u,d,p){if(d=d||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,p),d);else if(o(u))r(u,d,p);else{var v=document.createElement("a");v.href=u,v.target="_blank",setTimeout(function(){i(v)})}}:function(u,d,p,v){if(v=v||open("","_blank"),v&&(v.document.title=v.document.body.innerText="downloading..."),typeof u=="string")return r(u,d,p);var y=u.type==="application/octet-stream",w=/constructor/i.test(a.HTMLElement)||a.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||y&&w||s)&&typeof FileReader!="undefined"){var k=new FileReader;k.onloadend=function(){var $=k.result;$=b?$:$.replace(/^data:[^;]*;/,"data:attachment/file;"),v?v.location.href=$:location=$,v=null},k.readAsDataURL(u)}else{var C=a.URL||a.webkitURL,T=C.createObjectURL(u);v?v.location=T:location.href=T,v=null,setTimeout(function(){C.revokeObjectURL(T)},4e4)}});a.saveAs=l.saveAs=l,e.exports=l})})(oX);class io{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){let o=[];return this.decompose(0,t,o,2),r.length&&r.decompose(0,r.length,o,3),this.decompose(n,this.length,o,1),ef.from(o,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){let r=[];return this.decompose(t,n,r,0),ef.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),o=new oO(this),i=new oO(t);for(let a=n,s=n;;){if(o.next(a),i.next(a),a=0,o.lineBreak!=i.lineBreak||o.done!=i.done||o.value!=i.value)return!1;if(s+=o.value.length,o.done||s>=r)return!0}}iter(t=1){return new oO(this,t)}iterRange(t,n=this.length){return new iX(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let o=this.line(t).from;r=this.iterRange(o,Math.max(o,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new aX(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?io.empty:t.length<=32?new ki(t):ef.from(ki.split(t,[]))}}class ki extends io{constructor(t,n=aVe(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,o){for(let i=0;;i++){let a=this.text[i],s=o+a.length;if((n?r:s)>=t)return new sVe(o,s,r,a);o=s+1,r++}}decompose(t,n,r,o){let i=t<=0&&n>=this.length?this:new ki(AV(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(o&1){let a=r.pop(),s=vk(i.text,a.text.slice(),0,i.length);if(s.length<=32)r.push(new ki(s,a.length+i.length));else{let l=s.length>>1;r.push(new ki(s.slice(0,l)),new ki(s.slice(l)))}}else r.push(i)}replace(t,n,r){if(!(r instanceof ki))return super.replace(t,n,r);let o=vk(this.text,vk(r.text,AV(this.text,0,t)),n),i=this.length+r.length-(n-t);return o.length<=32?new ki(o,i):ef.from(ki.split(o,[]),i)}sliceString(t,n=this.length,r=`
  182. `){let o="";for(let i=0,a=0;i<=n&&a<this.text.length;a++){let s=this.text[a],l=i+s.length;i>t&&a&&(o+=r),t<l&&n>i&&(o+=s.slice(Math.max(0,t-i),n-i)),i=l+1}return o}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],o=-1;for(let i of t)r.push(i),o+=i.length+1,r.length==32&&(n.push(new ki(r,o)),r=[],o=-1);return o>-1&&n.push(new ki(r,o)),n}}class ef extends io{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,o){for(let i=0;;i++){let a=this.children[i],s=o+a.length,l=r+a.lines-1;if((n?l:s)>=t)return a.lineInner(t,n,r,o);o=s+1,r=l+1}}decompose(t,n,r,o){for(let i=0,a=0;a<=n&&i<this.children.length;i++){let s=this.children[i],l=a+s.length;if(t<=l&&n>=a){let u=o&((a<=t?1:0)|(l>=n?2:0));a>=t&&l<=n&&!u?r.push(s):s.decompose(t-a,n-a,r,u)}a=l+1}}replace(t,n,r){if(r.lines<this.lines)for(let o=0,i=0;o<this.children.length;o++){let a=this.children[o],s=i+a.length;if(t>=i&&n<=s){let l=a.replace(t-i,n-i,r),u=this.lines-a.lines+l.lines;if(l.lines<u>>5-1&&l.lines>u>>5+1){let d=this.children.slice();return d[o]=l,new ef(d,this.length-(n-t)+r.length)}return super.replace(i,s,l)}i=s+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=`
  183. `){let o="";for(let i=0,a=0;i<this.children.length&&a<=n;i++){let s=this.children[i],l=a+s.length;a>t&&i&&(o+=r),t<l&&n>a&&(o+=s.sliceString(t-a,n-a,r)),a=l+1}return o}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof ef))return 0;let r=0,[o,i,a,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;o+=n,i+=n){if(o==a||i==s)return r;let l=this.children[o],u=t.children[i];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,o)=>r+o.length+1,-1)){let r=0;for(let y of t)r+=y.lines;if(r<32){let y=[];for(let w of t)w.flatten(y);return new ki(y,n)}let o=Math.max(32,r>>5),i=o<<1,a=o>>1,s=[],l=0,u=-1,d=[];function p(y){let w;if(y.lines>i&&y instanceof ef)for(let b of y.children)p(b);else y.lines>a&&(l>a||!l)?(v(),s.push(y)):y instanceof ki&&l&&(w=d[d.length-1])instanceof ki&&y.lines+w.lines<=32?(l+=y.lines,u+=y.length+1,d[d.length-1]=new ki(w.text.concat(y.text),w.length+1+y.length)):(l+y.lines>o&&v(),l+=y.lines,u+=y.length+1,d.push(y))}function v(){l!=0&&(s.push(d.length==1?d[0]:ef.from(d,u)),u=-1,l=d.length=0)}for(let y of t)p(y);return v(),s.length==1?s[0]:new ef(s,n)}}io.empty=new ki([""],0);function aVe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function vk(e,t,n=0,r=1e9){for(let o=0,i=0,a=!0;i<e.length&&o<=r;i++){let s=e[i],l=o+s.length;l>=n&&(l>r&&(s=s.slice(0,r-o)),o<n&&(s=s.slice(n-o)),a?(t[t.length-1]+=s,a=!1):t.push(s)),o=l+1}return t}function AV(e,t,n){return vk(e,[""],t,n)}class oO{constructor(t,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof ki?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,o=this.nodes[r],i=this.offsets[r],a=i>>1,s=o instanceof ki?o.text.length:o.children.length;if(a==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=`
  184. `,this;t--}else if(o instanceof ki){let l=o.text[a+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=o.children[a+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof ki?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class iX{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new oO(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:o}=this.cursor.next(t);return this.pos+=(o.length+t)*n,this.value=o.length<=r?o:n<0?o.slice(o.length-r):o.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class aX{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:o}=this.inner.next(t);return n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol!="undefined"&&(io.prototype[Symbol.iterator]=function(){return this.iter()},oO.prototype[Symbol.iterator]=iX.prototype[Symbol.iterator]=aX.prototype[Symbol.iterator]=function(){return this});class sVe{constructor(t,n,r,o){this.from=t,this.to=n,this.number=r,this.text=o}get length(){return this.to-this.from}}let Sy="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e<Sy.length;e++)Sy[e]+=Sy[e-1];function lVe(e){for(let t=1;t<Sy.length;t+=2)if(Sy[t]>e)return Sy[t-1]<=e;return!1}function MV(e){return e>=127462&&e<=127487}const RV=8205;function ns(e,t,n=!0,r=!0){return(n?sX:uVe)(e,t,r)}function sX(e,t,n){if(t==e.length)return t;t&&lX(e.charCodeAt(t))&&uX(e.charCodeAt(t-1))&&t--;let r=$a(e,t);for(t+=hu(r);t<e.length;){let o=$a(e,t);if(r==RV||o==RV||n&&lVe(o))t+=hu(o),r=o;else if(MV(o)){let i=0,a=t-2;for(;a>=0&&MV($a(e,a));)i++,a-=2;if(i%2==0)break;t+=2}else break}return t}function uVe(e,t,n){for(;t>0;){let r=sX(e,t-2,n);if(r<t)return r;t--}return 0}function lX(e){return e>=56320&&e<57344}function uX(e){return e>=55296&&e<56320}function $a(e,t){let n=e.charCodeAt(t);if(!uX(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return lX(r)?(n-55296<<10)+(r-56320)+65536:n}function fD(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function hu(e){return e<65536?1:2}const cR=/\r\n?|\n/;var Ra=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Ra||(Ra={}));class lf{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;n<this.sections.length;n+=2)t+=this.sections[n];return t}get newLength(){let t=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];t+=r<0?this.sections[n]:r}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let n=0,r=0,o=0;n<this.sections.length;){let i=this.sections[n++],a=this.sections[n++];a<0?(t(r,o,i),o+=i):o+=a,r+=i}}iterChangedRanges(t,n=!1){fR(this,t,n)}get invertedDesc(){let t=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],o=this.sections[n++];o<0?t.push(r,o):t.push(o,r)}return new lf(t)}composeDesc(t){return this.empty?t:t.empty?this:cX(this,t)}mapDesc(t,n=!1){return t.empty?this:dR(this,t,n)}mapPos(t,n=-1,r=Ra.Simple){let o=0,i=0;for(let a=0;a<this.sections.length;){let s=this.sections[a++],l=this.sections[a++],u=o+s;if(l<0){if(u>t)return i+(t-o);i+=s}else{if(r!=Ra.Simple&&u>=t&&(r==Ra.TrackDel&&o<t&&u>t||r==Ra.TrackBefore&&o<t||r==Ra.TrackAfter&&u>t))return null;if(u>t||u==t&&n<0&&!s)return t==o||n<0?i:i+l;i+=l}o=u}if(t>o)throw new RangeError(`Position ${t} is out of range for changeset of length ${o}`);return i}touchesRange(t,n=t){for(let r=0,o=0;r<this.sections.length&&o<=n;){let i=this.sections[r++],a=this.sections[r++],s=o+i;if(a>=0&&o<=n&&s>=t)return o<t&&s>n?"cover":!0;o=s}return!1}toString(){let t="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],o=this.sections[n++];t+=(t?" ":"")+r+(o>=0?":"+o:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new lf(t)}static create(t){return new lf(t)}}class Gi extends lf{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return fR(this,(n,r,o,i,a)=>t=t.replace(o,o+(r-n),a),!1),t}mapDesc(t,n=!1){return dR(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let o=0,i=0;o<n.length;o+=2){let a=n[o],s=n[o+1];if(s>=0){n[o]=s,n[o+1]=a;let l=o>>1;for(;r.length<l;)r.push(io.empty);r.push(a?t.slice(i,i+a):io.empty)}i+=a}return new Gi(n,r)}compose(t){return this.empty?t:t.empty?this:cX(this,t,!0)}map(t,n=!1){return t.empty?this:dR(this,t,n,!0)}iterChanges(t,n=!1){fR(this,t,n)}get desc(){return lf.create(this.sections)}filter(t){let n=[],r=[],o=[],i=new FO(this);e:for(let a=0,s=0;;){let l=a==t.length?1e9:t[a++];for(;s<l||s==l&&i.len==0;){if(i.done)break e;let d=Math.min(i.len,l-s);qa(o,d,-1);let p=i.ins==-1?-1:i.off==0?i.ins:0;qa(n,d,p),p>0&&Mh(r,n,i.text),i.forward(d),s+=d}let u=t[a++];for(;s<u;){if(i.done)break e;let d=Math.min(i.len,u-s);qa(n,d,-1),qa(o,d,i.ins==-1?-1:i.off==0?i.ins:0),i.forward(d),s+=d}}return{changes:new Gi(n,r),filtered:lf.create(o)}}toJSON(){let t=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],o=this.sections[n+1];o<0?t.push(r):o==0?t.push([r]):t.push([r].concat(this.inserted[n>>1].toJSON()))}return t}static of(t,n,r){let o=[],i=[],a=0,s=null;function l(d=!1){if(!d&&!o.length)return;a<n&&qa(o,n-a,-1);let p=new Gi(o,i);s=s?s.compose(p.map(s)):p,o=[],i=[],a=0}function u(d){if(Array.isArray(d))for(let p of d)u(p);else if(d instanceof Gi){if(d.length!=n)throw new RangeError(`Mismatched change set length (got ${d.length}, expected ${n})`);l(),s=s?s.compose(d.map(s)):d}else{let{from:p,to:v=p,insert:y}=d;if(p>v||p<0||v>n)throw new RangeError(`Invalid change range ${p} to ${v} (in doc of length ${n})`);let w=y?typeof y=="string"?io.of(y.split(r||cR)):y:io.empty,b=w.length;if(p==v&&b==0)return;p<a&&l(),p>a&&qa(o,p-a,-1),qa(o,v-p,b),Mh(i,o,w),a=v}}return u(t),l(!s),s}static empty(t){return new Gi(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let o=0;o<t.length;o++){let i=t[o];if(typeof i=="number")n.push(i,-1);else{if(!Array.isArray(i)||typeof i[0]!="number"||i.some((a,s)=>s&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)n.push(i[0],0);else{for(;r.length<o;)r.push(io.empty);r[o]=io.of(i.slice(1)),n.push(i[0],r[o].length)}}}return new Gi(n,r)}static createSet(t,n){return new Gi(t,n)}}function qa(e,t,n,r=!1){if(t==0&&n<=0)return;let o=e.length-2;o>=0&&n<=0&&n==e[o+1]?e[o]+=t:t==0&&e[o]==0?e[o+1]+=n:r?(e[o]+=t,e[o+1]+=n):e.push(t,n)}function Mh(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(io.empty);e.push(n)}}function fR(e,t,n){let r=e.inserted;for(let o=0,i=0,a=0;a<e.sections.length;){let s=e.sections[a++],l=e.sections[a++];if(l<0)o+=s,i+=s;else{let u=o,d=i,p=io.empty;for(;u+=s,d+=l,l&&r&&(p=p.append(r[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(o,u,i,d,p),o=u,i=d}}}function dR(e,t,n,r=!1){let o=[],i=r?[]:null,a=new FO(e),s=new FO(t);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);qa(o,u,-1),a.forward(u),s.forward(u)}else if(s.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(s.len<a.len||s.len==a.len&&!n))){let u=s.len;for(qa(o,s.ins,-1);u;){let d=Math.min(a.len,u);a.ins>=0&&l<a.i&&a.len<=d&&(qa(o,0,a.ins),i&&Mh(i,o,a.text),l=a.i),a.forward(d),u-=d}s.next()}else if(a.ins>=0){let u=0,d=a.len;for(;d;)if(s.ins==-1){let p=Math.min(d,s.len);u+=p,d-=p,s.forward(p)}else if(s.ins==0&&s.len<d)d-=s.len,s.next();else break;qa(o,u,l<a.i?a.ins:0),i&&l<a.i&&Mh(i,o,a.text),l=a.i,a.forward(a.len-d)}else{if(a.done&&s.done)return i?Gi.createSet(o,i):lf.create(o);throw new Error("Mismatched change set lengths")}}function cX(e,t,n=!1){let r=[],o=n?[]:null,i=new FO(e),a=new FO(t);for(let s=!1;;){if(i.done&&a.done)return o?Gi.createSet(r,o):lf.create(r);if(i.ins==0)qa(r,i.len,0,s),i.next();else if(a.len==0&&!a.done)qa(r,0,a.ins,s),o&&Mh(o,r,a.text),a.next();else{if(i.done||a.done)throw new Error("Mismatched change set lengths");{let l=Math.min(i.len2,a.len),u=r.length;if(i.ins==-1){let d=a.ins==-1?-1:a.off?0:a.ins;qa(r,l,d,s),o&&d&&Mh(o,r,a.text)}else a.ins==-1?(qa(r,i.off?0:i.len,l,s),o&&Mh(o,r,i.textBit(l))):(qa(r,i.off?0:i.len,a.off?0:a.ins,s),o&&!a.off&&Mh(o,r,a.text));s=(i.ins>l||a.ins>=0&&a.len>l)&&(s||r.length>u),i.forward2(l),a.forward(l)}}}}class FO{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length?io.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?io.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class Wg{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,o;return this.empty?r=o=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),o=t.mapPos(this.to,-1)),r==this.from&&o==this.to?this:new Wg(r,o,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return Dt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return Dt.range(this.anchor,r)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Dt.range(t.anchor,t.head)}static create(t,n,r){return new Wg(t,n,r)}}class Dt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:Dt.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(t.ranges[n]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Dt([this.main],0)}addRange(t,n=!0){return Dt.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,Dt.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Dt(t.ranges.map(n=>Wg.fromJSON(n)),t.main)}static single(t,n=t){return new Dt([Dt.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,o=0;o<t.length;o++){let i=t[o];if(i.empty?i.from<=r:i.from<r)return Dt.normalized(t.slice(),n);r=i.to}return new Dt(t,n)}static cursor(t,n=0,r,o){return Wg.create(t,t,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(o!=null?o:16777215)<<6)}static range(t,n,r,o){let i=(r!=null?r:16777215)<<6|(o==null?7:Math.min(6,o));return n<t?Wg.create(n,t,48|i):Wg.create(t,n,(n>t?8:0)|i)}static normalized(t,n=0){let r=t[n];t.sort((o,i)=>o.from-i.from),n=t.indexOf(r);for(let o=1;o<t.length;o++){let i=t[o],a=t[o-1];if(i.empty?i.from<=a.to:i.from<a.to){let s=a.from,l=Math.max(i.to,a.to);o<=n&&n--,t.splice(--o,2,i.anchor>i.head?Dt.range(l,s):Dt.range(s,l))}}return new Dt(t,n)}}function fX(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let dD=0;class Rn{constructor(t,n,r,o,i){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=o,this.id=dD++,this.default=t([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(t={}){return new Rn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:hD),!!t.static,t.enables)}of(t){return new mk([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new mk(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new mk(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function hD(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class mk{constructor(t,n,r,o){this.dependencies=t,this.facet=n,this.type=r,this.value=o,this.id=dD++}dynamicSlot(t){var n;let r=this.value,o=this.facet.compareInput,i=this.id,a=t[i]>>1,s=this.type==2,l=!1,u=!1,d=[];for(let p of this.dependencies)p=="doc"?l=!0:p=="selection"?u=!0:(((n=t[p.id])!==null&&n!==void 0?n:1)&1)==0&&d.push(t[p.id]);return{create(p){return p.values[a]=r(p),1},update(p,v){if(l&&v.docChanged||u&&(v.docChanged||v.selection)||hR(p,d)){let y=r(p);if(s?!NV(y,p.values[a],o):!o(y,p.values[a]))return p.values[a]=y,1}return 0},reconfigure:(p,v)=>{let y,w=v.config.address[i];if(w!=null){let b=v2(v,w);if(this.dependencies.every(k=>k instanceof Rn?v.facet(k)===p.facet(k):k instanceof pa?v.field(k,!1)==p.field(k,!1):!0)||(s?NV(y=r(p),b,o):o(y=r(p),b)))return p.values[a]=b,0}else y=r(p);return p.values[a]=y,1}}}}function NV(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function hR(e,t){let n=!1;for(let r of t)iO(e,r)&1&&(n=!0);return n}function cVe(e,t,n){let r=n.map(l=>e[l.id]),o=n.map(l=>l.type),i=r.filter(l=>!(l&1)),a=e[t.id]>>1;function s(l){let u=[];for(let d=0;d<r.length;d++){let p=v2(l,r[d]);if(o[d]==2)for(let v of p)u.push(v);else u.push(p)}return t.combine(u)}return{create(l){for(let u of r)iO(l,u);return l.values[a]=s(l),1},update(l,u){if(!hR(l,i))return 0;let d=s(l);return t.compare(d,l.values[a])?0:(l.values[a]=d,1)},reconfigure(l,u){let d=hR(l,r),p=u.config.facets[t.id],v=u.facet(t);if(p&&!d&&hD(n,p))return l.values[a]=v,0;let y=s(l);return t.compare(y,v)?(l.values[a]=v,0):(l.values[a]=y,1)}}}const IV=Rn.define({static:!0});class pa{constructor(t,n,r,o,i){this.id=t,this.createF=n,this.updateF=r,this.compareF=o,this.spec=i,this.provides=void 0}static define(t){let n=new pa(dD++,t.create,t.update,t.compare||((r,o)=>r===o),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(IV).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,o)=>{let i=r.values[n],a=this.updateF(i,o);return this.compareF(i,a)?0:(r.values[n]=a,1)},reconfigure:(r,o)=>o.config.address[this.id]!=null?(r.values[n]=o.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,IV.of({field:this,create:t})]}get extension(){return this}}const Ng={lowest:4,low:3,default:2,high:1,highest:0};function O_(e){return t=>new dX(t,e)}const Sv={highest:O_(Ng.highest),high:O_(Ng.high),default:O_(Ng.default),low:O_(Ng.low),lowest:O_(Ng.lowest)};class dX{constructor(t,n){this.inner=t,this.prec=n}}class N1{of(t){return new pR(this,t)}reconfigure(t){return N1.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class pR{constructor(t,n){this.compartment=t,this.inner=n}}class g2{constructor(t,n,r,o,i,a){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=o,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(t){let n=this.address[t.id];return n==null?t.default:this.staticValues[n>>1]}static resolve(t,n,r){let o=[],i=Object.create(null),a=new Map;for(let v of fVe(t,n,a))v instanceof pa?o.push(v):(i[v.facet.id]||(i[v.facet.id]=[])).push(v);let s=Object.create(null),l=[],u=[];for(let v of o)s[v.id]=u.length<<1,u.push(y=>v.slot(y));let d=r==null?void 0:r.config.facets;for(let v in i){let y=i[v],w=y[0].facet,b=d&&d[v]||[];if(y.every(k=>k.type==0))if(s[w.id]=l.length<<1|1,hD(b,y))l.push(r.facet(w));else{let k=w.combine(y.map(C=>C.value));l.push(r&&w.compare(k,r.facet(w))?r.facet(w):k)}else{for(let k of y)k.type==0?(s[k.id]=l.length<<1|1,l.push(k.value)):(s[k.id]=u.length<<1,u.push(C=>k.dynamicSlot(C)));s[w.id]=u.length<<1,u.push(k=>cVe(k,w,y))}}let p=u.map(v=>v(s));return new g2(t,a,p,s,l,i)}}function fVe(e,t,n){let r=[[],[],[],[],[]],o=new Map;function i(a,s){let l=o.get(a);if(l!=null){if(l<=s)return;let u=r[l].indexOf(a);u>-1&&r[l].splice(u,1),a instanceof pR&&n.delete(a.compartment)}if(o.set(a,s),Array.isArray(a))for(let u of a)i(u,s);else if(a instanceof pR){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(a.compartment)||a.inner;n.set(a.compartment,u),i(u,s)}else if(a instanceof dX)i(a.inner,a.prec);else if(a instanceof pa)r[s].push(a),a.provides&&i(a.provides,s);else if(a instanceof mk)r[s].push(a),a.facet.extensions&&i(a.facet.extensions,Ng.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(u,s)}}return i(e,Ng.default),r.reduce((a,s)=>a.concat(s))}function iO(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let o=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|o}function v2(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const hX=Rn.define(),pX=Rn.define({combine:e=>e.some(t=>t),static:!0}),gX=Rn.define({combine:e=>e.length?e[0]:void 0,static:!0}),vX=Rn.define(),mX=Rn.define(),yX=Rn.define(),bX=Rn.define({combine:e=>e.length?e[0]:!1});class Pd{constructor(t,n){this.type=t,this.value=n}static define(){return new dVe}}class dVe{of(t){return new Pd(this,t)}}class hVe{constructor(t){this.map=t}of(t){return new Or(this,t)}}class Or{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new Or(this.type,n)}is(t){return this.type==t}static define(t={}){return new hVe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let o of t){let i=o.map(n);i&&r.push(i)}return r}}Or.reconfigure=Or.define();Or.appendConfig=Or.define();class Ji{constructor(t,n,r,o,i,a){this.startState=t,this.changes=n,this.selection=r,this.effects=o,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,r&&fX(r,n.newLength),i.some(s=>s.type==Ji.time)||(this.annotations=i.concat(Ji.time.of(Date.now())))}static create(t,n,r,o,i,a){return new Ji(t,n,r,o,i,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(Ji.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}Ji.time=Pd.define();Ji.userEvent=Pd.define();Ji.addToHistory=Pd.define();Ji.remote=Pd.define();function pVe(e,t){let n=[];for(let r=0,o=0;;){let i,a;if(r<e.length&&(o==t.length||t[o]>=e[r]))i=e[r++],a=e[r++];else if(o<t.length)i=t[o++],a=t[o++];else return n;!n.length||n[n.length-1]<i?n.push(i,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function _X(e,t,n){var r;let o,i,a;return n?(o=t.changes,i=Gi.empty(t.changes.length),a=e.changes.compose(t.changes)):(o=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(o)),{changes:a,selection:t.selection?t.selection.map(i):(r=e.selection)===null||r===void 0?void 0:r.map(o),effects:Or.mapEffects(e.effects,o).concat(Or.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function gR(e,t,n){let r=t.selection,o=xy(t.annotations);return t.userEvent&&(o=o.concat(Ji.userEvent.of(t.userEvent))),{changes:t.changes instanceof Gi?t.changes:Gi.of(t.changes||[],n,e.facet(gX)),selection:r&&(r instanceof Dt?r:Dt.single(r.anchor,r.head)),effects:xy(t.effects),annotations:o,scrollIntoView:!!t.scrollIntoView}}function OX(e,t,n){let r=gR(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let i=1;i<t.length;i++){t[i].filter===!1&&(n=!1);let a=!!t[i].sequential;r=_X(r,gR(e,t[i],a?r.changes.newLength:e.doc.length),a)}let o=Ji.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return vVe(n?gVe(o):o)}function gVe(e){let t=e.startState,n=!0;for(let o of t.facet(vX)){let i=o(e);if(i===!1){n=!1;break}Array.isArray(i)&&(n=n===!0?i:pVe(n,i))}if(n!==!0){let o,i;if(n===!1)i=e.changes.invertedDesc,o=Gi.empty(t.doc.length);else{let a=e.changes.filter(n);o=a.changes,i=a.filtered.mapDesc(a.changes).invertedDesc}e=Ji.create(t,o,e.selection&&e.selection.map(i),Or.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(mX);for(let o=r.length-1;o>=0;o--){let i=r[o](e);i instanceof Ji?e=i:Array.isArray(i)&&i.length==1&&i[0]instanceof Ji?e=i[0]:e=OX(t,xy(i),!1)}return e}function vVe(e){let t=e.startState,n=t.facet(yX),r=e;for(let o=n.length-1;o>=0;o--){let i=n[o](e);i&&Object.keys(i).length&&(r=_X(r,gR(t,i,e.changes.newLength),!0))}return r==e?e:Ji.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const mVe=[];function xy(e){return e==null?mVe:Array.isArray(e)?e:[e]}var ti=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ti||(ti={}));const yVe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let vR;try{vR=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function bVe(e){if(vR)return vR.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||yVe.test(n)))return!0}return!1}function _Ve(e){return t=>{if(!/\S/.test(t))return ti.Space;if(bVe(t))return ti.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return ti.Word;return ti.Other}}class Lr{constructor(t,n,r,o,i,a){this.config=t,this.doc=n,this.selection=r,this.values=o,this.status=t.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)iO(this,s<<1);this.computeSlot=null}field(t,n=!0){let r=this.config.address[t.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return iO(this,r),v2(this,r)}update(...t){return OX(this,t,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:o}=n;for(let a of t.effects)a.is(N1.reconfigure)?(n&&(o=new Map,n.compartments.forEach((s,l)=>o.set(l,s)),n=null),o.set(a.value.compartment,a.value.extension)):a.is(Or.reconfigure)?(n=null,r=a.value):a.is(Or.appendConfig)&&(n=null,r=xy(r).concat(a.value));let i;n?i=t.startState.values.slice():(n=g2.resolve(r,o,this),i=new Lr(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(s,l)=>l.reconfigure(s,this),null).values),new Lr(n,t.newDoc,t.newSelection,i,(a,s)=>s.update(a,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:Dt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),o=this.changes(r.changes),i=[r.range],a=xy(r.effects);for(let s=1;s<n.ranges.length;s++){let l=t(n.ranges[s]),u=this.changes(l.changes),d=u.map(o);for(let v=0;v<s;v++)i[v]=i[v].map(d);let p=o.mapDesc(u,!0);i.push(l.range.map(p)),o=o.compose(d),a=Or.mapEffects(a,d).concat(Or.mapEffects(xy(l.effects),p))}return{changes:o,selection:Dt.create(i,n.mainIndex),effects:a}}changes(t=[]){return t instanceof Gi?t:Gi.of(t,this.doc.length,this.facet(Lr.lineSeparator))}toText(t){return io.of(t.split(this.facet(Lr.lineSeparator)||cR))}sliceDoc(t=0,n=this.doc.length){return this.doc.sliceString(t,n,this.lineBreak)}facet(t){let n=this.config.address[t.id];return n==null?t.default:(iO(this,n),v2(this,n))}toJSON(t){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let r in t){let o=t[r];o instanceof pa&&this.config.address[o.id]!=null&&(n[r]=o.spec.toJSON(this.field(t[r]),this))}return n}static fromJSON(t,n={},r){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let o=[];if(r){for(let i in r)if(Object.prototype.hasOwnProperty.call(t,i)){let a=r[i],s=t[i];o.push(a.init(l=>a.spec.fromJSON(s,l)))}}return Lr.create({doc:t.doc,selection:Dt.fromJSON(t.selection),extensions:n.extensions?o.concat([n.extensions]):o})}static create(t={}){let n=g2.resolve(t.extensions||[],new Map),r=t.doc instanceof io?t.doc:io.of((t.doc||"").split(n.staticFacet(Lr.lineSeparator)||cR)),o=t.selection?t.selection instanceof Dt?t.selection:Dt.single(t.selection.anchor,t.selection.head):Dt.single(0);return fX(o,r.length),n.staticFacet(pX)||(o=o.asSingle()),new Lr(n,r,o,n.dynamicSlots.map(()=>null),(i,a)=>a.create(i),null)}get tabSize(){return this.facet(Lr.tabSize)}get lineBreak(){return this.facet(Lr.lineSeparator)||`
  185. `}get readOnly(){return this.facet(bX)}phrase(t,...n){for(let r of this.facet(Lr.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,o)=>{if(o=="$")return"$";let i=+(o||1);return!i||i>n.length?r:n[i-1]})),t}languageDataAt(t,n,r=-1){let o=[];for(let i of this.facet(hX))for(let a of i(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&o.push(a[t]);return o}charCategorizer(t){return _Ve(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:o}=this.doc.lineAt(t),i=this.charCategorizer(t),a=t-r,s=t-r;for(;a>0;){let l=ns(n,a,!1);if(i(n.slice(l,a))!=ti.Word)break;a=l}for(;s<o;){let l=ns(n,s);if(i(n.slice(s,l))!=ti.Word)break;s=l}return a==s?null:Dt.range(a+r,s+r)}}Lr.allowMultipleSelections=pX;Lr.tabSize=Rn.define({combine:e=>e.length?e[0]:4});Lr.lineSeparator=gX;Lr.readOnly=bX;Lr.phrases=Rn.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(o=>e[o]==t[o])}});Lr.languageData=hX;Lr.changeFilter=vX;Lr.transactionFilter=mX;Lr.transactionExtender=yX;N1.reconfigure=Or.define();function Cf(e,t,n={}){let r={};for(let o of e)for(let i of Object.keys(o)){let a=o[i],s=r[i];if(s===void 0)r[i]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,i))r[i]=n[i](s,a);else throw new Error("Config merge conflict for field "+i)}for(let o in t)r[o]===void 0&&(r[o]=t[o]);return r}class dv{eq(t){return this==t}range(t,n=t){return zO.create(t,n,this)}}dv.prototype.startSide=dv.prototype.endSide=0;dv.prototype.point=!1;dv.prototype.mapMode=Ra.TrackDel;class zO{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new zO(t,n,r)}}function mR(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class pD{constructor(t,n,r,o){this.from=t,this.to=n,this.value=r,this.maxPoint=o}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,o=0){let i=r?this.to:this.from;for(let a=o,s=i.length;;){if(a==s)return a;let l=a+s>>1,u=i[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(t,n,r,o){for(let i=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,i);i<a;i++)if(o(this.from[i]+t,this.to[i]+t,this.value[i])===!1)return!1}map(t,n){let r=[],o=[],i=[],a=-1,s=-1;for(let l=0;l<this.value.length;l++){let u=this.value[l],d=this.from[l]+t,p=this.to[l]+t,v,y;if(d==p){let w=n.mapPos(d,u.startSide,u.mapMode);if(w==null||(v=y=w,u.startSide!=u.endSide&&(y=n.mapPos(d,u.endSide),y<v)))continue}else if(v=n.mapPos(d,u.startSide),y=n.mapPos(p,u.endSide),v>y||v==y&&u.startSide>0&&u.endSide<=0)continue;(y-v||u.endSide-u.startSide)<0||(a<0&&(a=v),u.point&&(s=Math.max(s,y-v)),r.push(u),o.push(v-a),i.push(y-a))}return{mapped:r.length?new pD(o,i,r,s):null,pos:a}}}class co{constructor(t,n,r,o){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=o}static create(t,n,r,o){return new co(t,n,r,o)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:o=0,filterTo:i=this.length}=t,a=t.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(mR)),this.isEmpty)return n.length?co.of(n):this;let s=new wX(this,null,-1).goto(0),l=0,u=[],d=new ip;for(;s.value||l<n.length;)if(l<n.length&&(s.from-n[l].from||s.startSide-n[l].value.startSide)>=0){let p=n[l++];d.addInner(p.from,p.to,p.value)||u.push(p)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(s.chunkIndex)<n[l].from)&&(!a||o>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&d.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!a||o>s.to||i<s.from||a(s.from,s.to,s.value))&&(d.addInner(s.from,s.to,s.value)||u.push(zO.create(s.from,s.to,s.value))),s.next());return d.finishInner(this.nextLayer.isEmpty&&!u.length?co.empty:this.nextLayer.update({add:u,filter:a,filterFrom:o,filterTo:i}))}map(t){if(t.empty||this.isEmpty)return this;let n=[],r=[],o=-1;for(let a=0;a<this.chunk.length;a++){let s=this.chunkPos[a],l=this.chunk[a],u=t.touchesRange(s,s+l.length);if(u===!1)o=Math.max(o,l.maxPoint),n.push(l),r.push(t.mapPos(s));else if(u===!0){let{mapped:d,pos:p}=l.map(s,t);d&&(o=Math.max(o,d.maxPoint),n.push(d),r.push(p))}}let i=this.nextLayer.map(t);return n.length==0?i:new co(r,n,i||co.empty,o)}between(t,n,r){if(!this.isEmpty){for(let o=0;o<this.chunk.length;o++){let i=this.chunkPos[o],a=this.chunk[o];if(n>=i&&t<=i+a.length&&a.between(i,t-i,n-i,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return QO.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return QO.from(t).goto(n)}static compare(t,n,r,o,i=-1){let a=t.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=i),s=n.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=i),l=DV(a,s,r),u=new w_(a,l,i),d=new w_(s,l,i);r.iterGaps((p,v,y)=>jV(u,p,d,v,y,o)),r.empty&&r.length==0&&jV(u,0,d,0,0,o)}static eq(t,n,r=0,o){o==null&&(o=1e9-1);let i=t.filter(d=>!d.isEmpty&&n.indexOf(d)<0),a=n.filter(d=>!d.isEmpty&&t.indexOf(d)<0);if(i.length!=a.length)return!1;if(!i.length)return!0;let s=DV(i,a),l=new w_(i,s,0).goto(r),u=new w_(a,s,0).goto(r);for(;;){if(l.to!=u.to||!yR(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>o)return!0;l.next(),u.next()}}static spans(t,n,r,o,i=-1){let a=new w_(t,null,i).goto(n),s=n,l=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let d=a.activeForPoint(a.to),p=a.pointFrom<n?d.length+1:Math.min(d.length,l);o.point(s,u,a.point,d,p,a.pointRank),l=Math.min(a.openEnd(u),d.length)}else u>s&&(o.span(s,u,a.active,l),l=a.openEnd(u));if(a.to>r)return l+(a.point&&a.to>r?1:0);s=a.to,a.next()}}static of(t,n=!1){let r=new ip;for(let o of t instanceof zO?[t]:n?OVe(t):t)r.add(o.from,o.to,o.value);return r.finish()}}co.empty=new co([],[],null,-1);function OVe(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(mR(t,r)>0)return e.slice().sort(mR);t=r}return e}co.empty.nextLayer=co.empty;class ip{finishChunk(t){this.chunks.push(new pD(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new ip)).add(t,n,r)}addInner(t,n,r){let o=t-this.lastTo||r.startSide-this.last.endSide;if(o<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return o<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}addChunk(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}finish(){return this.finishInner(co.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=co.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function DV(e,t,n){let r=new Map;for(let i of e)for(let a=0;a<i.chunk.length;a++)i.chunk[a].maxPoint<=0&&r.set(i.chunk[a],i.chunkPos[a]);let o=new Set;for(let i of t)for(let a=0;a<i.chunk.length;a++){let s=r.get(i.chunk[a]);s!=null&&(n?n.mapPos(s):s)==i.chunkPos[a]&&!(n!=null&&n.touchesRange(s,s+i.chunk[a].length))&&o.add(i.chunk[a])}return o}class wX{constructor(t,n,r,o=0){this.layer=t,this.skip=n,this.minPoint=r,this.rank=o}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(t,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,n,!1),this}gotoInner(t,n,r){for(;this.chunkIndex<this.layer.chunk.length;){let o=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(o)||this.layer.chunkEnd(this.chunkIndex)<t||o.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let o=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<o)&&this.setRangeIndex(o)}this.next()}forward(t,n){(this.to-t||this.endSide-n)<0&&this.gotoInner(t,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let t=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=t+n.from[this.rangeIndex];if(this.from=r,this.to=t+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=t}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}class QO{constructor(t){this.heap=t}static from(t,n=null,r=-1){let o=[];for(let i=0;i<t.length;i++)for(let a=t[i];!a.isEmpty;a=a.nextLayer)a.maxPoint>=r&&o.push(new wX(a,n,r,i));return o.length==1?o[0]:new QO(o)}get startSide(){return this.value?this.value.startSide:0}goto(t,n=-1e9){for(let r of this.heap)r.goto(t,n);for(let r=this.heap.length>>1;r>=0;r--)tA(this.heap,r);return this.next(),this}forward(t,n){for(let r of this.heap)r.forward(t,n);for(let r=this.heap.length>>1;r>=0;r--)tA(this.heap,r);(this.to-t||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),tA(this.heap,0)}}}function tA(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let o=e[r];if(r+1<e.length&&o.compare(e[r+1])>=0&&(o=e[r+1],r++),n.compare(o)<0)break;e[r]=n,e[t]=o,t=r}}class w_{constructor(t,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=QO.from(t,n,r)}goto(t,n=-1e9){return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}forward(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}removeActive(t){wx(this.active,t),wx(this.activeTo,t),wx(this.activeRank,t),this.minActive=LV(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:o,rank:i}=this.cursor;for(;n<this.activeRank.length&&this.activeRank[n]<=i;)n++;Sx(this.active,n,r),Sx(this.activeTo,n,o),Sx(this.activeRank,n,i),t&&Sx(t,n,this.cursor.from),this.minActive=LV(this.active,this.activeTo)}next(){let t=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let o=this.minActive;if(o>-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>t){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),r&&wx(r,o)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=i,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=i.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let o=r.length-1;o>=0&&r[o]<t;o--)this.openStart++}}activeForPoint(t){if(!this.active.length)return this.active;let n=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function jV(e,t,n,r,o,i){e.goto(t),n.goto(r);let a=r+o,s=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,d=u<0?e.to+l:n.to,p=Math.min(d,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&yR(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,p,e.point,n.point):p>s&&!yR(e.active,n.active)&&i.compareRange(s,p,e.active,n.active),d>a)break;s=d,u<=0&&e.next(),u>=0&&n.next()}}function yR(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function wx(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function Sx(e,t,n){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function LV(e,t){let n=-1,r=1e9;for(let o=0;o<t.length;o++)(t[o]-r||e[o].endSide-e[n].endSide)<0&&(n=o,r=t[o]);return n}function S0(e,t,n=e.length){let r=0;for(let o=0;o<n;)e.charCodeAt(o)==9?(r+=t-r%t,o++):(r++,o=ns(e,o));return r}function bR(e,t,n,r){for(let o=0,i=0;;){if(i>=t)return o;if(o==e.length)break;i+=e.charCodeAt(o)==9?n-i%n:1,o=ns(e,o)}return r===!0?-1:e.length}const _R="\u037C",BV=typeof Symbol=="undefined"?"__"+_R:Symbol.for(_R),OR=typeof Symbol=="undefined"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),VV=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:{};class ap{constructor(t,n){this.rules=[];let{finish:r}=n||{};function o(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function i(a,s,l,u){let d=[],p=/^@(\w+)\b/.exec(a[0]),v=p&&p[1]=="keyframes";if(p&&s==null)return l.push(a[0]+";");for(let y in s){let w=s[y];if(/&/.test(y))i(y.split(/,\s*/).map(b=>a.map(k=>b.replace(/&/,k))).reduce((b,k)=>b.concat(k)),w,l);else if(w&&typeof w=="object"){if(!p)throw new RangeError("The value of a property ("+y+") should be a primitive value.");i(o(y),w,d,v)}else w!=null&&d.push(y.replace(/_.*/,"").replace(/[A-Z]/g,b=>"-"+b.toLowerCase())+": "+w+";")}(d.length||v)&&l.push((r&&!p&&!u?a.map(r):a).join(", ")+" {"+d.join(" ")+"}")}for(let a in t)i(o(a),t[a],this.rules)}getRules(){return this.rules.join(`
  186. `)}static newName(){let t=VV[BV]||1;return VV[BV]=t+1,_R+t.toString(36)}static mount(t,n,r){let o=t[OR],i=r&&r.nonce;o?i&&o.setNonce(i):o=new wVe(t,i),o.mount(Array.isArray(n)?n:[n])}}let FV=new Map;class wVe{constructor(t,n){let r=t.ownerDocument||t,o=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&o.CSSStyleSheet){let i=FV.get(r);if(i)return t.adoptedStyleSheets=[i.sheet,...t.adoptedStyleSheets],t[OR]=i;this.sheet=new o.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],FV.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let i=t.head||t;i.insertBefore(this.styleTag,i.firstChild)}this.modules=[],t[OR]=this}mount(t){let n=this.sheet,r=0,o=0;for(let i=0;i<t.length;i++){let a=t[i],s=this.modules.indexOf(a);if(s<o&&s>-1&&(this.modules.splice(s,1),o--,s=-1),s==-1){if(this.modules.splice(o++,0,a),n)for(let l=0;l<a.rules.length;l++)n.insertRule(a.rules[l],r++)}else{for(;o<s;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(!n){let i="";for(let a=0;a<this.modules.length;a++)i+=this.modules[a].getRules()+`
  187. `;this.styleTag.textContent=i}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}var sp={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},WO={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},SVe=typeof navigator!="undefined"&&/Mac/.test(navigator.platform),xVe=typeof navigator!="undefined"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Aa=0;Aa<10;Aa++)sp[48+Aa]=sp[96+Aa]=String(Aa);for(var Aa=1;Aa<=24;Aa++)sp[Aa+111]="F"+Aa;for(var Aa=65;Aa<=90;Aa++)sp[Aa]=String.fromCharCode(Aa+32),WO[Aa]=String.fromCharCode(Aa);for(var nA in sp)WO.hasOwnProperty(nA)||(WO[nA]=sp[nA]);function kVe(e){var t=SVe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||xVe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?WO:sp)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function m2(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function wR(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function CVe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function yk(e,t){if(!t.anchorNode)return!1;try{return wR(e,t.anchorNode)}catch{return!1}}function Xy(e){return e.nodeType==3?hv(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function y2(e,t,n,r){return n?zV(e,t,n,r,-1)||zV(e,t,n,r,1):!1}function YO(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function zV(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:pd(e))){if(e.nodeName=="DIV")return!1;let i=e.parentNode;if(!i||i.nodeType!=1)return!1;t=YO(e)+(o<0?0:1),e=i}else if(e.nodeType==1){if(e=e.childNodes[t+(o<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=o<0?pd(e):0}else return!1}}function pd(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function HC(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function EVe(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function TVe(e,t,n,r,o,i,a,s){let l=e.ownerDocument,u=l.defaultView||window;for(let d=e,p=!1;d&&!p;)if(d.nodeType==1){let v,y=d==l.body,w=1,b=1;if(y)v=EVe(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(d).position)&&(p=!0),d.scrollHeight<=d.clientHeight&&d.scrollWidth<=d.clientWidth){d=d.assignedSlot||d.parentNode;continue}let T=d.getBoundingClientRect();w=T.width/d.offsetWidth,b=T.height/d.offsetHeight,v={left:T.left,right:T.left+d.clientWidth*w,top:T.top,bottom:T.top+d.clientHeight*b}}let k=0,C=0;if(o=="nearest")t.top<v.top?(C=-(v.top-t.top+a),n>0&&t.bottom>v.bottom+C&&(C=t.bottom-v.bottom+C+a)):t.bottom>v.bottom&&(C=t.bottom-v.bottom+a,n<0&&t.top-C<v.top&&(C=-(v.top+C-t.top+a)));else{let T=t.bottom-t.top,$=v.bottom-v.top;C=(o=="center"&&T<=$?t.top+T/2-$/2:o=="start"||o=="center"&&n<0?t.top-a:t.bottom-$+a)-v.top}if(r=="nearest"?t.left<v.left?(k=-(v.left-t.left+i),n>0&&t.right>v.right+k&&(k=t.right-v.right+k+i)):t.right>v.right&&(k=t.right-v.right+i,n<0&&t.left<v.left+k&&(k=-(v.left+k-t.left+i))):k=(r=="center"?t.left+(t.right-t.left)/2-(v.right-v.left)/2:r=="start"==s?t.left-i:t.right-(v.right-v.left)+i)-v.left,k||C)if(y)u.scrollBy(k,C);else{let T=0,$=0;if(C){let P=d.scrollTop;d.scrollTop+=C/b,$=(d.scrollTop-P)*b}if(k){let P=d.scrollLeft;d.scrollLeft+=k/w,T=(d.scrollLeft-P)*w}t={left:t.left-T,top:t.top-$,right:t.right-T,bottom:t.bottom-$},T&&Math.abs(T-k)<1&&(r="nearest"),$&&Math.abs($-C)<1&&(o="nearest")}if(y)break;d=d.assignedSlot||d.parentNode}else if(d.nodeType==11)d=d.host;else break}function PVe(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(n.nodeType==1){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class $Ve{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?pd(n):0),r,Math.min(t.focusOffset,r?pd(r):0))}set(t,n,r,o){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=o}}let Um=null;function SX(e){if(e.setActive)return e.setActive();if(Um)return e.focus(Um);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Um==null?{get preventScroll(){return Um={preventScroll:!0},!0}}:void 0),!Um){Um=!1;for(let n=0;n<t.length;){let r=t[n++],o=t[n++],i=t[n++];r.scrollTop!=o&&(r.scrollTop=o),r.scrollLeft!=i&&(r.scrollLeft=i)}}}let QV;function hv(e,t,n=t){let r=QV||(QV=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function ky(e,t,n){let r={key:t,code:t,keyCode:n,which:n,cancelable:!0},o=new KeyboardEvent("keydown",r);o.synthetic=!0,e.dispatchEvent(o);let i=new KeyboardEvent("keyup",r);return i.synthetic=!0,e.dispatchEvent(i),o.defaultPrevented||i.defaultPrevented}function AVe(e){for(;e;){if(e&&(e.nodeType==9||e.nodeType==11&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}function xX(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function MVe(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,pd(n));;)if(r){if(n.nodeType!=1)return!1;let o=n.childNodes[r-1];o.contentEditable=="false"?r--:(n=o,r=pd(n))}else{if(n==e)return!0;r=YO(n),n=n.parentNode}}function kX(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class es{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new es(t.parentNode,YO(t),n)}static after(t,n){return new es(t.parentNode,YO(t)+1,n)}}const gD=[];class Zo{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,n){if(this.flags&2){let r=this.dom,o=null,i;for(let a of this.children){if(a.flags&7){if(!a.dom&&(i=o?o.nextSibling:r.firstChild)){let s=Zo.get(i);(!s||!s.parent&&s.canReuseDOM(a))&&a.reuseDOM(i)}a.sync(t,n),a.flags&=-8}if(i=o?o.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&i!=a.dom&&(n.written=!0),a.dom.parentNode==r)for(;i&&i!=a.dom;)i=WV(i);else r.insertBefore(a.dom,i);o=a.dom}for(i=o?o.nextSibling:r.firstChild,i&&n&&n.node==r&&(n.written=!0);i;)i=WV(i)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let o=pd(t)==0?0:n==0?-1:1;for(;;){let i=t.parentNode;if(i==this.dom)break;o==0&&i.firstChild!=i.lastChild&&(t==i.firstChild?o=-1:o=1),t=i}o<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!Zo.get(r);)r=r.nextSibling;if(!r)return this.length;for(let o=0,i=0;;o++){let a=this.children[o];if(a.dom==r)return i;i+=a.length+a.breakAfter}}domBoundsAround(t,n,r=0){let o=-1,i=-1,a=-1,s=-1;for(let l=0,u=r,d=r;l<this.children.length;l++){let p=this.children[l],v=u+p.length;if(u<t&&v>n)return p.domBoundsAround(t,n,u);if(v>=t&&o==-1&&(o=l,i=u),u>n&&p.dom.parentNode==this.dom){a=l,s=d;break}d=v,u=v+p.breakAfter}return{from:i,to:s<0?r+this.length:s,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=gD){this.markDirty();for(let o=t;o<n;o++){let i=this.children[o];i.parent==this&&i.destroy()}this.children.splice(t,n-t,...r);for(let o=0;o<r.length;o++)r[o].setParent(this)}ignoreMutation(t){return!1}ignoreEvent(t){return!1}childCursor(t=this.length){return new CX(this.children,t,this.children.length)}childPos(t,n=1){return this.childCursor().findPos(t,n)}toString(){let t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+(t=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(t){return t.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(t,n,r,o,i,a){return!1}become(t){return!1}canReuseDOM(t){return t.constructor==this.constructor&&!((this.flags|t.flags)&8)}getSide(){return 0}destroy(){this.parent=null}}Zo.prototype.breakAfter=0;function WV(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class CX{constructor(t,n,r){this.children=t,this.pos=n,this.i=r,this.off=0}findPos(t,n=1){for(;;){if(t>this.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function EX(e,t,n,r,o,i,a,s,l){let{children:u}=e,d=u.length?u[t]:null,p=i.length?i[i.length-1]:null,v=p?p.breakAfter:a;if(!(t==r&&d&&!a&&!v&&i.length<2&&d.merge(n,o,i.length?p:null,n==0,s,l))){if(r<u.length){let y=u[r];y&&(o<y.length||y.breakAfter&&(p==null?void 0:p.breakAfter))?(t==r&&(y=y.split(o),o=0),!v&&p&&y.merge(0,o,p,!0,0,l)?i[i.length-1]=y:((o||y.children.length&&!y.children[0].length)&&y.merge(0,o,null,!1,0,l),i.push(y))):y!=null&&y.breakAfter&&(p?p.breakAfter=1:a=1),r++}for(d&&(d.breakAfter=a,n>0&&(!a&&i.length&&d.merge(n,d.length,i[0],!1,s,0)?d.breakAfter=i.shift().breakAfter:(n<d.length||d.children.length&&d.children[d.children.length-1].length==0)&&d.merge(n,d.length,null,!1,s,0),t++));t<r&&i.length;)if(u[r-1].become(i[i.length-1]))r--,i.pop(),l=i.length?0:s;else if(u[t].become(i[0]))t++,i.shift(),s=i.length?0:l;else break;!i.length&&t&&r<u.length&&!u[t-1].breakAfter&&u[r].merge(0,0,u[t-1],!1,s,l)&&t--,(t<r||i.length)&&e.replaceChildren(t,r,i)}}function TX(e,t,n,r,o,i){let a=e.childCursor(),{i:s,off:l}=a.findPos(n,1),{i:u,off:d}=a.findPos(t,-1),p=t-n;for(let v of r)p+=v.length;e.length+=p,EX(e,u,d,s,l,r,0,o,i)}let Tl=typeof navigator!="undefined"?navigator:{userAgent:"",vendor:"",platform:""},SR=typeof document!="undefined"?document:{documentElement:{style:{}}};const xR=/Edge\/(\d+)/.exec(Tl.userAgent),PX=/MSIE \d/.test(Tl.userAgent),kR=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tl.userAgent),XC=!!(PX||kR||xR),YV=!XC&&/gecko\/(\d+)/i.test(Tl.userAgent),rA=!XC&&/Chrome\/(\d+)/.exec(Tl.userAgent),ZV="webkitFontSmoothing"in SR.documentElement.style,$X=!XC&&/Apple Computer/.test(Tl.vendor),UV=$X&&(/Mobile\/\w+/.test(Tl.userAgent)||Tl.maxTouchPoints>2);var Fn={mac:UV||/Mac/.test(Tl.platform),windows:/Win/.test(Tl.platform),linux:/Linux|X11/.test(Tl.platform),ie:XC,ie_version:PX?SR.documentMode||6:kR?+kR[1]:xR?+xR[1]:0,gecko:YV,gecko_version:YV?+(/Firefox\/(\d+)/.exec(Tl.userAgent)||[0,0])[1]:0,chrome:!!rA,chrome_version:rA?+rA[1]:0,ios:UV,android:/Android\b/.test(Tl.userAgent),webkit:ZV,safari:$X,webkit_version:ZV?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:SR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const RVe=256;class gd extends Zo{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,n,r){return this.flags&8||r&&(!(r instanceof gd)||this.length-(n-t)+r.length>RVe||r.flags&8)?!1:(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(t){let n=new gd(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(t,n){return t==this.dom?n:n?this.text.length:0}domAtPos(t){return new es(this.dom,t)}domBoundsAround(t,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,n){return NVe(this.dom,t,n)}}class vd extends Zo{constructor(t,n=[],r=0){super(),this.mark=t,this.children=n,this.length=r;for(let o of n)o.setParent(this)}setAttrs(t){if(xX(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,o,i,a){return r&&(!(r instanceof vd&&r.mark.eq(this.mark))||t&&i<=0||n<this.length&&a<=0)?!1:(TX(this,t,n,r?r.children:[],i-1,a-1),this.markDirty(),!0)}split(t){let n=[],r=0,o=-1,i=0;for(let s of this.children){let l=r+s.length;l>t&&n.push(r<t?s.split(t-r):s),o<0&&r>=t&&(o=i),r=l,i++}let a=this.length-t;return this.length=t,o>-1&&(this.children.length=o,this.markDirty()),new vd(this.mark,n,a)}domAtPos(t){return AX(this,t)}coordsAt(t,n){return RX(this,t,n)}}function NVe(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let o=t,i=t,a=0;t==0&&n<0||t==r&&n>=0?Fn.chrome||Fn.gecko||(t?(o--,a=1):i<r&&(i++,a=-1)):n<0?o--:i<r&&i++;let s=hv(e,o,i).getClientRects();if(!s.length)return null;let l=s[(a?a<0:n>=0)?0:s.length-1];return Fn.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(s,u=>u.width)||l),a?HC(l,a<0):l||null}class Rh extends Zo{static create(t,n,r){return new Rh(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=Rh.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,n,r,o,i,a){return r&&(!(r instanceof Rh)||!this.widget.compare(r.widget)||t>0&&i<=0||n<this.length&&a<=0)?!1:(this.length=t+(r?r.length:0)+(this.length-n),!0)}become(t){return t instanceof Rh&&t.side==this.side&&this.widget.constructor==t.widget.constructor?(this.widget.compare(t.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get overrideDOMText(){if(this.length==0)return io.empty;let t=this;for(;t.parent;)t=t.parent;let{view:n}=t,r=n&&n.state.doc,o=this.posAtStart;return r?r.slice(o,o+this.length):io.empty}domAtPos(t){return(this.length?t==0:this.side>0)?es.before(this.dom):es.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let o=this.dom.getClientRects(),i=null;if(!o.length)return null;let a=this.side?this.side<0:t>0;for(let s=a?o.length-1:0;i=o[s],!(t>0?s==0:s==o.length-1||i.top<i.bottom);s+=a?-1:1);return HC(i,!a)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Gy extends Zo{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof Gy&&t.side==this.side}split(){return new Gy(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return this.side>0?es.before(this.dom):es.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return io.empty}get isHidden(){return!0}}gd.prototype.children=Rh.prototype.children=Gy.prototype.children=gD;function AX(e,t){let n=e.dom,{children:r}=e,o=0;for(let i=0;o<r.length;o++){let a=r[o],s=i+a.length;if(!(s==i&&a.getSide()<=0)){if(t>i&&t<s&&a.dom.parentNode==n)return a.domAtPos(t-i);if(t<=i)break;i=s}}for(let i=o;i>0;i--){let a=r[i-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let i=o;i<r.length;i++){let a=r[i];if(a.dom.parentNode==n)return a.domAtPos(0)}return new es(n,0)}function MX(e,t,n){let r,{children:o}=e;n>0&&t instanceof vd&&o.length&&(r=o[o.length-1])instanceof vd&&r.mark.eq(t.mark)?MX(r,t.children[0],n-1):(o.push(t),t.setParent(e)),e.length+=t.length}function RX(e,t,n){let r=null,o=-1,i=null,a=-1;function s(u,d){for(let p=0,v=0;p<u.children.length&&v<=d;p++){let y=u.children[p],w=v+y.length;w>=d&&(y.children.length?s(y,d-v):(!i||i.isHidden&&n>0)&&(w>d||v==w&&y.getSide()>0)?(i=y,a=d-v):(v<d||v==w&&y.getSide()<0&&!y.isHidden)&&(r=y,o=d-v)),v=w}}s(e,t);let l=(n<0?r:i)||r||i;return l?l.coordsAt(Math.max(0,l==r?o:a),n):IVe(e)}function IVe(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=Xy(t);return n[n.length-1]||null}function CR(e,t){for(let n in e)n=="class"&&t.class?t.class+=" "+e.class:n=="style"&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const HV=Object.create(null);function vD(e,t,n){if(e==t)return!0;e||(e=HV),t||(t=HV);let r=Object.keys(e),o=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=o.length-(n&&o.indexOf(n)>-1?1:0))return!1;for(let i of r)if(i!=n&&(o.indexOf(i)==-1||e[i]!==t[i]))return!1;return!0}function ER(e,t,n){let r=!1;if(t)for(let o in t)n&&o in n||(r=!0,o=="style"?e.style.cssText="":e.removeAttribute(o));if(n)for(let o in n)t&&t[o]==n[o]||(r=!0,o=="style"?e.style.cssText=n[o]:e.setAttribute(o,n[o]));return r}function DVe(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}class Hi extends Zo{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,n,r,o,i,a){if(r){if(!(r instanceof Hi))return!1;this.dom||r.transferDOM(this)}return o&&this.setDeco(r?r.attrs:null),TX(this,t,n,r?r.children:[],i,a),!0}split(t){let n=new Hi;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:o}=this.childPos(t);o&&(n.append(this.children[r].split(o),0),this.children[r].merge(o,this.children[r].length,null,!1,0,0),r++);for(let i=r;i<this.children.length;i++)n.append(this.children[i],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=t,n}transferDOM(t){!this.dom||(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){vD(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){MX(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=CR(n,this.attrs||{})),r&&(this.attrs=CR({class:r},this.attrs||{}))}domAtPos(t){return AX(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(xX(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(ER(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,n);let o=this.dom.lastChild;for(;o&&Zo.get(o)instanceof vd;)o=o.lastChild;if(!o||!this.length||o.nodeName!="BR"&&((r=Zo.get(o))===null||r===void 0?void 0:r.isEditable)==!1&&(!Fn.ios||!this.children.some(i=>i instanceof gd))){let i=document.createElement("BR");i.cmIgnore=!0,this.dom.appendChild(i)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof gd)||/[^ -~]/.test(r.text))return null;let o=Xy(r.dom);if(o.length!=1)return null;t+=o[0].width,n=o[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:n}:null}coordsAt(t,n){let r=RX(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:o}=this.parent.view.viewState,i=r.bottom-r.top;if(Math.abs(i-o.lineHeight)<2&&o.textHeight<i){let a=(i-o.textHeight)/2;return{top:r.top+a,bottom:r.bottom-a,left:r.left,right:r.left}}}return r}become(t){return!1}covers(){return!0}static find(t,n){for(let r=0,o=0;r<t.children.length;r++){let i=t.children[r],a=o+i.length;if(a>=n){if(i instanceof Hi)return i;if(a>n)break}o=a+i.breakAfter}return null}}class Fh extends Zo{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,o,i,a){return r&&(!(r instanceof Fh)||!this.widget.compare(r.widget)||t>0&&i<=0||n<this.length&&a<=0)?!1:(this.length=t+(r?r.length:0)+(this.length-n),!0)}domAtPos(t){return t==0?es.before(this.dom):es.after(this.dom,t==this.length)}split(t){let n=this.length-t;this.length=t;let r=new Fh(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return gD}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):io.empty}domBoundsAround(){return null}become(t){return t instanceof Fh&&t.widget.constructor==this.widget.constructor?(t.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,this.deco=t.deco,this.breakAfter=t.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(t,n){return this.widget.coordsAt(this.dom,t,n)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(t){let{startSide:n,endSide:r}=this.deco;return n==r?!1:t<0?n<0:r>0}}class Ef{eq(t){return!1}updateDOM(t,n){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,n,r){return null}get isHidden(){return!1}destroy(t){}}var ks=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(ks||(ks={}));class Xn extends dv{constructor(t,n,r,o){super(),this.startSide=t,this.endSide=n,this.widget=r,this.spec=o}get heightRelevant(){return!1}static mark(t){return new I1(t)}static widget(t){let n=Math.max(-1e4,Math.min(1e4,t.side||0)),r=!!t.block;return n+=r&&!t.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new lp(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,o;if(t.isBlockGap)r=-5e8,o=4e8;else{let{start:i,end:a}=NX(t,n);r=(i?n?-3e8:-1:5e8)-1,o=(a?n?2e8:1:-6e8)+1}return new lp(t,r,o,n,t.widget||null,!0)}static line(t){return new D1(t)}static set(t,n=!1){return co.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Xn.none=co.empty;class I1 extends Xn{constructor(t){let{start:n,end:r}=NX(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var n,r;return this==t||t instanceof I1&&this.tagName==t.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(t.class||((r=t.attrs)===null||r===void 0?void 0:r.class))&&vD(this.attrs,t.attrs,"class")}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}I1.prototype.point=!1;class D1 extends Xn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof D1&&this.spec.class==t.spec.class&&vD(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}D1.prototype.mapMode=Ra.TrackBefore;D1.prototype.point=!0;class lp extends Xn{constructor(t,n,r,o,i,a){super(n,r,i,t),this.block=o,this.isReplace=a,this.mapMode=o?n<=0?Ra.TrackBefore:Ra.TrackAfter:Ra.TrackDel}get type(){return this.startSide!=this.endSide?ks.WidgetRange:this.startSide<=0?ks.WidgetBefore:ks.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof lp&&jVe(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}lp.prototype.point=!0;function NX(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n!=null?n:t,end:r!=null?r:t}}function jVe(e,t){return e==t||!!(e&&t&&e.compare(t))}function TR(e,t,n,r=0){let o=n.length-1;o>=0&&n[o]+r>=e?n[o]=Math.max(n[o],t):n.push(e,t)}class aO{constructor(t,n,r,o){this.doc=t,this.pos=n,this.end=r,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Fh&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Hi),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(xx(new Gy(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof Fh)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:i,lineBreak:a,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=i,this.textOff=0}let o=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(xx(new gd(this.text.slice(this.textOff,this.textOff+o)),n),r),this.atCursorPos=!0,this.textOff+=o,t-=o,r=0}}span(t,n,r,o){this.buildText(n-t,r,o),this.pos=n,this.openStart<0&&(this.openStart=o)}point(t,n,r,o,i,a){if(this.disallowBlockEffectsFor[a]&&r instanceof lp){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=n-t;if(r instanceof lp)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Fh(r.widget||new XV("div"),s,r));else{let l=Rh.create(r.widget||new XV("span"),s,s?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&i<=o.length&&(t<n||r.startSide>0),d=!l.isEditable&&(t<n||i>o.length||r.startSide<=0),p=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(o),u&&(p.append(xx(new Gy(1),o),i),i=o.length+Math.max(0,i-o.length)),p.append(xx(l,o),i),this.atCursorPos=d,this.pendingBuffer=d?t<n||i>o.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=i)}static build(t,n,r,o,i){let a=new aO(t,n,r,i);return a.openEnd=co.spans(o,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function xx(e,t){for(let n of t)e=new vd(n,[e],e.length);return e}class XV extends Ef{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const IX=Rn.define(),DX=Rn.define(),jX=Rn.define(),LX=Rn.define(),PR=Rn.define(),BX=Rn.define(),VX=Rn.define(),FX=Rn.define({combine:e=>e.some(t=>t)}),zX=Rn.define({combine:e=>e.some(t=>t)});class b2{constructor(t,n="nearest",r="nearest",o=5,i=5){this.range=t,this.y=n,this.x=r,this.yMargin=o,this.xMargin=i}map(t){return t.empty?this:new b2(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}const GV=Or.define({map:(e,t)=>e.map(t)});function cc(e,t,n){let r=e.facet(LX);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const GC=Rn.define({combine:e=>e.length?e[0]:!0});let LVe=0;const A_=Rn.define();class Mi{constructor(t,n,r,o,i){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=o,this.extension=i(this)}static define(t,n){const{eventHandlers:r,eventObservers:o,provide:i,decorations:a}=n||{};return new Mi(LVe++,t,r,o,s=>{let l=[A_.of(s)];return a&&l.push(ZO.of(u=>{let d=u.plugin(s);return d?a(d):Xn.none})),i&&l.push(i(s)),l})}static fromClass(t,n){return Mi.define(r=>new t(r),n)}}class oA{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(cc(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(n){cc(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){cc(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const QX=Rn.define(),mD=Rn.define(),ZO=Rn.define(),yD=Rn.define(),WX=Rn.define();function qV(e,t,n){let r=e.state.facet(WX);if(!r.length)return r;let o=r.map(a=>a instanceof Function?a(e):a),i=[];return co.spans(o,t,n,{point(){},span(a,s,l,u){let d=i;for(let p=l.length-1;p>=0;p--,u--){let v=l[p].spec.bidiIsolate,y;if(v!=null)if(u>0&&d.length&&(y=d[d.length-1]).to==a&&y.direction==v)y.to=s,d=y.inner;else{let w={from:a,to:s,direction:v,inner:[]};d.push(w),d=w.inner}}}}),i}const YX=Rn.define();function ZX(e){let t=0,n=0,r=0,o=0;for(let i of e.state.facet(YX)){let a=i(e);a&&(a.left!=null&&(t=Math.max(t,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(r=Math.max(r,a.top)),a.bottom!=null&&(o=Math.max(o,a.bottom)))}return{left:t,right:n,top:r,bottom:o}}const M_=Rn.define();class Su{constructor(t,n,r,o){this.fromA=t,this.toA=n,this.fromB=r,this.toB=o}join(t){return new Su(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let o=t[n-1];if(!(o.fromA>r.toA)){if(o.toA<r.fromA)break;r=r.join(o),t.splice(n-1,1)}}return t.splice(n,0,r),t}static extendWithRanges(t,n){if(n.length==0)return t;let r=[];for(let o=0,i=0,a=0,s=0;;o++){let l=o==t.length?null:t[o],u=a-s,d=l?l.fromB:1e9;for(;i<n.length&&n[i]<d;){let p=n[i],v=n[i+1],y=Math.max(s,p),w=Math.min(d,v);if(y<=w&&new Su(y+u,w+u,y,w).addToSet(r),v>d)break;i+=2}if(!l)return r;new Su(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),a=l.toA,s=l.toB}}}class _2{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=Gi.empty(this.startState.doc.length);for(let i of r)this.changes=this.changes.compose(i.changes);let o=[];this.changes.iterChangedRanges((i,a,s,l)=>o.push(new Su(i,a,s,l))),this.changedRanges=o}static create(t,n,r){return new _2(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var ui=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(ui||(ui={}));const UO=ui.LTR,UX=ui.RTL;function HX(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const BVe=HX("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),VVe=HX("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),$R=Object.create(null),Zc=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);$R[t]=n,$R[n]=-t}function FVe(e){return e<=247?BVe[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?VVe[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8203?256:64336<=e&&e<=65023?4:e==8204?256:1}const zVe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Nh{get dir(){return this.level%2?UX:UO}constructor(t,n,r){this.from=t,this.to=n,this.level=r}side(t,n){return this.dir==n==t?this.to:this.from}static find(t,n,r,o){let i=-1;for(let a=0;a<t.length;a++){let s=t[a];if(s.from<=n&&s.to>=n){if(s.level==r)return a;(i<0||(o!=0?o<0?s.from<n:s.to>n:t[i].level>s.level))&&(i=a)}}if(i<0)throw new RangeError("Index out of range");return i}}function XX(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],o=t[n];if(r.from!=o.from||r.to!=o.to||r.direction!=o.direction||!XX(r.inner,o.inner))return!1}return!0}const $o=[];function QVe(e,t,n,r,o){for(let i=0;i<=r.length;i++){let a=i?r[i-1].to:t,s=i<r.length?r[i].from:n,l=i?256:o;for(let u=a,d=l,p=l;u<s;u++){let v=FVe(e.charCodeAt(u));v==512?v=d:v==8&&p==4&&(v=16),$o[u]=v==4?2:v,v&7&&(p=v),d=v}for(let u=a,d=l,p=l;u<s;u++){let v=$o[u];if(v==128)u<s-1&&d==$o[u+1]&&d&24?v=$o[u]=d:$o[u]=256;else if(v==64){let y=u+1;for(;y<s&&$o[y]==64;)y++;let w=u&&d==8||y<n&&$o[y]==8?p==1?1:8:256;for(let b=u;b<y;b++)$o[b]=w;u=y-1}else v==8&&p==1&&($o[u]=1);d=v,v&7&&(p=v)}}}function WVe(e,t,n,r,o){let i=o==1?2:1;for(let a=0,s=0,l=0;a<=r.length;a++){let u=a?r[a-1].to:t,d=a<r.length?r[a].from:n;for(let p=u,v,y,w;p<d;p++)if(y=$R[v=e.charCodeAt(p)])if(y<0){for(let b=s-3;b>=0;b-=3)if(Zc[b+1]==-y){let k=Zc[b+2],C=k&2?o:k&4?k&1?i:o:0;C&&($o[p]=$o[Zc[b]]=C),s=b;break}}else{if(Zc.length==189)break;Zc[s++]=p,Zc[s++]=v,Zc[s++]=l}else if((w=$o[p])==2||w==1){let b=w==o;l=b?0:1;for(let k=s-3;k>=0;k-=3){let C=Zc[k+2];if(C&2)break;if(b)Zc[k+2]|=2;else{if(C&4)break;Zc[k+2]|=4}}}}}function YVe(e,t,n,r){for(let o=0,i=r;o<=n.length;o++){let a=o?n[o-1].to:e,s=o<n.length?n[o].from:t;for(let l=a;l<s;){let u=$o[l];if(u==256){let d=l+1;for(;;)if(d==s){if(o==n.length)break;d=n[o++].to,s=o<n.length?n[o].from:t}else if($o[d]==256)d++;else break;let p=i==1,v=(d<t?$o[d]:r)==1,y=p==v?p?1:2:r;for(let w=d,b=o,k=b?n[b-1].to:e;w>l;)w==k&&(w=n[--b].from,k=b?n[b-1].to:e),$o[--w]=y;l=d}else i=u,l++}}}function AR(e,t,n,r,o,i,a){let s=r%2?2:1;if(r%2==o%2)for(let l=t,u=0;l<n;){let d=!0,p=!1;if(u==i.length||l<i[u].from){let b=$o[l];b!=s&&(d=!1,p=b==16)}let v=!d&&s==1?[]:null,y=d?r:r+1,w=l;e:for(;;)if(u<i.length&&w==i[u].from){if(p)break e;let b=i[u];if(!d)for(let k=b.to,C=u+1;;){if(k==n)break e;if(C<i.length&&i[C].from==k)k=i[C++].to;else{if($o[k]==s)break e;break}}if(u++,v)v.push(b);else{b.from>l&&a.push(new Nh(l,b.from,y));let k=b.direction==UO!=!(y%2);MR(e,k?r+1:r,o,b.inner,b.from,b.to,a),l=b.to}w=b.to}else{if(w==n||(d?$o[w]!=s:$o[w]==s))break;w++}v?AR(e,l,w,r+1,o,v,a):l<w&&a.push(new Nh(l,w,y)),l=w}else for(let l=n,u=i.length;l>t;){let d=!0,p=!1;if(!u||l>i[u-1].to){let b=$o[l-1];b!=s&&(d=!1,p=b==16)}let v=!d&&s==1?[]:null,y=d?r:r+1,w=l;e:for(;;)if(u&&w==i[u-1].to){if(p)break e;let b=i[--u];if(!d)for(let k=b.from,C=u;;){if(k==t)break e;if(C&&i[C-1].to==k)k=i[--C].from;else{if($o[k-1]==s)break e;break}}if(v)v.push(b);else{b.to<l&&a.push(new Nh(b.to,l,y));let k=b.direction==UO!=!(y%2);MR(e,k?r+1:r,o,b.inner,b.from,b.to,a),l=b.from}w=b.from}else{if(w==t||(d?$o[w-1]!=s:$o[w-1]==s))break;w--}v?AR(e,w,l,r+1,o,v,a):w<l&&a.push(new Nh(w,l,y)),l=w}}function MR(e,t,n,r,o,i,a){let s=t%2?2:1;QVe(e,o,i,r,s),WVe(e,o,i,r,s),YVe(o,i,r,s),AR(e,o,i,t,n,r,a)}function ZVe(e,t,n){if(!e)return[new Nh(0,0,t==UX?1:0)];if(t==UO&&!n.length&&!zVe.test(e))return GX(e.length);if(n.length)for(;e.length>$o.length;)$o[$o.length]=256;let r=[],o=t==UO?0:1;return MR(e,o,o,n,0,e.length,r),r}function GX(e){return[new Nh(0,e,0)]}let qX="";function UVe(e,t,n,r,o){var i;let a=r.head-e.from,s=-1;if(a==0){if(!o||!e.length)return null;t[0].level!=n&&(a=t[0].side(!1,n),s=0)}else if(a==e.length){if(o)return null;let v=t[t.length-1];v.level!=n&&(a=v.side(!0,n),s=t.length-1)}s<0&&(s=Nh.find(t,a,(i=r.bidiLevel)!==null&&i!==void 0?i:-1,r.assoc));let l=t[s];a==l.side(o,n)&&(l=t[s+=o?1:-1],a=l.side(!o,n));let u=o==(l.dir==n),d=ns(e.text,a,u);if(qX=e.text.slice(Math.min(a,d),Math.max(a,d)),d!=l.side(o,n))return Dt.cursor(d+e.from,u?-1:1,l.level);let p=s==(o?t.length-1:0)?null:t[s+(o?1:-1)];return!p&&l.level!=n?Dt.cursor(o?e.to:e.from,o?-1:1,n):p&&p.level<l.level?Dt.cursor(p.side(!o,n)+e.from,o?1:-1,p.level):Dt.cursor(d+e.from,o?-1:1,l.level)}class KV extends Zo{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new Hi],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Su(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:d})=>d<this.minWidthFrom||u>this.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let o=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?o=this.domChanged.newSel.head:!e9e(t.changes,this.hasComposition)&&!t.selectionSet&&(o=t.state.selection.main.head));let i=o>-1?XVe(this.view,t.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:d}=this.hasComposition;r=new Su(u,d,t.changes.mapPos(u,-1),t.changes.mapPos(d,1)).addToSet(r.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(Fn.ie||Fn.chrome)&&!i&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,s=this.updateDeco(),l=KVe(a,s,t.changes);return r=Su.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,i),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:o}=this.view;o.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=Fn.chrome||Fn.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||o.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let a of this.children)a instanceof Fh&&a.widget instanceof JV&&i.push(a.dom);o.updateGaps(i)}updateChildren(t,n,r){let o=r?r.range.addToSet(t.slice()):t,i=this.childCursor(n);for(let a=o.length-1;;a--){let s=a>=0?o[a]:null;if(!s)break;let{fromA:l,toA:u,fromB:d,toB:p}=s,v,y,w,b;if(r&&r.range.fromB<p&&r.range.toB>d){let P=aO.build(this.view.state.doc,d,r.range.fromB,this.decorations,this.dynamicDecorationMap),A=aO.build(this.view.state.doc,r.range.toB,p,this.decorations,this.dynamicDecorationMap);y=P.breakAtStart,w=P.openStart,b=A.openEnd;let R=this.compositionView(r);A.breakAtStart?R.breakAfter=1:A.content.length&&R.merge(R.length,R.length,A.content[0],!1,A.openStart,0)&&(R.breakAfter=A.content[0].breakAfter,A.content.shift()),P.content.length&&R.merge(0,0,P.content[P.content.length-1],!0,0,P.openEnd)&&P.content.pop(),v=P.content.concat(R).concat(A.content)}else({content:v,breakAtStart:y,openStart:w,openEnd:b}=aO.build(this.view.state.doc,d,p,this.decorations,this.dynamicDecorationMap));let{i:k,off:C}=i.findPos(u,1),{i:T,off:$}=i.findPos(l,-1);EX(this,T,$,k,C,v,y,w,b)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new gd(t.text.nodeValue);n.flags|=8;for(let{deco:o}of t.marks)n=new vd(o,[n],n.length);let r=new Hi;return r.append(n,0),r}fixCompositionDOM(t){let n=(i,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let s=Zo.get(i);s&&s!=a&&(s.dom=null),a.setDOM(i)},r=this.childPos(t.range.fromB,1),o=this.children[r.i];n(t.line,o);for(let i=t.marks.length-1;i>=-1;i--)r=o.childPos(r.off,1),o=o.children[r.i],n(i>=0?t.marks[i].node:t.text,o)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,o=r==this.dom,i=!o&&yk(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(o||n||i))return;let a=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(s.anchor)),u=s.empty?l:this.moveToLine(this.domAtPos(s.head));if(Fn.gecko&&s.empty&&!this.hasComposition&&HVe(l)){let p=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(p,l.node.childNodes[l.offset]||null)),l=u=new es(p,0),a=!0}let d=this.view.observer.selectionRange;(a||!d.focusNode||!y2(l.node,l.offset,d.anchorNode,d.anchorOffset)||!y2(u.node,u.offset,d.focusNode,d.focusOffset))&&(this.view.observer.ignore(()=>{Fn.android&&Fn.chrome&&this.dom.contains(d.focusNode)&&JVe(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=m2(this.view.root);if(p)if(s.empty){if(Fn.gecko){let v=GVe(l.node,l.offset);if(v&&v!=3){let y=JX(l.node,l.offset,v==1?1:-1);y&&(l=new es(y.node,y.offset))}}p.collapse(l.node,l.offset),s.bidiLevel!=null&&p.caretBidiLevel!==void 0&&(p.caretBidiLevel=s.bidiLevel)}else if(p.extend){p.collapse(l.node,l.offset);try{p.extend(u.node,u.offset)}catch{}}else{let v=document.createRange();s.anchor>s.head&&([l,u]=[u,l]),v.setEnd(u.node,u.offset),v.setStart(l.node,l.offset),p.removeAllRanges(),p.addRange(v)}i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new es(d.anchorNode,d.anchorOffset),this.impreciseHead=u.precise?null:new es(d.focusNode,d.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=m2(t.root),{anchorNode:o,anchorOffset:i}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=Hi.find(this,n.head);if(!a)return;let s=a.posAtStart;if(n.head==s||n.head==s+a.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let d=this.domAtPos(n.head+n.assoc);r.collapse(d.node,d.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let p=t.observer.selectionRange;t.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=n.from&&r.collapse(o,i)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let o=t.offset;!r&&o<n.childNodes.length;o++){let i=Zo.get(n.childNodes[o]);i instanceof Hi&&(r=i.domAtPos(0))}for(let o=t.offset-1;!r&&o>=0;o--){let i=Zo.get(n.childNodes[o]);i instanceof Hi&&(r=i.domAtPos(i.length))}return r?new es(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Zo.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n<this.children.length-1;){let o=this.children[n];if(r<o.length||o instanceof Hi)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(t,n){let r=null,o=0;for(let i=this.length,a=this.children.length-1;a>=0;a--){let s=this.children[a],l=i-s.breakAfter,u=l-s.length;if(l<t)break;u<=t&&(u<t||s.covers(-1))&&(l>t||s.covers(1))&&(!r||s instanceof Hi&&!(r instanceof Hi&&n>=0))&&(r=s,o=u),i=u}return r?r.coordsAt(t-o,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),o=this.children[n];if(!(o instanceof Hi))return null;for(;o.children.length;){let{i:s,off:l}=o.childPos(r,1);for(;;s++){if(s==o.children.length)return null;if((o=o.children[s]).length)break}r=l}if(!(o instanceof gd))return null;let i=ns(o.text,r);if(i==r)return null;let a=hv(o.dom,r,i).getClientRects();for(let s=0;s<a.length;s++){let l=a[s];if(s==a.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(t){let n=[],{from:r,to:o}=t,i=this.view.contentDOM.clientWidth,a=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==ui.LTR;for(let u=0,d=0;d<this.children.length;d++){let p=this.children[d],v=u+p.length;if(v>o)break;if(u>=r){let y=p.dom.getBoundingClientRect();if(n.push(y.height),a){let w=p.dom.lastChild,b=w?Xy(w):[];if(b.length){let k=b[b.length-1],C=l?k.right-y.left:y.right-k.left;C>s&&(s=C,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=v)}}}u=v+p.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?ui.RTL:ui.LTR}measureTextSize(){for(let i of this.children)if(i instanceof Hi){let a=i.measureTextSize();if(a)return a}let t=document.createElement("div"),n,r,o;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let i=Xy(t.firstChild)[0];n=t.getBoundingClientRect().height,r=i?i.width/27:7,o=i?i.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:o}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new CX(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,o=0;;o++){let i=o==n.viewports.length?null:n.viewports[o],a=i?i.from-1:this.length;if(a>r){let s=(n.lineBlockAt(a).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(Xn.replace({widget:new JV(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,a))}if(!i)break;r=i.to+1}return Xn.set(t)}updateDeco(){let t=this.view.state.facet(ZO).map((n,r)=>(this.dynamicDecorationMap[r]=typeof n=="function")?n(this.view):n);for(let n=t.length;n<t.length+3;n++)this.dynamicDecorationMap[n]=!1;return this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(t){let{range:n}=t,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),o;if(!r)return;!n.empty&&(o=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,o.left),top:Math.min(r.top,o.top),right:Math.max(r.right,o.right),bottom:Math.max(r.bottom,o.bottom)});let i=ZX(this.view),a={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom};TVe(this.view.scrollDOM,a,n.head<n.anchor?-1:1,t.x,t.y,t.xMargin,t.yMargin,this.view.textDirection==ui.LTR)}}function HVe(e){return e.node.nodeType==1&&e.node.firstChild&&(e.offset==0||e.node.childNodes[e.offset-1].contentEditable=="false")&&(e.offset==e.node.childNodes.length||e.node.childNodes[e.offset].contentEditable=="false")}class JV extends Ef{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function KX(e,t){let n=e.observer.selectionRange,r=n.focusNode&&JX(n.focusNode,n.focusOffset,0);if(!r)return null;let o=t-r.offset;return{from:o,to:o+r.node.nodeValue.length,node:r.node}}function XVe(e,t,n){let r=KX(e,n);if(!r)return null;let{node:o,from:i,to:a}=r,s=o.nodeValue;if(/[\n\r]/.test(s)||e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc,u=new Su(l.mapPos(i),l.mapPos(a),i,a),d=[];for(let p=o.parentNode;;p=p.parentNode){let v=Zo.get(p);if(v instanceof vd)d.push({node:p,deco:v.mark});else{if(v instanceof Hi||p.nodeName=="DIV"&&p.parentNode==e.contentDOM)return{range:u,text:o,marks:d,line:p};if(p!=e.contentDOM)d.push({node:p,deco:new I1({inclusive:!0,attributes:DVe(p),tagName:p.tagName.toLowerCase()})});else return null}}}function JX(e,t,n){if(n<=0)for(let r=e,o=t;;){if(r.nodeType==3)return{node:r,offset:o};if(r.nodeType==1&&o>0)r=r.childNodes[o-1],o=pd(r);else break}if(n>=0)for(let r=e,o=t;;){if(r.nodeType==3)return{node:r,offset:o};if(r.nodeType==1&&o<r.childNodes.length&&n>=0)r=r.childNodes[o],o=0;else break}return null}function GVe(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t<e.childNodes.length&&e.childNodes[t].contentEditable=="false"?2:0)}let qVe=class{constructor(){this.changes=[]}compareRange(t,n){TR(t,n,this.changes)}comparePoint(t,n){TR(t,n,this.changes)}};function KVe(e,t,n){let r=new qVe;return co.compare(e,t,n,r),r.changes}function JVe(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function e9e(e,t){let n=!1;return t&&e.iterChangedRanges((r,o)=>{r<t.to&&o>t.from&&(n=!0)}),n}function t9e(e,t,n=1){let r=e.charCategorizer(t),o=e.doc.lineAt(t),i=t-o.from;if(o.length==0)return Dt.cursor(t);i==0?n=1:i==o.length&&(n=-1);let a=i,s=i;n<0?a=ns(o.text,i,!1):s=ns(o.text,i);let l=r(o.text.slice(a,s));for(;a>0;){let u=ns(o.text,a,!1);if(r(o.text.slice(u,a))!=l)break;a=u}for(;s<o.length;){let u=ns(o.text,s);if(r(o.text.slice(s,u))!=l)break;s=u}return Dt.range(a+o.from,s+o.from)}function n9e(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function r9e(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function iA(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function e9(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function t9(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function RR(e,t,n){let r,o,i,a,s=!1,l,u,d,p;for(let w=e.firstChild;w;w=w.nextSibling){let b=Xy(w);for(let k=0;k<b.length;k++){let C=b[k];o&&iA(o,C)&&(C=e9(t9(C,o.bottom),o.top));let T=n9e(t,C),$=r9e(n,C);if(T==0&&$==0)return w.nodeType==3?n9(w,t,n):RR(w,t,n);if(!r||a>$||a==$&&i>T){r=w,o=C,i=T,a=$;let P=$?n<C.top?-1:1:T?t<C.left?-1:1:0;s=!P||(P>0?k<b.length-1:k>0)}T==0?n>C.bottom&&(!d||d.bottom<C.bottom)?(l=w,d=C):n<C.top&&(!p||p.top>C.top)&&(u=w,p=C):d&&iA(d,C)?d=t9(d,C.bottom):p&&iA(p,C)&&(p=e9(p,C.top))}}if(d&&d.bottom>=n?(r=l,o=d):p&&p.top<=n&&(r=u,o=p),!r)return{node:e,offset:0};let v=Math.max(o.left,Math.min(o.right,t));if(r.nodeType==3)return n9(r,v,n);if(s&&r.contentEditable!="false")return RR(r,v,n);let y=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(o.left+o.right)/2?1:0);return{node:e,offset:y}}function n9(e,t,n){let r=e.nodeValue.length,o=-1,i=1e9,a=0;for(let s=0;s<r;s++){let l=hv(e,s,s+1).getClientRects();for(let u=0;u<l.length;u++){let d=l[u];if(d.top==d.bottom)continue;a||(a=t-d.left);let p=(d.top>n?d.top-n:n-d.bottom)-1;if(d.left-1<=t&&d.right+1>=t&&p<i){let v=t>=(d.left+d.right)/2,y=v;if((Fn.chrome||Fn.gecko)&&hv(e,s).getBoundingClientRect().left==d.right&&(y=!v),p<=0)return{node:e,offset:s+(y?1:0)};o=s+(y?1:0),i=p}}}return{node:e,offset:o>-1?o:a>0?e.nodeValue.length:0}}function eG(e,t,n,r=-1){var o,i;let a=e.contentDOM.getBoundingClientRect(),s=a.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:d,y:p}=t,v=p-s;if(v<0)return 0;if(v>u)return e.state.doc.length;for(let P=e.viewState.heightOracle.textHeight/2,A=!1;l=e.elementAtHeight(v),l.type!=ks.Text;)for(;v=r>0?l.bottom+P:l.top-P,!(v>=0&&v<=u);){if(A)return n?null:0;A=!0,r=-r}p=s+v;let y=l.from;if(y<e.viewport.from)return e.viewport.from==0?0:n?null:r9(e,a,l,d,p);if(y>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:r9(e,a,l,d,p);let w=e.dom.ownerDocument,b=e.root.elementFromPoint?e.root:w,k=b.elementFromPoint(d,p);k&&!e.contentDOM.contains(k)&&(k=null),k||(d=Math.max(a.left+1,Math.min(a.right-1,d)),k=b.elementFromPoint(d,p),k&&!e.contentDOM.contains(k)&&(k=null));let C,T=-1;if(k&&((o=e.docView.nearest(k))===null||o===void 0?void 0:o.isEditable)!=!1){if(w.caretPositionFromPoint){let P=w.caretPositionFromPoint(d,p);P&&({offsetNode:C,offset:T}=P)}else if(w.caretRangeFromPoint){let P=w.caretRangeFromPoint(d,p);P&&({startContainer:C,startOffset:T}=P,(!e.contentDOM.contains(C)||Fn.safari&&o9e(C,T,d)||Fn.chrome&&i9e(C,T,d))&&(C=void 0))}}if(!C||!e.docView.dom.contains(C)){let P=Hi.find(e.docView,y);if(!P)return v>l.top+l.height/2?l.to:l.from;({node:C,offset:T}=RR(P.dom,d,p))}let $=e.docView.nearest(C);if(!$)return null;if($.isWidget&&((i=$.dom)===null||i===void 0?void 0:i.nodeType)==1){let P=$.dom.getBoundingClientRect();return t.y<P.top||t.y<=P.bottom&&t.x<=(P.left+P.right)/2?$.posAtStart:$.posAtEnd}else return $.localPosFromDOM(C,T)+$.posAtStart}function r9(e,t,n,r,o){let i=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>e.defaultLineHeight*1.5){let s=e.viewState.heightOracle.textHeight;i+=Math.floor((o-n.top-(e.defaultLineHeight-s)*.5)/s)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+bR(a,i,e.state.tabSize)}function o9e(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let o=e.nextSibling;o;o=o.nextSibling)if(o.nodeType!=1||o.nodeName!="BR")return!1;return hv(e,r-1,r).getBoundingClientRect().left>n}function i9e(e,t,n){if(t!=0)return!1;for(let o=e;;){let i=o.parentNode;if(!i||i.nodeType!=1||i.firstChild!=o)return!1;if(i.classList.contains("cm-line"))break;o=i}let r=e.nodeType==1?e.getBoundingClientRect():hv(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function NR(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==ks.Text))return r}return n}function a9e(e,t,n,r){let o=NR(e,t.head),i=!r||o.type!=ks.Text||!(e.lineWrapping||o.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head);if(i){let a=e.dom.getBoundingClientRect(),s=e.textDirectionAt(o.from),l=e.posAtCoords({x:n==(s==ui.LTR)?a.right-1:a.left+1,y:(i.top+i.bottom)/2});if(l!=null)return Dt.cursor(l,n?-1:1)}return Dt.cursor(n?o.to:o.from,n?-1:1)}function o9(e,t,n,r){let o=e.state.doc.lineAt(t.head),i=e.bidiSpans(o),a=e.textDirectionAt(o.from);for(let s=t,l=null;;){let u=UVe(o,i,a,s,n),d=qX;if(!u){if(o.number==(n?e.state.doc.lines:1))return s;d=`
  188. `,o=e.state.doc.line(o.number+(n?1:-1)),i=e.bidiSpans(o),u=Dt.cursor(n?o.from:o.to)}if(l){if(!l(d))return s}else{if(!r)return u;l=r(d)}s=u}}function s9e(e,t,n){let r=e.state.charCategorizer(t),o=r(n);return i=>{let a=r(i);return o==ti.Space&&(o=a),o==a}}function l9e(e,t,n,r){let o=t.head,i=n?1:-1;if(o==(n?e.state.doc.length:0))return Dt.cursor(o,t.assoc);let a=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(o,t.assoc||-1),d=e.documentTop;if(u)a==null&&(a=u.left-l.left),s=i<0?u.top:u.bottom;else{let y=e.viewState.lineBlockAt(o);a==null&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(o-y.from))),s=(i<0?y.top:y.bottom)+d}let p=l.left+a,v=r!=null?r:e.viewState.heightOracle.textHeight>>1;for(let y=0;;y+=10){let w=s+(v+y)*i,b=eG(e,{x:p,y:w},!1,i);if(w<l.top||w>l.bottom||(i<0?b<o:b>o)){let k=e.docView.coordsForChar(b),C=!k||w<k.top?-1:1;return Dt.cursor(b,C,void 0,a)}}}function bk(e,t,n){for(;;){let r=0;for(let o of e)o.between(t-1,t+1,(i,a,s)=>{if(t>i&&t<a){let l=r||n||(t-i<a-t?-1:1);t=l<0?i:a,r=l}});if(!r)return t}}function aA(e,t,n){let r=bk(e.state.facet(yD).map(o=>o(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:Dt.cursor(r,r<n.from?1:-1)}class u9e{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,Fn.safari&&t.contentDOM.addEventListener("input",()=>null),Fn.gecko&&k9e(t.contentDOM.ownerDocument)}handleEvent(t){!m9e(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,n){let r=this.handlers[t];if(r){for(let o of r.observers)o(this.view,n);for(let o of r.handlers){if(n.defaultPrevented)break;if(o(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=c9e(t),r=this.handlers,o=this.view.contentDOM;for(let i in n)if(i!="scroll"){let a=!n[i].handlers.length,s=r[i];s&&a!=!s.handlers.length&&(o.removeEventListener(i,this.handleEvent),s=null),s||o.addEventListener(i,this.handleEvent,{passive:a})}for(let i in r)i!="scroll"&&!n[i]&&o.removeEventListener(i,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(t.keyCode!=27&&nG.indexOf(t.keyCode)<0&&(this.view.inputState.lastEscPress=0),Fn.android&&Fn.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return Fn.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((n=tG.find(r=>r.keyCode==t.keyCode))&&!t.ctrlKey||f9e.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,ky(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:Fn.safari&&!Fn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function i9(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(o){cc(n.state,o)}}}function c9e(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let o=r.spec;if(o&&o.domEventHandlers)for(let i in o.domEventHandlers){let a=o.domEventHandlers[i];a&&n(i).handlers.push(i9(r.value,a))}if(o&&o.domEventObservers)for(let i in o.domEventObservers){let a=o.domEventObservers[i];a&&n(i).observers.push(i9(r.value,a))}}for(let r in gf)n(r).handlers.push(gf[r]);for(let r in hc)n(r).observers.push(hc[r]);return t}const tG=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],f9e="dthko",nG=[16,17,18,20,91,92,224,225],kx=6;function Cx(e){return Math.max(0,e)*.7+8}function d9e(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class h9e{constructor(t,n,r,o){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=PVe(t.contentDOM),this.atoms=t.state.facet(yD).map(a=>a(t));let i=t.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Lr.allowMultipleSelections)&&p9e(t,n),this.dragging=v9e(t,n)&&aG(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){var n;if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&d9e(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,o=0,i=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=ZX(this.view);t.clientX-a.left<=i.left+kx?r=-Cx(i.left-t.clientX):t.clientX+a.right>=i.right-kx&&(r=Cx(t.clientX-i.right)),t.clientY-a.top<=i.top+kx?o=-Cx(i.top-t.clientY):t.clientY+a.bottom>=i.bottom-kx&&(o=Cx(t.clientY-i.bottom)),this.setScrollSpeed(r,o)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;r<t.ranges.length;r++){let o=t.ranges[r],i=null;if(o.empty){let a=bk(this.atoms,o.from,0);a!=o.from&&(i=Dt.cursor(a,-1))}else{let a=bk(this.atoms,o.from,-1),s=bk(this.atoms,o.to,1);(a!=o.from||s!=o.to)&&(i=Dt.range(o.from==o.anchor?a:s,o.from==o.head?a:s))}i&&(n||(n=t.ranges.slice()),n[r]=i)}return n?Dt.create(n,t.mainIndex):t}select(t){let{view:n}=this,r=this.skipAtoms(this.style.get(t,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection)||r.main.assoc!=n.state.selection.main.assoc&&this.dragging===!1)&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function p9e(e,t){let n=e.state.facet(IX);return n.length?n[0](t):Fn.mac?t.metaKey:t.ctrlKey}function g9e(e,t){let n=e.state.facet(DX);return n.length?n[0](t):Fn.mac?!t.altKey:!t.ctrlKey}function v9e(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=m2(e.root);if(!r||r.rangeCount==0)return!0;let o=r.getRangeAt(0).getClientRects();for(let i=0;i<o.length;i++){let a=o[i];if(a.left<=t.clientX&&a.right>=t.clientX&&a.top<=t.clientY&&a.bottom>=t.clientY)return!0}return!1}function m9e(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=Zo.get(n))&&r.ignoreEvent(t))return!1;return!0}const gf=Object.create(null),hc=Object.create(null),rG=Fn.ie&&Fn.ie_version<15||Fn.ios&&Fn.webkit_version<604;function y9e(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),oG(e,n.value)},50)}function oG(e,t){let{state:n}=e,r,o=1,i=n.toText(t),a=i.lines==n.selection.ranges.length;if(IR!=null&&n.selection.ranges.every(l=>l.empty)&&IR==i.toString()){let l=-1;r=n.changeByRange(u=>{let d=n.doc.lineAt(u.from);if(d.from==l)return{range:u};l=d.from;let p=n.toText((a?i.line(o++).text:t)+n.lineBreak);return{changes:{from:d.from,insert:p},range:Dt.cursor(u.from+p.length)}})}else a?r=n.changeByRange(l=>{let u=i.line(o++);return{changes:{from:l.from,to:l.to,insert:u.text},range:Dt.cursor(l.from+u.length)}}):r=n.replaceSelection(i);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}hc.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};gf.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);hc.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};hc.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};gf.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(jX))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=O9e(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new h9e(e,t,n,r)),r&&e.observer.ignore(()=>SX(e.contentDOM));let o=e.inputState.mouseSelection;if(o)return o.start(t),o.dragging===!1}return!1};function a9(e,t,n,r){if(r==1)return Dt.cursor(t,n);if(r==2)return t9e(e.state,t,n);{let o=Hi.find(e.docView,t),i=e.state.doc.lineAt(o?o.posAtEnd:t),a=o?o.posAtStart:i.from,s=o?o.posAtEnd:i.to;return s<e.state.doc.length&&s==i.to&&s++,Dt.range(a,s)}}let iG=(e,t)=>e>=t.top&&e<=t.bottom,s9=(e,t,n)=>iG(t,n)&&e>=n.left&&e<=n.right;function b9e(e,t,n,r){let o=Hi.find(e.docView,t);if(!o)return 1;let i=t-o.posAtStart;if(i==0)return 1;if(i==o.length)return-1;let a=o.coordsAt(i,-1);if(a&&s9(n,r,a))return-1;let s=o.coordsAt(i,1);return s&&s9(n,r,s)?1:a&&iG(r,a)?-1:1}function l9(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:b9e(e,n,t.clientX,t.clientY)}}const _9e=Fn.ie&&Fn.ie_version<=11;let u9=null,c9=0,f9=0;function aG(e){if(!_9e)return e.detail;let t=u9,n=f9;return u9=e,f9=Date.now(),c9=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(c9+1)%3:1}function O9e(e,t){let n=l9(e,t),r=aG(t),o=e.state.selection;return{update(i){i.docChanged&&(n.pos=i.changes.mapPos(n.pos),o=o.map(i.changes))},get(i,a,s){let l=l9(e,i),u,d=a9(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let p=a9(e,n.pos,n.bias,r),v=Math.min(p.from,d.from),y=Math.max(p.to,d.to);d=v<d.from?Dt.range(v,y):Dt.range(y,v)}return a?o.replaceRange(o.main.extend(d.from,d.to)):s&&r==1&&o.ranges.length>1&&(u=w9e(o,l.pos))?u:s?o.addRange(d):Dt.create([d])}}}function w9e(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:o}=e.ranges[n];if(r<=t&&o>=t)return Dt.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}gf.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:r}=e.inputState;return r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};function d9(e,t,n,r){if(!n)return;let o=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{mouseSelection:i}=e.inputState,a=r&&i&&i.dragging&&g9e(e,t)?{from:i.dragging.from,to:i.dragging.to}:null,s={from:o,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(o,-1),head:l.mapPos(o,1)},userEvent:a?"move.drop":"input.drop"})}gf.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),o=0,i=()=>{++o==n.length&&d9(e,t,r.filter(a=>a!=null).join(e.state.lineBreak),!1)};for(let a=0;a<n.length;a++){let s=new FileReader;s.onerror=i,s.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[a]=s.result),i()},s.readAsText(n[a])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return d9(e,t,r,!0),!0}return!1};gf.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=rG?null:t.clipboardData;return n?(oG(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(y9e(e),!1)};function S9e(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function x9e(e){let t=[],n=[],r=!1;for(let o of e.selection.ranges)o.empty||(t.push(e.sliceDoc(o.from,o.to)),n.push(o));if(!t.length){let o=-1;for(let{from:i}of e.selection.ranges){let a=e.doc.lineAt(i);a.number>o&&(t.push(a.text),n.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),o=a.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let IR=null;gf.copy=gf.cut=(e,t)=>{let{text:n,ranges:r,linewise:o}=x9e(e.state);if(!n&&!o)return!1;IR=o?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let i=rG?null:t.clipboardData;return i?(i.clearData(),i.setData("text/plain",n),!0):(S9e(e,n),!1)};const sG=Pd.define();function lG(e,t){let n=[];for(let r of e.facet(VX)){let o=r(e,t);o&&n.push(o)}return n?e.update({effects:n,annotations:sG.of(!0)}):null}function uG(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=lG(e.state,t);n?e.dispatch(n):e.update([])}},10)}hc.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),uG(e)};hc.blur=e=>{e.observer.clearSelectionRange(),uG(e)};hc.compositionstart=hc.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};hc.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Fn.chrome&&Fn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};hc.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};gf.beforeinput=(e,t)=>{var n;let r;if(Fn.chrome&&Fn.android&&(r=tG.find(o=>o.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let o=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var i;(((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>o+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const h9=new Set;function k9e(e){h9.has(e)||(h9.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const p9=["pre-wrap","normal","pre-line","break-spaces"];class C9e{constructor(t){this.lineWrapping=t,this.doc=io.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return p9.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r<t.length;r++){let o=t[r];o<0?r++:this.heightSamples[Math.floor(o*10)]||(n=!0,this.heightSamples[Math.floor(o*10)]=!0)}return n}refresh(t,n,r,o,i,a){let s=p9.indexOf(t)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=o,this.lineLength=i,l){this.heightSamples={};for(let u=0;u<a.length;u++){let d=a[u];d<0?u++:this.heightSamples[Math.floor(d*10)]=!0}}return l}}class E9e{constructor(t,n){this.from=t,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class tf{constructor(t,n,r,o,i){this.from=t,this.length=n,this.top=r,this.height=o,this._content=i}get type(){return typeof this._content=="number"?ks.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof lp?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(t){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new tf(this.from,this.length+t.length,this.top,this.height+t.height,n)}}var Wo=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Wo||(Wo={}));const _k=.001;class Cs{constructor(t,n,r=2){this.length=t,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>_k&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return Cs.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,o){let i=this,a=r.doc;for(let s=o.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:d,toB:p}=o[s],v=i.lineAt(l,Wo.ByPosNoHeight,r.setDoc(n),0,0),y=v.to>=u?v:i.lineAt(u,Wo.ByPosNoHeight,r,0,0);for(p+=y.to-u,u=y.to;s>0&&v.from<=o[s-1].toA;)l=o[s-1].fromA,d=o[s-1].fromB,s--,l<v.from&&(v=i.lineAt(l,Wo.ByPosNoHeight,r,0,0));d+=v.from-l,l=v.from;let w=bD.build(r.setDoc(a),t,d,p);i=i.replace(l,u,w)}return i.updateHeight(r,0)}static empty(){return new Cl(0,0)}static of(t){if(t.length==1)return t[0];let n=0,r=t.length,o=0,i=0;for(;;)if(n==r)if(o>i*2){let s=t[n-1];s.break?t.splice(--n,1,s.left,null,s.right):t.splice(--n,1,s.left,s.right),r+=1+s.break,o-=s.size}else if(i>o*2){let s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,i-=s.size}else break;else if(o<i){let s=t[n++];s&&(o+=s.size)}else{let s=t[--r];s&&(i+=s.size)}let a=0;return t[n-1]==null?(a=1,n--):t[n]==null&&(a=1,r++),new T9e(Cs.of(t.slice(0,n)),a,Cs.of(t.slice(r)))}}Cs.prototype.size=1;class cG extends Cs{constructor(t,n,r){super(t,n),this.deco=r}blockAt(t,n,r,o){return new tf(o,this.length,r,this.height,this.deco||0)}lineAt(t,n,r,o,i){return this.blockAt(0,r,o,i)}forEachLine(t,n,r,o,i,a){t<=i+this.length&&n>=i&&a(this.blockAt(0,r,o,i))}updateHeight(t,n=0,r=!1,o){return o&&o.from<=n&&o.more&&this.setHeight(t,o.heights[o.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Cl extends cG{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,o){return new tf(o,this.length,r,this.height,this.breaks)}replace(t,n,r){let o=r[0];return r.length==1&&(o instanceof Cl||o instanceof Pa&&o.flags&4)&&Math.abs(this.length-o.length)<10?(o instanceof Pa?o=new Cl(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):Cs.of(r)}updateHeight(t,n=0,r=!1,o){return o&&o.from<=n&&o.more?this.setHeight(t,o.heights[o.index++]):(r||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Pa extends Cs{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,o=t.doc.lineAt(n+this.length).number,i=o-r+1,a,s=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*i);a=l/i,this.length>i+1&&(s=(this.height-l)/(this.length-i-1))}else a=this.height/i;return{firstLine:r,lastLine:o,perLine:a,perChar:s}}blockAt(t,n,r,o){let{firstLine:i,lastLine:a,perLine:s,perChar:l}=this.heightMetrics(n,o);if(n.lineWrapping){let u=o+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),d=n.doc.lineAt(u),p=s+d.length*l,v=Math.max(r,t-p/2);return new tf(d.from,d.length,v,p,0)}else{let u=Math.max(0,Math.min(a-i,Math.floor((t-r)/s))),{from:d,length:p}=n.doc.line(i+u);return new tf(d,p,r+s*u,s,0)}}lineAt(t,n,r,o,i){if(n==Wo.ByHeight)return this.blockAt(t,r,o,i);if(n==Wo.ByPosNoHeight){let{from:y,to:w}=r.doc.lineAt(t);return new tf(y,w-y,0,0,0)}let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(r,i),u=r.doc.lineAt(t),d=s+u.length*l,p=u.number-a,v=o+s*p+l*(u.from-i-p);return new tf(u.from,u.length,Math.max(o,Math.min(v,o+this.height-d)),d,0)}forEachLine(t,n,r,o,i,a){t=Math.max(t,i),n=Math.min(n,i+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(r,i);for(let d=t,p=o;d<=n;){let v=r.doc.lineAt(d);if(d==t){let w=v.number-s;p+=l*w+u*(t-i-w)}let y=l+u*v.length;a(new tf(v.from,v.length,p,y,0)),p+=y,d=v.to+1}}replace(t,n,r){let o=this.length-n;if(o>0){let i=r[r.length-1];i instanceof Pa?r[r.length-1]=new Pa(i.length+o):r.push(null,new Pa(o-1))}if(t>0){let i=r[0];i instanceof Pa?r[0]=new Pa(t+i.length):r.unshift(new Pa(t-1),null)}return Cs.of(r)}decomposeLeft(t,n){n.push(new Pa(t-1),null)}decomposeRight(t,n){n.push(null,new Pa(this.length-t-1))}updateHeight(t,n=0,r=!1,o){let i=n+this.length;if(o&&o.from<=n+this.length&&o.more){let a=[],s=Math.max(n,o.from),l=-1;for(o.from>n&&a.push(new Pa(o.from-n-1).updateHeight(t,n));s<=i&&o.more;){let d=t.doc.lineAt(s).length;a.length&&a.push(null);let p=o.heights[o.index++];l==-1?l=p:Math.abs(p-l)>=_k&&(l=-2);let v=new Cl(d,p);v.outdated=!1,a.push(v),s+=d+1}s<=i&&a.push(null,new Pa(i-s).updateHeight(t,s));let u=Cs.of(a);return(l<0||Math.abs(u.height-this.height)>=_k||Math.abs(l-this.heightMetrics(t,n).perLine)>=_k)&&(t.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class T9e extends Cs{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,o){let i=r+this.left.height;return t<i?this.left.blockAt(t,n,r,o):this.right.blockAt(t,n,i,o+this.left.length+this.break)}lineAt(t,n,r,o,i){let a=o+this.left.height,s=i+this.left.length+this.break,l=n==Wo.ByHeight?t<a:t<s,u=l?this.left.lineAt(t,n,r,o,i):this.right.lineAt(t,n,r,a,s);if(this.break||(l?u.to<s:u.from>s))return u;let d=n==Wo.ByPosNoHeight?Wo.ByPosNoHeight:Wo.ByPos;return l?u.join(this.right.lineAt(s,d,r,a,s)):this.left.lineAt(s,d,r,o,i).join(u)}forEachLine(t,n,r,o,i,a){let s=o+this.left.height,l=i+this.left.length+this.break;if(this.break)t<l&&this.left.forEachLine(t,n,r,o,i,a),n>=l&&this.right.forEachLine(t,n,r,s,l,a);else{let u=this.lineAt(l,Wo.ByPos,r,o,i);t<u.from&&this.left.forEachLine(t,u.from-1,r,o,i,a),u.to>=t&&u.from<=n&&a(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,s,l,a)}}replace(t,n,r){let o=this.left.length+this.break;if(n<o)return this.balanced(this.left.replace(t,n,r),this.right);if(t>this.left.length)return this.balanced(this.left,this.right.replace(t-o,n-o,r));let i=[];t>0&&this.decomposeLeft(t,i);let a=i.length;for(let s of r)i.push(s);if(t>0&&g9(i,a-1),n<this.length){let s=i.length;this.decomposeRight(n,i),g9(i,s)}return Cs.of(i)}decomposeLeft(t,n){let r=this.left.length;if(t<=r)return this.left.decomposeLeft(t,n);n.push(this.left),this.break&&(r++,t>=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,o=r+this.break;if(t>=o)return this.right.decomposeRight(t-o,n);t<r&&this.left.decomposeRight(t,n),this.break&&t<o&&n.push(null),n.push(this.right)}balanced(t,n){return t.size>2*n.size||n.size>2*t.size?Cs.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,o){let{left:i,right:a}=this,s=n+i.length+this.break,l=null;return o&&o.from<=n+i.length&&o.more?l=i=i.updateHeight(t,n,r,o):i.updateHeight(t,n,r),o&&o.from<=s+a.length&&o.more?l=a=a.updateHeight(t,s,r,o):a.updateHeight(t,s,r),l?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function g9(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Pa&&(r=e[t+1])instanceof Pa&&e.splice(t-1,3,new Pa(n.length+1+r.length))}const P9e=5;class bD{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),o=this.nodes[this.nodes.length-1];o instanceof Cl?o.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Cl(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t<n||r.heightRelevant){let o=r.widget?r.widget.estimatedHeight:0,i=r.widget?r.widget.lineBreaks:0;o<0&&(o=this.oracle.lineHeight);let a=n-t;r.block?this.addBlock(new cG(a,o,r)):(a||i||o>=P9e)&&this.addLineDeco(o,i,a)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTo<t&&((this.writtenTo<t-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new Cl(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Pa(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Cl)return t;let n=new Cl(0,-1);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let o=this.ensureLine();o.length+=r,o.collapsed+=r,o.widgetHeight=Math.max(o.widgetHeight,t),o.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Cl)&&!this.isCovered?this.nodes.push(new Cl(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=t;for(let o of this.nodes)o instanceof Cl&&o.updateHeight(this.oracle,r),r+=o?o.length:1;return this.nodes}static build(t,n,r,o){let i=new bD(r,t);return co.spans(n,r,o,i,0),i.finish(r)}}function $9e(e,t,n){let r=new A9e;return co.compare(e,t,n,r,0),r.changes}class A9e{constructor(){this.changes=[]}compareRange(){}comparePoint(t,n,r,o){(t<n||r&&r.heightRelevant||o&&o.heightRelevant)&&TR(t,n,this.changes,5)}}function M9e(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,o=r.defaultView||window,i=Math.max(0,n.left),a=Math.min(o.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(o.innerHeight,n.bottom);for(let u=e.parentNode;u&&u!=r.body;)if(u.nodeType==1){let d=u,p=window.getComputedStyle(d);if((d.scrollHeight>d.clientHeight||d.scrollWidth>d.clientWidth)&&p.overflow!="visible"){let v=d.getBoundingClientRect();i=Math.max(i,v.left),a=Math.min(a,v.right),s=Math.max(s,v.top),l=u==e.parentNode?v.bottom:Math.min(l,v.bottom)}u=p.position=="absolute"||p.position=="fixed"?d.offsetParent:d.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:i-n.left,right:Math.max(i,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function R9e(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class sA{constructor(t,n,r){this.from=t,this.to=n,this.size=r}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=n[r];if(o.from!=i.from||o.to!=i.to||o.size!=i.size)return!1}return!0}draw(t,n){return Xn.replace({widget:new N9e(this.size*(n?t.scaleY:t.scaleX),n)}).range(this.from,this.to)}}class N9e extends Ef{constructor(t,n){super(),this.size=t,this.vertical=n}eq(t){return t.size==this.size&&t.vertical==this.vertical}toDOM(){let t=document.createElement("div");return this.vertical?t.style.height=this.size+"px":(t.style.width=this.size+"px",t.style.height="2px",t.style.display="inline-block"),t}get estimatedHeight(){return this.vertical?this.size:-1}}class v9{constructor(t){this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=m9,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=ui.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(mD).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new C9e(n),this.stateDeco=t.facet(ZO).filter(r=>typeof r!="function"),this.heightMap=Cs.empty().applyChanges(this.stateDeco,io.empty,this.heightOracle.setDoc(t.doc),[new Su(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Xn.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let o=r?n.head:n.anchor;if(!t.some(({from:i,to:a})=>o>=i&&o<=a)){let{from:i,to:a}=this.lineBlockAt(o);t.push(new Ex(i,a))}}this.viewports=t.sort((r,o)=>r.from-o.from),this.scaler=this.heightMap.height<=7e6?m9:new j9e(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:R_(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(ZO).filter(d=>typeof d!="function");let o=t.changedRanges,i=Su.extendWithRanges(o,$9e(r,this.stateDeco,t?t.changes:Gi.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=a&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=i.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(zX)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),o=this.heightOracle,i=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?ui.RTL:ui.LTR;let a=this.heightOracle.mustRefreshForWrapping(i),s=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,d=0;if(s.width&&s.height){let P=s.width/n.offsetWidth,A=s.height/n.offsetHeight;(P>.995&&P<1.005||!isFinite(P)||Math.abs(s.width-n.offsetWidth)<1)&&(P=1),(A>.995&&A<1.005||!isFinite(A)||Math.abs(s.height-n.offsetHeight)<1)&&(A=1),(this.scaleX!=P||this.scaleY!=A)&&(this.scaleX=P,this.scaleY=A,u|=8,a=l=!0)}let p=(parseInt(r.paddingTop)||0)*this.scaleY,v=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=p||this.paddingBottom!=v)&&(this.paddingTop=p,this.paddingBottom=v,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(o.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let y=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=kX(t.scrollDOM);let w=(this.printing?R9e:M9e)(n,this.paddingTop),b=w.top-this.pixelViewport.top,k=w.bottom-this.pixelViewport.bottom;this.pixelViewport=w;let C=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(C!=this.inView&&(this.inView=C,C&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let T=s.width;if((this.contentDOMWidth!=T||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let P=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(P)&&(a=!0),a||o.lineWrapping&&Math.abs(T-this.contentDOMWidth)>o.charWidth){let{lineHeight:A,charWidth:R,textHeight:B}=t.docView.measureTextSize();a=A>0&&o.refresh(i,A,R,B,T/R,P),a&&(t.docView.minWidth=0,u|=8)}b>0&&k>0?d=Math.max(b,k):b<0&&k<0&&(d=Math.min(b,k)),o.heightChanged=!1;for(let A of this.viewports){let R=A.from==this.viewport.from?P:t.docView.measureVisibleLineHeights(A);this.heightMap=(a?Cs.empty().applyChanges(this.stateDeco,io.empty,this.heightOracle,[new Su(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,a,new E9e(A.from,R))}o.heightChanged&&(u|=2)}let $=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return $&&(this.viewport=this.getViewport(d,this.scrollTarget)),this.updateForViewport(),(u&2||$)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),o=this.heightMap,i=this.heightOracle,{visibleTop:a,visibleBottom:s}=this,l=new Ex(o.lineAt(a-r*1e3,Wo.ByHeight,i,0,0).from,o.lineAt(s+(1-r)*1e3,Wo.ByHeight,i,0,0).to);if(n){let{head:u}=n.range;if(u<l.from||u>l.to){let d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),p=o.lineAt(u,Wo.ByPos,i,0,0),v;n.y=="center"?v=(p.top+p.bottom)/2-d/2:n.y=="start"||n.y=="nearest"&&u<l.from?v=p.top:v=p.bottom-d,l=new Ex(o.lineAt(v-1e3/2,Wo.ByHeight,i,0,0).from,o.lineAt(v+d+1e3/2,Wo.ByHeight,i,0,0).to)}}return l}mapViewport(t,n){let r=n.mapPos(t.from,-1),o=n.mapPos(t.to,1);return new Ex(this.heightMap.lineAt(r,Wo.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(o,Wo.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:t,to:n},r=0){if(!this.inView)return!0;let{top:o}=this.heightMap.lineAt(t,Wo.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(n,Wo.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:s}=this;return(t==0||o<=a-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||i>=s+Math.max(10,Math.min(r,250)))&&o>a-2*1e3&&i<s+2*1e3}mapLineGaps(t,n){if(!t.length||n.empty)return t;let r=[];for(let o of t)n.touchesRange(o.from,o.to)||r.push(new sA(n.mapPos(o.from),n.mapPos(o.to),o.size));return r}ensureLineGaps(t,n){let r=this.heightOracle.lineWrapping,o=r?1e4:2e3,i=o>>1,a=o<<1;if(this.defaultTextDirection!=ui.LTR&&!r)return[];let s=[],l=(u,d,p,v)=>{if(d-u<i)return;let y=this.state.selection.main,w=[y.from];y.empty||w.push(y.to);for(let k of w)if(k>u&&k<d){l(u,k-10,p,v),l(k+10,d,p,v);return}let b=D9e(t,k=>k.from>=p.from&&k.to<=p.to&&Math.abs(k.from-u)<i&&Math.abs(k.to-d)<i&&!w.some(C=>k.from<C&&k.to>C));if(!b){if(d<p.to&&n&&r&&n.visibleRanges.some(k=>k.from<=d&&k.to>=d)){let k=n.moveToLineBoundary(Dt.cursor(d),!1,!0).head;k>u&&(d=k)}b=new sA(u,d,this.gapSize(p,u,d,v))}s.push(b)};for(let u of this.viewportLines){if(u.length<a)continue;let d=I9e(u.from,u.to,this.stateDeco);if(d.total<a)continue;let p=this.scrollTarget?this.scrollTarget.range.head:null,v,y;if(r){let w=o/this.heightOracle.lineLength*this.heightOracle.lineHeight,b,k;if(p!=null){let C=Px(d,p),T=((this.visibleBottom-this.visibleTop)/2+w)/u.height;b=C-T,k=C+T}else b=(this.visibleTop-u.top-w)/u.height,k=(this.visibleBottom-u.top+w)/u.height;v=Tx(d,b),y=Tx(d,k)}else{let w=d.total*this.heightOracle.charWidth,b=o*this.heightOracle.charWidth,k,C;if(p!=null){let T=Px(d,p),$=((this.pixelViewport.right-this.pixelViewport.left)/2+b)/w;k=T-$,C=T+$}else k=(this.pixelViewport.left-b)/w,C=(this.pixelViewport.right+b)/w;v=Tx(d,k),y=Tx(d,C)}v>u.from&&l(u.from,v,u,d),y<u.to&&l(y,u.to,u,d)}return s}gapSize(t,n,r,o){let i=Px(o,r)-Px(o,n);return this.heightOracle.lineWrapping?t.height*i:o.total*this.heightOracle.charWidth*i}updateLineGaps(t){sA.same(t,this.lineGaps)||(this.lineGaps=t,this.lineGapDeco=Xn.set(t.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];co.spans(t,this.viewport.from,this.viewport.to,{span(o,i){n.push({from:o,to:i})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((o,i)=>o.from!=n[i].from||o.to!=n[i].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||R_(this.heightMap.lineAt(t,Wo.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return R_(this.heightMap.lineAt(this.scaler.fromDOM(t),Wo.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return R_(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Ex{constructor(t,n){this.from=t,this.to=n}}function I9e(e,t,n){let r=[],o=e,i=0;return co.spans(n,e,t,{span(){},point(a,s){a>o&&(r.push({from:o,to:a}),i+=a-o),o=s}},20),o<t&&(r.push({from:o,to:t}),i+=t-o),{total:i,ranges:r}}function Tx({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let o=0;;o++){let{from:i,to:a}=t[o],s=a-i;if(r<=s)return i+r;r-=s}}function Px(e,t){let n=0;for(let{from:r,to:o}of e.ranges){if(t<=o){n+=t-r;break}n+=o-r}return n/e.total}function D9e(e,t){for(let n of e)if(t(n))return n}const m9={toDOM(e){return e},fromDOM(e){return e},scale:1};class j9e{constructor(t,n,r){let o=0,i=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,Wo.ByPos,t,0,0).top,d=n.lineAt(l,Wo.ByPos,t,0,0).bottom;return o+=d-u,{from:s,to:l,top:u,bottom:d,domTop:0,domBottom:0}}),this.scale=(7e6-o)/(n.height-o);for(let s of this.viewports)s.domTop=a+(s.top-i)*this.scale,a=s.domBottom=s.domTop+(s.bottom-s.top),i=s.bottom}toDOM(t){for(let n=0,r=0,o=0;;n++){let i=n<this.viewports.length?this.viewports[n]:null;if(!i||t<i.top)return o+(t-r)*this.scale;if(t<=i.bottom)return i.domTop+(t-i.top);r=i.bottom,o=i.domBottom}}fromDOM(t){for(let n=0,r=0,o=0;;n++){let i=n<this.viewports.length?this.viewports[n]:null;if(!i||t<i.domTop)return r+(t-o)/this.scale;if(t<=i.domBottom)return i.top+(t-i.domTop);r=i.bottom,o=i.domBottom}}}function R_(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new tf(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(o=>R_(o,t)):e._content)}const $x=Rn.define({combine:e=>e.join(" ")}),DR=Rn.define({combine:e=>e.indexOf(!0)>-1}),jR=ap.newName(),fG=ap.newName(),dG=ap.newName(),hG={"&light":"."+fG,"&dark":"."+dG};function LR(e,t,n){return new ap(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,o=>{if(o=="&")return e;if(!n||!n[o])throw new RangeError(`Unsupported selector: ${o}`);return n[o]}):e+" "+r}})}const L9e=LR("."+jR,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},hG),N_="\uFFFF";class B9e{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Lr.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=N_}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let o=t;;){this.findPointBefore(r,o);let i=this.text.length;this.readNode(o);let a=o.nextSibling;if(a==n)break;let s=Zo.get(o),l=Zo.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:y9(o))||y9(a)&&(o.nodeName!="BR"||o.cmIgnore)&&this.text.length>i)&&this.lineBreak(),o=a}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,a=1,s;if(this.lineSeparator?(i=n.indexOf(this.lineSeparator,r),a=this.lineSeparator.length):(s=o.exec(n))&&(i=s.index,a=s[0].length),this.append(n.slice(r,i<0?n.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=a-1);r=i+a}}readNode(t){if(t.cmIgnore)return;let n=Zo.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let o=r.iter();!o.next().done;)o.lineBreak?this.lineBreak():this.append(o.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(V9e(t,r.node,r.offset)?n:0))}}function V9e(e,t,n){for(;;){if(!t||n<pd(t))return!1;if(t==e)return!0;n=YO(t)+1,t=t.parentNode}}function y9(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class b9{constructor(t,n){this.node=t,this.offset=n,this.pos=-1}}class F9e{constructor(t,n,r,o){this.typeOver=o,this.bounds=null,this.text="";let{impreciseHead:i,impreciseAnchor:a}=t.docView;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let s=i||a?[]:W9e(t),l=new B9e(s,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=Y9e(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=i&&i.node==s.focusNode&&i.offset==s.focusOffset||!wR(t.contentDOM,s.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(s.focusNode,s.focusOffset),u=a&&a.node==s.anchorNode&&a.offset==s.anchorOffset||!wR(t.contentDOM,s.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(s.anchorNode,s.anchorOffset);this.newSel=Dt.single(u,l)}}}function pG(e,t){let n,{newSel:r}=t,o=e.state.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:a,to:s}=t.bounds,l=o.from,u=null;(i===8||Fn.android&&t.text.length<s-a)&&(l=o.to,u="end");let d=Q9e(e.state.doc.sliceString(a,s,N_),t.text,l-a,u);d&&(Fn.chrome&&i==13&&d.toB==d.from+2&&t.text.slice(d.from,d.toB)==N_+N_&&d.toB--,n={from:a+d.from,to:a+d.toA,insert:io.of(t.text.slice(d.from,d.toB).split(N_))})}else r&&(!e.hasFocus&&e.state.facet(GC)||r.main.eq(o))&&(r=null);if(!n&&!r)return!1;if(!n&&t.typeOver&&!o.empty&&r&&r.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(Fn.mac||Fn.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Dt.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:io.of([" "])}):Fn.chrome&&n&&n.from==n.to&&n.from==o.head&&n.insert.toString()==`
  189. `&&e.lineWrapping&&(r&&(r=Dt.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:io.of([" "])}),n){if(Fn.ios&&e.inputState.flushIOSKey()||Fn.android&&(n.from==o.from&&n.to==o.to&&n.insert.length==1&&n.insert.lines==2&&ky(e.contentDOM,"Enter",13)||(n.from==o.from-1&&n.to==o.to&&n.insert.length==0||i==8&&n.insert.length<n.to-n.from&&n.to>o.head)&&ky(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&n.insert.length==0&&ky(e.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,l=()=>s||(s=z9e(e,n,r));return e.state.facet(BX).some(u=>u(e,n.from,n.to,a,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(o)){let a=!1,s="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(a=!0),s=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:a,userEvent:s}),!0}else return!1}function z9e(e,t,n){let r,o=e.state,i=o.selection.main;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let s=i.from<t.from?o.sliceDoc(i.from,t.from):"",l=i.to>t.to?o.sliceDoc(t.to,i.to):"";r=o.replaceSelection(e.state.toText(s+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let s=o.changes(t),l=n&&n.main.to<=s.newLength?n.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){let u=e.state.sliceDoc(t.from,t.to),d,p=n&&KX(e,n.main.head);if(p){let w=t.insert.length-(t.to-t.from);d={from:p.from,to:p.to-w}}else d=e.state.doc.lineAt(i.head);let v=i.to-t.to,y=i.to-i.from;r=o.changeByRange(w=>{if(w.from==i.from&&w.to==i.to)return{changes:s,range:l||w.map(s)};let b=w.to-v,k=b-u.length;if(w.to-w.from!=y||e.state.sliceDoc(k,b)!=u||w.to>=d.from&&w.from<=d.to)return{range:w};let C=o.changes({from:k,to:b,insert:t.insert}),T=w.to-i.to;return{changes:C,range:l?Dt.range(Math.max(0,l.anchor+T),Math.max(0,l.head+T)):w.map(C)}})}else r={changes:s,selection:l&&o.selection.replaceRange(l)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),o.update(r,{userEvent:a,scrollIntoView:!0})}function Q9e(e,t,n,r){let o=Math.min(e.length,t.length),i=0;for(;i<o&&e.charCodeAt(i)==t.charCodeAt(i);)i++;if(i==o&&e.length==t.length)return null;let a=e.length,s=t.length;for(;a>0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if(r=="end"){let l=Math.max(0,i-Math.min(a,s));n-=a+l-i}return a<i&&e.length<t.length?(i-=n<=i&&n>=a?i-n:0,s=i+(s-a),a=i):s<i&&(i-=n<=i&&n>=s?i-n:0,a=i+(a-s),s=i),{from:i,toA:a,toB:s}}function W9e(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}=e.observer.selectionRange;return n&&(t.push(new b9(n,r)),(o!=n||i!=r)&&t.push(new b9(o,i))),t}function Y9e(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?Dt.single(n+t,r+t):null}const Z9e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},lA=Fn.ie&&Fn.ie_version<=11;class U9e{constructor(t){this.view=t,this.active=!1,this.selectionRange=new $Ve,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(Fn.ie&&Fn.ie_version<=11||Fn.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),lA&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(t.scrollDOM),this.resizeContent=new ResizeObserver(()=>this.view.requestMeasure()),this.resizeContent.observe(t.contentDOM)),this.addWindowListeners(this.win=t.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,o=this.selectionRange;if(r.state.facet(GC)?r.root.activeElement!=this.dom:!yk(r.dom,o))return;let i=o.anchorNode&&r.docView.nearest(o.anchorNode);if(i&&i.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(Fn.ie&&Fn.ie_version<=11||Fn.android&&Fn.chrome)&&!r.state.selection.main.empty&&o.focusNode&&y2(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=Fn.safari&&t.root.nodeType==11&&CVe(this.dom.ownerDocument)==this.dom&&H9e(this.view)||m2(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=yk(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&MVe(this.dom,n)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(t,n){this.selectionRange.set(t.node,t.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let t=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&t<this.scrollTargets.length&&this.scrollTargets[t]==r?t++:n||(n=this.scrollTargets.slice(0,t)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(t<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,t)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Z9e),lA&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){!this.active||(this.active=!1,this.observer.disconnect(),lA&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(t,n){var r;if(!this.delayedAndroidKey){let o=()=>{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&ky(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(o)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,o=!1;for(let i of t){let a=this.readMutation(i);!a||(a.typeOver&&(o=!0),n==-1?{from:n,to:r}=a:(n=Math.min(a.from,n),r=Math.max(a.to,r)))}return{from:n,to:r,typeOver:o}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),o=this.selectionChanged&&yk(this.dom,this.selectionRange);if(t<0&&!o)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new F9e(this.view,t,n,r);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,o=pG(this.view,n);return this.view.state==r&&this.view.update([]),o}readMutation(t){let n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){let r=_9(n,t.previousSibling||t.target.previousSibling,-1),o=_9(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:o?n.posBefore(o):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,n,r,o;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect(),(o=this.resizeContent)===null||o===void 0||o.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function _9(e,t,n){for(;t;){let r=Zo.get(t);if(r&&r.parent==e)return r;let o=t.parentNode;t=o!=e.dom?o:n>0?t.nextSibling:t.previousSibling}return null}function H9e(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return y2(s.node,s.offset,i,a)&&([r,o,i,a]=[i,a,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}}class xn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(o=>n(o,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||AVe(t.parent)||document,this.viewState=new v9(t.state||Lr.create(t)),this.plugins=this.state.facet(A_).map(r=>new oA(r));for(let r of this.plugins)r.update(this);this.observer=new U9e(this),this.inputState=new u9e(this),this.inputState.ensureHandlers(this.plugins),this.docView=new KV(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),t.parent&&t.parent.appendChild(this.dom)}dispatch(...t){let n=t.length==1&&t[0]instanceof Ji?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,o,i=this.state;for(let v of t){if(v.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=v.state}if(this.destroyed){this.viewState.state=i;return}let a=this.hasFocus,s=0,l=null;t.some(v=>v.annotation(sG))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=lG(i,a),l||(s=1));let u=this.observer.delayedAndroidKey,d=null;if(u?(this.observer.clearDelayedAndroidKey(),d=this.observer.readChange(),(d&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(d=null)):this.observer.clear(),i.facet(Lr.phrases)!=this.state.facet(Lr.phrases))return this.setState(i);o=_2.create(this,i,t),o.flags|=s;let p=this.viewState.scrollTarget;try{this.updateState=2;for(let v of t){if(p&&(p=p.map(v.changes)),v.scrollIntoView){let{main:y}=v.state.selection;p=new b2(y.empty?y:Dt.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of v.effects)y.is(GV)&&(p=y.value)}this.viewState.update(o,p),this.bidiCache=O2.update(this.bidiCache,o.changes),o.empty||(this.updatePlugins(o),this.inputState.update(o)),n=this.docView.update(o),this.state.facet(M_)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(v=>v.isUserEvent("select.pointer")))}finally{this.updateState=0}if(o.startState.facet($x)!=o.state.facet($x)&&(this.viewState.mustMeasureContent=!0),(n||r||p||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!o.empty)for(let v of this.state.facet(PR))v(o);(l||d)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),d&&!pG(this,d)&&u.force&&ky(this.contentDOM,u.key,u.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new v9(t),this.plugins=t.facet(A_).map(r=>new oA(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView=new KV(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(A_),r=t.state.facet(A_);if(n!=r){let o=[];for(let i of r){let a=n.indexOf(i);if(a<0)o.push(new oA(i));else{let s=this.plugins[a];s.mustUpdate=t,o.push(s)}}for(let i of this.plugins)i.mustUpdate!=t&&i.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=t;for(let o=0;o<this.plugins.length;o++)this.plugins[o].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}measure(t=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,o=r.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:a}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(a<0)if(kX(r))i=-1,a=this.viewState.heightMap.height;else{let y=this.viewState.scrollAnchorAt(o);i=y.from,a=y.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let d=u.map(y=>{try{return y.read(this)}catch(w){return cc(this.state,w),O9}}),p=_2.create(this,this.state,[]),v=!1;p.flags|=l,n?n.flags|=l:n=p,this.updateState=2,p.empty||(this.updatePlugins(p),this.inputState.update(p),this.updateAttrs(),v=this.docView.update(p));for(let y=0;y<u.length;y++)if(d[y]!=O9)try{let w=u[y];w.write&&w.write(d[y],this)}catch(w){cc(this.state,w)}if(v&&this.docView.updateSelection(!0),!p.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null;continue}else{let w=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)-a;if(w>1||w<-1){o=o+w,r.scrollTop=o/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(PR))s(n)}get themeClasses(){return jR+" "+(this.state.facet(DR)?dG:fG)+" "+this.state.facet($x)}updateAttrs(){let t=w9(this,QX,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(GC)?"true":"false",class:"cm-content",style:`${Fn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),w9(this,mD,n);let r=this.observer.ignore(()=>{let o=ER(this.contentDOM,this.contentAttrs,n),i=ER(this.dom,this.editorAttrs,t);return o||i});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let o of r.effects)if(o.is(xn.announce)){n&&(this.announceDOM.textContent=""),n=!1;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=o.value}}mountStyles(){this.styleModules=this.state.facet(M_);let t=this.state.facet(xn.cspNonce);ap.mount(this.root,this.styleModules.concat(L9e).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===t.key){this.measureRequests[n]=t;return}}this.measureRequests.push(t)}}plugin(t){let n=this.pluginMap.get(t);return(n===void 0||n&&n.spec!=t)&&this.pluginMap.set(t,n=this.plugins.find(r=>r.spec==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return aA(this,t,o9(this,t,n,r))}moveByGroup(t,n){return aA(this,t,o9(this,t,n,r=>s9e(this,t.head,r)))}moveToLineBoundary(t,n,r=!0){return a9e(this,t,n,r)}moveVertically(t,n,r){return aA(this,t,l9e(this,t,n,r))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){return this.readMeasured(),eG(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let o=this.state.doc.lineAt(t),i=this.bidiSpans(o),a=i[Nh.find(i,t-o.from,-1,n)];return HC(r,a.dir==ui.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(FX)||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>X9e)return GX(t.length);let n=this.textDirectionAt(t.from),r;for(let i of this.bidiCache)if(i.from==t.from&&i.dir==n&&(i.fresh||XX(i.isolates,r=qV(this,t.from,t.to))))return i.order;r||(r=qV(this,t.from,t.to));let o=ZVe(t.text,n,r);return this.bidiCache.push(new O2(t.from,t.to,n,r,!0,o)),o}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||Fn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{SX(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return GV.of(new b2(typeof t=="number"?Dt.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}static domEventHandlers(t){return Mi.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Mi.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=ap.newName(),o=[$x.of(r),M_.of(LR(`.${r}`,t))];return n&&n.dark&&o.push(DR.of(!0)),o}static baseTheme(t){return Sv.lowest(M_.of(LR("."+jR,t,hG)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),o=r&&Zo.get(r)||Zo.get(t);return((n=o==null?void 0:o.rootView)===null||n===void 0?void 0:n.view)||null}}xn.styleModule=M_;xn.inputHandler=BX;xn.focusChangeEffect=VX;xn.perLineTextDirection=FX;xn.exceptionSink=LX;xn.updateListener=PR;xn.editable=GC;xn.mouseSelectionStyle=jX;xn.dragMovesSelection=DX;xn.clickAddsSelectionRange=IX;xn.decorations=ZO;xn.atomicRanges=yD;xn.bidiIsolatedRanges=WX;xn.scrollMargins=YX;xn.darkTheme=DR;xn.cspNonce=Rn.define({combine:e=>e.length?e[0]:""});xn.contentAttributes=mD;xn.editorAttributes=QX;xn.lineWrapping=xn.contentAttributes.of({class:"cm-lineWrapping"});xn.announce=Or.define();const X9e=4096,O9={};class O2{constructor(t,n,r,o,i,a){this.from=t,this.to=n,this.dir=r,this.isolates=o,this.fresh=i,this.order=a}static update(t,n){if(n.empty&&!t.some(i=>i.fresh))return t;let r=[],o=t.length?t[t.length-1].dir:ui.LTR;for(let i=Math.max(0,t.length-10);i<t.length;i++){let a=t[i];a.dir==o&&!n.touchesRange(a.from,a.to)&&r.push(new O2(n.mapPos(a.from,1),n.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return r}}function w9(e,t,n){for(let r=e.state.facet(t),o=r.length-1;o>=0;o--){let i=r[o],a=typeof i=="function"?i(e):i;a&&CR(a,n)}return n}const G9e=Fn.mac?"mac":Fn.windows?"win":Fn.linux?"linux":"key";function q9e(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let o,i,a,s;for(let l=0;l<n.length-1;++l){const u=n[l];if(/^(cmd|meta|m)$/i.test(u))s=!0;else if(/^a(lt)?$/i.test(u))o=!0;else if(/^(c|ctrl|control)$/i.test(u))i=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))t=="mac"?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+u)}return o&&(r="Alt-"+r),i&&(r="Ctrl-"+r),s&&(r="Meta-"+r),a&&(r="Shift-"+r),r}function Ax(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n!==!1&&t.shiftKey&&(e="Shift-"+e),e}const K9e=Sv.default(xn.domEventHandlers({keydown(e,t){return vG(gG(t.state),e,t,"editor")}})),j1=Rn.define({enables:K9e}),S9=new WeakMap;function gG(e){let t=e.facet(j1),n=S9.get(t);return n||S9.set(t,n=tFe(t.reduce((r,o)=>r.concat(o),[]))),n}function J9e(e,t,n){return vG(gG(e.state),t,e,n)}let Th=null;const eFe=4e3;function tFe(e,t=G9e){let n=Object.create(null),r=Object.create(null),o=(a,s)=>{let l=r[a];if(l==null)r[a]=s;else if(l!=s)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},i=(a,s,l,u,d)=>{var p,v;let y=n[a]||(n[a]=Object.create(null)),w=s.split(/ (?!$)/).map(C=>q9e(C,t));for(let C=1;C<w.length;C++){let T=w.slice(0,C).join(" ");o(T,!0),y[T]||(y[T]={preventDefault:!0,stopPropagation:!1,run:[$=>{let P=Th={view:$,prefix:T,scope:a};return setTimeout(()=>{Th==P&&(Th=null)},eFe),!0}]})}let b=w.join(" ");o(b,!1);let k=y[b]||(y[b]={preventDefault:!1,stopPropagation:!1,run:((v=(p=y._any)===null||p===void 0?void 0:p.run)===null||v===void 0?void 0:v.slice())||[]});l&&k.run.push(l),u&&(k.preventDefault=!0),d&&(k.stopPropagation=!0)};for(let a of e){let s=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of s){let d=n[u]||(n[u]=Object.create(null));d._any||(d._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let p in d)d[p].run.push(a.any)}let l=a[t]||a.key;if(!!l)for(let u of s)i(u,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&i(u,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}function vG(e,t,n,r){let o=kVe(t),i=$a(o,0),a=hu(i)==o.length&&o!=" ",s="",l=!1,u=!1,d=!1;Th&&Th.view==n&&Th.scope==r&&(s=Th.prefix+" ",nG.indexOf(t.keyCode)<0&&(u=!0,Th=null));let p=new Set,v=k=>{if(k){for(let C of k.run)if(!p.has(C)&&(p.add(C),C(n,t)))return k.stopPropagation&&(d=!0),!0;k.preventDefault&&(k.stopPropagation&&(d=!0),u=!0)}return!1},y=e[r],w,b;return y&&(v(y[s+Ax(o,t,!a)])?l=!0:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Fn.windows&&t.ctrlKey&&t.altKey)&&(w=sp[t.keyCode])&&w!=o?(v(y[s+Ax(w,t,!0)])||t.shiftKey&&(b=WO[t.keyCode])!=o&&b!=w&&v(y[s+Ax(b,t,!1)]))&&(l=!0):a&&t.shiftKey&&v(y[s+Ax(o,t,!0)])&&(l=!0),!l&&v(y._any)&&(l=!0)),u&&(l=!0),l&&d&&t.stopPropagation(),l}class L1{constructor(t,n,r,o,i){this.className=t,this.left=n,this.top=r,this.width=o,this.height=i}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let o=t.coordsAtPos(r.head,r.assoc||1);if(!o)return[];let i=mG(t);return[new L1(n,o.left-i.left,o.top-i.top,null,o.bottom-o.top)]}else return nFe(t,n,r)}}function mG(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==ui.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function x9(e,t,n){let r=Dt.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:ks.Text}}function nFe(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),o=Math.min(n.to,e.viewport.to),i=e.textDirection==ui.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=mG(e),u=a.querySelector(".cm-line"),d=u&&window.getComputedStyle(u),p=s.left+(d?parseInt(d.paddingLeft)+Math.min(0,parseInt(d.textIndent)):0),v=s.right-(d?parseInt(d.paddingRight):0),y=NR(e,r),w=NR(e,o),b=y.type==ks.Text?y:null,k=w.type==ks.Text?w:null;if(b&&(e.lineWrapping||y.widgetLineBreaks)&&(b=x9(e,r,b)),k&&(e.lineWrapping||w.widgetLineBreaks)&&(k=x9(e,o,k)),b&&k&&b.from==k.from)return T($(n.from,n.to,b));{let A=b?$(n.from,null,b):P(y,!1),R=k?$(null,n.to,k):P(w,!0),B=[];return(b||y).to<(k||w).from-(b&&k?1:0)||y.widgetLineBreaks>1&&A.bottom+e.defaultLineHeight/2<R.top?B.push(C(p,A.bottom,v,R.top)):A.bottom<R.top&&e.elementAtHeight((A.bottom+R.top)/2).type==ks.Text&&(A.bottom=R.top=(A.bottom+R.top)/2),T(A).concat(B).concat(T(R))}function C(A,R,B,N){return new L1(t,A-l.left,R-l.top-.01,B-A,N-R+.01)}function T({top:A,bottom:R,horizontal:B}){let N=[];for(let I=0;I<B.length;I+=2)N.push(C(B[I],A,B[I+1],R));return N}function $(A,R,B){let N=1e9,I=-1e9,D=[];function L(ae,K,H,ne,X){let V=e.coordsAtPos(ae,ae==B.to?-2:2),G=e.coordsAtPos(H,H==B.from?2:-2);!V||!G||(N=Math.min(V.top,G.top,N),I=Math.max(V.bottom,G.bottom,I),X==ui.LTR?D.push(i&&K?p:V.left,i&&ne?v:G.right):D.push(!i&&ne?p:G.left,!i&&K?v:V.right))}let z=A!=null?A:B.from,q=R!=null?R:B.to;for(let ae of e.visibleRanges)if(ae.to>z&&ae.from<q)for(let K=Math.max(ae.from,z),H=Math.min(ae.to,q);;){let ne=e.state.doc.lineAt(K);for(let X of e.bidiSpans(ne)){let V=X.from+ne.from,G=X.to+ne.from;if(V>=H)break;G>K&&L(Math.max(V,K),A==null&&V<=z,Math.min(G,H),R==null&&G>=q,X.dir)}if(K=ne.to+1,K>=H)break}return D.length==0&&L(z,A==null,q,R==null,e.textDirection),{top:N,bottom:I,horizontal:D}}function P(A,R){let B=s.top+(R?A.top:A.bottom);return{top:B,bottom:B,horizontal:[]}}}function rFe(e,t){return e.constructor==t.constructor&&e.eq(t)}class oFe{constructor(t,n){this.view=t,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}update(t){t.startState.facet(Ok)!=t.state.facet(Ok)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let n=0,r=t.facet(Ok);for(;n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:t,scaleY:n}=this.view;(t!=this.scaleX||n!=this.scaleY)&&(this.scaleX=t,this.scaleY=n,this.dom.style.transform=`scale(${1/t}, ${1/n})`)}draw(t){if(t.length!=this.drawn.length||t.some((n,r)=>!rFe(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let o of t)o.update&&n&&o.constructor&&this.drawn[r].constructor&&o.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(o.draw(),n);for(;n;){let o=n.nextSibling;n.remove(),n=o}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Ok=Rn.define();function yG(e){return[Mi.define(t=>new oFe(t,e)),Ok.of(e)]}const bG=!Fn.ios,HO=Rn.define({combine(e){return Cf(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function iFe(e={}){return[HO.of(e),aFe,sFe,lFe,zX.of(!0)]}function _G(e){return e.startState.facet(HO)!=e.state.facet(HO)}const aFe=yG({above:!0,markers(e){let{state:t}=e,n=t.facet(HO),r=[];for(let o of t.selection.ranges){let i=o==t.selection.main;if(o.empty?!i||bG:n.drawRangeCursor){let a=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=o.empty?o:Dt.cursor(o.head,o.head>o.anchor?-1:1);for(let l of L1.forRange(e,a,s))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=_G(e);return n&&k9(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){k9(t.state,e)},class:"cm-cursorLayer"});function k9(e,t){t.style.animationDuration=e.facet(HO).cursorBlinkRate+"ms"}const sFe=yG({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:L1.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||_G(e)},class:"cm-selectionLayer"}),OG={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};bG&&(OG[".cm-line"].caretColor="transparent !important");const lFe=Sv.highest(xn.theme(OG)),wG=Or.define({map(e,t){return e==null?null:t.mapPos(e)}}),I_=pa.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(wG)?r.value:n,e)}}),uFe=Mi.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(I_);n==null?this.cursor!=null&&((t=this.cursor)===null||t===void 0||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(I_)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(I_),n=t!=null&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(I_)!=e&&this.view.dispatch({effects:wG.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function cFe(){return[I_,uFe]}function C9(e,t,n,r,o){t.lastIndex=0;for(let i=e.iterRange(n,r),a=n,s;!i.next().done;a+=i.value.length)if(!i.lineBreak)for(;s=t.exec(i.value);)o(a+s.index,s)}function fFe(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:o,to:i}of n)o=Math.max(e.state.doc.lineAt(o).from,o-t),i=Math.min(e.state.doc.lineAt(i).to,i+t),r.length&&r[r.length-1].to>=o?r[r.length-1].to=i:r.push({from:o,to:i});return r}class dFe{constructor(t){const{regexp:n,decoration:r,decorate:o,boundary:i,maxLength:a=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,o)this.addMatch=(s,l,u,d)=>o(d,u,u+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,u,d)=>{let p=r(s,l,u);p&&d(u,u+s[0].length,p)};else if(r)this.addMatch=(s,l,u,d)=>d(u,u+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=a}createDeco(t){let n=new ip,r=n.add.bind(n);for(let{from:o,to:i}of fFe(t,this.maxLength))C9(t.state.doc,this.regexp,o,i,(a,s)=>this.addMatch(s,t,a,r));return n.finish()}updateDeco(t,n){let r=1e9,o=-1;return t.docChanged&&t.changes.iterChanges((i,a,s,l)=>{l>t.view.viewport.from&&s<t.view.viewport.to&&(r=Math.min(s,r),o=Math.max(l,o))}),t.viewportChanged||o-r>1e3?this.createDeco(t.view):o>-1?this.updateRange(t.view,n.map(t.changes),r,o):n}updateRange(t,n,r,o){for(let i of t.visibleRanges){let a=Math.max(i.from,r),s=Math.min(i.to,o);if(s>a){let l=t.state.doc.lineAt(a),u=l.to<s?t.state.doc.lineAt(s):l,d=Math.max(i.from,l.from),p=Math.min(i.to,u.to);if(this.boundary){for(;a>l.from;a--)if(this.boundary.test(l.text[a-1-l.from])){d=a;break}for(;s<u.to;s++)if(this.boundary.test(u.text[s-u.from])){p=s;break}}let v=[],y,w=(b,k,C)=>v.push(C.range(b,k));if(l==u)for(this.regexp.lastIndex=d-l.from;(y=this.regexp.exec(l.text))&&y.index<p-l.from;)this.addMatch(y,t,y.index+l.from,w);else C9(t.state.doc,this.regexp,d,p,(b,k)=>this.addMatch(k,t,b,w));n=n.update({filterFrom:d,filterTo:p,filter:(b,k)=>b<d||k>p,add:v})}}return n}}const BR=/x/.unicode!=null?"gu":"g",hFe=new RegExp(`[\0-\b
  190. -\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,BR),pFe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let uA=null;function gFe(){var e;if(uA==null&&typeof document!="undefined"&&document.body){let t=document.body.style;uA=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return uA||!1}const wk=Rn.define({combine(e){let t=Cf(e,{render:null,specialChars:hFe,addSpecialChars:null});return(t.replaceTabs=!gFe())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,BR)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,BR)),t}});function vFe(e={}){return[wk.of(e),mFe()]}let E9=null;function mFe(){return E9||(E9=Mi.fromClass(class{constructor(e){this.view=e,this.decorations=Xn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(wk)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new dFe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:o}=n.state,i=$a(t[0],0);if(i==9){let a=o.lineAt(r),s=n.state.tabSize,l=S0(a.text,s,r-a.from);return Xn.replace({widget:new OFe((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=Xn.replace({widget:new _Fe(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(wk);e.startState.facet(wk)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const yFe="\u2022";function bFe(e){return e>=32?yFe:e==10?"\u2424":String.fromCharCode(9216+e)}class _Fe extends Ef{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=bFe(this.code),r=t.state.phrase("Control character")+" "+(pFe[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,r,n);if(o)return o;let i=document.createElement("span");return i.textContent=n,i.title=r,i.setAttribute("aria-label",r),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class OFe extends Ef{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function wFe(){return xFe}const SFe=Xn.line({class:"cm-activeLine"}),xFe=Mi.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let o=e.lineBlockAt(r.head);o.from>t&&(n.push(SFe.range(o.from)),t=o.from)}return Xn.set(n)}},{decorations:e=>e.decorations});class kFe extends Ef{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}coordsAt(t){let n=t.firstChild?Xy(t.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(t.parentNode),o=HC(n[0],r.direction!="rtl"),i=parseInt(r.lineHeight);return o.bottom-o.top>i*1.5?{left:o.left,right:o.right,top:o.top,bottom:o.top+i}:o}ignoreEvent(){return!1}}function CFe(e){return Mi.fromClass(class{constructor(t){this.view=t,this.placeholder=e?Xn.set([Xn.widget({widget:new kFe(e),side:1}).range(0)]):Xn.none}get decorations(){return this.view.state.doc.length?Xn.none:this.placeholder}},{decorations:t=>t.decorations})}const VR=2e3;function EFe(e,t,n){let r=Math.min(t.line,n.line),o=Math.max(t.line,n.line),i=[];if(t.off>VR||n.off>VR||t.col<0||n.col<0){let a=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let l=r;l<=o;l++){let u=e.doc.line(l);u.length<=s&&i.push(Dt.range(u.from+a,u.to+s))}}else{let a=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let l=r;l<=o;l++){let u=e.doc.line(l),d=bR(u.text,a,e.tabSize,!0);if(d<0)i.push(Dt.cursor(u.to));else{let p=bR(u.text,s,e.tabSize);i.push(Dt.range(u.from+d,u.from+p))}}}return i}function TFe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function T9(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),o=n-r.from,i=o>VR?-1:o==r.length?TFe(e,t.clientX):S0(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:i,off:o}}function PFe(e,t){let n=T9(e,t),r=e.state.selection;return n?{update(o){if(o.docChanged){let i=o.changes.mapPos(o.startState.doc.line(n.line).from),a=o.state.doc.lineAt(i);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},r=r.map(o.changes)}},get(o,i,a){let s=T9(e,o);if(!s)return r;let l=EFe(e.state,n,s);return l.length?a?Dt.create(l.concat(r.ranges)):Dt.create(l):r}}:null}function $Fe(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return xn.mouseSelectionStyle.of((n,r)=>t(r)?PFe(n,r):null)}const AFe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},MFe={style:"cursor: crosshair"};function RFe(e={}){let[t,n]=AFe[e.key||"Alt"],r=Mi.fromClass(class{constructor(o){this.view=o,this.isDown=!1}set(o){this.isDown!=o&&(this.isDown=o,this.view.update([]))}},{eventObservers:{keydown(o){this.set(o.keyCode==t||n(o))},keyup(o){(o.keyCode==t||!n(o))&&this.set(!1)},mousemove(o){this.set(n(o))}}});return[r,xn.contentAttributes.of(o=>{var i;return!((i=o.plugin(r))===null||i===void 0)&&i.isDown?MFe:null})]}const Mx="-10000px";class SG{constructor(t,n,r){this.facet=n,this.createTooltipView=r,this.input=t.state.facet(n),this.tooltips=this.input.filter(o=>o),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let o=t.state.facet(this.facet),i=o.filter(l=>l);if(o===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let a=[],s=n?[]:null;for(let l=0;l<i.length;l++){let u=i[l],d=-1;if(!!u){for(let p=0;p<this.tooltips.length;p++){let v=this.tooltips[p];v&&v.create==u.create&&(d=p)}if(d<0)a[l]=this.createTooltipView(u),s&&(s[l]=!!u.above);else{let p=a[l]=this.tooltipViews[d];s&&(s[l]=n[d]),p.update&&p.update(t)}}}for(let l of this.tooltipViews)a.indexOf(l)<0&&(l.dom.remove(),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(s.forEach((l,u)=>n[u]=l),n.length=s.length),this.input=o,this.tooltips=i,this.tooltipViews=a,!0}}function NFe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const cA=Rn.define({combine:e=>{var t,n,r;return{position:Fn.ios?"absolute":((t=e.find(o=>o.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(o=>o.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(o=>o.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||NFe}}}),P9=new WeakMap,xG=Mi.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(cA);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new SG(e,_D,n=>this.createTooltip(n)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(cA);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let o of this.manager.tooltipViews)o.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let o of this.manager.tooltipViews)this.container.appendChild(o.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=Mx,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(e=n.destroy)===null||e===void 0||e.call(n);this.parent&&this.container.remove(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{offsetParent:o}=this.manager.tooltipViews[0].dom;r=!!(o&&o!=this.container.ownerDocument.body)}if(r||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(t=o.width/this.parent.offsetWidth,n=o.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((o,i)=>{let a=this.manager.tooltipViews[i];return a.getCoords?a.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(cA).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:r,scaleX:o,scaleY:i}=e,a=[];for(let s=0;s<this.manager.tooltips.length;s++){let l=this.manager.tooltips[s],u=this.manager.tooltipViews[s],{dom:d}=u,p=e.pos[s],v=e.size[s];if(!p||p.bottom<=Math.max(n.top,r.top)||p.top>=Math.min(n.bottom,r.bottom)||p.right<Math.max(n.left,r.left)-.1||p.left>Math.min(n.right,r.right)+.1){d.style.top=Mx;continue}let y=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,w=y?7:0,b=v.right-v.left,k=(t=P9.get(u))!==null&&t!==void 0?t:v.bottom-v.top,C=u.offset||DFe,T=this.view.textDirection==ui.LTR,$=v.width>r.right-r.left?T?r.left:r.right-v.width:T?Math.min(p.left-(y?14:0)+C.x,r.right-b):Math.max(r.left,p.left-b+(y?14:0)-C.x),P=this.above[s];!l.strictSide&&(P?p.top-(v.bottom-v.top)-C.y<r.top:p.bottom+(v.bottom-v.top)+C.y>r.bottom)&&P==r.bottom-p.bottom>p.top-r.top&&(P=this.above[s]=!P);let A=(P?p.top-r.top:r.bottom-p.bottom)-w;if(A<k&&u.resize!==!1){if(A<this.view.defaultLineHeight){d.style.top=Mx;continue}P9.set(u,k),d.style.height=(k=A)/i+"px"}else d.style.height&&(d.style.height="");let R=P?p.top-k-w-C.y:p.bottom+w+C.y,B=$+b;if(u.overlap!==!0)for(let N of a)N.left<B&&N.right>$&&N.top<R+k&&N.bottom>R&&(R=P?N.top-k-2-w:N.bottom+w+2);if(this.position=="absolute"?(d.style.top=(R-e.parent.top)/i+"px",d.style.left=($-e.parent.left)/o+"px"):(d.style.top=R/i+"px",d.style.left=$/o+"px"),y){let N=p.left+(T?C.x:-C.x)-($+14-7);y.style.left=N/o+"px"}u.overlap!==!0&&a.push({left:$,top:R,right:B,bottom:R+k}),d.classList.toggle("cm-tooltip-above",P),d.classList.toggle("cm-tooltip-below",!P),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Mx}},{eventObservers:{scroll(){this.maybeMeasure()}}}),IFe=xn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:`${7}px`,width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:`${7}px solid transparent`,borderRight:`${7}px solid transparent`},".cm-tooltip-above &":{bottom:`-${7}px`,"&:before":{borderTop:`${7}px solid #bbb`},"&:after":{borderTop:`${7}px solid #f5f5f5`,bottom:"1px"}},".cm-tooltip-below &":{top:`-${7}px`,"&:before":{borderBottom:`${7}px solid #bbb`},"&:after":{borderBottom:`${7}px solid #f5f5f5`,top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),DFe={x:0,y:0},_D=Rn.define({enables:[xG,IFe]}),w2=Rn.define();class OD{static create(t){return new OD(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new SG(t,w2,n=>this.createHostedView(n))}createHostedView(t){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}}const jFe=_D.compute([w2],e=>{let t=e.facet(w2).filter(n=>n);return t.length===0?null:{pos:Math.min(...t.map(n=>n.pos)),end:Math.max(...t.filter(n=>n.end!=null).map(n=>n.end)),create:OD.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class LFe{constructor(t,n,r,o,i){this.view=t,this.source=n,this.field=r,this.setHover=o,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;t<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-t):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:t,lastMove:n}=this,r=t.docView.nearest(n.target);if(!r)return;let o,i=1;if(r instanceof Rh)o=r.posAtStart;else{if(o=t.posAtCoords(n),o==null)return;let s=t.coordsAtPos(o);if(!s||n.y<s.top||n.y>s.bottom||n.x<s.left-t.defaultCharacterWidth||n.x>s.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(o)).find(d=>d.from<=o&&d.to>=o),u=l&&l.dir==ui.RTL?-1:1;i=n.x<s.left?-u:u}let a=this.source(t,o,i);if(a!=null&&a.then){let s=this.pending={pos:o};a.then(l=>{this.pending==s&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>cc(t.state,l,"hover tooltip"))}else a&&t.dispatch({effects:this.setHover.of(a)})}mousemove(t){var n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let r=this.active;if(r&&!$9(this.lastMove.target)||this.pending){let{pos:o}=r||this.pending,i=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:o;(o==i?this.view.posAtCoords(this.lastMove)!=o:!BFe(this.view,o,i,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!$9(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function $9(e){for(let t=e;t;t=t.parentNode)if(t.nodeType==1&&t.classList.contains("cm-tooltip"))return!0;return!1}function BFe(e,t,n,r,o,i){let a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>r||a.right<r||a.top>o||Math.min(a.bottom,s)<o)return!1;let l=e.posAtCoords({x:r,y:o},!1);return l>=t&&l<=n}function VFe(e,t={}){let n=Or.define(),r=pa.define({create(){return null},update(o,i){if(o&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,o)))return null;if(o&&i.docChanged){let a=i.changes.mapPos(o.pos,-1,Ra.TrackDel);if(a==null)return null;let s=Object.assign(Object.create(null),o);s.pos=a,o.end!=null&&(s.end=i.changes.mapPos(o.end)),o=s}for(let a of i.effects)a.is(n)&&(o=a.value),a.is(FFe)&&(o=null);return o},provide:o=>w2.from(o)});return[r,Mi.define(o=>new LFe(o,e,r,n,t.hoverTime||300)),jFe]}function kG(e,t){let n=e.plugin(xG);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const FFe=Or.define(),A9=Rn.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function XO(e,t){let n=e.plugin(CG),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const CG=Mi.fromClass(class{constructor(e){this.input=e.state.facet(GO),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(A9);this.top=new Rx(e,!0,t.topContainer),this.bottom=new Rx(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(A9);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Rx(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Rx(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(GO);if(n!=this.input){let r=n.filter(l=>l),o=[],i=[],a=[],s=[];for(let l of r){let u=this.specs.indexOf(l),d;u<0?(d=l(e.view),s.push(d)):(d=this.panels[u],d.update&&d.update(e)),o.push(d),(d.top?i:a).push(d)}this.specs=r,this.panels=o,this.top.sync(i),this.bottom.sync(a);for(let l of s)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>xn.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Rx{constructor(t,n,r){this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let n of this.panels)n.destroy&&t.indexOf(n)<0&&n.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let t=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;t!=n.dom;)t=M9(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=M9(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function M9(e){let t=e.nextSibling;return e.remove(),t}const GO=Rn.define({enables:CG});class md extends dv{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}md.prototype.elementClass="";md.prototype.toDOM=void 0;md.prototype.mapMode=Ra.TrackBefore;md.prototype.startSide=md.prototype.endSide=-1;md.prototype.point=!0;const Sk=Rn.define(),zFe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>co.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},sO=Rn.define();function QFe(e){return[EG(),sO.of(Object.assign(Object.assign({},zFe),e))]}const FR=Rn.define({combine:e=>e.some(t=>t)});function EG(e){let t=[WFe];return e&&e.fixed===!1&&t.push(FR.of(!0)),t}const WFe=Mi.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(sO).map(t=>new N9(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(FR),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(FR)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=co.iter(this.view.state.facet(Sk),this.view.viewport.from),r=[],o=this.gutters.map(i=>new YFe(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(i.type)){let a=!0;for(let s of i.type)if(s.type==ks.Text&&a){zR(n,r,s.from);for(let l of o)l.line(this.view,s,r);a=!1}else if(s.widget)for(let l of o)l.widget(this.view,s)}else if(i.type==ks.Text){zR(n,r,i.from);for(let a of o)a.line(this.view,i,r)}else if(i.widget)for(let a of o)a.widget(this.view,i);for(let i of o)i.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(sO),n=e.state.facet(sO),r=e.docChanged||e.heightChanged||e.viewportChanged||!co.eq(e.startState.facet(Sk),e.state.facet(Sk),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let o of this.gutters)o.update(e)&&(r=!0);else{r=!0;let o=[];for(let i of n){let a=t.indexOf(i);a<0?o.push(new N9(this.view,i)):(this.gutters[a].update(e),o.push(this.gutters[a]))}for(let i of this.gutters)i.dom.remove(),o.indexOf(i)<0&&i.destroy();for(let i of o)this.dom.appendChild(i.dom);this.gutters=o}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>xn.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==ui.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function R9(e){return Array.isArray(e)?e:[e]}function zR(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class YFe{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=co.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:o}=this,i=(n.top-this.height)/t.scaleY,a=n.height/t.scaleY;if(this.i==o.elements.length){let s=new TG(t,a,i,r);o.elements.push(s),o.dom.appendChild(s.dom)}else o.elements[this.i].update(t,a,i,r);this.height=n.bottom,this.i++}line(t,n,r){let o=[];zR(this.cursor,o,n.from),r.length&&(o=o.concat(r));let i=this.gutter.config.lineMarker(t,n,o);i&&o.unshift(i);let a=this.gutter;o.length==0&&!a.config.renderEmptyElements||this.addElement(t,n,o)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class N9{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,o=>{let i=o.target,a;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let l=i.getBoundingClientRect();a=(l.top+l.bottom)/2}else a=o.clientY;let s=t.lineBlockAtHeight(a-t.documentTop);n.domEventHandlers[r](t,s,o)&&o.preventDefault()});this.markers=R9(n.markers(t)),n.initialSpacer&&(this.spacer=new TG(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=R9(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let o=this.config.updateSpacer(this.spacer.markers[0],t);o!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[o])}let r=t.view.viewport;return!co.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class TG{constructor(t,n,r,o){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,o)}update(t,n,r,o){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),ZFe(this.markers,o)||this.setMarkers(t,o)}setMarkers(t,n){let r="cm-gutterElement",o=this.dom.firstChild;for(let i=0,a=0;;){let s=a,l=i<n.length?n[i++]:null,u=!1;if(l){let d=l.elementClass;d&&(r+=" "+d);for(let p=a;p<this.markers.length;p++)if(this.markers[p].compare(l)){s=p,u=!0;break}}else s=this.markers.length;for(;a<s;){let d=this.markers[a++];if(d.toDOM){d.destroy(o);let p=o.nextSibling;o.remove(),o=p}}if(!l)break;l.toDOM&&(u?o=o.nextSibling:this.dom.insertBefore(l.toDOM(t),o)),u&&a++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function ZFe(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}const UFe=Rn.define(),sy=Rn.define({combine(e){return Cf(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,n){let r=Object.assign({},t);for(let o in n){let i=r[o],a=n[o];r[o]=i?(s,l,u)=>i(s,l,u)||a(s,l,u):a}return r}})}});class fA extends md{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function dA(e,t){return e.state.facet(sy).formatNumber(t,e.state)}const HFe=sO.compute([sy],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(UFe)},lineMarker(t,n,r){return r.some(o=>o.toDOM)?null:new fA(dA(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(sy)!=t.state.facet(sy),initialSpacer(t){return new fA(dA(t,I9(t.state.doc.lines)))},updateSpacer(t,n){let r=dA(n.view,I9(n.view.state.doc.lines));return r==t.number?t:new fA(r)},domEventHandlers:e.facet(sy).domEventHandlers}));function XFe(e={}){return[sy.of(e),EG(),HFe]}function I9(e){let t=9;for(;t<e;)t=t*10+9;return t}const GFe=new class extends md{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},qFe=Sk.compute(["selection"],e=>{let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.head).from;o>n&&(n=o,t.push(GFe.range(o)))}return co.of(t)});function KFe(){return qFe}const PG=1024;let JFe=0;class hA{constructor(t,n){this.from=t,this.to=n}}class Zr{constructor(t={}){this.id=JFe++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=tl.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Zr.closedBy=new Zr({deserialize:e=>e.split(" ")});Zr.openedBy=new Zr({deserialize:e=>e.split(" ")});Zr.group=new Zr({deserialize:e=>e.split(" ")});Zr.contextHash=new Zr({perNode:!0});Zr.lookAhead=new Zr({perNode:!0});Zr.mounted=new Zr({perNode:!0});class S2{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Zr.mounted.id]}}const eze=Object.create(null);class tl{constructor(t,n,r,o=0){this.name=t,this.props=n,this.id=r,this.flags=o}static define(t){let n=t.props&&t.props.length?Object.create(null):eze,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),o=new tl(t.name||"",n,t.id,r);if(t.props){for(let i of t.props)if(Array.isArray(i)||(i=i(o)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[i[0].id]=i[1]}}return o}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Zr.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let o of r.split(" "))n[o]=t[r];return r=>{for(let o=r.prop(Zr.group),i=-1;i<(o?o.length:0);i++){let a=n[i<0?r.name:o[i]];if(a)return a}}}}tl.none=new tl("",Object.create(null),0,8);class wD{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let o=null;for(let i of t){let a=i(r);a&&(o||(o=Object.assign({},r.props)),o[a[0].id]=a[1])}n.push(o?new tl(r.name,o,r.id,r.flags):r)}return new wD(n)}}const Nx=new WeakMap,D9=new WeakMap;var qi;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(qi||(qi={}));class Bi{constructor(t,n,r,o,i){if(this.type=t,this.children=n,this.positions=r,this.length=o,this.props=null,i&&i.length){this.props=Object.create(null);for(let[a,s]of i)this.props[typeof a=="number"?a:a.id]=s}}toString(){let t=S2.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let o=r.toString();o&&(n&&(n+=","),n+=o)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new WR(this.topNode,t)}cursorAt(t,n=0,r=0){let o=Nx.get(this)||this.topNode,i=new WR(o);return i.moveTo(t,n),Nx.set(this,i._tree),i}get topNode(){return new Ks(this,0,0,null)}resolve(t,n=0){let r=qO(Nx.get(this)||this.topNode,t,n,!1);return Nx.set(this,r),r}resolveInner(t,n=0){let r=qO(D9.get(this)||this.topNode,t,n,!0);return D9.set(this,r),r}resolveStack(t,n=0){return rze(this,t,n)}iterate(t){let{enter:n,leave:r,from:o=0,to:i=this.length}=t,a=t.mode||0,s=(a&qi.IncludeAnonymous)>0;for(let l=this.cursor(a|qi.IncludeAnonymous);;){let u=!1;if(l.from<=i&&l.to>=o&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:kD(tl.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,o)=>new Bi(this.type,n,r,o,this.propValues),t.makeTree||((n,r,o)=>new Bi(tl.none,n,r,o)))}static build(t){return oze(t)}}Bi.empty=new Bi(tl.none,[],[],0);class SD{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new SD(this.buffer,this.index)}}class xv{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return tl.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],o=this.set.types[n],i=o.name;if(/\W/.test(i)&&!o.isError&&(i=JSON.stringify(i)),t+=4,r==t)return i;let a=[];for(;t<r;)a.push(this.childString(t)),t=this.buffer[t+3];return i+"("+a.join(",")+")"}findChild(t,n,r,o,i){let{buffer:a}=this,s=-1;for(let l=t;l!=n&&!($G(i,o,a[l+1],a[l+2])&&(s=l,r>0));l=a[l+3]);return s}slice(t,n,r){let o=this.buffer,i=new Uint16Array(n-t),a=0;for(let s=t,l=0;s<n;){i[l++]=o[s++],i[l++]=o[s++]-r;let u=i[l++]=o[s++]-r;i[l++]=o[s++]-t,a=Math.max(a,u)}return new xv(i,a,this.set)}}function $G(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function qO(e,t,n,r){for(var o;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let a=!r&&e instanceof Ks&&e.index<0?null:e.parent;if(!a)return e;e=a}let i=r?0:qi.IgnoreOverlays;if(r)for(let a=e,s=a.parent;s;a=s,s=a.parent)a instanceof Ks&&a.index<0&&((o=s.enter(t,n,i))===null||o===void 0?void 0:o.from)!=a.from&&(e=s);for(;;){let a=e.enter(t,n,i);if(!a)return e;e=a}}class AG{cursor(t=0){return new WR(this,t)}getChild(t,n=null,r=null){let o=j9(this,t,n,r);return o.length?o[0]:null}getChildren(t,n=null,r=null){return j9(this,t,n,r)}resolve(t,n=0){return qO(this,t,n,!1)}resolveInner(t,n=0){return qO(this,t,n,!0)}matchContext(t){return QR(this,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let o=n.lastChild;if(!o||o.to!=n.to)break;o.type.isError&&o.from==o.to?(r=n,n=o.prevSibling):n=o}return r}get node(){return this}get next(){return this.parent}}class Ks extends AG{constructor(t,n,r,o){super(),this._tree=t,this.from=n,this.index=r,this._parent=o}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,o,i=0){for(let a=this;;){for(let{children:s,positions:l}=a._tree,u=n>0?s.length:-1;t!=u;t+=n){let d=s[t],p=l[t]+a.from;if(!!$G(o,r,p,p+d.length)){if(d instanceof xv){if(i&qi.ExcludeBuffers)continue;let v=d.findChild(0,d.buffer.length,n,r-p,o);if(v>-1)return new rf(new tze(a,d,t,p),null,v)}else if(i&qi.IncludeAnonymous||!d.type.isAnonymous||xD(d)){let v;if(!(i&qi.IgnoreMounts)&&(v=S2.get(d))&&!v.overlay)return new Ks(v.tree,p,t,a);let y=new Ks(d,p,t,a);return i&qi.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(n<0?d.children.length-1:0,n,r,o)}}}if(i&qi.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?t=a.index+n:t=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let o;if(!(r&qi.IgnoreOverlays)&&(o=S2.get(this._tree))&&o.overlay){let i=t-this.from;for(let{from:a,to:s}of o.overlay)if((n>0?a<=i:a<i)&&(n<0?s>=i:s>i))return new Ks(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function j9(e,t,n,r){let o=e.cursor(),i=[];if(!o.firstChild())return i;if(n!=null){for(;!o.type.is(n);)if(!o.nextSibling())return i}for(;;){if(r!=null&&o.type.is(r))return i;if(o.type.is(t)&&i.push(o.node),!o.nextSibling())return r==null?i:[]}}function QR(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class tze{constructor(t,n,r,o){this.parent=t,this.buffer=n,this.index=r,this.start=o}}class rf extends AG{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:o}=this.context,i=o.findChild(this.index+4,o.buffer[this.index+3],t,n-this.context.start,r);return i<0?null:new rf(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&qi.ExcludeBuffers)return null;let{buffer:o}=this.context,i=o.findChild(this.index+4,o.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return i<0?null:new rf(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new rf(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new rf(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,o=this.index+4,i=r.buffer[this.index+3];if(i>o){let a=r.buffer[this.index+1];t.push(r.slice(o,i,a)),n.push(0)}return new Bi(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function MG(e){if(!e.length)return null;if(e.length==1)return e[0];let t=0,n=e[0];for(let i=1;i<e.length;i++){let a=e[i];(a.from>n.from||a.to<n.to)&&(n=a,t=i)}let r=n instanceof Ks&&n.index<0?null:n.parent,o=e.slice();return r?o[t]=r:o.splice(t,1),new nze(o,n)}class nze{constructor(t,n){this.heads=t,this.node=n}get next(){return MG(this.heads)}}function rze(e,t,n){let r=e.resolveInner(t,n),o=null;for(let i=r instanceof Ks?r:r.context.parent;i;i=i.parent)if(i.index<0){let a=i.parent;(o||(o=[r])).push(a.resolve(t,n)),i=a}else{let a=S2.get(i.tree);if(a&&a.overlay&&a.overlay[0].from<=t&&a.overlay[a.overlay.length-1].to>=t){let s=new Ks(a.tree,a.overlay[0].from+i.from,0,null);(o||(o=[r])).push(qO(s,t,n,!1))}}return o?MG(o):r}class WR{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Ks)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:o}=this.buffer;return this.type=n||o.set.types[o.buffer[t]],this.from=r+o.buffer[t+1],this.to=r+o.buffer[t+2],!0}yield(t){return t?t instanceof Ks?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:o}=this.buffer,i=o.findChild(this.index+4,o.buffer[this.index+3],t,n-this.buffer.start,r);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&qi.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&qi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&qi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let o=r<0?0:this.stack[r]+4;if(this.index!=o)return this.yieldBuf(n.findChild(o,this.index,-1,0,4))}else{let o=n.buffer[this.index+3];if(o<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(o)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:o}=this;if(o){if(t>0){if(this.index<o.buffer.buffer.length)return!1}else for(let i=0;i<this.index;i++)if(o.buffer.buffer[i+3]<this.index)return!1;({index:n,parent:r}=o)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let i=n+t,a=t<0?-1:r._tree.children.length;i!=a;i+=t){let s=r._tree.children[i];if(this.mode&qi.IncludeAnonymous||s instanceof xv||!s.type.isAnonymous||xD(s))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer){e:for(let o=this.index,i=this.stack.length;i>=0;){for(let a=t;a;a=a._parent)if(a.index==o){if(o==this.index)return a;n=a,r=i+1;break e}o=this.stack[--i]}}for(let o=r;o<this.stack.length;o++)n=new rf(this.buffer,n,this.stack[o]);return this.bufferNode=new rf(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let o=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(o=!0)}for(;o&&n&&n(this),o=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,o=!0}}}matchContext(t){if(!this.buffer)return QR(this.node,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let o=t.length-1,i=this.stack.length-1;o>=0;i--){if(i<0)return QR(this.node,t,o);let a=r[n.buffer[this.stack[i]]];if(!a.isAnonymous){if(t[o]&&t[o]!=a.name)return!1;o--}}return!0}}function xD(e){return e.children.some(t=>t instanceof xv||!t.type.isAnonymous||xD(t))}function oze(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:o=PG,reused:i=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new SD(n,n.length):n,l=r.types,u=0,d=0;function p(P,A,R,B,N){let{id:I,start:D,end:L,size:z}=s,q=d;for(;z<0;)if(s.next(),z==-1){let X=i[I];R.push(X),B.push(D-P);return}else if(z==-3){u=I;return}else if(z==-4){d=I;return}else throw new RangeError(`Unrecognized record size: ${z}`);let ae=l[I],K,H,ne=D-P;if(L-D<=o&&(H=b(s.pos-A,N))){let X=new Uint16Array(H.size-H.skip),V=s.pos-H.size,G=X.length;for(;s.pos>V;)G=k(H.start,X,G);K=new xv(X,L-H.start,r),ne=H.start-P}else{let X=s.pos-z;s.next();let V=[],G=[],se=I>=a?I:-1,he=0,pe=L;for(;s.pos>X;)se>=0&&s.id==se&&s.size>=0?(s.end<=pe-o&&(y(V,G,D,he,s.end,pe,se,q),he=V.length,pe=s.end),s.next()):p(D,X,V,G,se);if(se>=0&&he>0&&he<V.length&&y(V,G,D,he,D,pe,se,q),V.reverse(),G.reverse(),se>-1&&he>0){let Be=v(ae);K=kD(ae,V,G,0,V.length,0,L-D,Be,Be)}else K=w(ae,V,G,L-D,q-L)}R.push(K),B.push(ne)}function v(P){return(A,R,B)=>{let N=0,I=A.length-1,D,L;if(I>=0&&(D=A[I])instanceof Bi){if(!I&&D.type==P&&D.length==B)return D;(L=D.prop(Zr.lookAhead))&&(N=R[I]+D.length+L)}return w(P,A,R,B,N)}}function y(P,A,R,B,N,I,D,L){let z=[],q=[];for(;P.length>B;)z.push(P.pop()),q.push(A.pop()+R-N);P.push(w(r.types[D],z,q,I-N,L-I)),A.push(N-R)}function w(P,A,R,B,N=0,I){if(u){let D=[Zr.contextHash,u];I=I?[D].concat(I):[D]}if(N>25){let D=[Zr.lookAhead,N];I=I?[D].concat(I):[D]}return new Bi(P,A,R,B,I)}function b(P,A){let R=s.fork(),B=0,N=0,I=0,D=R.end-o,L={size:0,start:0,skip:0};e:for(let z=R.pos-P;R.pos>z;){let q=R.size;if(R.id==A&&q>=0){L.size=B,L.start=N,L.skip=I,I+=4,B+=4,R.next();continue}let ae=R.pos-q;if(q<0||ae<z||R.start<D)break;let K=R.id>=a?4:0,H=R.start;for(R.next();R.pos>ae;){if(R.size<0)if(R.size==-3)K+=4;else break e;else R.id>=a&&(K+=4);R.next()}N=H,B+=q,I+=K}return(A<0||B==P)&&(L.size=B,L.start=N,L.skip=I),L.size>4?L:void 0}function k(P,A,R){let{id:B,start:N,end:I,size:D}=s;if(s.next(),D>=0&&B<a){let L=R;if(D>4){let z=s.pos-(D-4);for(;s.pos>z;)R=k(P,A,R)}A[--R]=L,A[--R]=I-P,A[--R]=N-P,A[--R]=B}else D==-3?u=B:D==-4&&(d=B);return R}let C=[],T=[];for(;s.pos>0;)p(e.start||0,e.bufferStart||0,C,T,-1);let $=(t=e.length)!==null&&t!==void 0?t:C.length?T[0]+C[0].length:0;return new Bi(l[e.topID],C.reverse(),T.reverse(),$)}const L9=new WeakMap;function xk(e,t){if(!e.isAnonymous||t instanceof xv||t.type!=e)return 1;let n=L9.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Bi)){n=1;break}n+=xk(e,r)}L9.set(t,n)}return n}function kD(e,t,n,r,o,i,a,s,l){let u=0;for(let w=r;w<o;w++)u+=xk(e,t[w]);let d=Math.ceil(u*1.5/8),p=[],v=[];function y(w,b,k,C,T){for(let $=k;$<C;){let P=$,A=b[$],R=xk(e,w[$]);for($++;$<C;$++){let B=xk(e,w[$]);if(R+B>=d)break;R+=B}if($==P+1){if(R>d){let B=w[P];y(B.children,B.positions,0,B.children.length,b[P]+T);continue}p.push(w[P])}else{let B=b[$-1]+w[$-1].length-A;p.push(kD(e,w,b,P,$,A,B,null,l))}v.push(A+T-i)}}return y(t,n,r,o,0),(s||l)(p,v,a)}class ize{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let o=this.map.get(t);o||this.map.set(t,o=new Map),o.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof rf?this.setBuffer(t.context.buffer,t.index,n):t instanceof Ks&&this.map.set(t.tree,n)}get(t){return t instanceof rf?this.getBuffer(t.context.buffer,t.index):t instanceof Ks?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Kg{constructor(t,n,r,o,i=!1,a=!1){this.from=t,this.to=n,this.tree=r,this.offset=o,this.open=(i?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let o=[new Kg(0,t.length,t,0,!1,r)];for(let i of n)i.to>t.length&&o.push(i);return o}static applyChanges(t,n,r=128){if(!n.length)return t;let o=[],i=1,a=t.length?t[0]:null;for(let s=0,l=0,u=0;;s++){let d=s<n.length?n[s]:null,p=d?d.fromA:1e9;if(p-l>=r)for(;a&&a.from<p;){let v=a;if(l>=v.from||p<=v.to||u){let y=Math.max(v.from,l)-u,w=Math.min(v.to,p)-u;v=y>=w?null:new Kg(y,w,v.tree,v.offset+u,s>0,!!d)}if(v&&o.push(v),a.to>p)break;a=i<t.length?t[i++]:null}if(!d)break;l=d.toA,u=d.toA-d.toB}return o}}class RG{startParse(t,n,r){return typeof t=="string"&&(t=new aze(t)),r=r?r.length?r.map(o=>new hA(o.from,o.to)):[new hA(0,0)]:[new hA(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let o=this.startParse(t,n,r);for(;;){let i=o.advance();if(i)return i}}}class aze{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}new Zr({perNode:!0});let sze=0;class qc{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=sze++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new qc([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new x2;return n=>n.modified.indexOf(t)>-1?n:x2.get(n.base||n,n.modified.concat(t).sort((r,o)=>r.id-o.id))}}let lze=0;class x2{constructor(){this.instances=[],this.id=lze++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&uze(n,s.modified));if(r)return r;let o=[],i=new qc(o,t,n);for(let s of n)s.instances.push(i);let a=cze(n);for(let s of t.set)if(!s.modified.length)for(let l of a)o.push(x2.get(s,l));return i}}function uze(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function cze(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,o=t.length;r<o;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function CD(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let o of n.split(" "))if(o){let i=[],a=2,s=o;for(let p=0;;){if(s=="..."&&p>0&&p+3==o.length){a=1;break}let v=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!v)throw new RangeError("Invalid path: "+o);if(i.push(v[0]=="*"?"":v[0][0]=='"'?JSON.parse(v[0]):v[0]),p+=v[0].length,p==o.length)break;let y=o[p++];if(p==o.length&&y=="!"){a=0;break}if(y!="/")throw new RangeError("Invalid path: "+o);s=o.slice(p)}let l=i.length-1,u=i[l];if(!u)throw new RangeError("Invalid path: "+o);let d=new k2(r,a,l>0?i.slice(0,l):null);t[u]=d.sort(t[u])}}return NG.add(t)}const NG=new Zr;class k2{constructor(t,n,r,o){this.tags=t,this.mode=n,this.context=r,this.next=o}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}k2.empty=new k2([],2,null);function IG(e,t){let n=Object.create(null);for(let i of e)if(!Array.isArray(i.tag))n[i.tag.id]=i.class;else for(let a of i.tag)n[a.id]=i.class;let{scope:r,all:o=null}=t||{};return{style:i=>{let a=o;for(let s of i)for(let l of s.set){let u=n[l.id];if(u){a=a?a+" "+u:u;break}}return a},scope:r}}function fze(e,t){let n=null;for(let r of e){let o=r.style(t);o&&(n=n?n+" "+o:o)}return n}function dze(e,t,n,r=0,o=e.length){let i=new hze(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,o,"",i.highlighters),i.flush(o)}class hze{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,o,i){let{type:a,from:s,to:l}=t;if(s>=r||l<=n)return;a.isTop&&(i=this.highlighters.filter(y=>!y.scope||y.scope(a)));let u=o,d=pze(t)||k2.empty,p=fze(i,d.tags);if(p&&(u&&(u+=" "),u+=p,d.mode==1&&(o+=(o?" ":"")+p)),this.startSpan(Math.max(n,s),u),d.opaque)return;let v=t.tree&&t.tree.prop(Zr.mounted);if(v&&v.overlay){let y=t.node.enter(v.overlay[0].from+s,1),w=this.highlighters.filter(k=>!k.scope||k.scope(v.tree.type)),b=t.firstChild();for(let k=0,C=s;;k++){let T=k<v.overlay.length?v.overlay[k]:null,$=T?T.from+s:l,P=Math.max(n,C),A=Math.min(r,$);if(P<A&&b)for(;t.from<A&&(this.highlightRange(t,P,A,o,i),this.startSpan(Math.min(A,t.to),u),!(t.to>=$||!t.nextSibling())););if(!T||$>r)break;C=T.to+s,C>n&&(this.highlightRange(y.cursor(),Math.max(n,T.from+s),Math.min(r,C),"",w),this.startSpan(Math.min(r,C),u))}b&&t.parent()}else if(t.firstChild()){v&&(o="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,o,i),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function pze(e){let t=e.type.prop(NG);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const hn=qc.define,Ix=hn(),xh=hn(),B9=hn(xh),V9=hn(xh),kh=hn(),Dx=hn(kh),pA=hn(kh),Xc=hn(),kg=hn(Xc),Uc=hn(),Hc=hn(),YR=hn(),S_=hn(YR),jx=hn(),bt={comment:Ix,lineComment:hn(Ix),blockComment:hn(Ix),docComment:hn(Ix),name:xh,variableName:hn(xh),typeName:B9,tagName:hn(B9),propertyName:V9,attributeName:hn(V9),className:hn(xh),labelName:hn(xh),namespace:hn(xh),macroName:hn(xh),literal:kh,string:Dx,docString:hn(Dx),character:hn(Dx),attributeValue:hn(Dx),number:pA,integer:hn(pA),float:hn(pA),bool:hn(kh),regexp:hn(kh),escape:hn(kh),color:hn(kh),url:hn(kh),keyword:Uc,self:hn(Uc),null:hn(Uc),atom:hn(Uc),unit:hn(Uc),modifier:hn(Uc),operatorKeyword:hn(Uc),controlKeyword:hn(Uc),definitionKeyword:hn(Uc),moduleKeyword:hn(Uc),operator:Hc,derefOperator:hn(Hc),arithmeticOperator:hn(Hc),logicOperator:hn(Hc),bitwiseOperator:hn(Hc),compareOperator:hn(Hc),updateOperator:hn(Hc),definitionOperator:hn(Hc),typeOperator:hn(Hc),controlOperator:hn(Hc),punctuation:YR,separator:hn(YR),bracket:S_,angleBracket:hn(S_),squareBracket:hn(S_),paren:hn(S_),brace:hn(S_),content:Xc,heading:kg,heading1:hn(kg),heading2:hn(kg),heading3:hn(kg),heading4:hn(kg),heading5:hn(kg),heading6:hn(kg),contentSeparator:hn(Xc),list:hn(Xc),quote:hn(Xc),emphasis:hn(Xc),strong:hn(Xc),link:hn(Xc),monospace:hn(Xc),strikethrough:hn(Xc),inserted:hn(),deleted:hn(),changed:hn(),invalid:hn(),meta:jx,documentMeta:hn(jx),annotation:hn(jx),processingInstruction:hn(jx),definition:qc.defineModifier(),constant:qc.defineModifier(),function:qc.defineModifier(),standard:qc.defineModifier(),local:qc.defineModifier(),special:qc.defineModifier()};IG([{tag:bt.link,class:"tok-link"},{tag:bt.heading,class:"tok-heading"},{tag:bt.emphasis,class:"tok-emphasis"},{tag:bt.strong,class:"tok-strong"},{tag:bt.keyword,class:"tok-keyword"},{tag:bt.atom,class:"tok-atom"},{tag:bt.bool,class:"tok-bool"},{tag:bt.url,class:"tok-url"},{tag:bt.labelName,class:"tok-labelName"},{tag:bt.inserted,class:"tok-inserted"},{tag:bt.deleted,class:"tok-deleted"},{tag:bt.literal,class:"tok-literal"},{tag:bt.string,class:"tok-string"},{tag:bt.number,class:"tok-number"},{tag:[bt.regexp,bt.escape,bt.special(bt.string)],class:"tok-string2"},{tag:bt.variableName,class:"tok-variableName"},{tag:bt.local(bt.variableName),class:"tok-variableName tok-local"},{tag:bt.definition(bt.variableName),class:"tok-variableName tok-definition"},{tag:bt.special(bt.variableName),class:"tok-variableName2"},{tag:bt.definition(bt.propertyName),class:"tok-propertyName tok-definition"},{tag:bt.typeName,class:"tok-typeName"},{tag:bt.namespace,class:"tok-namespace"},{tag:bt.className,class:"tok-className"},{tag:bt.macroName,class:"tok-macroName"},{tag:bt.propertyName,class:"tok-propertyName"},{tag:bt.operator,class:"tok-operator"},{tag:bt.comment,class:"tok-comment"},{tag:bt.meta,class:"tok-meta"},{tag:bt.invalid,class:"tok-invalid"},{tag:bt.punctuation,class:"tok-punctuation"}]);var gA;const ly=new Zr;function DG(e){return Rn.define({combine:e?t=>t.concat(e):void 0})}const ED=new Zr;class lc{constructor(t,n,r=[],o=""){this.data=t,this.name=o,Lr.prototype.hasOwnProperty("tree")||Object.defineProperty(Lr.prototype,"tree",{get(){return na(this)}}),this.parser=n,this.extension=[up.of(this),Lr.languageData.of((i,a,s)=>{let l=F9(i,a,s),u=l.type.prop(ly);if(!u)return[];let d=i.facet(u),p=l.type.prop(ED);if(p){let v=l.resolve(a-l.from,s);for(let y of p)if(y.test(v,i)){let w=i.facet(y.facet);return y.type=="replace"?w:w.concat(d)}}return d})].concat(r)}isActiveAt(t,n,r=-1){return F9(t,n,r).type.prop(ly)==this.data}findRegions(t){let n=t.facet(up);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],o=(i,a)=>{if(i.prop(ly)==this.data){r.push({from:a,to:a+i.length});return}let s=i.prop(Zr.mounted);if(s){if(s.tree.prop(ly)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+a,to:l.to+a});else r.push({from:a,to:a+i.length});return}else if(s.overlay){let l=r.length;if(o(s.tree,s.overlay[0].from+a),r.length>l)return}}for(let l=0;l<i.children.length;l++){let u=i.children[l];u instanceof Bi&&o(u,i.positions[l]+a)}};return o(na(t),0),r}get allowsNesting(){return!0}}lc.setState=Or.define();function F9(e,t,n){let r=e.facet(up),o=na(e).topNode;if(!r||r.allowsNesting)for(let i=o;i;i=i.enter(t,n,qi.ExcludeBuffers))i.type.isTop&&(o=i);return o}class KO extends lc{constructor(t,n,r){super(t,n,[],r),this.parser=n}static define(t){let n=DG(t.languageData);return new KO(n,t.parser.configure({props:[ly.add(r=>r.isTop?n:void 0)]}),t.name)}configure(t,n){return new KO(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function na(e){let t=e.field(lc.state,!1);return t?t.tree:Bi.empty}class gze{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t<r||n>=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let x_=null;class C2{constructor(t,n,r=[],o,i,a,s,l){this.parser=t,this.state=n,this.fragments=r,this.tree=o,this.treeLen=i,this.viewport=a,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new C2(t,n,[],Bi.empty,0,r,[],null)}startParse(){return this.parser.startParse(new gze(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Bi.empty&&this.isDone(n!=null?n:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let o=Date.now()+t;t=()=>Date.now()>o}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let o=this.parse.advance();if(o)if(this.fragments=this.withoutTempSkipped(Kg.addTree(o,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=o,this.parse=null,this.treeLen<(n!=null?n:this.state.doc.length))this.parse=this.startParse();else return!0;if(t())return!1}})}takeTree(){let t,n;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(Kg.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=x_;x_=this;try{return t()}finally{x_=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=z9(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:o,treeLen:i,viewport:a,skipped:s}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,d,p,v)=>l.push({fromA:u,toA:d,fromB:p,toB:v})),r=Kg.applyChanges(r,l),o=Bi.empty,i=0,a={from:t.mapPos(a.from,-1),to:t.mapPos(a.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let d=t.mapPos(u.from,1),p=t.mapPos(u.to,-1);d<p&&s.push({from:d,to:p})}}}return new C2(this.parser,n,r,o,i,a,s,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:o,to:i}=this.skipped[r];o<t.to&&i>t.from&&(this.fragments=z9(this.fragments,o,i),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends RG{createParse(n,r,o){let i=o[0].from,a=o[o.length-1].to;return{parsedPos:i,advance(){let l=x_;if(l){for(let u of o)l.tempSkipped.push(u);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=a,new Bi(tl.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return x_}}function z9(e,t,n){return Kg.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class qy{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new qy(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=C2.create(t.facet(up).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new qy(r)}}lc.state=pa.define({create:qy.init,update(e,t){for(let n of t.effects)if(n.is(lc.setState))return n.value;return t.startState.facet(up)!=t.state.facet(up)?qy.init(t.state):e.apply(t)}});let jG=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback!="undefined"&&(jG=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:500-100})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const vA=typeof navigator!="undefined"&&((gA=navigator.scheduling)===null||gA===void 0?void 0:gA.isInputPending)?()=>navigator.scheduling.isInputPending():null,vze=Mi.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let n=this.view.state.field(lc.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:t}=this.view,n=t.field(lc.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=jG(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:o}}=this.view,i=r.field(lc.state);if(i.tree==i.context.tree&&i.context.isDone(o+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,t&&!vA?Math.max(25,t.timeRemaining()-5):1e9),s=i.context.treeLen<o&&r.doc.length>o+1e3,l=i.context.work(()=>vA&&vA()||Date.now()>a,o+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:lc.setState.of(new qy(i.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>cc(this.view.state,n)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),up=Rn.define({combine(e){return e.length?e[0]:null},enables:e=>[lc.state,vze,xn.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class LG{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}const mze=Rn.define(),B1=Rn.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function E2(e){let t=e.facet(B1);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function JO(e,t){let n="",r=e.tabSize,o=e.facet(B1)[0];if(o==" "){for(;t>=r;)n+=" ",t-=r;o=" "}for(let i=0;i<t;i++)n+=o;return n}function TD(e,t){e instanceof Lr&&(e=new qC(e));for(let r of e.state.facet(mze)){let o=r(e,t);if(o!==void 0)return o}let n=na(e.state);return n.length>=t?yze(e,n,t):null}class qC{constructor(t,n={}){this.state=t,this.options=n,this.unit=E2(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:o,simulateDoubleBreak:i}=this.options;return o!=null&&o>=r.from&&o<=r.to?i&&o==t?{text:"",from:t}:(n<0?o<t:o<=t)?{text:r.text.slice(o-r.from),from:o}:{text:r.text.slice(0,o-r.from),from:r.from}:r}textAfterPos(t,n=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:r,from:o}=this.lineAt(t,n);return r.slice(t-o,Math.min(r.length,t+100-o))}column(t,n=1){let{text:r,from:o}=this.lineAt(t,n),i=this.countColumn(r,t-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(i+=a-this.countColumn(r,r.search(/\S|$/))),i}countColumn(t,n=t.length){return S0(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:o}=this.lineAt(t,n),i=this.options.overrideIndentation;if(i){let a=i(o);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const PD=new Zr;function yze(e,t,n){let r=t.resolveStack(n),o=r.node.enterUnfinishedNodesBefore(n);if(o!=r.node){let i=[];for(let a=o;a!=r.node;a=a.parent)i.push(a);for(let a=i.length-1;a>=0;a--)r={node:i[a],next:r}}return BG(r,e,n)}function BG(e,t,n){for(let r=e;r;r=r.next){let o=_ze(r.node);if(o)return o($D.create(t,n,r))}return 0}function bze(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function _ze(e){let t=e.type.prop(PD);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Zr.closedBy))){let o=e.lastChild,i=o&&r.indexOf(o.name)>-1;return a=>VG(a,!0,1,void 0,i&&!bze(a)?o.from:void 0)}return e.parent==null?Oze:null}function Oze(){return 0}class $D extends qC{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new $D(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(wze(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return BG(this.context.next,this.base,this.pos)}}function wze(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Sze(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let o=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),a=o==null||o<=i.from?i.to:Math.min(i.to,o);for(let s=n.to;;){let l=t.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped)return l.from<a?n:null;s=l.to}}function xze({closing:e,align:t=!0,units:n=1}){return r=>VG(r,t,n,e)}function VG(e,t,n,r,o){let i=e.textAfter,a=i.match(/^\s*/)[0].length,s=r&&i.slice(a,a+r.length)==r||o==e.pos+a,l=t?Sze(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const kze=e=>e.baseIndent;function lO({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const Cze=200;function Eze(){return Lr.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,o=n.lineAt(r);if(r>o.from+Cze)return e;let i=n.sliceString(o.from,r);if(!t.some(u=>u.test(i)))return e;let{state:a}=e,s=-1,l=[];for(let{head:u}of a.selection.ranges){let d=a.doc.lineAt(u);if(d.from==s)continue;s=d.from;let p=TD(a,d.from);if(p==null)continue;let v=/^\s*/.exec(d.text)[0],y=JO(a,p);v!=y&&l.push({from:d.from,to:d.from+v.length,insert:y})}return l.length?[e,{changes:l,sequential:!0}]:e})}const Tze=Rn.define(),AD=new Zr;function FG(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function Pze(e,t,n){let r=na(e);if(r.length<n)return null;let o=r.resolveStack(n,1),i=null;for(let a=o;a;a=a.next){let s=a.node;if(s.to<=n||s.from>n)continue;if(i&&s.from<t)break;let l=s.type.prop(AD);if(l&&(s.to<r.length-50||r.length==e.doc.length||!$ze(s))){let u=l(s,e);u&&u.from<=n&&u.from>=t&&u.to>n&&(i=u)}}return i}function $ze(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function T2(e,t,n){for(let r of e.facet(Tze)){let o=r(e,t,n);if(o)return o}return Pze(e,t,n)}function zG(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const KC=Or.define({map:zG}),V1=Or.define({map:zG});function QG(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(r=>r.from<=n&&r.to>=n)||t.push(e.lineBlockAt(n));return t}const pv=pa.define({create(){return Xn.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(KC)&&!Aze(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(MD),o=r?Xn.replace({widget:new Lze(r(t.state,n.value))}):Q9;e=e.update({add:[o.range(n.value.from,n.value.to)]})}else n.is(V1)&&(e=e.update({filter:(r,o)=>n.value.from!=r||n.value.to!=o,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(o,i)=>{o<r&&i>r&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(o,i)=>i<=r||o>=r}))}return e},provide:e=>xn.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,o)=>{n.push(r,o)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let r=e[n++],o=e[n++];if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid JSON for fold state");t.push(Q9.range(r,o))}return Xn.set(t,!0)}});function P2(e,t,n){var r;let o=null;return(r=e.field(pv,!1))===null||r===void 0||r.between(t,n,(i,a)=>{(!o||o.from>i)&&(o={from:i,to:a})}),o}function Aze(e,t,n){let r=!1;return e.between(t,t,(o,i)=>{o==t&&i==n&&(r=!0)}),r}function WG(e,t){return e.field(pv,!1)?t:t.concat(Or.appendConfig.of(ZG()))}const Mze=e=>{for(let t of QG(e)){let n=T2(e.state,t.from,t.to);if(n)return e.dispatch({effects:WG(e.state,[KC.of(n),YG(e,n)])}),!0}return!1},Rze=e=>{if(!e.state.field(pv,!1))return!1;let t=[];for(let n of QG(e)){let r=P2(e.state,n.from,n.to);r&&t.push(V1.of(r),YG(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function YG(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,o=e.state.doc.lineAt(t.to).number;return xn.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${o}.`)}const Nze=e=>{let{state:t}=e,n=[];for(let r=0;r<t.doc.length;){let o=e.lineBlockAt(r),i=T2(t,o.from,o.to);i&&n.push(KC.of(i)),r=(i?e.lineBlockAt(i.to):o).to+1}return n.length&&e.dispatch({effects:WG(e.state,n)}),!!n.length},Ize=e=>{let t=e.state.field(pv,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,o)=>{n.push(V1.of({from:r,to:o}))}),e.dispatch({effects:n}),!0},Dze=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Mze},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Rze},{key:"Ctrl-Alt-[",run:Nze},{key:"Ctrl-Alt-]",run:Ize}],jze={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},MD=Rn.define({combine(e){return Cf(e,jze)}});function ZG(e){let t=[pv,Fze];return e&&t.push(MD.of(e)),t}function UG(e,t){let{state:n}=e,r=n.facet(MD),o=a=>{let s=e.lineBlockAt(e.posAtDOM(a.target)),l=P2(e.state,s.from,s.to);l&&e.dispatch({effects:V1.of(l)}),a.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,o,t);let i=document.createElement("span");return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=o,i}const Q9=Xn.replace({widget:new class extends Ef{toDOM(e){return UG(e,null)}}});class Lze extends Ef{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return UG(t,this.value)}}const Bze={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class mA extends md{constructor(t,n){super(),this.config=t,this.open=n}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=t.state.phrase(this.open?"Fold line":"Unfold line"),n}}function Vze(e={}){let t=Object.assign(Object.assign({},Bze),e),n=new mA(t,!0),r=new mA(t,!1),o=Mi.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(up)!=a.state.facet(up)||a.startState.field(pv,!1)!=a.state.field(pv,!1)||na(a.startState)!=na(a.state)||t.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let s=new ip;for(let l of a.viewportLineBlocks){let u=P2(a.state,l.from,l.to)?r:T2(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:i}=t;return[o,QFe({class:"cm-foldGutter",markers(a){var s;return((s=a.plugin(o))===null||s===void 0?void 0:s.markers)||co.empty},initialSpacer(){return new mA(t,!1)},domEventHandlers:Object.assign(Object.assign({},i),{click:(a,s,l)=>{if(i.click&&i.click(a,s,l))return!0;let u=P2(a.state,s.from,s.to);if(u)return a.dispatch({effects:V1.of(u)}),!0;let d=T2(a.state,s.from,s.to);return d?(a.dispatch({effects:KC.of(d)}),!0):!1}})}),ZG()]}const Fze=xn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class JC{constructor(t,n){this.specs=t;let r;function o(s){let l=ap.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const i=typeof n.all=="string"?n.all:n.all?o(n.all):void 0,a=n.scope;this.scope=a instanceof lc?s=>s.prop(ly)==a.data:a?s=>s==a:void 0,this.style=IG(t.map(s=>({tag:s.tag,class:s.class||o(Object.assign({},s,{tag:null}))})),{all:i}).style,this.module=r?new ap(r):null,this.themeType=n.themeType}static define(t,n){return new JC(t,n||{})}}const ZR=Rn.define(),HG=Rn.define({combine(e){return e.length?[e[0]]:null}});function yA(e){let t=e.facet(ZR);return t.length?t:e.facet(HG)}function zze(e,t){let n=[Wze],r;return e instanceof JC&&(e.module&&n.push(xn.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(HG.of(e)):r?n.push(ZR.computeN([xn.darkTheme],o=>o.facet(xn.darkTheme)==(r=="dark")?[e]:[])):n.push(ZR.of(e)),n}class Qze{constructor(t){this.markCache=Object.create(null),this.tree=na(t.state),this.decorations=this.buildDeco(t,yA(t.state))}update(t){let n=na(t.state),r=yA(t.state),o=r!=yA(t.startState);n.length<t.view.viewport.to&&!o&&n.type==this.tree.type?this.decorations=this.decorations.map(t.changes):(n!=this.tree||t.viewportChanged||o)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r))}buildDeco(t,n){if(!n||!this.tree.length)return Xn.none;let r=new ip;for(let{from:o,to:i}of t.visibleRanges)dze(this.tree,n,(a,s,l)=>{r.add(a,s,this.markCache[l]||(this.markCache[l]=Xn.mark({class:l})))},o,i);return r.finish()}}const Wze=Sv.high(Mi.fromClass(Qze,{decorations:e=>e.decorations})),Yze=JC.define([{tag:bt.meta,color:"#404740"},{tag:bt.link,textDecoration:"underline"},{tag:bt.heading,textDecoration:"underline",fontWeight:"bold"},{tag:bt.emphasis,fontStyle:"italic"},{tag:bt.strong,fontWeight:"bold"},{tag:bt.strikethrough,textDecoration:"line-through"},{tag:bt.keyword,color:"#708"},{tag:[bt.atom,bt.bool,bt.url,bt.contentSeparator,bt.labelName],color:"#219"},{tag:[bt.literal,bt.inserted],color:"#164"},{tag:[bt.string,bt.deleted],color:"#a11"},{tag:[bt.regexp,bt.escape,bt.special(bt.string)],color:"#e40"},{tag:bt.definition(bt.variableName),color:"#00f"},{tag:bt.local(bt.variableName),color:"#30a"},{tag:[bt.typeName,bt.namespace],color:"#085"},{tag:bt.className,color:"#167"},{tag:[bt.special(bt.variableName),bt.macroName],color:"#256"},{tag:bt.definition(bt.propertyName),color:"#00c"},{tag:bt.comment,color:"#940"},{tag:bt.invalid,color:"#f00"}]),Zze=xn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),XG=1e4,GG="()[]{}",qG=Rn.define({combine(e){return Cf(e,{afterCursor:!0,brackets:GG,maxScanDistance:XG,renderMatch:Xze})}}),Uze=Xn.mark({class:"cm-matchingBracket"}),Hze=Xn.mark({class:"cm-nonmatchingBracket"});function Xze(e){let t=[],n=e.matched?Uze:Hze;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const Gze=pa.define({create(){return Xn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(qG);for(let o of t.state.selection.ranges){if(!o.empty)continue;let i=of(t.state,o.head,-1,r)||o.head>0&&of(t.state,o.head-1,1,r)||r.afterCursor&&(of(t.state,o.head,1,r)||o.head<t.state.doc.length&&of(t.state,o.head+1,-1,r));i&&(n=n.concat(r.renderMatch(i,t.state)))}return Xn.set(n,!0)},provide:e=>xn.decorations.from(e)}),qze=[Gze,Zze];function Kze(e={}){return[qG.of(e),qze]}const Jze=new Zr;function UR(e,t,n){let r=e.prop(t<0?Zr.openedBy:Zr.closedBy);if(r)return r;if(e.name.length==1){let o=n.indexOf(e.name);if(o>-1&&o%2==(t<0?1:0))return[n[o+t]]}return null}function HR(e){let t=e.type.prop(Jze);return t?t(e.node):e}function of(e,t,n,r={}){let o=r.maxScanDistance||XG,i=r.brackets||GG,a=na(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let u=UR(l.type,n,i);if(u&&l.from<l.to){let d=HR(l);if(d&&(n>0?t>=d.from&&t<d.to:t>d.from&&t<=d.to))return e7e(e,t,n,l,d,u,i)}}return t7e(e,t,n,a,s.type,o,i)}function e7e(e,t,n,r,o,i,a){let s=r.parent,l={from:o.from,to:o.to},u=0,d=s==null?void 0:s.cursor();if(d&&(n<0?d.childBefore(r.from):d.childAfter(r.to)))do if(n<0?d.to<=r.from:d.from>=r.to){if(u==0&&i.indexOf(d.type.name)>-1&&d.from<d.to){let p=HR(d);return{start:l,end:p?{from:p.from,to:p.to}:void 0,matched:!0}}else if(UR(d.type,n,a))u++;else if(UR(d.type,-n,a)){if(u==0){let p=HR(d);return{start:l,end:p&&p.from<p.to?{from:p.from,to:p.to}:void 0,matched:!1}}u--}}while(n<0?d.prevSibling():d.nextSibling());return{start:l,matched:!1}}function t7e(e,t,n,r,o,i,a){let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},d=e.doc.iterRange(t,n>0?e.doc.length:0),p=0;for(let v=0;!d.next().done&&v<=i;){let y=d.value;n<0&&(v+=y.length);let w=t+v*n;for(let b=n>0?0:y.length-1,k=n>0?y.length:-1;b!=k;b+=n){let C=a.indexOf(y[b]);if(!(C<0||r.resolveInner(w+b,1).type!=o))if(C%2==0==n>0)p++;else{if(p==1)return{start:u,end:{from:w+b,to:w+b+1},matched:C>>1==l>>1};p--}}n>0&&(v+=y.length)}return d.done?{start:u,matched:!1}:null}const n7e=Object.create(null),W9=[tl.none],Y9=[],r7e=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])r7e[e]=o7e(n7e,t);function bA(e,t){Y9.indexOf(e)>-1||(Y9.push(e),console.warn(t))}function o7e(e,t){let n=null;for(let i of t.split(".")){let a=e[i]||bt[i];a?typeof a=="function"?n?n=a(n):bA(i,`Modifier ${i} used at start of tag`):n?bA(i,`Tag ${i} used as modifier`):n=a:bA(i,`Unknown highlighting tag ${i}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),o=tl.define({id:W9.length,name:r,props:[CD({[r]:n})]});return W9.push(o),o.id}const i7e=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=ND(e.state,n.from);return r.line?a7e(e):r.block?l7e(e):!1};function RD(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let o=e(t,n);return o?(r(n.update(o)),!0):!1}}const a7e=RD(f7e,0),s7e=RD(KG,0),l7e=RD((e,t)=>KG(e,t,c7e(t)),0);function ND(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const k_=50;function u7e(e,{open:t,close:n},r,o){let i=e.sliceDoc(r-k_,r),a=e.sliceDoc(o,o+k_),s=/\s*$/.exec(i)[0].length,l=/^\s*/.exec(a)[0].length,u=i.length-s;if(i.slice(u-t.length,u)==t&&a.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:o+l,margin:l&&1}};let d,p;o-r<=2*k_?d=p=e.sliceDoc(r,o):(d=e.sliceDoc(r,r+k_),p=e.sliceDoc(o-k_,o));let v=/^\s*/.exec(d)[0].length,y=/\s*$/.exec(p)[0].length,w=p.length-y-n.length;return d.slice(v,v+t.length)==t&&p.slice(w,w+n.length)==n?{open:{pos:r+v+t.length,margin:/\s/.test(d.charAt(v+t.length))?1:0},close:{pos:o-y-n.length,margin:/\s/.test(p.charAt(w-1))?1:0}}:null}function c7e(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),o=n.to<=r.to?r:e.doc.lineAt(n.to),i=t.length-1;i>=0&&t[i].to>r.from?t[i].to=o.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:o.to})}return t}function KG(e,t,n=t.selection.ranges){let r=n.map(i=>ND(t,i.from).block);if(!r.every(i=>i))return null;let o=n.map((i,a)=>u7e(t,r[a],i.from,i.to));if(e!=2&&!o.every(i=>i))return{changes:t.changes(n.map((i,a)=>o[a]?[]:[{from:i.from,insert:r[a].open+" "},{from:i.to,insert:" "+r[a].close}]))};if(e!=1&&o.some(i=>i)){let i=[];for(let a=0,s;a<o.length;a++)if(s=o[a]){let l=r[a],{open:u,close:d}=s;i.push({from:u.pos-l.open.length,to:u.pos+u.margin},{from:d.pos-d.margin,to:d.pos+l.close.length})}return{changes:i}}return null}function f7e(e,t,n=t.selection.ranges){let r=[],o=-1;for(let{from:i,to:a}of n){let s=r.length,l=1e9,u=ND(t,i).line;if(!!u){for(let d=i;d<=a;){let p=t.doc.lineAt(d);if(p.from>o&&(i==a||a>p.from)){o=p.from;let v=/^\s*/.exec(p.text)[0].length,y=v==p.length,w=p.text.slice(v,v+u.length)==u?v:-1;v<p.text.length&&v<l&&(l=v),r.push({line:p,comment:w,token:u,indent:v,empty:y,single:!1})}d=p.to+1}if(l<1e9)for(let d=s;d<r.length;d++)r[d].indent<r[d].line.text.length&&(r[d].indent=l);r.length==s+1&&(r[s].single=!0)}}if(e!=2&&r.some(i=>i.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:s,token:l,indent:u,empty:d,single:p}of r)(p||!d)&&i.push({from:s.from+u,insert:l+" "});let a=t.changes(i);return{changes:a,selection:t.selection.map(a,1)}}else if(e!=1&&r.some(i=>i.comment>=0)){let i=[];for(let{line:a,comment:s,token:l}of r)if(s>=0){let u=a.from+s,d=u+l.length;a.text[d-a.from]==" "&&d++,i.push({from:u,to:d})}return{changes:i}}return null}const XR=Pd.define(),d7e=Pd.define(),h7e=Rn.define(),JG=Rn.define({combine(e){return Cf(e,{minDepth:100,newGroupDelay:500,joinToEvent:(t,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,n)=>(r,o)=>t(r,o)||n(r,o)})}});function p7e(e){let t=0;return e.iterChangedRanges((n,r)=>t=r),t}const eq=pa.define({create(){return af.empty},update(e,t){let n=t.state.facet(JG),r=t.annotation(XR);if(r){let l=t.docChanged?Dt.single(p7e(t.changes)):void 0,u=Hs.fromTransaction(t,l),d=r.side,p=d==0?e.undone:e.done;return u?p=$2(p,p.length,n.minDepth,u):p=rq(p,t.startState.selection),new af(d==0?r.rest:p,d==0?p:r.rest)}let o=t.annotation(d7e);if((o=="full"||o=="before")&&(e=e.isolate()),t.annotation(Ji.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let i=Hs.fromTransaction(t),a=t.annotation(Ji.time),s=t.annotation(Ji.userEvent);return i?e=e.addChanges(i,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),(o=="full"||o=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new af(e.done.map(Hs.fromJSON),e.undone.map(Hs.fromJSON))}});function g7e(e={}){return[eq,JG.of(e),xn.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?tq:t.inputType=="historyRedo"?GR:null;return r?(t.preventDefault(),r(n)):!1}})]}function eE(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let o=n.field(eq,!1);if(!o)return!1;let i=o.pop(e,n,t);return i?(r(i),!0):!1}}const tq=eE(0,!1),GR=eE(1,!1),v7e=eE(0,!0),m7e=eE(1,!0);class Hs{constructor(t,n,r,o,i){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=o,this.selectionsAfter=i}setSelAfter(t){return new Hs(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(o=>o.toJSON())}}static fromJSON(t){return new Hs(t.changes&&Gi.fromJSON(t.changes),[],t.mapped&&lf.fromJSON(t.mapped),t.startSelection&&Dt.fromJSON(t.startSelection),t.selectionsAfter.map(Dt.fromJSON))}static fromTransaction(t,n){let r=mu;for(let o of t.startState.facet(h7e)){let i=o(t);i.length&&(r=r.concat(i))}return!r.length&&t.changes.empty?null:new Hs(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,mu)}static selection(t){return new Hs(void 0,mu,void 0,void 0,t)}}function $2(e,t,n,r){let o=t+1>n+20?t-n-1:0,i=e.slice(o,t);return i.push(r),i}function y7e(e,t){let n=[],r=!1;return e.iterChangedRanges((o,i)=>n.push(o,i)),t.iterChangedRanges((o,i,a,s)=>{for(let l=0;l<n.length;){let u=n[l++],d=n[l++];s>=u&&a<=d&&(r=!0)}}),r}function b7e(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function nq(e,t){return e.length?t.length?e.concat(t):e:t}const mu=[],_7e=200;function rq(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-_7e));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),$2(e,e.length-1,1e9,n.setSelAfter(r)))}else return[Hs.selection([t])]}function O7e(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function _A(e,t){if(!e.length)return e;let n=e.length,r=mu;for(;n;){let o=w7e(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){let i=e.slice(0,n);return i[n-1]=o,i}else t=o.mapped,n--,r=o.selectionsAfter}return r.length?[Hs.selection(r)]:mu}function w7e(e,t,n){let r=nq(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):mu,n);if(!e.changes)return Hs.selection(r);let o=e.changes.map(t),i=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(i):i;return new Hs(o,Or.mapEffects(e.effects,t),a,e.startSelection.map(i),r)}const S7e=/^(input\.type|delete)($|\.)/;class af{constructor(t,n,r=0,o=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=o}isolate(){return this.prevTime?new af(this.done,this.undone):this}addChanges(t,n,r,o,i){let a=this.done,s=a[a.length-1];return s&&s.changes&&!s.changes.empty&&t.changes&&(!r||S7e.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<o.newGroupDelay&&o.joinToEvent(i,y7e(s.changes,t.changes))||r=="input.type.compose")?a=$2(a,a.length-1,o.minDepth,new Hs(t.changes.compose(s.changes),nq(t.effects,s.effects),s.mapped,s.startSelection,mu)):a=$2(a,a.length,o.minDepth,t),new af(a,mu,n,r)}addSelection(t,n,r,o){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:mu;return i.length>0&&n-this.prevTime<o&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&b7e(i[i.length-1],t)?this:new af(rq(this.done,t),this.undone,n,r)}addMapping(t){return new af(_A(this.done,t),_A(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,n,r){let o=t==0?this.done:this.undone;if(o.length==0)return null;let i=o[o.length-1];if(r&&i.selectionsAfter.length)return n.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:XR.of({side:t,rest:O7e(o)}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let a=o.length==1?mu:o.slice(0,o.length-1);return i.mapped&&(a=_A(a,i.mapped)),n.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:XR.of({side:t,rest:a}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}else return null}}af.empty=new af(mu,mu);const x7e=[{key:"Mod-z",run:tq,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:GR,preventDefault:!0},{linux:"Ctrl-Shift-z",run:GR,preventDefault:!0},{key:"Mod-u",run:v7e,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:m7e,preventDefault:!0}];function x0(e,t){return Dt.create(e.ranges.map(t),e.mainIndex)}function Tf(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Oc({state:e,dispatch:t},n){let r=x0(e.selection,n);return r.eq(e.selection)?!1:(t(Tf(e,r)),!0)}function tE(e,t){return Dt.cursor(t?e.to:e.from)}function oq(e,t){return Oc(e,n=>n.empty?e.moveByChar(n,t):tE(n,t))}function ss(e){return e.textDirectionAt(e.state.selection.main.head)==ui.LTR}const iq=e=>oq(e,!ss(e)),aq=e=>oq(e,ss(e));function sq(e,t){return Oc(e,n=>n.empty?e.moveByGroup(n,t):tE(n,t))}const k7e=e=>sq(e,!ss(e)),C7e=e=>sq(e,ss(e));function E7e(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function nE(e,t,n){let r=na(e).resolveInner(t.head),o=n?Zr.closedBy:Zr.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;E7e(e,u,o)?r=u:l=n?u.to:u.from}let i=r.type.prop(o),a,s;return i&&(a=n?of(e,r.from,1):of(e,r.to,-1))&&a.matched?s=n?a.end.to:a.end.from:s=n?r.to:r.from,Dt.cursor(s,n?-1:1)}const T7e=e=>Oc(e,t=>nE(e.state,t,!ss(e))),P7e=e=>Oc(e,t=>nE(e.state,t,ss(e)));function lq(e,t){return Oc(e,n=>{if(!n.empty)return tE(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const uq=e=>lq(e,!1),cq=e=>lq(e,!0);function fq(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,o;if(t){for(let i of e.state.facet(xn.scrollMargins)){let a=i(e);a!=null&&a.top&&(n=Math.max(a==null?void 0:a.top,n)),a!=null&&a.bottom&&(r=Math.max(a==null?void 0:a.bottom,r))}o=e.scrollDOM.clientHeight-n-r}else o=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,o-5)}}function dq(e,t){let n=fq(e),{state:r}=e,o=x0(r.selection,a=>a.empty?e.moveVertically(a,t,n.height):tE(a,t));if(o.eq(r.selection))return!1;let i;if(n.selfScroll){let a=e.coordsAtPos(r.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,u=s.bottom-n.marginBottom;a&&a.top>l&&a.bottom<u&&(i=xn.scrollIntoView(o.main.head,{y:"start",yMargin:a.top-l}))}return e.dispatch(Tf(r,o),{effects:i}),!0}const Z9=e=>dq(e,!1),qR=e=>dq(e,!0);function xp(e,t,n){let r=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?r.to:r.from)&&(o=e.moveToLineBoundary(t,n,!1)),!n&&o.head==r.from&&r.length){let i=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;i&&t.head!=r.from+i&&(o=Dt.cursor(r.from+i))}return o}const $7e=e=>Oc(e,t=>xp(e,t,!0)),A7e=e=>Oc(e,t=>xp(e,t,!1)),M7e=e=>Oc(e,t=>xp(e,t,!ss(e))),R7e=e=>Oc(e,t=>xp(e,t,ss(e))),N7e=e=>Oc(e,t=>Dt.cursor(e.lineBlockAt(t.head).from,1)),I7e=e=>Oc(e,t=>Dt.cursor(e.lineBlockAt(t.head).to,-1));function D7e(e,t,n){let r=!1,o=x0(e.selection,i=>{let a=of(e,i.head,-1)||of(e,i.head,1)||i.head>0&&of(e,i.head-1,1)||i.head<e.doc.length&&of(e,i.head+1,-1);if(!a||!a.end)return i;r=!0;let s=a.start.from==i.head?a.end.to:a.end.from;return n?Dt.range(i.anchor,s):Dt.cursor(s)});return r?(t(Tf(e,o)),!0):!1}const j7e=({state:e,dispatch:t})=>D7e(e,t,!1);function Ru(e,t){let n=x0(e.state.selection,r=>{let o=t(r);return Dt.range(r.anchor,o.head,o.goalColumn,o.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(Tf(e.state,n)),!0)}function hq(e,t){return Ru(e,n=>e.moveByChar(n,t))}const pq=e=>hq(e,!ss(e)),gq=e=>hq(e,ss(e));function vq(e,t){return Ru(e,n=>e.moveByGroup(n,t))}const L7e=e=>vq(e,!ss(e)),B7e=e=>vq(e,ss(e)),V7e=e=>Ru(e,t=>nE(e.state,t,!ss(e))),F7e=e=>Ru(e,t=>nE(e.state,t,ss(e)));function mq(e,t){return Ru(e,n=>e.moveVertically(n,t))}const yq=e=>mq(e,!1),bq=e=>mq(e,!0);function _q(e,t){return Ru(e,n=>e.moveVertically(n,t,fq(e).height))}const U9=e=>_q(e,!1),H9=e=>_q(e,!0),z7e=e=>Ru(e,t=>xp(e,t,!0)),Q7e=e=>Ru(e,t=>xp(e,t,!1)),W7e=e=>Ru(e,t=>xp(e,t,!ss(e))),Y7e=e=>Ru(e,t=>xp(e,t,ss(e))),Z7e=e=>Ru(e,t=>Dt.cursor(e.lineBlockAt(t.head).from)),U7e=e=>Ru(e,t=>Dt.cursor(e.lineBlockAt(t.head).to)),X9=({state:e,dispatch:t})=>(t(Tf(e,{anchor:0})),!0),G9=({state:e,dispatch:t})=>(t(Tf(e,{anchor:e.doc.length})),!0),q9=({state:e,dispatch:t})=>(t(Tf(e,{anchor:e.selection.main.anchor,head:0})),!0),K9=({state:e,dispatch:t})=>(t(Tf(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),H7e=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),X7e=({state:e,dispatch:t})=>{let n=rE(e).map(({from:r,to:o})=>Dt.range(r,Math.min(o+1,e.doc.length)));return t(e.update({selection:Dt.create(n),userEvent:"select"})),!0},G7e=({state:e,dispatch:t})=>{let n=x0(e.selection,r=>{var o;let i=na(e).resolveStack(r.from,1);for(let a=i;a;a=a.next){let{node:s}=a;if((s.from<r.from&&s.to>=r.to||s.to>r.to&&s.from<=r.from)&&((o=s.parent)===null||o===void 0?void 0:o.parent))return Dt.range(s.to,s.from)}return r});return t(Tf(e,n)),!0},q7e=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=Dt.create([n.main]):n.main.empty||(r=Dt.create([Dt.cursor(n.main.head)])),r?(t(Tf(e,r)),!0):!1};function F1(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,o=r.changeByRange(i=>{let{from:a,to:s}=i;if(a==s){let l=t(i);l<a?(n="delete.backward",l=Lx(e,l,!1)):l>a&&(n="delete.forward",l=Lx(e,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=Lx(e,a,!1),s=Lx(e,s,!0);return a==s?{range:i}:{changes:{from:a,to:s},range:Dt.cursor(a,a<i.head?-1:1)}});return o.changes.empty?!1:(e.dispatch(r.update(o,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?xn.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function Lx(e,t,n){if(e instanceof xn)for(let r of e.state.facet(xn.atomicRanges).map(o=>o(e)))r.between(t,t,(o,i)=>{o<t&&i>t&&(t=n?i:o)});return t}const Oq=(e,t)=>F1(e,n=>{let r=n.from,{state:o}=e,i=o.doc.lineAt(r),a,s;if(!t&&r>i.from&&r<i.from+200&&!/[^ \t]/.test(a=i.text.slice(0,r-i.from))){if(a[a.length-1]==" ")return r-1;let l=S0(a,o.tabSize),u=l%E2(o)||E2(o);for(let d=0;d<u&&a[a.length-1-d]==" ";d++)r--;s=r}else s=ns(i.text,r-i.from,t,t)+i.from,s==r&&i.number!=(t?o.doc.lines:1)&&(s+=t?1:-1);return s}),KR=e=>Oq(e,!1),wq=e=>Oq(e,!0),Sq=(e,t)=>F1(e,n=>{let r=n.head,{state:o}=e,i=o.doc.lineAt(r),a=o.charCategorizer(r);for(let s=null;;){if(r==(t?i.to:i.from)){r==n.head&&i.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);break}let l=ns(i.text,r-i.from,t)+i.from,u=i.text.slice(Math.min(r,l)-i.from,Math.max(r,l)-i.from),d=a(u);if(s!=null&&d!=s)break;(u!=" "||r!=n.head)&&(s=d),r=l}return r}),xq=e=>Sq(e,!1),K7e=e=>Sq(e,!0),J7e=e=>F1(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),eQe=e=>F1(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),tQe=e=>F1(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),nQe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:io.of(["",""])},range:Dt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},rQe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let o=r.from,i=e.doc.lineAt(o),a=o==i.from?o-1:ns(i.text,o-i.from,!1)+i.from,s=o==i.to?o+1:ns(i.text,o-i.from,!0)+i.from;return{changes:{from:a,to:s,insert:e.doc.slice(o,s).append(e.doc.slice(a,o))},range:Dt.cursor(s)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function rE(e){let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.from),i=e.doc.lineAt(r.to);if(!r.empty&&r.to==i.from&&(i=e.doc.lineAt(r.to-1)),n>=o.number){let a=t[t.length-1];a.to=i.to,a.ranges.push(r)}else t.push({from:o.from,to:i.to,ranges:[r]});n=i.number+1}return t}function kq(e,t,n){if(e.readOnly)return!1;let r=[],o=[];for(let i of rE(e)){if(n?i.to==e.doc.length:i.from==0)continue;let a=e.doc.lineAt(n?i.to+1:i.from-1),s=a.length+1;if(n){r.push({from:i.to,to:a.to},{from:i.from,insert:a.text+e.lineBreak});for(let l of i.ranges)o.push(Dt.range(Math.min(e.doc.length,l.anchor+s),Math.min(e.doc.length,l.head+s)))}else{r.push({from:a.from,to:i.from},{from:i.to,insert:e.lineBreak+a.text});for(let l of i.ranges)o.push(Dt.range(l.anchor-s,l.head-s))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:Dt.create(o,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const oQe=({state:e,dispatch:t})=>kq(e,t,!1),iQe=({state:e,dispatch:t})=>kq(e,t,!0);function Cq(e,t,n){if(e.readOnly)return!1;let r=[];for(let o of rE(e))n?r.push({from:o.from,insert:e.doc.slice(o.from,o.to)+e.lineBreak}):r.push({from:o.to,insert:e.lineBreak+e.doc.slice(o.from,o.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const aQe=({state:e,dispatch:t})=>Cq(e,t,!1),sQe=({state:e,dispatch:t})=>Cq(e,t,!0),lQe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(rE(t).map(({from:o,to:i})=>(o>0?o--:i<t.doc.length&&i++,{from:o,to:i}))),r=x0(t.selection,o=>e.moveVertically(o,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function uQe(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=na(e).resolveInner(t),r=n.childBefore(t),o=n.childAfter(t),i;return r&&o&&r.to<=t&&o.from>=t&&(i=r.type.prop(Zr.closedBy))&&i.indexOf(o.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(r.to,o.from))?{from:r.to,to:o.from}:null}const cQe=Eq(!1),fQe=Eq(!0);function Eq(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(o=>{let{from:i,to:a}=o,s=t.doc.lineAt(i),l=!e&&i==a&&uQe(t,i);e&&(i=a=(a<=s.to?s:t.doc.lineAt(a)).to);let u=new qC(t,{simulateBreak:i,simulateDoubleBreak:!!l}),d=TD(u,i);for(d==null&&(d=S0(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));a<s.to&&/\s/.test(s.text[a-s.from]);)a++;l?{from:i,to:a}=l:i>s.from&&i<s.from+100&&!/\S/.test(s.text.slice(0,i))&&(i=s.from);let p=["",JO(t,d)];return l&&p.push(JO(t,u.lineIndent(s.from,-1))),{changes:{from:i,to:a,insert:io.of(p)},range:Dt.cursor(i+1+p[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function ID(e,t){let n=-1;return e.changeByRange(r=>{let o=[];for(let a=r.from;a<=r.to;){let s=e.doc.lineAt(a);s.number>n&&(r.empty||r.to>s.from)&&(t(s,o,r),n=s.number),a=s.to+1}let i=e.changes(o);return{changes:o,range:Dt.range(i.mapPos(r.anchor,1),i.mapPos(r.head,1))}})}const dQe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new qC(e,{overrideIndentation:i=>{let a=n[i];return a==null?-1:a}}),o=ID(e,(i,a,s)=>{let l=TD(r,i.from);if(l==null)return;/\S/.test(i.text)||(l=0);let u=/^\s*/.exec(i.text)[0],d=JO(e,l);(u!=d||s.from<i.from+u.length)&&(n[i.from]=l,a.push({from:i.from,to:i.from+u.length,insert:d}))});return o.changes.empty||t(e.update(o,{userEvent:"indent"})),!0},Tq=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(ID(e,(n,r)=>{r.push({from:n.from,insert:e.facet(B1)})}),{userEvent:"input.indent"})),!0),Pq=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(ID(e,(n,r)=>{let o=/^\s*/.exec(n.text)[0];if(!o)return;let i=S0(o,e.tabSize),a=0,s=JO(e,Math.max(0,i-E2(e)));for(;a<o.length&&a<s.length&&o.charCodeAt(a)==s.charCodeAt(a);)a++;r.push({from:n.from+a,to:n.from+o.length,insert:s.slice(a)})}),{userEvent:"delete.dedent"})),!0),hQe=[{key:"Ctrl-b",run:iq,shift:pq,preventDefault:!0},{key:"Ctrl-f",run:aq,shift:gq},{key:"Ctrl-p",run:uq,shift:yq},{key:"Ctrl-n",run:cq,shift:bq},{key:"Ctrl-a",run:N7e,shift:Z7e},{key:"Ctrl-e",run:I7e,shift:U7e},{key:"Ctrl-d",run:wq},{key:"Ctrl-h",run:KR},{key:"Ctrl-k",run:J7e},{key:"Ctrl-Alt-h",run:xq},{key:"Ctrl-o",run:nQe},{key:"Ctrl-t",run:rQe},{key:"Ctrl-v",run:qR}],pQe=[{key:"ArrowLeft",run:iq,shift:pq,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:k7e,shift:L7e,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:M7e,shift:W7e,preventDefault:!0},{key:"ArrowRight",run:aq,shift:gq,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:C7e,shift:B7e,preventDefault:!0},{mac:"Cmd-ArrowRight",run:R7e,shift:Y7e,preventDefault:!0},{key:"ArrowUp",run:uq,shift:yq,preventDefault:!0},{mac:"Cmd-ArrowUp",run:X9,shift:q9},{mac:"Ctrl-ArrowUp",run:Z9,shift:U9},{key:"ArrowDown",run:cq,shift:bq,preventDefault:!0},{mac:"Cmd-ArrowDown",run:G9,shift:K9},{mac:"Ctrl-ArrowDown",run:qR,shift:H9},{key:"PageUp",run:Z9,shift:U9},{key:"PageDown",run:qR,shift:H9},{key:"Home",run:A7e,shift:Q7e,preventDefault:!0},{key:"Mod-Home",run:X9,shift:q9},{key:"End",run:$7e,shift:z7e,preventDefault:!0},{key:"Mod-End",run:G9,shift:K9},{key:"Enter",run:cQe},{key:"Mod-a",run:H7e},{key:"Backspace",run:KR,shift:KR},{key:"Delete",run:wq},{key:"Mod-Backspace",mac:"Alt-Backspace",run:xq},{key:"Mod-Delete",mac:"Alt-Delete",run:K7e},{mac:"Mod-Backspace",run:eQe},{mac:"Mod-Delete",run:tQe}].concat(hQe.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),gQe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:T7e,shift:V7e},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:P7e,shift:F7e},{key:"Alt-ArrowUp",run:oQe},{key:"Shift-Alt-ArrowUp",run:aQe},{key:"Alt-ArrowDown",run:iQe},{key:"Shift-Alt-ArrowDown",run:sQe},{key:"Escape",run:q7e},{key:"Mod-Enter",run:fQe},{key:"Alt-l",mac:"Ctrl-l",run:X7e},{key:"Mod-i",run:G7e,preventDefault:!0},{key:"Mod-[",run:Pq},{key:"Mod-]",run:Tq},{key:"Mod-Alt-\\",run:dQe},{key:"Shift-Mod-k",run:lQe},{key:"Shift-Mod-\\",run:j7e},{key:"Mod-/",run:i7e},{key:"Alt-A",run:s7e}].concat(pQe),vQe={key:"Tab",run:Tq,shift:Pq};function jo(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r];typeof o=="string"?e.setAttribute(r,o):o!=null&&(e[r]=o)}t++}for(;t<arguments.length;t++)$q(e,arguments[t]);return e}function $q(e,t){if(typeof t=="string")e.appendChild(document.createTextNode(t));else if(t!=null)if(t.nodeType!=null)e.appendChild(t);else if(Array.isArray(t))for(var n=0;n<t.length;n++)$q(e,t[n]);else throw new RangeError("Unsupported child node: "+t)}const J9=typeof String.prototype.normalize=="function"?e=>e.normalize("NFKD"):e=>e;class Ky{constructor(t,n,r=0,o=t.length,i,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,o),this.bufferStart=r,this.normalize=i?s=>i(J9(s)):J9,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return $a(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let n=fD(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=hu(t);let o=this.normalize(n);for(let i=0,a=r;;i++){let s=o.charCodeAt(i),l=this.match(s,a);if(i==o.length-1){if(l)return this.value=l,this;break}a==r&&i<n.length&&n.charCodeAt(i)==s&&a++}}}match(t,n){let r=null;for(let o=0;o<this.matches.length;o+=2){let i=this.matches[o],a=!1;this.query.charCodeAt(i)==t&&(i==this.query.length-1?r={from:this.matches[o+1],to:n+1}:(this.matches[o]++,a=!0)),a||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==t&&(this.query.length==1?r={from:n,to:n+1}:this.matches.push(1,n)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}typeof Symbol!="undefined"&&(Ky.prototype[Symbol.iterator]=function(){return this});const Aq={from:-1,to:-1,match:/.*/.exec("")},DD="gm"+(/x/.unicode==null?"":"u");class Mq{constructor(t,n,r,o=0,i=t.length){if(this.text=t,this.to=i,this.curLine="",this.done=!1,this.value=Aq,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new Rq(t,n,r,o,i);this.re=new RegExp(n,DD+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.iter=t.iter();let a=t.lineAt(o);this.curLineStart=a.from,this.matchPos=A2(t,o),this.getLine(this.curLineStart)}getLine(t){this.iter.next(t),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,o=r+n[0].length;if(this.matchPos=A2(this.text,o+(r==o?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<o||r>this.value.to)&&(!this.test||this.test(r,o,n)))return this.value={from:r,to:o,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),t=0;else return this.done=!0,this}}}const OA=new WeakMap;class Cy{constructor(t,n){this.from=t,this.text=n}get to(){return this.from+this.text.length}static get(t,n,r){let o=OA.get(t);if(!o||o.from>=r||o.to<=n){let s=new Cy(n,t.sliceString(n,r));return OA.set(t,s),s}if(o.from==n&&o.to==r)return o;let{text:i,from:a}=o;return a>n&&(i=t.sliceString(n,a)+i,a=n),o.to<r&&(i+=t.sliceString(o.to,r)),OA.set(t,new Cy(a,i)),new Cy(n,i.slice(n-a,r-a))}}class Rq{constructor(t,n,r,o,i){this.text=t,this.to=i,this.done=!1,this.value=Aq,this.matchPos=A2(t,o),this.re=new RegExp(n,DD+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=Cy.get(t,o,this.chunkEnd(o+5e3))}chunkEnd(t){return t>=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,o=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,o,n)))return this.value={from:r,to:o,match:n},this.matchPos=A2(this.text,o+(r==o?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Cy.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol!="undefined"&&(Mq.prototype[Symbol.iterator]=Rq.prototype[Symbol.iterator]=function(){return this});function mQe(e){try{return new RegExp(e,DD),!0}catch{return!1}}function A2(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}function JR(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=jo("input",{class:"cm-textfield",name:"line",value:t}),r=jo("form",{class:"cm-gotoLine",onkeydown:i=>{i.keyCode==27?(i.preventDefault(),e.dispatch({effects:M2.of(!1)}),e.focus()):i.keyCode==13&&(i.preventDefault(),o())},onsubmit:i=>{i.preventDefault(),o()}},jo("label",e.state.phrase("Go to line"),": ",n)," ",jo("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function o(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!i)return;let{state:a}=e,s=a.doc.lineAt(a.selection.main.head),[,l,u,d,p]=i,v=d?+d.slice(1):0,y=u?+u:s.number;if(u&&p){let k=y/100;l&&(k=k*(l=="-"?-1:1)+s.number/a.doc.lines),y=Math.round(a.doc.lines*k)}else u&&l&&(y=y*(l=="-"?-1:1)+s.number);let w=a.doc.line(Math.max(1,Math.min(a.doc.lines,y))),b=Dt.cursor(w.from+Math.max(0,Math.min(v,w.length)));e.dispatch({effects:[M2.of(!1),xn.scrollIntoView(b.from,{y:"center"})],selection:b}),e.focus()}return{dom:r}}const M2=Or.define(),eF=pa.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(M2)&&(e=n.value);return e},provide:e=>GO.from(e,t=>t?JR:null)}),yQe=e=>{let t=XO(e,JR);if(!t){let n=[M2.of(!0)];e.state.field(eF,!1)==null&&n.push(Or.appendConfig.of([eF,bQe])),e.dispatch({effects:n}),t=XO(e,JR)}return t&&t.dom.querySelector("input").select(),!0},bQe=xn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),_Qe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Nq=Rn.define({combine(e){return Cf(e,_Qe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function OQe(e){let t=[CQe,kQe];return e&&t.push(Nq.of(e)),t}const wQe=Xn.mark({class:"cm-selectionMatch"}),SQe=Xn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function tF(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=ti.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=ti.Word)}function xQe(e,t,n,r){return e(t.sliceDoc(n,n+1))==ti.Word&&e(t.sliceDoc(r-1,r))==ti.Word}const kQe=Mi.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Nq),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Xn.none;let o=r.main,i,a=null;if(o.empty){if(!t.highlightWordAroundCursor)return Xn.none;let l=n.wordAt(o.head);if(!l)return Xn.none;a=n.charCategorizer(o.head),i=n.sliceDoc(l.from,l.to)}else{let l=o.to-o.from;if(l<t.minSelectionLength||l>200)return Xn.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),a=n.charCategorizer(o.head),!(tF(a,n,o.from,o.to)&&xQe(a,n,o.from,o.to)))return Xn.none}else if(i=n.sliceDoc(o.from,o.to).trim(),!i)return Xn.none}let s=[];for(let l of e.visibleRanges){let u=new Ky(n.doc,i,l.from,l.to);for(;!u.next().done;){let{from:d,to:p}=u.value;if((!a||tF(a,n,d,p))&&(o.empty&&d<=o.from&&p>=o.to?s.push(SQe.range(d,p)):(d>=o.to||p<=o.from)&&s.push(wQe.range(d,p)),s.length>t.maxMatches))return Xn.none}}return Xn.set(s)}},{decorations:e=>e.decorations}),CQe=xn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),EQe=({state:e,dispatch:t})=>{let{selection:n}=e,r=Dt.create(n.ranges.map(o=>e.wordAt(o.head)||Dt.cursor(o.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function TQe(e,t){let{main:n,ranges:r}=e.selection,o=e.wordAt(n.head),i=o&&o.from==n.from&&o.to==n.to;for(let a=!1,s=new Ky(e.doc,t,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new Ky(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),a=!0}else{if(a&&r.some(l=>l.from==s.value.from))continue;if(i){let l=e.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const PQe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(i=>i.from===i.to))return EQe({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(i=>e.sliceDoc(i.from,i.to)!=r))return!1;let o=TQe(e,r);return o?(t(e.update({selection:e.selection.addRange(Dt.range(o.from,o.to),!1),effects:xn.scrollIntoView(o.to)})),!0):!1},k0=Rn.define({combine(e){return Cf(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new FQe(t),scrollToMatch:t=>xn.scrollIntoView(t)})}});class Iq{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||mQe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?`
  191. `:r=="r"?"\r":r=="t"?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new RQe(this):new AQe(this)}getCursor(t,n=0,r){let o=t.doc?t:Lr.create({doc:t});return r==null&&(r=o.doc.length),this.regexp?ey(this,o,n,r):Jm(this,o,n,r)}}class Dq{constructor(t){this.spec=t}}function Jm(e,t,n,r){return new Ky(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:o=>o.toLowerCase(),e.wholeWord?$Qe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function $Qe(e,t){return(n,r,o,i)=>((i>n||i+o.length<r)&&(i=Math.max(0,n-2),o=e.sliceString(i,Math.min(e.length,r+2))),(t(R2(o,n-i))!=ti.Word||t(N2(o,n-i))!=ti.Word)&&(t(N2(o,r-i))!=ti.Word||t(R2(o,r-i))!=ti.Word))}class AQe extends Dq{constructor(t){super(t)}nextMatch(t,n,r){let o=Jm(this.spec,t,r,t.doc.length).nextOverlapping();return o.done&&(o=Jm(this.spec,t,0,n).nextOverlapping()),o.done?null:o.value}prevMatchInRange(t,n,r){for(let o=r;;){let i=Math.max(n,o-1e4-this.spec.unquoted.length),a=Jm(this.spec,t,i,o),s=null;for(;!a.nextOverlapping().done;)s=a.value;if(s)return s;if(i==n)return null;o-=1e4}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace)}matchAll(t,n){let r=Jm(this.spec,t,0,t.doc.length),o=[];for(;!r.next().done;){if(o.length>=n)return null;o.push(r.value)}return o}highlight(t,n,r,o){let i=Jm(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!i.next().done;)o(i.value.from,i.value.to)}}function ey(e,t,n,r){return new Mq(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?MQe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function R2(e,t){return e.slice(ns(e,t,!1),t)}function N2(e,t){return e.slice(t,ns(e,t))}function MQe(e){return(t,n,r)=>!r[0].length||(e(R2(r.input,r.index))!=ti.Word||e(N2(r.input,r.index))!=ti.Word)&&(e(N2(r.input,r.index+r[0].length))!=ti.Word||e(R2(r.input,r.index+r[0].length))!=ti.Word)}class RQe extends Dq{nextMatch(t,n,r){let o=ey(this.spec,t,r,t.doc.length).next();return o.done&&(o=ey(this.spec,t,0,n).next()),o.done?null:o.value}prevMatchInRange(t,n,r){for(let o=1;;o++){let i=Math.max(n,r-o*1e4),a=ey(this.spec,t,i,r),s=null;for(;!a.next().done;)s=a.value;if(s&&(i==n||s.from>i+10))return s;if(i==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?t.match[0]:r!="0"&&+r<t.match.length?t.match[r]:n))}matchAll(t,n){let r=ey(this.spec,t,0,t.doc.length),o=[];for(;!r.next().done;){if(o.length>=n)return null;o.push(r.value)}return o}highlight(t,n,r,o){let i=ey(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!i.next().done;)o(i.value.from,i.value.to)}}const e1=Or.define(),jD=Or.define(),zh=pa.define({create(e){return new wA(eN(e).create(),null)},update(e,t){for(let n of t.effects)n.is(e1)?e=new wA(n.value.create(),e.panel):n.is(jD)&&(e=new wA(e.query,n.value?LD:null));return e},provide:e=>GO.from(e,t=>t.panel)});class wA{constructor(t,n){this.query=t,this.panel=n}}const NQe=Xn.mark({class:"cm-searchMatch"}),IQe=Xn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),DQe=Mi.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(zh))}update(e){let t=e.state.field(zh);(t!=e.startState.field(zh)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return Xn.none;let{view:n}=this,r=new ip;for(let o=0,i=n.visibleRanges,a=i.length;o<a;o++){let{from:s,to:l}=i[o];for(;o<a-1&&l>i[o+1].from-2*250;)l=i[++o].to;e.highlight(n.state,s,l,(u,d)=>{let p=n.state.selection.ranges.some(v=>v.from==u&&v.to==d);r.add(u,d,p?IQe:NQe)})}return r.finish()}},{decorations:e=>e.decorations});function z1(e){return t=>{let n=t.state.field(zh,!1);return n&&n.query.spec.valid?e(t,n):Bq(t)}}const I2=z1((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let o=Dt.single(r.from,r.to),i=e.state.facet(k0);return e.dispatch({selection:o,effects:[BD(e,r),i.scrollToMatch(o.main,e)],userEvent:"select.search"}),Lq(e),!0}),D2=z1((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,o=t.prevMatch(n,r,r);if(!o)return!1;let i=Dt.single(o.from,o.to),a=e.state.facet(k0);return e.dispatch({selection:i,effects:[BD(e,o),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),Lq(e),!0}),jQe=z1((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:Dt.create(n.map(r=>Dt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),LQe=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:o}=n.main,i=[],a=0;for(let s=new Ky(e.doc,e.sliceDoc(r,o));!s.next().done;){if(i.length>1e3)return!1;s.value.from==r&&(a=i.length),i.push(Dt.range(s.value.from,s.value.to))}return t(e.update({selection:Dt.create(i,a),userEvent:"select.search.matches"})),!0},nF=z1((e,{query:t})=>{let{state:n}=e,{from:r,to:o}=n.selection.main;if(n.readOnly)return!1;let i=t.nextMatch(n,r,r);if(!i)return!1;let a=[],s,l,u=[];if(i.from==r&&i.to==o&&(l=n.toText(t.getReplacement(i)),a.push({from:i.from,to:i.to,insert:l}),i=t.nextMatch(n,i.from,i.to),u.push(xn.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),i){let d=a.length==0||a[0].from>=i.to?0:i.to-i.from-l.length;s=Dt.single(i.from-d,i.to-d),u.push(BD(e,i)),u.push(n.facet(k0).scrollToMatch(s.main,e))}return e.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),BQe=z1((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(o=>{let{from:i,to:a}=o;return{from:i,to:a,insert:t.getReplacement(o)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:xn.announce.of(r),userEvent:"input.replace.all"}),!0});function LD(e){return e.state.facet(k0).createPanel(e)}function eN(e,t){var n,r,o,i,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let u=e.facet(k0);return new Iq({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(o=t==null?void 0:t.literal)!==null&&o!==void 0?o:u.literal,regexp:(i=t==null?void 0:t.regexp)!==null&&i!==void 0?i:u.regexp,wholeWord:(a=t==null?void 0:t.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function jq(e){let t=XO(e,LD);return t&&t.dom.querySelector("[main-field]")}function Lq(e){let t=jq(e);t&&t==e.root.activeElement&&t.select()}const Bq=e=>{let t=e.state.field(zh,!1);if(t&&t.panel){let n=jq(e);if(n&&n!=e.root.activeElement){let r=eN(e.state,t.query.spec);r.valid&&e.dispatch({effects:e1.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[jD.of(!0),t?e1.of(eN(e.state,t.query.spec)):Or.appendConfig.of(QQe)]});return!0},Vq=e=>{let t=e.state.field(zh,!1);if(!t||!t.panel)return!1;let n=XO(e,LD);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:jD.of(!1)}),!0},VQe=[{key:"Mod-f",run:Bq,scope:"editor search-panel"},{key:"F3",run:I2,shift:D2,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:I2,shift:D2,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Vq,scope:"editor search-panel"},{key:"Mod-Shift-l",run:LQe},{key:"Alt-g",run:yQe},{key:"Mod-d",run:PQe,preventDefault:!0}];class FQe{constructor(t){this.view=t;let n=this.query=t.state.field(zh).query.spec;this.commit=this.commit.bind(this),this.searchField=jo("input",{value:n.search,placeholder:wl(t,"Find"),"aria-label":wl(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=jo("input",{value:n.replace,placeholder:wl(t,"Replace"),"aria-label":wl(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=jo("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=jo("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=jo("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(o,i,a){return jo("button",{class:"cm-button",name:o,onclick:i,type:"button"},a)}this.dom=jo("div",{onkeydown:o=>this.keydown(o),class:"cm-search"},[this.searchField,r("next",()=>I2(t),[wl(t,"next")]),r("prev",()=>D2(t),[wl(t,"previous")]),r("select",()=>jQe(t),[wl(t,"all")]),jo("label",null,[this.caseField,wl(t,"match case")]),jo("label",null,[this.reField,wl(t,"regexp")]),jo("label",null,[this.wordField,wl(t,"by word")]),...t.state.readOnly?[]:[jo("br"),this.replaceField,r("replace",()=>nF(t),[wl(t,"replace")]),r("replaceAll",()=>BQe(t),[wl(t,"replace all")])],jo("button",{name:"close",onclick:()=>Vq(t),"aria-label":wl(t,"close"),type:"button"},["\xD7"])])}commit(){let t=new Iq({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:e1.of(t)}))}keydown(t){J9e(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?D2:I2)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),nF(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(e1)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(k0).top}}function wl(e,t){return e.state.phrase(t)}const Bx=30,Vx=/[\s\.,:;?!]/;function BD(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),o=e.state.doc.lineAt(n).to,i=Math.max(r.from,t-Bx),a=Math.min(o,n+Bx),s=e.state.sliceDoc(i,a);if(i!=r.from){for(let l=0;l<Bx;l++)if(!Vx.test(s[l+1])&&Vx.test(s[l])){s=s.slice(l);break}}if(a!=o){for(let l=s.length-1;l>s.length-Bx;l--)if(!Vx.test(s[l-1])&&Vx.test(s[l])){s=s.slice(0,l);break}}return xn.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const zQe=xn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),QQe=[zh,Sv.low(DQe),zQe];class Fq{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=na(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),o=n.text.slice(r-n.from,this.pos-n.from),i=o.search(Qq(t,!1));return i<0?null:{from:r+i,to:this.pos,text:o.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function rF(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function WQe(e){let t=Object.create(null),n=Object.create(null);for(let{label:o}of e){t[o[0]]=!0;for(let i=1;i<o.length;i++)n[o[i]]=!0}let r=rF(t)+rF(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function zq(e){let t=e.map(o=>typeof o=="string"?{label:o}:o),[n,r]=t.every(o=>/^\w+$/.test(o.label))?[/\w*$/,/\w+$/]:WQe(t);return o=>{let i=o.matchBefore(r);return i||o.explicit?{from:i?i.from:o.pos,options:t,validFor:n}:null}}function YQe(e,t){return n=>{for(let r=na(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(e.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return t(n)}}class oF{constructor(t,n,r,o){this.completion=t,this.source=n,this.match=r,this.score=o}}function Qh(e){return e.selection.main.from}function Qq(e,t){var n;let{source:r}=e,o=t&&r[0]!="^",i=r[r.length-1]!="$";return!o&&!i?e:new RegExp(`${o?"^":""}(?:${r})${i?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const Wq=Pd.define();function ZQe(e,t,n,r){let{main:o}=e.selection,i=n-o.from,a=r-o.from;return Object.assign(Object.assign({},e.changeByRange(s=>s!=o&&n!=r&&e.sliceDoc(s.from+i,s.from+a)!=e.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+i,to:r==o.from?s.to:s.from+a,insert:t},range:Dt.cursor(s.from+i+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const iF=new WeakMap;function UQe(e){if(!Array.isArray(e))return e;let t=iF.get(e);return t||iF.set(e,t=zq(e)),t}const VD=Or.define(),t1=Or.define();class HQe{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<t.length;){let r=$a(t,n),o=hu(r);this.chars.push(r);let i=t.slice(n,n+o),a=i.toUpperCase();this.folded.push($a(a==i?i.toLowerCase():a,0)),n+=o}this.astral=t.length!=this.chars.length}ret(t,n){return this.score=t,this.matched=n,!0}match(t){if(this.pattern.length==0)return this.ret(-100,[]);if(t.length<this.pattern.length)return!1;let{chars:n,folded:r,any:o,precise:i,byWord:a}=this;if(n.length==1){let T=$a(t,0),$=hu(T),P=$==t.length?0:-100;if(T!=n[0])if(T==r[0])P+=-200;else return!1;return this.ret(P,[0,$])}let s=t.indexOf(this.pattern);if(s==0)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=n.length,u=0;if(s<0){for(let T=0,$=Math.min(t.length,200);T<$&&u<l;){let P=$a(t,T);(P==n[u]||P==r[u])&&(o[u++]=T),T+=hu(P)}if(u<l)return!1}let d=0,p=0,v=!1,y=0,w=-1,b=-1,k=/[a-z]/.test(t),C=!0;for(let T=0,$=Math.min(t.length,200),P=0;T<$&&p<l;){let A=$a(t,T);s<0&&(d<l&&A==n[d]&&(i[d++]=T),y<l&&(A==n[y]||A==r[y]?(y==0&&(w=T),b=T+1,y++):y=0));let R,B=A<255?A>=48&&A<=57||A>=97&&A<=122?2:A>=65&&A<=90?1:0:(R=fD(A))!=R.toLowerCase()?1:R!=R.toUpperCase()?2:0;(!T||B==1&&k||P==0&&B!=0)&&(n[p]==A||r[p]==A&&(v=!0)?a[p++]=T:a.length&&(C=!1)),P=B,T+=hu(A)}return p==l&&a[0]==0&&C?this.result(-100+(v?-200:0),a,t):y==l&&w==0?this.ret(-200-t.length+(b==t.length?0:-100),[0,b]):s>-1?this.ret(-700-t.length,[s,s+this.pattern.length]):y==l?this.ret(-200+-700-t.length,[w,b]):p==l?this.result(-100+(v?-200:0)+-700+(C?0:-1100),a,t):n.length==2?!1:this.result((o[0]?-700:0)+-200+-1100,o,t)}result(t,n,r){let o=[],i=0;for(let a of n){let s=a+(this.astral?hu($a(r,a)):1);i&&o[i-1]==a?o[i-1]=s:(o[i++]=a,o[i++]=s)}return this.ret(t-r.length,o)}}const ts=Rn.define({combine(e){return Cf(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:XQe,compareCompletions:(t,n)=>t.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>r=>aF(t(r),n(r)),optionClass:(t,n)=>r=>aF(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function aF(e,t){return e?t?e+" "+t:e:t}function XQe(e,t,n,r,o,i){let a=e.textDirection==ui.RTL,s=a,l=!1,u="top",d,p,v=t.left-o.left,y=o.right-t.right,w=r.right-r.left,b=r.bottom-r.top;if(s&&v<Math.min(w,y)?s=!1:!s&&y<Math.min(w,v)&&(s=!0),w<=(s?v:y))d=Math.max(o.top,Math.min(n.top,o.bottom-b))-t.top,p=Math.min(400,s?v:y);else{l=!0,p=Math.min(400,(a?t.right:o.right-t.left)-30);let T=o.bottom-t.bottom;T>=b||T>t.top?d=n.bottom-t.top:(u="bottom",d=t.bottom-n.top)}let k=(t.bottom-t.top)/i.offsetHeight,C=(t.right-t.left)/i.offsetWidth;return{style:`${u}: ${d/k}px; max-width: ${p/C}px`,class:"cm-completionInfo-"+(l?a?"left-narrow":"right-narrow":s?"left":"right")}}function GQe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(o=>"cm-completionIcon-"+o)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,o){let i=document.createElement("span");i.className="cm-completionLabel";let a=n.displayLabel||n.label,s=0;for(let l=0;l<o.length;){let u=o[l++],d=o[l++];u>s&&i.appendChild(document.createTextNode(a.slice(s,u)));let p=i.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(a.slice(u,d))),p.className="cm-completionMatchedText",s=d}return s<a.length&&i.appendChild(document.createTextNode(a.slice(s))),i},position:50},{render(n){if(!n.detail)return null;let r=document.createElement("span");return r.className="cm-completionDetail",r.textContent=n.detail,r},position:80}),t.sort((n,r)=>n.position-r.position).map(n=>n.render)}function SA(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let o=Math.floor(t/n);return{from:o*n,to:(o+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class qQe{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let o=t.state.field(n),{options:i,selected:a}=o.open,s=t.state.facet(ts);this.optionContent=GQe(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=SA(i.length,a,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let d=l.target,p;d&&d!=this.dom;d=d.parentNode)if(d.nodeName=="LI"&&(p=/-(\d+)$/.exec(d.id))&&+p[1]<u.length){this.applyCompletion(t,u[+p[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(ts).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:t1.of(null)})}),this.showOptions(i,o.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),o=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=o){let{options:i,selected:a,disabled:s}=r.open;(!o.open||o.open.options!=i)&&(this.range=SA(i.length,a,t.state.facet(ts).maxRenderedOptions),this.showOptions(i,r.id)),this.updateSel(),s!=((n=o.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=SA(n.options.length,n.selected,this.view.state.facet(ts).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:o}=r;if(!o)return;let i=typeof o=="string"?document.createTextNode(o):o(r);if(!i)return;"then"in i?i.then(a=>{a&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(a,r)}).catch(a=>cc(this.view.state,a,"completion info")):this.addInfoPane(i,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:o,destroy:i}=t;r.appendChild(o),this.infoDestroy=i||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,o=this.range.from;r;r=r.nextSibling,o++)r.nodeName!="LI"||!r.id?o--:o==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&JQe(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),o=t.getBoundingClientRect(),i=this.space;if(!i){let a=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return o.top>Math.min(i.bottom,n.bottom)-10||o.bottom<Math.max(i.top,n.top)+10?null:this.view.state.facet(ts).positionInfo(this.view,n,o,r,i,this.dom)}placeInfo(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(t,n,r){const o=document.createElement("ul");o.id=n,o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.setAttribute("aria-label",this.view.state.phrase("Completions"));let i=null;for(let a=r.from;a<r.to;a++){let{completion:s,match:l}=t[a],{section:u}=s;if(u){let v=typeof u=="string"?u:u.name;if(v!=i&&(a>r.from||r.from==0))if(i=v,typeof u!="string"&&u.header)o.appendChild(u.header(u));else{let y=o.appendChild(document.createElement("completion-section"));y.textContent=v}}const d=o.appendChild(document.createElement("li"));d.id=n+"-"+a,d.setAttribute("role","option");let p=this.optionClass(s);p&&(d.className=p);for(let v of this.optionContent){let y=v(s,this.view.state,l);y&&d.appendChild(y)}}return r.from&&o.classList.add("cm-completionListIncompleteTop"),r.to<t.length&&o.classList.add("cm-completionListIncompleteBottom"),o}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function KQe(e,t){return n=>new qQe(n,e,t)}function JQe(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/o:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/o)}function sF(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function eWe(e,t){let n=[],r=null,o=l=>{n.push(l);let{section:u}=l.completion;if(u){r||(r=[]);let d=typeof u=="string"?u:u.name;r.some(p=>p.name==d)||r.push(typeof u=="string"?{name:d}:u)}};for(let l of e)if(l.hasResult()){let u=l.result.getMatch;if(l.result.filter===!1)for(let d of l.result.options)o(new oF(d,l.source,u?u(d):[],1e9-n.length));else{let d=new HQe(t.sliceDoc(l.from,l.to));for(let p of l.result.options)if(d.match(p.label)){let v=p.displayLabel?u?u(p,d.matched):[]:d.matched;o(new oF(p,l.source,v,d.score+(p.boost||0)))}}}if(r){let l=Object.create(null),u=0,d=(p,v)=>{var y,w;return((y=p.rank)!==null&&y!==void 0?y:1e9)-((w=v.rank)!==null&&w!==void 0?w:1e9)||(p.name<v.name?-1:1)};for(let p of r.sort(d))u-=1e5,l[p.name]=u;for(let p of n){let{section:v}=p.completion;v&&(p.score+=l[typeof v=="string"?v:v.name])}}let i=[],a=null,s=t.facet(ts).compareCompletions;for(let l of n.sort((u,d)=>d.score-u.score||s(u.completion,d.completion))){let u=l.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?i.push(l):sF(l.completion)>sF(a)&&(i[i.length-1]=l),a=l.completion}return i}class uy{constructor(t,n,r,o,i,a){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=o,this.selected=i,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new uy(this.options,lF(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,o,i){let a=eWe(t,n);if(!a.length)return o&&t.some(l=>l.state==1)?new uy(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let s=n.facet(ts).selectOnOpen?0:-1;if(o&&o.selected!=s&&o.selected!=-1){let l=o.options[o.selected].completion;for(let u=0;u<a.length;u++)if(a[u].completion==l){s=u;break}}return new uy(a,lF(r,s),{pos:t.reduce((l,u)=>u.hasResult()?Math.min(l,u.from):l,1e8),create:iWe,above:i.aboveCursor},o?o.timestamp:Date.now(),s,!1)}map(t){return new uy(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class j2{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new j2(rWe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(ts),i=(r.override||n.languageDataAt("autocomplete",Qh(n)).map(UQe)).map(s=>(this.active.find(u=>u.source==s)||new Ws(s,this.active.some(u=>u.state!=0)?1:0)).update(t,r));i.length==this.active.length&&i.every((s,l)=>s==this.active[l])&&(i=this.active);let a=this.open;a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(s=>s.hasResult()&&t.changes.touchesRange(s.from,s.to))||!tWe(i,this.active)?a=uy.build(i,n,this.id,a,r):a&&a.disabled&&!i.some(s=>s.state==1)&&(a=null),!a&&i.every(s=>s.state!=1)&&i.some(s=>s.hasResult())&&(i=i.map(s=>s.hasResult()?new Ws(s.source,0):s));for(let s of t.effects)s.is(Zq)&&(a=a&&a.setSelected(s.value,this.id));return i==this.active&&a==this.open?this:new j2(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:nWe}}function tWe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;r<t.length&&!t[r].hasResult;)r++;let o=n==e.length,i=r==t.length;if(o||i)return o==i;if(e[n++].result!=t[r++].result)return!1}}const nWe={"aria-autocomplete":"list"};function lF(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const rWe=[];function tN(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class Ws{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=tN(t),o=this;r?o=o.handleUserEvent(t,r,n):t.docChanged?o=o.handleChange(t):t.selection&&o.state!=0&&(o=new Ws(o.source,0));for(let i of t.effects)if(i.is(VD))o=new Ws(o.source,1,i.value?Qh(t.state):-1);else if(i.is(t1))o=new Ws(o.source,0);else if(i.is(Yq))for(let a of i.value)a.source==o.source&&(o=a);return o}handleUserEvent(t,n,r){return n=="delete"||!r.activateOnTyping?this.map(t.changes):new Ws(this.source,1)}handleChange(t){return t.changes.touchesRange(Qh(t.startState))?new Ws(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Ws(this.source,this.state,t.mapPos(this.explicitPos))}}class Ey extends Ws{constructor(t,n,r,o,i){super(t,2,n),this.result=r,this.from=o,this.to=i}hasResult(){return!0}handleUserEvent(t,n,r){var o;let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),s=Qh(t.state);if((this.explicitPos<0?s<=i:s<this.from)||s>a||n=="delete"&&Qh(t.startState)==this.from)return new Ws(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return oWe(this.result.validFor,t.state,i,a)?new Ey(this.source,l,this.result,i,a):this.result.update&&(u=this.result.update(this.result,i,a,new Fq(t.state,s,l>=0)))?new Ey(this.source,l,u,u.from,(o=u.to)!==null&&o!==void 0?o:Qh(t.state)):new Ws(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Ws(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new Ey(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function oWe(e,t,n,r){if(!e)return!1;let o=t.sliceDoc(n,r);return typeof e=="function"?e(o,n,r,t):Qq(e,!0).test(o)}const Yq=Or.define({map(e,t){return e.map(n=>n.map(t))}}),Zq=Or.define(),El=pa.define({create(){return j2.start()},update(e,t){return e.update(t)},provide:e=>[_D.from(e,t=>t.tooltip),xn.contentAttributes.from(e,t=>t.attrs)]});function Uq(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(El).active.find(o=>o.source==t.source);return r instanceof Ey?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},ZQe(e.state,n,r.from,r.to)),{annotations:Wq.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const iWe=KQe(El,Uq);function Fx(e,t="option"){return n=>{let r=n.state.field(El,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(ts).interactionDelay)return!1;let o=1,i;t=="page"&&(i=kG(n,r.open.tooltip))&&(o=Math.max(2,Math.floor(i.dom.offsetHeight/i.dom.querySelector("li").offsetHeight)-1));let{length:a}=r.open.options,s=r.open.selected>-1?r.open.selected+o*(e?1:-1):e?0:a-1;return s<0?s=t=="page"?0:a-1:s>=a&&(s=t=="page"?a-1:0),n.dispatch({effects:Zq.of(s)}),!0}}const aWe=e=>{let t=e.state.field(El,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(ts).interactionDelay?!1:Uq(e,t.open.options[t.open.selected])},sWe=e=>e.state.field(El,!1)?(e.dispatch({effects:VD.of(!0)}),!0):!1,lWe=e=>{let t=e.state.field(El,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:t1.of(null)}),!0)};class uWe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const cWe=50,fWe=1e3,dWe=Mi.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(El).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(El);if(!e.selectionSet&&!e.docChanged&&e.startState.field(El)==t)return;let n=e.transactions.some(r=>(r.selection||r.docChanged)&&!tN(r));for(let r=0;r<this.running.length;r++){let o=this.running[r];if(n||o.updates.length+e.transactions.length>cWe&&Date.now()-o.time>fWe){for(let i of o.context.abortListeners)try{i()}catch(a){cc(this.view.state,a)}o.context.abortListeners=null,this.running.splice(r--,1)}else o.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some(r=>r.state==1&&!this.running.some(o=>o.active.source==r.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let r of e.transactions)tN(r)=="input"?this.composing=2:this.composing==2&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(El);for(let n of t.active)n.state==1&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=Qh(t),r=new Fq(t,n,e.explicitPos==n),o=new uWe(e,r);this.running.push(o),Promise.resolve(e.source(r)).then(i=>{o.context.aborted||(o.done=i||null,this.scheduleAccept())},i=>{this.view.dispatch({effects:t1.of(null)}),cc(this.view.state,i)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ts).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(ts);for(let r=0;r<this.running.length;r++){let o=this.running[r];if(o.done===void 0)continue;if(this.running.splice(r--,1),o.done){let a=new Ey(o.active.source,o.active.explicitPos,o.done,o.done.from,(e=o.done.to)!==null&&e!==void 0?e:Qh(o.updates.length?o.updates[0].startState:this.view.state));for(let s of o.updates)a=a.update(s,n);if(a.hasResult()){t.push(a);continue}}let i=this.view.state.field(El).active.find(a=>a.source==o.active.source);if(i&&i.state==1)if(o.done==null){let a=new Ws(o.active.source,0);for(let s of o.updates)a=a.update(s,n);a.state!=1&&t.push(a)}else this.startQuery(i)}t.length&&this.view.dispatch({effects:Yq.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(El,!1);if(t&&t.tooltip&&this.view.state.facet(ts).closeOnBlur){let n=t.open&&kG(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&this.view.dispatch({effects:t1.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:VD.of(!1)}),20),this.composing=0}}}),Hq=xn.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:`${400}px`,boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`${30}px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`${30}px`},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class hWe{constructor(t,n,r,o){this.field=t,this.line=n,this.from=r,this.to=o}}class FD{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Ra.TrackDel),r=t.mapPos(this.to,1,Ra.TrackDel);return n==null||r==null?null:new FD(this.field,n,r)}}class zD{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],o=[n],i=t.doc.lineAt(n),a=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(r.length){let u=a,d=/^\t*/.exec(l)[0].length;for(let p=0;p<d;p++)u+=t.facet(B1);o.push(n+u.length-d),l=u+l.slice(d)}r.push(l),n+=l.length+1}let s=this.fieldPositions.map(l=>new FD(l.field,o[l.line]+l.from,o[l.line]+l.to));return{text:r,ranges:s}}static parse(t){let n=[],r=[],o=[],i;for(let a of t.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let s=i[1]?+i[1]:null,l=i[2]||i[3]||"",u=-1;for(let d=0;d<n.length;d++)(s!=null?n[d].seq==s:l?n[d].name==l:!1)&&(u=d);if(u<0){let d=0;for(;d<n.length&&(s==null||n[d].seq!=null&&n[d].seq<s);)d++;n.splice(d,0,{seq:s,name:l}),u=d;for(let p of o)p.field>=u&&p.field++}o.push(new hWe(u,r.length,i.index,i.index+l.length)),a=a.slice(0,i.index)+l+a.slice(i.index+i[0].length)}for(let s;s=/\\([{}])/.exec(a);){a=a.slice(0,s.index)+s[1]+a.slice(s.index+s[0].length);for(let l of o)l.line==r.length&&l.from>s.index&&(l.from--,l.to--)}r.push(a)}return new zD(r,o)}}let pWe=Xn.widget({widget:new class extends Ef{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),gWe=Xn.mark({class:"cm-snippetField"});class C0{constructor(t,n){this.ranges=t,this.active=n,this.deco=Xn.set(t.map(r=>(r.from==r.to?pWe:gWe).range(r.from,r.to)))}map(t){let n=[];for(let r of this.ranges){let o=r.map(t);if(!o)return null;n.push(o)}return new C0(n,this.active)}selectionInsideField(t){return t.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const Q1=Or.define({map(e,t){return e&&e.map(t)}}),vWe=Or.define(),n1=pa.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(Q1))return n.value;if(n.is(vWe)&&e)return new C0(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>xn.decorations.from(e,t=>t?t.deco:Xn.none)});function QD(e,t){return Dt.create(e.filter(n=>n.field==t).map(n=>Dt.range(n.from,n.to)))}function mWe(e){let t=zD.parse(e);return(n,r,o,i)=>{let{text:a,ranges:s}=t.instantiate(n.state,o),l={changes:{from:o,to:i,insert:io.of(a)},scrollIntoView:!0,annotations:r?Wq.of(r):void 0};if(s.length&&(l.selection=QD(s,0)),s.length>1){let u=new C0(s,0),d=l.effects=[Q1.of(u)];n.state.field(n1,!1)===void 0&&d.push(Or.appendConfig.of([n1,wWe,SWe,Hq]))}n.dispatch(n.state.update(l))}}function Xq(e){return({state:t,dispatch:n})=>{let r=t.field(n1,!1);if(!r||e<0&&r.active==0)return!1;let o=r.active+e,i=e>0&&!r.ranges.some(a=>a.field==o+e);return n(t.update({selection:QD(r.ranges,o),effects:Q1.of(i?null:new C0(r.ranges,o)),scrollIntoView:!0})),!0}}const yWe=({state:e,dispatch:t})=>e.field(n1,!1)?(t(e.update({effects:Q1.of(null)})),!0):!1,bWe=Xq(1),_We=Xq(-1),OWe=[{key:"Tab",run:bWe,shift:_We},{key:"Escape",run:yWe}],uF=Rn.define({combine(e){return e.length?e[0]:OWe}}),wWe=Sv.highest(j1.compute([uF],e=>e.facet(uF)));function Qs(e,t){return Object.assign(Object.assign({},t),{apply:mWe(e)})}const SWe=xn.domEventHandlers({mousedown(e,t){let n=t.state.field(n1,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let o=n.ranges.find(i=>i.from<=r&&i.to>=r);return!o||o.field==n.active?!1:(t.dispatch({selection:QD(n.ranges,o.field),effects:Q1.of(n.ranges.some(i=>i.field>o.field)?new C0(n.ranges,o.field):null),scrollIntoView:!0}),!0)}}),r1={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Yg=Or.define({map(e,t){let n=t.mapPos(e,-1,Ra.TrackAfter);return n==null?void 0:n}}),WD=new class extends dv{};WD.startSide=1;WD.endSide=-1;const Gq=pa.define({create(){return co.empty},update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,r=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(r,-1)&&(e=co.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(Yg)&&(e=e.update({add:[WD.range(n.value,n.value+1)]}));return e}});function xWe(){return[CWe,Gq]}const xA="()[]{}<>";function qq(e){for(let t=0;t<xA.length;t+=2)if(xA.charCodeAt(t)==e)return xA.charAt(t+1);return fD(e<128?e:e+1)}function Kq(e,t){return e.languageDataAt("closeBrackets",t)[0]||r1}const kWe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),CWe=xn.inputHandler.of((e,t,n,r)=>{if((kWe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(r.length>2||r.length==2&&hu($a(r,0))==1||t!=o.from||n!=o.to)return!1;let i=PWe(e.state,r);return i?(e.dispatch(i),!0):!1}),EWe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=Kq(e,e.selection.main.head).brackets||r1.brackets,o=null,i=e.changeByRange(a=>{if(a.empty){let s=$We(e.doc,a.head);for(let l of r)if(l==s&&oE(e.doc,a.head)==qq($a(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:Dt.cursor(a.head-l.length)}}return{range:o=a}});return o||t(e.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!o},TWe=[{key:"Backspace",run:EWe}];function PWe(e,t){let n=Kq(e,e.selection.main.head),r=n.brackets||r1.brackets;for(let o of r){let i=qq($a(o,0));if(t==o)return i==o?RWe(e,o,r.indexOf(o+o+o)>-1,n):AWe(e,o,i,n.before||r1.before);if(t==i&&Jq(e,e.selection.main.from))return MWe(e,o,i)}return null}function Jq(e,t){let n=!1;return e.field(Gq).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function oE(e,t){let n=e.sliceString(t,t+2);return n.slice(0,hu($a(n,0)))}function $We(e,t){let n=e.sliceString(t-2,t);return hu($a(n,0))==n.length?n:n.slice(1)}function AWe(e,t,n,r){let o=null,i=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:Yg.of(a.to+t.length),range:Dt.range(a.anchor+t.length,a.head+t.length)};let s=oE(e.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:Yg.of(a.head+t.length),range:Dt.cursor(a.head+t.length)}:{range:o=a}});return o?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function MWe(e,t,n){let r=null,o=e.changeByRange(i=>i.empty&&oE(e.doc,i.head)==n?{changes:{from:i.head,to:i.head+n.length,insert:n},range:Dt.cursor(i.head+n.length)}:r={range:i});return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function RWe(e,t,n,r){let o=r.stringPrefixes||r1.stringPrefixes,i=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:Yg.of(s.to+t.length),range:Dt.range(s.anchor+t.length,s.head+t.length)};let l=s.head,u=oE(e.doc,l),d;if(u==t){if(cF(e,l))return{changes:{insert:t+t,from:l},effects:Yg.of(l+t.length),range:Dt.cursor(l+t.length)};if(Jq(e,l)){let v=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+v.length,insert:v},range:Dt.cursor(l+v.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(d=fF(e,l-2*t.length,o))>-1&&cF(e,d))return{changes:{insert:t+t+t+t,from:l},effects:Yg.of(l+t.length),range:Dt.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=ti.Word&&fF(e,l,o)>-1&&!NWe(e,l,t,o))return{changes:{insert:t+t,from:l},effects:Yg.of(l+t.length),range:Dt.cursor(l+t.length)}}return{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function cF(e,t){let n=na(e).resolveInner(t+1);return n.parent&&n.from==t}function NWe(e,t,n,r){let o=na(e).resolveInner(t,-1),i=r.reduce((a,s)=>Math.max(a,s.length),0);for(let a=0;a<5;a++){let s=e.sliceDoc(o.from,Math.min(o.to,o.from+n.length+i)),l=s.indexOf(n);if(!l||l>-1&&r.indexOf(s.slice(0,l))>-1){let d=o.firstChild;for(;d&&d.from==o.from&&d.to-d.from>n.length+l;){if(e.sliceDoc(d.to-n.length,d.to)==n)return!1;d=d.firstChild}return!0}let u=o.to==t&&o.parent;if(!u)break;o=u}return!1}function fF(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=ti.Word)return t;for(let o of n){let i=t-o.length;if(e.sliceDoc(i,t)==o&&r(e.sliceDoc(i-1,i))!=ti.Word)return i}return-1}function IWe(e={}){return[El,ts.of(e),dWe,DWe,Hq]}const eK=[{key:"Ctrl-Space",run:sWe},{key:"Escape",run:lWe},{key:"ArrowDown",run:Fx(!0)},{key:"ArrowUp",run:Fx(!1)},{key:"PageDown",run:Fx(!0,"page")},{key:"PageUp",run:Fx(!1,"page")},{key:"Enter",run:aWe}],DWe=Sv.highest(j1.computeN([ts],e=>e.facet(ts).defaultKeymap?[eK]:[]));class jWe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Ig{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let o=t,i=r.facet(rK).markerFilter;i&&(o=i(o));let a=Xn.set(o.map(s=>s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?Xn.widget({widget:new ZWe(s),diagnostic:s}).range(s.from):Xn.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new Ig(a,n,Jy(a))}}function Jy(e,t=null,n=0){let r=null;return e.between(n,1e9,(o,i,{spec:a})=>{if(!(t&&a.diagnostic!=t))return r=new jWe(o,i,a.diagnostic),!1}),r}function LWe(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(tK))||e.changes.touchesRange(n.from,n.to))}function BWe(e,t){return e.field($l,!1)?t:t.concat(Or.appendConfig.of(XWe))}const tK=Or.define(),YD=Or.define(),nK=Or.define(),$l=pa.define({create(){return new Ig(Xn.none,null,null)},update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let o=t.changes.mapPos(e.selected.from,1);r=Jy(n,e.selected.diagnostic,o)||Jy(n,null,o)}e=new Ig(n,e.panel,r)}for(let n of t.effects)n.is(tK)?e=Ig.init(n.value,e.panel,t.state):n.is(YD)?e=new Ig(e.diagnostics,n.value?iE.open:null,e.selected):n.is(nK)&&(e=new Ig(e.diagnostics,e.panel,n.value));return e},provide:e=>[GO.from(e,t=>t.panel),xn.decorations.from(e,t=>t.diagnostics)]}),VWe=Xn.mark({class:"cm-lintRange cm-lintRange-active"});function FWe(e,t,n){let{diagnostics:r}=e.state.field($l),o=[],i=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,u,{spec:d})=>{t>=l&&t<=u&&(l==u||(t>l||n>0)&&(t<u||n<0))&&(o.push(d.diagnostic),i=Math.min(l,i),a=Math.max(u,a))});let s=e.state.facet(rK).tooltipFilter;return s&&(o=s(o)),o.length?{pos:i,end:a,above:e.state.doc.lineAt(i).to<a,create(){return{dom:zWe(e,o)}}}:null}function zWe(e,t){return jo("ul",{class:"cm-tooltip-lint"},t.map(n=>iK(e,n,!1)))}const QWe=e=>{let t=e.state.field($l,!1);(!t||!t.panel)&&e.dispatch({effects:BWe(e.state,[YD.of(!0)])});let n=XO(e,iE.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},dF=e=>{let t=e.state.field($l,!1);return!t||!t.panel?!1:(e.dispatch({effects:YD.of(!1)}),!0)},WWe=e=>{let t=e.state.field($l,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},YWe=[{key:"Mod-Shift-m",run:QWe,preventDefault:!0},{key:"F8",run:WWe}],rK=Rn.define({combine(e){return Object.assign({sources:e.map(t=>t.source)},Cf(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n}))}});function oK(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;r<n.length;r++){let o=n[r];if(/[a-zA-Z]/.test(o)&&!t.some(i=>i.toLowerCase()==o.toLowerCase())){t.push(o);continue e}}t.push("")}return t}function iK(e,t,n){var r;let o=n?oK(t.actions):[];return jo("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},jo("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map((i,a)=>{let s=!1,l=v=>{if(v.preventDefault(),s)return;s=!0;let y=Jy(e.state.field($l).diagnostics,t);y&&i.apply(e,y.from,y.to)},{name:u}=i,d=o[a]?u.indexOf(o[a]):-1,p=d<0?u:[u.slice(0,d),jo("u",u.slice(d,d+1)),u.slice(d+1)];return jo("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${d<0?"":` (access key "${o[a]})"`}.`},p)}),t.source&&jo("div",{class:"cm-diagnosticSource"},t.source))}class ZWe extends Ef{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return jo("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class hF{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=iK(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class iE{constructor(t){this.view=t,this.items=[];let n=o=>{if(o.keyCode==27)dF(this.view),this.view.focus();else if(o.keyCode==38||o.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(o.keyCode==40||o.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(o.keyCode==36)this.moveSelection(0);else if(o.keyCode==35)this.moveSelection(this.items.length-1);else if(o.keyCode==13)this.view.focus();else if(o.keyCode>=65&&o.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],a=oK(i.actions);for(let s=0;s<a.length;s++)if(a[s].toUpperCase().charCodeAt(0)==o.keyCode){let l=Jy(this.view.state.field($l).diagnostics,i);l&&i.actions[s].apply(t,l.from,l.to)}}else return;o.preventDefault()},r=o=>{for(let i=0;i<this.items.length;i++)this.items[i].dom.contains(o.target)&&this.moveSelection(i)};this.list=jo("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=jo("div",{class:"cm-panel-lint"},this.list,jo("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>dF(this.view)},"\xD7")),this.update()}get selectedIndex(){let t=this.view.state.field($l).selected;if(!t)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==t.diagnostic)return n;return-1}update(){let{diagnostics:t,selected:n}=this.view.state.field($l),r=0,o=!1,i=null;for(t.between(0,this.view.state.doc.length,(a,s,{spec:l})=>{let u=-1,d;for(let p=r;p<this.items.length;p++)if(this.items[p].diagnostic==l.diagnostic){u=p;break}u<0?(d=new hF(this.view,l.diagnostic),this.items.splice(r,0,d),o=!0):(d=this.items[u],u>r&&(this.items.splice(r,u-r),o=!0)),n&&d.diagnostic==n.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),i=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),r++});r<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)o=!0,this.items.pop();this.items.length==0&&(this.items.push(new hF(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),o=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:s})=>{let l=s.height/this.list.offsetHeight;a.top<s.top?this.list.scrollTop-=(s.top-a.top)/l:a.bottom>s.bottom&&(this.list.scrollTop+=(a.bottom-s.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field($l),r=Jy(n.diagnostics,this.items[t].diagnostic);!r||this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:nK.of(r)})}static open(t){return new iE(t)}}function UWe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function zx(e){return UWe(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const HWe=xn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:zx("#d11")},".cm-lintRange-warning":{backgroundImage:zx("orange")},".cm-lintRange-info":{backgroundImage:zx("#999")},".cm-lintRange-hint":{backgroundImage:zx("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),XWe=[$l,xn.decorations.compute([$l],e=>{let{selected:t,panel:n}=e.field($l);return!t||!n||t.from==t.to?Xn.none:Xn.set([VWe.range(t.from,t.to)])}),VFe(FWe,{hideOn:LWe}),HWe],GWe=(()=>[XFe(),KFe(),vFe(),g7e(),Vze(),iFe(),cFe(),Lr.allowMultipleSelections.of(!0),Eze(),zze(Yze,{fallback:!0}),Kze(),xWe(),IWe(),$Fe(),RFe(),wFe(),OQe(),j1.of([...TWe,...gQe,...VQe,...x7e,...Dze,...eK,...YWe])])();/*!
  192. * VueCodemirror v6.1.1
  193. * Copyright (c) Surmon. All rights reserved.
  194. * Released under the MIT License.
  195. * Surmon
  196. */var qWe=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[GWe]}),KWe=Symbol("vue-codemirror-global-config"),_s,JWe=function(e){var t=e.onUpdate,n=e.onChange,r=e.onFocus,o=e.onBlur,i=function(a,s){var l={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(l[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function"){var d=0;for(u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(l[u[d]]=a[u[d]])}return l}(e,["onUpdate","onChange","onFocus","onBlur"]);return Lr.create({doc:i.doc,selection:i.selection,extensions:(Array.isArray(i.extensions)?i.extensions:[i.extensions]).concat([xn.updateListener.of(function(a){t(a),a.docChanged&&n(a.state.doc.toString(),a),a.focusChanged&&(a.view.hasFocus?r(a):o(a))})])})},ty=function(e){var t=new N1;return{compartment:t,run:function(n){t.get(e.state)?e.dispatch({effects:t.reconfigure(n)}):e.dispatch({effects:Or.appendConfig.of(t.of(n))})}}},pF=function(e,t){var n=ty(e),r=n.compartment,o=n.run;return function(i){var a=r.get(e.state);o((i!=null?i:a!==t)?t:[])}},Qx={type:Boolean,default:void 0},eYe={autofocus:Qx,disabled:Qx,indentWithTab:Qx,tabSize:Number,placeholder:String,style:Object,autoDestroy:Qx,phrases:Object,root:Object,extensions:Array,selection:Object},tYe={modelValue:{type:String,default:""}},nYe=Object.assign(Object.assign({},eYe),tYe);(function(e){e.Change="change",e.Update="update",e.Focus="focus",e.Blur="blur",e.Ready="ready",e.ModelUpdate="update:modelValue"})(_s||(_s={}));var Dg={};Dg[_s.Change]=function(e,t){return!0},Dg[_s.Update]=function(e){return!0},Dg[_s.Focus]=function(e){return!0},Dg[_s.Blur]=function(e){return!0},Dg[_s.Ready]=function(e){return!0};var aK={};aK[_s.ModelUpdate]=Dg[_s.Change];var rYe=Object.assign(Object.assign({},Dg),aK),oYe=Se({name:"VueCodemirror",props:Object.assign({},nYe),emits:Object.assign({},rYe),setup:function(e,t){var n=Kr(),r=Kr(),o=Kr(),i=Object.assign(Object.assign({},qWe),Tt(KWe,{})),a=W(function(){var s={};return Object.keys(cr(e)).forEach(function(l){var u;l!=="modelValue"&&(s[l]=(u=e[l])!==null&&u!==void 0?u:i[l])}),s});return vn(function(){var s;r.value=JWe({doc:e.modelValue,selection:a.value.selection,extensions:(s=i.extensions)!==null&&s!==void 0?s:[],onFocus:function(u){return t.emit(_s.Focus,u)},onBlur:function(u){return t.emit(_s.Blur,u)},onUpdate:function(u){return t.emit(_s.Update,u)},onChange:function(u,d){u!==e.modelValue&&(t.emit(_s.Change,u,d),t.emit(_s.ModelUpdate,u,d))}}),o.value=function(u){return new xn(Object.assign({},u))}({state:r.value,parent:n.value,root:a.value.root});var l=function(u){var d=function(){return u.state.doc.toString()},p=ty(u).run,v=pF(u,[xn.editable.of(!1),Lr.readOnly.of(!0)]),y=pF(u,j1.of([vQe])),w=ty(u).run,b=ty(u).run,k=ty(u).run,C=ty(u).run;return{focus:function(){return u.focus()},getDoc:d,setDoc:function(T){T!==d()&&u.dispatch({changes:{from:0,to:u.state.doc.length,insert:T}})},reExtensions:p,toggleDisabled:v,toggleIndentWithTab:y,setTabSize:function(T){w([Lr.tabSize.of(T),B1.of(" ".repeat(T))])},setPhrases:function(T){b([Lr.phrases.of(T)])},setPlaceholder:function(T){k(CFe(T))},setStyle:function(T){T===void 0&&(T={}),C(xn.theme({"&":Object.assign({},T)}))}}}(o.value);at(function(){return e.modelValue},function(u){u!==l.getDoc()&&l.setDoc(u)}),at(function(){return e.extensions},function(u){return l.reExtensions(u||[])},{immediate:!0}),at(function(){return a.value.disabled},function(u){return l.toggleDisabled(u)},{immediate:!0}),at(function(){return a.value.indentWithTab},function(u){return l.toggleIndentWithTab(u)},{immediate:!0}),at(function(){return a.value.tabSize},function(u){return l.setTabSize(u)},{immediate:!0}),at(function(){return a.value.phrases},function(u){return l.setPhrases(u||{})},{immediate:!0}),at(function(){return a.value.placeholder},function(u){return l.setPlaceholder(u)},{immediate:!0}),at(function(){return a.value.style},function(u){return l.setStyle(u)},{immediate:!0}),a.value.autofocus&&l.focus(),t.emit(_s.Ready,{state:r.value,view:o.value,container:n.value})}),Ur(function(){a.value.autoDestroy&&o.value&&function(s){s.destroy()}(o.value)}),function(){return Yt("div",{class:"v-codemirror",style:{display:"contents"},ref:n})}}}),e0=oYe;class L2{constructor(t,n,r,o,i,a,s,l,u,d=0,p){this.p=t,this.stack=n,this.state=r,this.reducePos=o,this.pos=i,this.score=a,this.buffer=s,this.bufferBase=l,this.curContext=u,this.lookAhead=d,this.parent=p}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let o=t.parser.context;return new L2(t,[],n,r,r,0,[],0,o?new gF(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,o=t&65535,{parser:i}=this.p,a=i.dynamicPrecedence(o);if(a&&(this.score+=a),r==0){this.pushState(i.getGoto(this.state,o,!0),this.reducePos),o<i.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,4,!0),this.reduceContext(o,this.reducePos);return}let s=this.stack.length-(r-1)*3-(t&262144?6:0),l=s?this.stack[s-2]:this.p.ranges[0].from,u=this.reducePos-l;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[o])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=u));let d=s?this.stack[s-1]:0,p=this.bufferBase+this.buffer.length-d;if(o<i.minRepeatTerm||t&131072){let v=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,l,v,p+4,!0)}if(t&262144)this.state=this.stack[s];else{let v=this.stack[s-3];this.state=i.getGoto(v,o,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(o,l)}storeNode(t,n,r,o=4,i=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let a=this,s=this.buffer.length;if(s==0&&a.parent&&(s=a.bufferBase-a.parent.bufferBase,a=a.parent),s>0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!i||this.pos==r)this.buffer.push(t,n,r,o);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,o>4&&(o-=4);this.buffer[a]=t,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+3]=o}}shift(t,n,r,o){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let i=t,{parser:a}=this.p;(o>this.pos||n<=a.maxNode)&&(this.pos=o,a.stateFlag(i,1)||(this.reducePos=o)),this.pushState(i,r),this.shiftContext(n,r),n<=a.maxNode&&this.buffer.push(n,r,o,4)}else this.pos=o,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,o,4)}apply(t,n,r,o){t&65536?this.reduce(t):this.shift(t,n,r,o)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let o=this.pos;this.reducePos=this.pos=o+t.length,this.pushState(n,o),this.buffer.push(r,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),o=t.bufferBase+n;for(;t&&o==t.bufferBase;)t=t.parent;return new L2(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,o,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new iYe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>4<<1||this.stack.length>=120){let o=[];for(let i=0,a;i<n.length;i+=2)(a=n[i+1])!=this.state&&this.p.parser.hasAction(a,t)&&o.push(n[i],a);if(this.stack.length<120)for(let i=0;o.length<4<<1&&i<n.length;i+=2){let a=n[i+1];o.some((s,l)=>l&1&&s==a)||o.push(n[i],a)}n=o}let r=[];for(let o=0;o<n.length&&r.length<4;o+=2){let i=n[o+1];if(i==this.state)continue;let a=this.split();a.pushState(i,this.pos),a.storeNode(0,a.pos,a.pos,4,!0),a.shiftContext(n[o],this.pos),a.reducePos=this.pos,a.score-=200,r.push(a)}return r}forceReduce(){let{parser:t}=this.p,n=t.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!t.validAction(this.state,n)){let r=n>>19,o=n&65535,i=this.stack.length-r*3;if(i<0||t.getGoto(this.stack[i],o,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(o,i)=>{if(!n.includes(o))return n.push(o),t.allActions(o,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-i;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,i+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}reduceContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let n=new gF(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class gF{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class iYe{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=o}}class B2{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new B2(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new B2(this.stack,this.pos,this.index)}}function D_(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,o=0;r<e.length;){let i=0;for(;;){let a=e.charCodeAt(r++),s=!1;if(a==126){i=65535;break}a>=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),i+=l,s)break;i*=46}n?n[o++]=i:n=new t(i)}return n}class kk{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const vF=new kk;class aYe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=vF,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,o=this.rangeIndex,i=this.pos+t;for(;i<r.from;){if(!o)return null;let a=this.ranges[--o];i-=r.from-a.to,r=a}for(;n<0?i>r.to:i>=r.to;){if(o==this.ranges.length-1)return null;let a=this.ranges[++o];i+=a.from-r.to,r=a}return i}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let n of this.ranges)if(n.to>t)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,o;if(n>=0&&n<this.chunk.length)r=this.pos+t,o=this.chunk.charCodeAt(n);else{let i=this.resolveOffset(t,1);if(i==null)return-1;if(r=i,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let a=this.rangeIndex,s=this.range;for(;s.to<=r;)s=this.ranges[++a];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),o=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),o}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),n=this.pos+t.length;this.chunk=n>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=vF,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let o of this.ranges){if(o.from>=n)break;o.to>t&&(r+=this.input.read(Math.max(o.from,t),Math.min(o.to,n)))}return r}}class Ty{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;sK(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}Ty.prototype.contextual=Ty.prototype.fallback=Ty.prototype.extend=!1;class nN{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?D_(t):t}token(t,n){let r=t.pos,o=0;for(;;){let i=t.next<0,a=t.resolveOffset(1,1);if(sK(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(i||o++,a==null)break;t.reset(a,t.token)}o&&(t.reset(r,t.token),t.acceptToken(this.elseToken,o))}}nN.prototype.contextual=Ty.prototype.fallback=Ty.prototype.extend=!1;class ZD{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function sK(e,t,n,r,o,i){let a=0,s=1<<r,{dialect:l}=n.p.parser;e:for(;(s&e[a])!=0;){let u=e[a+1];for(let y=a+3;y<u;y+=2)if((e[y+1]&s)>0){let w=e[y];if(l.allows(w)&&(t.token.value==-1||t.token.value==w||sYe(w,t.token.value,o,i))){t.acceptToken(w);break}}let d=t.next,p=0,v=e[a+2];if(t.next<0&&v>p&&e[u+v*3-3]==65535&&e[u+v*3-3]==65535){a=e[u+v*3-1];continue e}for(;p<v;){let y=p+v>>1,w=u+y+(y<<1),b=e[w],k=e[w+1]||65536;if(d<b)v=y;else if(d>=k)p=y+1;else{a=e[w+2],t.advance();continue e}}break}}function mF(e,t,n){for(let r=t,o;(o=e[r])!=65535;r++)if(o==n)return r-t;return-1}function sYe(e,t,n,r){let o=mF(n,r,t);return o<0||mF(n,r,e)<o}const Sl=typeof process!="undefined"&&process.env&&/\bparse\b/.test({}.LOG);let kA=null;function yF(e,t,n){let r=e.cursor(qi.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class lYe{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?yF(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?yF(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],o=this.index[n];if(o==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=r.children[o],a=this.start[n]+r.positions[o];if(a>t)return this.nextStart=a,null;if(i instanceof Bi){if(a==t){if(a<this.safeFrom)return null;let s=a+i.length;if(s<=this.safeTo){let l=i.prop(Zr.lookAhead);if(!l||s+l<this.fragment.to)return i}}this.index[n]++,a+i.length>=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+i.length}}}class uYe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new kk)}getActions(t){let n=0,r=null,{parser:o}=t.p,{tokenizers:i}=o,a=o.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let u=0;u<i.length;u++){if((1<<u&a)==0)continue;let d=i[u],p=this.tokens[u];if(!(r&&!d.fallback)&&((d.contextual||p.start!=t.pos||p.mask!=a||p.context!=s)&&(this.updateCachedToken(p,d,t),p.mask=a,p.context=s),p.lookAhead>p.end+25&&(l=Math.max(p.lookAhead,l)),p.value!=0)){let v=n;if(p.extended>-1&&(n=this.addActions(t,p.extended,p.end,n)),n=this.addActions(t,p.value,p.end,n),!d.extend&&(r=p,n>v))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new kk,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new kk,{pos:r,p:o}=t;return n.start=r,n.end=Math.min(r+1,o.stream.end),n.value=r==o.stream.end?o.parser.eofTerm:0,n}updateCachedToken(t,n,r){let o=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(o,t),r),t.value>-1){let{parser:i}=r.p;for(let a=0;a<i.specialized.length;a++)if(i.specialized[a]==t.value){let s=i.specializers[a](this.stream.read(t.start,t.end),r);if(s>=0&&r.p.parser.dialect.allows(s>>1)){(s&1)==0?t.value=s>>1:t.extended=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(o+1)}putAction(t,n,r,o){for(let i=0;i<o;i+=3)if(this.actions[i]==t)return o;return this.actions[o++]=t,this.actions[o++]=n,this.actions[o++]=r,o}addActions(t,n,r,o){let{state:i}=t,{parser:a}=t.p,{data:s}=a;for(let l=0;l<2;l++)for(let u=a.stateSlot(i,l?2:1);;u+=3){if(s[u]==65535)if(s[u+1]==1)u=id(s,u+2);else{o==0&&s[u+1]==2&&(o=this.putAction(id(s,u+2),n,r,o));break}s[u]==n&&(o=this.putAction(id(s,u+1),n,r,o))}return o}}class cYe{constructor(t,n,r,o){this.parser=t,this.input=n,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new aYe(n,o),this.tokens=new uYe(t,this.stream),this.topTerm=t.top[1];let{from:i}=o[0];this.stacks=[L2.start(this,t.top[0],i)],this.fragments=r.length&&this.stream.end-i>t.bufferLength*4?new lYe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],o,i;if(this.bigReductionCount>300&&t.length==1){let[a]=t;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<t.length;a++){let s=t[a];for(;;){if(this.tokens.mainToken=null,s.pos>n)r.push(s);else{if(this.advanceStack(s,r,t))continue;{o||(o=[],i=[]),o.push(s);let l=this.tokens.getMainToken(s);i.push(l.value,l.end)}}break}}if(!r.length){let a=o&&hYe(o);if(a)return Sl&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Sl&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&o){let a=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,i,r);if(a)return Sl&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a<r.length-1;a++){let s=r[a];for(let l=a+1;l<r.length;l++){let u=r[l];if(s.sameState(u)||s.buffer.length>500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a<r.length;a++)r[a].pos<this.minStackPos&&(this.minStackPos=r[a].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,n,r){let o=t.pos,{parser:i}=this,a=Sl?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,d=u?t.curContext.hash:0;for(let p=this.fragments.nodeAt(o);p;){let v=this.parser.nodeSet.types[p.type.id]==p.type?i.getGoto(t.state,p.type.id):-1;if(v>-1&&p.length&&(!u||(p.prop(Zr.contextHash)||0)==d))return t.useNode(p,v),Sl&&console.log(a+this.stackID(t)+` (via reuse of ${i.getName(p.type.id)})`),!0;if(!(p instanceof Bi)||p.children.length==0||p.positions[0]>0)break;let y=p.children[0];if(y instanceof Bi&&p.positions[0]==0)p=y;else break}}let s=i.stateSlot(t.state,4);if(s>0)return t.reduce(s),Sl&&console.log(a+this.stackID(t)+` (via always-reduce ${i.getName(s&65535)})`),!0;if(t.stack.length>=9e3)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;u<l.length;){let d=l[u++],p=l[u++],v=l[u++],y=u==l.length||!r,w=y?t:t.split(),b=this.tokens.mainToken;if(w.apply(d,p,b?b.start:w.pos,v),Sl&&console.log(a+this.stackID(w)+` (via ${(d&65536)==0?"shift":`reduce of ${i.getName(d&65535)}`} for ${i.getName(p)} @ ${o}${w==t?"":", split"})`),y)return!0;w.pos>o?n.push(w):r.push(w)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return bF(t,n),!0}}runRecovery(t,n,r){let o=null,i=!1;for(let a=0;a<t.length;a++){let s=t[a],l=n[a<<1],u=n[(a<<1)+1],d=Sl?this.stackID(s)+" -> ":"";if(s.deadEnd&&(i||(i=!0,s.restart(),Sl&&console.log(d+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let p=s.split(),v=d;for(let y=0;p.forceReduce()&&y<10&&(Sl&&console.log(v+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,r));y++)Sl&&(v=this.stackID(p)+" -> ");for(let y of s.recoverByInsert(l))Sl&&console.log(d+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Sl&&console.log(d+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),bF(s,r)):(!o||o.score<s.score)&&(o=s)}return o}stackToTree(t){return t.close(),Bi.build({buffer:B2.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let n=(kA||(kA=new WeakMap)).get(t);return n||kA.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}function bF(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class fYe{constructor(t,n,r){this.source=t,this.flags=n,this.disabled=r}allows(t){return!this.disabled||this.disabled[t]==0}}const CA=e=>e;class dYe{constructor(t){this.start=t.start,this.shift=t.shift||CA,this.reduce=t.reduce||CA,this.reuse=t.reuse||CA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class o1 extends RG{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (${14})`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;s<t.repeatNodeCount;s++)n.push("");let r=Object.keys(t.topRules).map(s=>t.topRules[s][1]),o=[];for(let s=0;s<n.length;s++)o.push([]);function i(s,l,u){o[s].push([l,l.deserialize(String(u))])}if(t.nodeProps)for(let s of t.nodeProps){let l=s[0];typeof l=="string"&&(l=Zr[l]);for(let u=1;u<s.length;){let d=s[u++];if(d>=0)i(d,l,s[u++]);else{let p=s[u+-d];for(let v=-d;v>0;v--)i(s[u++],l,p);u++}}}this.nodeSet=new wD(n.map((s,l)=>tl.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:o[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=PG;let a=D_(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;s<this.specializerSpecs.length;s++)this.specialized[s]=this.specializerSpecs[s].term;this.specializers=this.specializerSpecs.map(_F),this.states=D_(t.states,Uint32Array),this.data=D_(t.stateData),this.goto=D_(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(s=>typeof s=="number"?new Ty(a,s):s),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let o=new cYe(this,t,n,r);for(let i of this.wrappers)o=i(o,t,n,r);return o}getGoto(t,n,r=!1){let o=this.goto;if(n>=o[0])return-1;for(let i=o[n+1];;){let a=o[i++],s=a&1,l=o[i++];if(s&&r)return l;for(let u=i+(a>>1);i<u;i++)if(o[i]==t)return l;if(s)return-1}}hasAction(t,n){let r=this.data;for(let o=0;o<2;o++)for(let i=this.stateSlot(t,o?2:1),a;;i+=3){if((a=r[i])==65535)if(r[i+1]==1)a=r[i=id(r,i+2)];else{if(r[i+1]==2)return id(r,i+2);break}if(a==n||a==0)return id(r,i+1)}return 0}stateSlot(t,n){return this.states[t*6+n]}stateFlag(t,n){return(this.stateSlot(t,0)&n)>0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),o=r?n(r):void 0;for(let i=this.stateSlot(t,1);o==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=id(this.data,i+2);else break;o=n(id(this.data,i+1))}return o}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=id(this.data,r+2);else break;if((this.data[r+2]&1)==0){let o=this.data[r+1];n.some((i,a)=>a&1&&i==o)||n.push(this.data[r],o)}}return n}configure(t){let n=Object.assign(Object.create(o1.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let o=t.tokenizers.find(i=>i.from==r);return o?o.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,o)=>{let i=t.specializers.find(s=>s.from==r.external);if(!i)return r;let a=Object.assign(Object.assign({},r),{external:i.to});return n.specializers[o]=_F(a),a})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let i of t.split(" ")){let a=n.indexOf(i);a>=0&&(r[a]=!0)}let o=null;for(let i=0;i<n.length;i++)if(!r[i])for(let a=this.dialects[n[i]],s;(s=this.data[a++])!=65535;)(o||(o=new Uint8Array(this.maxTerm+1)))[s]=1;return new fYe(t,r,o)}static deserialize(t){return new o1(t)}}function id(e,t){return e[t]|e[t+1]<<16}function hYe(e){let t=null;for(let n of e){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function _F(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}const pYe=CD({String:bt.string,Number:bt.number,"True False":bt.bool,PropertyName:bt.propertyName,Null:bt.null,",":bt.separator,"[ ]":bt.squareBracket,"{ }":bt.brace}),gYe=o1.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26A0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[pYe],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),vYe=KO.define({name:"json",parser:gYe.configure({props:[PD.add({Object:lO({except:/^\s*\}/}),Array:lO({except:/^\s*\]/})}),AD.add({"Object Array":FG})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function aE(){return new LG(vYe)}const mYe={style:{flex:"auto"}},yYe={__name:"DataDialog",props:["show","data","ruleChainId","lf"],emits:["submit","close"],setup(e,{emit:t}){const n=e,r=[aE()],{show:o,data:i,ruleChainId:a}=ea(n),s=()=>{let d=new Blob([i.value],{type:"text/plain;charset=utf-8"});oX.exports.saveAs(d,a.value+".json")},l=()=>{n.lf.getSnapshot(a.value+".png","#FFF")},u=()=>{t("close")};return(d,p)=>{const v=il,y=ol,w=no,b=Td;return Z(),Fe(b,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,width:"70%",draggable:"",top:"10px","before-close":u,modelValue:m(o)},{header:ue(()=>[re(y,null,{default:ue(()=>[re(v,{span:12},{default:ue(()=>[St("\u751F\u6210\u7684\u89C4\u5219\u94FE\u6587\u4EF6\u53EF\u4EE5\u76F4\u63A5\u7ED9RuleGo\u8C03\u7528")]),_:1})]),_:1})]),footer:ue(()=>[ve("div",mYe,[re(w,{type:"primary",onClick:l},{default:ue(()=>[St("\u4E0B\u8F7D\u56FE\u7247")]),_:1}),re(w,{type:"primary",onClick:s},{default:ue(()=>[St("\u4E0B\u8F7D\u6570\u636E")]),_:1}),re(w,{onClick:u},{default:ue(()=>[St("\u53D6\u6D88")]),_:1})])]),default:ue(()=>[re(m(e0),{modelValue:m(i),"onUpdate:modelValue":p[0]||(p[0]=k=>Jr(i)?i.value=k:null),placeholder:"\u8BF7\u8F93\u5165\u89C4\u5219\u94FE\u5B9A\u4E49JSON\u5185\u5BB9...",style:{height:"400px",width:"100%"},autofocus:!0,tabSize:2,extensions:r},null,8,["modelValue"])]),_:1},8,["modelValue"])}}},bYe=ve("a",{href:"https://github.com/rulego/rulego/tree/main/examples/server",target:"_blank"},"examples/server",-1),_Ye=ve("br",null,null,-1),OYe=ve("br",null,null,-1),wYe={style:{flex:"auto"}},SYe={__name:"SettingDialog",props:["show","lf"],emits:["submit","close"],setup(e,{emit:t}){const{show:n,lf:r}=e,o=ee(),i=nr({url:r.getEditorSetting().url,toolbar:r.getEditorSetting().toolbar});gc(()=>{i.url=r.getEditorSetting().url,i.toolbar=r.getEditorSetting().toolbar});const a=()=>{t("submit",cr(i))},s=()=>{t("close")};return(l,u)=>{const d=il,p=ol,v=dY,y=A1,w=ei,b=xf,k=Fl,C=Sf,T=no,$=Td;return Z(),Fe($,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,width:"50%",draggable:"",top:"10px","before-close":s,modelValue:e.show},{header:ue(()=>[re(p,null,{default:ue(()=>[re(d,{span:12},{default:ue(()=>[St("RuleGo-Editor\u8BBE\u7F6E")]),_:1})]),_:1})]),footer:ue(()=>[ve("div",wYe,[re(T,{type:"primary",onClick:a},{default:ue(()=>[St("\u786E\u8BA4")]),_:1}),re(T,{onClick:s},{default:ue(()=>[St("\u53D6\u6D88")]),_:1})])]),default:ue(()=>[re(v,{title:"",type:"info",style:{"margin-bottom":"10px","margin-top":"-10px"},center:""},{default:ue(()=>[St(" \u652F\u6301\u79BB\u7EBF\u8FD0\u884C\uFF0C\u5E76\u751F\u6210\u89C4\u5219\u94FE\u6570\u636E\u3002\u5982\u679C\u9700\u8981\u5BF9\u63A5\u540E\u53F0API\u3002\u8BF7\u5148\u8FD0\u884C\uFF1A"),bYe,St("\u3002 ")]),_:1}),re(y,{size:"small",type:"info"},{default:ue(()=>[St("\u4EE5\u4E0B\u53C2\u6570\u4E0D\u4F1A\u505Alocalstorage\u5B58\u50A8\uFF0C\u8FD9\u4E9B\u53C2\u6570\u4E00\u822C\u662F\u7236\u7EC4\u4EF6\u4F20\u9012\u8FC7\u6765")]),_:1}),_Ye,OYe,re(C,{model:i,ref_key:"formRef",ref:o,"label-position":"top","label-width":"auto"},{default:ue(()=>[re(b,{label:"RuleGo\u540E\u53F0URL",prop:"url"},{default:ue(()=>[re(w,{modelValue:i.url,"onUpdate:modelValue":u[0]||(u[0]=P=>i.url=P),placeholder:"\u7528\u4E8E\u4FDD\u5B58\u548C\u8C03\u8BD5\u89C4\u5219\u94FE"},null,8,["modelValue"])]),_:1}),re(b,{label:"Toolbar\u7BA1\u7406"},{default:ue(()=>[re(k,{modelValue:i.toolbar.showTest,"onUpdate:modelValue":u[1]||(u[1]=P=>i.toolbar.showTest=P)},{default:ue(()=>[St("\u8C03\u8BD5\u89C4\u5219\u94FE")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showNewOrOpen,"onUpdate:modelValue":u[2]||(u[2]=P=>i.toolbar.showNewOrOpen=P)},{default:ue(()=>[St("\u65B0\u5EFA/\u6253\u5F00")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showData,"onUpdate:modelValue":u[3]||(u[3]=P=>i.toolbar.showData=P)},{default:ue(()=>[St("\u67E5\u770B\u6570\u636E")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showSetting,"onUpdate:modelValue":u[4]||(u[4]=P=>i.toolbar.showSetting=P)},{default:ue(()=>[St("\u8BBE\u7F6E")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showFullScreen,"onUpdate:modelValue":u[5]||(u[5]=P=>i.toolbar.showFullScreen=P)},{default:ue(()=>[St("\u5168\u5C4F")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showDelete,"onUpdate:modelValue":u[6]||(u[6]=P=>i.toolbar.showDelete=P)},{default:ue(()=>[St("\u5220\u9664\u5168\u9009")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showSave,"onUpdate:modelValue":u[7]||(u[7]=P=>i.toolbar.showSave=P)},{default:ue(()=>[St("\u4FDD\u5B58")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showReset,"onUpdate:modelValue":u[8]||(u[8]=P=>i.toolbar.showReset=P)},{default:ue(()=>[St("\u91CD\u7F6E")]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},xYe={__name:"NodeOperate",props:["currentElementPosition"],emits:["edit","delete"],setup(e,{emit:t}){const n=()=>{t("edit")},r=()=>{t("delete")};return(o,i)=>{const a=no;return Z(),ce("div",{style:Vt({position:"absolute",top:e.currentElementPosition.y+"px",left:e.currentElementPosition.x+"px"})},[re(a,{type:"danger",size:"small",icon:m(x1e),onClick:n,circle:""},null,8,["icon"]),re(a,{type:"danger",size:"small",icon:m(_W),onClick:r,circle:"",style:{"margin-left":"3px"}},null,8,["icon"])],4)}}},kYe={style:{flex:"auto","text-align":"right"}},CYe={__name:"NewFlowForm",props:["show"],emits:["submit","close"],setup(e,{emit:t}){const n=ee(),r=nr({id:"default",name:"",root:!0,additionalInfo:{description:""}}),o=()=>{t("submit",cr(r))},i=()=>{t("close")};return(a,s)=>{const l=ei,u=xf,d=P1,p=no,v=Sf;return Z(),Fe(v,{model:r,ref_key:"formRef",ref:n,"label-position":"top","label-width":"auto"},{default:ue(()=>[re(u,{label:"ID",prop:"id"},{default:ue(()=>[re(l,{modelValue:r.id,"onUpdate:modelValue":s[0]||(s[0]=y=>r.id=y),placeholder:"\u5982\u679C\u4E0D\u6307\u5B9A\uFF0C\u81EA\u52A8\u751F\u6210"},null,8,["modelValue"])]),_:1}),re(u,{label:"\u540D\u79F0",prop:"name"},{default:ue(()=>[re(l,{modelValue:r.name,"onUpdate:modelValue":s[1]||(s[1]=y=>r.name=y),placeholder:"\u8BF7\u8F93\u5165\u89C4\u5219\u94FE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),re(u,{label:"\u6839\u89C4\u5219\u94FE",prop:"root"},{default:ue(()=>[re(d,{class:"ml-2",modelValue:r.root,"onUpdate:modelValue":s[2]||(s[2]=y=>r.root=y),style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"}},null,8,["modelValue"])]),_:1}),re(u,{label:"\u63CF\u8FF0",prop:"description"},{default:ue(()=>[re(l,{modelValue:r.additionalInfo.description,"onUpdate:modelValue":s[3]||(s[3]=y=>r.additionalInfo.description=y),type:"textarea",rows:"2",placeholder:"\u8BF7\u8F93\u5165\u89C4\u5219\u94FE\u63CF\u8FF0"},null,8,["modelValue"])]),_:1}),ve("div",kYe,[re(p,{type:"primary",onClick:o},{default:ue(()=>[St("\u786E\u8BA4")]),_:1}),re(p,{onClick:i},{default:ue(()=>[St("\u53D6\u6D88")]),_:1})])]),_:1},8,["model"])}}},EYe={style:{flex:"auto","text-align":"right"}},TYe={__name:"OpenFlowForm",props:["show","lf"],emits:["submit","close"],setup(e,{emit:t}){const{show:n,lf:r}=e,o=[aE()],i=ee(),a=nr({url:r.getEditorSetting().ruleApi.replace(":id","chain_call_rest_api"),data:""}),s=()=>{a.url&&fetch(r.getEditorSetting().url+a.url).then(d=>d.text()).then(d=>{a.data=d}).catch(d=>{Ki.error(d.message)})},l=()=>{t("submit",cr(a).data)},u=()=>{t("close")};return(d,p)=>{const v=ei,y=il,w=no,b=ol,k=xf,C=Sf;return Z(),Fe(C,{model:a,ref_key:"formRef",ref:i,"label-position":"top","label-width":"auto"},{default:ue(()=>[re(k,{label:"\u89C4\u5219\u94FE\u5730\u5740",prop:"url"},{default:ue(()=>[re(b,{style:{width:"100%"}},{default:ue(()=>[re(y,{span:18},{default:ue(()=>[re(v,{modelValue:a.url,"onUpdate:modelValue":p[0]||(p[0]=T=>a.url=T),placeholder:"\u8BF7\u8F93\u5165\u52A0\u8F7D\u89C4\u5219\u94FE\u5730\u5740:/api/v1/rule/:id"},{prepend:ue(()=>[St(" GET "+ut(e.lf.getEditorSetting().url),1)]),_:1},8,["modelValue"])]),_:1}),re(y,{span:4,offset:1,class:"el-form-item__label"},{default:ue(()=>[re(w,{onClick:s,type:"primary"},{default:ue(()=>[St("\u52A0\u8F7D")]),_:1})]),_:1})]),_:1})]),_:1}),re(k,{label:"\u89C4\u5219\u94FE\u5B9A\u4E49\u6570\u636E",prop:"data"},{default:ue(()=>[re(m(e0),{modelValue:a.data,"onUpdate:modelValue":p[1]||(p[1]=T=>a.data=T),placeholder:"\u8BF7\u8F93\u5165\u89C4\u5219\u94FE\u5B9A\u4E49JSON\u6570\u636E...",style:{height:"260px",width:"100%"},autofocus:!0,tabSize:2,extensions:o},null,8,["modelValue"])]),_:1}),ve("div",EYe,[re(w,{type:"primary",size:"large",onClick:l},{default:ue(()=>[St("\u786E\u8BA4")]),_:1}),re(w,{size:"large",onClick:u},{default:ue(()=>[St("\u53D6\u6D88")]),_:1})])]),_:1},8,["model"])}}},PYe={__name:"NewOrOpenFlowDialog",props:["show","lf"],emits:["new","open","close"],setup(e,{emit:t}){const n=ee("new"),r=a=>{t("new",a)},o=a=>{t("open",a)},i=()=>{t("close")};return(a,s)=>{const l=il,u=ol,d=QC,p=zC,v=Td;return Z(),Fe(v,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,draggable:"",top:"10px","before-close":i,modelValue:e.show},{header:ue(()=>[re(u,null,{default:ue(()=>[re(l,{span:12},{default:ue(()=>[St("\u65B0\u5EFA/\u6253\u5F00\u89C4\u5219\u94FE")]),_:1})]),_:1})]),default:ue(()=>[re(p,{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=y=>n.value=y)},{default:ue(()=>[re(d,{label:"\u65B0\u5EFA\u89C4\u5219\u94FE",name:"new"},{default:ue(()=>[re(CYe,{onSubmit:r,onClose:i})]),_:1}),re(d,{label:"\u6253\u5F00\u89C4\u5219\u94FE",name:"open"},{default:ue(()=>[re(TYe,{lf:e.lf,onSubmit:o,onClose:i},null,8,["lf"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}}},$Ye={style:{flex:"auto"}},AYe={__name:"PostMsgDialog",props:["show","lf"],emits:["submit","close"],setup(e,{emit:t}){const{show:n,lf:r}=e,o=[aE()],i=ee(),a=nr({url:r.getEditorSetting().msgApi.replace(":chainId",r.getRuleChain().id),headers:`
  197. {
  198. "Content-Type": "application/json"
  199. }
  200. `,body:`
  201. {
  202. "temperature":28
  203. }
  204. `});let s=":msgTye";gc(()=>{a.url=r.getEditorSetting().msgApi.replace(":chainId",r.getRuleChain().id).replace(":msgType",s)});const l=d=>{!d||d.validate(p=>{if(p)try{if(a.url.indexOf(":")>-1){Ki.error("\u8BF7\u66FF\u6362url\u4E2D\u7684:msgType(\u6D88\u606F\u7C7B\u578B)");return}else{let y=a.url.lastIndexOf("/"),w=a.url.length;s=a.url.slice(y+1,w)}const v={method:"POST",headers:JSON.parse(a.headers),body:a.body};fetch(r.getEditorSetting().url+a.url,v).then(y=>y.text()).then(y=>{Ki({showClose:!0,message:"\u53D1\u9001\u6210\u529F",type:"success"})}).catch(y=>{Ki.error(y.message)})}catch(v){Ki.error(v.message)}else return!1})},u=()=>{t("close")};return(d,p)=>{const v=ei,y=xf,w=Sf,b=no,k=Td;return Z(),Fe(k,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,width:"70%",draggable:"",top:"10px","before-close":u,modelValue:e.show},{header:ue(()=>[St(" \u8C03\u8BD5 ")]),footer:ue(()=>[ve("div",$Ye,[re(b,{type:"primary",size:"large",onClick:p[3]||(p[3]=C=>l(i.value))},{default:ue(()=>[St("\u53D1\u9001")]),_:1}),re(b,{size:"large",onClick:u},{default:ue(()=>[St("\u53D6\u6D88")]),_:1})])]),default:ue(()=>[re(w,{model:a,ref_key:"formRef",ref:i,"label-position":"top","label-width":"auto"},{default:ue(()=>[re(y,{label:"\u4E0A\u62A5\u6570\u636EURL",rules:[{required:!0,message:"url\u662F\u5FC5\u987B\u7684"}],prop:"url"},{default:ue(()=>[re(v,{modelValue:a.url,"onUpdate:modelValue":p[0]||(p[0]=C=>a.url=C),placeholder:"\u8BF7\u8F93\u5165\u4E0A\u62A5\u6570\u636EURL:/api/v1/msg/:chainId/:msgType"},{prepend:ue(()=>[St(" POST "+ut(e.lf.getEditorSetting().url),1)]),_:1},8,["modelValue"])]),_:1}),re(y,{label:"\u8BF7\u6C42\u5934",prop:"headers"},{default:ue(()=>[re(m(e0),{modelValue:a.headers,"onUpdate:modelValue":p[1]||(p[1]=C=>a.headers=C),placeholder:"\u8BF7\u8F93\u5165\u8BF7\u6C42\u5934\u6570\u636E",style:{height:"100px",width:"100%"},autofocus:!0,tabSize:2,extensions:o},null,8,["modelValue"])]),_:1}),re(y,{label:"\u8BF7\u6C42Body",prop:"body"},{default:ue(()=>[re(m(e0),{modelValue:a.body,"onUpdate:modelValue":p[2]||(p[2]=C=>a.body=C),placeholder:"\u8BF7\u8F93\u5165\u8BF7\u6C42\u4F53\u6570\u636E",style:{height:"100px",width:"100%"},autofocus:!0,tabSize:2,extensions:o},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},MYe=e=>(ioe("data-v-ffe8d418"),e=e(),aoe(),e),RYe={class:"up-toolbar"},NYe=MYe(()=>ve("div",{class:"logo"},[ve("img",{class:"logoimg",src:iVe,alt:"logo"}),St("Sagoo Rule Editor ")],-1)),IYe={class:"title"},DYe={__name:"Toolbar",props:["lf"],setup(e){const{lf:t}=e,n=ee(null),r=ee(null),o=ee(!1),i=ee(!1),a=ee(!1),s=ee(),l=ee(),u=ee(!1),d=ee(!1),p=ee(!1),v=ee(!1),y=ee(!1),w=ee("");let b=ee({x:0,y:0}),k=ee({x:0,y:0,targetNodeId:""});const C=ee(!0),T=ee({toolbar:t.getEditorSetting().toolbar});vn(()=>{const ne=window.location.search.split("?id=")[1];ne&&fetch(t.getEditorSetting().url+"/api/v1/rule/"+ne).then(X=>{if(!X.ok)Ki.closeAll(),Ki.error("\u89C4\u5219\u94FE\u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u66F4\u6362 ID \u518D\u6B21\u5C1D\u8BD5");else return X.text()}).then(X=>{X&&z(X)}).catch(X=>{Ki.error(X.message)})}),t.on("history:change",()=>{i.value=!0}),t.on("selection:selected,node:click,edge:click,blank:click",()=>{const{nodes:ne,edges:X}=t.getSelectElements();ne.filter(G=>G.type!=="start-node").length>0||X.length>0?o.value=!0:o.value=!1}),t.on("node:drag",({data:ne,e:X})=>{if(ne.type!=="start-node"&&n.value&&ne.id===n.value.id){let V=t.getPointByClient(X.clientX,X.clientY);b.value.x=V.domOverlayPosition.x+40,b.value.y=V.domOverlayPosition.y-45}else if(r.value){let V=t.getEdgeDataById(r.value.id);if(ne.id!==V.sourceNodeId&&ne.id!==V.targetNodeId)return;let G=t.getPointByClient(X.clientX,X.clientY);k.value.x!==0&&k.value.y!==0&&k.value.targetNodeId===ne.id&&(b.value.x=b.value.x-(k.value.x-G.domOverlayPosition.x),b.value.y=b.value.y-(k.value.y-G.domOverlayPosition.y)),k.value.x=G.domOverlayPosition.x,k.value.y=G.domOverlayPosition.y,k.value.targetNodeId=ne.id}}),t.on("node:click",({data:ne,position:X})=>{ne.type!=="start-node"?(n.value=ne,r.value=null,b.value.x=X.domOverlayPosition.x+40,b.value.y=X.domOverlayPosition.y-45,k.value.x=0,k.value.y=0,k.value.targetNodeId=ne.id,v.value=!0):v.value=!1}),t.on("edge:click",({data:ne,position:X})=>{n.value=null,r.value=ne,b.value.x=X.domOverlayPosition.x+10,b.value.y=X.domOverlayPosition.y,k.value.x=0,k.value.y=0,k.value.targetNodeId="",v.value=!0}),t.on("blank:click",({})=>{n.value=null,r.value=null,v.value=!1}),t.on("rulego-editor:deleted",ne=>{n.value=null,r.value=null,v.value=!1,o.value=!1}),t.on("rulego-editor:setting",ne=>{T.value=ne,C.value=ne.showTest});const $=()=>{y.value=!0},P=()=>{d.value=!0},A=()=>{a.value=!0;let ne=t.getGraphData();l.value=ne.ruleChain.id,s.value=JSON.stringify(ne,null," ")},R=()=>{a.value=!1},B=()=>{u.value=!0},N=()=>{u.value=!1},I=()=>{u.value=!1,d.value=!1,p.value=!1,y.value=!1},D=()=>{window.close()},L=ne=>{t.graphModel.eventCenter.emit("rulego-editor:new",ne),I()},z=ne=>{w.value=JSON.parse(ne).ruleChain.name,t.graphModel.eventCenter.emit("rulego-editor:open",ne),I()},q=ne=>{t.graphModel.eventCenter.emit("rulego-editor:setting",ne),I()},ae=()=>{t.graphModel.eventCenter.emit("rulego-editor:save")},K=()=>{t.graphModel.eventCenter.emit("rulego-editor:deleteSelects"),v.value=!1},H=()=>{t.graphModel.eventCenter.emit("rulego-editor:showEditPanel")};return(ne,X)=>{const V=no,G=Fi,se=il,he=ol;return Z(),ce(Pt,null,[ve("div",RYe,[NYe,ve("div",IYe,ut(w.value),1),re(he,null,{default:ue(()=>[re(se,{span:24},{default:ue(()=>[re(V,{onClick:ae,type:"primary",icon:m(h0),size:"small",disabled:!i.value},{default:ue(()=>[St("\u4FDD\u5B58")]),_:1},8,["icon","disabled"]),re(V,{onClick:$,type:"success",icon:m(jI),size:"small"},{default:ue(()=>[St("\u8FD0\u884C")]),_:1},8,["icon"]),re(V,{onClick:A,type:"",icon:m(kW),size:"small"},{default:ue(()=>[St("\u67E5\u770B\u6570\u636E")]),_:1},8,["icon"]),re(V,{onClick:D,type:"warning",icon:m(el),size:"small"},{default:ue(()=>[St("\u5173\u95ED")]),_:1},8,["icon"]),T.value.toolbar.showNewOrOpen?(Z(),Fe(G,{key:0,class:"box-item",effect:"dark",content:"\u65B0\u5EFA/\u6253\u5F00\u89C4\u5219\u94FE",placement:"bottom-start"},{default:ue(()=>[T.value.toolbar.showNewOrOpen?(Z(),Fe(V,{key:0,icon:m(_1e),onClick:P,circle:""},null,8,["icon"])):je("",!0)]),_:1})):je("",!0),T.value.toolbar.showSetting?(Z(),Fe(G,{key:1,class:"box-item",effect:"dark",content:"\u8BBE\u7F6E",placement:"bottom-start"},{default:ue(()=>[T.value.toolbar.showSetting?(Z(),Fe(V,{key:0,icon:m(U1e),onClick:B,circle:""},null,8,["icon"])):je("",!0)]),_:1})):je("",!0)]),_:1})]),_:1})]),je("",!0),re(PYe,{lf:e.lf,show:d.value,onNew:L,onOpen:z,onClose:I},null,8,["lf","show"]),re(yYe,{lf:e.lf,show:a.value,data:s.value,ruleChainId:l.value,onClose:R},null,8,["lf","show","data","ruleChainId"]),re(SYe,{lf:e.lf,show:u.value,onSubmit:q,onClose:N},null,8,["lf","show"]),v.value?(Z(),Fe(xYe,{key:1,onDelete:K,onEdit:H,currentElementPosition:m(b)},null,8,["currentElementPosition"])):je("",!0),re(AYe,{lf:e.lf,show:y.value,onClose:I},null,8,["lf","show"])],64)}}};var jYe=w0(DYe,[["__scopeId","data-v-ffe8d418"]]);class lK{constructor({lf:t}){this.app=tC(jYe,{lf:t})}render(t,n){const r=document.createElement("div");n.appendChild(r),this.app.mount(r)}}h$(lK,"pluginName","ControlExtension");const LYe={style:{flex:"auto","text-align":"left"}},BYe={__name:"EdgePropertyDrawer",props:["show","currentEdgeModel","sourceNodeView","relationTypeSplit","sourceNodeRelationTypeOptions"],emits:["submit","cancel"],setup(e,{emit:t}){const{show:n,currentEdgeModel:r,sourceNodeView:o,relationTypeSplit:i,sourceNodeRelationTypeOptions:a}=e,s=ee(),l=nr({relationTypeOptions:[],relationTypeValues:[]});let u=r;l.relationTypeOptions=a||o&&o.relationTypes,l.relationTypeValues=r.routerId||r.relationTypes,l.relationTypeAllowCreate=o&&o.relationTypeAllowCreate;const d=y=>{!y||y.validate(w=>{if(w)o.nodeType==="endpoint-node"?u.relationTypes=[l.relationTypeValues]:u.relationTypes=l.relationTypeValues,u.relationTypesLabel=Pr.getSelectedLabels(l.relationTypeOptions,u.relationTypes,"relationTypes"),t("submit",cr(u));else return!1})},p=()=>{t("cancel")},v=()=>{p()};return(y,w)=>{const b=il,k=ol,C=op,T=dc,$=xf,P=Sf,A=no,R=P3;return Z(),Fe(R,{modal:!1,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,style:{position:"absolute"},direction:"rtl",class:"properties-panel",width:"100%",size:500,"before-close":v,modelValue:e.show},{header:ue(()=>[re(k,{class:"setter-title"},{default:ue(()=>[re(b,{span:12},{default:ue(()=>[St("\u89C4\u5219\u8282\u70B9\u94FE\u63A5\u8BE6\u60C5")]),_:1})]),_:1})]),footer:ue(()=>[ve("div",LYe,[re(A,{type:"primary",size:"large",onClick:w[1]||(w[1]=B=>d(s.value))},{default:ue(()=>[St("\u786E\u8BA4")]),_:1}),re(A,{size:"large",onClick:p},{default:ue(()=>[St("\u53D6\u6D88")]),_:1})])]),default:ue(()=>[re(P,{model:l,ref_key:"formRef",ref:s,"label-position":"right","label-width":"auto"},{default:ue(()=>[re($,{label:"\u94FE\u63A5\u6807\u7B7E",rules:[{required:!0,message:"\u94FE\u63A5\u6807\u7B7E\u662F\u5FC5\u987B\u7684"}],prop:"relationTypeValues"},{default:ue(()=>[re(T,{modelValue:l.relationTypeValues,"onUpdate:modelValue":w[0]||(w[0]=B=>l.relationTypeValues=B),multiple:e.sourceNodeView.nodeType!=="endpoint-node",filterable:"","allow-create":l.relationTypeAllowCreate||!l.relationTypeOptions||l.relationTypeOptions.length===0,placeholder:"\u94FE\u63A5\u6807\u7B7E",style:{width:"100%"}},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(l.relationTypeOptions,B=>(Z(),Fe(C,{key:B.value!==void 0&&B.value!==null?B.value:B,label:B.label||B,value:B.value!==void 0&&B.value!==null?B.value:B},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple","allow-create"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},VYe={style:{flex:"auto"}},FYe={__name:"EdgePropertyDialog",props:["show","currentEdgeModel","sourceNodeView","relationTypeSplit","sourceNodeRelationTypeOptions"],emits:["submit","cancel"],setup(e,{emit:t}){const{show:n,currentEdgeModel:r,sourceNodeView:o,relationTypeSplit:i,sourceNodeRelationTypeOptions:a}=e,s=ee(),l=nr({relationTypeAllowCreate:!1,relationTypeOptions:[],relationTypeValues:[]});let u=r;if(l.relationTypeOptions=a||o&&o.relationTypes,l.relationTypeValues=r.routerId||r.relationTypes,l.relationTypeAllowCreate=o&&o.relationTypeAllowCreate,!l.relationTypeValues){let y=l.relationTypeOptions&&l.relationTypeOptions.length>0?l.relationTypeOptions[0]:null;y?o.nodeType==="endpoint-node"?l.relationTypeValues=y.value!==void 0&&y.value!==null?y.value:y:l.relationTypeValues=[y.value!==void 0&&y.value!==null?y.value:y]:l.relationTypeValues=[]}const d=y=>{!y||y.validate(w=>{if(w)o.nodeType==="endpoint-node"?u.relationTypes=[l.relationTypeValues]:u.relationTypes=l.relationTypeValues,u.relationTypesLabel=Pr.getSelectedLabels(l.relationTypeOptions,u.relationTypes,"relationTypes"),t("submit",cr(u));else return!1})},p=()=>{t("cancel")},v=()=>{p()};return(y,w)=>{const b=op,k=dc,C=xf,T=Sf,$=no,P=Td;return Z(),Fe(P,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"50%",draggable:"",top:"10px","before-close":v,modelValue:e.show},{header:ue(()=>[St(" \u6DFB\u52A0\u94FE\u63A5 ")]),footer:ue(()=>[ve("div",VYe,[re($,{type:"primary",size:"large",onClick:w[1]||(w[1]=A=>d(s.value))},{default:ue(()=>[St("\u786E\u8BA4")]),_:1}),re($,{size:"large",onClick:p},{default:ue(()=>[St("\u53D6\u6D88")]),_:1})])]),default:ue(()=>[re(T,{model:l,ref_key:"formRef",ref:s,"label-position":"right","label-width":"auto"},{default:ue(()=>[re(C,{label:"\u94FE\u63A5\u6807\u7B7E",rules:[{required:!0,message:"\u94FE\u63A5\u6807\u7B7E\u662F\u5FC5\u987B\u7684"}],prop:"relationTypeValues"},{default:ue(()=>[re(k,{modelValue:l.relationTypeValues,"onUpdate:modelValue":w[0]||(w[0]=A=>l.relationTypeValues=A),multiple:e.sourceNodeView.nodeType!=="endpoint-node",filterable:"","allow-create":l.relationTypeAllowCreate||!l.relationTypeOptions||l.relationTypeOptions.length===0,placeholder:"\u94FE\u63A5\u6807\u7B7E",style:{width:"100%"}},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(l.relationTypeOptions,A=>(Z(),Fe(b,{key:A.value!==void 0&&A.value!==null?A.value:A,label:A.label||A,value:A.value!==void 0&&A.value!==null?A.value:A},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple","allow-create"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},zYe=304,OF=1,QYe=2,WYe=305,YYe=307,ZYe=308,UYe=3,HYe=4,XYe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],uK=125,GYe=59,wF=47,qYe=42,KYe=43,JYe=45,eZe=new dYe({start:!1,shift(e,t){return t==UYe||t==HYe||t==YYe?e:t==ZYe},strict:!1}),tZe=new ZD((e,t)=>{let{next:n}=e;(n==uK||n==-1||t.context)&&e.acceptToken(WYe)},{contextual:!0,fallback:!0}),nZe=new ZD((e,t)=>{let{next:n}=e,r;XYe.indexOf(n)>-1||n==wF&&((r=e.peek(1))==wF||r==qYe)||n!=uK&&n!=GYe&&n!=-1&&!t.context&&e.acceptToken(zYe)},{contextual:!0}),rZe=new ZD((e,t)=>{let{next:n}=e;if((n==KYe||n==JYe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(OF);e.acceptToken(r?OF:QYe)}},{contextual:!0}),oZe=CD({"get set async static":bt.modifier,"for while do if else switch try catch finally return throw break continue default case":bt.controlKeyword,"in of await yield void typeof delete instanceof":bt.operatorKeyword,"let var const using function class extends":bt.definitionKeyword,"import export from":bt.moduleKeyword,"with debugger as new":bt.keyword,TemplateString:bt.special(bt.string),super:bt.atom,BooleanLiteral:bt.bool,this:bt.self,null:bt.null,Star:bt.modifier,VariableName:bt.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":bt.function(bt.variableName),VariableDefinition:bt.definition(bt.variableName),Label:bt.labelName,PropertyName:bt.propertyName,PrivatePropertyName:bt.special(bt.propertyName),"CallExpression/MemberExpression/PropertyName":bt.function(bt.propertyName),"FunctionDeclaration/VariableDefinition":bt.function(bt.definition(bt.variableName)),"ClassDeclaration/VariableDefinition":bt.definition(bt.className),PropertyDefinition:bt.definition(bt.propertyName),PrivatePropertyDefinition:bt.definition(bt.special(bt.propertyName)),UpdateOp:bt.updateOperator,"LineComment Hashbang":bt.lineComment,BlockComment:bt.blockComment,Number:bt.number,String:bt.string,Escape:bt.escape,ArithOp:bt.arithmeticOperator,LogicOp:bt.logicOperator,BitOp:bt.bitwiseOperator,CompareOp:bt.compareOperator,RegExp:bt.regexp,Equals:bt.definitionOperator,Arrow:bt.function(bt.punctuation),": Spread":bt.punctuation,"( )":bt.paren,"[ ]":bt.squareBracket,"{ }":bt.brace,"InterpolationStart InterpolationEnd":bt.special(bt.brace),".":bt.derefOperator,", ;":bt.separator,"@":bt.meta,TypeName:bt.typeName,TypeDefinition:bt.definition(bt.typeName),"type enum interface implements namespace module declare":bt.definitionKeyword,"abstract global Privacy readonly override":bt.modifier,"is keyof unique infer":bt.operatorKeyword,JSXAttributeValue:bt.attributeValue,JSXText:bt.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":bt.angleBracket,"JSXIdentifier JSXNameSpacedName":bt.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":bt.attributeName,"JSXBuiltin/JSXIdentifier":bt.standard(bt.tagName)}),iZe={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},aZe={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},sZe={__proto__:null,"<":139},lZe=o1.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO<dQSO'#G}O={QSO'#CcO>]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-E<b-E<bO9ZQSO,5=WO!$UQSO,5=WO!$ZQUO,5;TO!&^Q,UO'#EeO!'qQSO,5;TO!)ZQ,UO'#DqO!)bQUO'#DvO!)lQWO,5;^O!)tQWO,5;^O%[QUO,5;^OOQQ'#FP'#FPOOQQ'#FR'#FRO%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_O%[QUO,5;_OOQQ'#FV'#FVO!*SQUO,5;pOOQ(CY,5;u,5;uOOQ(CY,5;v,5;vO!,VQSO,5;vOOQ(CY,5;w,5;wO%[QUO'#IhO!,_Q(C[O,5<dO!&^Q,UO,5;_O!,|Q,UO,5;_O%[QUO,5;sO!-TQ#tO'#FfO!.QQ#tO'#JyO!-lQ#tO'#JyO!.XQ#tO'#JyOOQO'#Jy'#JyO!.mQ#tO,5<OOOOO,5<[,5<[O!/OQUO'#FrOOOO'#Ig'#IgO7YO&jO,5;{O!/VQ#tO'#FtOOQ(CY,5;{,5;{O!/vQ7[O'#CsOOQ(CY'#Cw'#CwO!0ZQSO'#CwO!0`O07`O'#C{O!0|Q,UO,5<aO!1TQSO,5<cO!2jQMhO'#GRO!2wQSO'#GSO!2|QSO'#GSO!3RQMhO'#GWO!4QQWO'#G[O!4sQ7[O'#J`OOQ(CY'#J`'#J`O!4}QSO'#J_O!5]QSO'#J^O!5eQSO'#CrOOQ(CY'#Cu'#CuOOQ(CY'#DP'#DPOOQ(CY'#DR'#DRO1SQSO'#DTO!'vQ,UO'#FyO!'vQ,UO'#F{O!5mQSO'#F}O!5rQSO'#GOO!2|QSO'#GUO!'vQ,UO'#GZO!5wQSO'#EkO!6fQSO,5<bOOQ(CW'#Cp'#CpO!6nQSO'#ElO!7hQWO'#EmOOQ(CW'#Js'#JsO!7oQ(C[O'#KSO9eQ(C[O,5=[O`QUO,5>lOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-E<T-E<TO!9qQ(CjO,5:ZO!<_Q(CjO,5:gO%[QUO,5:gO!>xQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AcQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AkQSO,5=sO!ApQSO,5=sO!AuQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BTQWO,5=`O!B]Q,UO,5=aO!BhQSO,5=cO!BmQ`O,5=fO!BuQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!BzQSO'#HRO9{Q,UO'#HTO!CPQSO'#HTOOQQ,5=i,5=iO!CUQSO'#HUO!C^QSO'#CmO!CcQSO,58}O!CmQSO,58}O!ErQUO,58}OOQQ,58},58}O!FSQ(C[O,58}O%[QUO,58}O!H_QUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!HuQSO,5=uO`QUO,5={O`QUO,5=}O!HzQSO,5>PO`QUO,5>RO!IPQSO,5>UO!IUQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!M`QSO,5>fOOQQ,5>h,5>hO!M`QSO,5>hOOQQ,5>j,5>jO!MeQWO'#DYO%[QUO'#JiO!NSQWO'#JiO!NqQWO'#DhO# SQWO'#DhO##eQUO'#DhO##lQSO'#JhO##tQSO,5:RO##yQSO'#EnO#$XQSO'#JvO#$aQSO,5;XO#$fQWO'#DhO#$sQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#$zQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%SQSO,5@TO#%XQ!LQO,5:pOOQO-E<_-E<_O#&_Q(C`O,5:{OChQWO,5:oO#&iQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#&vQ(C[O,5:{O#'RQ(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'aQ(C[O,5:{POOO'#IU'#IUP#'uO?MpO,58zPOOO,58z,58zOOOO-E<U-E<UOOQ(CY1G.n1G.nOOOO-E<V-E<VO#(QQ`O,59xOOOO-E<X-E<XOOQ(CY1G/b1G/bO#(VQbO,5>vO+}QUO,5>vOOQO,5>|,5>|O#(aQUO'#I[OOQO-E<Y-E<YO#(nQSO,5@RO#(vQbO,5@RO#(}QSO,5@`OOQ(CY1G/h1G/hO%[QUO,5@aO#)VQSO'#IbOOQO-E<`-E<`O#(}QSO,5@`OOQ(CW1G0r1G0rOOQ(CY1G/s1G/sOOQ(CY1G0V1G0VO%[QUO,5@^O#)kQ(C[O,5@^O#)|Q(C[O,5@^O#*TQSO,5@]O9TQSO,5@]O#*]QSO,5@]O#*kQSO'#IeO#*TQSO,5@]OOQ(CW1G0q1G0qO!)lQWO,5:rO!)wQWO,5:rOOQO,5:t,5:tO#+]QSO,5:tO#+eQ,UO1G2rO9ZQSO1G2rOOQ(CY1G0o1G0oO#+sQ(CjO1G0oO#,xQ(ChO,5;POOQ(CY'#GQ'#GQO#-fQ(CjO'#J`O!$ZQUO1G0oO#/nQ,UO'#JjO#/xQSO,5:]O#/}QbO'#JkO%[QUO'#JkO#0XQSO,5:bOOQ(CY'#DY'#DYOOQ(CY1G0x1G0xO%[QUO1G0xOOQ(CY1G1b1G1bO#0^QSO1G0xO#2uQ(CjO1G0yO#2|Q(CjO1G0yO#5gQ(CjO1G0yO#5nQ(CjO1G0yO#7xQ(CjO1G0yO#8`Q(CjO1G0yO#;YQ(CjO1G0yO#;aQ(CjO1G0yO#=zQ(CjO1G0yO#>RQ(CjO1G0yO#?yQ(CjO1G0yO#ByQ$IUO'#CgO#DwQ$IUO1G1[O#EOQ$IUO'#JfO!,YQSO1G1bO#E`Q(CjO,5?SOOQ(CW-E<f-E<fO#FSQ(CjO1G0yOOQ(CY1G0y1G0yO#H_Q(CjO1G1_O#IRQ#tO,5<SO#IZQ#tO,5<TO#IcQ#tO'#FkO#IzQSO'#FjOOQO'#Jz'#JzOOQO'#If'#IfO#JPQ#tO1G1jOOQ(CY1G1j1G1jOOOO1G1u1G1uO#JbQ$IUO'#JeO#JlQSO,5<^O!*SQUO,5<^OOOO-E<e-E<eOOQ(CY1G1g1G1gO#JqQWO'#JyOOQ(CY,5<`,5<`O#JyQWO,5<`OOQ(CY,59c,59cO!&^Q,UO'#C}OOOO'#IY'#IYO#KOO07`O,59gOOQ(CY,59g,59gO%[QUO1G1{O!5rQSO'#IjO#KZQ,UO,5<tOOQ(CY,5<q,5<qOOQO'#Gg'#GgO!'vQ,UO,5=QOOQO'#Gi'#GiO!'vQ,UO,5=SO!&^Q,UO,5=UOOQO1G1}1G1}O#KbQ`O'#CpO#KuQ`O,5<mO#K|QSO'#J}O9ZQSO'#J}O#L[QSO,5<oO!'vQ,UO,5<nO#LaQSO'#GTO#LlQSO,5<nO#LqQ`O'#GQO#MOQ`O'#KOO#MYQSO'#KOO!&^Q,UO'#KOO#M_QSO,5<rO#MdQWO'#G]O!3{QWO'#G]O#MuQSO'#G_O#MzQSO'#GaO!2|QSO'#GdO#NPQ(C[O'#IlO#N[QWO,5<vOOQ(CY,5<v,5<vO#NcQWO'#G]O#NqQWO'#G^O#NyQWO'#G^OOQ(CY,5=V,5=VO!'vQ,UO,5?yO!'vQ,UO,5?yO$ OQSO'#ImO$ ZQSO,5?xO$ cQSO,59^O$!SQ,UO,59oOOQ(CY,59o,59oO$!uQ,UO,5<eO$#hQ,UO,5<gO@[QSO,5<iOOQ(CY,5<j,5<jO$#rQSO,5<pO$#wQ,UO,5<uO$$XQSO'#JqO!$ZQUO1G1|O$$^QSO1G1|O9TQSO'#JtO9TQSO'#EnO%[QUO'#EnO9TQSO'#IoO$$cQ(C[O,5@nOOQQ1G2v1G2vOOQQ1G4W1G4WOOQ(CY1G/u1G/uO!,VQSO1G/uO$&hQ(CjO1G0ROOQQ1G2r1G2rO!&^Q,UO1G2rO%[QUO1G2rO$'XQSO1G2rO$'dQ,UO'#EeOOQ(CW,5?v,5?vO$'nQ(C[O,5?vOOQQ1G.s1G.sO!@YQ(C[O1G.sO!@eQWO1G.sO!@mQ,UO1G.sO$(PQSO1G0oO$(UQSO'#CgO$(aQSO'#KWO$(iQSO,5=tO$(nQSO'#KWO$(sQSO'#KWO$)OQSO'#IuO$)^QSO,5@qO$)fQbO1G1dOOQ(CY1G1f1G1fO9ZQSO1G3_O@[QSO1G3_O$)mQSO1G3_O$)rQSO1G3_OOQQ1G3_1G3_O!BhQSO1G2}O!&^Q,UO1G2zO$)wQSO1G2zOOQQ1G2{1G2{O!&^Q,UO1G2{O$)|QSO1G2{O$*UQWO'#GyOOQQ1G2}1G2}O!3{QWO'#IqO!BmQ`O1G3QOOQQ1G3Q1G3QOOQQ,5=k,5=kO$*^Q,UO,5=mO9ZQSO,5=mO#MzQSO,5=oO9OQSO,5=oO!@eQWO,5=oO!@mQ,UO,5=oO9{Q,UO,5=oO$*lQSO'#KUO$*wQSO,5=pOOQQ1G.i1G.iO$*|Q(C[O1G.iO@[QSO1G.iO$+XQSO1G.iO9eQ(C[O1G.iO$-^QbO,5@sO$-nQSO,5@sO9TQSO,5@sO$-yQUO,5=wO$.QQSO,5=wOOQQ1G3a1G3aO`QUO1G3aOOQQ1G3g1G3gOOQQ1G3i1G3iO>eQSO1G3kO$.VQUO1G3mO$2ZQUO'#HlOOQQ1G3p1G3pO$2hQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$2pQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$6wQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$6|Q$IUO,5:SOOQO,5;Y,5;YO$7WQWO'#I]O$7nQSO,5@SOOQ(CY1G/m1G/mO$7vQWO'#IcO$8QQSO,5@bOOQ(CW1G0s1G0sO# SQWO,5:SOOQO'#I`'#I`O$8YQWO,5:nOOQ(CY,5:n,5:nO#$}QSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8aQ(C[O1G0gO$8lQ(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$8zQ(C[O1G0gOOQO1G0Z1G0ZO$9`Q(CjO1G0gPOOO-E<S-E<SPOOO1G.f1G.fOOOO1G/d1G/dO$9jQ`O,5<dO$9rQbO1G4bOOQO1G4h1G4hO%[QUO,5>vO$9|QSO1G5mO$:UQSO1G5zO$:^QbO1G5{O9TQSO,5>|O$:hQ(CjO1G5xO%[QUO1G5xO$:xQ(C[O1G5xO$;ZQSO1G5wO$;ZQSO1G5wO9TQSO1G5wO$;cQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$;wQSO,5?PO$$XQSO,5?POOQO-E<c-E<cOOQO1G0^1G0^OOQO1G0`1G0`O!,YQSO1G0`OOQQ7+(^7+(^O!&^Q,UO7+(^O%[QUO7+(^O$<VQSO7+(^O$<bQ,UO7+(^O$<pQ(CjO,59oO$>xQ(CjO,5<eO$ATQ(CjO,5<gO$C`Q(CjO,5<uOOQ(CY7+&Z7+&ZO$EqQ(CjO7+&ZO$FeQ,UO'#I^O$FoQSO,5@UOOQ(CY1G/w1G/wO$FwQUO'#I_O$GUQSO,5@VO$G^QbO,5@VOOQ(CY1G/|1G/|O$GhQSO7+&dOOQ(CY7+&d7+&dO$GmQ$IUO,5:cO%[QUO7+&vO$GwQ$IUO,5:ZO$HUQ$IUO,5:gO$H`Q$IUO,5:iOOQ(CY7+&|7+&|OOQO1G1n1G1nOOQO1G1o1G1oO$HjQ#tO,5<VO!*SQUO,5<UOOQO-E<d-E<dOOQ(CY7+'U7+'UOOOO7+'a7+'aOOOO1G1x1G1xO$HuQSO1G1xOOQ(CY1G1z1G1zO$HzQ`O,59iOOOO-E<W-E<WOOQ(CY1G/R1G/RO$IRQ(CjO7+'gOOQ(CY,5?U,5?UO$IuQ`O,5?UOOQ(CY1G2`1G2`P!&^Q,UO'#IjPOQ(CY-E<h-E<hO$JeQ,UO1G2lO$KWQ,UO1G2nO$KbQ`O1G2pOOQ(CY1G2X1G2XO$KiQSO'#IiO$KwQSO,5@iO$KwQSO,5@iO$LPQSO,5@iO$L[QSO,5@iOOQO1G2Z1G2ZO$LjQ,UO1G2YO!'vQ,UO1G2YO$LzQMhO'#IkO$M[QSO,5@jO!&^Q,UO,5@jO$MdQ`O,5@jOOQ(CY1G2^1G2^OOQ(CW,5<w,5<wOOQ(CW,5<x,5<xO$$XQSO,5<xOCXQSO,5<xO!@eQWO,5<wOOQO'#G`'#G`O$MnQSO,5<yOOQ(CW,5<{,5<{O$$XQSO,5=OOOQO,5?W,5?WOOQO-E<j-E<jOOQ(CY1G2b1G2bO!3{QWO,5<wO$MvQSO,5<xO#MuQSO,5<yO!3{QWO,5<xO$NRQ,UO1G5eO$N]Q,UO1G5eOOQO,5?X,5?XOOQO-E<k-E<kOOQO1G.x1G.xO!7cQWO,59qO%[QUO,59qO$NjQSO1G2TO!'vQ,UO1G2[O$NoQ(CjO7+'hOOQ(CY7+'h7+'hO!$ZQUO7+'hO% cQSO,5;YOOQ(CW,5?Z,5?ZOOQ(CW-E<m-E<mOOQ(CY7+%a7+%aO% hQ`O'#KPO#$}QSO7+(^O% rQbO7+(^O$<YQSO7+(^O% yQ(ChO'#CgO%!^Q(ChO,5<|O%#OQSO,5<|OOQ(CW1G5b1G5bOOQQ7+$_7+$_O!@YQ(C[O7+$_O!@eQWO7+$_O!$ZQUO7+&ZO%#TQSO'#ItO%#iQSO,5@rOOQO1G3`1G3`O9ZQSO,5@rO%#iQSO,5@rO%#qQSO,5@rOOQO,5?a,5?aOOQO-E<s-E<sOOQ(CY7+'O7+'OO%#vQSO7+(yO9eQ(C[O7+(yO9ZQSO7+(yO@[QSO7+(yOOQQ7+(i7+(iO%#{Q(ChO7+(fO!&^Q,UO7+(fO%$VQ`O7+(gOOQQ7+(g7+(gO!&^Q,UO7+(gO%$^QSO'#KTO%$iQSO,5=eOOQO,5?],5?]OOQO-E<o-E<oOOQQ7+(l7+(lO%%xQWO'#HSOOQQ1G3X1G3XO!&^Q,UO1G3XO%[QUO1G3XO%&PQSO1G3XO%&[Q,UO1G3XO9eQ(C[O1G3ZO#MzQSO1G3ZO9OQSO1G3ZO!@eQWO1G3ZO!@mQ,UO1G3ZO%&jQSO'#IsO%&uQSO,5@pO%&}QWO,5@pOOQ(CW1G3[1G3[OOQQ7+$T7+$TO@[QSO7+$TO9eQ(C[O7+$TO%'YQSO7+$TO%[QUO1G6_O%[QUO1G6`O%'_Q(C[O1G6_O%'iQUO1G3cO%'pQSO1G3cO%'uQUO1G3cOOQQ7+({7+({O9eQ(C[O7+)VO`QUO7+)XOOQQ'#KZ'#KZOOQQ'#Iv'#IvO%'|QUO,5>WOOQQ,5>W,5>WO%[QUO'#HmO%(ZQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%(`QWO1G5oO%(tQ$IUO1G0tO%)OQSO1G0tOOQO1G/n1G/nO%)ZQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E<Z-E<ZOOQO,5>},5>}OOQO-E<a-E<aO!@eQWO1G/nOOQO-E<^-E<^OOQ(CY1G0Y1G0YOOQ(CY7+%r7+%rO#$}QSO7+%rOOQ(CY7+&Y7+&YO>jQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9`Q(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%)eQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%)pQ(C[O7+&RO%*OQ(CjO7++dO%[QUO7++dO%*`QSO7++cO%*`QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%*hQSO1G4kOOQO7+%z7+%zO#$}QSO<<KxO% rQbO<<KxO%*vQSO<<KxOOQQ<<Kx<<KxO!&^Q,UO<<KxO%[QUO<<KxO%+OQSO<<KxO%+ZQ(CjO1G2lO%-fQ(CjO1G2nO%/qQ(CjO1G2YO%2SQ,UO,5>xOOQO-E<[-E<[O%2^QbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%2hQSO1G5qOOQ(CY<<JO<<JOO%2pQ$IUO1G0oO%4zQ$IUO1G0yO%5RQ$IUO1G0yO%7VQ$IUO1G0yO%7^Q$IUO1G0yO%9RQ$IUO1G0yO%9iQ$IUO1G0yO%;|Q$IUO1G0yO%<TQ$IUO1G0yO%>XQ$IUO1G0yO%>`Q$IUO1G0yO%@WQ$IUO1G0yO%@kQ(CjO<<JbO%ApQ$IUO1G0yO%CfQ$IUO'#J`O%EiQ$IUO1G1_O%EvQ$IUO1G0RO!*SQUO'#FmOOQO'#J{'#J{OOQO1G1q1G1qO%FQQSO1G1pO%FVQ$IUO,5?SOOOO7+'d7+'dOOOO1G/T1G/TOOQ(CY1G4p1G4pO!'vQ,UO7+([O%FaQSO,5?TO9ZQSO,5?TOOQO-E<g-E<gO%FoQSO1G6TO%FoQSO1G6TO%FwQSO1G6TO%GSQ,UO7+'tO%GdQ`O,5?VO%GnQSO,5?VO!&^Q,UO,5?VOOQO-E<i-E<iO%GsQ`O1G6UO%G}QSO1G6UOOQ(CW1G2d1G2dO$$XQSO1G2dOOQ(CW1G2c1G2cO%HVQSO1G2eO!&^Q,UO1G2eOOQ(CW1G2j1G2jO!@eQWO1G2cOCXQSO1G2dO%H[QSO1G2eO%HdQSO1G2dO!'vQ,UO7++POOQ(CY1G/]1G/]O%HoQSO1G/]OOQ(CY7+'o7+'oO%HtQ,UO7+'vO%IUQ(CjO<<KSOOQ(CY<<KS<<KSO%IxQSO1G0tO!&^Q,UO'#InO%I}QSO,5@kO!&^Q,UO1G2hOOQQ<<Gy<<GyO!@YQ(C[O<<GyO%JVQ(CjO<<IuOOQ(CY<<Iu<<IuOOQO,5?`,5?`O%JyQSO,5?`O$(sQSO,5?`OOQO-E<r-E<rO%KOQSO1G6^O%KOQSO1G6^O9ZQSO1G6^O@[QSO<<LeOOQQ<<Le<<LeO%KWQSO<<LeO9eQ(C[O<<LeOOQQ<<LQ<<LQO%#{Q(ChO<<LQOOQQ<<LR<<LRO%$VQ`O<<LRO%K]QWO'#IpO%KhQSO,5@oO!*SQUO,5@oOOQQ1G3P1G3PO%KpQUO'#JiOOQO'#Ir'#IrO9eQ(C[O'#IrO%KzQWO,5=nOOQQ,5=n,5=nO%LRQWO'#EaO%LgQSO7+(sO%LlQSO7+(sOOQQ7+(s7+(sO!&^Q,UO7+(sO%[QUO7+(sO%LtQSO7+(sOOQQ7+(u7+(uO9eQ(C[O7+(uO#MzQSO7+(uO9OQSO7+(uO!@eQWO7+(uO%MPQSO,5?_OOQO-E<q-E<qOOQO'#HV'#HVO%M[QSO1G6[O9eQ(C[O<<GoOOQQ<<Go<<GoO@[QSO<<GoO%MdQSO7++yO%MiQSO7++zO%[QUO7++yO%[QUO7++zOOQQ7+(}7+(}O%MnQSO7+(}O%MsQUO7+(}O%MzQSO7+(}OOQQ<<Lq<<LqOOQQ<<Ls<<LsOOQQ-E<t-E<tOOQQ1G3r1G3rO%NPQSO,5>XOOQQ,5>Z,5>ZO%NUQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO%NZQ$IUO1G5{O>jQSO7+%YOOQ(CY<<I^<<I^OOQ(CY<<It<<ItO>jQSO<<ItOOQO<<Im<<ImO$9`Q(CjO<<ImO%[QUO<<ImOOQO<<Ia<<IaO!@YQ(C[O<<IaO%NeQ(C[O<<ImO%NpQ(CjO<= OO& QQSO<<N}OOQO7+*V7+*VO9TQSO7+*VOOQQANAdANAdO& YQSOANAdO!&^Q,UOANAdO#$}QSOANAdO% rQbOANAdO%[QUOANAdO& bQ(CjO7+'tO&#sQ(CjO7+'vO&&UQbO1G4eO&&`Q$IUO7+&ZO&&mQ$IUO,59oO&(pQ$IUO,5<eO&*sQ$IUO,5<gO&,vQ$IUO,5<uO&.lQ$IUO7+'gO&.yQ$IUO7+'hO&/WQSO,5<XOOQO7+'[7+'[O&/]Q,UO<<KvOOQO1G4o1G4oO&/dQSO1G4oO&/oQSO1G4oO&/}QSO7++oO&/}QSO7++oO!&^Q,UO1G4qO&0VQ`O1G4qO&0aQSO7++pOOQ(CW7+(O7+(OO$$XQSO7+(PO&0iQ`O7+(POOQ(CW7+'}7+'}O$$XQSO7+(OO&0pQSO7+(PO!&^Q,UO7+(POCXQSO7+(OO&0uQ,UO<<NkOOQ(CY7+$w7+$wO&1PQ`O,5?YOOQO-E<l-E<lO&1ZQ(ChO7+(SOOQQAN=eAN=eO9ZQSO1G4zOOQO1G4z1G4zO&1kQSO1G4zO&1pQSO7++xO&1pQSO7++xO9eQ(C[OANBPO@[QSOANBPOOQQANBPANBPOOQQANAlANAlOOQQANAmANAmO&1xQSO,5?[OOQO-E<n-E<nO&2TQ$IUO1G6ZO&4eQbO'#CgOOQO,5?^,5?^OOQO-E<p-E<pOOQQ1G3Y1G3YO%KpQUO,5<yOOQQ<<L_<<L_O!&^Q,UO<<L_O%LgQSO<<L_O&4oQSO<<L_O%[QUO<<L_OOQQ<<La<<LaO9eQ(C[O<<LaO#MzQSO<<LaO9OQSO<<LaO&4wQWO1G4yO&5SQSO7++vOOQQAN=ZAN=ZO9eQ(C[OAN=ZOOQQ<= e<= eOOQQ<= f<= fO&5[QSO<= eO&5aQSO<= fOOQQ<<Li<<LiO&5fQSO<<LiO&5kQUO<<LiOOQQ1G3s1G3sO>jQSO7+)dO&5rQSO<<IzO&5}Q$IUO<<IzOOQO<<Ht<<HtOOQ(CYAN?`AN?`OOQOAN?XAN?XO$9`Q(CjOAN?XOOQOAN>{AN>{O%[QUOAN?XOOQO<<Mq<<MqOOQQG27OG27OO!&^Q,UOG27OO#$}QSOG27OO&6XQSOG27OO% rQbOG27OO&6aQ$IUO<<JbO&6nQ$IUO1G2YO&8dQ$IUO1G2lO&:gQ$IUO1G2nO&<jQ$IUO<<KSO&<wQ$IUO<<IuOOQO1G1s1G1sO!'vQ,UOANAbOOQO7+*Z7+*ZO&=UQSO7+*ZO&=aQSO<= ZO&=iQ`O7+*]OOQ(CW<<Kk<<KkO$$XQSO<<KkOOQ(CW<<Kj<<KjO&=sQ`O<<KkO$$XQSO<<KjOOQO7+*f7+*fO9ZQSO7+*fO&=zQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>SQSO7++uO%LgQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&>[QSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#MzQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&>dQSOANBTOOQQ<<MO<<MOO!*SQUOAN?fOOQOG24sG24sO$9`Q(CjOG24sO#$}QSOLD,jOOQQLD,jLD,jO!&^Q,UOLD,jO&>iQSOLD,jO&>qQ$IUO7+'tO&@gQ$IUO7+'vO&B]Q,UOG26|OOQO<<Mu<<MuOOQ(CWANAVANAVO$$XQSOANAVOOQ(CWANAUANAUOOQO<<NQ<<NQOOQQLD-VLD-VO&BmQ$IUO7+*bOOQQG27eG27eO%LgQSOG27eO!&^Q,UOG27eOOQQG27gG27gO9eQ(C[OG27gOOQQG27oG27oO&BwQ$IUOG25QOOQOLD*_LD*_OOQQ!$(!U!$(!UO#$}QSO!$(!UO!&^Q,UO!$(!UO&CRQ(CjOG26|OOQ(CWG26qG26qOOQQLD-PLD-PO%LgQSOLD-POOQQLD-RLD-ROOQQ!)9Ep!)9EpO#$}QSO!)9EpOOQQ!$(!k!$(!kOOQQ!.K;[!.K;[O&EdQ$IUOG26|O!*SQUO'#DwO1PQSO'#EUO&GYQbO'#JeO!*SQUO'#DoO&GaQUO'#D{O&GhQbO'#CgO&JOQbO'#CgO!*SQUO'#D}O&J`QUO,5;TO!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO,5;_O!*SQUO'#IhO&LcQSO,5<dO&LkQ,UO,5;_O&NOQ,UO,5;_O!*SQUO,5;sO1SQSO'#DTO1SQSO'#DTO!&^Q,UO'#FyO&LkQ,UO'#FyO!&^Q,UO'#F{O&LkQ,UO'#F{O!&^Q,UO'#GZO&LkQ,UO'#GZO!*SQUO,5:gO!*SQUO,5@aO&J`QUO1G0oO&NVQ$IUO'#CgO!*SQUO1G1{O!&^Q,UO,5=QO&LkQ,UO,5=QO!&^Q,UO,5=SO&LkQ,UO,5=SO!&^Q,UO,5<nO&LkQ,UO,5<nO&J`QUO1G1|O!*SQUO7+&vO!&^Q,UO1G2YO&LkQ,UO1G2YO!&^Q,UO1G2[O&LkQ,UO1G2[O&J`QUO7+'hO&J`QUO7+&ZO!&^Q,UOANAbO&LkQ,UOANAbO&NaQSO'#EiO&NfQSO'#EiO&NnQSO'#FXO&NsQSO'#EsO&NxQSO'#JuO' TQSO'#JsO' `QSO,5;TO' eQ,UO,5<aO' lQSO'#GSO' qQSO'#GSO' vQSO,5<bO'!OQSO,5;TO'!WQ$IUO1G1[O'!_QSO,5<nO'!dQSO,5<nO'!iQSO,5<pO'!nQSO,5<pO'!sQSO1G1|O'!xQSO1G0oO'!}Q,UO<<KvO'#UQ,UO<<KvO7hQ,UO'#FwO9OQSO'#FvOAVQSO'#EhO!*SQUO,5;pO!2|QSO'#GSO!2|QSO'#GSO!2|QSO'#GUO!2|QSO'#GUO!'vQ,UO7+([O!'vQ,UO7+([O$KbQ`O1G2pO$KbQ`O1G2pO!&^Q,UO,5=UO!&^Q,UO,5=U",stateData:"'$_~O'oOS'pOSROS'qRQ~OPYOQYOW!VO_qObzOcyOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!YXO!duO!iZO!lYO!mYO!nYO!pvO!rwO!uxO!y]O#q!PO$R|O$VfO%a}O%c!QO%e!OO%f!OO%g!OO%j!RO%l!SO%o!TO%p!TO%r!UO&O!WO&U!XO&W!YO&Y!ZO&[![O&_!]O&e!^O&k!_O&m!`O&o!aO&q!bO&s!cO'vSO'xTO'{UO(TVO(c[O(piO~OUtO~P`OPYOQYOb!jOc!iOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!Y!eO!duO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$R!kO$VfO'v!dO'xTO'{UO(TVO(c[O(piO~O_!vOm!nO}!oO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!wO#Q!pO#R!pO#U!yO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O'q!zO~OPZXYZX_ZXlZXzZX{ZX}ZX!WZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX'mZX(TZX(dZX(kZX(lZX~O!b${X~P(qO]!|O'x#OO'y!|O'z#OO~O]#PO'z#OO'{#OO'|#PO~Or#RO!P#SO(U#SO(V#UO~OPYOQYOb!jOc!iOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!Y!eO!duO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$R!kO$VfO'v9vO'xTO'{UO(TVO(c[O(piO~O!V#YO!W#VO!T(ZP!T(hP~P+}O!X#bO~P`OPYOQYOb!jOc!iOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!Y!eO!duO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$R!kO$VfO'xTO'{UO(TVO(c[O(piO~Oj#lO!V#hO!y]O#c#kO#d#hO'v9wO!h(eP~P.iO!i#nO'v#mO~O!u#rO!y]O%a#sO~O#e#tO~O!b#uO#e#tO~OP$]OY$dOl$QOz#yO{#zO}#{O!W$aO!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO#t$VO#v$XO#w$YO(TVO(d$ZO(k#|O(l#}O~O_(XX'm(XX'k(XX!h(XX!T(XX!Y(XX%b(XX!b(XX~P1qO#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#p(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX!Y(YX%b(YX~O_(YX!g(YX'm(YX'k(YX!T(YX!h(YXp(YX!b(YX~P4XO#Y$eO~O$X$gO$Z$fO$b$lO~O!Y$mO$VfO$e$nO$g$pO~Oj%SOl$tOm$sOn$sOt%TOv%UOx%VO}${O!Y$|O!d%[O!i$xO#d%]O$R%YO$n%WO$p%XO$s%ZO'v$rO'xTO'{UO(P%RO(T$uOe(QP~O!i%^O~O}%aO!Y%bO'v%`O~O!b%fO~O_%gO'm%gO~O'w!lO~P%[O%g%nO~P%[O!i%^O'v%`O'w!lO(P%RO~Oc%uO!i%^O'v%`O~O#p$SO~Oz%zO!Y%wO!i%yO%c%}O'v%`O'w!lO'xTO'{UO^(yP~O!u#rO~O%l&PO}(uX!Y(uX'v(uX~O'v&QO~O!r&VO#q!PO%c!QO%e!OO%f!OO%g!OO%j!RO%l!SO%o!TO%p!TO~Ob&[Oc&ZO!u&XO%a&YO%t&WO~P;rOb&_OcyO!Y&^O!r&VO!uxO!y]O#q!PO%a}O%e!OO%f!OO%g!OO%j!RO%l!SO%o!TO%p!TO%r!UO~O`&bO#Y&eO%c&`O'w!lO~P<wO!i&fO!r&jO~O!i#nO~O!YXO~O_%gO'l&rO'm%gO~O_%gO'l&uO'm%gO~O_%gO'l&wO'm%gO~O'kZX!TZXpZX!hZX&SZX!YZX%bZX!bZX~P(qO!]'UO!^&}O!_&}O'w!lO'xTO'{UO~Om&{O}&zO!V'OO(W&yO!X([P!X(jP~P@OOh'XO!Y'VO'v%`O~Oc'^O!i%^O'v%`O~Oz%zO!i%yO~Om!nO}!oO!y9rO!}!pO#O!pO#Q!pO#R!pO'w!lO'xTO'{UO(W!mO(c!sO~O!]'dO!^'cO!_'cO#P!pO#U'eO#V'eO~PAjO_%gO!b#uO!i%^O'm%gO(P%RO(d'gO~O!m'kO#Y'iO~PBxOm!nO}!oO'xTO'{UO(W!mO(c!sO~O!YXOm(aX}(aX!](aX!^(aX!_(aX!y(aX!}(aX#O(aX#P(aX#Q(aX#R(aX#U(aX#V(aX'w(aX'x(aX'{(aX(W(aX(c(aX~O!^'cO!_'cO'w!lO~PChO'r'oO's'oO't'qO~O]!|O'x'sO'y!|O'z'sO~O]#PO'z'sO'{'sO'|#PO~Or#RO!P#SO(U#SO(V'wO~O!V'yO!T'OX!T'UX!W'OX!W'UX~P+}O!W'{O!T(ZX~OP$]OY$dOl$QOz#yO{#zO}#{O!W'{O!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO#t$VO#v$XO#w$YO(TVO(d$ZO(k#|O(l#}O~O!T(ZX~PG[O!T(QO~O!T(gX!W(gX!b(gX!h(gX(d(gX~O#Y(gX#e#^X!X(gX~PIbO#Y(RO!T(iX!W(iX~O!W(SO!T(hX~O!T(VO~O#Y$eO~PIbO!X(WO~P`Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!kaY!kal!ka!W!ka!f!ka!m!ka#h!ka#i!ka#j!ka#k!ka#l!ka#m!ka#n!ka#o!ka#p!ka#r!ka#t!ka#v!ka#w!ka(d!ka(k!ka(l!ka~O_!ka'm!ka'k!ka!T!ka!h!kap!ka!Y!ka%b!ka!b!ka~PJxO!h(XO~O!b#uO#Y(YO(d'gO!W(fX_(fX'm(fX~O!h(fX~PMhO}%aO!Y%bO!y]O#c(_O#d(^O'v%`O~O!W(`O!h(eX~O!h(bO~O}%aO!Y%bO#d(^O'v%`O~OP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!g(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#p(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O!b#uO!h(YX~P! UOz(cO{(dO!g#wO!i#xO!y!xa}!xa~O!u!xa%a!xa!Y!xa#c!xa#d!xa'v!xa~P!#YO!u(hO~OPYOQYOb!jOc!iOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!YXO!duO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$R!kO$VfO'v!dO'xTO'{UO(TVO(c[O(piO~Oj%SOl$tOm$sOn$sOt%TOv%UOx:[O}${O!Y$|O!d;fO!i$xO#d:bO$R%YO$n:^O$p:`O$s%ZO'v(lO'xTO'{UO(P%RO(T$uO~O#e(nO~Oj%SOl$tOm$sOn$sOt%TOv%UOx%VO}${O!Y$|O!d%[O!i$xO#d%]O$R%YO$n%WO$p%XO$s%ZO'v(lO'xTO'{UO(P%RO(T$uO~Oe(^P~P!'vO!V(rO!h(_P~P%[O(W(tO(c[O~O}(vO!i#xO(W(tO(c[O~OP9qOQ9qOb;bOc!iOjkOl9qOmkOnkOtkOv9qOx9qO}WO!RkO!SkO!Y!eO!d9tO!iZO!l9qO!m9qO!n9qO!p9uO!r9xO!u!hO$R!kO$VfO'v)UO'xTO'{UO(TVO(c[O(p;`O~O{)XO!i#xO~O!W$aO_$la'm$la'k$la!h$la!T$la!Y$la%b$la!b$la~O#q)]O~P!&^Oz)`O!b)_O!Y$YX$U$YX$X$YX$Z$YX$b$YX~O!b)_O!Y(mX$U(mX$X(mX$Z(mX$b(mX~Oz)`O~P!-lOz)`O!Y(mX$U(mX$X(mX$Z(mX$b(mX~O!Y)bO$U)fO$X)aO$Z)aO$b)gO~O!V)jO~P!*SO$X$gO$Z$fO$b)nO~Oh$tXz$tX}$tX!g$tX(k$tX(l$tX~OegXe$tXhgX!WgX#YgX~P!/bOm)pO~Or)qO(U)rO(V)tO~Oh)}Oz)vO})wO(k)yO(l){O~Oe)uO~P!0kOe*OO~Oj%SOl$tOm$sOn$sOt%TOv%UOx:[O}${O!Y$|O!d;fO!i$xO#d:bO$R%YO$n:^O$p:`O$s%ZO'xTO'{UO(P%RO(T$uO~O!V*SO'v*PO!h(qP~P!1YO#e*UO~O!i*VO~O!V*[O'v*XO!T(rP~P!1YOl*hO}*`O!]*fO!^*_O!_*_O!i*VO#U*gO%X*bO'w!lO(W!mO~O!X*eO~P!3`O!g#wOh(SXz(SX}(SX(k(SX(l(SX!W(SX#Y(SX~Oe(SX#z(SX~P!4XOh*kO#Y*jOe(RX!W(RX~O!W*lOe(QX~O'v&QOe(QP~O!i*sO~O'v(lO~Oj*wO}%aO!V#hO!Y%bO!y]O#c#kO#d#hO'v%`O!h(eP~O!b#uO#e*xO~O}%aO!V*zO!W(SO!Y%bO'v%`O!T(hP~Om'RO}*|O!V*{O'xTO'{UO(W(tO~O!X(jP~P!7SO!W*}O_(vX'm(vX~OP$]OY$dOl$QOz#yO{#zO}#{O!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO#t$VO#v$XO#w$YO(TVO(d$ZO(k#|O(l#}O~O_!ca!W!ca'm!ca'k!ca!T!ca!h!cap!ca!Y!ca%b!ca!b!ca~P!7zOz#yO{#zO}#{O!g#wO!i#xO(TVOP!oaY!oal!oa!W!oa!f!oa!m!oa#h!oa#i!oa#j!oa#k!oa#l!oa#m!oa#n!oa#o!oa#p!oa#r!oa#t!oa#v!oa#w!oa(d!oa(k!oa(l!oa~O_!oa'm!oa'k!oa!T!oa!h!oap!oa!Y!oa%b!oa!b!oa~P!:eOz#yO{#zO}#{O!g#wO!i#xO(TVOP!qaY!qal!qa!W!qa!f!qa!m!qa#h!qa#i!qa#j!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#r!qa#t!qa#v!qa#w!qa(d!qa(k!qa(l!qa~O_!qa'm!qa'k!qa!T!qa!h!qap!qa!Y!qa%b!qa!b!qa~P!=OOh+WO!Y'VO%b+VO(P%RO~O!b+YO_(OX!Y(OX'm(OX!W(OX~O_%gO!YXO'm%gO~O!i%^O(P%RO~O!i%^O'v%`O(P%RO~O!b#uO#e(nO~O%c+fO'v+bO'xTO'{UO!X(zP~O!W+gO^(yX~OY+kO~O^+lO~O!Y%wO'v%`O'w!lO^(yP~O#Y+qO(P%RO~Oh+tO!Y$|O(P%RO~O!Y+vO~Oz+xO!YXO~O%g%nO~O!u+}O~Oc,SO~O'v#mO!X(xP~Oc%uO~O%c!QO'v&QO~P<wOY,YO^,XO~OPYOQYObzOcyOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!duO!iZO!lYO!mYO!nYO!pvO!uxO!y]O$VfO%a}O'xTO'{UO(TVO(c[O(piO~O!Y!eO!r!gO$R!kO'v!dO~P!CuO^,XO_%gO'm%gO~OPYOQYOb!jOc!iOjkOlYOmkOnkOtkOvYOxYO}WO!RkO!SkO!Y!eO!duO!iZO!lYO!mYO!nYO!pvO!u!hO$R!kO$VfO'v!dO'xTO'{UO(TVO(c[O(piO~O_,_O!rwO#q!OO%e!OO%f!OO%g!OO~P!F_O!i&fO~O&U,eO~O!Y,gO~O&g,iO&i,jOP&daQ&daW&da_&dab&dac&daj&dal&dam&dan&dat&dav&dax&da}&da!R&da!S&da!Y&da!d&da!i&da!l&da!m&da!n&da!p&da!r&da!u&da!y&da#q&da$R&da$V&da%a&da%c&da%e&da%f&da%g&da%j&da%l&da%o&da%p&da%r&da&O&da&U&da&W&da&Y&da&[&da&_&da&e&da&k&da&m&da&o&da&q&da&s&da'k&da'v&da'x&da'{&da(T&da(c&da(p&da!X&da&]&da`&da&b&da~O'v,oO~O!W|X!W!`X!X|X!X!`X!b|X!b!`X!i!`X#Y|X(P!`X~O!b,tO#Y,sO!W#bX!W(]X!X#bX!X(]X!b(]X!i(]X(P(]X~O!b,vO!i%^O(P%RO!W![X!X![X~Om!nO}!oO'xTO'{UO(W!mO~OP9qOQ9qOb;bOc!iOjkOl9qOmkOnkOtkOv9qOx9qO}WO!RkO!SkO!Y!eO!d9tO!iZO!l9qO!m9qO!n9qO!p9uO!r9xO!u!hO$R!kO$VfO'xTO'{UO(TVO(c[O(p;`O~O'v:gO~P# eO!W,zO!X([X~O!X,|O~O!b,tO#Y,sO!W#bX!X#bX~O!W,}O!X(jX~O!X-PO~O!^-QO!_-QO'w!lO~P# SO!X-TO~P'_Oh-WO!Y'VO~O!T-]O~Om!xa!]!xa!^!xa!_!xa!}!xa#O!xa#P!xa#Q!xa#R!xa#U!xa#V!xa'w!xa'x!xa'{!xa(W!xa(c!xa~P!#YO!m-bO#Y-`O~PBxO!^-dO!_-dO'w!lO~PChO_%gO#Y-`O'm%gO~O_%gO!b#uO#Y-`O'm%gO~O_%gO!b#uO!m-bO#Y-`O'm%gO(d'gO~O'r'oO's'oO't-iO~Op-jO~O!T'Oa!W'Oa~P!7zO!V-nO!T'OX!W'OX~P%[O!W'{O!T(Za~O!T(Za~PG[O!W(SO!T(ha~O}%aO!V-rO!Y%bO'v%`O!T'UX!W'UX~O#Y-tO!W(fa!h(fa_(fa'm(fa~O!b#uO~P#)kO!W(`O!h(ea~O}%aO!Y%bO#d-xO'v%`O~Oj-}O}%aO!V-zO!Y%bO!y]O#c-|O#d-zO'v%`O!W'XX!h'XX~O{.RO!i#xO~Oh.UO!Y'VO%b.TO(P%RO~O_#]i!W#]i'm#]i'k#]i!T#]i!h#]ip#]i!Y#]i%b#]i!b#]i~P!7zOh;lOz)vO})wO(k)yO(l){O~O#e#Xa_#Xa#Y#Xa'm#Xa!W#Xa!h#Xa!Y#Xa!T#Xa~P#,gO#e(SXP(SXY(SX_(SXl(SX{(SX!f(SX!i(SX!m(SX#h(SX#i(SX#j(SX#k(SX#l(SX#m(SX#n(SX#o(SX#p(SX#r(SX#t(SX#v(SX#w(SX'm(SX(T(SX(d(SX!h(SX!T(SX'k(SXp(SX!Y(SX%b(SX!b(SX~P!4XO!W._Oe(^X~P!0kOe.aO~O!W.bO!h(_X~P!7zO!h.eO~O!T.gO~OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gi_#gil#gi!W#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(d#gi(k#gi(l#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~O#h#gi~P#0cO#h$OO~P#0cOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO(TVOY#gi_#gi!W#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(d#gi(k#gi(l#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~Ol#gi~P#3TOl$QO~P#3TOP$]Ol$QOz#yO{#zO}#{O!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO(TVO_#gi!W#gi#r#gi#t#gi#v#gi#w#gi'm#gi(d#gi(k#gi(l#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P#5uOY$dO!f$SO#m$SO#n$SO#o$cO#p$SO~P#5uOP$]OY$dOl$QOz#yO{#zO}#{O!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO(TVO_#gi!W#gi#t#gi#v#gi#w#gi'm#gi(d#gi(l#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~O(k#gi~P#8vO(k#|O~P#8vOP$]OY$dOl$QOz#yO{#zO}#{O!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO#t$VO(TVO(k#|O_#gi!W#gi#v#gi#w#gi'm#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~O(l#gi~P#;hO(l#}O~P#;hOP$]OY$dOl$QOz#yO{#zO}#{O!f$SO!g#wO!i#xO!m$]O#h$OO#i$PO#j$PO#k$PO#l$RO#m$SO#n$SO#o$cO#p$SO#r$TO#t$VO#v$XO(TVO(k#|O(l#}O~O_#gi!W#gi#w#gi'm#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#>YOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#@sOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#CQO#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,gO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#CQO!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,gO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,gO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ hOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!^Oz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#PO#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$nOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+dO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#CQOm!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ hO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!^O#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#PO#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,gO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#CQO#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,gO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,gOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$I|Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$JoO(d$ZO~P#,gO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,gO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,gO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,gO!Y$|O~P#,gO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%$nOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O'v#mO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#CQO#Y5lO!W#bi!X#bi~O!W![i!X![i~P#CQO_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$I|O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$JoO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,gOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#CQOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%2}O#h9zO~P%2}OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5YOl9|O~P%5YOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%7eOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%7eOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:PO(k#|O~P%:POP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%<[O(l#}O~P%<[OP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO(TVO(k#|O(l#}O~O#w#gi#z#gi(d#gi!W#gi!X#gi~P%>gO_#xy!W#xy'm#xy'k#xy!T#xy!h#xyp#xy!Y#xy%b#xy!b#xy~P!7zOh;mOz)vO})wO(k)yO(l){O~OP#giY#gil#gi{#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(T#gi(d#gi!W#gi!X#gi~P%A_O!g#wOP(SXY(SXh(SXl(SXz(SX{(SX}(SX!f(SX!i(SX!m(SX#h(SX#i(SX#j(SX#k(SX#l(SX#m(SX#n(SX#o(SX#p(SX#r(SX#t(SX#v(SX#w(SX#z(SX(T(SX(d(SX(k(SX(l(SX!W(SX!X(SX~O#z#{i!W#{i!X#{i~P#CQO#z!oi!X!oi~P$$nO!X6`O~O!W'[a!X'[a~P#CQO!b#uO(d'gO!W']a!h']a~O!W/VO!h(qi~O!W/VO!b#uO!h(qi~Oe$vq!W$vq#Y$vq#z$vq~P!0kO!T'_a!W'_a~P#,gO!b6gO~O!W/_O!T(ri~P#,gO!W/_O!T(ri~O!T6kO~O!b#uO#p6pO~Ol6qO!b#uO(d'gO~O!T6sO~Oe$xq!W$xq#Y$xq#z$xq~P!0kO_$jy!W$jy'm$jy'k$jy!T$jy!h$jyp$jy!Y$jy%b$jy!b$jy~P!7zO!b5kO~O!W4WO!Y(sa~O_#]y!W#]y'm#]y'k#]y!T#]y!h#]yp#]y!Y#]y%b#]y!b#]y~P!7zOY6xO~O!W0bO!X(zi~O^7OO~O(W(tO!W'dX!X'dX~O!W4nO!X(wa~OjkO'v7VO~P.iO!X7YO~P%$nOm!nO}7ZO'xTO'{UO(W!mO(c!sO~O!Y0zO~O!Y0zO%b7]O~Oh7`O!Y0zO%b7]O~OY7eO!W'ga!X'ga~O!W1VO!X(xi~O!h7iO~O!h7jO~O!h7mO~O!h7mO~P%[O_7oO~O!b7pO~O!h7qO~O!W(ii!X(ii~P#CQO_%gO#Y7yO'm%gO~O!W(fy!h(fy_(fy'm(fy~P!7zO!W(`O!h(ey~O!Y'VO%b7|O~O#e$vqP$vqY$vq_$vql$vq{$vq!W$vq!f$vq!g$vq!i$vq!m$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#o$vq#p$vq#r$vq#t$vq#v$vq#w$vq'm$vq(T$vq(d$vq!h$vq!T$vq'k$vq#Y$vqp$vq!Y$vq%b$vq!b$vq~P#,gO#e$xqP$xqY$xq_$xql$xq{$xq!W$xq!f$xq!g$xq!i$xq!m$xq#h$xq#i$xq#j$xq#k$xq#l$xq#m$xq#n$xq#o$xq#p$xq#r$xq#t$xq#v$xq#w$xq'm$xq(T$xq(d$xq!h$xq!T$xq'k$xq#Y$xqp$xq!Y$xq%b$xq!b$xq~P#,gO!W'Ri!h'Ri~P!7zO#z#]q!W#]q!X#]q~P#CQOz/yO{/yO}/zOPwaYwahwalwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa#zwa(Twa(dwa(kwa(lwa!Wwa!Xwa~Oz)vO})wOP$maY$mah$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma#z$ma(T$ma(d$ma(k$ma(l$ma!W$ma!X$ma~Oz)vO})wOP$oaY$oah$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa#z$oa(T$oa(d$oa(k$oa(l$oa!W$oa!X$oa~OP$}aY$}al$}a{$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a#z$}a(T$}a(d$}a!W$}a!X$}a~P%A_O#z$iq!W$iq!X$iq~P#CQO#z$jq!W$jq!X$jq~P#CQO!X8WO~O#z8XO~P!0kO!b#uO!W']i!h']i~O!b#uO(d'gO!W']i!h']i~O!W/VO!h(qq~O!T'_i!W'_i~P#,gO!W/_O!T(rq~O!T8_O~P#,gO!T8_O~Oe(Ry!W(Ry~P!0kO!W'ba!Y'ba~P#,gO_%Uq!Y%Uq'm%Uq!W%Uq~P#,gOY8dO~O!W0bO!X(zq~O#Y8hO!W'da!X'da~O!W4nO!X(wi~P#CQOPZXYZXlZXzZX{ZX}ZX!TZX!WZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX~O!b%SX#p%SX~P&2_O!Y0zO%b8lO~O'xTO'{UO(W8qO~O!W1VO!X(xq~O!h8tO~O!h8uO~O!h8vO~O!h8vO~P%[O#Y8yO!W#by!X#by~O!W#by!X#by~P#CQO!Y'VO%b9OO~O#z#xy!W#xy!X#xy~P#CQOP$viY$vil$vi{$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi#z$vi(T$vi(d$vi!W$vi!X$vi~P%A_Oz)vO})wO(l){OP%YiY%Yih%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi#z%Yi(T%Yi(d%Yi(k%Yi!W%Yi!X%Yi~Oz)vO})wOP%[iY%[ih%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i#z%[i(T%[i(d%[i(k%[i(l%[i!W%[i!X%[i~O#z$jy!W$jy!X$jy~P#CQO#z#]y!W#]y!X#]y~P#CQO!b#uO!W']q!h']q~O!W/VO!h(qy~O!T'_q!W'_q~P#,gO!T9VO~P#,gO!W0bO!X(zy~O!W4nO!X(wq~O!Y0zO%b9^O~O!h9aO~O!Y'VO%b9fO~OP$vqY$vql$vq{$vq!f$vq!g$vq!i$vq!m$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#o$vq#p$vq#r$vq#t$vq#v$vq#w$vq#z$vq(T$vq(d$vq!W$vq!X$vq~P%A_OP$xqY$xql$xq{$xq!f$xq!g$xq!i$xq!m$xq#h$xq#i$xq#j$xq#k$xq#l$xq#m$xq#n$xq#o$xq#p$xq#r$xq#t$xq#v$xq#w$xq#z$xq(T$xq(d$xq!W$xq!X$xq~P%A_Oe%^!Z!W%^!Z#Y%^!Z#z%^!Z~P!0kO!W'dq!X'dq~P#CQO!W#b!Z!X#b!Z~P#CQO#e%^!ZP%^!ZY%^!Z_%^!Zl%^!Z{%^!Z!W%^!Z!f%^!Z!g%^!Z!i%^!Z!m%^!Z#h%^!Z#i%^!Z#j%^!Z#k%^!Z#l%^!Z#m%^!Z#n%^!Z#o%^!Z#p%^!Z#r%^!Z#t%^!Z#v%^!Z#w%^!Z'm%^!Z(T%^!Z(d%^!Z!h%^!Z!T%^!Z'k%^!Z#Y%^!Zp%^!Z!Y%^!Z%b%^!Z!b%^!Z~P#,gOP%^!ZY%^!Zl%^!Z{%^!Z!f%^!Z!g%^!Z!i%^!Z!m%^!Z#h%^!Z#i%^!Z#j%^!Z#k%^!Z#l%^!Z#m%^!Z#n%^!Z#o%^!Z#p%^!Z#r%^!Z#t%^!Z#v%^!Z#w%^!Z#z%^!Z(T%^!Z(d%^!Z!W%^!Z!X%^!Z~P%A_Op(XX~P1qO'w!lO~P!*SO!TdX!WdX#YdX~P&2_OPZXYZXlZXzZX{ZX}ZX!WZX!WdX!fZX!gZX!iZX!mZX#YZX#YdX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX~O!bdX!hZX!hdX(ddX~P&GuOP9qOQ9qOb;bOc!iOjkOl9qOmkOnkOtkOv9qOx9qO}WO!RkO!SkO!YXO!d9tO!iZO!l9qO!m9qO!n9qO!p9uO!r9xO!u!hO$R!kO$VfO'v)UO'xTO'{UO(TVO(c[O(p;`O~O!W:VO!X$la~Oj%SOl$tOm$sOn$sOt%TOv%UOx:]O}${O!Y$|O!d;gO!i$xO#d:cO$R%YO$n:_O$p:aO$s%ZO'v(lO'xTO'{UO(P%RO(T$uO~O#q)]O~P&LkO!XZX!XdX~P&GuO#e9yO~O!b#uO#e9yO~O#Y:ZO~O#p:OO~O#Y:eO!W(iX!X(iX~O#Y:ZO!W(gX!X(gX~O#e:fO~Oe:hO~P!0kO#e:mO~O#e:nO~O!b#uO#e:oO~O!b#uO#e:fO~O#z:pO~P#CQO#e:qO~O#e:rO~O#e:sO~O#e:tO~O#e:uO~O#e:vO~O#z:wO~P!0kO#z:xO~P!0kO$V~!g!}#O#Q#R#U#c#d#o(p$n$p$s%V%a%b%c%j%l%o%p%r%t~'qR$V(p#i!S'o'w#jm#h#klz'p(W'p'v$X$Z$X~",goto:"$'R)OPPPP)PPP)SP)eP*t.xPPPP5YPP5pP;l>sP?WP?WPPP?WP@xP?WP?WP?WP@|PPARPAlPFdPPPFhPPPPFhIiPPPIoJjPFhPLxPPPP! WFhPPPFhPFhP!#fFhP!&z!'|!(VP!(y!(}!(yPPPPP!,Y!'|PP!,v!-pP!0dFhFh!0i!3s!8Y!8Y!<OPPP!<VFhPPPPPPPPPPP!?dP!@uPPFh!BSPFhPFhFhFhFhPFh!CfPP!FnP!IrP!Iv!JQ!JU!JUP!FkP!JY!JYP!M^P!MbFhFh!Mh#!k?WP?WP?W?WP##v?W?W#%r?W#(R?W#)w?W?W#*f#,d#,d#,h#,p#,d#,xP#,dP?W#-b?W#.k?W?W5YPPP#/wPPP#0b#0bP#0bP#0x#0bPP#1OP#0uP#0u#1c#0u#1}#2T5V)S#2W)SP#2_#2_#2_P)SP)SP)SP)SPP)SP#2e#2hP#2h)SP#2lP#2oP)SP)SP)SP)SP)SP)S)SPP#2u#2{#3W#3^#3d#3j#3p#4O#4U#4[#4f#4l#4v#5V#5]#5}#6a#6g#6m#6{#7b#8s#9R#9X#9_#9e#9k#9u#9{#:R#:]#:o#:uPPPPPPPPPP#:{PPPPPPP#;p#>wP#@W#@_#@gPPPP#Du#Gl#NT#NW#NZ$ S$ V$ Y$ a$ iPP$ o$ s$!k$#j$#n$$SPP$$W$$^$$bP$$e$$i$$l$%b$%y$&b$&f$&i$&l$&r$&u$&y$&}R!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"\u26A0 ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:eZe,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[oZe],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$<m#p#q$=c#q#r$>s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__US$e&j'yp'|!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]US$e&j'|!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S#%|C}i$e&j(c!L^'yp'|!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr#%|EoP;=`<%lCr(CSFRk$e&j'yp'|!b(W!LY'v&;d$X#tOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$e&j'yp'|!b$X#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv(CSJPP;=`<%lEr%#SJ_`$e&j'yp'|!b#j$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SKl_$e&j#|$Id'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%DfLva(l%<v$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SNW`$e&j#v$Id'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b! c_'{$)`$e&j'ypOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b*Q!!i_$e&j'ypOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b)`!#mX$e&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h#t!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y#t!$oP;=`<%l!$Y)`!$uP;=`<%l!#h*Q!%R]$`#t$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r$f!&PZ'ypOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z$f!&yU$`#t'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r$f!'`P;=`<%l!%z*Q!'fP;=`<%l!!b(*Q!'t_!i(!b$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'l!)O_!hM|$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h!*[b$e&j'yp'|!b'w#)d#k$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S!+o`$e&j'yp'|!b#h$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&-O!,|`$e&j'yp'|!bl&%`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&C[!.Z_!W&;l$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!/ec$e&j'yp'|!bz'<nOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!0ya$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!2Z_!VMt$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!3eg$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!5Vg$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!6wc$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!8_c$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!9uf$e&j'yp'|!b#i$IdOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpxz!;Zz{#,f{!P!;Z!P!Q#-{!Q!^!;Z!^!_#'Z!_!`#5k!`!a#7Q!a!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(r!;fb$e&j'yp'|!b!SSOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(Q!<w`$e&j'|!b!SSOY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eb!Q!^!<n!^!_!GY!_!}!<n!}#O!Ja#O#P!Dj#P#o!<n#o#p!GY#p;'S!<n;'S;=`!Kj<%lO!<n&n!>Q^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!<n#Q#o!Ja#o#p!Ic#p;'S!Ja;'S;=`!Kd<%lO!Ja(Q!KgP;=`<%l!Ja(Q!KmP;=`<%l!<n'`!Ky`$e&j'yp!SSOY!KpYZ&cZr!Kprs!=ys!P!Kp!P!Q!L{!Q!^!Kp!^!_!Ns!_!}!Kp!}#O##z#O#P!Dj#P#o!Kp#o#p!Ns#p;'S!Kp;'S;=`#%T<%lO!Kp'`!MUi$e&j'yp!SSOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#Z(r#Z#[!L{#[#](r#]#^!L{#^#a(r#a#b!L{#b#g(r#g#h!L{#h#i(r#i#j!L{#j#m(r#m#n!L{#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rt!NzZ'yp!SSOY!NsZr!Nsrs!@Ys!P!Ns!P!Q# m!Q!}!Ns!}#O#!|#O#P!Bb#P;'S!Ns;'S;=`##t<%lO!Nst# tb'yp!SSOY)rZr)rs#O)r#P#Z)r#Z#[# m#[#])r#]#^# m#^#a)r#a#b# m#b#g)r#g#h# m#h#i)r#i#j# m#j#m)r#m#n# m#n;'S)r;'S;=`*Z<%lO)rt##RX'ypOY#!|Zr#!|rs!Acs#O#!|#O#P!A{#P#Q!Ns#Q;'S#!|;'S;=`##n<%lO#!|t##qP;=`<%l#!|t##wP;=`<%l!Ns'`#$R^$e&j'ypOY##zYZ&cZr##zrs!Bws!^##z!^!_#!|!_#O##z#O#P!Cr#P#Q!Kp#Q#o##z#o#p#!|#p;'S##z;'S;=`#$}<%lO##z'`#%QP;=`<%l##z'`#%WP;=`<%l!Kp(r#%fk$e&j'yp'|!b!SSOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#Z%Z#Z#[#%Z#[#]%Z#]#^#%Z#^#a%Z#a#b#%Z#b#g%Z#g#h#%Z#h#i%Z#i#j#%Z#j#m%Z#m#n#%Z#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#W#'d]'yp'|!b!SSOY#'ZZr#'Zrs!GYsw#'Zwx!Nsx!P#'Z!P!Q#(]!Q!}#'Z!}#O#)w#O#P!Bb#P;'S#'Z;'S;=`#*w<%lO#'Z#W#(fe'yp'|!b!SSOY*gZr*grs'}sw*gwx)rx#O*g#P#Z*g#Z#[#(]#[#]*g#]#^#(]#^#a*g#a#b#(]#b#g*g#g#h#(]#h#i*g#i#j#(]#j#m*g#m#n#(]#n;'S*g;'S;=`+Z<%lO*g#W#*OZ'yp'|!bOY#)wZr#)wrs!Icsw#)wwx#!|x#O#)w#O#P!A{#P#Q#'Z#Q;'S#)w;'S;=`#*q<%lO#)w#W#*tP;=`<%l#)w#W#*zP;=`<%l#'Z(r#+W`$e&j'yp'|!bOY#*}YZ&cZr#*}rs!Jasw#*}wx##zx!^#*}!^!_#)w!_#O#*}#O#P!Cr#P#Q!;Z#Q#o#*}#o#p#)w#p;'S#*};'S;=`#,Y<%lO#*}(r#,]P;=`<%l#*}(r#,cP;=`<%l!;Z(CS#,sb$e&j'yp'|!b'q(;d!SSOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(CS#.W_$e&j'yp'|!bR(;dOY#-{YZ&cZr#-{rs#/Vsw#-{wx#2gx!^#-{!^!_#4f!_#O#-{#O#P#0X#P#o#-{#o#p#4f#p;'S#-{;'S;=`#5e<%lO#-{(Bb#/`]$e&j'|!bR(;dOY#/VYZ&cZw#/Vwx#0Xx!^#/V!^!_#1j!_#O#/V#O#P#0X#P#o#/V#o#p#1j#p;'S#/V;'S;=`#2a<%lO#/V(AO#0`X$e&jR(;dOY#0XYZ&cZ!^#0X!^!_#0{!_#o#0X#o#p#0{#p;'S#0X;'S;=`#1d<%lO#0X(;d#1QSR(;dOY#0{Z;'S#0{;'S;=`#1^<%lO#0{(;d#1aP;=`<%l#0{(AO#1gP;=`<%l#0X(<v#1qW'|!bR(;dOY#1jZw#1jwx#0{x#O#1j#O#P#0{#P;'S#1j;'S;=`#2Z<%lO#1j(<v#2^P;=`<%l#1j(Bb#2dP;=`<%l#/V(Ap#2p]$e&j'ypR(;dOY#2gYZ&cZr#2grs#0Xs!^#2g!^!_#3i!_#O#2g#O#P#0X#P#o#2g#o#p#3i#p;'S#2g;'S;=`#4`<%lO#2g(<U#3pW'ypR(;dOY#3iZr#3irs#0{s#O#3i#O#P#0{#P;'S#3i;'S;=`#4Y<%lO#3i(<U#4]P;=`<%l#3i(Ap#4cP;=`<%l#2g(=h#4oY'yp'|!bR(;dOY#4fZr#4frs#1jsw#4fwx#3ix#O#4f#O#P#0{#P;'S#4f;'S;=`#5_<%lO#4f(=h#5bP;=`<%l#4f(CS#5hP;=`<%l#-{%#W#5xb$e&j#|$Id'yp'|!b!SSOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z+h#7_b$U#t$e&j'yp'|!b!SSOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z$/l#8rp$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#U%Z#U#V#>Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#d#AY#d#l%Z#l#m#D[#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#;Rk$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#=R_$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#>Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Acc$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Bye$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Deg$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#FXi$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh#HT_!b$b$e&j#z%<f'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#I___l$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS#Jm^(P!*v!f'.r'yp'|!b$V)d(pSOY*gZr*grs'}sw*gwx)rx!P*g!P!Q#Ki!Q!^*g!^!_#L_!_!`#NP!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#KrX$g&j'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#LhZ#l$Id'yp'|!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#MZ!`#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#MdX#|$Id'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#NYX#m$Id'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g%Gh$ Qa#Y%?x$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$!V!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#W$!b_#e$Ih$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh$#paeBf#m$Id$b#|$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$$u!`!a$&P!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$%Q_#m$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$&[a#l$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$'a!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$'l`#l$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h$(yc(d$Ip$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P$*U!P!^%Z!^!_*g!_!a%Z!a!b$+`!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+`$*a_{'#p$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$+k`$e&j#w$Id'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&^$,x_!y!Ln$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(@^$.S_}(8n$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/WZ$e&jO!^$/y!^!_$0a!_#i$/y#i#j$0f#j#l$/y#l#m$2X#m#o$/y#o#p$0a#p;'S$/y;'S;=`$4d<%lO$/y(n$0QT]#S$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0fO]#S(n$0k[$e&jO!Q&c!Q![$1a![!^&c!_!c&c!c!i$1a!i#T&c#T#Z$1a#Z#o&c#o#p$3w#p;'S&c;'S;=`&w<%lO&c(n$1fZ$e&jO!Q&c!Q![$2X![!^&c!_!c&c!c!i$2X!i#T&c#T#Z$2X#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2^Z$e&jO!Q&c!Q![$3P![!^&c!_!c&c!c!i$3P!i#T&c#T#Z$3P#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3UZ$e&jO!Q&c!Q![$/y![!^&c!_!c&c!c!i$/y!i#T&c#T#Z$/y#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$3zR!Q![$4T!c!i$4T#T#Z$4T#S$4WS!Q![$4T!c!i$4T#T#Z$4T#q#r$0a(n$4gP;=`<%l$/y!2r$4u_!T!+S$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$6P`#t$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&,v$7^_$e&j'yp'|!b(T&%WOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS$8lk$e&j'yp'|!b(W!LY'v&;d$Z#tOY%ZYZ&cZr%Zrs&}st%Ztu$8]uw%Zwx(rx}%Z}!O$:a!O!Q%Z!Q![$8]![!^%Z!^!_*g!_!c%Z!c!}$8]!}#O%Z#O#P&c#P#R%Z#R#S$8]#S#T%Z#T#o$8]#o#p*g#p$g%Z$g;'S$8];'S;=`$<g<%lO$8]+d$:lk$e&j'yp'|!b$Z#tOY%ZYZ&cZr%Zrs&}st%Ztu$:auw%Zwx(rx}%Z}!O$:a!O!Q%Z!Q![$:a![!^%Z!^!_*g!_!c%Z!c!}$:a!}#O%Z#O#P&c#P#R%Z#R#S$:a#S#T%Z#T#o$:a#o#p*g#p$g%Z$g;'S$:a;'S;=`$<a<%lO$:a+d$<dP;=`<%l$:a(CS$<jP;=`<%l$8]!5p$<vX!Y!3l'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g%Df$=na(k%<v$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+`#q;'S%Z;'S;=`+a<%lO%Z%#`$?Q_!X$I`p`$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(r$@[_!nS$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS$Al|$e&j'yp'|!b'o(;d(W!LY'v&;d$X#tOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(CS$Dwk$e&j'yp'|!b'p(;d(W!LY'v&;d$X#tOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[nZe,rZe,2,3,4,5,6,7,8,9,10,11,12,13,tZe,new nN("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOr~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!P~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(V~~",141,328),new nN("j~RQYZXz{^~^O's~~aP!P!Qd~iO't~~",25,310)],topRules:{Script:[0,5],SingleExpression:[1,268],SingleClassItem:[2,269]},dialects:{jsx:12801,ts:12803},dynamicPrecedences:{67:1,77:1,79:1,164:1,192:1},specialized:[{term:314,get:e=>iZe[e]||-1},{term:330,get:e=>aZe[e]||-1},{term:68,get:e=>sZe[e]||-1}],tokenPrec:12827}),cK=[Qs("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Qs("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Qs("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Qs("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Qs("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Qs(`try {
  205. \${}
  206. } catch (\${error}) {
  207. \${}
  208. }`,{label:"try",detail:"/ catch block",type:"keyword"}),Qs("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Qs(`if (\${}) {
  209. \${}
  210. } else {
  211. \${}
  212. }`,{label:"if",detail:"/ else block",type:"keyword"}),Qs(`class \${name} {
  213. constructor(\${params}) {
  214. \${}
  215. }
  216. }`,{label:"class",detail:"definition",type:"keyword"}),Qs('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Qs('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],uZe=cK.concat([Qs("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Qs("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Qs("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),SF=new ize,fK=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function C_(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const cZe=["FunctionDeclaration"],fZe={FunctionDeclaration:C_("function"),ClassDeclaration:C_("class"),ClassExpression:()=>!0,EnumDeclaration:C_("constant"),TypeAliasDeclaration:C_("type"),NamespaceDeclaration:C_("namespace"),VariableDefinition(e,t){e.matchContext(cZe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function dK(e,t){let n=SF.get(t);if(n)return n;let r=[],o=!0;function i(a,s){let l=e.sliceString(a.from,a.to);r.push({label:l,type:s})}return t.cursor(qi.IncludeAnonymous).iterate(a=>{if(o)o=!1;else if(a.name){let s=fZe[a.name];if(s&&s(a,i)||fK.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of dK(e,a.node))r.push(s);return!1}}),SF.set(t,r),r}const xF=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,hK=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function dZe(e){let t=na(e.state).resolveInner(e.pos,-1);if(hK.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&xF.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let o=t;o;o=o.parent)fK.has(o.name)&&(r=r.concat(dK(e.state.doc,o)));return{options:r,from:n?t.from:e.pos,validFor:xF}}const Jg=KO.define({name:"javascript",parser:lZe.configure({props:[PD.add({IfStatement:lO({except:/^\s*({|else\b)/}),TryStatement:lO({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:kze,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:xze({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":lO({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),AD.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":FG,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),pK={test:e=>/^JSX/.test(e.name),facet:DG({commentTokens:{block:{open:"{/*",close:"*/}"}}})},hZe=Jg.configure({dialect:"ts"},"typescript"),pZe=Jg.configure({dialect:"jsx",props:[ED.add(e=>e.isTop?[pK]:void 0)]}),gZe=Jg.configure({dialect:"jsx ts",props:[ED.add(e=>e.isTop?[pK]:void 0)]},"typescript");let gK=e=>({label:e,type:"keyword"});const vK="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(gK),vZe=vK.concat(["declare","implements","private","protected","public"].map(gK));function mK(e={}){let t=e.jsx?e.typescript?gZe:pZe:e.typescript?hZe:Jg,n=e.typescript?uZe.concat(vZe):cK.concat(vK);return new LG(t,[Jg.data.of({autocomplete:YQe(hK,zq(n))}),Jg.data.of({autocomplete:dZe}),e.jsx?bZe:[]])}function mZe(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function kF(e,t,n=e.length){for(let r=t==null?void 0:t.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,n));return""}const yZe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),bZe=xn.inputHandler.of((e,t,n,r,o)=>{if((yZe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Jg.isActiveAt(e.state,t,-1))return!1;let i=o(),{state:a}=i,s=a.changeByRange(l=>{var u;let{head:d}=l,p=na(a).resolveInner(d-1,-1),v;if(p.name=="JSXStartTag"&&(p=p.parent),!(a.doc.sliceString(d-1,d)!=r||p.name=="JSXAttributeValue"&&p.to>d)){if(r==">"&&p.name=="JSXFragmentTag")return{range:l,changes:{from:d,insert:"</>"}};if(r=="/"&&p.name=="JSXStartCloseTag"){let y=p.parent,w=y.parent;if(w&&y.from==d-2&&((v=kF(a.doc,w.firstChild,d))||((u=w.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let b=`${v}>`;return{range:Dt.cursor(d+b.length,-1),changes:{from:d,insert:b}}}}else if(r==">"){let y=mZe(p);if(y&&!/^\/?>|^<\//.test(a.doc.sliceString(d,d+2))&&(v=kF(a.doc,y,d)))return{range:l,changes:{from:d,insert:`</${v}>`}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([i,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var yK={exports:{}},sE={},UD={exports:{}},bK={},lE={};function fa(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}fa.prototype.clone_empty=function(){var e=new fa(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e};fa.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]};fa.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1};fa.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))};fa.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)};fa.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count};fa.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1};fa.prototype.is_empty=function(){return this.__items.length===0};fa.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]};fa.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf(`
  217. `);t!==-1?this.__character_count=e.length-t:this.__character_count+=e.length};fa.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e};fa.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)};fa.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)};fa.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1};fa.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e};function W1(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}W1.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t,n};W1.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t],n};W1.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()};W1.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)};function ga(e,t){this.__indent_cache=new W1(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new fa(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}ga.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)};ga.prototype.get_line_number=function(){return this.__lines.length};ga.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)};ga.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)};ga.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()};ga.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)};ga.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&(t[t.length-1]===`
  218. `&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
  219. `);return e!==`
  220. `&&(n=n.replace(/[\n]/g,e)),n};ga.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()};ga.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)};ga.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1};ga.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()};ga.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))};ga.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()};ga.prototype.trim=function(e){for(e=e===void 0?!1:e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null};ga.prototype.just_added_newline=function(){return this.current_line.is_empty()};ga.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()};ga.prototype.ensure_empty_line_above=function(e,t){for(var n=this.__lines.length-2;n>=0;){var r=this.__lines[n];if(r.is_empty())break;if(r.item(0).indexOf(e)!==0&&r.item(-1)!==t){this.__lines.splice(n+1,0,new fa(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}};lE.Output=ga;var HD={};function _Ze(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}HD.Token=_Ze;var XD={};(function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",o="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",i="(?:\\\\u[0-9a-fA-F]{4}|["+t+r+"])",a="(?:\\\\u[0-9a-fA-F]{4}|["+n+r+o+"])*";e.identifier=new RegExp(i+a,"g"),e.identifierStart=new RegExp(i),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+n+r+o+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp(`\r
  221. |`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")})(XD);var GD={},E0={};function kp(e,t){this.raw_options=_K(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}kp.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(r=n.concat()):typeof n=="string"&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r};kp.prototype._get_boolean=function(e,t){var n=this.raw_options[e],r=n===void 0?!!t:!!n;return r};kp.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return typeof n=="string"&&(r=n.replace(/\\r/,"\r").replace(/\\n/,`
  222. `).replace(/\\t/," ")),r};kp.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r};kp.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(r.length!==1)throw new Error("Invalid Option Value: The option '"+e+`' can only be one of the following values:
  223. `+t+`
  224. You passed in: '`+this.raw_options[e]+"'");return r[0]};kp.prototype._get_selection_list=function(e,t,n){if(!t||t.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw new Error("Invalid Option Value: The option '"+e+`' can contain only the following values:
  225. `+t+`
  226. You passed in: '`+this.raw_options[e]+"'");return r};kp.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(n){return t.indexOf(n)===-1})};function _K(e,t){var n={};e=OK(e);var r;for(r in e)r!==t&&(n[r]=e[r]);if(t&&e[t])for(r in e[t])n[r]=e[t][r];return n}function OK(e){var t={},n;for(n in e){var r=n.replace(/-/g,"_");t[r]=e[n]}return t}E0.Options=kp;E0.normalizeOpts=OK;E0.mergeOpts=_K;var wK=E0.Options,OZe=["before-newline","after-newline","preserve-newline"];function SK(e){wK.call(this,e,"js");var t=this.raw_options.brace_style||null;t==="expand-strict"?this.raw_options.brace_style="expand":t==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var r=0;r<n.length;r++)n[r]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=n[r];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",OZe),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}SK.prototype=new wK;GD.Options=SK;var Cp={},uE={},xK=RegExp.prototype.hasOwnProperty("sticky");function Ba(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}Ba.prototype.restart=function(){this.__position=0};Ba.prototype.back=function(){this.__position>0&&(this.__position-=1)};Ba.prototype.hasNext=function(){return this.__position<this.__input_length};Ba.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e};Ba.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t};Ba.prototype.__match=function(e,t){e.lastIndex=t;var n=e.exec(this.__input);return n&&!(xK&&e.sticky)&&n.index!==t&&(n=null),n};Ba.prototype.test=function(e,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(e,t):!1};Ba.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,n!==null&&e.test(n)};Ba.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t};Ba.prototype.read=function(e,t,n){var r="",o;return e&&(o=this.match(e),o&&(r+=o[0])),t&&(o||!e)&&(r+=this.readUntil(t,n)),r};Ba.prototype.readUntil=function(e,t){var n="",r=this.__position;e.lastIndex=this.__position;var o=e.exec(this.__input);return o?(r=o.index,t&&(r+=o[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n};Ba.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)};Ba.prototype.get_regexp=function(e,t){var n=null,r="g";return t&&xK&&(r="y"),typeof e=="string"&&e!==""?n=new RegExp(e,r):e&&(n=new RegExp(e.source,r)),n};Ba.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))};Ba.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n};Ba.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e};uE.InputScanner=Ba;var T0={},kK={};function kv(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}kv.prototype.restart=function(){this.__position=0};kv.prototype.isEmpty=function(){return this.__tokens_length===0};kv.prototype.hasNext=function(){return this.__position<this.__tokens_length};kv.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e};kv.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t};kv.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1};kK.TokenStream=kv;var CK={},Y1={};function vf(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}vf.prototype.read=function(){var e=this._input.read(this._starting_pattern);return(!this._starting_pattern||e)&&(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e};vf.prototype.read_match=function(){return this._input.match(this._match_pattern)};vf.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t};vf.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t};vf.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t};vf.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t};vf.prototype._create=function(){return new vf(this._input,this)};vf.prototype._update=function(){};Y1.Pattern=vf;var EK=Y1.Pattern;function cp(e,t){EK.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}cp.prototype=new EK;cp.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")};cp.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(e===" ")this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e};cp.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n};cp.prototype._create=function(){return new cp(this._input,this)};cp.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,r=[],o=e.exec(t);o;)r.push(t.substring(n,o.index)),n=o.index+o[0].length,o=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r};CK.WhitespacePattern=cp;var wZe=uE.InputScanner,TK=HD.Token,EA=kK.TokenStream,SZe=CK.WhitespacePattern,i1={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},Pf=function(e,t){this._input=new wZe(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new SZe(this._input)};Pf.prototype.tokenize=function(){this._input.restart(),this.__tokens=new EA,this._reset();for(var e,t=new TK(i1.START,""),n=null,r=[],o=new EA;t.type!==i1.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)o.add(e),e=this._get_next_token(t,n);o.isEmpty()||(e.comments_before=o,o=new EA),e.parent=n,this._is_opening(e)?(r.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=r.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens};Pf.prototype._is_first_token=function(){return this.__tokens.isEmpty()};Pf.prototype._reset=function(){};Pf.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(i1.RAW,n):this._create_token(i1.EOF,"")};Pf.prototype._is_comment=function(e){return!1};Pf.prototype._is_opening=function(e){return!1};Pf.prototype._is_closing=function(e,t){return!1};Pf.prototype._create_token=function(e,t){var n=new TK(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n};Pf.prototype._readWhitespace=function(){return this._patterns.whitespace.read()};T0.Tokenizer=Pf;T0.TOKEN=i1;var cE={};function qD(e,t){e=typeof e=="string"?e:e.source,t=typeof t=="string"?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}qD.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t};qD.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)};cE.Directives=qD;var KD={},rN=Y1.Pattern,oN={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function pc(e,t){rN.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},oN),this._excluded=Object.assign({},oN),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new rN(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}pc.prototype=new rN;pc.prototype._create=function(){return new pc(this._input,this)};pc.prototype._update=function(){this.__set_templated_pattern()};pc.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t};pc.prototype.read_options=function(e){var t=this._create();for(var n in oN)t._disabled[n]=e.templating.indexOf(n)===-1;return t._update(),t};pc.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t};pc.prototype.read=function(){var e="";this._match_pattern?e=this._input.read(this._starting_pattern):e=this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e};pc.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")};pc.prototype._read_template=function(){var e="",t=this._input.peek();if(t==="<"){var n=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&n==="?"&&(e=e||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&n==="%"&&(e=e||this.__patterns.erb.read())}else t==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e};KD.TemplatablePattern=pc;var xZe=uE.InputScanner,PK=T0.Tokenizer,TA=T0.TOKEN,kZe=cE.Directives,yu=XD,CZe=Y1.Pattern,EZe=KD.TemplatablePattern;function PA(e,t){return t.indexOf(e)!==-1}var er={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:TA.START,RAW:TA.RAW,EOF:TA.EOF},CF=new kZe(/\/\*/,/\*\//),TZe=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,PZe=/[0-9]/,$Ze=/[^\d\.]/,AZe=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),gv=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";gv=gv.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&");gv="\\?\\.(?!\\d) "+gv;gv=gv.replace(/ /g,"|");var MZe=new RegExp(gv),$K="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),RZe=$K.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),NZe=new RegExp("^(?:"+RZe.join("|")+")$"),Ck,va=function(e,t){PK.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new CZe(this._input),r=new EZe(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(yu.identifier).matching(yu.identifierMatch),number:n.matching(TZe),punct:n.matching(MZe),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(/<!--/),html_comment_end:n.matching(/-->/),include:n.starting_with(/#include/).until_after(yu.lineBreak),shebang:n.starting_with(/#!/).until_after(yu.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};va.prototype=new PK;va.prototype._is_comment=function(e){return e.type===er.COMMENT||e.type===er.BLOCK_COMMENT||e.type===er.UNKNOWN};va.prototype._is_opening=function(e){return e.type===er.START_BLOCK||e.type===er.START_EXPR};va.prototype._is_closing=function(e,t){return(e.type===er.END_BLOCK||e.type===er.END_EXPR)&&t&&(e.text==="]"&&t.text==="["||e.text===")"&&t.text==="("||e.text==="}"&&t.text==="{")};va.prototype._reset=function(){Ck=!1};va.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return r===null?this._create_token(er.EOF,""):(n=n||this._read_non_javascript(r),n=n||this._read_string(r),n=n||this._read_pair(r,this._input.peek(1)),n=n||this._read_word(e),n=n||this._read_singles(r),n=n||this._read_comment(r),n=n||this._read_regexp(r,e),n=n||this._read_xml(r,e),n=n||this._read_punctuation(),n=n||this._create_token(er.UNKNOWN,this._input.next()),n)};va.prototype._read_word=function(e){var t;if(t=this.__patterns.identifier.read(),t!=="")return t=t.replace(yu.allLineBreaks,`
  227. `),!(e.type===er.DOT||e.type===er.RESERVED&&(e.text==="set"||e.text==="get"))&&NZe.test(t)?(t==="in"||t==="of")&&(e.type===er.WORD||e.type===er.STRING)?this._create_token(er.OPERATOR,t):this._create_token(er.RESERVED,t):this._create_token(er.WORD,t);if(t=this.__patterns.number.read(),t!=="")return this._create_token(er.WORD,t)};va.prototype._read_singles=function(e){var t=null;return e==="("||e==="["?t=this._create_token(er.START_EXPR,e):e===")"||e==="]"?t=this._create_token(er.END_EXPR,e):e==="{"?t=this._create_token(er.START_BLOCK,e):e==="}"?t=this._create_token(er.END_BLOCK,e):e===";"?t=this._create_token(er.SEMICOLON,e):e==="."&&$Ze.test(this._input.peek(1))?t=this._create_token(er.DOT,e):e===","&&(t=this._create_token(er.COMMA,e)),t&&this._input.next(),t};va.prototype._read_pair=function(e,t){var n=null;return e==="#"&&t==="{"&&(n=this._create_token(er.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n};va.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(e!=="")return e==="="?this._create_token(er.EQUALS,e):e==="?."?this._create_token(er.DOT,e):this._create_token(er.OPERATOR,e)};va.prototype._read_non_javascript=function(e){var t="";if(e==="#"){if(this._is_first_token()&&(t=this.__patterns.shebang.read(),t))return this._create_token(er.UNKNOWN,t.trim()+`
  228. `);if(t=this.__patterns.include.read(),t)return this._create_token(er.UNKNOWN,t.trim()+`
  229. `);e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(PZe)){do e=this._input.next(),n+=e;while(this._input.hasNext()&&e!=="#"&&e!=="=");return e==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(n+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(n+="{}",this._input.next(),this._input.next())),this._create_token(er.WORD,n)}this._input.back()}else if(e==="<"&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read(),t){for(;this._input.hasNext()&&!this._input.testChar(yu.newline);)t+=this._input.next();return Ck=!0,this._create_token(er.COMMENT,t)}}else if(Ck&&e==="-"&&(t=this.__patterns.html_comment_end.read(),t))return Ck=!1,this._create_token(er.COMMENT,t);return null};va.prototype._read_comment=function(e){var t=null;if(e==="/"){var n="";if(this._input.peek(1)==="*"){n=this.__patterns.block_comment.read();var r=CF.get_directives(n);r&&r.ignore==="start"&&(n+=CF.readIgnored(this._input)),n=n.replace(yu.allLineBreaks,`
  230. `),t=this._create_token(er.BLOCK_COMMENT,n),t.directives=r}else this._input.peek(1)==="/"&&(n=this.__patterns.comment.read(),t=this._create_token(er.COMMENT,n))}return t};va.prototype._read_string=function(e){if(e==="`"||e==="'"||e==='"'){var t=this._input.next();return this.has_char_escapes=!1,e==="`"?t+=this._read_string_recursive("`",!0,"${"):t+=this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=IZe(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(yu.allLineBreaks,`
  231. `),this._create_token(er.STRING,t)}return null};va.prototype._allow_regexp_or_xml=function(e){return e.type===er.RESERVED&&PA(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===er.END_EXPR&&e.text===")"&&e.opened.previous.type===er.RESERVED&&PA(e.opened.previous.text,["if","while","for"])||PA(e.type,[er.COMMENT,er.START_EXPR,er.START_BLOCK,er.START,er.END_BLOCK,er.OPERATOR,er.EQUALS,er.EOF,er.SEMICOLON,er.COMMA])};va.prototype._read_regexp=function(e,t){if(e==="/"&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),r=!1,o=!1;this._input.hasNext()&&(r||o||this._input.peek()!==e)&&!this._input.testChar(yu.newline);)n+=this._input.peek(),r?r=!1:(r=this._input.peek()==="\\",this._input.peek()==="["?o=!0:this._input.peek()==="]"&&(o=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(yu.identifier)),this._create_token(er.STRING,n)}return null};va.prototype._read_xml=function(e,t){if(this._options.e4x&&e==="<"&&this._allow_regexp_or_xml(t)){var n="",r=this.__patterns.xml.read_match();if(r){for(var o=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),i=o.indexOf("{")===0,a=0;r;){var s=!!r[1],l=r[2],u=!!r[r.length-1]||l.slice(0,8)==="![CDATA[";if(!u&&(l===o||i&&l.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(s?--a:++a),n+=r[0],a<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(yu.allLineBreaks,`
  232. `),this._create_token(er.STRING,n)}}return null};function IZe(e){for(var t="",n=0,r=new xZe(e),o=null;r.hasNext();)if(o=r.match(/([\s]|[^\\]|\\\\)+/g),o&&(t+=o[0]),r.peek()==="\\"){if(r.next(),r.peek()==="x")o=r.match(/x([0-9A-Fa-f]{2})/g);else if(r.peek()==="u")o=r.match(/u([0-9A-Fa-f]{4})/g);else{t+="\\",r.hasNext()&&(t+=r.next());continue}if(!o||(n=parseInt(o[1],16),n>126&&n<=255&&o[0].indexOf("x")===0))return e;if(n>=0&&n<32){t+="\\"+o[0];continue}else n===34||n===39||n===92?t+="\\"+String.fromCharCode(n):t+=String.fromCharCode(n)}return t}va.prototype._read_string_recursive=function(e,t,n){var r,o;e==="'"?o=this.__patterns.single_quote:e==='"'?o=this.__patterns.double_quote:e==="`"?o=this.__patterns.template_text:e==="}"&&(o=this.__patterns.template_expression);for(var i=o.read(),a="";this._input.hasNext();){if(a=this._input.next(),a===e||!t&&yu.newline.test(a)){this._input.back();break}else a==="\\"&&this._input.hasNext()?(r=this._input.peek(),r==="x"||r==="u"?this.has_char_escapes=!0:r==="\r"&&this._input.peek(1)===`
  233. `&&this._input.next(),a+=this._input.next()):n&&(n==="${"&&a==="$"&&this._input.peek()==="{"&&(a+=this._input.next()),n===a&&(e==="`"?a+=this._read_string_recursive("}",t,"`"):a+=this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(a+=this._input.next())));a+=o.read(),i+=a}return i};Cp.Tokenizer=va;Cp.TOKEN=er;Cp.positionable_operators=AZe.slice();Cp.line_starters=$K.slice();var DZe=lE.Output,jZe=HD.Token,V2=XD,LZe=GD.Options,BZe=Cp.Tokenizer,a1=Cp.line_starters,j_=Cp.positionable_operators,kt=Cp.TOKEN;function $r(e,t){return t.indexOf(e)!==-1}function VZe(e){return e.replace(/^\s+/g,"")}function FZe(e){for(var t={},n=0;n<e.length;n++)t[e[n].replace(/-/g,"_")]=e[n];return t}function cu(e,t){return e&&e.type===kt.RESERVED&&e.text===t}function Po(e,t){return e&&e.type===kt.RESERVED&&$r(e.text,t)}var fE=["case","return","do","if","throw","else","await","break","continue","async"],zZe=["before-newline","after-newline","preserve-newline"],uO=FZe(zZe),AK=[uO.before_newline,uO.preserve_newline],sr={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function MK(e,t){t.multiline_frame||t.mode===sr.ForInitializer||t.mode===sr.Conditional||e.remove_indent(t.start_line_index)}function QZe(e){e=e.replace(V2.allLineBreaks,`
  234. `);for(var t=[],n=e.indexOf(`
  235. `);n!==-1;)t.push(e.substring(0,n)),e=e.substring(n+1),n=e.indexOf(`
  236. `);return e.length&&t.push(e),t}function fp(e){return e===sr.ArrayLiteral}function cO(e){return $r(e,[sr.Expression,sr.ForInitializer,sr.Conditional])}function WZe(e,t){for(var n=0;n<e.length;n++){var r=e[n].trim();if(r.charAt(0)!==t)return!1}return!0}function YZe(e,t){for(var n=0,r=e.length,o;n<r;n++)if(o=e[n],o&&o.indexOf(t)!==0)return!1;return!0}function so(e,t){t=t||{},this._source_text=e||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new LZe(t)}so.prototype.create_flags=function(e,t){var n=0;e&&(n=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>n&&(n=e.line_indent_level));var r={mode:t,parent:e,last_token:e?e.last_token:new jZe(kt.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:n,alignment:0,line_indent_level:e?e.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0};return r};so.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new DZe(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(sr.BlockStatement);var n=new BZe(e,this._options);return this._tokens=n.tokenize(),e};so.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t=this._reset(this._source_text),n=this._options.eol;this._options.eol==="auto"&&(n=`
  237. `,t&&V2.lineBreak.test(t||"")&&(n=t.match(V2.lineBreak)[0]));for(var r=this._tokens.next();r;)this.handle_token(r),this._last_last_text=this._flags.last_token.text,this._flags.last_token=r,r=this._tokens.next();return e=this._output.get_code(n),e};so.prototype.handle_token=function(e,t){e.type===kt.START_EXPR?this.handle_start_expr(e):e.type===kt.END_EXPR?this.handle_end_expr(e):e.type===kt.START_BLOCK?this.handle_start_block(e):e.type===kt.END_BLOCK?this.handle_end_block(e):e.type===kt.WORD?this.handle_word(e):e.type===kt.RESERVED?this.handle_word(e):e.type===kt.SEMICOLON?this.handle_semicolon(e):e.type===kt.STRING?this.handle_string(e):e.type===kt.EQUALS?this.handle_equals(e):e.type===kt.OPERATOR?this.handle_operator(e):e.type===kt.COMMA?this.handle_comma(e):e.type===kt.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===kt.COMMENT?this.handle_comment(e,t):e.type===kt.DOT?this.handle_dot(e):e.type===kt.EOF?this.handle_eof(e):e.type===kt.UNKNOWN?this.handle_unknown(e,t):this.handle_unknown(e,t)};so.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,r=this._options.keep_array_indentation&&fp(this._flags.mode);if(e.comments_before)for(var o=e.comments_before.next();o;)this.handle_whitespace_and_comments(o,t),this.handle_token(o,t),o=e.comments_before.next();if(r)for(var i=0;i<n;i+=1)this.print_newline(i>0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var a=1;a<n;a+=1)this.print_newline(!0,t)}};var JD=["async","break","continue","return","throw","yield"];so.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=t===void 0?!1:t,!this._output.just_added_newline()){var n=this._options.preserve_newlines&&e.newlines||t,r=$r(this._flags.last_token.text,j_)||$r(e.text,j_);if(r){var o=$r(this._flags.last_token.text,j_)&&$r(this._options.operator_position,AK)||$r(e.text,j_);n=n&&o}if(n)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(Po(this._flags.last_token,JD))return;this._output.set_wrap_point()}}};so.prototype.print_newline=function(e,t){if(!t&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==kt.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var n=this._tokens.peek();this._flags.mode===sr.Statement&&!(this._flags.if_block&&cu(n,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)};so.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&(e.text==="["||fp(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))};so.prototype.print_token=function(e){if(this._output.raw){this._output.add_raw_token(e);return}if(this._options.comma_first&&e.previous&&e.previous.type===kt.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)};so.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};so.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};so.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};so.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===sr.Statement&&MK(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};so.prototype.start_of_object_property=function(){return this._flags.parent.mode===sr.ObjectLiteral&&this._flags.mode===sr.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Po(this._flags.last_token,["get","set"]))};so.prototype.start_of_statement=function(e){var t=!1;return t=t||Po(this._flags.last_token,["var","let","const"])&&e.type===kt.WORD,t=t||cu(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===sr.ObjectLiteral&&this._flags.mode===sr.Statement)&&Po(this._flags.last_token,JD)&&!e.newlines,t=t||cu(this._flags.last_token,"else")&&!(cu(e,"if")&&!e.comments_before),t=t||this._flags.last_token.type===kt.END_EXPR&&(this._previous_flags.mode===sr.ForInitializer||this._previous_flags.mode===sr.Conditional),t=t||this._flags.last_token.type===kt.WORD&&this._flags.mode===sr.BlockStatement&&!this._flags.in_case&&!(e.text==="--"||e.text==="++")&&this._last_last_text!=="function"&&e.type!==kt.WORD&&e.type!==kt.RESERVED,t=t||this._flags.mode===sr.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Po(this._flags.last_token,["get","set"])),t?(this.set_mode(sr.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,Po(e,["do","for","if","while"])),!0):!1};so.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=sr.Expression;if(e.text==="["){if(this._flags.last_token.type===kt.WORD||this._flags.last_token.text===")"){Po(this._flags.last_token,a1)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}t=sr.ArrayLiteral,fp(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),$r(this._flags.last_token.type,[kt.START_EXPR,kt.END_EXPR,kt.WORD,kt.OPERATOR,kt.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===kt.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,t=sr.ForInitializer):$r(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=sr.Conditional):$r(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&e.whitespace_before===""?this._output.space_before_token=!1:($r(this._flags.last_token.text,a1)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===kt.EQUALS||this._flags.last_token.type===kt.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===kt.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var r=this._tokens.peek(-4);Po(n,["async","function"])||n.text==="*"&&Po(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===sr.ObjectLiteral?(n.text==="{"||n.text===","||n.text==="*"&&(r.text==="{"||r.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===kt.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&($r(this._last_last_text,["function","yield"])||this._flags.mode===sr.ObjectLiteral&&$r(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===kt.START_BLOCK?this.print_newline():(this._flags.last_token.type===kt.END_EXPR||this._flags.last_token.type===kt.START_EXPR||this._flags.last_token.type===kt.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===kt.COMMA)&&this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()};so.prototype.handle_end_expr=function(e){for(;this._flags.mode===sr.Statement;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,e.text==="]"&&fp(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===kt.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(e),this.restore_mode(),MK(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===sr.Conditional&&(this._previous_flags.mode=sr.Expression,this._flags.do_block=!1,this._flags.do_while=!1)};so.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===kt.END_EXPR?(this.set_mode(sr.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(sr.BlockStatement):n&&($r(n.text,[":",","])&&$r(t.type,[kt.STRING,kt.WORD,kt.RESERVED])||$r(t.text,["get","set","..."])&&$r(n.type,[kt.WORD,kt.RESERVED]))?$r(this._last_last_text,["class","interface"])&&!$r(n.text,[":",","])?this.set_mode(sr.BlockStatement):this.set_mode(sr.ObjectLiteral):this._flags.last_token.type===kt.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(sr.BlockStatement):$r(this._flags.last_token.type,[kt.EQUALS,kt.START_EXPR,kt.COMMA,kt.OPERATOR])||Po(this._flags.last_token,["return","throw","import","default"])?this.set_mode(sr.ObjectLiteral):this.set_mode(sr.BlockStatement),this._flags.last_token&&Po(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var r=!t.comments_before&&t.text==="}",o=r&&this._flags.last_word==="function"&&this._flags.last_token.type===kt.END_EXPR;if(this._options.brace_preserve_inline){var i=0,a=null;this._flags.inline_frame=!0;do if(i+=1,a=this._tokens.peek(i-1),a.newlines){this._flags.inline_frame=!1;break}while(a.type!==kt.EOF&&!(a.type===kt.END_BLOCK&&a.opened===e))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==kt.OPERATOR&&(o||this._flags.last_token.type===kt.EQUALS||Po(this._flags.last_token,fE)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(fp(this._previous_flags.mode)&&(this._flags.last_token.type===kt.START_EXPR||this._flags.last_token.type===kt.COMMA)&&((this._flags.last_token.type===kt.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===kt.COMMA||this._flags.last_token.type===kt.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==kt.OPERATOR&&this._flags.last_token.type!==kt.START_EXPR&&($r(this._flags.last_token.type,[kt.START_BLOCK,kt.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),!r&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()};so.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===sr.Statement;)this.restore_mode();var t=this._flags.last_token.type===kt.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:this._options.brace_style==="expand"?t||this.print_newline():t||(fp(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)};so.prototype.handle_word=function(e){if(e.type===kt.RESERVED){if($r(e.text,["set","get"])&&this._flags.mode!==sr.ObjectLiteral)e.type=kt.WORD;else if(e.text==="import"&&$r(this._tokens.peek().text,["(","."]))e.type=kt.WORD;else if($r(e.text,["as","from"])&&!this._flags.import_block)e.type=kt.WORD;else if(this._flags.mode===sr.ObjectLiteral){var t=this._tokens.peek();t.text===":"&&(e.type=kt.WORD)}}if(this.start_of_statement(e)?Po(this._flags.last_token,["var","let","const"])&&e.type===kt.WORD&&(this._flags.declaration_statement=!0):e.newlines&&!cO(this._flags.mode)&&(this._flags.last_token.type!==kt.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==kt.EQUALS&&(this._options.preserve_newlines||!Po(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(e),this.print_newline()):this.handle_whitespace_and_comments(e),this._flags.do_block&&!this._flags.do_while)if(cu(e,"while")){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&cu(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===sr.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&Po(e,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(e),this._flags.in_case=!0;return}if((this._flags.last_token.type===kt.COMMA||this._flags.last_token.type===kt.START_EXPR||this._flags.last_token.type===kt.EQUALS||this._flags.last_token.type===kt.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e)),cu(e,"function")){($r(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!($r(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===kt.OPERATOR))&&!this._output.just_added_blankline()&&!e.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===kt.RESERVED||this._flags.last_token.type===kt.WORD?Po(this._flags.last_token,["get","set","new","export"])||Po(this._flags.last_token,JD)?this._output.space_before_token=!0:cu(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===kt.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(cO(this._flags.mode)||fp(this._flags.mode))||this.print_newline(),this.print_token(e),this._flags.last_word=e.text;return}var n="NONE";if(this._flags.last_token.type===kt.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":Po(e,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&e.newlines?n="NEWLINE":(n="SPACE",this._output.space_before_token=!0):n="NEWLINE":this._flags.last_token.type===kt.SEMICOLON&&this._flags.mode===sr.BlockStatement?n="NEWLINE":this._flags.last_token.type===kt.SEMICOLON&&cO(this._flags.mode)?n="SPACE":this._flags.last_token.type===kt.STRING?n="NEWLINE":this._flags.last_token.type===kt.RESERVED||this._flags.last_token.type===kt.WORD||this._flags.last_token.text==="*"&&($r(this._last_last_text,["function","yield"])||this._flags.mode===sr.ObjectLiteral&&$r(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===kt.START_BLOCK?this._flags.inline_frame?n="SPACE":n="NEWLINE":this._flags.last_token.type===kt.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),Po(e,a1)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?n="SPACE":n="NEWLINE"),Po(e,["else","catch","finally"]))if((!(this._flags.last_token.type===kt.END_BLOCK&&this._previous_flags.mode===sr.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&e.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var r=this._output.current_line;r.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else n==="NEWLINE"?Po(this._flags.last_token,fE)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&Po(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==kt.END_EXPR?(this._flags.last_token.type!==kt.START_EXPR||!Po(e,["var","let","const"]))&&this._flags.last_token.text!==":"&&(cu(e,"if")&&cu(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):Po(e,a1)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&fp(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():n==="SPACE"&&(this._output.space_before_token=!0);e.previous&&(e.previous.type===kt.WORD||e.previous.type===kt.RESERVED)&&(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===kt.RESERVED&&(e.text==="do"?this._flags.do_block=!0:e.text==="if"?this._flags.if_block=!0:e.text==="import"?this._flags.import_block=!0:this._flags.import_block&&cu(e,"from")&&(this._flags.import_block=!1))};so.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();this._flags.mode===sr.Statement&&!(this._flags.if_block&&cu(t,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)};so.prototype.handle_string=function(e){e.text.startsWith("`")&&e.newlines===0&&e.whitespace_before===""&&(e.previous.text===")"||this._flags.last_token.type===kt.WORD)||(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===kt.RESERVED||this._flags.last_token.type===kt.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===kt.COMMA||this._flags.last_token.type===kt.START_EXPR||this._flags.last_token.type===kt.EQUALS||this._flags.last_token.type===kt.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):e.text.startsWith("`")&&this._flags.last_token.type===kt.END_EXPR&&(e.previous.text==="]"||e.previous.text===")")&&e.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(e)};so.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0};so.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(cO(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===sr.ObjectLiteral||this._flags.mode===sr.Statement&&this._flags.parent.mode===sr.ObjectLiteral?(this._flags.mode===sr.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)};so.prototype.handle_operator=function(e){var t=e.text==="*"&&(Po(this._flags.last_token,["function","yield"])||$r(this._flags.last_token.type,[kt.START_BLOCK,kt.COMMA,kt.END_BLOCK,kt.SEMICOLON])),n=$r(e.text,["-","+"])&&($r(this._flags.last_token.type,[kt.START_BLOCK,kt.START_EXPR,kt.EQUALS,kt.OPERATOR])||$r(this._flags.last_token.text,a1)||this._flags.last_token.text===",");if(!this.start_of_statement(e)){var r=!t;this.handle_whitespace_and_comments(e,r)}if(e.text==="*"&&this._flags.last_token.type===kt.DOT){this.print_token(e);return}if(e.text==="::"){this.print_token(e);return}if(this._flags.last_token.type===kt.OPERATOR&&$r(this._options.operator_position,AK)&&this.allow_wrap_or_preserved_newline(e),e.text===":"&&this._flags.in_case){this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==kt.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var o=!0,i=!0,a=!1;if(e.text===":"?this._flags.ternary_depth===0?o=!1:(this._flags.ternary_depth-=1,a=!0):e.text==="?"&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&$r(e.text,j_)){var s=e.text===":",l=s&&a,u=s&&!a;switch(this._options.operator_position){case uO.before_newline:this._output.space_before_token=!u,this.print_token(e),(!s||l)&&this.allow_wrap_or_preserved_newline(e),this._output.space_before_token=!0;return;case uO.after_newline:this._output.space_before_token=!0,!s||l?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),this._output.space_before_token=!0;return;case uO.preserve_newline:u||this.allow_wrap_or_preserved_newline(e),o=!(this._output.just_added_newline()||u),this._output.space_before_token=o,this.print_token(e),this._output.space_before_token=!0;return}}if(t){this.allow_wrap_or_preserved_newline(e),o=!1;var d=this._tokens.peek();i=d&&$r(d.type,[kt.WORD,kt.RESERVED])}else if(e.text==="...")this.allow_wrap_or_preserved_newline(e),o=this._flags.last_token.type===kt.START_BLOCK,i=!1;else if($r(e.text,["--","++","!","~"])||n){if((this._flags.last_token.type===kt.COMMA||this._flags.last_token.type===kt.START_EXPR)&&this.allow_wrap_or_preserved_newline(e),o=!1,i=!1,e.newlines&&(e.text==="--"||e.text==="++"||e.text==="~")){var p=Po(this._flags.last_token,fE)&&e.newlines;p&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(p,!0)}this._flags.last_token.text===";"&&cO(this._flags.mode)&&(o=!0),this._flags.last_token.type===kt.RESERVED?o=!0:this._flags.last_token.type===kt.END_EXPR?o=!(this._flags.last_token.text==="]"&&(e.text==="--"||e.text==="++")):this._flags.last_token.type===kt.OPERATOR&&(o=$r(e.text,["--","-","++","+"])&&$r(this._flags.last_token.text,["--","-","++","+"]),$r(e.text,["+","-"])&&$r(this._flags.last_token.text,["--","++"])&&(i=!0)),(this._flags.mode===sr.BlockStatement&&!this._flags.inline_frame||this._flags.mode===sr.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||o,this.print_token(e),this._output.space_before_token=i};so.prototype.handle_block_comment=function(e,t){if(this._output.raw){this._output.add_raw_token(e),e.directives&&e.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(e.directives){this.print_newline(!1,t),this.print_token(e),e.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!V2.newline.test(e.text)&&!e.newlines){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0;return}else this.print_block_commment(e,t)};so.prototype.print_block_commment=function(e,t){var n=QZe(e.text),r,o=!1,i=!1,a=e.whitespace_before,s=a.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(n[0]),this.print_newline(!1,t),n.length>1){for(n=n.slice(1),o=WZe(n,"*"),i=YZe(n,a),o&&(this._flags.alignment=1),r=0;r<n.length;r++)o?(this.print_token_line_indentation(e),this._output.add_token(VZe(n[r]))):i&&n[r]?(this.print_token_line_indentation(e),this._output.add_token(n[r].substring(s))):(this._output.current_line.set_indent(-1),this._output.add_token(n[r])),this.print_newline(!1,t);this._flags.alignment=0}};so.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)};so.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),Po(this._flags.last_token,fE)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(e)};so.prototype.handle_unknown=function(e,t){this.print_token(e),e.text[e.text.length-1]===`
  238. `&&this.print_newline(!1,t)};so.prototype.handle_eof=function(e){for(;this._flags.mode===sr.Statement;)this.restore_mode();this.handle_whitespace_and_comments(e)};bK.Beautifier=so;var ZZe=bK.Beautifier,UZe=GD.Options;function HZe(e,t){var n=new ZZe(e,t);return n.beautify()}UD.exports=HZe;UD.exports.defaultOptions=function(){return new UZe};var e4={exports:{}},RK={},t4={},NK=E0.Options;function IK(e){NK.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)n[r]!=="expand"?this.brace_style="collapse":this.brace_style=n[r]}IK.prototype=new NK;t4.Options=IK;var XZe=t4.Options,GZe=lE.Output,qZe=uE.InputScanner,KZe=cE.Directives,EF=new KZe(/\/\*/,/\*\//),TF=/\r\n|[\r\n]/,JZe=/\r\n|[\r\n]/g,F2=/\s/,eUe=/(?:\s|\n)+/g,tUe=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,nUe=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function $d(e,t){this._source_text=e||"",this._options=new XZe(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}$d.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,this._ch==="\\")t+=this._input.next();else if(e.indexOf(this._ch)!==-1||this._ch===`
  239. `)break;this._ch=this._input.next()}return t};$d.prototype.eatWhitespace=function(e){for(var t=F2.test(this._input.peek()),n=0;F2.test(this._input.peek());)this._ch=this._input.next(),e&&this._ch===`
  240. `&&(n===0||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t};$d.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if(n==="{")return!0;if(n==="(")e+=1;else if(n===")"){if(e===0)return!1;e-=1}else if(n===";"||n==="}")return!1;t++,n=this._input.peek(t)}return!1};$d.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)};$d.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)};$d.prototype.indent=function(){this._indentLevel++};$d.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--};$d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;t==="auto"&&(t=`
  241. `,e&&TF.test(e||"")&&(t=e.match(TF)[0])),e=e.replace(JZe,`
  242. `);var n=e.match(/^[\t ]*/)[0];this._output=new GZe(this._options,n),this._input=new qZe(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var r=0,o=!1,i=!1,a=!1,s=!1,l=!1,u=this._ch,d=!1,p,v,y;p=this._input.read(eUe),v=p!=="",y=u,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),u=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var w=this._input.read(tUe),b=EF.get_directives(w);b&&b.ignore==="start"&&(w+=EF.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(nUe)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(v),this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s$/,""),this.print_string(k),this._output.space_before_token=!0),k=k.replace(/\s$/,""),r===0&&k.indexOf(":")!==-1&&(i=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(v),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s$/,""),this.print_string(C),this._output.space_before_token=!0),C=C.replace(/\s$/,""),r===0&&C.indexOf(":")!==-1?(i=!0,this.indent()):C in this.NESTED_AT_RULE?(this._nestedLevel+=1,C in this.CONDITIONAL_GROUP_RULE&&(a=!0)):r===0&&!i&&(s=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(v),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")i&&(i=!1,this.outdent()),s=!1,a?(a=!1,o=this._indentLevel>=this._nestedLevel):o=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&o&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(y==="("?this._output.space_before_token=!1:y!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),y==="{"&&this._output.trim(!0),i&&(this.outdent(),i=!1),this.print_string(this._ch),o=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var T=0;T<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;T++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[T])){d=!0;break}(o||a)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!s&&r===0?(this.print_string(":"),i||(i=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var $=y==='"'||y==="'";this.preserveSingleSpace($||v),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")d=!1,r===0?(i&&(this.outdent(),i=!1),s=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),r++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),r&&(r--,this.outdent()));else{var P=!1;this._input.lookBack("with")&&(P=!0),this.preserveSingleSpace(v||P),this.print_string(this._ch),i&&y==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),l=!0):(this.eatWhitespace(),r++,this.indent())}else if(this._ch===")")r&&(r--,this.outdent()),l&&this._input.peek()===";"&&this._options.selector_separator_newline&&(l=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!i||l)&&r===0&&!s?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!i&&r===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&F2.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(v),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),F2.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var A=y==='"'||y==="'";this.preserveSingleSpace(A||v),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
  243. `&&d&&this._output.add_new_line()}var R=this._output.get_code(t);return R};RK.Beautifier=$d;var rUe=RK.Beautifier,oUe=t4.Options;function iUe(e,t){var n=new rUe(e,t);return n.beautify()}e4.exports=iUe;e4.exports.defaultOptions=function(){return new oUe};var n4={exports:{}},DK={},r4={},jK=E0.Options;function LK(e){jK.call(this,e,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}LK.prototype=new jK;r4.Options=LK;var dE={},BK=T0.Tokenizer,$A=T0.TOKEN,aUe=cE.Directives,sUe=KD.TemplatablePattern,lUe=Y1.Pattern,Ei={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:$A.START,RAW:$A.RAW,EOF:$A.EOF},PF=new aUe(/<\!--/,/-->/),ls=function(e,t){BK.call(this,e,t),this._current_tag_name="";var n=new sUe(this._input).read_options(this._options),r=new lUe(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(/<!--/).until_after(/-->/),cdata:r.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:r.starting_with(/<!\[/).until_after(/]>/),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(o).until_after(o)}};ls.prototype=new BK;ls.prototype._is_comment=function(e){return!1};ls.prototype._is_opening=function(e){return e.type===Ei.TAG_OPEN};ls.prototype._is_closing=function(e,t){return e.type===Ei.TAG_CLOSE&&t&&((e.text===">"||e.text==="/>")&&t.text[0]==="<"||e.text==="}}"&&t.text[0]==="{"&&t.text[1]==="{")};ls.prototype._reset=function(){this._current_tag_name=""};ls.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return r===null?this._create_token(Ei.EOF,""):(n=n||this._read_open_handlebars(r,t),n=n||this._read_attribute(r,e,t),n=n||this._read_close(r,t),n=n||this._read_raw_content(r,e,t),n=n||this._read_content_word(r),n=n||this._read_comment_or_cdata(r),n=n||this._read_processing(r),n=n||this._read_open(r,t),n=n||this._create_token(Ei.UNKNOWN,this._input.next()),n)};ls.prototype._read_comment_or_cdata=function(e){var t=null,n=null,r=null;if(e==="<"){var o=this._input.peek(1);o==="!"&&(n=this.__patterns.comment.read(),n?(r=PF.get_directives(n),r&&r.ignore==="start"&&(n+=PF.readIgnored(this._input))):n=this.__patterns.cdata.read()),n&&(t=this._create_token(Ei.COMMENT,n),t.directives=r)}return t};ls.prototype._read_processing=function(e){var t=null,n=null,r=null;if(e==="<"){var o=this._input.peek(1);(o==="!"||o==="?")&&(n=this.__patterns.conditional_comment.read(),n=n||this.__patterns.processing.read()),n&&(t=this._create_token(Ei.COMMENT,n),t.directives=r)}return t};ls.prototype._read_open=function(e,t){var n=null,r=null;return t||e==="<"&&(n=this._input.next(),this._input.peek()==="/"&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),r=this._create_token(Ei.TAG_OPEN,n)),r};ls.prototype._read_open_handlebars=function(e,t){var n=null,r=null;return t||this._options.indent_handlebars&&e==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(n=this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars.read(),r=this._create_token(Ei.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),r=this._create_token(Ei.TAG_OPEN,n))),r};ls.prototype._read_close=function(e,t){var n=null,r=null;return t&&(t.text[0]==="<"&&(e===">"||e==="/"&&this._input.peek(1)===">")?(n=this._input.next(),e==="/"&&(n+=this._input.next()),r=this._create_token(Ei.TAG_CLOSE,n)):t.text[0]==="{"&&e==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),r=this._create_token(Ei.TAG_CLOSE,"}}"))),r};ls.prototype._read_attribute=function(e,t,n){var r=null,o="";if(n&&n.text[0]==="<")if(e==="=")r=this._create_token(Ei.EQUALS,this._input.next());else if(e==='"'||e==="'"){var i=this._input.next();e==='"'?i+=this.__patterns.double_quote.read():i+=this.__patterns.single_quote.read(),r=this._create_token(Ei.VALUE,i)}else o=this.__patterns.attribute.read(),o&&(t.type===Ei.EQUALS?r=this._create_token(Ei.VALUE,o):r=this._create_token(Ei.ATTRIBUTE,o));return r};ls.prototype._is_content_unformatted=function(e){return this._options.void_elements.indexOf(e)===-1&&(this._options.content_unformatted.indexOf(e)!==-1||this._options.unformatted.indexOf(e)!==-1)};ls.prototype._read_raw_content=function(e,t,n){var r="";if(n&&n.text[0]==="{")r=this.__patterns.handlebars_raw_close.read();else if(t.type===Ei.TAG_CLOSE&&t.opened.text[0]==="<"&&t.text[0]!=="/"){var o=t.opened.text.substr(1).toLowerCase();if(o==="script"||o==="style"){var i=this._read_comment_or_cdata(e);if(i)return i.type=Ei.TEXT,i;r=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(o)&&(r=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig")))}return r?this._create_token(Ei.TEXT,r):null};ls.prototype._read_content_word=function(e){var t="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(t=this.__patterns.unformatted_content_delimiter.read()),t||(t=this.__patterns.word.read()),t)return this._create_token(Ei.TEXT,t)};dE.Tokenizer=ls;dE.TOKEN=Ei;var uUe=r4.Options,cUe=lE.Output,fUe=dE.Tokenizer,yo=dE.TOKEN,$F=/\r\n|[\r\n]/,dUe=/\r\n|[\r\n]/g,Nu=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new cUe(e,t)};Nu.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)};Nu.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t};Nu.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()};Nu.prototype.add_raw_token=function(e){this._output.add_raw_token(e)};Nu.prototype.print_preserved_newlines=function(e){var t=0;e.type!==yo.TEXT&&e.previous.type!==yo.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return t!==0};Nu.prototype.traverse_whitespace=function(e){return e.whitespace_before||e.newlines?(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0):!1};Nu.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped};Nu.prototype.print_newline=function(e){this._output.add_new_line(e)};Nu.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))};Nu.prototype.indent=function(){this.indent_level++};Nu.prototype.get_full_indent=function(e){return e=this.indent_level+(e||0),e<1?"":this._output.get_indent_string(e)};var hUe=function(e){for(var t=null,n=e.next;n.type!==yo.EOF&&e.closed!==n;){if(n.type===yo.ATTRIBUTE&&n.text==="type"){n.next&&n.next.type===yo.EQUALS&&n.next.next&&n.next.next.type===yo.VALUE&&(t=n.next.next.text);break}n=n.next}return t},pUe=function(e,t){var n=null,r=null;return t.closed?(e==="script"?n="text/javascript":e==="style"&&(n="text/css"),n=hUe(t)||n,n.search("text/css")>-1?r="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?r="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?r="html":n.search(/test\/null/)>-1&&(r="null"),r):null};function L_(e,t){return t.indexOf(e)!==-1}function gUe(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function Cv(e){this._printer=e,this._current_frame=null}Cv.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null};Cv.prototype.record_tag=function(e){var t=new gUe(this._current_frame,e,this._printer.indent_level);this._current_frame=t};Cv.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t};Cv.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&e.indexOf(n.tag)===-1;){if(t&&t.indexOf(n.tag)!==-1){n=null;break}n=n.parent}return n};Cv.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)};Cv.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)};function Au(e,t,n,r){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var o=new uUe(t,"html");this._options=o,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}Au.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;this._options.eol==="auto"&&(t=`
  244. `,e&&$F.test(e)&&(t=e.match($F)[0])),e=e.replace(dUe,`
  245. `);var n=e.match(/^[\t ]*/)[0],r={text:"",type:""},o=new VK,i=new Nu(this._options,n),a=new fUe(e,this._options).tokenize();this._tag_stack=new Cv(i);for(var s=null,l=a.next();l.type!==yo.EOF;)l.type===yo.TAG_OPEN||l.type===yo.COMMENT?(s=this._handle_tag_open(i,l,o,r,a),o=s):l.type===yo.ATTRIBUTE||l.type===yo.EQUALS||l.type===yo.VALUE||l.type===yo.TEXT&&!o.tag_complete?s=this._handle_inside_tag(i,l,o,r):l.type===yo.TAG_CLOSE?s=this._handle_tag_close(i,l,o):l.type===yo.TEXT?s=this._handle_text(i,l,o):i.add_raw_token(l),r=s,l=a.next();var u=i._output.get_code(t);return u};Au.prototype._handle_tag_close=function(e,t,n){var r={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||t.whitespace_before!=="",!0),n.is_unformatted?e.add_raw_token(t):(n.tag_start_char==="<"&&(e.set_space_before_token(t.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),n.indent_content&&!(n.is_unformatted||n.is_content_unformatted)&&(e.indent(),n.indent_content=!1),!n.is_inline_element&&!(n.is_unformatted||n.is_content_unformatted)&&e.set_wrap_point(),r};Au.prototype._handle_inside_tag=function(e,t,n,r){var o=n.has_wrapped_attrs,i={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||t.whitespace_before!=="",!0),n.is_unformatted?e.add_raw_token(t):n.tag_start_char==="{"&&t.type===yo.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===yo.ATTRIBUTE?e.set_space_before_token(!0):(t.type===yo.EQUALS||t.type===yo.VALUE&&t.previous.type===yo.EQUALS)&&e.set_space_before_token(!1),t.type===yo.ATTRIBUTE&&n.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),o=o||t.newlines!==0),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(r.type!==yo.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),o=!0)),e.print_token(t),o=o||e.previous_token_wrapped(),n.has_wrapped_attrs=o),i};Au.prototype._handle_text=function(e,t,n){var r={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),r};Au.prototype._print_custom_beatifier_text=function(e,t,n){var r=this;if(t.text!==""){var o=t.text,i,a=1,s="",l="";n.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?i=this._js_beautify:n.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?i=this._css_beautify:n.custom_beautifier_name==="html"&&(i=function(w,b){var k=new Au(w,b,r._js_beautify,r._css_beautify);return k.beautify()}),this._options.indent_scripts==="keep"?a=0:this._options.indent_scripts==="separate"&&(a=-e.indent_level);var u=e.get_full_indent(a);if(o=o.replace(/\n[ \t]*$/,""),n.custom_beautifier_name!=="html"&&o[0]==="<"&&o.match(/^(<!--|<!\[CDATA\[)/)){var d=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(o);if(!d){e.add_raw_token(t);return}s=u+d[1]+`
  246. `,o=d[4],d[5]&&(l=u+d[5]),o=o.replace(/\n[ \t]*$/,""),(d[2]||d[3].indexOf(`
  247. `)!==-1)&&(d=d[3].match(/[ \t]+$/),d&&(t.whitespace_before=d[0]))}if(o)if(i){var p=function(){this.eol=`
  248. `};p.prototype=this._options.raw_options;var v=new p;o=i(u+o,v)}else{var y=t.whitespace_before;y&&(o=o.replace(new RegExp(`
  249. (`+y+")?","g"),`
  250. `)),o=u+o.replace(/\n/g,`
  251. `+u)}s&&(o?o=s+o+`
  252. `+l:o=s+l),e.print_newline(!1),o&&(t.text=o,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}};Au.prototype._handle_tag_open=function(e,t,n,r,o){var i=this._get_tag_open_token(t);if((n.is_unformatted||n.is_content_unformatted)&&!n.is_empty_element&&t.type===yo.TAG_OPEN&&!i.is_start_tag?(e.add_raw_token(t),i.start_tag_token=this._tag_stack.try_pop(i.tag_name)):(e.traverse_whitespace(t),this._set_tag_position(e,t,i,n,r),i.is_inline_element||e.set_wrap_point(),e.print_token(t)),i.is_start_tag&&this._is_wrap_attributes_force){var a=0,s;do s=o.peek(a),s.type===yo.ATTRIBUTE&&(i.attr_count+=1),a+=1;while(s.type!==yo.EOF&&s.type!==yo.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(i.alignment_size=t.text.length+1),!i.tag_complete&&!i.is_unformatted&&(e.alignment_size=i.alignment_size),i};var VK=function(e,t){if(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!t)this.tag_complete=!0;else{var n;this.tag_start_char=t.text[0],this.text=t.text,this.tag_start_char==="<"?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&t.next!==null?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===yo.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&t.closed.text==="/>";var r=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(r=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(r)))}};Au.prototype._get_tag_open_token=function(e){var t=new VK(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||L_(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&L_(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&L_(t.tag_check,this._options.content_unformatted),t.is_inline_element=L_(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||t.tag_start_char==="{",t};Au.prototype._set_tag_position=function(e,t,n,r,o){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),(n.tag_name==="script"||n.tag_name==="style")&&!(n.is_unformatted||n.is_content_unformatted)&&(n.custom_beautifier_name=pUe(n.tag_check,t)))),L_(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if(n.tag_start_char==="{"&&n.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0;var i=e.current_line_has_match(/{{#if/);i||e.print_newline(!1)}n.tag_name==="!--"&&o.type===yo.TAG_CLOSE&&r.is_end_tag&&n.text.indexOf(`
  253. `)===-1||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var a=!1;a=n.start_tag_token&&n.start_tag_token.multiline_content,a=a||!n.is_inline_element&&!(r.is_inline_element||r.is_unformatted)&&!(o.type===yo.TAG_CLOSE&&n.start_tag_token===r)&&o.type!=="TK_CONTENT",(n.is_content_unformatted||n.is_unformatted)&&(a=!1),a&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,n.tag_start_char==="<"&&(n.tag_name==="html"?n.indent_content=this._options.indent_inner_html:n.tag_name==="head"?n.indent_content=this._options.indent_head_inner_html:n.tag_name==="body"&&(n.indent_content=this._options.indent_body_inner_html)),!(n.is_inline_element||n.is_unformatted)&&(o.type!=="TK_CONTENT"||n.is_content_unformatted)&&e.print_newline(!1),this._calcluate_parent_multiline(e,n)};Au.prototype._calcluate_parent_multiline=function(e,t){t.parent&&e._output.just_added_newline()&&!((t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element)&&(t.parent.multiline_content=!0)};var vUe=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],mUe=["a","audio","del","ins","map","noscript","video"];Au.prototype._do_optional_end_element=function(e){var t=null;if(!(e.is_empty_element||!e.is_start_tag||!e.parent)){if(e.tag_name==="body")t=t||this._tag_stack.try_pop("head");else if(e.tag_name==="li")t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(e.tag_name==="dd"||e.tag_name==="dt")t=t||this._tag_stack.try_pop("dt",["dl"]),t=t||this._tag_stack.try_pop("dd",["dl"]);else if(e.parent.tag_name==="p"&&vUe.indexOf(e.tag_name)!==-1){var n=e.parent.parent;(!n||mUe.indexOf(n.tag_name)===-1)&&(t=t||this._tag_stack.try_pop("p"))}else e.tag_name==="rp"||e.tag_name==="rt"?(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]),t=t||this._tag_stack.try_pop("rp",["ruby","rtc"])):e.tag_name==="optgroup"?t=t||this._tag_stack.try_pop("optgroup",["select"]):e.tag_name==="option"?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):e.tag_name==="colgroup"?t=t||this._tag_stack.try_pop("caption",["table"]):e.tag_name==="thead"?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"])):e.tag_name==="tbody"||e.tag_name==="tfoot"?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("thead",["table"]),t=t||this._tag_stack.try_pop("tbody",["table"])):e.tag_name==="tr"?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(e.tag_name==="th"||e.tag_name==="td")&&(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),t=t||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}};DK.Beautifier=Au;var yUe=DK.Beautifier,bUe=r4.Options;function _Ue(e,t,n,r){var o=new yUe(e,t,n,r);return o.beautify()}n4.exports=_Ue;n4.exports.defaultOptions=function(){return new bUe};var FK=UD.exports,zK=e4.exports,QK=n4.exports;function WK(e,t,n,r){return n=n||FK,r=r||zK,QK(e,t,n,r)}WK.defaultOptions=QK.defaultOptions;sE.js=FK;sE.css=zK;sE.html=WK;(function(e){function t(n,r,o){var i=function(a,s){return n.js_beautify(a,s)};return i.js=n.js_beautify,i.css=r.css_beautify,i.html=o.html_beautify,i.js_beautify=n.js_beautify,i.css_beautify=r.css_beautify,i.html_beautify=o.html_beautify,i}(function(n){var r=sE;r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,n.exports=t(r,r,r)})(e)})(yK);var iN=yK.exports;const OUe={class:"node-property-item"},wUe={key:0},SUe={key:1},xUe={key:2},kUe={class:"pair-content"},CUe={key:3},EUe={class:"pair-content"},TUe={key:4},PUe={class:"node-property-sub-item"},$Ue={key:5},AUe={class:"el-form-item__label"},MUe={key:6},RUe={key:7},NUe={key:8},IUe={__name:"NodePropertyItem",props:["nodePropertyForm","configuration","fields","parentField","currentNodeModel"],setup(e,{expose:t}){const{nodePropertyForm:n,configuration:r,fields:o,parentField:i,currentNodeModel:a}=e;ee("");const s=[mK()],l=ee(),u=ee(),d=ee([]);ee({}),ee({});const p=function(A){r[A]=iN.js(r[A],{indent_size:2})},v=()=>{Ki.error("\u529F\u80FD\u6682\u672A\u5B9E\u73B0")};(function(){let A={};if(o&&o.forEach(R=>{A[R.name]=R}),r){let R={},B={};for(let N in r){let I=cr(r[N]),D=A[N];if(!(!D||D.component)){if(I&&I instanceof Array)R[N]=[],I.forEach(L=>{R[N].push({key:L})});else if(I&&typeof I=="object"&&D.type!=="struct"){B[N]=[];for(let L in I)B[N].push({key:L,value:I[L]})}}}r.arrayItemValues=R,r.mapItemValues=B}})();const w=A=>{r.mapItemValues[A]?r.mapItemValues[A].push({key:"",value:""}):r.mapItemValues[A]=[{key:"",value:""}]},b=(A,R)=>{r.mapItemValues[A]&&r.mapItemValues[A].splice(R,1)},k=A=>{r.arrayItemValues[A]?r.arrayItemValues[A].push({key:"",value:""}):r.arrayItemValues[A]=[{key:"",value:""}]},C=(A,R)=>{r.arrayItemValues[A]&&r.arrayItemValues[A].splice(R,1)},T=A=>A.indexOf("int")>-1,$=A=>A.indexOf("float")>-1;return t({submit:A=>{if(!l.value){A&&A(!1);return}return l.value.validate(R=>(A&&A(R),R))}}),(A,R)=>{const B=P1,N=A1,I=xf,D=op,L=dc,z=il,q=ol,ae=ei,K=no,H=O3,ne=_3,X=Sf;return Z(),Fe(X,{model:e.configuration,ref_key:"propertyItemFormRef",ref:l,"label-position":"top","label-width":"auto"},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(e.fields,(V,G)=>(Z(),ce("div",OUe,[V.type==="Boolean"||V.type==="bool"?(Z(),ce("div",wUe,[re(I,{label:V.label||V.name,prop:V.name},{default:ue(()=>[re(B,{modelValue:e.configuration[V.name],"onUpdate:modelValue":se=>e.configuration[V.name]=se,class:"ml-2",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"}},null,8,["modelValue","onUpdate:modelValue"]),re(N,{size:"small",type:"info"},{default:ue(()=>[St(ut(V.desc),1)]),_:2},1024)]),_:2},1032,["label","prop"])])):V.component&&V.component.type==="select"?(Z(),ce("div",SUe,[re(I,{label:V.label||V.name,rules:V.rules,prop:V.name},{default:ue(()=>[re(L,{modelValue:e.configuration[V.name],"onUpdate:modelValue":se=>e.configuration[V.name]=se,multiple:V.component&&V.component.multiple,filterable:V.component&&V.component.filterable,"allow-create":V.component&&V.component.allowCreate,placeholder:V.component&&V.component.placeholder},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(V.component.options,se=>(Z(),Fe(D,{key:se.value!==void 0&&se.value!==null?se.value:se,label:se.label||se,value:se.value!==void 0&&se.value!==null?se.value:se},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","multiple","filterable","allow-create","placeholder"]),re(N,{size:"small",type:"info"},{default:ue(()=>[St(ut(V.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):V.type==="map"?(Z(),ce("div",xUe,[re(I,{label:V.label||V.name,rules:V.rules,prop:"mapItemValues["+V.name+"]"},{default:ue(()=>[ve("div",kUe,[re(q,{class:"pair-item-header"},{default:ue(()=>[re(z,{span:8},{default:ue(()=>[St(" Key ")]),_:1}),re(z,{span:8,offset:2},{default:ue(()=>[St(" Value ")]),_:1})]),_:1}),(Z(!0),ce(Pt,null,_n(e.configuration.mapItemValues[V.name],(se,he)=>(Z(),Fe(q,{key:he,class:"pair-item"},{default:ue(()=>[re(z,{span:8},{default:ue(()=>[re(ae,{modelValue:se.key,"onUpdate:modelValue":pe=>se.key=pe,rules:[{required:!0,message:"key\u662F\u5FC5\u987B\u7684"}],prop:"mapItemValues["+V.name+"]["+se.key+"]",placeholder:"\u8BF7\u8F93\u5165\u952E"},null,8,["modelValue","onUpdate:modelValue","prop"])]),_:2},1024),re(z,{span:8,offset:2},{default:ue(()=>[re(ae,{modelValue:se.value,"onUpdate:modelValue":pe=>se.value=pe,rules:[{required:!0,message:"value\u662F\u5FC5\u987B\u7684"}],prop:"configuration[item.name][pair.key]",placeholder:"\u8BF7\u8F93\u5165\u503C"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),re(z,{span:4,offset:2},{default:ue(()=>[re(K,{icon:m(el),onClick:pe=>b(V.name,he),circle:""},null,8,["icon","onClick"])]),_:2},1024)]),_:2},1024))),128)),re(q,null,{default:ue(()=>[re(K,{type:"primary",icon:m(Bk),onClick:se=>w(V.name)},{default:ue(()=>[St("\u6DFB\u52A0")]),_:2},1032,["icon","onClick"])]),_:2},1024),re(N,{size:"small",type:"info"},{default:ue(()=>[St(ut(V.desc),1)]),_:2},1024)])]),_:2},1032,["label","rules","prop"])])):V.type==="array"?(Z(),ce("div",CUe,[re(I,{label:V.label||V.name,rules:V.rules,prop:"arrayItemValues["+V.name+"].0.key"},{default:ue(()=>[ve("div",EUe,[(Z(!0),ce(Pt,null,_n(e.configuration.arrayItemValues[V.name],(se,he)=>(Z(),Fe(q,{key:he,class:"pair-item"},{default:ue(()=>[re(z,{span:12},{default:ue(()=>[re(ae,{modelValue:se.key,"onUpdate:modelValue":pe=>se.key=pe,placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),re(z,{span:4,offset:2},{default:ue(()=>[re(K,{icon:m(el),onClick:pe=>C(V.name,he),circle:""},null,8,["icon","onClick"])]),_:2},1024)]),_:2},1024))),128)),re(q,null,{default:ue(()=>[re(K,{type:"primary",icon:m(Bk),onClick:se=>k(V.name)},{default:ue(()=>[St("\u6DFB\u52A0")]),_:2},1032,["icon","onClick"])]),_:2},1024)]),re(N,{size:"small",type:"info"},{default:ue(()=>[St(ut(V.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):V.type==="struct"?(Z(),ce("div",TUe,[re(ne,{modelValue:d.value,"onUpdate:modelValue":R[0]||(R[0]=se=>d.value=se)},{default:ue(()=>[re(H,{name:V.name},{title:ue(()=>[St(ut(V.label||V.name),1)]),default:ue(()=>[ve("div",PUe,[re(YK,{ref_for:!0,ref_key:"subPropertyItemFormRef",ref:u,configuration:e.configuration[V.name],fields:V.fields},null,8,["configuration","fields"])])]),_:2},1032,["name"])]),_:2},1032,["modelValue"])])):V.name==="jsScript"||V.name==="JsScript"||V.name==="script"||V.name==="template"?(Z(),ce("div",$Ue,[re(I,{rules:V.rules,prop:"item.name"},{label:ue(()=>[re(q,null,{default:ue(()=>[re(z,{span:12},{default:ue(()=>[ve("label",AUe,ut(V.label||V.name),1)]),_:2},1024),re(z,{span:6,offset:6,class:"el-form-item__label"},{default:ue(()=>[re(K,{type:"info",size:"small",round:"",onClick:se=>p(V.name)},{default:ue(()=>[St("\u6574\u7406")]),_:2},1032,["onClick"]),re(K,{icon:m(OW),onClick:v,circle:""},null,8,["icon"])]),_:2},1024)]),_:2},1024)]),default:ue(()=>[re(q,{style:{width:"100%"}},{default:ue(()=>[re(z,{span:24},{default:ue(()=>[re(m(e0),{modelValue:e.configuration[V.name],"onUpdate:modelValue":se=>e.configuration[V.name]=se,placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9...",style:{height:"300px",width:"100%"},autofocus:!0,tabSize:2,extensions:s},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),re(N,{size:"small",type:"info"},{default:ue(()=>[St(ut(V.desc),1)]),_:2},1024)]),_:2},1032,["rules"])])):T(V.type)?(Z(),ce("div",MUe,[re(I,{label:V.label||V.name,rules:V.rules,prop:V.name},{default:ue(()=>[re(ae,{modelValue:e.configuration[V.name],"onUpdate:modelValue":se=>e.configuration[V.name]=se,modelModifiers:{number:!0}},null,8,["modelValue","onUpdate:modelValue"]),re(N,{size:"small",type:"info"},{default:ue(()=>[St(ut(V.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):$(V.type)?(Z(),ce("div",RUe,[re(I,{label:V.label||V.name,rules:V.rules,prop:V.name},{default:ue(()=>[re(ae,{modelValue:e.configuration[V.name],"onUpdate:modelValue":se=>e.configuration[V.name]=se},null,8,["modelValue","onUpdate:modelValue"]),re(N,{size:"small",type:"info"},{default:ue(()=>[St(ut(V.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):(Z(),ce("div",NUe,[re(I,{label:V.label||V.name,rules:V.rules,prop:V.name},{default:ue(()=>[V.component&&V.component.type==="select"?(Z(),Fe(L,{key:0,modelValue:e.configuration[V.name],"onUpdate:modelValue":se=>e.configuration[V.name]=se,multiple:V.component&&V.component.multiple,filterable:V.component&&V.component.filterable,"allow-create":V.component&&V.component.allowCreate,placeholder:V.component&&V.component.placeholder},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(V.component.options,se=>(Z(),Fe(D,{key:se.value!==void 0&&se.value!==null?se.value:se,label:se.label||se,value:se.value!==void 0&&se.value!==null?se.value:se},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","multiple","filterable","allow-create","placeholder"])):(Z(),Fe(ae,{key:1,modelValue:e.configuration[V.name],"onUpdate:modelValue":se=>e.configuration[V.name]=se},null,8,["modelValue","onUpdate:modelValue"])),re(N,{size:"small",type:"info"},{default:ue(()=>[St(ut(V.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])]))]))),256))]),_:1},8,["model"])}}};var YK=w0(IUe,[["__scopeId","data-v-51a39116"]]);const DUe={class:""},jUe={__name:"NodePropertyForm",props:["showDrawer","currentNodeModel","currentNodeView"],setup(e,{expose:t}){const{showDrawer:n,currentNodeModel:r,currentNodeView:o}=e;ee(""),mK();const i=ee(),a=ee();ee({}),ee({});const s=nr({nodeId:r.nodeId,id:r.id,type:r.type,name:r.name,configuration:r.configuration||{},debugMode:r.debugMode,additionalInfo:r.additionalInfo||{}});(function(){r.configuration||(r.configuration={}),o.fields&&(o.fields.forEach(v=>{!r.configuration.hasOwnProperty(v.name)&&(v.defaultValue||v.defaultValue===0)&&(r.configuration[v.name]=v.defaultValue)}),s.configuration=r.configuration)})();const u=()=>(d(s.configuration),s),d=v=>{for(let y in v.mapItemValues){let w=v.mapItemValues[y];w&&(v[y]={},w.forEach(b=>{b.key!==""&&(v[y][b.key]=b.value)}))}for(let y in v.arrayItemValues){let w=v.arrayItemValues[y];w&&(v[y]=[],w.forEach(b=>{b.key!==""&&v[y].push(b.key)}))}delete v.mapItemValues,delete v.arrayItemValues;for(let y in v)typeof v[y]=="object"&&d(v[y]);return v};return t({getFormModel:u,submit:v=>(i.value||v&&v(!1),i.value.validate(y=>y?a.value.submit(v):(v&&v(y),y)))}),(v,y)=>{const w=ei,b=il,k=P1,C=A1,T=ol,$=xf,P=Sf;return Z(),ce("div",DUe,[re(P,{model:s,ref_key:"nodePropertyFormRef",ref:i,"label-position":"top","label-width":"auto"},{default:ue(()=>[re($,{label:"\u8282\u70B9ID",rules:[{required:!0,message:"ID\u662F\u5FC5\u987B\u7684"}],prop:"id"},{default:ue(()=>[re(T,{style:{width:"100%"}},{default:ue(()=>[re(b,{span:16},{default:ue(()=>[re(w,{modelValue:s.id,"onUpdate:modelValue":y[0]||(y[0]=A=>s.id=A),placeholder:"\u8BF7\u8F93\u5165\u8282\u70B9ID"},null,8,["modelValue"])]),_:1}),re(b,{span:7,offset:1},{default:ue(()=>[re(k,{class:"ml-2",modelValue:s.debugMode,"onUpdate:modelValue":y[1]||(y[1]=A=>s.debugMode=A),style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"}},null,8,["modelValue"]),re(C,{class:"mx-1",prop:"debugMode",onClick:y[2]||(y[2]=A=>s.debugMode=!s.debugMode)},{default:ue(()=>[St(" \u8C03\u8BD5\u6A21\u5F0F ")]),_:1})]),_:1})]),_:1})]),_:1}),re($,{label:"\u540D\u79F0",rules:[{required:!0,message:"\u540D\u79F0\u662F\u5FC5\u987B\u7684"}],prop:"name"},{default:ue(()=>[re(T,{style:{width:"100%"}},{default:ue(()=>[re(b,{span:24},{default:ue(()=>[re(w,{modelValue:s.name,"onUpdate:modelValue":y[3]||(y[3]=A=>s.name=A),placeholder:"\u8BF7\u8F93\u5165\u8282\u70B9\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),re(YK,{ref_key:"nodePropertyItemFormRef",ref:a,configuration:nr(s.configuration),fields:e.currentNodeView.fields},null,8,["configuration","fields"]),re($,{label:"\u63CF\u8FF0",prop:"desc"},{default:ue(()=>[re(w,{modelValue:s.additionalInfo.description,"onUpdate:modelValue":y[4]||(y[4]=A=>s.additionalInfo.description=A),type:"textarea",rows:"2",placeholder:"\u8BF7\u8F93\u5165\u8282\u70B9\u63CF\u8FF0"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}};var aN=w0(jUe,[["__scopeId","data-v-991ff8fc"]]);const LUe={style:{flex:"auto"}},BUe={__name:"DebugDataPanel",props:["url","chainId","nodeId"],setup(e){const{url:t,chainId:n,nodeId:r}=e,o=[aE(),Lr.readOnly.of(!0)],i=ee([]),a=ee(!1),s=ee(""),l=ee(""),u=ee({current:1,pageSize:12,total:0}),d=T=>{u.value.pageSize=T,u.value.current=1,v()},p=T=>{u.value.current=T,v()},v=()=>{fetch(t+"?chainId="+n+"&nodeId="+r+"&pageSize="+u.value.pageSize+"&current="+u.value.current).then(T=>T.json()).then(T=>{i.value=T.items||[],u.value={pageSize:T.pageSize||12,current:T.current,total:T.total}}).catch(T=>{Ki.error(T.message)})};vn(()=>{v()});const y=(T,$)=>un(T.ts).format("YYYY-MM-DD HH:mm:ss"),w=T=>{s.value="\u6570\u636E",l.value=iN.js(T.data,{indent_size:2}),a.value=!0},b=T=>{s.value="\u5143\u6570\u636E",l.value=iN.js(JSON.stringify(T.metadata),{indent_size:2}),a.value=!0},k=T=>{s.value="\u9519\u8BEF",l.value=T||"",a.value=!0},C=()=>{a.value=!1};return(T,$)=>{const P=no,A=Fi,R=il,B=ol,N=Y3,I=W3,D=D3,L=Td;return Z(),ce(Pt,null,[re(B,null,{default:ue(()=>[re(R,{span:4,offset:20},{default:ue(()=>[re(A,{class:"box-item",effect:"dark",content:"\u5237\u65B0",placement:"top-start"},{default:ue(()=>[re(P,{icon:m(wW),onClick:v,circle:""},null,8,["icon"])]),_:1})]),_:1})]),_:1}),re(I,{data:i.value,stripe:"","empty-text":"\u6CA1\u6570\u636E",style:{width:"100%","min-height":"20px"}},{default:ue(()=>[re(N,{prop:"ts",label:"\u4E8B\u4EF6\u65F6\u95F4",width:"90",formatter:y}),re(N,{prop:"flowType",label:"\u7C7B\u578B",width:"60"}),re(N,{prop:"msg.id",label:"\u6D88\u606FID",width:"130"},{default:ue(z=>[re(A,{class:"box-item",effect:"dark",content:z.row.msg.id,placement:"top-start"},{default:ue(()=>[St(ut(z.row.msg.id.length>14?z.row.msg.id.substring(0,14)+"...":z.row.msg.id),1)]),_:2},1032,["content"])]),_:1}),re(N,{prop:"msg.type",label:"\u6D88\u606F\u7C7B\u578B",width:"130"},{default:ue(z=>[re(A,{class:"box-item",effect:"dark",content:z.row.msg.type,placement:"top-start"},{default:ue(()=>[St(ut(z.row.msg.type.length>10?z.row.msg.type.substring(0,10)+"...":z.row.msg.type),1)]),_:2},1032,["content"])]),_:1}),re(N,{prop:"relationType",label:"\u5173\u7CFB\u7C7B\u578B",width:"90"}),re(N,{prop:"msg.data",label:"\u6570\u636E",width:"60"},{default:ue(z=>[re(A,{class:"box-item",effect:"dark",content:"\u67E5\u770B",placement:"top-start"},{default:ue(()=>[re(P,{icon:m(Y_),onClick:q=>w(z.row.msg),link:""},null,8,["icon","onClick"])]),_:2},1024)]),_:1}),re(N,{prop:"msg.metadata",label:"\u5143\u6570\u636E",width:"80"},{default:ue(z=>[re(A,{class:"box-item",effect:"dark",content:"\u67E5\u770B",placement:"top-start"},{default:ue(()=>[re(P,{icon:m(Y_),onClick:q=>b(z.row.msg),link:""},null,8,["icon","onClick"])]),_:2},1024)]),_:1}),re(N,{prop:"err",label:"\u9519\u8BEF",width:"80"},{default:ue(z=>[z.row.err?(Z(),Fe(A,{key:0,class:"box-item",effect:"dark",content:"\u67E5\u770B",placement:"top-start"},{default:ue(()=>[z.row.err?(Z(),Fe(P,{key:0,icon:m(Y_),onClick:q=>k(z.row.err),link:""},null,8,["icon","onClick"])):je("",!0)]),_:2},1024)):je("",!0)]),_:1})]),_:1},8,["data"]),re(D,{currentPage:u.value.current,"onUpdate:currentPage":$[0]||($[0]=z=>u.value.current=z),style:{"margin-top":"10px"},class:"float-right","page-size":u.value.pageSize,total:u.value.total,"page-sizes":[12,24,36],background:!0,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:d,onCurrentChange:p},null,8,["currentPage","page-size","total"]),re(L,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,draggable:"",top:"10px","before-close":C,modelValue:a.value},{header:ue(()=>[re(B,null,{default:ue(()=>[re(R,{span:12},{default:ue(()=>[St(ut(s.value),1)]),_:1})]),_:1})]),footer:ue(()=>[ve("div",LUe,[re(P,{onClick:C},{default:ue(()=>[St("\u5173\u95ED")]),_:1})])]),default:ue(()=>[re(m(e0),{modelValue:l.value,"onUpdate:modelValue":$[1]||($[1]=z=>l.value=z),placeholder:"\u65E0\u6570\u636E",style:{height:"400px",width:"100%"},autofocus:!0,tabSize:2,extensions:o},null,8,["modelValue"])]),_:1},8,["modelValue"])],64)}}},VUe={class:""},FUe={__name:"RouterItemForm",props:["showDrawer","currentRouter","currentNodeView","currentNodeModel"],emits:["submit","cancel"],setup(e,{expose:t,emit:n}){const{showDrawer:r,currentRouter:o,currentNodeView:i,currentNodeModel:a}=e;ee(["headersToMetadata"]),ee(["responseToBody"]);const s=ee(["POST","GET","DELETE","PUT","PATCH"]),l={from:{path:{label:"Path",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u8DEF\u7531Path\uFF1A\u5982:/api/ms/ws "},processors:{label:"\u524D\u7F6E\u6570\u636E\u5904\u7406\u5668",desc:"\u9009\u62E9\u5185\u7F6E\u7684\u524D\u7F6E\u6570\u636E\u8F6C\u6362\u5668\u6216\u8005\u5904\u7406\u5668"}},to:{processors:{label:"\u540E\u7F6E\u6570\u636E\u5904\u7406\u5668",desc:"\u9009\u62E9\u5185\u7F6E\u7684\u540E\u7F6E\u6570\u636E\u8F6C\u6362\u5668\u6216\u8005\u5904\u7406\u5668"}}},u=nr(o),d=ee(l);if(i.router){let w={...l};w=Object.assign(w,i.router),w.from.processors||(w.from.processors=l.from.processors),w.to.processors||(w.to.processors=l.to.processors),d.value=w,i.type==="endpoint/http"&&(!u.params||u.params.length===0)&&(u.params=["POST"])}const p=ee();return nr({showPopover:!1,cronValue:""}),t({submit:()=>p.value.validate(w=>(w&&a.routers&&a.routers.forEach(b=>{if(Pr.toFromPath(b)===Pr.toFromPath(u)&&b.id!==u.id)return Ki.error(Pr.toFromPath(u)+" \u5DF2\u7ECF\u5B58\u5728"),w=!1,!1}),w&&n("submit",cr(u)),w)),getRouterView:()=>d}),(w,b)=>{const k=op,C=dc,T=ei,$=A1,P=il,A=ol,R=xf,B=P1,N=Sf;return Z(),ce("div",VUe,[re(N,{model:u,ref_key:"formRef",ref:p,"label-position":"top","label-width":"auto"},{default:ue(()=>[re(R,{label:d.value.from.path.label,rules:d.value.from.path.rules,prop:"from.path"},{default:ue(()=>[re(A,{style:{width:"100%"}},{default:ue(()=>[re(P,{span:24},{default:ue(()=>[re(T,{modelValue:u.from.path,"onUpdate:modelValue":b[1]||(b[1]=I=>u.from.path=I),placeholder:"\u8BF7\u8F93\u5165"+d.value.from.path.label},Il({_:2},[e.currentNodeView.type==="endpoint/http"?{name:"prepend",fn:ue(()=>[re(C,{modelValue:u.params[0],"onUpdate:modelValue":b[0]||(b[0]=I=>u.params[0]=I),filterable:"",style:{width:"150px"}},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(s.value,I=>(Z(),Fe(k,{key:I,label:I,value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),key:"0"}:void 0]),1032,["modelValue","placeholder"]),re($,{size:"small",type:"info"},{default:ue(()=>[St(ut(d.value.from.path.desc),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["label","rules"]),re(R,{label:d.value.from.processors.label,prop:"from.processors"},{default:ue(()=>[re(C,{modelValue:u.from.processors,"onUpdate:modelValue":b[2]||(b[2]=I=>u.from.processors=I),multiple:"",filterable:"","allow-create":!0,placeholder:"\u8BF7\u8F93\u5165"+d.value.from.processors.label},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(d.value.options.inProcessors,I=>(Z(),Fe(k,{key:I,label:I,value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),re($,{size:"small",type:"info"},{default:ue(()=>[St(ut(d.value.from.processors.desc),1)]),_:1})]),_:1},8,["label"]),re(R,{label:d.value.to.processors.label,prop:"to.processors"},{default:ue(()=>[re(C,{modelValue:u.to.processors,"onUpdate:modelValue":b[3]||(b[3]=I=>u.to.processors=I),multiple:"",filterable:"","allow-create":!0,placeholder:"\u8BF7\u8F93\u5165"+d.value.to.processors.label},{default:ue(()=>[(Z(!0),ce(Pt,null,_n(d.value.options.outProcessors,I=>(Z(),Fe(k,{key:I,label:I,value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),re($,{size:"small",type:"info"},{default:ue(()=>[St(ut(d.value.to.processors.desc),1)]),_:1})]),_:1},8,["label"]),e.currentNodeView.type==="endpoint/http"?(Z(),Fe(R,{key:0,label:"\u7B49\u5F85\u6267\u884C\u7ED3\u679C",prop:"to.wait"},{default:ue(()=>[re(B,{modelValue:u.to.wait,"onUpdate:modelValue":b[4]||(b[4]=I=>u.to.wait=I),style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"}},null,8,["modelValue"]),re($,{size:"small",type:"info"},{default:ue(()=>[St("\u5982\u679C\u5F00\u542F\u5219\u4F1A\u628A\u89C4\u5219\u94FE\u6267\u884C\u7ED3\u679C\u54CD\u5E94\u5230\u5BA2\u6237\u7AEF")]),_:1})]),_:1})):je("",!0)]),_:1},8,["model"])])}}},ZK={__name:"RouterPropertyTable",props:["showDrawer","currentNodeModel","currentNodeView"],emits:["submit","cancel"],setup(e,{expose:t,emit:n}){const{showDrawer:r,currentNodeModel:o,currentNodeView:i}=e,a=ee({}),s=ee(!1),l=ee(!1),u=ee(),d={from:{path:{label:"Path",rules:[{required:!0,message:"\u8BE5\u9879\u662F\u5FC5\u987B\u7684"}],desc:"\u8DEF\u7531Path\uFF1A\u5982:/api/ms/ws "},processors:{label:"\u524D\u7F6E\u6570\u636E\u5904\u7406\u5668",desc:"\u9009\u62E9\u5185\u7F6E\u7684\u524D\u7F6E\u6570\u636E\u8F6C\u6362\u5668\u6216\u8005\u5904\u7406\u5668"}},to:{processors:{label:"\u540E\u7F6E\u6570\u636E\u5904\u7406\u5668",desc:"\u9009\u62E9\u5185\u7F6E\u7684\u540E\u7F6E\u6570\u636E\u8F6C\u6362\u5668\u6216\u8005\u5904\u7406\u5668"}}},p=ee(d);if(i.router){let N={...d};N=Object.assign(N,i.router),p.value=N}const v=ee({current:1,pageSize:12,total:o.routers&&o.routers.length}),y=N=>{v.value.pageSize=N,v.value.current=1},w=N=>{v.value.current=N},b=N=>{if(l.value){const I=o.routers.findIndex(D=>D.id===N.id||Pr.toFromPath(D)===Pr.toFromPath(N));I!==-1&&o.routers.splice(I,1,N)}else o.routers||(o.routers=[]),o.routers.push(N);s.value=!1},k=()=>o,C=()=>{n("cancel")},T=(N,I)=>Pr.toFromPath(N),$=(N,I)=>N.to&&N.to.wait?"\u662F":"\u5426",P=()=>{a.value={id:Pr.genId(),params:[],from:{path:"",processors:[]},to:{path:"",processors:[],wait:!1}},l.value=!1,s.value=!0},A=N=>{a.value={...N},l.value=!0,s.value=!0},R=N=>{o.routers&&(o.routers=o.routers.filter(I=>I.id!==N.id&&Pr.toFromPath(I)!==Pr.toFromPath(N)))},B=()=>{u.value.submit()};return t({getFormModel:k}),(N,I)=>{const D=no,L=Y3,z=rp,q=W3,ae=D3,K=Td;return Z(),ce(Pt,null,[re(D,{type:"primary",onClick:P},{default:ue(()=>[St("\u65B0\u589E")]),_:1}),re(q,{data:e.currentNodeModel.routers,stripe:"","empty-text":"\u6CA1\u6570\u636E",style:{width:"100%","min-height":"50px"}},{default:ue(()=>[re(L,{prop:"from.path",label:p.value.from.path.label,formatter:T},null,8,["label"]),re(L,{prop:"from.processors",label:"\u524D\u7F6E\u6570\u636E\u5904\u7406\u5668"},{default:ue(H=>[(Z(!0),ce(Pt,null,_n(H.row.from.processors,ne=>(Z(),Fe(z,{key:ne,style:{"margin-right":"5px"}},{default:ue(()=>[St(ut(ne),1)]),_:2},1024))),128))]),_:1}),re(L,{prop:"to.processors",label:"\u540E\u7F6E\u6570\u636E\u5904\u7406\u5668"},{default:ue(H=>[(Z(!0),ce(Pt,null,_n(H.row.to.processors,ne=>(Z(),Fe(z,{key:ne,style:{"margin-right":"5px"}},{default:ue(()=>[St(ut(ne),1)]),_:2},1024))),128))]),_:1}),e.currentNodeView.type==="endpoint/http"?(Z(),Fe(L,{key:0,prop:"to.wait",label:"\u7B49\u5F85\u6267\u884C\u7ED3\u679C",formatter:$})):je("",!0),re(L,{label:"\u64CD\u4F5C"},{default:ue(({row:H})=>[re(D,{type:"primary",size:"small",onClick:ne=>A(H)},{default:ue(()=>[St("\u7F16\u8F91")]),_:2},1032,["onClick"]),re(D,{type:"danger",size:"small",onClick:ne=>R(H)},{default:ue(()=>[St("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),re(ae,{currentPage:v.value.current,"onUpdate:currentPage":I[0]||(I[0]=H=>v.value.current=H),style:{"margin-top":"10px"},class:"float-right","page-size":v.value.pageSize,total:v.value.total,"page-sizes":[12,24,36],background:!0,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:y,onCurrentChange:w},null,8,["currentPage","page-size","total"]),re(K,{modelValue:s.value,"onUpdate:modelValue":I[2]||(I[2]=H=>s.value=H),"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!0,"close-on-press-escape":!0,title:l.value.value?"\u7F16\u8F91\u7F16\u8F91":"\u65B0\u589E\u8DEF\u7531"},{footer:ue(()=>[re(D,{onClick:I[1]||(I[1]=H=>s.value=!1)},{default:ue(()=>[St("\u53D6\u6D88")]),_:1}),re(D,{type:"primary",onClick:B},{default:ue(()=>[St("\u4FDD\u5B58")]),_:1})]),default:ue(()=>[re(FUe,{ref_key:"routerItemFormRef",ref:u,currentRouter:a.value,currentNodeView:e.currentNodeView,currentNodeModel:e.currentNodeModel,onSubmit:b,onCancel:C},null,8,["currentRouter","currentNodeView","currentNodeModel"])]),_:1},8,["modelValue","title"])],64)}}},zUe={style:{"text-align":"left"}},QUe={__name:"NodePropertyDrawer",props:["show","currentNodeModel","currentNodeView","chainId","debugDataUrl"],emits:["submit","cancel"],setup(e,{emit:t}){const n=ee(),r=ee(),o=ee("detail"),i=async()=>{let u;if(r.value&&(u=r.value.getFormModel().routers,!u||u.length===0)){o.value="router",Ki.error("\u8BF7\u8BBE\u7F6E\u8DEF\u7531");return}n.value.submit(d=>{if(!d)o.value="detail";else{const p=n.value.getFormModel();u&&(p.routers=u),t("submit",p)}})},a=()=>{t("cancel")},s=()=>{a()},l=()=>{};return(u,d)=>{const p=rp,v=il,y=ol,w=QC,b=zC,k=no,C=P3;return Z(),Fe(C,{modal:!1,"close-on-click-modal":!1,"close-on-press-escape":!1,direction:"rtl",size:"500px","modal-class":"right-drawer-modal","before-close":s,modelValue:e.show},Il({header:ue(()=>[re(y,{class:"setter-title"},{default:ue(()=>[re(v,{span:12},{default:ue(()=>[St("\u8282\u70B9\u8BE6\u60C5 "),re(p,{class:"ml-2",type:"info"},{default:ue(()=>[St(ut(e.currentNodeView.label||e.currentNodeView.type),1)]),_:1})]),_:1})]),_:1})]),default:ue(()=>[re(b,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=T=>o.value=T),onTabClick:l},{default:ue(()=>[re(w,{label:"\u8BE6\u60C5",name:"detail"},{default:ue(()=>[re(aN,{ref_key:"nodePropertyFormRef",ref:n,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])]),_:1}),e.currentNodeView.nodeType==="endpoint-node"?(Z(),Fe(w,{key:0,label:"\u8DEF\u7531\u8BBE\u7F6E",name:"router"},{default:ue(()=>[re(ZK,{ref_key:"routerPropertyFormRef",ref:r,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])]),_:1})):je("",!0),e.currentNodeView.nodeType!=="endpoint-node"?(Z(),Fe(w,{key:1,label:"\u8C03\u8BD5\u65E5\u5FD7",name:"debug"},{default:ue(()=>[o.value==="debug"?(Z(),Fe(BUe,{key:0,url:e.debugDataUrl,chainId:e.chainId,nodeId:e.currentNodeModel.id},null,8,["url","chainId","nodeId"])):je("",!0)]),_:1})):je("",!0)]),_:1},8,["modelValue"])]),_:2},[o.value==="detail"||o.value==="router"?{name:"footer",fn:ue(()=>[ve("div",zUe,[re(k,{type:"primary",size:"large",onClick:i},{default:ue(()=>[St("\u786E\u8BA4")]),_:1}),re(k,{size:"large",onClick:a},{default:ue(()=>[St("\u53D6\u6D88")]),_:1})])]),key:"0"}:void 0]),1032,["modelValue"])}}};var WUe=w0(QUe,[["__scopeId","data-v-56654948"]]);const YUe={style:{flex:"auto"}},ZUe={__name:"NodePropertyDialog",props:["show","currentNodeModel","currentNodeView"],emits:["submit","cancel"],setup(e,{emit:t}){const n=ee(),r=ee(),o=ee("detail"),i=async()=>{let l;if(r.value&&(l=r.value.getFormModel().routers,!l||l.length===0)){o.value="router",Ki.error("\u8BF7\u8BBE\u7F6E\u8DEF\u7531");return}n.value.submit(u=>{if(!u)o.value="detail";else{const d=n.value.getFormModel();l&&(d.routers=l),t("submit",d)}})},a=()=>{t("cancel")},s=()=>{a()};return(l,u)=>{const d=rp,p=il,v=ol,y=QC,w=zC,b=no,k=Td;return Z(),Fe(k,{"append-to-body":!0,"destroy-on-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!0,width:"55%",draggable:"",top:"10px","before-close":s,modelValue:e.show},{header:ue(()=>[re(v,{class:"setter-title"},{default:ue(()=>[re(p,{span:12},{default:ue(()=>[St("\u8282\u70B9\u8BE6\u60C5\u914D\u7F6E "),re(d,{class:"ml-2",type:"info"},{default:ue(()=>[St(ut(e.currentNodeView.label||e.currentNodeView.type),1)]),_:1})]),_:1})]),_:1})]),footer:ue(()=>[ve("div",YUe,[re(b,{type:"primary",size:"large",onClick:i},{default:ue(()=>[St("\u786E\u8BA4")]),_:1}),re(b,{size:"large",onClick:a},{default:ue(()=>[St("\u53D6\u6D88")]),_:1})])]),default:ue(()=>[e.currentNodeView.nodeType!=="endpoint-node"?(Z(),Fe(aN,{key:0,ref_key:"nodePropertyFormRef",ref:n,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])):je("",!0),e.currentNodeView.nodeType==="endpoint-node"?(Z(),Fe(w,{key:1,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=C=>o.value=C)},{default:ue(()=>[re(y,{label:"\u8BE6\u60C5",name:"detail"},{default:ue(()=>[re(aN,{ref_key:"nodePropertyFormRef",ref:n,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])]),_:1}),re(y,{label:"\u8DEF\u7531\u8BBE\u7F6E",name:"router"},{default:ue(()=>[re(ZK,{ref_key:"routerPropertyFormRef",ref:r,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])]),_:1})]),_:1},8,["modelValue"])):je("",!0)]),_:1},8,["modelValue"])}}},UUe={builtins:{endpoints:{inProcessors:["headersToMetadata"],outProcessors:["metadataToHeaders","responseToBody"]},functions:{functionName:[]},nodePool:{}},endpoints:[{type:"endpoint/kafka",category:"endpoint/kafka",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:9092",label:"",desc:"",validate:"",fields:null},{name:"groupId",type:"string",defaultValue:"rulego",label:"",desc:"",validate:"",fields:null}],label:"Kafka",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/nats",category:"endpoint/nats",fields:[{name:"server",type:"string",defaultValue:"nats://127.0.0.1:4222",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"Nats",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/rabbitmq",category:"endpoint/rabbitmq",fields:[{name:"server",type:"string",defaultValue:"amqp://guest:guest@127.0.0.1:5672/",label:"",desc:"",validate:"",fields:null},{name:"exchange",type:"string",defaultValue:"rulego",label:"",desc:"",validate:"",fields:null},{name:"exchangeType",type:"string",defaultValue:"topic",label:"",desc:"",validate:"",fields:null},{name:"durable",type:"bool",defaultValue:!0,label:"",desc:"",validate:"",fields:null},{name:"autoDelete",type:"bool",defaultValue:!0,label:"",desc:"",validate:"",fields:null}],label:"RabbitMQ",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/redis",category:"endpoint/redis",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:6379",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"db",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"Redis",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/redis/stream",category:"endpoint/redis_stream",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:6379",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"db",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"groupId",type:"string",defaultValue:"rulego",label:"",desc:"",validate:"",fields:null}],label:"Redis",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/mqtt",category:"github.com/rulego/rulego/endpoint/mqtt",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:1883",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"maxReconnectInterval",type:"Duration",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"qOS",type:"uint8",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"cleanSession",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"clientID",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"cAFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certKeyFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"Mqtt",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/net",category:"github.com/rulego/rulego/endpoint/net",fields:[{name:"protocol",type:"string",defaultValue:"tcp",label:"",desc:"",validate:"",fields:null},{name:"server",type:"string",defaultValue:":6335",label:"",desc:"",validate:"",fields:null},{name:"readTimeout",type:"int",defaultValue:60,label:"",desc:"",validate:"",fields:null}],label:"Net",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/http",category:"github.com/rulego/rulego/endpoint/rest",fields:[{name:"server",type:"string",defaultValue:":6333",label:"",desc:"",validate:"",fields:null},{name:"certFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certKeyFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"Rest",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/schedule",category:"github.com/rulego/rulego/endpoint/schedule",fields:null,label:"Schedule",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"endpoint/ws",category:"github.com/rulego/rulego/endpoint/websocket",fields:[{name:"server",type:"string",defaultValue:":6334",label:"",desc:"",validate:"",fields:null},{name:"certFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certKeyFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"Websocket",desc:"",icon:"",relationTypes:["Success","Failure"]}],nodes:[{type:"delay",category:"action",fields:[{name:"periodInSeconds",type:"int",defaultValue:60,label:"",desc:"",validate:"",fields:null},{name:"maxPendingMsgs",type:"int",defaultValue:1e3,label:"",desc:"",validate:"",fields:null},{name:"periodInSecondsPattern",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"overwrite",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null}],label:"DelayNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"exec",category:"action",fields:[{name:"cmd",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"args",type:"array",defaultValue:null,label:"",desc:"",validate:"",fields:null},{name:"log",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"replaceData",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null}],label:"ExecCommandNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"for",category:"action",fields:[{name:"range",type:"string",defaultValue:"1..3",label:"",desc:"",validate:"",fields:null},{name:"do",type:"string",defaultValue:"s3",label:"",desc:"",validate:"",fields:null},{name:"sync",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null}],label:"ForNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"functions",category:"action",fields:[{name:"functionName",type:"string",defaultValue:"test",label:"",desc:"",validate:"",fields:null}],label:"FunctionsNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"groupAction",category:"action",fields:[{name:"matchRelationType",type:"string",defaultValue:"Success",label:"",desc:"",validate:"",fields:null},{name:"matchNum",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"nodeIds",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"timeout",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"GroupActionNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"iterator",category:"action",fields:[{name:"fieldName",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"jsScript",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"IteratorNode",desc:"",icon:"",relationTypes:["True","False","Success","Failure"]},{type:"join",category:"action",fields:[{name:"timeout",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"JoinNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"log",category:"action",fields:[{name:"jsScript",type:"string",defaultValue:"return 'Incoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);",label:"",desc:"",validate:"",fields:null}],label:"LogNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"dbClient",category:"external",fields:[{name:"driverName",type:"string",defaultValue:"mysql",label:"",desc:"",validate:"",fields:null},{name:"dsn",type:"string",defaultValue:"root:root@tcp(127.0.0.1:3306)/test",label:"",desc:"",validate:"",fields:null},{name:"poolSize",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"sql",type:"string",defaultValue:"select * from test",label:"",desc:"",validate:"",fields:null},{name:"params",type:"array",defaultValue:null,label:"",desc:"",validate:"",fields:null},{name:"getOne",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null}],label:"DbClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"mqttClient",category:"external",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:1883",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"topic",type:"string",defaultValue:"/device/msg",label:"",desc:"",validate:"",fields:null},{name:"maxReconnectInterval",type:"int",defaultValue:60,label:"",desc:"",validate:"",fields:null},{name:"qOS",type:"uint8",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"cleanSession",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"clientID",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"cAFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"certKeyFile",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"MqttClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"net",category:"external",fields:[{name:"protocol",type:"string",defaultValue:"tcp",label:"",desc:"",validate:"",fields:null},{name:"server",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"connectTimeout",type:"int",defaultValue:60,label:"",desc:"",validate:"",fields:null},{name:"heartbeatInterval",type:"int",defaultValue:60,label:"",desc:"",validate:"",fields:null}],label:"NetNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"restApiCall",category:"external",fields:[{name:"restEndpointUrlPattern",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"requestMethod",type:"string",defaultValue:"POST",label:"",desc:"",validate:"",fields:null},{name:"withoutRequestBody",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"headers",type:"map",defaultValue:{"Content-Type":"application/json"},label:"",desc:"",validate:"",fields:null},{name:"readTimeoutMs",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"maxParallelRequestsCount",type:"int",defaultValue:200,label:"",desc:"",validate:"",fields:null},{name:"enableProxy",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"useSystemProxyProperties",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"proxyScheme",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"proxyHost",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"proxyPort",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"proxyUser",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"proxyPassword",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"RestApiCallNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"sendEmail",category:"external",fields:[{name:"smtpHost",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"smtpPort",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"enableTls",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"email",type:"struct",defaultValue:{from:"",to:"",cc:"",bcc:"",subject:"",body:""},label:"",desc:"",validate:"",fields:[{name:"from",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"to",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"cc",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"bcc",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"subject",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"body",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}]},{name:"connectTimeout",type:"int",defaultValue:10,label:"",desc:"",validate:"",fields:null}],label:"SendEmailNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"ssh",category:"external",fields:[{name:"host",type:"string",defaultValue:"127.0.0.1",label:"",desc:"",validate:"",fields:null},{name:"port",type:"int",defaultValue:22,label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"root",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"password",label:"",desc:"",validate:"",fields:null},{name:"cmd",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"SshNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/grpcClient",category:"external/grpc",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:50051",label:"",desc:"",validate:"",fields:null},{name:"service",type:"string",defaultValue:"helloworld.Greeter",label:"",desc:"",validate:"",fields:null},{name:"method",type:"string",defaultValue:"SayHello",label:"",desc:"",validate:"",fields:null},{name:"request",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"headers",type:"map",defaultValue:null,label:"",desc:"",validate:"",fields:null}],label:"ClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/kafkaProducer",category:"external/kafka",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:9092",label:"",desc:"",validate:"",fields:null},{name:"topic",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"key",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"partition",type:"int32",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"ProducerNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/natsClient",category:"external/nats",fields:[{name:"server",type:"string",defaultValue:"nats://127.0.0.1:4222",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"topic",type:"string",defaultValue:"/device/msg",label:"",desc:"",validate:"",fields:null}],label:"ClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/opengeminiQuery",category:"external/opengemini",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:8086",label:"",desc:"",validate:"",fields:null},{name:"database",type:"string",defaultValue:"db0",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"token",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"command",type:"string",defaultValue:"select * from cpu_load",label:"",desc:"",validate:"",fields:null}],label:"QueryNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/opengeminiWrite",category:"external/opengemini",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:8086",label:"",desc:"",validate:"",fields:null},{name:"database",type:"string",defaultValue:"db0",label:"",desc:"",validate:"",fields:null},{name:"username",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"token",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"WriteNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/rabbitmqClient",category:"external/rabbitmq",fields:[{name:"server",type:"string",defaultValue:"amqp://guest:guest@127.0.0.1:5672/",label:"",desc:"",validate:"",fields:null},{name:"key",type:"string",defaultValue:"device.msg.request",label:"",desc:"",validate:"",fields:null},{name:"exchange",type:"string",defaultValue:"rulego",label:"",desc:"",validate:"",fields:null},{name:"exchangeType",type:"string",defaultValue:"topic",label:"",desc:"",validate:"",fields:null},{name:"durable",type:"bool",defaultValue:!0,label:"",desc:"",validate:"",fields:null},{name:"autoDelete",type:"bool",defaultValue:!0,label:"",desc:"",validate:"",fields:null}],label:"ClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/redisClient",category:"external/redis",fields:[{name:"server",type:"string",defaultValue:"127.0.0.1:6379",label:"",desc:"",validate:"",fields:null},{name:"password",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"poolSize",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"db",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null},{name:"cmd",type:"string",defaultValue:"GET",label:"",desc:"",validate:"",fields:null},{name:"paramsExpr",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"params",type:"array",defaultValue:["${metadata.key}"],label:"",desc:"",validate:"",fields:null}],label:"ClientNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"exprFilter",category:"filter",fields:[{name:"expr",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"ExprFilterNode",desc:"",icon:"",relationTypes:["True","False","Failure"]},{type:"fieldFilter",category:"filter",fields:[{name:"checkAllKeys",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"dataNames",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"metadataNames",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"FieldFilterNode",desc:"",icon:"",relationTypes:["True","False","Failure"]},{type:"fork",category:"filter",fields:null,label:"ForkNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"groupFilter",category:"filter",fields:[{name:"allMatches",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null},{name:"nodeIds",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"timeout",type:"int",defaultValue:0,label:"",desc:"",validate:"",fields:null}],label:"GroupFilterNode",desc:"",icon:"",relationTypes:["True","False","Failure"]},{type:"jsFilter",category:"filter",fields:[{name:"jsScript",type:"string",defaultValue:"return msg.temperature > 50;",label:"",desc:"",validate:"",fields:null}],label:"JsFilterNode",desc:"",icon:"",relationTypes:["True","False","Failure"]},{type:"jsSwitch",category:"filter",fields:[{name:"jsScript",type:"string",defaultValue:"return ['msgType1','msgType2'];",label:"",desc:"",validate:"",fields:null}],label:"JsSwitchNode",desc:"",icon:"",relationTypes:[]},{type:"msgTypeSwitch",category:"filter",fields:null,label:"MsgTypeSwitchNode",desc:"",icon:"",relationTypes:[]},{type:"x/luaFilter",category:"filter",fields:[{name:"script",type:"string",defaultValue:"return msg.temperature > 50",label:"",desc:"",validate:"",fields:null}],label:"LuaFilter",desc:"",icon:"",relationTypes:["True","False","Failure"]},{type:"flow",category:"flow",fields:[{name:"targetId",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"ChainNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"ref",category:"flow",fields:[{name:"targetId",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null}],label:"RefNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"exprTransform",category:"transform",fields:[{name:"expr",type:"string",defaultValue:"",label:"",desc:"",validate:"",fields:null},{name:"mapping",type:"map",defaultValue:null,label:"",desc:"",validate:"",fields:null}],label:"ExprTransformNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"jsTransform",category:"transform",fields:[{name:"jsScript",type:"string",defaultValue:"return {'msg':msg,'metadata':metadata,'msgType':msgType};",label:"",desc:"",validate:"",fields:null}],label:"JsTransformNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"metadataTransform",category:"transform",fields:[{name:"mapping",type:"map",defaultValue:{temperature:"msg.temperature"},label:"",desc:"",validate:"",fields:null},{name:"isNew",type:"bool",defaultValue:!1,label:"",desc:"",validate:"",fields:null}],label:"MetadataTransformNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"text/template",category:"transform",fields:[{name:"template",type:"string",defaultValue:`"id": "{{ .id}}"
  254. "ts": "{{ .ts}}"
  255. "type": "{{ .type}}"
  256. "msgType": "{{ .msgType}}"
  257. "data": "{{ .data | escape}}"
  258. "dataType": "{{ .dataType}}"
  259. `,label:"",desc:"",validate:"",fields:null}],label:"TemplateNode",desc:"",icon:"",relationTypes:["Success","Failure"]},{type:"x/luaTransform",category:"transform",fields:[{name:"script",type:"string",defaultValue:"return msg, metadata, msgType",label:"",desc:"",validate:"",fields:null}],label:"LuaTransform",desc:"",icon:"",relationTypes:["Success","Failure"]}]},HUe={class:"flow-chart"},XUe={__name:"RuleGoEditor",props:["options","data"],emits:["saveOk","saveError","reset"],setup(e,{expose:t,emit:n}){const r=e,o=ee(),i=ee(null),a=ee(null),s=ee({}),l=ee({}),u=ee({}),d=ee(null),p=ee(!1),v=ee(!1),y=ee(!1),w=ee(!1),b=ee(!1),k=ee({url:"http://127.0.0.1:9090",toolbar:{}});let C={},T=ee({}),$={},P={},A={},R=[],B=[];const N=r.data,I=r.options;let D={setting:{},relationTypeSplit:"/",endpointRelationTypeSplit:`
  260. `,url:"http://127.0.0.1:9090",componentsApi:"/api/v1/components",ruleApi:"/api/v1/rule/:id",debugDataApi:"/api/v1/event/debug",msgApi:"/api/v1/msg/:chainId/testMsgType",startX:280,startY:280,loadComponentsFromApi:!0,loadEndpointComponents:!0,components:{endpoints:[],nodes:[]},adapterComponents:function(oe){return D.loadEndpointComponents||(oe.endpoints=[]),Pr.adapterComponents(oe)},toolbar:{showTest:!0,showNewOrOpen:!0,showData:!0,showSetting:!0,showFullScreen:!0,showSave:!0,showReset:!0,showDelete:!0},container:o.value,grid:{visible:!0,type:"mesh",size:10,config:{color:"#eeeeee"}},adjustEdge:!0,adjustEdgeStartAndEnd:!0,textEdit:!1,stopMoveGraph:!1,hoverOutline:!1,edgeSelectedOutline:!1,keyboard:{enabled:!0,shortcuts:[{keys:["delete","backspace"],callback:oe=>{!oe.target||oe.target.tagName!=="DIV"&&oe.target.tagName!=="div"||he()}},{keys:["cmd + c","ctrl + c"],callback:oe=>{if(!oe.target||oe.target.tagName!=="DIV"&&oe.target.tagName!=="div")return;if(!i.value){Pr.copyToClipboard("");return}$.currentCloneNodeId=i.value.id;let ke=i.value.properties&&i.value.properties.model||{};Pr.copyToClipboard(JSON.stringify(ke))}},{keys:["cmd + v","ctrl + v"],callback:oe=>{!oe.target||oe.target.tagName!=="DIV"&&oe.target.tagName!=="div"||V()}}]},idGenerator:function(oe){return oe==="flow-link"?($.edgeCount++,"edge_"+$.edgeCount):($.nodeCount++,"node_"+$.nodeCount)},plugins:[aBe,nBe,rX,lK]},L=null;vn(()=>{D.components&&D.components.nodes&&D.components.nodes.length>0?(D.components=D.adapterComponents(D.components),C=Re(D.components),z()):(D.components=D.adapterComponents(UUe),C=Re(D.components),z()),D.loadComponentsFromApi&&me().then(oe=>{D.components=oe,C=Re(D.components),z()})});const z=()=>{ze(),Object.assign(D,I),k.value={url:D.url,componentsApi:D.componentsApi,ruleApi:D.ruleApi,debugDataApi:D.debugDataApi,msgApi:D.msgApi,toolbar:D.toolbar},D.ruleChain&&(T.value=T),D.container=o.value,L=new kH(D),L.getRuleChain=function(){return T.value},L.getEditorSetting=function(){return k.value},L.extension.selectionSelect.setSelectionSense(!0,!1),L.adapterIn=function(oe){Jr(oe)&&(oe=oe.value);let ke={};oe.ruleChain&&(T.value=oe.ruleChain,ke=oe.ruleChain.additionalInfo||{});let We=[],et=[],Ve=parseInt(ke.layoutX||D.startX)||D.startX,Me=parseInt(ke.layoutY||D.startY)||D.startY;We.push({id:$.startNodeId,type:"start-node",x:Ve,y:Me,text:wy("Input")});let Ke=null,be=0,qe=oe.metadata&&oe.metadata.firstNodeIndex||0;oe&&oe.metadata&&oe.metadata.nodes&&oe.metadata.nodes.forEach((Xe,gt)=>{let Ct=Pr.getNodeSeq(Xe.id);Ct>be&&(be=Ct),$.nodeCount++,qe===gt&&(Ke=Xe),Ve=Ve+150;let Zt=Xe.additionalInfo||{},Et=Zt.layoutX||Ve,ln=Zt.layoutY||Me;We.push({id:Xe.id,type:"simple-node",x:Et,y:ln,text:Xe.name,properties:{view:C[Xe.type],model:Xe}})}),oe&&oe.metadata&&oe.metadata.endpoints&&oe.metadata.endpoints.forEach((Xe,gt)=>{let Ct=Pr.getNodeSeq(Xe.id);Ct>be&&(be=Ct),$.nodeCount++,Ve=Ve+150;let Zt=Xe.additionalInfo||{},Et=Zt.layoutX||Ve,ln=Zt.layoutY||Me;We.push({id:Xe.id,type:"endpoint-node",x:Et,y:ln,text:Xe.name,properties:{view:C[Xe.type],model:Xe}})}),$.nodeCount+=be;let ct=[];Ke&&(ct=[{fromId:$.startNodeId,toId:Ke.id}]),oe.metadata&&oe.metadata.endpoints&&oe.metadata.endpoints.forEach((Xe,gt)=>{ct=ct.concat(Pr.getEndpointConnections(Xe.id,Xe,Ke))});let Je=ct;return oe&&oe.metadata&&oe.metadata.connections&&(Je=Je.concat(oe.metadata.connections)),Je.forEach(Xe=>{$.edgeCount++;let gt=Pr.getEdgeBySourceNodeIdAndTargetNodeId(et,Xe.fromId,Xe.toId);gt?(Xe.nodeType==="endpoint-node"?gt.text=gt.text+D.endpointRelationTypeSplit+wy(Xe.type,"relationTypes"):gt.text=gt.text+D.relationTypeSplit+wy(Xe.type,"relationTypes"),gt.properties.model.relationTypes||(gt.properties.model.relationTypes=[]),gt.properties.model.relationTypes.push(Xe.type),Xe.routerId&&(gt.properties.model.routerId=Xe.routerId)):(Xe.relationTypes=[Xe.type],gt=Pr.createEdge($,We,Xe),et.push(gt))}),{edges:et,nodes:We}},L.adapterOut=function(oe){T.value&&!T.value.id&&(T.value.id=Pr.genId());let ke=[],We=[],et=[],Ve={},Me=[];oe&&oe.edges&&oe.edges.forEach(be=>{if(be.sourceNodeId!==$.startNodeId){let qe=we(be.sourceNodeId),ct=we(be.targetNodeId);qe===""&&Ki.error("\u627E\u4E0D\u5230\u8282\u70B9Id="+qe),ct===""&&Ki.error("\u627E\u4E0D\u5230\u8282\u70B9Id="+ct);let Je=L.getNodeDataById(be.sourceNodeId),Xe=be.properties.model||{fromId:qe,toId:ct,type:""};Xe.fromId=qe,Xe.toId=ct,Xe.relationTypes.forEach(gt=>{let Ct={};Object.assign(Ct,Xe),Ct.type=gt,delete Ct.id,delete Ct.relationTypes,delete Ct.relationTypesLabel,Je.type==="endpoint-node"?Me.push(Ct):et.push(Ct)})}else Ve=be.targetNodeId}),oe&&oe.nodes&&oe.nodes.forEach(be=>{if(be.id===$.startNodeId)T.value.additionalInfo?(T.value.additionalInfo.layoutX=String(be.x),T.value.additionalInfo.layoutY=String(be.y)):T.value.additionalInfo={layoutX:String(be.x),layoutY:String(be.y)};else{let qe=be.properties.model;if(qe){let ct=qe.additionalInfo;ct?(ct.layoutX=be.x,ct.layoutY=be.y):qe.additionalInfo={layoutX:be.x,layoutY:be.y},delete qe.nodeId,be.type==="endpoint-node"?(Pr.updateEndpointRouterToPath(qe,T.value.id,Me),ke.push(qe)):be.id===Ve?We.unshift(qe):We.push(qe)}}});let Ke={endpoints:ke,nodes:We,connections:et};return{ruleChain:T.value,metadata:Ke}},N?L.render(N):(T.value.id=Pr.genId(),L.render()),L.graphModel.eventCenter.emit("rulego-editor:componentOk",D.components),L.on("blank:mousemove",({e:oe})=>{$.mouseX=oe.offsetX,$.mouseY=oe.offsetY}),L.on("blank:mousedown",({e:oe})=>{$.mouseX=oe.offsetX,$.mouseY=oe.offsetY}),L.on("node:click",({data:oe})=>{Be(),zt(()=>{oe.type!=="start-node"?(i.value=oe,a.value=null,pe(),v.value=!0):(i.value=null,a.value=null)})}),L.on("node:dbclick",({data:oe})=>{Be(),zt(()=>{oe.type!=="start-node"&&(i.value=oe,a.value=null,pe(),v.value=!0)})}),L.on("edge:click",({data:oe})=>{Be(),zt(()=>{i.value=null,a.value=oe,v.value=!1,y.value=!1})}),L.on("edge:dbclick",({data:oe})=>{Be(),zt(()=>{a.value=oe,i.value=null,pe()})}),L.on("node:dnd-add",({data:oe})=>{Be(),zt(()=>{P=oe,i.value=oe,a.value=null,pe(!0)})}),L.on("node:add",({data:oe})=>{let ke=oe.properties.model;const We=L.getNodeModelById(oe.id);ke&&We&&(ke.id=oe.id,We.setProperty("model",ke))}),L.on("edge:add",({data:oe})=>{let ke=L.getNodeEdges(oe.sourceNodeId);ke&&ke.length>1&&L.getNodeDataById(oe.sourceNodeId).type==="start-node"&&L.deleteEdge(oe.id)}),L.on("edge:add",({data:oe})=>{A=oe,a.value=oe,i.value=null,oe.sourceNodeId!==$.startNodeId&&pe(!0)}),L.on("node:drop",({data:oe})=>{let ke=oe.properties.model;ke&&(ke.additionalInfo?(ke.layoutX=oe.x,ke.layoutY=oe.y):ke.additionalInfo={layoutX:oe.x,layoutY:oe.y})}),L.on("rulego-editor:new",oe=>{_e(),oe.id||(oe.id=Pr.genId()),T.value=oe}),L.on("rulego-editor:open",oe=>{let ke=JSON.parse(oe);$e(ke)}),L.on("rulego-editor:setting",oe=>{oe.url&&oe.url!==k.value.url?(k.value.url=oe.url,k.value.toolbar=oe.toolbar,me().then(ke=>{D.components=ke,C=Re(D.components),z()})):(k.value.url=oe.url,k.value.toolbar=oe.toolbar)}),L.on("rulego-editor:fullScreen",()=>{console.info("rulego-editor:fullScreen")}),L.on("rulego-editor:save",()=>{se()}),L.on("rulego-editor:reset",()=>{console.info("rulego-editor:deleteSelects")}),L.on("rulego-editor:deleteSelects",()=>{he()}),L.on("rulego-editor:showEditPanel",()=>{pe(!1)}),L.on("history:change",oe=>{R=oe.data.undos,B=oe.data.redos}),L.on("rulego-editor:loadComponents",oe=>{D.components=D.adapterComponents(oe),L.graphModel.eventCenter.emit("rulego-editor:componentOk",D.components)})},q=oe=>{i.value=oe;let ke=oe.properties.model;!ke.type&&oe.properties.view&&(ke.type=oe.properties.view.type),l.value=oe.properties.view||C[ke.type],ke.id=ke.id||oe.id,ke.nodeId=oe.id,ke.additionalInfo?(ke.layoutX=oe.x,ke.layoutY=oe.y):ke.additionalInfo={layoutX:oe.x,layoutY:oe.y},s.value=ke||{}},ae=oe=>{const ke=L.getNodeModelById(oe.nodeId);ke&&(i.value=ke,ke.setProperty("model",oe),ke.updateText(oe.name)),ke.getData().type==="endpoint-node"&&X(oe.nodeId,oe),P=null,p.value=!1,v.value=!1},K=()=>{P&&(L.deleteNode(P.id),P=null),De()},H=oe=>{const ke=L.getEdgeModelById(oe.id);ke&&(a.value=ke,L.getNodeDataById(ke.sourceNodeId).type==="endpoint-node"?(oe.routerId=oe.relationTypes[0],ke.updateText(oe.relationTypesLabel.join(D.endpointRelationTypeSplit))):ke.updateText(oe.relationTypesLabel.join(D.relationTypeSplit)),ke.setProperty("model",oe)),A=null,b.value=!1,y.value=!1},ne=()=>{A&&(L.deleteEdge(A.id),A=null),De()},X=(oe,ke)=>{L.getEdgeModels({sourceNodeId:oe}).forEach(et=>{let Ve=et.properties.model||{},Me=Pr.getRouterRelationTypeLabel(ke,Ve.routerId||Ve.relationTypes);if(Me.length===0)L.deleteEdge(et.id);else{let Ke=Me.map(be=>be.label);et.updateText(Ke.join(D.endpointRelationTypeSplit))}})},V=()=>{Pr.readFromClipboard().then(oe=>{!G(oe)&&$.currentCloneNodeId&&L.cloneNode($.currentCloneNodeId)}).catch(oe=>{$.currentCloneNodeId&&L.cloneNode($.currentCloneNodeId)})},G=oe=>{if(!oe)return!1;try{let ke=JSON.parse(oe);if(!ke.type)return!1;$.nodeCount++,ke.id="node_"+$.nodeCount;let We=$.mouseX,et=$.mouseY,Ve=C[ke.type];return Ve?(L.addNode({id:ke.id,type:Ve.nodeType||"simple-node",x:We,y:et,text:ke.name,properties:{view:Ve,model:ke}}),!0):!1}catch{return!1}},se=()=>{let oe=L.getGraphData(),ke=k.value.url+D.ruleApi;ke=ke.replace(":id",T.value.id),fetch(ke,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(oe)}).then(We=>We.ok?We:We.text().then(et=>{throw new Error("\u4FDD\u5B58\u5931\u8D25: "+et)})).then(We=>{Ki({showClose:!0,message:"\u4FDD\u5B58\u6210\u529F",type:"success"}),n("saveOk",We)}).catch(We=>{Ki.error(We.message),n("saveError",oe,We)})},he=()=>{const{nodes:oe,edges:ke}=L.getSelectElements();ke&&ke.forEach(We=>{L.deleteEdge(We.id)}),oe&&oe.forEach(We=>{We.type!=="start-node"&&L.deleteNode(We.id)}),L.graphModel.eventCenter.emit("rulego-editor:deleted"),Be()},pe=oe=>{if(i.value){let ke=i.value;ke.type!=="start-node"&&(q(ke),oe?p.value=!0:v.value=!0,y.value=!1)}else{let ke=a.value,We=L.getNodeDataById(ke.sourceNodeId);if(We.type==="start-node")return;let et=We.properties.model||{},Ve=et.type;l.value=C[Ve];let Me=L.getEdgeModels({sourceNodeId:We.id}),Ke=Pr.getRelationTypeOptionsFromRouters(Me,et,ke.id);if(We.type==="endpoint-node"&&Ke.length===0){Ki.error("\u8F93\u5165\u7AEF\u6BCF\u4E2A\u8DEF\u7531\u53EA\u5141\u8BB8\u4E00\u6761\u8FB9"),L.deleteEdge(ke.id);return}d.value=Ke.length>0?Ke:null,u.value=ke.properties.model||{id:ke.id,fromId:ke.sourceNodeId,toId:ke.targetNodeId,type:""},u.value.id=ke.id,p.value=!1,v.value=!1,oe?b.value=!0:y.value=!0}},Be=()=>{i.value=null,a.value=null,P=null,A=null,De()},De=()=>{p.value=!1,v.value=!1,b.value=!1,y.value=!1},ze=()=>{$={nodeCount:0,edgeCount:0,startNodeId:"$node_start_input",nodeWidth:100,currentCloneNodeId:""},i.value=null,a.value=null,p.value=!1,v.value=!1,y.value=!1,w.value=!1,T.value={}},$e=oe=>{ze(),L.render(oe),R.length=0,B.length=0},_e=()=>{L.clearData(),$e()},me=async()=>{let oe=k.value.url+D.componentsApi;const We=await(await fetch(oe)).json();return D.adapterComponents(We)},Re=oe=>{let ke={};for(let We in oe)oe[We].components&&oe[We].components.forEach(et=>{ke[et.type]=et});return ke},we=oe=>{let ke=L.getNodeModelById(oe);return ke&&ke.properties&&ke.properties.model?ke.properties.model.id:""};return t({render:$e,save:se,lf:L,getData:()=>L.getGraphData()}),(oe,ke)=>(Z(),ce("div",HUe,[ve("div",{ref_key:"container",ref:o,class:"container"},null,512),v.value?(Z(),Fe(WUe,{key:0,show:v.value,currentNodeModel:s.value,currentNodeView:l.value,debugDataUrl:k.value.url+m(D).debugDataApi,chainId:m(T).id,onSubmit:ae,onCancel:K},null,8,["show","currentNodeModel","currentNodeView","debugDataUrl","chainId"])):je("",!0),p.value?(Z(),Fe(ZUe,{key:1,show:p.value,currentNodeModel:s.value,currentNodeView:l.value,onSubmit:ae,onCancel:K},null,8,["show","currentNodeModel","currentNodeView"])):je("",!0),y.value?(Z(),Fe(BYe,{key:2,show:y.value,currentEdgeModel:u.value,sourceNodeView:l.value,relationTypeSplit:m(D).relationTypeSplit,sourceNodeRelationTypeOptions:d.value,onSubmit:H,onCancel:ne},null,8,["show","currentEdgeModel","sourceNodeView","relationTypeSplit","sourceNodeRelationTypeOptions"])):je("",!0),b.value?(Z(),Fe(FYe,{key:3,show:b.value,currentEdgeModel:u.value,sourceNodeView:l.value,relationTypeSplit:m(D).relationTypeSplit,sourceNodeRelationTypeOptions:d.value,onSubmit:H,onCancel:ne},null,8,["show","currentEdgeModel","sourceNodeView","relationTypeSplit","sourceNodeRelationTypeOptions"])):je("",!0)]))}};var GUe=w0(XUe,[["__scopeId","data-v-5bf162f7"]]);const qUe={__name:"App",setup(e){const t=ee(),n=ee({url:"http://127.0.0.1:9090",toolbar:{showTest:!0,showNewOrOpen:!1,showData:!0,showSetting:!1,showFullScreen:!0,showSave:!0,showReset:!0,showDelete:!0}});return ee({ruleChain:{id:"chain_call_rest_api",additionalInfo:null,name:"\u6D4B\u8BD5\u89C4\u5219\u94FE",debugMode:!1,root:!0,configuration:null},metadata:{nodes:[{id:"s1",additionalInfo:{description:"ddd",layoutX:440,layoutY:280},type:"jsFilter",name:"\u8FC7\u6EE4",debugMode:!0,configuration:{jsScript:"return msg!='bb';"}},{id:"s2",additionalInfo:{description:"",layoutX:670,layoutY:280},type:"jsTransform",name:"\u8F6C\u6362",debugMode:!0,configuration:{jsScript:`metadata['test']='test02';
  261. metadata['index']=52;
  262. msgType='TEST_MSG_TYPE2';
  263. msg['aa']=66;
  264. return {'msg':msg,'metadata':metadata,'msgType':msgType};`}},{id:"s3",additionalInfo:{description:"",layoutX:930,layoutY:190},type:"restApiCall",name:"\u63A8\u9001\u6570\u636E",debugMode:!0,configuration:{headers:{"Content-Type":"application/json"},maxParallelRequestsCount:200,requestMethod:"POST",restEndpointUrlPattern:"http://127.0.0.1:9090/api/v1/webhook/test"}},{id:"node_5",additionalInfo:{description:"",layoutX:920,layoutY:370},type:"log",name:"\u8BB0\u5F55\u9519\u8BEF\u65E5\u5FD7",debugMode:!1,configuration:{jsScript:`return 'Incoming message:\\\\n' + JSON.stringify(msg) +
  265. '\\\\nIncoming metadata:\\\\n' + JSON.stringify(metadata);`}}],connections:[{fromId:"s1",toId:"s2",type:"True"},{fromId:"s2",toId:"s3",type:"Success"},{fromId:"s2",toId:"node_5",type:"Failure"}]}}),(r,o)=>(Z(),Fe(GUe,{ref_key:"ruleGoEditorRef",ref:t,data:null,options:n.value},null,8,["options"]))}},UK=tC(qUe);UK.use(t6e,{locale:n6e});UK.mount("#app")});export default KUe();