123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- var qne=Object.defineProperty;var Jne=(e,t,n)=>t in e?qne(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 p$=(e,t,n)=>(Jne(e,typeof t!="symbol"?t+"":t,n),n);var nHe=ere((Ml,Rl)=>{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 lN(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 q(e){let t="";if(Gt(e))t=e;else if(xt(e))for(let n=0;n<e.length;n++){const r=q(e[n]);r&&(t+=r+" ")}else if(Pn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ac(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Gt(t)&&(e.class=q(t)),n&&(e.style=Vt(n)),e}const are="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",sre=lN(are);function RF(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=$y(e[r],t[r]);return n}function $y(e,t){if(e===t)return!0;let n=tv(e),r=tv(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=dO(e),r=dO(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||!$y(e[a],t[a]))return!1}}return String(e)===String(t)}function NF(e,t){return e.findIndex(n=>$y(n,t))}const ct=e=>Gt(e)?e:e==null?"":xt(e)||Pn(e)&&(e.toString===DF||!nn(e.toString))?JSON.stringify(e,IF,2):String(e),IF=(e,t)=>t&&t.__v_isRef?IF(e,t.value):dy(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:W2(t)?{[`Set(${t.size})`]:[...t.values()]}:Pn(t)&&!xt(t)&&!Tk(t)?String(t):t,Zo={},fy=[],Vr=()=>{},ure=()=>!1,cre=/^on[^a-z]/,Q2=e=>cre.test(e),uN=e=>e.startsWith("onUpdate:"),fa=Object.assign,cN=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fre=Object.prototype.hasOwnProperty,ar=(e,t)=>fre.call(e,t),xt=Array.isArray,dy=e=>l1(e)==="[object Map]",W2=e=>l1(e)==="[object Set]",tv=e=>l1(e)==="[object Date]",nn=e=>typeof e=="function",Gt=e=>typeof e=="string",dO=e=>typeof e=="symbol",Pn=e=>e!==null&&typeof e=="object",hO=e=>Pn(e)&&nn(e.then)&&nn(e.catch),DF=Object.prototype.toString,l1=e=>DF.call(e),Yx=e=>l1(e).slice(8,-1),Tk=e=>l1(e)==="[object Object]",fN=e=>Gt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zx=lN(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Y2=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},dre=/-(\w)/g,ku=Y2(e=>e.replace(dre,(t,n)=>n?n.toUpperCase():"")),hre=/\B([A-Z])/g,hp=Y2(e=>e.replace(hre,"-$1").toLowerCase()),u1=Y2(e=>e.charAt(0).toUpperCase()+e.slice(1)),V_=Y2(e=>e?`on${u1(e)}`:""),pO=(e,t)=>!Object.is(e,t),Ux=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Pk=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},MA=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 j8;const gre=()=>j8||(j8=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Cl;class jF{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Cl,!t&&Cl&&(this.index=(Cl.scopes||(Cl.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Cl;try{return Cl=this,t()}finally{Cl=n}}}on(){Cl=this}off(){Cl=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 jF(e)}function mre(e,t=Cl){t&&t.active&&t.effects.push(e)}function LF(){return Cl}function BF(e){Cl&&Cl.cleanups.push(e)}const dN=e=>{const t=new Set(e);return t.w=0,t.n=0,t},VF=e=>(e.w&Yh)>0,FF=e=>(e.n&Yh)>0,yre=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Yh},bre=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];VF(o)&&!FF(o)?o.delete(e):t[n++]=o,o.w&=~Yh,o.n&=~Yh}t.length=n}},$k=new WeakMap;let T_=0,Yh=1;const RA=30;let ic;const Ug=Symbol(""),NA=Symbol("");class hN{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=ic,n=Dh;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ic,ic=this,Dh=!0,Yh=1<<++T_,T_<=RA?yre(this):L8(this),this.fn()}finally{T_<=RA&&bre(this),Yh=1<<--T_,ic=this.parent,Dh=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ic===this?this.deferStop=!0:this.active&&(L8(this),this.onStop&&this.onStop(),this.active=!1)}}function L8(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Dh=!0;const zF=[];function n0(){zF.push(Dh),Dh=!1}function r0(){const e=zF.pop();Dh=e===void 0?!0:e}function tl(e,t,n){if(Dh&&ic){let r=$k.get(e);r||$k.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=dN()),QF(o)}}function QF(e,t){let n=!1;T_<=RA?FF(e)||(e.n|=Yh,n=!VF(e)):n=!e.has(ic),n&&(e.add(ic),ic.deps.push(e))}function cd(e,t,n,r,o,i){const a=$k.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)?fN(n)&&s.push(a.get("length")):(s.push(a.get(Ug)),dy(e)&&s.push(a.get(NA)));break;case"delete":xt(e)||(s.push(a.get(Ug)),dy(e)&&s.push(a.get(NA)));break;case"set":dy(e)&&s.push(a.get(Ug));break}if(s.length===1)s[0]&&IA(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);IA(dN(l))}}function IA(e,t){const n=xt(e)?e:[...e];for(const r of n)r.computed&&B8(r);for(const r of n)r.computed||B8(r)}function B8(e,t){(e!==ic||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function _re(e,t){var n;return(n=$k.get(e))===null||n===void 0?void 0:n.get(t)}const Ore=lN("__proto__,__v_isRef,__isVue"),WF=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dO)),wre=pN(),Sre=pN(!1,!0),xre=pN(!0),V8=kre();function kre(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=fr(this);for(let i=0,a=this.length;i<a;i++)tl(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(fr)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){n0();const r=fr(this)[t].apply(this,n);return r0(),r}}),e}function Cre(e){const t=fr(this);return tl(t,"has",e),t.hasOwnProperty(e)}function pN(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:XF:t?HF:UF).get(r))return r;const a=xt(r);if(!e){if(a&&ar(V8,o))return Reflect.get(V8,o,i);if(o==="hasOwnProperty")return Cre}const s=Reflect.get(r,o,i);return(dO(o)?WF.has(o):Ore(o))||(e||tl(r,"get",o),t)?s:eo(s)?a&&fN(o)?s:s.value:Pn(s)?e?c1(s):rr(s):s}}const Ere=YF(),Tre=YF(!0);function YF(e=!1){return function(n,r,o,i){let a=n[r];if(Ay(a)&&eo(a)&&!eo(o))return!1;if(!e&&(!Ak(o)&&!Ay(o)&&(a=fr(a),o=fr(o)),!xt(n)&&eo(a)&&!eo(o)))return a.value=o,!0;const s=xt(n)&&fN(r)?Number(r)<n.length:ar(n,r),l=Reflect.set(n,r,o,i);return n===fr(i)&&(s?pO(o,a)&&cd(n,"set",r,o):cd(n,"add",r,o)),l}}function Pre(e,t){const n=ar(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&cd(e,"delete",t,void 0),r}function $re(e,t){const n=Reflect.has(e,t);return(!dO(t)||!WF.has(t))&&tl(e,"has",t),n}function Are(e){return tl(e,"iterate",xt(e)?"length":Ug),Reflect.ownKeys(e)}const ZF={get:wre,set:Ere,deleteProperty:Pre,has:$re,ownKeys:Are},Mre={get:xre,set(e,t){return!0},deleteProperty(e,t){return!0}},Rre=fa({},ZF,{get:Sre,set:Tre}),gN=e=>e,Z2=e=>Reflect.getPrototypeOf(e);function KS(e,t,n=!1,r=!1){e=e.__v_raw;const o=fr(e),i=fr(t);n||(t!==i&&tl(o,"get",t),tl(o,"get",i));const{has:a}=Z2(o),s=r?gN:n?yN:gO;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=fr(n),o=fr(e);return t||(e!==o&&tl(r,"has",e),tl(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function JS(e,t=!1){return e=e.__v_raw,!t&&tl(fr(e),"iterate",Ug),Reflect.get(e,"size",e)}function F8(e){e=fr(e);const t=fr(this);return Z2(t).has.call(t,e)||(t.add(e),cd(t,"add",e,e)),this}function z8(e,t){t=fr(t);const n=fr(this),{has:r,get:o}=Z2(n);let i=r.call(n,e);i||(e=fr(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?pO(t,a)&&cd(n,"set",e,t):cd(n,"add",e,t),this}function Q8(e){const t=fr(this),{has:n,get:r}=Z2(t);let o=n.call(t,e);o||(e=fr(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&cd(t,"delete",e,void 0),i}function W8(){const e=fr(this),t=e.size!==0,n=e.clear();return t&&cd(e,"clear",void 0,void 0),n}function ex(e,t){return function(r,o){const i=this,a=i.__v_raw,s=fr(a),l=t?gN:e?yN:gO;return!e&&tl(s,"iterate",Ug),a.forEach((u,d)=>r.call(o,l(u),l(d),i))}}function tx(e,t,n){return function(...r){const o=this.__v_raw,i=fr(o),a=dy(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=o[e](...r),d=n?gN:t?yN:gO;return!t&&tl(i,"iterate",l?NA:Ug),{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 mh(e){return function(...t){return e==="delete"?!1:this}}function Nre(){const e={get(i){return KS(this,i)},get size(){return JS(this)},has:qS,add:F8,set:z8,delete:Q8,clear:W8,forEach:ex(!1,!1)},t={get(i){return KS(this,i,!1,!0)},get size(){return JS(this)},has:qS,add:F8,set:z8,delete:Q8,clear:W8,forEach:ex(!1,!0)},n={get(i){return KS(this,i,!0)},get size(){return JS(this,!0)},has(i){return qS.call(this,i,!0)},add:mh("add"),set:mh("set"),delete:mh("delete"),clear:mh("clear"),forEach:ex(!0,!1)},r={get(i){return KS(this,i,!0,!0)},get size(){return JS(this,!0)},has(i){return qS.call(this,i,!0)},add:mh("add"),set:mh("set"),delete:mh("delete"),clear:mh("clear"),forEach:ex(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=tx(i,!1,!1),n[i]=tx(i,!0,!1),t[i]=tx(i,!1,!0),r[i]=tx(i,!0,!0)}),[e,n,t,r]}const[Ire,Dre,jre,Lre]=Nre();function vN(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(ar(n,o)&&o in r?n:r,o,i)}const Bre={get:vN(!1,!1)},Vre={get:vN(!1,!0)},Fre={get:vN(!0,!1)},UF=new WeakMap,HF=new WeakMap,XF=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(Yx(e))}function rr(e){return Ay(e)?e:mN(e,!1,ZF,Bre,UF)}function GF(e){return mN(e,!1,Rre,Vre,HF)}function c1(e){return mN(e,!0,Mre,Fre,XF)}function mN(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 hy(e){return Ay(e)?hy(e.__v_raw):!!(e&&e.__v_isReactive)}function Ay(e){return!!(e&&e.__v_isReadonly)}function Ak(e){return!!(e&&e.__v_isShallow)}function KF(e){return hy(e)||Ay(e)}function fr(e){const t=e&&e.__v_raw;return t?fr(t):e}function ld(e){return Pk(e,"__v_skip",!0),e}const gO=e=>Pn(e)?rr(e):e,yN=e=>Pn(e)?c1(e):e;function bN(e){Dh&&ic&&(e=fr(e),QF(e.dep||(e.dep=dN())))}function _N(e,t){e=fr(e);const n=e.dep;n&&IA(n)}function eo(e){return!!(e&&e.__v_isRef===!0)}function te(e){return qF(e,!1)}function Jr(e){return qF(e,!0)}function qF(e,t){return eo(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:fr(t),this._value=n?t:gO(t)}get value(){return bN(this),this._value}set value(t){const n=this.__v_isShallow||Ak(t)||Ay(t);t=n?t:fr(t),pO(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:gO(t),_N(this))}}function m(e){return eo(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 eo(o)&&!eo(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function JF(e){return hy(e)?e:new Proxy(e,Zre)}class Ure{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>bN(this),()=>_N(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]=Cr(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(fr(this._object),this._key)}}function Cr(e,t,n){const r=e[t];return eo(r)?r:new Xre(e,t,n)}var ez;class Gre{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[ez]=!1,this._dirty=!0,this.effect=new hN(t,()=>{this._dirty||(this._dirty=!0,_N(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=fr(this);return bN(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}ez="__v_isReadonly";function Kre(e,t,n=!1){let r,o;const i=nn(e);return i?(r=e,o=Vr):(r=e.get,o=e.set),new Gre(r,o,i||!o,n)}function qre(e,...t){}function jh(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){U2(i,t,n)}return o}function _u(e,t,n,r){if(nn(e)){const i=jh(e,t,n,r);return i&&hO(i)&&i.catch(a=>{U2(a,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(_u(e[i],t,n,r));return o}function U2(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){jh(l,null,10,[e,a,s]);return}}Jre(e,n,o,r)}function Jre(e,t,n,r=!0){console.error(e)}let vO=!1,DA=!1;const Ja=[];let Jc=0;const py=[];let od=null,Pg=0;const tz=Promise.resolve();let ON=null;function zt(e){const t=ON||tz;return e?t.then(this?e.bind(this):e):t}function eoe(e){let t=Jc+1,n=Ja.length;for(;t<n;){const r=t+n>>>1;mO(Ja[r])<e?t=r+1:n=r}return t}function wN(e){(!Ja.length||!Ja.includes(e,vO&&e.allowRecurse?Jc+1:Jc))&&(e.id==null?Ja.push(e):Ja.splice(eoe(e.id),0,e),nz())}function nz(){!vO&&!DA&&(DA=!0,ON=tz.then(oz))}function toe(e){const t=Ja.indexOf(e);t>Jc&&Ja.splice(t,1)}function noe(e){xt(e)?py.push(...e):(!od||!od.includes(e,e.allowRecurse?Pg+1:Pg))&&py.push(e),nz()}function Y8(e,t=vO?Jc+1:0){for(;t<Ja.length;t++){const n=Ja[t];n&&n.pre&&(Ja.splice(t,1),t--,n())}}function rz(e){if(py.length){const t=[...new Set(py)];if(py.length=0,od){od.push(...t);return}for(od=t,od.sort((n,r)=>mO(n)-mO(r)),Pg=0;Pg<od.length;Pg++)od[Pg]();od=null,Pg=0}}const mO=e=>e.id==null?1/0:e.id,roe=(e,t)=>{const n=mO(e)-mO(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function oz(e){DA=!1,vO=!0,Ja.sort(roe);const t=Vr;try{for(Jc=0;Jc<Ja.length;Jc++){const n=Ja[Jc];n&&n.active!==!1&&jh(n,null,14)}}finally{Jc=0,Ja.length=0,rz(),vO=!1,ON=null,(Ja.length||py.length)&&oz()}}function ooe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Zo;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]||Zo;v&&(o=n.map(y=>Gt(y)?y.trim():y)),p&&(o=n.map(MA))}let s,l=r[s=V_(t)]||r[s=V_(ku(t))];!l&&i&&(l=r[s=V_(hp(t))]),l&&_u(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,_u(u,e,6,o)}}function iz(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=iz(u,t,!0);d&&(s=!0,fa(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):fa(a,i),Pn(e)&&r.set(e,a),a)}function H2(e,t){return!e||!Q2(t)?!1:(t=t.slice(2).replace(/Once$/,""),ar(e,t[0].toLowerCase()+t.slice(1))||ar(e,hp(t))||ar(e,t))}let Ia=null,X2=null;function Mk(e){const t=Ia;return Ia=e,X2=e&&e.type.__scopeId||null,t}function ioe(e){X2=e}function aoe(){X2=null}function le(e,t=Ia,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&nL(-1);const i=Mk(t);let a;try{a=e(...o)}finally{Mk(i),r._d&&nL(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function g$(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 P=Mk(e);try{if(n.shapeFlag&4){const T=o||r;k=Kc(d.call(T,T,p,i,y,v,w)),C=l}else{const T=t;k=Kc(T.length>1?T(i,{attrs:l,slots:s,emit:u}):T(i,null)),C=t.props?l:soe(l)}}catch(T){W_.length=0,U2(T,e,1),k=re(Ss)}let $=k;if(C&&b!==!1){const T=Object.keys(C),{shapeFlag:A}=$;T.length&&A&7&&(a&&T.some(uN)&&(C=loe(C,a)),$=fd($,C))}return n.dirs&&($=fd($),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),k=$,Mk(P),k}const soe=e=>{let t;for(const n in e)(n==="class"||n==="style"||Q2(n))&&((t||(t={}))[n]=e[n]);return t},loe=(e,t)=>{const n={};for(const r in e)(!uN(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?Z8(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]&&!H2(u,v))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?Z8(r,a,u):!0:!!a;return!1}function Z8(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]&&!H2(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(Ei){let n=Ei.provides;const r=Ei.parent&&Ei.parent.provides;r===n&&(n=Ei.provides=Object.create(r)),n[e]=t}}function Pt(e,t,n=!1){const r=Ei||Ia;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 Da(e,t){return SN(e,null,t)}const nx={};function at(e,t,n){return SN(e,t,n)}function SN(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=Zo){const s=LF()===(Ei==null?void 0:Ei.scope)?Ei:null;let l,u=!1,d=!1;if(eo(e)?(l=()=>e.value,u=Ak(e)):hy(e)?(l=()=>e,r=!0):xt(e)?(d=!0,u=e.some($=>hy($)||Ak($)),l=()=>e.map($=>{if(eo($))return $.value;if(hy($))return Lg($);if(nn($))return jh($,s,2)})):nn(e)?t?l=()=>jh(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return p&&p(),_u(e,s,3,[v])}:l=Vr,t&&r){const $=l;l=()=>Lg($())}let p,v=$=>{p=C.onStop=()=>{jh($,s,4)}},y;if(OO)if(v=Vr,t?n&&_u(t,s,3,[l(),d?[]:void 0,v]):l(),o==="sync"){const $=Joe();y=$.__watcherHandles||($.__watcherHandles=[])}else return Vr;let w=d?new Array(e.length).fill(nx):nx;const b=()=>{if(!!C.active)if(t){const $=C.run();(r||u||(d?$.some((T,A)=>pO(T,w[A])):pO($,w)))&&(p&&p(),_u(t,s,3,[$,w===nx?void 0:d&&w[0]===nx?[]:w,v]),w=$)}else C.run()};b.allowRecurse=!!t;let k;o==="sync"?k=b:o==="post"?k=()=>Ws(b,s&&s.suspense):(b.pre=!0,s&&(b.id=s.uid),k=()=>wN(b));const C=new hN(l,k);t?n?b():w=C.run():o==="post"?Ws(C.run.bind(C),s&&s.suspense):C.run();const P=()=>{C.stop(),s&&s.scope&&cN(s.scope.effects,C)};return y&&y.push(P),P}function hoe(e,t,n){const r=this.proxy,o=Gt(e)?e.includes(".")?az(r,e):()=>r[e]:e.bind(r,r);let i;nn(t)?i=t:(i=t.handler,n=t);const a=Ei;My(this);const s=SN(o,i.bind(r),n);return a?My(a):Hg(),s}function az(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 Lg(e,t){if(!Pn(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),eo(e))Lg(e.value,t);else if(xt(e))for(let n=0;n<e.length;n++)Lg(e[n],t);else if(W2(e)||dy(e))e.forEach(n=>{Lg(n,t)});else if(Tk(e))for(const n in e)Lg(e[n],t);return e}function sz(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vn(()=>{e.isMounted=!0}),Hr(()=>{e.isUnmounting=!0}),e}const su=[Function,Array],poe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:su,onEnter:su,onAfterEnter:su,onEnterCancelled:su,onBeforeLeave:su,onLeave:su,onAfterLeave:su,onLeaveCancelled:su,onBeforeAppear:su,onAppear:su,onAfterAppear:su,onAppearCancelled:su},setup(e,{slots:t}){const n=Cn(),r=sz();let o;return()=>{const i=t.default&&xN(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==Ss){a=b;break}}const s=fr(e),{mode:l}=s;if(r.isLeaving)return v$(a);const u=U8(a);if(!u)return v$(a);const d=yO(u,s,r,n);bO(u,d);const p=n.subTree,v=p&&U8(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!==Ss&&(!$g(u,v)||y)){const b=yO(v,s,r,n);if(bO(v,b),l==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},v$(a);l==="in-out"&&u.type!==Ss&&(b.delayLeave=(k,C,P)=>{const $=uz(r,v);$[String(v.key)]=v,k._leaveCb=()=>{C(),k._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=P})}return a}}},lz=poe;function uz(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 yO(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:P}=t,$=String(e.key),T=uz(n,e),A=(N,I)=>{N&&_u(N,r,9,I)},R=(N,I)=>{const D=I[1];A(N,I),xt(N)?N.every(j=>j.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=T[$];D&&$g(e,D)&&D.el._leaveCb&&D.el._leaveCb(),A(I,[N])},enter(N){let I=l,D=u,j=d;if(!n.isMounted)if(o)I=k||l,D=C||u,j=P||d;else return;let F=!1;const G=N._enterCb=ae=>{F||(F=!0,ae?A(j,[N]):A(D,[N]),B.delayedLeave&&B.delayedLeave(),N._enterCb=void 0)};I?R(I,[N,G]):G()},leave(N,I){const D=String(e.key);if(N._enterCb&&N._enterCb(!0),n.isUnmounting)return I();A(p,[N]);let j=!1;const F=N._leaveCb=G=>{j||(j=!0,I(),G?A(w,[N]):A(y,[N]),N._leaveCb=void 0,T[D]===e&&delete T[D])};T[D]=e,v?R(v,[N,F]):F()},clone(N){return yO(N,t,n,r)}};return B}function v$(e){if(G2(e))return e=fd(e),e.children=null,e}function U8(e){return G2(e)?e.children?e.children[0]:void 0:e}function bO(e,t){e.shapeFlag&6&&e.component?bO(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 xN(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===Tt?(a.patchFlag&128&&o++,r=r.concat(xN(a.children,t,s))):(t||a.type!==Ss)&&r.push(s!=null?fd(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function xe(e){return nn(e)?{setup:e,name:e.name}:e}const F_=e=>!!e.type.__asyncLoader,G2=e=>e.type.__isKeepAlive;function kN(e,t){fz(e,"a",t)}function cz(e,t){fz(e,"da",t)}function fz(e,t,n=Ei){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(K2(t,r,n),n){let o=n.parent;for(;o&&o.parent;)G2(o.parent.vnode)&&goe(r,t,n,o),o=o.parent}}function goe(e,t,n,r){const o=K2(t,e,r,!0);pp(()=>{cN(r[t],o)},n)}function K2(e,t,n=Ei,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;n0(),My(n);const s=_u(t,n,e,a);return Hg(),r0(),s});return r?o.unshift(i):o.push(i),i}}const bd=e=>(t,n=Ei)=>(!OO||e==="sp")&&K2(e,(...r)=>t(...r),n),q2=bd("bm"),vn=bd("m"),dz=bd("bu"),vc=bd("u"),Hr=bd("bum"),pp=bd("um"),voe=bd("sp"),moe=bd("rtg"),yoe=bd("rtc");function boe(e,t=Ei){K2("ec",e,t)}function yn(e,t){const n=Ia;if(n===null)return e;const r=tC(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,s,l,u=Zo]=t[i];a&&(nn(a)&&(a={mounted:a,updated:a}),a.deep&&Lg(s),o.push({dir:a,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function Og(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&&(n0(),_u(l,n,8,[e.el,s,e,t]),r0())}}const CN="components",_oe="directives";function Tn(e,t){return EN(CN,e,!0,t)||e}const hz=Symbol();function Dn(e){return Gt(e)?EN(CN,e,!1)||e:e||hz}function J2(e){return EN(_oe,e)}function EN(e,t,n=!0,r=!1){const o=Ia||Ei;if(o){const i=o.type;if(e===CN){const s=Goe(i,!1);if(s&&(s===t||s===ku(t)||s===u1(ku(t))))return i}const a=H8(o[e]||i[e],t)||H8(o.appContext[e],t);return!a&&r?i:a}}function H8(e,t){return e&&(e[t]||e[ku(t)]||e[u1(ku(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 Dl(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 Ge(e,t,n={},r,o){if(Ia.isCE||Ia.parent&&F_(Ia.parent)&&Ia.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&&pz(i(n)),s=Qe(Tt,{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 pz(e){return e.some(t=>_o(t)?!(t.type===Ss||t.type===Tt&&!pz(t.children)):!0)?e:null}function Ooe(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:V_(r)]=e[r];return n}const jA=e=>e?kz(e)?tC(e)||e.proxy:jA(e.parent):null,z_=fa(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=>jA(e.parent),$root:e=>jA(e.root),$emit:e=>e.emit,$options:e=>TN(e),$forceUpdate:e=>e.f||(e.f=()=>wN(e.update)),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>hoe.bind(e)}),m$=(e,t)=>e!==Zo&&!e.__isScriptSetup&&ar(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(m$(r,t))return a[t]=1,r[t];if(o!==Zo&&ar(o,t))return a[t]=2,o[t];if((u=e.propsOptions[0])&&ar(u,t))return a[t]=3,i[t];if(n!==Zo&&ar(n,t))return a[t]=4,n[t];LA&&(a[t]=0)}}const d=z_[t];let p,v;if(d)return t==="$attrs"&&tl(e,"get",t),d(e);if((p=s.__cssModules)&&(p=p[t]))return p;if(n!==Zo&&ar(n,t))return a[t]=4,n[t];if(v=l.config.globalProperties,ar(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return m$(o,t)?(o[t]=n,!0):r!==Zo&&ar(r,t)?(r[t]=n,!0):ar(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!==Zo&&ar(e,a)||m$(t,a)||(s=i[0])&&ar(s,a)||ar(r,a)||ar(z_,a)||ar(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ar(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let LA=!0;function Soe(e){const t=TN(e),n=e.proxy,r=e.ctx;LA=!1,t.beforeCreate&&X8(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:P,destroyed:$,unmounted:T,render:A,renderTracked:R,renderTriggered:B,errorCaptured:N,serverPrefetch:I,expose:D,inheritAttrs:j,components:F,directives:G,filters:ae}=t;if(u&&xoe(u,r,null,e.appContext.config.unwrapInjectedRef),a)for(const oe in a){const J=a[oe];nn(J)&&(r[oe]=J.bind(n))}if(o){const oe=o.call(n,n);Pn(oe)&&(e.data=rr(oe))}if(LA=!0,i)for(const oe in i){const J=i[oe],z=nn(J)?J.bind(n,n):nn(J.get)?J.get.bind(n,n):Vr,X=!nn(J)&&nn(J.set)?J.set.bind(n):Vr,ee=W({get:z,set:X});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>ee.value,set:he=>ee.value=he})}if(s)for(const oe in s)gz(s[oe],r,n,oe);if(l){const oe=nn(l)?l.call(n):l;Reflect.ownKeys(oe).forEach(J=>{Wn(J,oe[J])})}d&&X8(d,e,"c");function H(oe,J){xt(J)?J.forEach(z=>oe(z.bind(n))):J&&oe(J.bind(n))}if(H(q2,p),H(vn,v),H(dz,y),H(vc,w),H(kN,b),H(cz,k),H(boe,N),H(yoe,R),H(moe,B),H(Hr,P),H(pp,T),H(voe,I),xt(D))if(D.length){const oe=e.exposed||(e.exposed={});D.forEach(J=>{Object.defineProperty(oe,J,{get:()=>n[J],set:z=>n[J]=z})})}else e.exposed||(e.exposed={});A&&e.render===Vr&&(e.render=A),j!=null&&(e.inheritAttrs=j),F&&(e.components=F),G&&(e.directives=G)}function xoe(e,t,n=Vr,r=!1){xt(e)&&(e=BA(e));for(const o in e){const i=e[o];let a;Pn(i)?"default"in i?a=Pt(i.from||o,i.default,!0):a=Pt(i.from||o):a=Pt(i),eo(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[o]=a}}function X8(e,t,n){_u(xt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function gz(e,t,n,r){const o=r.includes(".")?az(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=>gz(i,t,n,r));else{const i=nn(e.handler)?e.handler.bind(n):t[e.handler];nn(i)&&at(o,i,e)}}function TN(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=>Rk(l,u,a,!0)),Rk(l,t,a)),Pn(t)&&i.set(t,l),l}function Rk(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Rk(e,i,n,!0),o&&o.forEach(a=>Rk(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:G8,props:Eg,emits:Eg,methods:Eg,computed:Eg,beforeCreate:_s,created:_s,beforeMount:_s,mounted:_s,beforeUpdate:_s,updated:_s,beforeDestroy:_s,beforeUnmount:_s,destroyed:_s,unmounted:_s,activated:_s,deactivated:_s,errorCaptured:_s,serverPrefetch:_s,components:Eg,directives:Eg,watch:Eoe,provide:G8,inject:Coe};function G8(e,t){return t?e?function(){return fa(nn(e)?e.call(this,this):e,nn(t)?t.call(this,this):t)}:t:e}function Coe(e,t){return Eg(BA(e),BA(t))}function BA(e){if(xt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _s(e,t){return e?[...new Set([].concat(e,t))]:t}function Eg(e,t){return e?fa(fa(Object.create(null),e),t):t}function Eoe(e,t){if(!e)return t;if(!t)return e;const n=fa(Object.create(null),e);for(const r in t)n[r]=_s(e[r],t[r]);return n}function Toe(e,t,n,r=!1){const o={},i={};Pk(i,eC,1),e.propsDefaults=Object.create(null),vz(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:GF(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=fr(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(H2(e.emitsOptions,v))continue;const y=t[v];if(l)if(ar(i,v))y!==i[v]&&(i[v]=y,u=!0);else{const w=ku(v);o[w]=VA(l,s,w,y,e,!1)}else y!==i[v]&&(i[v]=y,u=!0)}}}else{vz(e,t,o,i)&&(u=!0);let d;for(const p in s)(!t||!ar(t,p)&&((d=hp(p))===p||!ar(t,d)))&&(l?n&&(n[p]!==void 0||n[d]!==void 0)&&(o[p]=VA(l,s,p,void 0,e,!0)):delete o[p]);if(i!==s)for(const p in i)(!t||!ar(t,p)&&!0)&&(delete i[p],u=!0)}u&&cd(e,"set","$attrs")}function vz(e,t,n,r){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(Zx(l))continue;const u=t[l];let d;o&&ar(o,d=ku(l))?!i||!i.includes(d)?n[d]=u:(s||(s={}))[d]=u:H2(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(i){const l=fr(n),u=s||Zo;for(let d=0;d<i.length;d++){const p=i[d];n[p]=VA(o,l,p,u[p],e,!ar(u,p))}}return a}function VA(e,t,n,r,o,i){const a=e[n];if(a!=null){const s=ar(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]:(My(o),r=u[n]=l.call(null,t),Hg())}else r=l}a[0]&&(i&&!s?r=!1:a[1]&&(r===""||r===hp(n))&&(r=!0))}return r}function mz(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]=mz(p,t,!0);fa(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,fy),fy;if(xt(i))for(let d=0;d<i.length;d++){const p=ku(i[d]);K8(p)&&(a[p]=Zo)}else if(i)for(const d in i){const p=ku(d);if(K8(p)){const v=i[d],y=a[p]=xt(v)||nn(v)?{type:v}:Object.assign({},v);if(y){const w=eL(Boolean,y.type),b=eL(String,y.type);y[0]=w>-1,y[1]=b<0||w<b,(w>-1||ar(y,"default"))&&s.push(p)}}}const u=[a,s];return Pn(e)&&r.set(e,u),u}function K8(e){return e[0]!=="$"}function q8(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function J8(e,t){return q8(e)===q8(t)}function eL(e,t){return xt(t)?t.findIndex(n=>J8(n,e)):nn(t)&&J8(t,e)?0:-1}const yz=e=>e[0]==="_"||e==="$stable",PN=e=>xt(e)?e.map(Kc):[Kc(e)],$oe=(e,t,n)=>{if(t._n)return t;const r=le((...o)=>PN(t(...o)),n);return r._c=!1,r},bz=(e,t,n)=>{const r=e._ctx;for(const o in e){if(yz(o))continue;const i=e[o];if(nn(i))t[o]=$oe(o,i,r);else if(i!=null){const a=PN(i);t[o]=()=>a}}},_z=(e,t)=>{const n=PN(t);e.slots.default=()=>n},Aoe=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=fr(t),Pk(t,"_",n)):bz(t,e.slots={})}else e.slots={},t&&_z(e,t);Pk(e.slots,eC,1)},Moe=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Zo;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(fa(o,t),!n&&s===1&&delete o._):(i=!t.$stable,bz(t,o)),a=t}else t&&(_z(e,t),a={default:1});if(i)for(const s in o)!yz(s)&&!(s in a)&&delete o[s]};function Oz(){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=Oz(),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,tC(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 FA(e,t,n,r,o=!1){if(xt(e)){e.forEach((v,y)=>FA(v,t&&(xt(t)?t[y]:t),n,r,o));return}if(F_(r)&&!o)return;const i=r.shapeFlag&4?tC(r.component)||r.component.proxy:r.el,a=o?null:i,{i:s,r:l}=e,u=t&&t.r,d=s.refs===Zo?s.refs={}:s.refs,p=s.setupState;if(u!=null&&u!==l&&(Gt(u)?(d[u]=null,ar(p,u)&&(p[u]=null)):eo(u)&&(u.value=null)),nn(l))jh(l,s,12,[a,d]);else{const v=Gt(l),y=eo(l);if(v||y){const w=()=>{if(e.f){const b=v?ar(p,l)?p[l]:d[l]:l.value;o?xt(b)&&cN(b,i):xt(b)?b.includes(i)||b.push(i):v?(d[l]=[i],ar(p,l)&&(p[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else v?(d[l]=a,ar(p,l)&&(p[l]=a)):y&&(l.value=a,e.k&&(d[e.k]=a))};a?(w.id=-1,Ws(w,n)):w()}}}const Ws=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=Vr,insertStaticContent:w}=e,b=(ce,be,pe,Me=null,Ze=null,Be=null,$e=!1,Je=null,Oe=!!be.dynamicChildren)=>{if(ce===be)return;ce&&!$g(ce,be)&&(Me=Ae(ce),he(ce,Ze,Be,!0),ce=null),be.patchFlag===-2&&(Oe=!1,be.dynamicChildren=null);const{type:Ye,ref:ut,shapeFlag:qe}=be;switch(Ye){case o0:k(ce,be,pe,Me);break;case Ss:C(ce,be,pe,Me);break;case y$:ce==null&&P(be,pe,Me,$e);break;case Tt:F(ce,be,pe,Me,Ze,Be,$e,Je,Oe);break;default:qe&1?A(ce,be,pe,Me,Ze,Be,$e,Je,Oe):qe&6?G(ce,be,pe,Me,Ze,Be,$e,Je,Oe):(qe&64||qe&128)&&Ye.process(ce,be,pe,Me,Ze,Be,$e,Je,Oe,ye)}ut!=null&&Ze&&FA(ut,ce&&ce.ref,Be,be||ce,!be)},k=(ce,be,pe,Me)=>{if(ce==null)r(be.el=s(be.children),pe,Me);else{const Ze=be.el=ce.el;be.children!==ce.children&&u(Ze,be.children)}},C=(ce,be,pe,Me)=>{ce==null?r(be.el=l(be.children||""),pe,Me):be.el=ce.el},P=(ce,be,pe,Me)=>{[ce.el,ce.anchor]=w(ce.children,be,pe,Me,ce.el,ce.anchor)},$=({el:ce,anchor:be},pe,Me)=>{let Ze;for(;ce&&ce!==be;)Ze=v(ce),r(ce,pe,Me),ce=Ze;r(be,pe,Me)},T=({el:ce,anchor:be})=>{let pe;for(;ce&&ce!==be;)pe=v(ce),o(ce),ce=pe;o(be)},A=(ce,be,pe,Me,Ze,Be,$e,Je,Oe)=>{$e=$e||be.type==="svg",ce==null?R(be,pe,Me,Ze,Be,$e,Je,Oe):I(ce,be,Ze,Be,$e,Je,Oe)},R=(ce,be,pe,Me,Ze,Be,$e,Je)=>{let Oe,Ye;const{type:ut,props:qe,shapeFlag:ot,transition:ft,dirs:kt}=ce;if(Oe=ce.el=a(ce.type,Be,qe&&qe.is,qe),ot&8?d(Oe,ce.children):ot&16&&N(ce.children,Oe,null,Me,Ze,Be&&ut!=="foreignObject",$e,Je),kt&&Og(ce,null,Me,"created"),B(Oe,ce,ce.scopeId,$e,Me),qe){for(const Ct in qe)Ct!=="value"&&!Zx(Ct)&&i(Oe,Ct,null,qe[Ct],Be,ce.children,Me,Ze,ze);"value"in qe&&i(Oe,"value",null,qe.value),(Ye=qe.onVnodeBeforeMount)&&Zc(Ye,Me,ce)}kt&&Og(ce,null,Me,"beforeMount");const Wt=(!Ze||Ze&&!Ze.pendingBranch)&&ft&&!ft.persisted;Wt&&ft.beforeEnter(Oe),r(Oe,be,pe),((Ye=qe&&qe.onVnodeMounted)||Wt||kt)&&Ws(()=>{Ye&&Zc(Ye,Me,ce),Wt&&ft.enter(Oe),kt&&Og(ce,null,Me,"mounted")},Ze)},B=(ce,be,pe,Me,Ze)=>{if(pe&&y(ce,pe),Me)for(let Be=0;Be<Me.length;Be++)y(ce,Me[Be]);if(Ze){let Be=Ze.subTree;if(be===Be){const $e=Ze.vnode;B(ce,$e,$e.scopeId,$e.slotScopeIds,Ze.parent)}}},N=(ce,be,pe,Me,Ze,Be,$e,Je,Oe=0)=>{for(let Ye=Oe;Ye<ce.length;Ye++){const ut=ce[Ye]=Je?xh(ce[Ye]):Kc(ce[Ye]);b(null,ut,be,pe,Me,Ze,Be,$e,Je)}},I=(ce,be,pe,Me,Ze,Be,$e)=>{const Je=be.el=ce.el;let{patchFlag:Oe,dynamicChildren:Ye,dirs:ut}=be;Oe|=ce.patchFlag&16;const qe=ce.props||Zo,ot=be.props||Zo;let ft;pe&&wg(pe,!1),(ft=ot.onVnodeBeforeUpdate)&&Zc(ft,pe,be,ce),ut&&Og(be,ce,pe,"beforeUpdate"),pe&&wg(pe,!0);const kt=Ze&&be.type!=="foreignObject";if(Ye?D(ce.dynamicChildren,Ye,Je,pe,Me,kt,Be):$e||J(ce,be,Je,null,pe,Me,kt,Be,!1),Oe>0){if(Oe&16)j(Je,be,qe,ot,pe,Me,Ze);else if(Oe&2&&qe.class!==ot.class&&i(Je,"class",null,ot.class,Ze),Oe&4&&i(Je,"style",qe.style,ot.style,Ze),Oe&8){const Wt=be.dynamicProps;for(let Ct=0;Ct<Wt.length;Ct++){const ln=Wt[Ct],Ce=qe[ln],He=ot[ln];(He!==Ce||ln==="value")&&i(Je,ln,Ce,He,Ze,ce.children,pe,Me,ze)}}Oe&1&&ce.children!==be.children&&d(Je,be.children)}else!$e&&Ye==null&&j(Je,be,qe,ot,pe,Me,Ze);((ft=ot.onVnodeUpdated)||ut)&&Ws(()=>{ft&&Zc(ft,pe,be,ce),ut&&Og(be,ce,pe,"updated")},Me)},D=(ce,be,pe,Me,Ze,Be,$e)=>{for(let Je=0;Je<be.length;Je++){const Oe=ce[Je],Ye=be[Je],ut=Oe.el&&(Oe.type===Tt||!$g(Oe,Ye)||Oe.shapeFlag&70)?p(Oe.el):pe;b(Oe,Ye,ut,null,Me,Ze,Be,$e,!0)}},j=(ce,be,pe,Me,Ze,Be,$e)=>{if(pe!==Me){if(pe!==Zo)for(const Je in pe)!Zx(Je)&&!(Je in Me)&&i(ce,Je,pe[Je],null,$e,be.children,Ze,Be,ze);for(const Je in Me){if(Zx(Je))continue;const Oe=Me[Je],Ye=pe[Je];Oe!==Ye&&Je!=="value"&&i(ce,Je,Ye,Oe,$e,be.children,Ze,Be,ze)}"value"in Me&&i(ce,"value",pe.value,Me.value)}},F=(ce,be,pe,Me,Ze,Be,$e,Je,Oe)=>{const Ye=be.el=ce?ce.el:s(""),ut=be.anchor=ce?ce.anchor:s("");let{patchFlag:qe,dynamicChildren:ot,slotScopeIds:ft}=be;ft&&(Je=Je?Je.concat(ft):ft),ce==null?(r(Ye,pe,Me),r(ut,pe,Me),N(be.children,pe,ut,Ze,Be,$e,Je,Oe)):qe>0&&qe&64&&ot&&ce.dynamicChildren?(D(ce.dynamicChildren,ot,pe,Ze,Be,$e,Je),(be.key!=null||Ze&&be===Ze.subTree)&&$N(ce,be,!0)):J(ce,be,pe,ut,Ze,Be,$e,Je,Oe)},G=(ce,be,pe,Me,Ze,Be,$e,Je,Oe)=>{be.slotScopeIds=Je,ce==null?be.shapeFlag&512?Ze.ctx.activate(be,pe,Me,$e,Oe):ae(be,pe,Me,Ze,Be,$e,Oe):K(ce,be,Oe)},ae=(ce,be,pe,Me,Ze,Be,$e)=>{const Je=ce.component=Zoe(ce,Me,Ze);if(G2(ce)&&(Je.ctx.renderer=ye),Uoe(Je),Je.asyncDep){if(Ze&&Ze.registerDep(Je,H),!ce.el){const Oe=Je.subTree=re(Ss);C(null,Oe,be,pe)}return}H(Je,ce,be,pe,Ze,Be,$e)},K=(ce,be,pe)=>{const Me=be.component=ce.component;if(uoe(ce,be,pe))if(Me.asyncDep&&!Me.asyncResolved){oe(Me,be,pe);return}else Me.next=be,toe(Me.update),Me.update();else be.el=ce.el,Me.vnode=be},H=(ce,be,pe,Me,Ze,Be,$e)=>{const Je=()=>{if(ce.isMounted){let{next:ut,bu:qe,u:ot,parent:ft,vnode:kt}=ce,Wt=ut,Ct;wg(ce,!1),ut?(ut.el=kt.el,oe(ce,ut,$e)):ut=kt,qe&&Ux(qe),(Ct=ut.props&&ut.props.onVnodeBeforeUpdate)&&Zc(Ct,ft,ut,kt),wg(ce,!0);const ln=g$(ce),Ce=ce.subTree;ce.subTree=ln,b(Ce,ln,p(Ce.el),Ae(Ce),ce,Ze,Be),ut.el=ln.el,Wt===null&&coe(ce,ln.el),ot&&Ws(ot,Ze),(Ct=ut.props&&ut.props.onVnodeUpdated)&&Ws(()=>Zc(Ct,ft,ut,kt),Ze)}else{let ut;const{el:qe,props:ot}=be,{bm:ft,m:kt,parent:Wt}=ce,Ct=F_(be);if(wg(ce,!1),ft&&Ux(ft),!Ct&&(ut=ot&&ot.onVnodeBeforeMount)&&Zc(ut,Wt,be),wg(ce,!0),qe&&Se){const ln=()=>{ce.subTree=g$(ce),Se(qe,ce.subTree,ce,Ze,null)};Ct?be.type.__asyncLoader().then(()=>!ce.isUnmounted&&ln()):ln()}else{const ln=ce.subTree=g$(ce);b(null,ln,pe,Me,ce,Ze,Be),be.el=ln.el}if(kt&&Ws(kt,Ze),!Ct&&(ut=ot&&ot.onVnodeMounted)){const ln=be;Ws(()=>Zc(ut,Wt,ln),Ze)}(be.shapeFlag&256||Wt&&F_(Wt.vnode)&&Wt.vnode.shapeFlag&256)&&ce.a&&Ws(ce.a,Ze),ce.isMounted=!0,be=pe=Me=null}},Oe=ce.effect=new hN(Je,()=>wN(Ye),ce.scope),Ye=ce.update=()=>Oe.run();Ye.id=ce.uid,wg(ce,!0),Ye()},oe=(ce,be,pe)=>{be.component=ce;const Me=ce.vnode.props;ce.vnode=be,ce.next=null,Poe(ce,be.props,Me,pe),Moe(ce,be.children,pe),n0(),Y8(),r0()},J=(ce,be,pe,Me,Ze,Be,$e,Je,Oe=!1)=>{const Ye=ce&&ce.children,ut=ce?ce.shapeFlag:0,qe=be.children,{patchFlag:ot,shapeFlag:ft}=be;if(ot>0){if(ot&128){X(Ye,qe,pe,Me,Ze,Be,$e,Je,Oe);return}else if(ot&256){z(Ye,qe,pe,Me,Ze,Be,$e,Je,Oe);return}}ft&8?(ut&16&&ze(Ye,Ze,Be),qe!==Ye&&d(pe,qe)):ut&16?ft&16?X(Ye,qe,pe,Me,Ze,Be,$e,Je,Oe):ze(Ye,Ze,Be,!0):(ut&8&&d(pe,""),ft&16&&N(qe,pe,Me,Ze,Be,$e,Je,Oe))},z=(ce,be,pe,Me,Ze,Be,$e,Je,Oe)=>{ce=ce||fy,be=be||fy;const Ye=ce.length,ut=be.length,qe=Math.min(Ye,ut);let ot;for(ot=0;ot<qe;ot++){const ft=be[ot]=Oe?xh(be[ot]):Kc(be[ot]);b(ce[ot],ft,pe,null,Ze,Be,$e,Je,Oe)}Ye>ut?ze(ce,Ze,Be,!0,!1,qe):N(be,pe,Me,Ze,Be,$e,Je,Oe,qe)},X=(ce,be,pe,Me,Ze,Be,$e,Je,Oe)=>{let Ye=0;const ut=be.length;let qe=ce.length-1,ot=ut-1;for(;Ye<=qe&&Ye<=ot;){const ft=ce[Ye],kt=be[Ye]=Oe?xh(be[Ye]):Kc(be[Ye]);if($g(ft,kt))b(ft,kt,pe,null,Ze,Be,$e,Je,Oe);else break;Ye++}for(;Ye<=qe&&Ye<=ot;){const ft=ce[qe],kt=be[ot]=Oe?xh(be[ot]):Kc(be[ot]);if($g(ft,kt))b(ft,kt,pe,null,Ze,Be,$e,Je,Oe);else break;qe--,ot--}if(Ye>qe){if(Ye<=ot){const ft=ot+1,kt=ft<ut?be[ft].el:Me;for(;Ye<=ot;)b(null,be[Ye]=Oe?xh(be[Ye]):Kc(be[Ye]),pe,kt,Ze,Be,$e,Je,Oe),Ye++}}else if(Ye>ot)for(;Ye<=qe;)he(ce[Ye],Ze,Be,!0),Ye++;else{const ft=Ye,kt=Ye,Wt=new Map;for(Ye=kt;Ye<=ot;Ye++){const Xe=be[Ye]=Oe?xh(be[Ye]):Kc(be[Ye]);Xe.key!=null&&Wt.set(Xe.key,Ye)}let Ct,ln=0;const Ce=ot-kt+1;let He=!1,me=0;const Ve=new Array(Ce);for(Ye=0;Ye<Ce;Ye++)Ve[Ye]=0;for(Ye=ft;Ye<=qe;Ye++){const Xe=ce[Ye];if(ln>=Ce){he(Xe,Ze,Be,!0);continue}let nt;if(Xe.key!=null)nt=Wt.get(Xe.key);else for(Ct=kt;Ct<=ot;Ct++)if(Ve[Ct-kt]===0&&$g(Xe,be[Ct])){nt=Ct;break}nt===void 0?he(Xe,Ze,Be,!0):(Ve[nt-kt]=Ye+1,nt>=me?me=nt:He=!0,b(Xe,be[nt],pe,null,Ze,Be,$e,Je,Oe),ln++)}const ke=He?joe(Ve):fy;for(Ct=ke.length-1,Ye=Ce-1;Ye>=0;Ye--){const Xe=kt+Ye,nt=be[Xe],Ft=Xe+1<ut?be[Xe+1].el:Me;Ve[Ye]===0?b(null,nt,pe,Ft,Ze,Be,$e,Je,Oe):He&&(Ct<0||Ye!==ke[Ct]?ee(nt,pe,Ft,2):Ct--)}}},ee=(ce,be,pe,Me,Ze=null)=>{const{el:Be,type:$e,transition:Je,children:Oe,shapeFlag:Ye}=ce;if(Ye&6){ee(ce.component.subTree,be,pe,Me);return}if(Ye&128){ce.suspense.move(be,pe,Me);return}if(Ye&64){$e.move(ce,be,pe,ye);return}if($e===Tt){r(Be,be,pe);for(let qe=0;qe<Oe.length;qe++)ee(Oe[qe],be,pe,Me);r(ce.anchor,be,pe);return}if($e===y$){$(ce,be,pe);return}if(Me!==2&&Ye&1&&Je)if(Me===0)Je.beforeEnter(Be),r(Be,be,pe),Ws(()=>Je.enter(Be),Ze);else{const{leave:qe,delayLeave:ot,afterLeave:ft}=Je,kt=()=>r(Be,be,pe),Wt=()=>{qe(Be,()=>{kt(),ft&&ft()})};ot?ot(Be,kt,Wt):Wt()}else r(Be,be,pe)},he=(ce,be,pe,Me=!1,Ze=!1)=>{const{type:Be,props:$e,ref:Je,children:Oe,dynamicChildren:Ye,shapeFlag:ut,patchFlag:qe,dirs:ot}=ce;if(Je!=null&&FA(Je,null,pe,ce,!0),ut&256){be.ctx.deactivate(ce);return}const ft=ut&1&&ot,kt=!F_(ce);let Wt;if(kt&&(Wt=$e&&$e.onVnodeBeforeUnmount)&&Zc(Wt,be,ce),ut&6)Ie(ce.component,pe,Me);else{if(ut&128){ce.suspense.unmount(pe,Me);return}ft&&Og(ce,null,be,"beforeUnmount"),ut&64?ce.type.remove(ce,be,pe,Ze,ye,Me):Ye&&(Be!==Tt||qe>0&&qe&64)?ze(Ye,be,pe,!1,!0):(Be===Tt&&qe&384||!Ze&&ut&16)&&ze(Oe,be,pe),Me&&fe(ce)}(kt&&(Wt=$e&&$e.onVnodeUnmounted)||ft)&&Ws(()=>{Wt&&Zc(Wt,be,ce),ft&&Og(ce,null,be,"unmounted")},pe)},fe=ce=>{const{type:be,el:pe,anchor:Me,transition:Ze}=ce;if(be===Tt){Le(pe,Me);return}if(be===y$){T(ce);return}const Be=()=>{o(pe),Ze&&!Ze.persisted&&Ze.afterLeave&&Ze.afterLeave()};if(ce.shapeFlag&1&&Ze&&!Ze.persisted){const{leave:$e,delayLeave:Je}=Ze,Oe=()=>$e(pe,Be);Je?Je(ce.el,Be,Oe):Oe()}else Be()},Le=(ce,be)=>{let pe;for(;ce!==be;)pe=v(ce),o(ce),ce=pe;o(be)},Ie=(ce,be,pe)=>{const{bum:Me,scope:Ze,update:Be,subTree:$e,um:Je}=ce;Me&&Ux(Me),Ze.stop(),Be&&(Be.active=!1,he($e,ce,be,pe)),Je&&Ws(Je,be),Ws(()=>{ce.isUnmounted=!0},be),be&&be.pendingBranch&&!be.isUnmounted&&ce.asyncDep&&!ce.asyncResolved&&ce.suspenseId===be.pendingId&&(be.deps--,be.deps===0&&be.resolve())},ze=(ce,be,pe,Me=!1,Ze=!1,Be=0)=>{for(let $e=Be;$e<ce.length;$e++)he(ce[$e],be,pe,Me,Ze)},Ae=ce=>ce.shapeFlag&6?Ae(ce.component.subTree):ce.shapeFlag&128?ce.suspense.next():v(ce.anchor||ce.el),_e=(ce,be,pe)=>{ce==null?be._vnode&&he(be._vnode,null,null,!0):b(be._vnode||null,ce,be,null,null,null,pe),Y8(),rz(),be._vnode=ce},ye={p:b,um:he,m:ee,r:fe,mt:ae,mc:N,pc:J,pbc:D,n:Ae,o:e};let Ne,Se;return t&&([Ne,Se]=t(ye)),{render:_e,hydrate:Ne,createApp:Noe(_e,Ne)}}function wg({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function $N(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]=xh(o[i]),s.el=a.el),n||$N(a,s)),s.type===o0&&(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,Q_=e=>e&&(e.disabled||e.disabled===""),tL=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,zA=(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=Q_(t.props);let{shapeFlag:P,children:$,dynamicChildren:T}=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=zA(t.props,w),N=t.targetAnchor=b("");B&&(y(N,B),a=a||tL(B));const I=(D,j)=>{P&16&&d($,D,j,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=Q_(e.props),I=N?n:R,D=N?A:B;if(a=a||tL(R),T?(v(e.dynamicChildren,T,I,o,i,a,s),$N(e,t,!0)):l||p(e,t,I,D,o,i,a,s,!1),C)N||rx(t,n,A,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=zA(t.props,w);j&&rx(t,j,null,u,0)}else N&&rx(t,R,B,u,1)}wz(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||!Q_(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:rx,hydrate:Voe};function rx(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||Q_(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=zA(t.props,l);if(d){const p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(Q_(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)}wz(t)}return t.anchor&&a(t.anchor)}const Foe=Boe;function wz(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 Tt=Symbol(void 0),o0=Symbol(void 0),Ss=Symbol(void 0),y$=Symbol(void 0),W_=[];let sc=null;function Z(e=!1){W_.push(sc=e?null:[])}function zoe(){W_.pop(),sc=W_[W_.length-1]||null}let _O=1;function nL(e){_O+=e}function Sz(e){return e.dynamicChildren=_O>0?sc||fy:null,zoe(),_O>0&&sc&&sc.push(e),e}function ue(e,t,n,r,o,i){return Sz(ve(e,t,n,r,o,i,!0))}function Qe(e,t,n,r,o){return Sz(re(e,t,n,r,o,!0))}function _o(e){return e?e.__v_isVNode===!0:!1}function $g(e,t){return e.type===t.type&&e.key===t.key}const eC="__vInternal",xz=({key:e})=>e!=null?e:null,Hx=({ref:e,ref_key:t,ref_for:n})=>e!=null?Gt(e)||eo(e)||nn(e)?{i:Ia,r:e,k:t,f:!!n}:e:null;function ve(e,t=null,n=null,r=0,o=null,i=e===Tt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xz(t),ref:t&&Hx(t),scopeId:X2,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:Ia};return s?(AN(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Gt(n)?8:16),_O>0&&!a&&sc&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&sc.push(l),l}const re=Qoe;function Qoe(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===hz)&&(e=Ss),_o(e)){const s=fd(e,t,!0);return n&&AN(s,n),_O>0&&!i&&sc&&(s.shapeFlag&6?sc[sc.indexOf(e)]=s:sc.push(s)),s.patchFlag|=-2,s}if(Koe(e)&&(e=e.__vccOpts),t){t=Zh(t);let{class:s,style:l}=t;s&&!Gt(s)&&(t.class=q(s)),Pn(l)&&(KF(l)&&!xt(l)&&(l=fa({},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 Zh(e){return e?KF(e)||eC in e?fa({},e):e:null}function fd(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&&xz(s),ref:t&&t.ref?n&&o?xt(o)?o.concat(Hx(t)):[o,Hx(t)]:Hx(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!==Tt?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&&fd(e.ssContent),ssFallback:e.ssFallback&&fd(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function St(e=" ",t=0){return re(o0,null,e,t)}function Fe(e="",t=!1){return t?(Z(),Qe(Ss,null,e)):re(Ss,null,e)}function Kc(e){return e==null||typeof e=="boolean"?re(Ss):xt(e)?re(Tt,null,e.slice()):typeof e=="object"?xh(e):re(o0,null,String(e))}function xh(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fd(e)}function AN(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),AN(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(eC in t)?t._ctx=Ia:o===3&&Ia&&(Ia.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else nn(t)?(t={default:t,_ctx:Ia},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=q([t.class,r.class]));else if(o==="style")t.style=Vt([t.style,r.style]);else if(Q2(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 Zc(e,t,n,r=null){_u(e,t,7,[n,r])}const Woe=Oz();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 jF(!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:mz(r,o),emitsOptions:iz(r,o),emit:null,emitted:null,propsDefaults:Zo,inheritAttrs:r.inheritAttrs,ctx:Zo,data:Zo,props:Zo,attrs:Zo,slots:Zo,refs:Zo,setupState:Zo,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 Ei=null;const Cn=()=>Ei||Ia,My=e=>{Ei=e,e.scope.on()},Hg=()=>{Ei&&Ei.scope.off(),Ei=null};function kz(e){return e.vnode.shapeFlag&4}let OO=!1;function Uoe(e,t=!1){OO=t;const{props:n,children:r}=e.vnode,o=kz(e);Toe(e,n,o,t),Aoe(e,r);const i=o?Hoe(e,t):void 0;return OO=!1,i}function Hoe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ld(new Proxy(e.ctx,woe));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Ez(e):null;My(e),n0();const i=jh(r,e,0,[e.props,o]);if(r0(),Hg(),hO(i)){if(i.then(Hg,Hg),t)return i.then(a=>{rL(e,a,t)}).catch(a=>{U2(a,e,0)});e.asyncDep=i}else rL(e,i,t)}else Cz(e,t)}function rL(e,t,n){nn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pn(t)&&(e.setupState=JF(t)),Cz(e,n)}let oL;function Cz(e,t,n){const r=e.type;if(!e.render){if(!t&&oL&&!r.render){const o=r.template||TN(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=fa(fa({isCustomElement:i,delimiters:s},a),l);r.render=oL(o,u)}}e.render=r.render||Vr}My(e),n0(),Soe(e),r0(),Hg()}function Xoe(e){return new Proxy(e.attrs,{get(t,n){return tl(e,"get","$attrs"),t[n]}})}function Ez(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 tC(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(JF(ld(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in z_)return z_[n](e)},has(t,n){return n in t||n in z_}}))}function Goe(e,t=!0){return nn(e)?e.displayName||e.name:e.name||t&&e.__name}function Koe(e){return nn(e)&&"__vccOpts"in e}const W=(e,t)=>Kre(e,t,OO);function Qi(){return Tz().slots}function mv(){return Tz().attrs}function Tz(){const e=Cn();return e.setupContext||(e.setupContext=Ez(e))}function Zt(e,t,n){const r=arguments.length;return r===2?Pn(t)&&!xt(t)?_o(t)?re(e,null,[t]):re(e,t):re(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_o(n)&&(n=[n]),re(e,t,n))}const qoe=Symbol(""),Joe=()=>Pt(qoe),eie="3.2.47",tie="http://www.w3.org/2000/svg",Ag=typeof document!="undefined"?document:null,iL=Ag&&Ag.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?Ag.createElementNS(tie,e):Ag.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Ag.createTextNode(e),createComment:e=>Ag.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ag.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{iL.innerHTML=r?`<svg>${e}</svg>`:e;const s=iL.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&&QA(r,i,"");for(const i in n)QA(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 aL=/\s*!important$/;function QA(e,t,n){if(xt(n))n.forEach(r=>QA(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=iie(e,t);aL.test(n)?e.setProperty(hp(r),n.replace(aL,""),"important"):e[r]=n}}const sL=["Webkit","Moz","ms"],b$={};function iie(e,t){const n=b$[t];if(n)return n;let r=ku(t);if(r!=="filter"&&r in e)return b$[t]=r;r=u1(r);for(let o=0;o<sL.length;o++){const i=sL[o]+r;if(i in e)return b$[t]=i}return t}const lL="http://www.w3.org/1999/xlink";function aie(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(lL,t.slice(6,t.length)):e.setAttributeNS(lL,t,n);else{const i=sre(t);n==null||i&&!RF(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=RF(n):n==null&&l==="string"?(n="",s=!0):l==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Eh(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);Eh(e,s,u,l)}else a&&(lie(e,s,a,l),i[t]=void 0)}}const uL=/(?:Once|Passive|Capture)$/;function cie(e){let t;if(uL.test(e)){t={};let r;for(;r=e.match(uL);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hp(e.slice(2)),t]}let _$=0;const fie=Promise.resolve(),die=()=>_$||(fie.then(()=>_$=0),_$=Date.now());function hie(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;_u(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 cL=/^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):Q2(t)?uN(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&&cL.test(t)&&nn(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||cL.test(t)&&Gt(n)?!1:t in e}const yh="transition",h_="animation",$i=(e,{slots:t})=>Zt(lz,$z(e),t);$i.displayName="Transition";const Pz={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=$i.props=fa({},lz.props,Pz),Sg=(e,t=[])=>{xt(e)?e.forEach(n=>n(...t)):e&&e(...t)},fL=e=>e?xt(e)?e.some(t=>t.length>1):e.length>1:!1;function $z(e){const t={};for(const F in e)F in Pz||(t[F]=e[F]);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:P,onEnterCancelled:$,onLeave:T,onLeaveCancelled:A,onBeforeAppear:R=C,onAppear:B=P,onAppearCancelled:N=$}=t,I=(F,G,ae)=>{_h(F,G?d:s),_h(F,G?u:a),ae&&ae()},D=(F,G)=>{F._isLeaving=!1,_h(F,p),_h(F,y),_h(F,v),G&&G()},j=F=>(G,ae)=>{const K=F?B:P,H=()=>I(G,F,ae);Sg(K,[G,H]),dL(()=>{_h(G,F?l:i),rd(G,F?d:s),fL(K)||hL(G,r,b,H)})};return fa(t,{onBeforeEnter(F){Sg(C,[F]),rd(F,i),rd(F,a)},onBeforeAppear(F){Sg(R,[F]),rd(F,l),rd(F,u)},onEnter:j(!1),onAppear:j(!0),onLeave(F,G){F._isLeaving=!0;const ae=()=>D(F,G);rd(F,p),Mz(),rd(F,v),dL(()=>{!F._isLeaving||(_h(F,p),rd(F,y),fL(T)||hL(F,r,k,ae))}),Sg(T,[F,ae])},onEnterCancelled(F){I(F,!1),Sg($,[F])},onAppearCancelled(F){I(F,!0),Sg(N,[F])},onLeaveCancelled(F){D(F),Sg(A,[F])}})}function yie(e){if(e==null)return null;if(Pn(e))return[O$(e.enter),O$(e.leave)];{const t=O$(e);return[t,t]}}function O$(e){return pre(e)}function rd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function _h(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 dL(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bie=0;function hL(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}=Az(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 Az(e,t){const n=window.getComputedStyle(e),r=w=>(n[w]||"").split(", "),o=r(`${yh}Delay`),i=r(`${yh}Duration`),a=pL(o,i),s=r(`${h_}Delay`),l=r(`${h_}Duration`),u=pL(s,l);let d=null,p=0,v=0;t===yh?a>0&&(d=yh,p=a,v=i.length):t===h_?u>0&&(d=h_,p=u,v=l.length):(p=Math.max(a,u),d=p>0?a>u?yh:h_:null,v=d?d===yh?i.length:l.length:0);const y=d===yh&&/\b(transform|all)(,|$)/.test(r(`${yh}Property`).toString());return{type:d,timeout:p,propCount:v,hasTransform:y}}function pL(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>gL(n)+gL(e[r])))}function gL(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Mz(){return document.body.offsetHeight}const Rz=new WeakMap,Nz=new WeakMap,Iz={name:"TransitionGroup",props:fa({},mie,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Cn(),r=sz();let o,i;return vc(()=>{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);Mz(),s.forEach(l=>{const u=l.el,d=u.style;rd(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,_h(u,a))};u.addEventListener("transitionend",p)})}),()=>{const a=fr(e),s=$z(a);let l=a.tag||Tt;o=i,i=t.default?xN(t.default()):[];for(let u=0;u<i.length;u++){const d=i[u];d.key!=null&&bO(d,yO(d,s,r,n))}if(o)for(let u=0;u<o.length;u++){const d=o[u];bO(d,yO(d,s,r,n)),Rz.set(d,d.el.getBoundingClientRect())}return re(l,null,i)}}},_ie=e=>delete e.mode;Iz.props;const Dz=Iz;function Oie(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function wie(e){Nz.set(e,e.el.getBoundingClientRect())}function Sie(e){const t=Rz.get(e),n=Nz.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}=Az(r);return o.removeChild(r),i}const Ry=e=>{const t=e.props["onUpdate:modelValue"]||!1;return xt(t)?n=>Ux(t,n):t};function kie(e){e.target.composing=!0}function vL(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const MN={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Ry(o);const i=r||o.props&&o.props.type==="number";Eh(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=MA(s)),e._assign(s)}),n&&Eh(e,"change",()=>{e.value=e.value.trim()}),t||(Eh(e,"compositionstart",kie),Eh(e,"compositionend",vL),Eh(e,"change",vL))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=Ry(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&MA(e.value)===t))return;const a=t==null?"":t;e.value!==a&&(e.value=a)}},Nk={deep:!0,created(e,t,n){e._assign=Ry(n),Eh(e,"change",()=>{const r=e._modelValue,o=Lz(e),i=e.checked,a=e._assign;if(xt(r)){const s=NF(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(W2(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(Bz(e,i))})},mounted:mL,beforeUpdate(e,t,n){e._assign=Ry(n),mL(e,t,n)}};function mL(e,{value:t,oldValue:n},r){e._modelValue=t,xt(t)?e.checked=NF(t,r.props.value)>-1:W2(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=$y(t,Bz(e,!0)))}const jz={created(e,{value:t},n){e.checked=$y(t,n.props.value),e._assign=Ry(n),Eh(e,"change",()=>{e._assign(Lz(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Ry(r),t!==n&&(e.checked=$y(t,r.props.value))}};function Lz(e){return"_value"in e?e._value:e.value}function Bz(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"},Fr=(e,t)=>n=>{if(!("key"in n))return;const r=hp(n.key);if(t.some(o=>o===r||Tie[o]===r))return e(n)},pr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):p_(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),p_(e,!0),r.enter(e)):r.leave(e,()=>{p_(e,!1)}):p_(e,t))},beforeUnmount(e,{value:t}){p_(e,t)}};function p_(e,t){e.style.display=t?e._vod:"none"}const Pie=fa({patchProp:gie},nie);let yL;function Vz(){return yL||(yL=Ioe(Pie))}const Uh=(...e)=>{Vz().render(...e)},nC=(...e)=>{const t=Vz().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,bL=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}},Xx=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},Fz=e=>!e.getAttribute("aria-owns"),zz=(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},Gx=e=>{!e||(e.focus(),!Fz(e)&&e.click())},Bo=(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)},_L=e=>t=>t.pointerType==="mouse"?e(t):void 0;var Nie=Object.defineProperty,Iie=Object.defineProperties,Die=Object.getOwnPropertyDescriptors,OL=Object.getOwnPropertySymbols,jie=Object.prototype.hasOwnProperty,Lie=Object.prototype.propertyIsEnumerable,wL=(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)&&wL(e,n,t[n]);if(OL)for(var n of OL(t))Lie.call(t,n)&&wL(e,n,t[n]);return e},Vie=(e,t)=>Iie(e,Die(t));function SL(e,t){var n;const r=Jr();return Da(()=>{r.value=e()},Vie(Bie({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),c1(r)}var xL;const nr=typeof window!="undefined",Fie=e=>typeof e!="undefined",kL=e=>typeof e=="function",zie=e=>typeof e=="string",w$=()=>{},CL=nr&&((xL=window==null?void 0:window.navigator)==null?void 0:xL.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function nv(e){return typeof e=="function"?e():m(e)}function Qz(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=nv(e),s=nv(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=nv(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=te(!0),a=()=>{i.value=!0,o()};at(e,a,{flush:"sync"});const s=kL(t)?t:t.get,l=kL(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 f1(e){return LF()?(BF(e),!0):!1}function Uie(e,t=200,n={}){return Qz(Qie(t,n),e)}function Hie(e,t=200,n={}){if(t<=0)return e;const r=te(e.value),o=Uie(()=>{r.value=e.value},t,n);return at(e,()=>o()),r}function Wz(e,t=200,n=!1,r=!0){return Qz(Wie(t,n,r),e)}function RN(e,t=!0){Cn()?vn(e):t?e():zt(e)}function rv(e,t,n={}){const{immediate:r=!0}=n,o=te(!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)},nv(t))}return r&&(o.value=!0,nr&&l()),f1(s),{isPending:o,start:l,stop:s}}function Hs(e){var t;const n=nv(e);return(t=n==null?void 0:n.$el)!=null?t:n}const gp=nr?window:void 0,Xie=nr?window.document:void 0;function Mr(...e){let t,n,r,o;if(zie(e[0])?([n,r,o]=e,t=gp):[t,n,r,o]=e,!t)return w$;let i=w$;const a=at(()=>Hs(t),l=>{i(),l&&(l.addEventListener(n,r,o),i=()=>{l.removeEventListener(n,r,o),i=w$})},{immediate:!0,flush:"post"}),s=()=>{a(),i()};return f1(s),s}function NN(e,t,n={}){const{window:r=gp,ignore:o,capture:i=!0,detectIframe:a=!1}=n;if(!r)return;const s=te(!0);let l;const u=v=>{r.clearTimeout(l);const y=Hs(e),w=v.composedPath();!y||y===v.target||w.includes(y)||!s.value||o&&o.length>0&&o.some(b=>{const k=Hs(b);return k&&(v.target===k||w.includes(k))})||t(v)},d=[Mr(r,"click",u,{passive:!0,capture:i}),Mr(r,"pointerdown",v=>{const y=Hs(e);s.value=!!y&&!v.composedPath().includes(y)},{passive:!0}),Mr(r,"pointerup",v=>{if(v.button===0){const y=v.composedPath();v.composedPath=()=>y,l=r.setTimeout(()=>u(v),50)}},{passive:!0}),a&&Mr(r,"blur",v=>{var y;const w=Hs(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=gp}=e,n=Zie(()=>null,()=>t==null?void 0:t.document.activeElement);return t&&(Mr(t,"blur",n.trigger,!0),Mr(t,"focus",n.trigger,!0)),n}function Yz(e,t=!1){const n=te(),r=()=>n.value=Boolean(e());return r(),RN(r,t),n}const WA=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},YA="__vueuse_ssr_handlers__";WA[YA]=WA[YA]||{};WA[YA];function Kie(e,t,{window:n=gp,initialValue:r=""}={}){const o=te(r),i=W(()=>{var a;return Hs(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return at([i,()=>nv(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(nv(e),a)}),o}function qie({document:e=Xie}={}){if(!e)return te("visible");const t=te(e.visibilityState);return Mr(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var EL=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&&EL)for(var r of EL(e))t.indexOf(r)<0&&eae.call(e,r)&&(n[r]=e[r]);return n};function Oo(e,t,n={}){const r=n,{window:o=gp}=r,i=tae(r,["window"]);let a;const s=Yz(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=at(()=>Hs(e),p=>{l(),s.value&&o&&p&&(a=new ResizeObserver(t),a.observe(p,i))},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return f1(d),{isSupported:s,stop:d}}function TL(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=te(0),s=te(0),l=te(0),u=te(0),d=te(0),p=te(0),v=te(0),y=te(0);function w(){const b=Hs(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 Oo(e,w),at(()=>Hs(e),b=>!b&&w()),o&&Mr("scroll",w,{passive:!0}),r&&Mr("resize",w,{passive:!0}),RN(()=>{i&&w()}),{height:a,bottom:s,left:l,right:u,top:d,width:p,x:v,y,update:w}}var PL=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&&PL)for(var r of PL(e))t.indexOf(r)<0&&rae.call(e,r)&&(n[r]=e[r]);return n};function Zz(e,t,n={}){const r=n,{window:o=gp}=r,i=oae(r,["window"]);let a;const s=Yz(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=at(()=>Hs(e),p=>{l(),s.value&&o&&p&&(a=new MutationObserver(t),a.observe(p,i))},{immediate:!0}),d=()=>{l(),u()};return f1(d),{isSupported:s,stop:d}}var $L;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})($L||($L={}));var iae=Object.defineProperty,AL=Object.getOwnPropertySymbols,aae=Object.prototype.hasOwnProperty,sae=Object.prototype.propertyIsEnumerable,ML=(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)&&ML(e,n,t[n]);if(AL)for(var n of AL(t))sae.call(t,n)&&ML(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 Uz(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=te(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=gp}={}){if(!e)return te(!1);const t=te(e.document.hasFocus());return Mr(e,"blur",()=>{t.value=!1}),Mr(e,"focus",()=>{t.value=!0}),t}function fae(e={}){const{window:t=gp,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0}=e,i=te(n),a=te(r),s=()=>{t&&(i.value=t.innerWidth,a.value=t.innerHeight)};return s(),RN(s),Mr("resize",s,{passive:!0}),o&&Mr("orientationchange",s,{passive:!0}),{width:i,height:a}}const IN=()=>nr&&/firefox/i.test(window.navigator.userAgent),dae=(e,t)=>{if(!nr||!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},RL=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},ZA=(e,t)=>Math.abs(RL(e)-RL(t)),DN=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,Hz=pae,gae=typeof self=="object"&&self&&self.Object===Object&&self,vae=Hz||gae||Function("return this")(),ha=vae,mae=ha.Symbol,as=mae,Xz=Object.prototype,yae=Xz.hasOwnProperty,bae=Xz.toString,g_=as?as.toStringTag:void 0;function _ae(e){var t=yae.call(e,g_),n=e[g_];try{e[g_]=void 0;var r=!0}catch{}var o=bae.call(e);return r&&(t?e[g_]=n:delete e[g_]),o}var Oae=Object.prototype,wae=Oae.toString;function Sae(e){return wae.call(e)}var xae="[object Null]",kae="[object Undefined]",NL=as?as.toStringTag:void 0;function Ms(e){return e==null?e===void 0?kae:xae:NL&&NL in Object(e)?_ae(e):Sae(e)}function bi(e){return e!=null&&typeof e=="object"}var Cae="[object Symbol]";function jl(e){return typeof e=="symbol"||bi(e)&&Ms(e)==Cae}var Eae=0/0;function IL(e){return typeof e=="number"?e:jl(e)?Eae:+e}function ri(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,br=Tae,Pae=1/0,DL=as?as.prototype:void 0,jL=DL?DL.toString:void 0;function Ll(e){if(typeof e=="string")return e;if(br(e))return ri(e,Ll)+"";if(jl(e))return jL?jL.call(e):"";var t=e+"";return t=="0"&&1/e==-Pae?"-0":t}function rC(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=Ll(n),r=Ll(r)):(n=IL(n),r=IL(r)),o=e(n,r)}return o}}var $ae=rC(function(e,t){return e+t},0),Aae=$ae,Mae=/\s/;function Gz(e){for(var t=e.length;t--&&Mae.test(e.charAt(t)););return t}var Rae=/^\s+/;function Kz(e){return e&&e.slice(0,Gz(e)+1).replace(Rae,"")}function oi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var LL=0/0,Nae=/^[-+]0x[0-9a-f]+$/i,Iae=/^0b[01]+$/i,Dae=/^0o[0-7]+$/i,jae=parseInt;function Ou(e){if(typeof e=="number")return e;if(jl(e))return LL;if(oi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Kz(e);var n=Iae.test(e);return n||Dae.test(e)?jae(e.slice(2),n?2:8):Nae.test(e)?LL:+e}var BL=1/0,Lae=17976931348623157e292;function ud(e){if(!e)return e===0?e:0;if(e=Ou(e),e===BL||e===-BL){var t=e<0?-1:1;return t*Lae}return e===e?e:0}function Er(e){var t=ud(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=Er(e),function(){if(--e<1)return t.apply(this,arguments)}}function Rs(e){return e}var Fae="[object AsyncFunction]",zae="[object Function]",Qae="[object GeneratorFunction]",Wae="[object Proxy]";function _d(e){if(!oi(e))return!1;var t=Ms(e);return t==zae||t==Qae||t==Fae||t==Wae}var Yae=ha["__core-js_shared__"],Kx=Yae,VL=function(){var e=/[^.]+$/.exec(Kx&&Kx.keys&&Kx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Zae(e){return!!VL&&VL in e}var Uae=Function.prototype,Hae=Uae.toString;function yv(e){if(e!=null){try{return Hae.call(e)}catch{}try{return e+""}catch{}}return""}var Xae=/[\\^$.*+?()[\]{}|]/g,Gae=/^\[object .+?Constructor\]$/,Kae=Function.prototype,qae=Object.prototype,Jae=Kae.toString,ese=qae.hasOwnProperty,tse=RegExp("^"+Jae.call(ese).replace(Xae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qz(e){if(!oi(e)||Zae(e))return!1;var t=_d(e)?tse:Gae;return t.test(yv(e))}function nse(e,t){return e==null?void 0:e[t]}function bv(e,t){var n=nse(e,t);return qz(n)?n:void 0}var rse=bv(ha,"WeakMap"),wO=rse,ose=wO&&new wO,Ik=ose,ise=Ik?function(e,t){return Ik.set(e,t),e}:Rs,Jz=ise,FL=Object.create,ase=function(){function e(){}return function(t){if(!oi(t))return{};if(FL)return FL(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),i0=ase;function SO(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=i0(e.prototype),r=e.apply(n,t);return oi(r)?r:n}}var sse=1;function lse(e,t,n){var r=t&sse,o=SO(e);function i(){var a=this&&this!==ha&&this instanceof i?o:e;return a.apply(r?n:this,arguments)}return i}function Bl(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 e7(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 t7(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 oC(){}var dse=4294967295;function Zr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=dse,this.__views__=[]}Zr.prototype=i0(oC.prototype);Zr.prototype.constructor=Zr;function jN(){}var hse=Ik?function(e){return Ik.get(e)}:jN,LN=hse,pse={},gy=pse,gse=Object.prototype,vse=gse.hasOwnProperty;function qx(e){for(var t=e.name+"",n=gy[t],r=vse.call(gy,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function Cu(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Cu.prototype=i0(oC.prototype);Cu.prototype.constructor=Cu;function Ks(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function n7(e){if(e instanceof Zr)return e.clone();var t=new Cu(e.__wrapped__,e.__chain__);return t.__actions__=Ks(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var mse=Object.prototype,yse=mse.hasOwnProperty;function Pe(e){if(bi(e)&&!br(e)&&!(e instanceof Zr)){if(e instanceof Cu)return e;if(yse.call(e,"__wrapped__"))return n7(e)}return new Cu(e)}Pe.prototype=oC.prototype;Pe.prototype.constructor=Pe;function UA(e){var t=qx(e),n=Pe[t];if(typeof n!="function"||!(t in Zr.prototype))return!1;if(e===n)return!0;var r=LN(n);return!!r&&e===r[0]}var bse=800,_se=16,Ose=Date.now;function r7(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=r7(Jz),o7=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,`{
- /* [wrapped with `+t+`] */
- `)}function BN(e){return function(){return e}}var Tse=function(){try{var e=bv(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Dk=Tse,Pse=Dk?function(e,t){return Dk(e,"toString",{configurable:!0,enumerable:!1,value:BN(t),writable:!0})}:Rs,$se=Pse,Ase=r7($se),VN=Ase;function Ru(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function iC(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 i7(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 a0(e,t,n){return t===t?Mse(e,t,n):iC(e,i7,n)}function aC(e,t){var n=e==null?0:e.length;return!!n&&a0(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 Ru(zse,function(n){var r="_."+n[0];t&n[1]&&!aC(e,r)&&e.push(r)}),e.sort()}function a7(e,t,n){var r=t+"";return VN(e,Ese(r,Qse(kse(r),n)))}var Wse=1,Yse=2,Zse=4,Use=8,zL=32,QL=64;function s7(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?zL:QL,t&=~(d?QL:zL),t&Zse||(t&=~(Wse|Yse));var b=[e,t,o,y,p,w,v,s,l,u],k=n.apply(void 0,b);return UA(e)&&o7(k,b),k.placeholder=r,a7(k,e,t)}function s0(e){var t=e;return t.placeholder}var Hse=9007199254740991,Xse=/^(?:0|[1-9]\d*)$/;function Od(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 Kse(e,t){for(var n=e.length,r=Gse(t.length,n),o=Ks(e);r--;){var i=t[r];e[r]=Od(i,n)?o[i]:void 0}return e}var WL="__lodash_placeholder__";function Hh(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];(a===t||a===WL)&&(e[n]=WL,i[o++]=n)}return i}var qse=1,Jse=2,ele=8,tle=16,nle=128,rle=512;function sC(e,t,n,r,o,i,a,s,l,u){var d=t&nle,p=t&qse,v=t&Jse,y=t&(ele|tle),w=t&rle,b=v?void 0:SO(e);function k(){for(var C=arguments.length,P=Array(C),$=C;$--;)P[$]=arguments[$];if(y)var T=s0(k),A=fse(P,T);if(r&&(P=e7(P,r,o,y)),i&&(P=t7(P,i,a,y)),C-=A,y&&C<u){var R=Hh(P,T);return s7(e,t,sC,k.placeholder,n,P,R,s,l,u-C)}var B=p?n:this,N=v?B[e]:e;return C=P.length,s?P=Kse(P,s):w&&C>1&&P.reverse(),d&&l<C&&(P.length=l),this&&this!==ha&&this instanceof k&&(N=b||SO(N)),N.apply(B,P)}return k}function ole(e,t,n){var r=SO(e);function o(){for(var i=arguments.length,a=Array(i),s=i,l=s0(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:Hh(a,l);if(i-=u.length,i<n)return s7(e,t,sC,o.placeholder,void 0,a,u,void 0,void 0,n-i);var d=this&&this!==ha&&this instanceof o?r:e;return Bl(d,this,a)}return o}var ile=1;function ale(e,t,n,r){var o=t&ile,i=SO(e);function a(){for(var s=-1,l=arguments.length,u=-1,d=r.length,p=Array(d+l),v=this&&this!==ha&&this instanceof a?i:e;++u<d;)p[u]=r[u];for(;l--;)p[u++]=arguments[++s];return Bl(v,o?n:this,p)}return a}var YL="__lodash_placeholder__",S$=1,sle=2,lle=4,ZL=8,v_=128,UL=256,ule=Math.min;function cle(e,t){var n=e[1],r=t[1],o=n|r,i=o<(S$|sle|v_),a=r==v_&&n==ZL||r==v_&&n==UL&&e[7].length<=t[8]||r==(v_|UL)&&t[7].length<=t[8]&&n==ZL;if(!(i||a))return e;r&S$&&(e[2]=t[2],o|=n&S$?0:lle);var s=t[3];if(s){var l=e[3];e[3]=l?e7(l,s,t[4]):s,e[4]=l?Hh(e[3],YL):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?t7(l,s,t[6]):s,e[6]=l?Hh(e[5],YL):t[6]),s=t[7],s&&(e[7]=s),r&v_&&(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",HL=1,dle=2,x$=8,k$=16,C$=32,XL=64,GL=Math.max;function wd(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&=~(C$|XL),r=o=void 0),a=a===void 0?a:GL(Er(a),0),s=s===void 0?s:Er(s),u-=o?o.length:0,t&XL){var d=r,p=o;r=o=void 0}var v=l?void 0:LN(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:GL(y[9]-u,0),!s&&t&(x$|k$)&&(t&=~(x$|k$)),!t||t==HL)var w=lse(e,t,n);else t==x$||t==k$?w=ole(e,t,s):(t==C$||t==(HL|C$))&&!o.length?w=ale(e,t,n,r):w=sC.apply(void 0,y);var b=v?Jz:o7;return a7(b(w,y),e,t)}var hle=128;function l7(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,wd(e,hle,void 0,void 0,void 0,void 0,t)}function Sd(e,t,n){t=="__proto__"&&Dk?Dk(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mc(e,t){return e===t||e!==e&&t!==t}var ple=Object.prototype,gle=ple.hasOwnProperty;function d1(e,t,n){var r=e[t];(!(gle.call(e,t)&&mc(r,n))||n===void 0&&!(t in e))&&Sd(e,t,n)}function yf(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?Sd(n,s,l):d1(n,s,l)}return n}var KL=Math.max;function u7(e,t,n){return t=KL(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=KL(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),Bl(e,this,s)}}function Ir(e,t){return VN(u7(e,t,Rs),e+"")}var vle=9007199254740991;function lC(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vle}function rl(e){return e!=null&&lC(e.length)&&!_d(e)}function Ps(e,t,n){if(!oi(n))return!1;var r=typeof t;return(r=="number"?rl(n)&&Od(t,n.length):r=="string"&&t in n)?mc(n[t],e):!1}function l0(e){return Ir(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&&Ps(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 h1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mle;return e===n}function FN(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var yle="[object Arguments]";function qL(e){return bi(e)&&Ms(e)==yle}var c7=Object.prototype,ble=c7.hasOwnProperty,_le=c7.propertyIsEnumerable,Ole=qL(function(){return arguments}())?qL:function(e){return bi(e)&&ble.call(e,"callee")&&!_le.call(e,"callee")},ov=Ole;function zN(){return!1}var f7=typeof Ml=="object"&&Ml&&!Ml.nodeType&&Ml,JL=f7&&typeof Rl=="object"&&Rl&&!Rl.nodeType&&Rl,wle=JL&&JL.exports===f7,e5=wle?ha.Buffer:void 0,Sle=e5?e5.isBuffer:void 0,xle=Sle||zN,Xh=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]",Wo={};Wo[Vle]=Wo[Fle]=Wo[zle]=Wo[Qle]=Wo[Wle]=Wo[Yle]=Wo[Zle]=Wo[Ule]=Wo[Hle]=!0;Wo[kle]=Wo[Cle]=Wo[Lle]=Wo[Ele]=Wo[Ble]=Wo[Tle]=Wo[Ple]=Wo[$le]=Wo[Ale]=Wo[Mle]=Wo[Rle]=Wo[Nle]=Wo[Ile]=Wo[Dle]=Wo[jle]=!1;function Xle(e){return bi(e)&&lC(e.length)&&!!Wo[Ms(e)]}function Vl(e){return function(t){return e(t)}}var d7=typeof Ml=="object"&&Ml&&!Ml.nodeType&&Ml,Y_=d7&&typeof Rl=="object"&&Rl&&!Rl.nodeType&&Rl,Gle=Y_&&Y_.exports===d7,E$=Gle&&Hz.process,Kle=function(){try{var e=Y_&&Y_.require&&Y_.require("util").types;return e||E$&&E$.binding&&E$.binding("util")}catch{}}(),Eu=Kle,t5=Eu&&Eu.isTypedArray,qle=t5?Vl(t5):Xle,u0=qle,Jle=Object.prototype,eue=Jle.hasOwnProperty;function h7(e,t){var n=br(e),r=!n&&ov(e),o=!n&&!r&&Xh(e),i=!n&&!r&&!o&&u0(e),a=n||r||o||i,s=a?FN(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")||Od(u,l)))&&s.push(u);return s}function p7(e,t){return function(n){return e(t(n))}}var tue=p7(Object.keys,Object),nue=tue,rue=Object.prototype,oue=rue.hasOwnProperty;function QN(e){if(!h1(e))return nue(e);var t=[];for(var n in Object(e))oue.call(e,n)&&n!="constructor"&&t.push(n);return t}function oa(e){return rl(e)?h7(e):QN(e)}var iue=Object.prototype,aue=iue.hasOwnProperty,sue=l0(function(e,t){if(h1(t)||rl(t)){yf(t,oa(t),e);return}for(var n in t)aue.call(t,n)&&d1(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(!oi(e))return uue(e);var t=h1(e),n=[];for(var r in e)r=="constructor"&&(t||!fue.call(e,r))||n.push(r);return n}function ol(e){return rl(e)?h7(e,!0):due(e)}var hue=l0(function(e,t){yf(t,ol(t),e)}),n5=hue,pue=l0(function(e,t,n,r){yf(t,ol(t),e,r)}),jk=pue,gue=l0(function(e,t,n,r){yf(t,oa(t),e,r)}),vue=gue,mue=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yue=/^\w*$/;function WN(e,t){if(br(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||jl(e)?!0:yue.test(e)||!mue.test(e)||t!=null&&e in Object(t)}var bue=bv(Object,"create"),xO=bue;function _ue(){this.__data__=xO?xO(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(xO){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 xO?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]=xO&&t===void 0?Pue:t,this}function iv(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])}}iv.prototype.clear=_ue;iv.prototype.delete=Oue;iv.prototype.get=kue;iv.prototype.has=Tue;iv.prototype.set=$ue;function Aue(){this.__data__=[],this.size=0}function uC(e,t){for(var n=e.length;n--;)if(mc(e[n][0],t))return n;return-1}var Mue=Array.prototype,Rue=Mue.splice;function Nue(e){var t=this.__data__,n=uC(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=uC(t,e);return n<0?void 0:t[n][1]}function Due(e){return uC(this.__data__,e)>-1}function jue(e,t){var n=this.__data__,r=uC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,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=Aue;xd.prototype.delete=Nue;xd.prototype.get=Iue;xd.prototype.has=Due;xd.prototype.set=jue;var Lue=bv(ha,"Map"),kO=Lue;function Bue(){this.size=0,this.__data__={hash:new iv,map:new(kO||xd),string:new iv}}function Vue(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cC(e,t){var n=e.__data__;return Vue(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Fue(e){var t=cC(this,e).delete(e);return this.size-=t?1:0,t}function zue(e){return cC(this,e).get(e)}function Que(e){return cC(this,e).has(e)}function Wue(e,t){var n=cC(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function kd(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])}}kd.prototype.clear=Bue;kd.prototype.delete=Fue;kd.prototype.get=zue;kd.prototype.has=Que;kd.prototype.set=Wue;var Yue="Expected a function";function p1(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(p1.Cache||kd),n}p1.Cache=kd;var Zue=500;function Uue(e){var t=p1(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}),g7=Gue;function ho(e){return e==null?"":Ll(e)}function vp(e,t){return br(e)?e:WN(e,t)?[e]:g7(ho(e))}var Kue=1/0;function bf(e){if(typeof e=="string"||jl(e))return e;var t=e+"";return t=="0"&&1/e==-Kue?"-0":t}function _v(e,t){t=vp(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[bf(t[n++])];return n&&n==r?e:void 0}function Mo(e,t,n){var r=e==null?void 0:_v(e,t);return r===void 0?n:r}function YN(e,t){for(var n=-1,r=t.length,o=Array(r),i=e==null;++n<r;)o[n]=i?void 0:Mo(e,t[n]);return o}function mp(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var r5=as?as.isConcatSpreadable:void 0;function que(e){return br(e)||ov(e)||!!(r5&&e&&e[r5])}function Ba(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=que),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Ba(s,t-1,n,r,o):mp(o,s):r||(o[o.length]=s)}return o}function ZN(e){var t=e==null?0:e.length;return t?Ba(e,1):[]}function Cd(e){return VN(u7(e,void 0,ZN),e+"")}var Jue=Cd(YN),ece=Jue,tce=p7(Object.getPrototypeOf,Object),fC=tce,nce="[object Object]",rce=Function.prototype,oce=Object.prototype,v7=rce.toString,ice=oce.hasOwnProperty,ace=v7.call(Object);function g1(e){if(!bi(e)||Ms(e)!=nce)return!1;var t=fC(e);if(t===null)return!0;var n=ice.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&v7.call(n)==ace}var sce="[object DOMException]",lce="[object Error]";function UN(e){if(!bi(e))return!1;var t=Ms(e);return t==lce||t==sce||typeof e.message=="string"&&typeof e.name=="string"&&!g1(e)}var uce=Ir(function(e,t){try{return Bl(e,void 0,t)}catch(n){return UN(n)?n:new Error(n)}}),m7=uce,cce="Expected a function";function y7(e,t){var n;if(typeof t!="function")throw new TypeError(cce);return e=Er(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var fce=1,dce=32,HN=Ir(function(e,t,n){var r=fce;if(n.length){var o=Hh(n,s0(HN));r|=dce}return wd(e,r,t,n,o)});HN.placeholder={};var b7=HN,hce=Cd(function(e,t){return Ru(t,function(n){n=bf(n),Sd(e,n,b7(e[n],e))}),e}),pce=hce,gce=1,vce=2,mce=32,XN=Ir(function(e,t,n){var r=gce|vce;if(n.length){var o=Hh(n,s0(XN));r|=mce}return wd(t,r,e,n,o)});XN.placeholder={};var yce=XN;function Tu(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 yp(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Tu(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 c0(e){return Cce.test(e)}function Ece(e){return e.split("")}var _7="\\ud800-\\udfff",Tce="\\u0300-\\u036f",Pce="\\ufe20-\\ufe2f",$ce="\\u20d0-\\u20ff",Ace=Tce+Pce+$ce,Mce="\\ufe0e\\ufe0f",Rce="["+_7+"]",HA="["+Ace+"]",XA="\\ud83c[\\udffb-\\udfff]",Nce="(?:"+HA+"|"+XA+")",O7="[^"+_7+"]",w7="(?:\\ud83c[\\udde6-\\uddff]){2}",S7="[\\ud800-\\udbff][\\udc00-\\udfff]",Ice="\\u200d",x7=Nce+"?",k7="["+Mce+"]?",Dce="(?:"+Ice+"(?:"+[O7,w7,S7].join("|")+")"+k7+x7+")*",jce=k7+x7+Dce,Lce="(?:"+[O7+HA+"?",HA,w7,S7,Rce].join("|")+")",Bce=RegExp(XA+"(?="+XA+")|"+Lce+jce,"g");function Vce(e){return e.match(Bce)||[]}function dc(e){return c0(e)?Vce(e):Ece(e)}function C7(e){return function(t){t=ho(t);var n=c0(t)?dc(t):void 0,r=n?n[0]:t.charAt(0),o=n?yp(n,1).join(""):t.slice(1);return r[e]()+o}}var Fce=C7("toUpperCase"),GN=Fce;function E7(e){return GN(ho(e).toLowerCase())}function KN(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+"]",Kce=RegExp(Gce,"g");function T7(e){return e=ho(e),e&&e.replace(Yce,Wce).replace(Kce,"")}var qce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Jce(e){return e.match(qce)||[]}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 P7="\\ud800-\\udfff",nfe="\\u0300-\\u036f",rfe="\\ufe20-\\ufe2f",ofe="\\u20d0-\\u20ff",ife=nfe+rfe+ofe,$7="\\u2700-\\u27bf",A7="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",M7="A-Z\\xc0-\\xd6\\xd8-\\xde",cfe="\\ufe0e\\ufe0f",R7=afe+sfe+lfe+ufe,N7="['\u2019]",o5="["+R7+"]",ffe="["+ife+"]",I7="\\d+",dfe="["+$7+"]",D7="["+A7+"]",j7="[^"+P7+R7+I7+$7+A7+M7+"]",hfe="\\ud83c[\\udffb-\\udfff]",pfe="(?:"+ffe+"|"+hfe+")",gfe="[^"+P7+"]",L7="(?:\\ud83c[\\udde6-\\uddff]){2}",B7="[\\ud800-\\udbff][\\udc00-\\udfff]",Xm="["+M7+"]",vfe="\\u200d",i5="(?:"+D7+"|"+j7+")",mfe="(?:"+Xm+"|"+j7+")",a5="(?:"+N7+"(?:d|ll|m|re|s|t|ve))?",s5="(?:"+N7+"(?:D|LL|M|RE|S|T|VE))?",V7=pfe+"?",F7="["+cfe+"]?",yfe="(?:"+vfe+"(?:"+[gfe,L7,B7].join("|")+")"+F7+V7+")*",bfe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_fe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ofe=F7+V7+yfe,wfe="(?:"+[dfe,L7,B7].join("|")+")"+Ofe,Sfe=RegExp([Xm+"?"+D7+"+"+a5+"(?="+[o5,Xm,"$"].join("|")+")",mfe+"+"+s5+"(?="+[o5,Xm+i5,"$"].join("|")+")",Xm+"?"+i5+"+"+a5,Xm+"+"+s5,_fe,bfe,I7,wfe].join("|"),"g");function xfe(e){return e.match(Sfe)||[]}function z7(e,t,n){return e=ho(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 f0(e){return function(t){return KN(z7(T7(t).replace(Cfe,"")),e,"")}}var Efe=f0(function(e,t,n){return t=t.toLowerCase(),e+(n?E7(t):t)}),Tfe=Efe;function Ra(){if(!arguments.length)return[];var e=arguments[0];return br(e)?e:[e]}var Pfe=ha.isFinite,$fe=Math.min;function JN(e){var t=Math[e];return function(n,r){if(n=Ou(n),r=r==null?0:$fe(Er(r),292),r&&Pfe(n)){var o=(ho(n)+"e").split("e"),i=t(o[0]+"e"+(+o[1]+r));return o=(ho(i)+"e").split("e"),+(o[0]+"e"+(+o[1]-r))}return t(n)}}var Afe=JN("ceil"),Mfe=Afe;function Q7(e){var t=Pe(e);return t.__chain__=!0,t}var Rfe=Math.ceil,Nfe=Math.max;function Ife(e,t,n){(n?Ps(e,t,n):t===void 0)?t=1:t=Nfe(Er(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++]=Tu(e,o,o+=t);return a}function Ov(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=Ou(n),n=n===n?n:0),t!==void 0&&(t=Ou(t),t=t===t?t:0),Ov(Ou(e),t,n)}function jfe(){this.__data__=new xd,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 xd){var r=n.__data__;if(!kO||r.length<Ffe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new kd(r)}return n.set(e,t),this.size=n.size,this}function cc(e){var t=this.__data__=new xd(e);this.size=t.size}cc.prototype.clear=jfe;cc.prototype.delete=Lfe;cc.prototype.get=Bfe;cc.prototype.has=Vfe;cc.prototype.set=zfe;function W7(e,t){return e&&yf(t,oa(t),e)}function Qfe(e,t){return e&&yf(t,ol(t),e)}var Y7=typeof Ml=="object"&&Ml&&!Ml.nodeType&&Ml,l5=Y7&&typeof Rl=="object"&&Rl&&!Rl.nodeType&&Rl,Wfe=l5&&l5.exports===Y7,u5=Wfe?ha.Buffer:void 0,c5=u5?u5.allocUnsafe:void 0;function Z7(e,t){if(t)return e.slice();var n=e.length,r=c5?c5(n):new e.constructor(n);return e.copy(r),r}function bp(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 eI(){return[]}var Yfe=Object.prototype,Zfe=Yfe.propertyIsEnumerable,f5=Object.getOwnPropertySymbols,Ufe=f5?function(e){return e==null?[]:(e=Object(e),bp(f5(e),function(t){return Zfe.call(e,t)}))}:eI,tI=Ufe;function Hfe(e,t){return yf(e,tI(e),t)}var Xfe=Object.getOwnPropertySymbols,Gfe=Xfe?function(e){for(var t=[];e;)mp(t,tI(e)),e=fC(e);return t}:eI,U7=Gfe;function Kfe(e,t){return yf(e,U7(e),t)}function H7(e,t,n){var r=t(e);return br(e)?r:mp(r,n(e))}function GA(e){return H7(e,oa,tI)}function nI(e){return H7(e,ol,U7)}var qfe=bv(ha,"DataView"),KA=qfe,Jfe=bv(ha,"Promise"),qA=Jfe,ede=bv(ha,"Set"),vy=ede,d5="[object Map]",tde="[object Object]",h5="[object Promise]",p5="[object Set]",g5="[object WeakMap]",v5="[object DataView]",nde=yv(KA),rde=yv(kO),ode=yv(qA),ide=yv(vy),ade=yv(wO),Tg=Ms;(KA&&Tg(new KA(new ArrayBuffer(1)))!=v5||kO&&Tg(new kO)!=d5||qA&&Tg(qA.resolve())!=h5||vy&&Tg(new vy)!=p5||wO&&Tg(new wO)!=g5)&&(Tg=function(e){var t=Ms(e),n=t==tde?e.constructor:void 0,r=n?yv(n):"";if(r)switch(r){case nde:return v5;case rde:return d5;case ode:return h5;case ide:return p5;case ade:return g5}return t});var cf=Tg,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=ha.Uint8Array,Lk=cde;function rI(e){var t=new e.constructor(e.byteLength);return new Lk(t).set(new Lk(e)),t}function fde(e,t){var n=t?rI(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 m5=as?as.prototype:void 0,y5=m5?m5.valueOf:void 0;function pde(e){return y5?Object(y5.call(e)):{}}function X7(e,t){var n=t?rI(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 rI(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 X7(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 G7(e){return typeof e.constructor=="function"&&!h1(e)?i0(fC(e)):{}}var Ide="[object Map]";function Dde(e){return bi(e)&&cf(e)==Ide}var b5=Eu&&Eu.isMap,jde=b5?Vl(b5):Dde,K7=jde,Lde="[object Set]";function Bde(e){return bi(e)&&cf(e)==Lde}var _5=Eu&&Eu.isSet,Vde=_5?Vl(_5):Bde,q7=Vde,Fde=1,zde=2,Qde=4,J7="[object Arguments]",Wde="[object Array]",Yde="[object Boolean]",Zde="[object Date]",Ude="[object Error]",eQ="[object Function]",Hde="[object GeneratorFunction]",Xde="[object Map]",Gde="[object Number]",tQ="[object Object]",Kde="[object RegExp]",qde="[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]",jo={};jo[J7]=jo[Wde]=jo[nhe]=jo[rhe]=jo[Yde]=jo[Zde]=jo[ohe]=jo[ihe]=jo[ahe]=jo[she]=jo[lhe]=jo[Xde]=jo[Gde]=jo[tQ]=jo[Kde]=jo[qde]=jo[Jde]=jo[ehe]=jo[uhe]=jo[che]=jo[fhe]=jo[dhe]=!0;jo[Ude]=jo[eQ]=jo[the]=!1;function wu(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(!oi(e))return e;var d=br(e);if(d){if(a=ude(e),!s)return Ks(e,a)}else{var p=cf(e),v=p==eQ||p==Hde;if(Xh(e))return Z7(e,s);if(p==tQ||p==J7||v&&!o){if(a=l||v?{}:G7(e),!s)return l?Kfe(e,Qfe(a,e)):Hfe(e,W7(a,e))}else{if(!jo[p])return o?e:{};a=Nde(e,p,s)}}i||(i=new cc);var y=i.get(e);if(y)return y;i.set(e,a),q7(e)?e.forEach(function(k){a.add(wu(k,t,n,k,e,i))}):K7(e)&&e.forEach(function(k,C){a.set(C,wu(k,t,n,C,e,i))});var w=u?l?nI:GA:l?ol:oa,b=d?void 0:w(e);return Ru(b||e,function(k,C){b&&(C=k,k=e[C]),d1(a,C,wu(k,t,n,C,e,i))}),a}var hhe=4;function JA(e){return wu(e,hhe)}var phe=1,ghe=4;function CO(e){return wu(e,phe|ghe)}var vhe=1,mhe=4;function yhe(e,t){return t=typeof t=="function"?t:void 0,wu(e,vhe|mhe,t)}var bhe=4;function _he(e,t){return t=typeof t=="function"?t:void 0,wu(e,bhe,t)}function Ohe(){return new Cu(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 mp(br(n)?Ks(n):[n],Ba(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 av(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new kd;++t<n;)this.add(e[t])}av.prototype.add=av.prototype.push=khe;av.prototype.has=Che;function oI(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 EO(e,t){return e.has(t)}var Ehe=1,The=2;function nQ(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 av: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(!oI(t,function(C,P){if(!EO(y,P)&&(w===C||o(w,C,n,r,i)))return y.push(P)})){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 iI(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function dC(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]",O5=as?as.prototype:void 0,T$=O5?O5.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 Lk(e),new Lk(t)));case Ahe:case Mhe:case Ihe:return mc(+e,+t);case Rhe:return e.name==t.name&&e.message==t.message;case Dhe:case Lhe:return e==t+"";case Nhe:var s=iI;case jhe:var l=r&Phe;if(s||(s=dC),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=nQ(s(e),s(t),r,o,i,a);return a.delete(e),d;case Bhe:if(T$)return T$.call(e)==T$.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=GA(e),l=s.length,u=GA(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],P=t[v];if(r)var $=a?r(P,C,v,t,e,i):r(C,P,v,e,t,i);if(!($===void 0?C===P||o(C,P,n,r,i):$)){b=!1;break}k||(k=v=="constructor")}if(b&&!k){var T=e.constructor,A=t.constructor;T!=A&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof A=="function"&&A instanceof A)&&(b=!1)}return i.delete(e),i.delete(t),b}var Uhe=1,w5="[object Arguments]",S5="[object Array]",ox="[object Object]",Hhe=Object.prototype,x5=Hhe.hasOwnProperty;function Xhe(e,t,n,r,o,i){var a=br(e),s=br(t),l=a?S5:cf(e),u=s?S5:cf(t);l=l==w5?ox:l,u=u==w5?ox:u;var d=l==ox,p=u==ox,v=l==u;if(v&&Xh(e)){if(!Xh(t))return!1;a=!0,d=!1}if(v&&!d)return i||(i=new cc),a||u0(e)?nQ(e,t,n,r,o,i):zhe(e,t,l,n,r,o,i);if(!(n&Uhe)){var y=d&&x5.call(e,"__wrapped__"),w=p&&x5.call(t,"__wrapped__");if(y||w){var b=y?e.value():e,k=w?t.value():t;return i||(i=new cc),o(b,k,n,r,i)}}return v?(i||(i=new cc),Zhe(e,t,n,r,o,i)):!1}function v1(e,t,n,r,o){return e===t?!0:e==null||t==null||!bi(e)&&!bi(t)?e!==e&&t!==t:Xhe(e,t,n,r,v1,o)}var Ghe=1,Khe=2;function aI(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 cc;if(r)var v=r(u,d,l,e,t,p);if(!(v===void 0?v1(d,u,Ghe|Khe,r,p):v))return!1}}return!0}function rQ(e){return e===e&&!oi(e)}function sI(e){for(var t=oa(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,rQ(o)]}return t}function oQ(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function iQ(e){var t=sI(e);return t.length==1&&t[0][2]?oQ(t[0][0],t[0][1]):function(n){return n===e||aI(n,e,t)}}function qhe(e,t){return e!=null&&t in Object(e)}function aQ(e,t,n){t=vp(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=bf(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&&lC(o)&&Od(a,o)&&(br(e)||ov(e)))}function lI(e,t){return e!=null&&aQ(e,t,qhe)}var Jhe=1,epe=2;function sQ(e,t){return WN(e)&&rQ(t)?oQ(bf(e),t):function(n){var r=Mo(n,e);return r===void 0&&r===t?lI(n,e):v1(t,r,Jhe|epe)}}function uI(e){return function(t){return t==null?void 0:t[e]}}function tpe(e){return function(t){return _v(t,e)}}function lQ(e){return WN(e)?uI(bf(e)):tpe(e)}function vr(e){return typeof e=="function"?e:e==null?Rs:typeof e=="object"?br(e)?sQ(e[0],e[1]):iQ(e):lQ(e)}var npe="Expected a function";function rpe(e){var t=e==null?0:e.length,n=vr;return e=t?ri(e,function(r){if(typeof r[1]!="function")throw new TypeError(npe);return[n(r[0]),r[1]]}):[],Ir(function(r){for(var o=-1;++o<t;){var i=e[o];if(Bl(i[0],this,r))return Bl(i[1],this,r)}})}function uQ(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=oa(e);return function(n){return uQ(n,e,t)}}var ipe=1;function ape(e){return ope(wu(e,ipe))}function spe(e,t){return t==null||uQ(e,t,oa(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 cQ(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=cQ(),cI=upe;function _f(e,t){return e&&cI(e,t,oa)}function fQ(e,t){return function(n,r){if(n==null)return n;if(!rl(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=fQ(_f),_p=cpe;function fpe(e,t,n,r){return _p(e,function(o,i,a){t(r,o,n(o),a)}),r}function hC(e,t){return function(n,r){var o=br(n)?lpe:fpe,i=t?t():{};return o(n,e,vr(r),i)}}var dpe=Object.prototype,hpe=dpe.hasOwnProperty,ppe=hC(function(e,t,n){hpe.call(e,n)?++e[n]:Sd(e,n,1)}),gpe=ppe;function vpe(e,t){var n=i0(e);return t==null?n:W7(n,t)}var mpe=8;function fI(e,t,n){t=n?void 0:t;var r=wd(e,mpe,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=fI.placeholder,r}fI.placeholder={};var ype=16;function dI(e,t,n){t=n?void 0:t;var r=wd(e,ype,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=dI.placeholder,r}dI.placeholder={};var bpe=function(){return ha.Date.now()},Jx=bpe,_pe="Expected a function",Ope=Math.max,wpe=Math.min;function $s(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=Ou(t)||0,oi(n)&&(d=!!n.leading,p="maxWait"in n,i=p?Ope(Ou(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=Jx();if(k(R))return P(R);s=setTimeout(C,b(R))}function P(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 T(){return s===void 0?a:P(Jx())}function A(){var R=Jx(),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=T,A}function Spe(e,t){return e==null||e!==e?t:e}var dQ=Object.prototype,xpe=dQ.hasOwnProperty,kpe=Ir(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Ps(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ol(i),s=-1,l=a.length;++s<l;){var u=a[s],d=e[u];(d===void 0||mc(d,dQ[u])&&!xpe.call(e,u))&&(e[u]=i[u])}return e}),Cpe=kpe;function eM(e,t,n){(n!==void 0&&!mc(e[t],n)||n===void 0&&!(t in e))&&Sd(e,t,n)}function Pi(e){return bi(e)&&rl(e)}function tM(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function hQ(e){return yf(e,ol(e))}function Epe(e,t,n,r,o,i,a){var s=tM(e,n),l=tM(t,n),u=a.get(l);if(u){eM(e,n,u);return}var d=i?i(s,l,n+"",e,t,a):void 0,p=d===void 0;if(p){var v=br(l),y=!v&&Xh(l),w=!v&&!y&&u0(l);d=l,v||y||w?br(s)?d=s:Pi(s)?d=Ks(s):y?(p=!1,d=Z7(l,!0)):w?(p=!1,d=X7(l,!0)):d=[]:g1(l)||ov(l)?(d=s,ov(s)?d=hQ(s):(!oi(s)||_d(s))&&(d=G7(l))):p=!1}p&&(a.set(l,d),o(d,l,r,i,a),a.delete(l)),eM(e,n,d)}function pC(e,t,n,r,o){e!==t&&cI(t,function(i,a){if(o||(o=new cc),oi(i))Epe(e,t,a,n,pC,r,o);else{var s=r?r(tM(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),eM(e,a,s)}},ol)}function pQ(e,t,n,r,o,i){return oi(e)&&oi(t)&&(i.set(t,e),pC(e,t,void 0,pQ,i),i.delete(t)),e}var Tpe=l0(function(e,t,n,r){pC(e,t,n,r)}),gQ=Tpe,Ppe=Ir(function(e){return e.push(void 0,pQ),Bl(gQ,void 0,e)}),$pe=Ppe,Ape="Expected a function";function vQ(e,t,n){if(typeof e!="function")throw new TypeError(Ape);return setTimeout(function(){e.apply(void 0,n)},t)}var Mpe=Ir(function(e,t){return vQ(e,1,t)}),Rpe=Mpe,Npe=Ir(function(e,t,n){return vQ(e,Ou(t)||0,n)}),Ipe=Npe;function hI(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 m1(e,t,n,r){var o=-1,i=aC,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=ri(t,Vl(n))),r?(i=hI,a=!1):t.length>=Dpe&&(i=EO,a=!1,t=new av(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=Ir(function(e,t){return Pi(e)?m1(e,Ba(t,1,Pi,!0)):[]}),Lpe=jpe;function Fl(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Bpe=Ir(function(e,t){var n=Fl(t);return Pi(n)&&(n=void 0),Pi(e)?m1(e,Ba(t,1,Pi,!0),vr(n)):[]}),Vpe=Bpe,Fpe=Ir(function(e,t){var n=Fl(t);return Pi(n)&&(n=void 0),Pi(e)?m1(e,Ba(t,1,Pi,!0),void 0,n):[]}),zpe=Fpe,Qpe=rC(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:Er(t),Tu(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:Er(t),t=r-t,Tu(e,0,t<0?0:t)):[]}function gC(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Tu(e,r?0:i,r?i+1:o):Tu(e,r?i+1:0,r?o:i)}function Upe(e,t){return e&&e.length?gC(e,vr(t),!0,!0):[]}function Hpe(e,t){return e&&e.length?gC(e,vr(t),!0):[]}function Of(e){return typeof e=="function"?e:Rs}function k5(e,t){var n=br(e)?Ru:_p;return n(e,Of(t))}function Xpe(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}var Gpe=cQ(!0),mQ=Gpe;function pI(e,t){return e&&mQ(e,t,oa)}var Kpe=fQ(pI,!0),yQ=Kpe;function C5(e,t){var n=br(e)?Xpe:yQ;return n(e,Of(t))}function qpe(e,t,n){e=ho(e),t=Ll(t);var r=e.length;n=n===void 0?r:Ov(Er(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function Jpe(e,t){return ri(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 bQ(e){return function(t){var n=cf(t);return n==tge?iI(t):n==nge?ege(t):Jpe(t,e(t))}}var rge=bQ(oa),E5=rge,oge=bQ(ol),T5=oge,ige={"&":"&","<":"<",">":">",'"':""","'":"'"},age=qN(ige),sge=age,_Q=/[&<>"']/g,lge=RegExp(_Q.source);function OQ(e){return e=ho(e),e&&lge.test(e)?e.replace(_Q,sge):e}var wQ=/[\\^$.*+?()[\]{}|]/g,uge=RegExp(wQ.source);function cge(e){return e=ho(e),e&&uge.test(e)?e.replace(wQ,"\\$&"):e}function SQ(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 _p(e,function(r,o,i){return n=!!t(r,o,i),n}),n}function dge(e,t,n){var r=br(e)?SQ:fge;return n&&Ps(e,t,n)&&(t=void 0),r(e,vr(t))}var hge=4294967295;function xQ(e){return e?Ov(Er(e),0,hge):0}function pge(e,t,n,r){var o=e.length;for(n=Er(n),n<0&&(n=-n>o?0:o+n),r=r===void 0||r>o?o:Er(r),r<0&&(r+=o),r=n>r?0:xQ(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"&&Ps(e,t,n)&&(n=0,r=o),pge(e,t,n,r)):[]}function kQ(e,t){var n=[];return _p(e,function(r,o,i){t(r,o,i)&&n.push(r)}),n}function vge(e,t){var n=br(e)?bp:kQ;return n(e,vr(t))}function CQ(e){return function(t,n,r){var o=Object(t);if(!rl(t)){var i=vr(n);t=oa(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 EQ(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:Er(n);return o<0&&(o=mge(r+o,0)),iC(e,vr(t),o)}var yge=CQ(EQ),bge=yge;function TQ(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 TQ(e,vr(t),_f)}var Oge=Math.max,wge=Math.min;function vC(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r-1;return n!==void 0&&(o=Er(n),o=n<0?Oge(r+o,0):wge(o,r-1)),iC(e,vr(t),o,!0)}var Sge=CQ(vC),xge=Sge;function kge(e,t){return TQ(e,vr(t),pI)}function P5(e){return e&&e.length?e[0]:void 0}function PQ(e,t){var n=-1,r=rl(e)?Array(e.length):[];return _p(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function mC(e,t){var n=br(e)?ri:PQ;return n(e,vr(t))}function $Q(e,t){return Ba(mC(e,t),1)}var Cge=1/0;function Ege(e,t){return Ba(mC(e,t),Cge)}function Tge(e,t,n){return n=n===void 0?1:Er(n),Ba(mC(e,t),n)}var Pge=1/0;function AQ(e){var t=e==null?0:e.length;return t?Ba(e,Pge):[]}function $ge(e,t){var n=e==null?0:e.length;return n?(t=t===void 0?1:Er(t),Ba(e,t)):[]}var Age=512;function Mge(e){return wd(e,Age)}var Rge=JN("floor"),Nge=Rge,Ige="Expected a function",Dge=8,jge=32,Lge=128,Bge=256;function MQ(e){return Cd(function(t){var n=t.length,r=n,o=Cu.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 Cu([],!0)}for(r=a?r:n;++r<n;){i=t[r];var s=qx(i),l=s=="wrapper"?LN(i):void 0;l&&UA(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&&UA(i)?a[s]():a.thru(i)}return function(){var u=arguments,d=u[0];if(a&&u.length==1&&br(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=MQ(),Fge=Vge,zge=MQ(!0),Qge=zge;function Wge(e,t){return e==null?e:cI(e,Of(t),ol)}function Yge(e,t){return e==null?e:mQ(e,Of(t),ol)}function Zge(e,t){return e&&_f(e,Of(t))}function Uge(e,t){return e&&pI(e,Of(t))}function Ny(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 yC(e,t){return bp(t,function(n){return _d(e[n])})}function Hge(e){return e==null?[]:yC(e,oa(e))}function Xge(e){return e==null?[]:yC(e,ol(e))}var Gge=Object.prototype,Kge=Gge.hasOwnProperty,qge=hC(function(e,t,n){Kge.call(e,n)?e[n].push(t):Sd(e,n,[t])}),Jge=qge;function gI(e,t){return e>t}function bC(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Ou(t),n=Ou(n)),e(t,n)}}var eve=bC(gI),tve=eve,nve=bC(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&&aQ(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=ud(t),n===void 0?(n=t,t=0):n=ud(n),e=Ou(e),cve(e,t,n)}var dve="[object String]";function _C(e){return typeof e=="string"||!br(e)&&bi(e)&&Ms(e)==dve}function vI(e,t){return ri(t,function(n){return e[n]})}function d0(e){return e==null?[]:vI(e,oa(e))}var hve=Math.max;function pve(e,t,n,r){e=rl(e)?e:d0(e),n=n&&!r?Er(n):0;var o=e.length;return n<0&&(n=hve(o+n,0)),_C(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&a0(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:Er(n);return o<0&&(o=gve(r+o,0)),a0(e,t,o)}function mve(e){var t=e==null?0:e.length;return t?Tu(e,0,-1):[]}var yve=Math.min;function mI(e,t,n){for(var r=n?hI:aC,o=e[0].length,i=e.length,a=i,s=Array(i),l=1/0,u=[];a--;){var d=e[a];a&&t&&(d=ri(d,Vl(t))),l=yve(d.length,l),s[a]=!n&&(t||o>=120&&d.length>=120)?new av(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?EO(v,w):r(u,w,n))){for(a=i;--a;){var b=s[a];if(!(b?EO(b,w):r(e[a],w,n)))continue e}v&&v.push(w),u.push(y)}}return u}function yI(e){return Pi(e)?e:[]}var bve=Ir(function(e){var t=ri(e,yI);return t.length&&t[0]===e[0]?mI(t):[]}),_ve=bve,Ove=Ir(function(e){var t=Fl(e),n=ri(e,yI);return t===Fl(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?mI(n,vr(t)):[]}),wve=Ove,Sve=Ir(function(e){var t=Fl(e),n=ri(e,yI);return t=typeof t=="function"?t:void 0,t&&n.pop(),n.length&&n[0]===e[0]?mI(n,void 0,t):[]}),xve=Sve;function kve(e,t,n,r){return _f(e,function(o,i,a){t(r,n(o),i,a)}),r}function RQ(e,t){return function(n,r){return kve(n,e,t(r),{})}}var Cve=Object.prototype,Eve=Cve.toString,Tve=RQ(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Eve.call(t)),e[t]=n},BN(Rs)),Pve=Tve,NQ=Object.prototype,$ve=NQ.hasOwnProperty,Ave=NQ.toString,Mve=RQ(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]},vr),Rve=Mve;function IQ(e,t){return t.length<2?e:_v(e,Tu(t,0,-1))}function y1(e,t,n){t=vp(t,e),e=IQ(e,t);var r=e==null?e:e[bf(Fl(t))];return r==null?void 0:Bl(r,e,n)}var Nve=Ir(y1),Ive=Nve,Dve=Ir(function(e,t,n){var r=-1,o=typeof t=="function",i=rl(e)?Array(e.length):[];return _p(e,function(a){i[++r]=o?Bl(t,a,n):y1(a,t,n)}),i}),jve=Dve,Lve="[object ArrayBuffer]";function Bve(e){return bi(e)&&Ms(e)==Lve}var $5=Eu&&Eu.isArrayBuffer,Vve=$5?Vl($5):Bve,Fve=Vve,zve="[object Boolean]";function Qve(e){return e===!0||e===!1||bi(e)&&Ms(e)==zve}var Wve="[object Date]";function Yve(e){return bi(e)&&Ms(e)==Wve}var A5=Eu&&Eu.isDate,Zve=A5?Vl(A5):Yve,Uve=Zve;function Hve(e){return bi(e)&&e.nodeType===1&&!g1(e)}var Xve="[object Map]",Gve="[object Set]",Kve=Object.prototype,qve=Kve.hasOwnProperty;function Jve(e){if(e==null)return!0;if(rl(e)&&(br(e)||typeof e=="string"||typeof e.splice=="function"||Xh(e)||u0(e)||ov(e)))return!e.length;var t=cf(e);if(t==Xve||t==Gve)return!e.size;if(h1(e))return!QN(e).length;for(var n in e)if(qve.call(e,n))return!1;return!0}function os(e,t){return v1(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?v1(e,t,void 0,n):!!r}var tme=ha.isFinite;function nme(e){return typeof e=="number"&&tme(e)}function DQ(e){return typeof e=="number"&&e==Er(e)}function rme(e,t){return e===t||aI(e,t,sI(t))}function ome(e,t,n){return n=typeof n=="function"?n:void 0,aI(e,t,sI(t),n)}var ime="[object Number]";function jQ(e){return typeof e=="number"||bi(e)&&Ms(e)==ime}function ame(e){return jQ(e)&&e!=+e}var sme=Kx?_d:zN,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 qz(e)}function zi(e){return e==null}function fme(e){return e===null}var dme="[object RegExp]";function hme(e){return bi(e)&&Ms(e)==dme}var M5=Eu&&Eu.isRegExp,pme=M5?Vl(M5):hme,bI=pme,R5=9007199254740991;function gme(e){return DQ(e)&&e>=-R5&&e<=R5}function _I(e){return e===void 0}var vme="[object WeakMap]";function mme(e){return bi(e)&&cf(e)==vme}var yme="[object WeakSet]";function bme(e){return bi(e)&&Ms(e)==yme}var _me=1;function Ome(e){return vr(typeof e=="function"?e:wu(e,_me))}var wme=Array.prototype,Sme=wme.join;function xme(e,t){return e==null?"":Sme.call(e,t)}var kme=f0(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Cme=kme,Eme=hC(function(e,t,n){Sd(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=Er(n),o=o<0?$me(r+o,0):Ame(o,r-1)),t===t?Pme(e,t,o):iC(e,i7,o,!0)}var Rme=f0(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Nme=Rme,Ime=C7("toLowerCase"),Dme=Ime;function OI(e,t){return e<t}var jme=bC(OI),Lme=jme,Bme=bC(function(e,t){return e<=t}),Vme=Bme;function Fme(e,t){var n={};return t=vr(t),_f(e,function(r,o,i){Sd(n,t(r,o,i),r)}),n}function zme(e,t){var n={};return t=vr(t),_f(e,function(r,o,i){Sd(n,o,t(r,o,i))}),n}var Qme=1;function Wme(e){return iQ(wu(e,Qme))}var Yme=1;function Zme(e,t){return sQ(e,wu(t,Yme))}function OC(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&&!jl(a):n(a,s)))var s=a,l=i}return l}function Ume(e){return e&&e.length?OC(e,Rs,gI):void 0}function Hme(e,t){return e&&e.length?OC(e,vr(t),gI):void 0}function wI(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 LQ(e,t){var n=e==null?0:e.length;return n?wI(e,t)/n:Xme}function Gme(e){return LQ(e,Rs)}function Kme(e,t){return LQ(e,vr(t))}var qme=l0(function(e,t,n){pC(e,t,n)}),BQ=qme,Jme=Ir(function(e,t){return function(n){return y1(n,e,t)}}),eye=Jme,tye=Ir(function(e,t){return function(n){return y1(e,n,t)}}),nye=tye;function rye(e){return e&&e.length?OC(e,Rs,OI):void 0}function oye(e,t){return e&&e.length?OC(e,vr(t),OI):void 0}function VQ(e,t,n){var r=oa(t),o=yC(t,r),i=!(oi(n)&&"chain"in n)||!!n.chain,a=_d(e);return Ru(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__=Ks(this.__actions__);return p.push({func:l,args:arguments,thisArg:e}),d.__chain__=u,d}return l.apply(e,mp([this.value()],arguments))})}),e}var iye=rC(function(e,t){return e*t},1),aye=iye,sye="Expected a function";function b1(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]",P$=as?as.iterator:void 0;function FQ(e){if(!e)return[];if(rl(e))return _C(e)?dc(e):Ks(e);if(P$&&e[P$])return lye(e[P$]());var t=cf(e),n=t==uye?iI:t==cye?dC:d0;return n(e)}function fye(){this.__values__===void 0&&(this.__values__=FQ(this.value()));var e=this.__index__>=this.__values__.length,t=e?void 0:this.__values__[this.__index__++];return{done:e,value:t}}function zQ(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Od(t,n)?e[t]:void 0}function dye(e,t){return e&&e.length?zQ(e,Er(t)):void 0}function hye(e){return e=Er(e),Ir(function(t){return zQ(t,e)})}function SI(e,t){return t=vp(t,e),e=IQ(e,t),e==null||delete e[bf(Fl(t))]}function pye(e){return g1(e)?void 0:e}var gye=1,vye=2,mye=4,yye=Cd(function(e,t){var n={};if(e==null)return n;var r=!1;t=ri(t,function(i){return i=vp(i,e),r||(r=i.length>1),i}),yf(e,nI(e),n),r&&(n=wu(n,gye|vye|mye,pye));for(var o=t.length;o--;)SI(n,t[o]);return n}),QQ=yye;function _1(e,t,n,r){if(!oi(e))return e;t=vp(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=bf(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=oi(d)?d:Od(t[o+1])?[]:{})}d1(s,l,u),s=s[l]}return e}function WQ(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=_v(e,a);n(s,a)&&_1(i,vp(a,e),s)}return i}function YQ(e,t){if(e==null)return{};var n=ri(nI(e),function(r){return[r]});return t=vr(t),WQ(e,n,function(r,o){return t(r,o[0])})}function bye(e,t){return YQ(e,b1(vr(t)))}function _ye(e){return y7(2,e)}function Oye(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function ZQ(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e===e,i=jl(e),a=t!==void 0,s=t===null,l=t===t,u=jl(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=ZQ(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 UQ(e,t,n){t.length?t=ri(t,function(i){return br(i)?function(a){return _v(a,i.length===1?i[0]:i)}:i}):t=[Rs];var r=-1;t=ri(t,Vl(vr));var o=PQ(e,function(i,a,s){var l=ri(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?[]:(br(t)||(t=t==null?[]:[t]),n=r?void 0:n,br(n)||(n=n==null?[]:[n]),UQ(e,t,n))}function xI(e){return Cd(function(t){return t=ri(t,Vl(vr)),Ir(function(n){var r=this;return e(t,function(o){return Bl(o,r,n)})})})}var xye=xI(ri),kye=xye,Cye=Ir,Eye=Cye,Tye=Math.min,Pye=Eye(function(e,t){t=t.length==1&&br(t[0])?ri(t[0],Vl(vr)):ri(Ba(t,1),Vl(vr));var n=t.length;return Ir(function(r){for(var o=-1,i=Tye(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Bl(e,this,r)})}),$ye=Pye,Aye=xI(SQ),Mye=Aye,Rye=xI(oI),Nye=Rye,Iye=9007199254740991,Dye=Math.floor;function nM(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=uI("length"),Lye=jye,HQ="\\ud800-\\udfff",Bye="\\u0300-\\u036f",Vye="\\ufe20-\\ufe2f",Fye="\\u20d0-\\u20ff",zye=Bye+Vye+Fye,Qye="\\ufe0e\\ufe0f",Wye="["+HQ+"]",rM="["+zye+"]",oM="\\ud83c[\\udffb-\\udfff]",Yye="(?:"+rM+"|"+oM+")",XQ="[^"+HQ+"]",GQ="(?:\\ud83c[\\udde6-\\uddff]){2}",KQ="[\\ud800-\\udbff][\\udc00-\\udfff]",Zye="\\u200d",qQ=Yye+"?",JQ="["+Qye+"]?",Uye="(?:"+Zye+"(?:"+[XQ,GQ,KQ].join("|")+")"+JQ+qQ+")*",Hye=JQ+qQ+Uye,Xye="(?:"+[XQ+rM+"?",rM,GQ,KQ,Wye].join("|")+")",N5=RegExp(oM+"(?="+oM+")|"+Xye+Hye,"g");function Gye(e){for(var t=N5.lastIndex=0;N5.test(e);)++t;return t}function h0(e){return c0(e)?Gye(e):Lye(e)}var Kye=Math.ceil;function Bk(e,t){t=t===void 0?" ":Ll(t);var n=t.length;if(n<2)return n?nM(t,e):t;var r=nM(t,Kye(e/h0(t)));return c0(t)?yp(dc(r),0,e).join(""):r.slice(0,e)}var qye=Math.ceil,Jye=Math.floor;function e0e(e,t,n){e=ho(e),t=Er(t);var r=t?h0(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Bk(Jye(o),n)+e+Bk(qye(o),n)}function t0e(e,t,n){e=ho(e),t=Er(t);var r=t?h0(e):0;return t&&r<t?e+Bk(t-r,n):e}function n0e(e,t,n){e=ho(e),t=Er(t);var r=t?h0(e):0;return t&&r<t?Bk(t-r,n)+e:e}var r0e=/^\s+/,o0e=ha.parseInt;function i0e(e,t,n){return n||t==null?t=0:t&&(t=+t),o0e(ho(e).replace(r0e,""),t||0)}var a0e=32,kI=Ir(function(e,t){var n=Hh(t,s0(kI));return wd(e,a0e,void 0,t,n)});kI.placeholder={};var eW=kI,s0e=64,CI=Ir(function(e,t){var n=Hh(t,s0(CI));return wd(e,s0e,void 0,t,n)});CI.placeholder={};var l0e=CI,u0e=hC(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),c0e=u0e;function f0e(e,t){return WQ(e,t,function(n,r){return lI(e,r)})}var d0e=Cd(function(e,t){return e==null?{}:f0e(e,t)}),gu=d0e;function h0e(e){for(var t,n=this;n instanceof oC;){var r=n7(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:_v(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,I5=v0e.splice;function EI(e,t,n,r){var o=r?g0e:a0,i=-1,a=t.length,s=e;for(e===t&&(t=Ks(t)),n&&(s=ri(e,Vl(n)));++i<a;)for(var l=0,u=t[i],d=n?n(u):u;(l=o(s,d,l,r))>-1;)s!==e&&I5.call(s,l,1),I5.call(e,l,1);return e}function tW(e,t){return e&&e.length&&t&&t.length?EI(e,t):e}var m0e=Ir(tW),y0e=m0e;function b0e(e,t,n){return e&&e.length&&t&&t.length?EI(e,t,vr(n)):e}function _0e(e,t,n){return e&&e.length&&t&&t.length?EI(e,t,void 0,n):e}var O0e=Array.prototype,w0e=O0e.splice;function nW(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;Od(o)?w0e.call(e,o,1):SI(e,o)}}return e}var S0e=Cd(function(e,t){var n=e==null?0:e.length,r=YN(e,t);return nW(e,ri(t,function(o){return Od(o,n)?+o:o}).sort(ZQ)),r}),x0e=S0e,k0e=Math.floor,C0e=Math.random;function TI(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"&&Ps(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=ud(e),t===void 0?(t=e,e=0):t=ud(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 TI(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 rW(e){return function(t,n,r){return r&&typeof r!="number"&&Ps(t,n,r)&&(n=r=void 0),t=ud(t),n===void 0?(n=t,t=0):n=ud(n),r=r===void 0?t<n?1:-1:ud(r),R0e(t,n,r,e)}}var N0e=rW(),I0e=N0e,D0e=rW(!0),j0e=D0e,L0e=256,B0e=Cd(function(e,t){return wd(e,L0e,void 0,void 0,void 0,t)}),V0e=B0e;function oW(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=br(e)?KN:oW,o=arguments.length<3;return r(e,vr(t),n,o,_p)}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=br(e)?z0e:oW,o=arguments.length<3;return r(e,vr(t),n,o,yQ)}function W0e(e,t){var n=br(e)?bp:kQ;return n(e,b1(vr(t)))}function Y0e(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,o=[],i=e.length;for(t=vr(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return nW(e,o),n}function Z0e(e,t,n){return(n?Ps(e,t,n):t===void 0)?t=1:t=Er(t),nM(ho(e),t)}function U0e(){var e=arguments,t=ho(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:Er(t),Ir(e,t)}function G0e(e,t,n){t=vp(t,e);var r=-1,o=t.length;for(o||(o=1,e=void 0);++r<o;){var i=e==null?void 0:e[bf(t[r])];i===void 0&&(r=o,i=n),e=_d(i)?i.call(e):i}return e}var K0e=Array.prototype,q0e=K0e.reverse;function iM(e){return e==null?e:q0e.call(e)}var J0e=JN("round"),ebe=J0e;function iW(e){var t=e.length;return t?e[TI(0,t-1)]:void 0}function tbe(e){return iW(d0(e))}function nbe(e){var t=br(e)?iW:tbe;return t(e)}function wC(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=TI(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function rbe(e,t){return wC(Ks(e),Ov(t,0,e.length))}function obe(e,t){var n=d0(e);return wC(n,Ov(t,0,n.length))}function ibe(e,t,n){(n?Ps(e,t,n):t===void 0)?t=1:t=Er(t);var r=br(e)?rbe:obe;return r(e,t)}function aW(e,t,n){return e==null?e:_1(e,t,n)}function abe(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:_1(e,t,n,r)}function sbe(e){return wC(Ks(e))}function lbe(e){return wC(d0(e))}function ube(e){var t=br(e)?sbe:lbe;return t(e)}var cbe="[object Map]",fbe="[object Set]";function dbe(e){if(e==null)return 0;if(rl(e))return _C(e)?h0(e):e.length;var t=cf(e);return t==cbe||t==fbe?e.size:QN(e).length}function hbe(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&Ps(e,t,n)?(t=0,n=r):(t=t==null?0:Er(t),n=n===void 0?r:Er(n)),Tu(e,t,n)):[]}var pbe=f0(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),gbe=pbe;function vbe(e,t){var n;return _p(e,function(r,o,i){return n=t(r,o,i),!n}),!!n}function mbe(e,t,n){var r=br(e)?oI:vbe;return n&&Ps(e,t,n)&&(t=void 0),r(e,vr(t))}var ybe=Ir(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ps(e,t[0],t[1])?t=[]:n>2&&Ps(t[0],t[1],t[2])&&(t=[t[0]]),UQ(e,Ba(t,1),[])}),bbe=ybe,_be=4294967295,Obe=_be-1,wbe=Math.floor,Sbe=Math.min;function PI(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=jl(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=jl(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 SC(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&&!jl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return PI(e,t,Rs,n)}function Cbe(e,t){return SC(e,t)}function Ebe(e,t,n){return PI(e,t,vr(n))}function Tbe(e,t){var n=e==null?0:e.length;if(n){var r=SC(e,t);if(r<n&&mc(e[r],t))return r}return-1}function Pbe(e,t){return SC(e,t,!0)}function $be(e,t,n){return PI(e,t,vr(n),!0)}function Abe(e,t){var n=e==null?0:e.length;if(n){var r=SC(e,t,!0)-1;if(mc(e[r],t))return r}return-1}function sW(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||!mc(s,l)){var l=s;i[o++]=a===0?0:a}}return i}function Mbe(e){return e&&e.length?sW(e):[]}function Rbe(e,t){return e&&e.length?sW(e,vr(t)):[]}var Nbe=4294967295;function Ibe(e,t,n){return n&&typeof n!="number"&&Ps(e,t,n)&&(t=n=void 0),n=n===void 0?Nbe:n>>>0,n?(e=ho(e),e&&(typeof t=="string"||t!=null&&!bI(t))&&(t=Ll(t),!t&&c0(e))?yp(dc(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(Er(t),0),Ir(function(n){var r=n[t],o=yp(n,0,t);return r&&mp(o,r),Bl(e,this,o)})}var Bbe=f0(function(e,t,n){return e+(n?" ":"")+GN(t)}),Vbe=Bbe;function Fbe(e,t,n){return e=ho(e),n=n==null?0:Ov(Er(n),0,e.length),t=Ll(t),e.slice(n,n+t.length)==t}function zbe(){return{}}function Qbe(){return""}function Wbe(){return!0}var Ybe=rC(function(e,t){return e-t},0),Zbe=Ybe;function Ube(e){return e&&e.length?wI(e,Rs):0}function Hbe(e,t){return e&&e.length?wI(e,vr(t)):0}function Xbe(e){var t=e==null?0:e.length;return t?Tu(e,1,t):[]}function Gbe(e,t,n){return e&&e.length?(t=n||t===void 0?1:Er(t),Tu(e,0,t<0?0:t)):[]}function Kbe(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:Er(t),t=r-t,Tu(e,t<0?0:t,r)):[]}function qbe(e,t){return e&&e.length?gC(e,vr(t),!1,!0):[]}function Jbe(e,t){return e&&e.length?gC(e,vr(t)):[]}function e_e(e,t){return t(e),e}var lW=Object.prototype,t_e=lW.hasOwnProperty;function D5(e,t,n,r){return e===void 0||mc(e,lW[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,uW=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:uW,variable:"",imports:{_:{escape:OQ}}},aM=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,ix=/($^)/,v_e=/['\n\r\u2028\u2029\\]/g,m_e=Object.prototype,j5=m_e.hasOwnProperty;function y_e(e,t,n){var r=aM.imports._.templateSettings||aM;n&&Ps(e,t,n)&&(t=void 0),e=ho(e),t=jk({},t,r,D5);var o=jk({},t.imports,r.imports,D5),i=oa(o),a=vI(o,i),s,l,u=0,d=t.interpolate||ix,p="__p += '",v=RegExp((t.escape||ix).source+"|"+d.source+"|"+(d===uW?g_e:ix).source+"|"+(t.evaluate||ix).source+"|$","g"),y=j5.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
- `:"";e.replace(v,function(k,C,P,$,T,A){return P||(P=$),p+=e.slice(u,A).replace(v_e,r_e),C&&(s=!0,p+=`' +
- __e(`+C+`) +
- '`),T&&(l=!0,p+=`';
- `+T+`;
- __p += '`),P&&(p+=`' +
- ((__t = (`+P+`)) == null ? '' : __t) +
- '`),u=A+k.length,k}),p+=`';
- `;var w=j5.call(t,"variable")&&t.variable;if(!w)p=`with (obj) {
- `+p+`
- }
- `;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")+`) {
- `+(w?"":`obj || (obj = {});
- `)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- `:`;
- `)+p+`return __p
- }`;var b=m7(function(){return Function(i,y+"return "+p).apply(void 0,a)});if(b.source=p,UN(b))throw b;return b}var b_e="Expected a function";function Lh(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(b_e);return oi(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),$s(e,t,{leading:r,maxWait:t,trailing:o})}function O1(e,t){return t(e)}var __e=9007199254740991,$$=4294967295,O_e=Math.min;function w_e(e,t){if(e=Er(e),e<1||e>__e)return[];var n=$$,r=O_e(e,$$);t=Of(t),e-=$$;for(var o=FN(r,t);++n<e;)t(n);return o}function S_e(){return this}function cW(e,t){var n=e;return n instanceof Zr&&(n=n.value()),KN(t,function(r,o){return o.func.apply(o.thisArg,mp([r],o.args))},n)}function A$(){return cW(this.__wrapped__,this.__actions__)}function x_e(e){return ho(e).toLowerCase()}function k_e(e){return br(e)?ri(e,bf):jl(e)?[e]:Ks(g7(ho(e)))}var L5=9007199254740991;function C_e(e){return e?Ov(Er(e),-L5,L5):e===0?e:0}function E_e(e){return ho(e).toUpperCase()}function T_e(e,t,n){var r=br(e),o=r||Xh(e)||u0(e);if(t=vr(t),n==null){var i=e&&e.constructor;o?n=r?new i:[]:oi(e)?n=_d(i)?i0(fC(e)):{}:n={}}return(o?Ru:_f)(e,function(a,s,l){return t(n,a,s,l)}),n}function fW(e,t){for(var n=e.length;n--&&a0(t,e[n],0)>-1;);return n}function dW(e,t){for(var n=-1,r=e.length;++n<r&&a0(t,e[n],0)>-1;);return n}function P_e(e,t,n){if(e=ho(e),e&&(n||t===void 0))return Kz(e);if(!e||!(t=Ll(t)))return e;var r=dc(e),o=dc(t),i=dW(r,o),a=fW(r,o)+1;return yp(r,i,a).join("")}function $_e(e,t,n){if(e=ho(e),e&&(n||t===void 0))return e.slice(0,Gz(e)+1);if(!e||!(t=Ll(t)))return e;var r=dc(e),o=fW(r,dc(t))+1;return yp(r,0,o).join("")}var A_e=/^\s+/;function M_e(e,t,n){if(e=ho(e),e&&(n||t===void 0))return e.replace(A_e,"");if(!e||!(t=Ll(t)))return e;var r=dc(e),o=dW(r,dc(t));return yp(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(oi(t)){var o="separator"in t?t.separator:o;n="length"in t?Er(t.length):n,r="omission"in t?Ll(t.omission):r}e=ho(e);var i=e.length;if(c0(e)){var a=dc(e);i=a.length}if(n>=i)return e;var s=n-h0(r);if(s<1)return r;var l=a?yp(a,0,s).join(""):e.slice(0,s);if(o===void 0)return l+r;if(a&&(s+=l.length-s),bI(o)){if(e.slice(s).search(o)){var u,d=l;for(o.global||(o=RegExp(o.source,ho(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(Ll(o),s)!=s){var v=l.lastIndexOf(o);v>-1&&(l=l.slice(0,v))}return l+r}function j_e(e){return l7(e,1)}var L_e={"&":"&","<":"<",">":">",""":'"',"'":"'"},B_e=qN(L_e),V_e=B_e,hW=/&(?:amp|lt|gt|quot|#39);/g,F_e=RegExp(hW.source);function z_e(e){return e=ho(e),e&&F_e.test(e)?e.replace(hW,V_e):e}var Q_e=1/0,W_e=vy&&1/dC(new vy([,-0]))[1]==Q_e?function(e){return new vy(e)}:jN,Y_e=W_e,Z_e=200;function Gh(e,t,n){var r=-1,o=aC,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=hI;else if(i>=Z_e){var u=t?null:Y_e(e);if(u)return dC(u);a=!1,o=EO,l=new av}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=Ir(function(e){return Gh(Ba(e,1,Pi,!0))}),ek=U_e,H_e=Ir(function(e){var t=Fl(e);return Pi(t)&&(t=void 0),Gh(Ba(e,1,Pi,!0),vr(t))}),X_e=H_e,G_e=Ir(function(e){var t=Fl(e);return t=typeof t=="function"?t:void 0,Gh(Ba(e,1,Pi,!0),void 0,t)}),K_e=G_e;function q_e(e){return e&&e.length?Gh(e):[]}function J_e(e,t){return e&&e.length?Gh(e,vr(t)):[]}function eOe(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?Gh(e,void 0,t):[]}var tOe=0;function nOe(e){var t=++tOe;return ho(e)+t}function rOe(e,t){return e==null?!0:SI(e,t)}var oOe=Math.max;function $I(e){if(!(e&&e.length))return[];var t=0;return e=bp(e,function(n){if(Pi(n))return t=oOe(n.length,t),!0}),FN(t,function(n){return ri(e,uI(n))})}function pW(e,t){if(!(e&&e.length))return[];var n=$I(e);return t==null?n:ri(n,function(r){return Bl(t,void 0,r)})}function gW(e,t,n,r){return _1(e,t,n(_v(e,t)),r)}function iOe(e,t,n){return e==null?e:gW(e,t,Of(n))}function aOe(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:gW(e,t,Of(n),r)}var sOe=f0(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),lOe=sOe;function uOe(e){return e==null?[]:vI(e,ol(e))}var cOe=Ir(function(e,t){return Pi(e)?m1(e,t):[]}),fOe=cOe;function dOe(e,t){return eW(Of(t),e)}var hOe=Cd(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(i){return YN(i,e)};return t>1||this.__actions__.length||!(r instanceof Zr)||!Od(n)?this.thru(o):(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:O1,args:[o],thisArg:void 0}),new Cu(r,this.__chain__).thru(function(i){return t&&!i.length&&i.push(void 0),i}))}),pOe=hOe;function gOe(){return Q7(this)}function vOe(){var e=this.__wrapped__;if(e instanceof Zr){var t=e;return this.__actions__.length&&(t=new Zr(this)),t=t.reverse(),t.__actions__.push({func:O1,args:[iM],thisArg:void 0}),new Cu(t,this.__chain__)}return this.thru(iM)}function AI(e,t,n){var r=e.length;if(r<2)return r?Gh(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=m1(i[o]||a,e[s],t,n));return Gh(Ba(i,1),t,n)}var mOe=Ir(function(e){return AI(bp(e,Pi))}),yOe=mOe,bOe=Ir(function(e){var t=Fl(e);return Pi(t)&&(t=void 0),AI(bp(e,Pi),vr(t))}),_Oe=bOe,OOe=Ir(function(e){var t=Fl(e);return t=typeof t=="function"?t:void 0,AI(bp(e,Pi),void 0,t)}),wOe=OOe,SOe=Ir($I),xOe=SOe;function vW(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 vW(e||[],t||[],d1)}function COe(e,t){return vW(e||[],t||[],_1)}var EOe=Ir(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n=typeof n=="function"?(e.pop(),n):void 0,pW(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:EQ,findLastIndex:vC,first:P5,flatten:ZN,flattenDeep:AQ,flattenDepth:$ge,fromPairs:Ny,head:P5,indexOf:vve,initial:mve,intersection:_ve,intersectionBy:wve,intersectionWith:xve,join:xme,last:Fl,lastIndexOf:Mme,nth:dye,pull:y0e,pullAll:tW,pullAllBy:b0e,pullAllWith:_0e,pullAt:x0e,remove:Y0e,reverse:iM,slice:hbe,sortedIndex:Cbe,sortedIndexBy:Ebe,sortedIndexOf:Tbe,sortedLastIndex:Pbe,sortedLastIndexBy:$be,sortedLastIndexOf:Abe,sortedUniq:Mbe,sortedUniqBy:Rbe,tail:Xbe,take:Gbe,takeRight:Kbe,takeRightWhile:qbe,takeWhile:Jbe,union:ek,unionBy:X_e,unionWith:K_e,uniq:q_e,uniqBy:J_e,uniqWith:eOe,unzip:$I,unzipWith:pW,without:fOe,xor:yOe,xorBy:_Oe,xorWith:wOe,zip:xOe,zipObject:kOe,zipObjectDeep:COe,zipWith:TOe},So={countBy:gpe,each:k5,eachRight:C5,every:dge,filter:vge,find:bge,findLast:xge,flatMap:$Q,flatMapDeep:Ege,flatMapDepth:Tge,forEach:k5,forEachRight:C5,groupBy:Jge,includes:pve,invokeMap:jve,keyBy:Tme,map:mC,orderBy:Sye,partition:c0e,reduce:F0e,reduceRight:Q0e,reject:W0e,sample:nbe,sampleSize:ibe,shuffle:ube,size:dbe,some:mbe,sortBy:bbe},POe={now:Jx},Oi={after:Vae,ary:l7,before:y7,bind:b7,bindKey:yce,curry:fI,curryRight:dI,debounce:$s,defer:Rpe,delay:Ipe,flip:Mge,memoize:p1,negate:b1,once:_ye,overArgs:$ye,partial:eW,partialRight:l0e,rearg:V0e,rest:X0e,spread:Lbe,throttle:Lh,unary:j_e,wrap:dOe},Gn={castArray:Ra,clone:JA,cloneDeep:CO,cloneDeepWith:yhe,cloneWith:_he,conformsTo:spe,eq:mc,gt:tve,gte:rve,isArguments:ov,isArray:br,isArrayBuffer:Fve,isArrayLike:rl,isArrayLikeObject:Pi,isBoolean:Qve,isBuffer:Xh,isDate:Uve,isElement:Hve,isEmpty:Jve,isEqual:os,isEqualWith:eme,isError:UN,isFinite:nme,isFunction:_d,isInteger:DQ,isLength:lC,isMap:K7,isMatch:rme,isMatchWith:ome,isNaN:ame,isNative:cme,isNil:zi,isNull:fme,isNumber:jQ,isObject:oi,isObjectLike:bi,isPlainObject:g1,isRegExp:bI,isSafeInteger:gme,isSet:q7,isString:_C,isSymbol:jl,isTypedArray:u0,isUndefined:_I,isWeakMap:mme,isWeakSet:bme,lt:Lme,lte:Vme,toArray:FQ,toFinite:ud,toInteger:Er,toLength:xQ,toNumber:Ou,toPlainObject:hQ,toSafeInteger:C_e,toString:ho},Ns={add:Aae,ceil:Mfe,divide:Wpe,floor:Nge,max:Ume,maxBy:Hme,mean:Gme,meanBy:Kme,min:rye,minBy:oye,multiply:aye,round:ebe,subtract:Zbe,sum:Ube,sumBy:Hbe},MI={clamp:Dfe,inRange:fve,random:$0e},gr={assign:lue,assignIn:n5,assignInWith:jk,assignWith:vue,at:ece,create:vpe,defaults:Cpe,defaultsDeep:$pe,entries:E5,entriesIn:T5,extend:n5,extendWith:jk,findKey:_ge,findLastKey:kge,forIn:Wge,forInRight:Yge,forOwn:Zge,forOwnRight:Uge,functions:Hge,functionsIn:Xge,get:Mo,has:sve,hasIn:lI,invert:Pve,invertBy:Rve,invoke:Ive,keys:oa,keysIn:ol,mapKeys:Fme,mapValues:zme,merge:BQ,mergeWith:gQ,omit:QQ,omitBy:bye,pick:gu,pickBy:YQ,result:G0e,set:aW,setWith:abe,toPairs:E5,toPairsIn:T5,transform:T_e,unset:rOe,update:iOe,updateWith:aOe,values:d0,valuesIn:uOe},wf={at:pOe,chain:Q7,commit:Ohe,lodash:Pe,next:fye,plant:h0e,reverse:vOe,tap:e_e,thru:O1,toIterator:S_e,toJSON:A$,value:A$,valueOf:A$,wrapperChain:gOe},co={camelCase:Tfe,capitalize:E7,deburr:T7,endsWith:qpe,escape:OQ,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:aM,toLower:x_e,toUpper:E_e,trim:P_e,trimEnd:$_e,trimStart:M_e,truncate:D_e,unescape:z_e,upperCase:lOe,upperFirst:GN,words:z7},po={attempt:m7,bindAll:pce,cond:rpe,conforms:ape,constant:BN,defaultTo:Spe,flow:Fge,flowRight:Qge,identity:Rs,iteratee:Ome,matches:Wme,matchesProperty:Zme,method:eye,methodOf:nye,mixin:VQ,noop:jN,nthArg:hye,over:kye,overEvery:Mye,overSome:Nye,property:lQ,propertyOf:p0e,range:I0e,rangeRight:j0e,stubArray:eI,stubFalse:zN,stubObject:zbe,stubString:Qbe,stubTrue:Wbe,times:w_e,toPath:k_e,uniqueId:nOe};function $Oe(){var e=new Zr(this.__wrapped__);return e.__actions__=Ks(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ks(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ks(this.__views__),e}function AOe(){if(this.__filtered__){var e=new Zr(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=br(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 cW(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],P=C.iteratee,$=C.type,T=P(k);if($==DOe)k=T;else if(!T){if($==IOe)continue e;break e}}w[v++]=k}return w}/**
- * @license
- * Lodash (Custom Build) <https://lodash.com/>
- * Build: `lodash modularize exports="es" -o ./`
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */var BOe="4.17.21",VOe=2,FOe=1,zOe=3,mW=4294967295,QOe=Array.prototype,WOe=Object.prototype,yW=WOe.hasOwnProperty,B5=as?as.iterator:void 0,YOe=Math.max,V5=Math.min,RI=function(e){return function(t,n,r){if(r==null){var o=oi(n),i=o&&oa(n),a=i&&i.length&&yC(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(VQ);Pe.after=Oi.after;Pe.ary=Oi.ary;Pe.assign=gr.assign;Pe.assignIn=gr.assignIn;Pe.assignInWith=gr.assignInWith;Pe.assignWith=gr.assignWith;Pe.at=gr.at;Pe.before=Oi.before;Pe.bind=Oi.bind;Pe.bindAll=po.bindAll;Pe.bindKey=Oi.bindKey;Pe.castArray=Gn.castArray;Pe.chain=wf.chain;Pe.chunk=Mn.chunk;Pe.compact=Mn.compact;Pe.concat=Mn.concat;Pe.cond=po.cond;Pe.conforms=po.conforms;Pe.constant=po.constant;Pe.countBy=So.countBy;Pe.create=gr.create;Pe.curry=Oi.curry;Pe.curryRight=Oi.curryRight;Pe.debounce=Oi.debounce;Pe.defaults=gr.defaults;Pe.defaultsDeep=gr.defaultsDeep;Pe.defer=Oi.defer;Pe.delay=Oi.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=So.filter;Pe.flatMap=So.flatMap;Pe.flatMapDeep=So.flatMapDeep;Pe.flatMapDepth=So.flatMapDepth;Pe.flatten=Mn.flatten;Pe.flattenDeep=Mn.flattenDeep;Pe.flattenDepth=Mn.flattenDepth;Pe.flip=Oi.flip;Pe.flow=po.flow;Pe.flowRight=po.flowRight;Pe.fromPairs=Mn.fromPairs;Pe.functions=gr.functions;Pe.functionsIn=gr.functionsIn;Pe.groupBy=So.groupBy;Pe.initial=Mn.initial;Pe.intersection=Mn.intersection;Pe.intersectionBy=Mn.intersectionBy;Pe.intersectionWith=Mn.intersectionWith;Pe.invert=gr.invert;Pe.invertBy=gr.invertBy;Pe.invokeMap=So.invokeMap;Pe.iteratee=po.iteratee;Pe.keyBy=So.keyBy;Pe.keys=oa;Pe.keysIn=gr.keysIn;Pe.map=So.map;Pe.mapKeys=gr.mapKeys;Pe.mapValues=gr.mapValues;Pe.matches=po.matches;Pe.matchesProperty=po.matchesProperty;Pe.memoize=Oi.memoize;Pe.merge=gr.merge;Pe.mergeWith=gr.mergeWith;Pe.method=po.method;Pe.methodOf=po.methodOf;Pe.mixin=RI;Pe.negate=b1;Pe.nthArg=po.nthArg;Pe.omit=gr.omit;Pe.omitBy=gr.omitBy;Pe.once=Oi.once;Pe.orderBy=So.orderBy;Pe.over=po.over;Pe.overArgs=Oi.overArgs;Pe.overEvery=po.overEvery;Pe.overSome=po.overSome;Pe.partial=Oi.partial;Pe.partialRight=Oi.partialRight;Pe.partition=So.partition;Pe.pick=gr.pick;Pe.pickBy=gr.pickBy;Pe.property=po.property;Pe.propertyOf=po.propertyOf;Pe.pull=Mn.pull;Pe.pullAll=Mn.pullAll;Pe.pullAllBy=Mn.pullAllBy;Pe.pullAllWith=Mn.pullAllWith;Pe.pullAt=Mn.pullAt;Pe.range=po.range;Pe.rangeRight=po.rangeRight;Pe.rearg=Oi.rearg;Pe.reject=So.reject;Pe.remove=Mn.remove;Pe.rest=Oi.rest;Pe.reverse=Mn.reverse;Pe.sampleSize=So.sampleSize;Pe.set=gr.set;Pe.setWith=gr.setWith;Pe.shuffle=So.shuffle;Pe.slice=Mn.slice;Pe.sortBy=So.sortBy;Pe.sortedUniq=Mn.sortedUniq;Pe.sortedUniqBy=Mn.sortedUniqBy;Pe.split=co.split;Pe.spread=Oi.spread;Pe.tail=Mn.tail;Pe.take=Mn.take;Pe.takeRight=Mn.takeRight;Pe.takeRightWhile=Mn.takeRightWhile;Pe.takeWhile=Mn.takeWhile;Pe.tap=wf.tap;Pe.throttle=Oi.throttle;Pe.thru=O1;Pe.toArray=Gn.toArray;Pe.toPairs=gr.toPairs;Pe.toPairsIn=gr.toPairsIn;Pe.toPath=po.toPath;Pe.toPlainObject=Gn.toPlainObject;Pe.transform=gr.transform;Pe.unary=Oi.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=gr.unset;Pe.unzip=Mn.unzip;Pe.unzipWith=Mn.unzipWith;Pe.update=gr.update;Pe.updateWith=gr.updateWith;Pe.values=gr.values;Pe.valuesIn=gr.valuesIn;Pe.without=Mn.without;Pe.words=co.words;Pe.wrap=Oi.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=gr.toPairs;Pe.entriesIn=gr.toPairsIn;Pe.extend=gr.assignIn;Pe.extendWith=gr.assignInWith;RI(Pe,Pe);Pe.add=Ns.add;Pe.attempt=po.attempt;Pe.camelCase=co.camelCase;Pe.capitalize=co.capitalize;Pe.ceil=Ns.ceil;Pe.clamp=MI.clamp;Pe.clone=Gn.clone;Pe.cloneDeep=Gn.cloneDeep;Pe.cloneDeepWith=Gn.cloneDeepWith;Pe.cloneWith=Gn.cloneWith;Pe.conformsTo=Gn.conformsTo;Pe.deburr=co.deburr;Pe.defaultTo=po.defaultTo;Pe.divide=Ns.divide;Pe.endsWith=co.endsWith;Pe.eq=Gn.eq;Pe.escape=co.escape;Pe.escapeRegExp=co.escapeRegExp;Pe.every=So.every;Pe.find=So.find;Pe.findIndex=Mn.findIndex;Pe.findKey=gr.findKey;Pe.findLast=So.findLast;Pe.findLastIndex=Mn.findLastIndex;Pe.findLastKey=gr.findLastKey;Pe.floor=Ns.floor;Pe.forEach=So.forEach;Pe.forEachRight=So.forEachRight;Pe.forIn=gr.forIn;Pe.forInRight=gr.forInRight;Pe.forOwn=gr.forOwn;Pe.forOwnRight=gr.forOwnRight;Pe.get=gr.get;Pe.gt=Gn.gt;Pe.gte=Gn.gte;Pe.has=gr.has;Pe.hasIn=gr.hasIn;Pe.head=Mn.head;Pe.identity=Rs;Pe.includes=So.includes;Pe.indexOf=Mn.indexOf;Pe.inRange=MI.inRange;Pe.invoke=gr.invoke;Pe.isArguments=Gn.isArguments;Pe.isArray=br;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=oi;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=co.kebabCase;Pe.last=Fl;Pe.lastIndexOf=Mn.lastIndexOf;Pe.lowerCase=co.lowerCase;Pe.lowerFirst=co.lowerFirst;Pe.lt=Gn.lt;Pe.lte=Gn.lte;Pe.max=Ns.max;Pe.maxBy=Ns.maxBy;Pe.mean=Ns.mean;Pe.meanBy=Ns.meanBy;Pe.min=Ns.min;Pe.minBy=Ns.minBy;Pe.stubArray=po.stubArray;Pe.stubFalse=po.stubFalse;Pe.stubObject=po.stubObject;Pe.stubString=po.stubString;Pe.stubTrue=po.stubTrue;Pe.multiply=Ns.multiply;Pe.nth=Mn.nth;Pe.noop=po.noop;Pe.now=POe.now;Pe.pad=co.pad;Pe.padEnd=co.padEnd;Pe.padStart=co.padStart;Pe.parseInt=co.parseInt;Pe.random=MI.random;Pe.reduce=So.reduce;Pe.reduceRight=So.reduceRight;Pe.repeat=co.repeat;Pe.replace=co.replace;Pe.result=gr.result;Pe.round=Ns.round;Pe.sample=So.sample;Pe.size=So.size;Pe.snakeCase=co.snakeCase;Pe.some=So.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=co.startCase;Pe.startsWith=co.startsWith;Pe.subtract=Ns.subtract;Pe.sum=Ns.sum;Pe.sumBy=Ns.sumBy;Pe.template=co.template;Pe.times=po.times;Pe.toFinite=Gn.toFinite;Pe.toInteger=Er;Pe.toLength=Gn.toLength;Pe.toLower=co.toLower;Pe.toNumber=Gn.toNumber;Pe.toSafeInteger=Gn.toSafeInteger;Pe.toString=Gn.toString;Pe.toUpper=co.toUpper;Pe.trim=co.trim;Pe.trimEnd=co.trimEnd;Pe.trimStart=co.trimStart;Pe.truncate=co.truncate;Pe.unescape=co.unescape;Pe.uniqueId=po.uniqueId;Pe.upperCase=co.upperCase;Pe.upperFirst=co.upperFirst;Pe.each=So.forEach;Pe.eachRight=So.forEachRight;Pe.first=Mn.head;RI(Pe,function(){var e={};return _f(Pe,function(t,n){yW.call(Pe.prototype,n)||(e[n]=t)}),e}(),{chain:!1});Pe.VERSION=BOe;(Pe.templateSettings=co.templateSettings).imports._=Pe;Ru(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Pe[e].placeholder=Pe});Ru(["drop","take"],function(e,t){Zr.prototype[e]=function(n){n=n===void 0?1:YOe(Er(n),0);var r=this.__filtered__&&!t?new Zr(this):this.clone();return r.__filtered__?r.__takeCount__=V5(n,r.__takeCount__):r.__views__.push({size:V5(n,mW),type:e+(r.__dir__<0?"Right":"")}),r},Zr.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}});Ru(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==FOe||n==zOe;Zr.prototype[e]=function(o){var i=this.clone();return i.__iteratees__.push({iteratee:vr(o),type:n}),i.__filtered__=i.__filtered__||r,i}});Ru(["head","last"],function(e,t){var n="take"+(t?"Right":"");Zr.prototype[e]=function(){return this[n](1).value()[0]}});Ru(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Zr.prototype[e]=function(){return this.__filtered__?new Zr(this):this[n](1)}});Zr.prototype.compact=function(){return this.filter(Rs)};Zr.prototype.find=function(e){return this.filter(e).head()};Zr.prototype.findLast=function(e){return this.reverse().find(e)};Zr.prototype.invokeMap=Ir(function(e,t){return typeof e=="function"?new Zr(this):this.map(function(n){return y1(n,e,t)})});Zr.prototype.reject=function(e){return this.filter(b1(vr(e)))};Zr.prototype.slice=function(e,t){e=Er(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Zr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==void 0&&(t=Er(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)};Zr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Zr.prototype.toArray=function(){return this.take(mW)};_f(Zr.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 Zr,u=s[0],d=l||br(a),p=function(C){var P=o.apply(Pe,mp([C],s));return r&&v?P[0]:P};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 Zr(this);var k=e.apply(a,s);return k.__actions__.push({func:O1,args:[p],thisArg:void 0}),new Cu(k,v)}return w&&b?e.apply(this,s):(k=this.thru(p),w?r?k.value()[0]:k.value():k)})});Ru(["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(br(i)?i:[],o)}return this[n](function(a){return t.apply(br(a)?a:[],o)})}});_f(Zr.prototype,function(e,t){var n=Pe[t];if(n){var r=n.name+"";yW.call(gy,r)||(gy[r]=[]),gy[r].push({name:t,func:n})}});gy[sC(void 0,VOe).name]=[{name:"wrapper",func:void 0}];Zr.prototype.clone=$Oe;Zr.prototype.reverse=AOe;Zr.prototype.value=LOe;Pe.prototype.at=wf.at;Pe.prototype.chain=wf.wrapperChain;Pe.prototype.commit=wf.commit;Pe.prototype.next=wf.next;Pe.prototype.plant=wf.plant;Pe.prototype.reverse=wf.reverse;Pe.prototype.toJSON=Pe.prototype.valueOf=Pe.prototype.value=wf.value;Pe.prototype.first=Pe.prototype.head;B5&&(Pe.prototype[B5]=wf.toIterator);const Vo=e=>e===void 0,Ho=e=>typeof e=="boolean",en=e=>typeof e=="number",du=e=>!e&&e!==0||xt(e)&&e.length===0||Pn(e)&&!Object.keys(e).length,Nl=e=>typeof Element=="undefined"?!1:e instanceof Element,sv=e=>zi(e),ZOe=e=>Gt(e)?!Number.isNaN(Number(e)):!1,xC=e=>e===window,Kh=e=>nr?window.requestAnimationFrame(e):setTimeout(e,16),lv=e=>nr?window.cancelAnimationFrame(e):clearTimeout(e),NI=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),ef=e=>u1(e),Iy=e=>Object.keys(e),UOe=e=>Object.entries(e),tk=(e,t,n)=>({get value(){return Mo(e,t,n)},set value(r){aW(e,t,r)}});class HOe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ai(e,t){throw new HOe(`[${e}] ${t}`)}const bW=(e="")=>e.split(" ").filter(t=>!!t.trim()),Xs=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},vu=(e,t)=>{!e||!t.trim()||e.classList.add(...bW(t))},is=(e,t)=>{!e||!t.trim()||e.classList.remove(...bW(t))},Th=(e,t)=>{var n;if(!nr||!e||!t)return"";let r=ku(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 Fo(e,t="px"){if(!e)return"";if(en(e)||ZOe(e))return`${e}${t}`;if(Gt(e))return e}const XOe=(e,t)=>{if(!nr)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Th(e,n);return["scroll","auto","overlay"].some(o=>r.includes(o))},II=(e,t)=>{if(!nr)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 ax;const _W=e=>{var t;if(!nr)return 0;if(ax!==void 0)return ax;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),ax=r-i,ax};function DI(e,t){if(!nr)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);xC(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,u<r?a=Kh(s):typeof o=="function"&&o()};return s(),()=>{a&&lv(a)}}const F5=(e,t)=>xC(t)?e.ownerDocument.documentElement:t,z5=e=>xC(e)?window.scrollY:e.scrollTop,sx=e=>{if(!nr||e==="")return null;if(Gt(e))try{return document.querySelector(e)}catch{return null}return e};/*! Element Plus Icons Vue v2.3.1 */var KOe=xe({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),Ed=KOe,qOe=xe({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(Z(),ue("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=qOe,JOe=xe({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),xs=JOe,e1e=xe({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),jI=e1e,t1e=xe({name:"Back",__name:"back",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(Z(),ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),LI=i1e,a1e=xe({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"Check",__name:"check",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),p0=l1e,u1e=xe({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),BI=f1e,d1e=xe({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),VI=d1e,h1e=xe({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),Op=h1e,p1e=xe({name:"Clock",__name:"clock",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),OW=p1e,g1e=xe({name:"Close",__name:"close",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),ks=g1e,v1e=xe({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),Jh=v1e,m1e=xe({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),ep=m1e,y1e=xe({name:"Delete",__name:"delete",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),wW=y1e,b1e=xe({name:"Document",__name:"document",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),_1e=b1e,O1e=xe({name:"Download",__name:"download",setup(e){return(t,n)=>(Z(),ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),w1e=O1e,S1e=xe({name:"Edit",__name:"edit",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),SW=k1e,C1e=xe({name:"Hide",__name:"hide",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),FI=T1e,P1e=xe({name:"Loading",__name:"loading",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),ff=P1e,$1e=xe({name:"Minus",__name:"minus",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),Z_=M1e,R1e=xe({name:"More",__name:"more",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"Plus",__name:"plus",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),Vk=j1e,L1e=xe({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),xW=z1e,Q1e=xe({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(Z(),ue("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=xe({name:"Search",__name:"search",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),kW=Y1e,Z1e=xe({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),U1e=Z1e,H1e=xe({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),X1e=H1e,G1e=xe({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),lx=G1e,K1e=xe({name:"Star",__name:"star",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),q1e=K1e,J1e=xe({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),CW=J1e,ewe=xe({name:"Upload",__name:"upload",setup(e){return(t,n)=>(Z(),ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ve("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),twe=ewe,nwe=xe({name:"View",__name:"view",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),rwe=nwe,owe=xe({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),kC=owe,iwe=xe({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),EW=iwe,awe=xe({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(Z(),ue("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"})]))}}),swe=awe;const TW="__epPropKey",je=e=>e,lwe=e=>Pn(e)&&!!e[TW],yc=(e,t)=>{if(!Pn(e)||lwe(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),ar(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(", ");qre(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[TW]:!0};return ar(e,"default")&&(l.default=o),l},gt=e=>Ny(Object.entries(e).map(([t,n])=>[t,yc(n,t)])),zr=je([String,Object,Function]),zI={Close:ks},QI={Close:ks,SuccessFilled:CW,InfoFilled:FI,WarningFilled:kC,CircleCloseFilled:VI},tp={success:CW,warning:kC,error:VI,info:FI},WI={validating:ff,success:BI,error:Op},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},PW=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),uwe=(e,t)=>(e.install=n=>{n.directive(t,e)},e),xo=e=>(e.install=Vr,e),CC=(...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"},cwe=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],M$=["sun","mon","tue","wed","thu","fri","sat"],En="update:modelValue",so="change",Cs="input",Q5=Symbol("INSTALLED_KEY"),Sf=["","default","small","large"],$W=e=>["",...Sf].includes(e);var uu=(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))(uu||{});function sM(e){return _o(e)&&e.type===Tt}function fwe(e){return _o(e)&&e.type===Ss}function dwe(e){return _o(e)&&!sM(e)&&!fwe(e)}const hwe=e=>{if(!_o(e))return{};const t=e.props||{},n=(_o(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(o=>{ar(n[o],"default")&&(r[o]=n[o].default)}),Object.keys(t).forEach(o=>{r[ku(o)]=t[o]}),r},pwe=e=>{if(!xt(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Bh=e=>{const t=xt(e)?e:[e],n=[];return t.forEach(r=>{var o;xt(r)?n.push(...Bh(r)):_o(r)&&xt(r.children)?n.push(...Bh(r.children)):(n.push(r),_o(r)&&((o=r.component)==null?void 0:o.subTree)&&n.push(...Bh(r.component.subTree)))}),n},W5=e=>[...new Set(e)],ws=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],gwe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),wo=e=>e;function vwe(e){let t=0;const n=(...r)=>{t&&lv(t),t=Kh(()=>{e(...r),t=0})};return n.cancel=()=>{lv(t),t=0},n}const mwe=["class","style"],ywe=/^on[A-Z]/,YI=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=W(()=>((n==null?void 0:n.value)||[]).concat(mwe)),o=Cn();return W(o?()=>{var i;return Ny(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&ywe.test(a))))}:()=>({}))},Vh=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},a)=>{at(()=>m(a),s=>{},{immediate:!0})},AW=(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,P=w.height,$=document.documentElement.clientWidth,T=document.documentElement.clientHeight,A=-b+v,R=-k+y,B=$-b-C+v,N=T-k-P+y,I=j=>{let F=v+j.clientX-d,G=y+j.clientY-p;r!=null&&r.value||(F=Math.min(Math.max(F,A),B),G=Math.min(Math.max(G,R),N)),o={offsetX:F,offsetY:G},e.value&&(e.value.style.transform=`translate(${Fo(F)}, ${Fo(G)})`)},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(()=>{Da(()=>{n.value?a():s()})}),Hr(()=>{s()}),{resetPostion:l}};var bwe={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 _we=e=>(t,n)=>Owe(t,n,m(e)),Owe=(e,t,n)=>Mo(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var i;return`${(i=t==null?void 0:t[o])!=null?i:`{${o}}`}`}),wwe=e=>{const t=W(()=>m(e).name),n=eo(e)?e:te(e);return{lang:t,locale:n,t:_we(e)}},MW=Symbol("localeContextKey"),or=e=>{const t=e||Pt(MW,te());return wwe(W(()=>t.value||bwe))},U_="el",Swe="is-",xg=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},RW=Symbol("namespaceContextKey"),ZI=e=>{const t=e||(Cn()?Pt(RW,te(U_)):te(U_));return W(()=>m(t)||U_)},lt=(e,t)=>{const n=ZI(t);return{namespace:n,b:(b="")=>xg(n.value,e,b,"",""),e:b=>b?xg(n.value,e,"",b,""):"",m:b=>b?xg(n.value,e,"","",b):"",be:(b,k)=>b&&k?xg(n.value,e,b,k,""):"",em:(b,k)=>b&&k?xg(n.value,e,"",b,k):"",bm:(b,k)=>b&&k?xg(n.value,e,b,"",k):"",bem:(b,k,C)=>b&&k&&C?xg(n.value,e,b,k,C):"",is:(b,...k)=>{const C=k.length>=1?k[0]:!0;return b&&C?`${Swe}${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}`}},UI=(e,t={})=>{eo(e)||Ai("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||lt("popup"),r=W(()=>n.bm("parent","hidden"));if(!nr||Xs(document.body,r.value))return;let o=0,i=!1,a="0";const s=()=>{setTimeout(()=>{is(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=a)},200)};at(e,l=>{if(!l){s();return}i=!Xs(document.body,r.value),i&&(a=document.body.style.width),o=_W(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=Th(document.body,"overflowY");o>0&&(u||d==="scroll")&&i&&(document.body.style.width=`calc(100% - ${o}px)`),vu(document.body,r.value)}),BF(()=>s())},xwe=yc({type:je(Boolean),default:null}),kwe=yc({type:je(Function)}),Cwe=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:xwe,[n]:kwe};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))},P=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&&nr;N&&y(t,!0),(k.value||!N)&&C(B)},T=B=>{if(w.disabled===!0||!nr)return;const N=b.value&&nr;N&&y(t,!1),(k.value||!N)&&P(B)},A=B=>{!Ho(B)||(w.disabled&&B?b.value&&y(t,!1):a.value!==B&&(B?C():P()))},R=()=>{a.value?T():$()};return at(()=>w[e],A),l&&v.appContext.config.globalProperties.$route!==void 0&&at(()=>({...v.proxy.$route}),()=>{l.value&&a.value&&T()}),vn(()=>{A(w[e])}),{hide:T,show:$,toggle:R,hasUpdateHandler:b}},useModelToggleProps:o,useModelToggleEmits:r}},NW=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 qs="top",Pu="bottom",$u="right",Js="left",HI="auto",w1=[qs,Pu,$u,Js],Dy="start",TO="end",Ewe="clippingParents",IW="viewport",m_="popper",Twe="reference",Y5=w1.reduce(function(e,t){return e.concat([t+"-"+Dy,t+"-"+TO])},[]),wv=[].concat(w1,[HI]).reduce(function(e,t){return e.concat([t,t+"-"+Dy,t+"-"+TO])},[]),Pwe="beforeRead",$we="read",Awe="afterRead",Mwe="beforeMain",Rwe="main",Nwe="afterMain",Iwe="beforeWrite",Dwe="write",jwe="afterWrite",Lwe=[Pwe,$we,Awe,Mwe,Rwe,Nwe,Iwe,Dwe,jwe];function df(e){return e?(e.nodeName||"").toLowerCase():null}function bc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function jy(e){var t=bc(e).Element;return e instanceof t||e instanceof Element}function Su(e){var t=bc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function XI(e){if(typeof ShadowRoot=="undefined")return!1;var t=bc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Bwe(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];!Su(i)||!df(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 Vwe(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},{});!Su(o)||!df(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var DW={name:"applyStyles",enabled:!0,phase:"write",fn:Bwe,effect:Vwe,requires:["computeStyles"]};function lf(e){return e.split("-")[0]}var Xg=Math.max,Fk=Math.min,Ly=Math.round;function By(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Su(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Ly(n.width)/a||1),i>0&&(o=Ly(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 GI(e){var t=By(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 jW(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&XI(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dd(e){return bc(e).getComputedStyle(e)}function Fwe(e){return["table","td","th"].indexOf(df(e))>=0}function wp(e){return((jy(e)?e.ownerDocument:e.document)||window.document).documentElement}function EC(e){return df(e)==="html"?e:e.assignedSlot||e.parentNode||(XI(e)?e.host:null)||wp(e)}function Z5(e){return!Su(e)||dd(e).position==="fixed"?null:e.offsetParent}function zwe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Su(e)){var r=dd(e);if(r.position==="fixed")return null}var o=EC(e);for(XI(o)&&(o=o.host);Su(o)&&["html","body"].indexOf(df(o))<0;){var i=dd(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 S1(e){for(var t=bc(e),n=Z5(e);n&&Fwe(n)&&dd(n).position==="static";)n=Z5(n);return n&&(df(n)==="html"||df(n)==="body"&&dd(n).position==="static")?t:n||zwe(e)||t}function KI(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function H_(e,t,n){return Xg(e,Fk(t,n))}function Qwe(e,t,n){var r=H_(e,t,n);return r>n?n:r}function LW(){return{top:0,right:0,bottom:0,left:0}}function BW(e){return Object.assign({},LW(),e)}function VW(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Wwe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,BW(typeof e!="number"?e:VW(e,w1))};function Ywe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=lf(n.placement),l=KI(s),u=[Js,$u].indexOf(s)>=0,d=u?"height":"width";if(!(!i||!a)){var p=Wwe(o.padding,n),v=GI(i),y=l==="y"?qs:Js,w=l==="y"?Pu:$u,b=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],k=a[l]-n.rects.reference[l],C=S1(i),P=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,$=b/2-k/2,T=p[y],A=P-v[d]-p[w],R=P/2-v[d]/2+$,B=H_(T,R,A),N=l;n.modifiersData[r]=(t={},t[N]=B,t.centerOffset=B-R,t)}}function Zwe(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)||!jW(t.elements.popper,o)||(t.elements.arrow=o))}var Uwe={name:"arrow",enabled:!0,phase:"main",fn:Ywe,effect:Zwe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vy(e){return e.split("-")[1]}var Hwe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xwe(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Ly(t*o)/o||0,y:Ly(n*o)/o||0}}function U5(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"),P=a.hasOwnProperty("y"),$=Js,T=qs,A=window;if(u){var R=S1(n),B="clientHeight",N="clientWidth";if(R===bc(n)&&(R=wp(n),dd(R).position!=="static"&&s==="absolute"&&(B="scrollHeight",N="scrollWidth")),R=R,o===qs||(o===Js||o===$u)&&i===TO){T=Pu;var I=p&&R===A&&A.visualViewport?A.visualViewport.height:R[B];b-=I-r.height,b*=l?1:-1}if(o===Js||(o===qs||o===Pu)&&i===TO){$=$u;var D=p&&R===A&&A.visualViewport?A.visualViewport.width:R[N];y-=D-r.width,y*=l?1:-1}}var j=Object.assign({position:s},u&&Hwe),F=d===!0?Xwe({x:y,y:b}):{x:y,y:b};if(y=F.x,b=F.y,l){var G;return Object.assign({},j,(G={},G[T]=P?"0":"",G[$]=C?"0":"",G.transform=(A.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",G))}return Object.assign({},j,(t={},t[T]=P?b+"px":"",t[$]=C?y+"px":"",t.transform="",t))}function Gwe(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:lf(t.placement),variation:Vy(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,U5(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,U5(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 FW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gwe,data:{}},ux={passive:!0};function Kwe(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=bc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,ux)}),s&&l.addEventListener("resize",n.update,ux),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,ux)}),s&&l.removeEventListener("resize",n.update,ux)}}var zW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kwe,data:{}},qwe={left:"right",right:"left",bottom:"top",top:"bottom"};function nk(e){return e.replace(/left|right|bottom|top/g,function(t){return qwe[t]})}var Jwe={start:"end",end:"start"};function H5(e){return e.replace(/start|end/g,function(t){return Jwe[t]})}function qI(e){var t=bc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function JI(e){return By(wp(e)).left+qI(e).scrollLeft}function eSe(e){var t=bc(e),n=wp(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+JI(e),y:s}}function tSe(e){var t,n=wp(e),r=qI(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Xg(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Xg(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+JI(e),l=-r.scrollTop;return dd(o||n).direction==="rtl"&&(s+=Xg(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function eD(e){var t=dd(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function QW(e){return["html","body","#document"].indexOf(df(e))>=0?e.ownerDocument.body:Su(e)&&eD(e)?e:QW(EC(e))}function X_(e,t){var n;t===void 0&&(t=[]);var r=QW(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=bc(r),a=o?[i].concat(i.visualViewport||[],eD(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(X_(EC(a)))}function lM(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nSe(e){var t=By(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 X5(e,t){return t===IW?lM(eSe(e)):jy(t)?nSe(t):lM(tSe(wp(e)))}function rSe(e){var t=X_(EC(e)),n=["absolute","fixed"].indexOf(dd(e).position)>=0,r=n&&Su(e)?S1(e):e;return jy(r)?t.filter(function(o){return jy(o)&&jW(o,r)&&df(o)!=="body"}):[]}function oSe(e,t,n){var r=t==="clippingParents"?rSe(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce(function(s,l){var u=X5(e,l);return s.top=Xg(u.top,s.top),s.right=Fk(u.right,s.right),s.bottom=Fk(u.bottom,s.bottom),s.left=Xg(u.left,s.left),s},X5(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 WW(e){var t=e.reference,n=e.element,r=e.placement,o=r?lf(r):null,i=r?Vy(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case qs:l={x:a,y:t.y-n.height};break;case Pu:l={x:a,y:t.y+t.height};break;case $u:l={x:t.x+t.width,y:s};break;case Js:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?KI(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Dy:l[u]=l[u]-(t[d]/2-n[d]/2);break;case TO:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function PO(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?Ewe:i,s=n.rootBoundary,l=s===void 0?IW:s,u=n.elementContext,d=u===void 0?m_:u,p=n.altBoundary,v=p===void 0?!1:p,y=n.padding,w=y===void 0?0:y,b=BW(typeof w!="number"?w:VW(w,w1)),k=d===m_?Twe:m_,C=e.rects.popper,P=e.elements[v?k:d],$=oSe(jy(P)?P:P.contextElement||wp(e.elements.popper),a,l),T=By(e.elements.reference),A=WW({reference:T,element:C,strategy:"absolute",placement:o}),R=lM(Object.assign({},C,A)),B=d===m_?R:T,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===m_&&I){var D=I[o];Object.keys(N).forEach(function(j){var F=[$u,Pu].indexOf(j)>=0?1:-1,G=[qs,Pu].indexOf(j)>=0?"y":"x";N[j]+=D[G]*F})}return N}function iSe(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?wv:l,d=Vy(r),p=d?s?Y5:Y5.filter(function(w){return Vy(w)===d}):w1,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]=PO(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[lf(b)],w},{});return Object.keys(y).sort(function(w,b){return y[w]-y[b]})}function aSe(e){if(lf(e)===HI)return[];var t=nk(e);return[H5(e),t,H5(t)]}function sSe(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=lf(k),P=C===k,$=l||(P||!w?[nk(k)]:aSe(k)),T=[k].concat($).reduce(function(Le,Ie){return Le.concat(lf(Ie)===HI?iSe(t,{placement:Ie,boundary:d,rootBoundary:p,padding:u,flipVariations:w,allowedAutoPlacements:b}):Ie)},[]),A=t.rects.reference,R=t.rects.popper,B=new Map,N=!0,I=T[0],D=0;D<T.length;D++){var j=T[D],F=lf(j),G=Vy(j)===Dy,ae=[qs,Pu].indexOf(F)>=0,K=ae?"width":"height",H=PO(t,{placement:j,boundary:d,rootBoundary:p,altBoundary:v,padding:u}),oe=ae?G?$u:Js:G?Pu:qs;A[K]>R[K]&&(oe=nk(oe));var J=nk(oe),z=[];if(i&&z.push(H[F]<=0),s&&z.push(H[oe]<=0,H[J]<=0),z.every(function(Le){return Le})){I=j,N=!1;break}B.set(j,z)}if(N)for(var X=w?3:1,ee=function(Le){var Ie=T.find(function(ze){var Ae=B.get(ze);if(Ae)return Ae.slice(0,Le).every(function(_e){return _e})});if(Ie)return I=Ie,"break"},he=X;he>0;he--){var fe=ee(he);if(fe==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}var lSe={name:"flip",enabled:!0,phase:"main",fn:sSe,requiresIfExists:["offset"],data:{_skip:!1}};function G5(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 K5(e){return[qs,$u,Pu,Js].some(function(t){return e[t]>=0})}function uSe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=PO(t,{elementContext:"reference"}),s=PO(t,{altBoundary:!0}),l=G5(a,r),u=G5(s,o,i),d=K5(l),p=K5(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 cSe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uSe};function fSe(e,t,n){var r=lf(e),o=[Js,qs].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,[Js,$u].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function dSe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=wv.reduce(function(d,p){return d[p]=fSe(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 hSe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dSe};function pSe(e){var t=e.state,n=e.name;t.modifiersData[n]=WW({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var YW={name:"popperOffsets",enabled:!0,phase:"read",fn:pSe,data:{}};function gSe(e){return e==="x"?"y":"x"}function vSe(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=PO(t,{boundary:l,rootBoundary:u,padding:p,altBoundary:d}),C=lf(t.placement),P=Vy(t.placement),$=!P,T=KI(C),A=gSe(T),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),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(R){if(i){var G,ae=T==="y"?qs:Js,K=T==="y"?Pu:$u,H=T==="y"?"height":"width",oe=R[T],J=oe+k[ae],z=oe-k[K],X=y?-N[H]/2:0,ee=P===Dy?B[H]:N[H],he=P===Dy?-N[H]:-B[H],fe=t.elements.arrow,Le=y&&fe?GI(fe):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:LW(),ze=Ie[ae],Ae=Ie[K],_e=H_(0,B[H],Le[H]),ye=$?B[H]/2-X-_e-ze-D.mainAxis:ee-_e-ze-D.mainAxis,Ne=$?-B[H]/2+X+_e+Ae+D.mainAxis:he+_e+Ae+D.mainAxis,Se=t.elements.arrow&&S1(t.elements.arrow),ce=Se?T==="y"?Se.clientTop||0:Se.clientLeft||0:0,be=(G=j==null?void 0:j[T])!=null?G:0,pe=oe+ye-be-ce,Me=oe+Ne-be,Ze=H_(y?Fk(J,pe):J,oe,y?Xg(z,Me):z);R[T]=Ze,F[T]=Ze-oe}if(s){var Be,$e=T==="x"?qs:Js,Je=T==="x"?Pu:$u,Oe=R[A],Ye=A==="y"?"height":"width",ut=Oe+k[$e],qe=Oe-k[Je],ot=[qs,Js].indexOf(C)!==-1,ft=(Be=j==null?void 0:j[A])!=null?Be:0,kt=ot?ut:Oe-B[Ye]-N[Ye]-ft+D.altAxis,Wt=ot?Oe+B[Ye]+N[Ye]-ft-D.altAxis:qe,Ct=y&&ot?Qwe(kt,Oe,Wt):H_(y?kt:ut,Oe,y?Wt:qe);R[A]=Ct,F[A]=Ct-Oe}t.modifiersData[r]=F}}var mSe={name:"preventOverflow",enabled:!0,phase:"main",fn:vSe,requiresIfExists:["offset"]};function ySe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bSe(e){return e===bc(e)||!Su(e)?qI(e):ySe(e)}function _Se(e){var t=e.getBoundingClientRect(),n=Ly(t.width)/e.offsetWidth||1,r=Ly(t.height)/e.offsetHeight||1;return n!==1||r!==1}function OSe(e,t,n){n===void 0&&(n=!1);var r=Su(t),o=Su(t)&&_Se(t),i=wp(t),a=By(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((df(t)!=="body"||eD(i))&&(s=bSe(t)),Su(t)?(l=By(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=JI(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function wSe(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 SSe(e){var t=wSe(e);return Lwe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function xSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kSe(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 q5={placement:"bottom",modifiers:[],strategy:"absolute"};function J5(){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 tD(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?q5:o;return function(a,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},q5,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:jy(a)?X_(a):a.contextElement?X_(a.contextElement):[],popper:X_(s)};var C=SSe(kSe([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(P){return P.enabled}),y(),v.update()},forceUpdate:function(){if(!p){var b=u.elements,k=b.reference,C=b.popper;if(J5(k,C)){u.rects={reference:OSe(k,S1(C),u.options.strategy==="fixed"),popper:GI(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 P=0;P<u.orderedModifiers.length;P++){if(u.reset===!0){u.reset=!1,P=-1;continue}var $=u.orderedModifiers[P],T=$.fn,A=$.options,R=A===void 0?{}:A,B=$.name;typeof T=="function"&&(u=T({state:u,options:R,name:B,instance:v})||u)}}}},update:xSe(function(){return new Promise(function(b){v.forceUpdate(),b(u)})}),destroy:function(){w(),p=!0}};if(!J5(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,P=C===void 0?{}:C,$=b.effect;if(typeof $=="function"){var T=$({state:u,name:k,instance:v,options:P}),A=function(){};d.push(T||A)}})}function w(){d.forEach(function(b){return b()}),d=[]}return v}}tD();var CSe=[zW,YW,FW,DW];tD({defaultModifiers:CSe});var ESe=[zW,YW,FW,DW,hSe,lSe,mSe,Uwe,cSe],TSe=tD({defaultModifiers:ESe});const PSe=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=$Se(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=Jr(),a=te({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=TSe(l,u,m(o)))}),Hr(()=>{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 $Se(e){const t=Object.keys(e.elements),n=Ny(t.map(o=>[o,e.styles[o]||{}])),r=Ny(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const nD=e=>{if(!e)return{onClick:Vr,onMousedown:Vr,onMouseup:Vr};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}}},ASe=(e,t=0)=>{if(t===0)return e;const n=te(!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 e6(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return f1(()=>n()),{registerTimeout:t,cancelTimeout:n}}const t6={prefix:Math.floor(Math.random()*1e4),current:0},MSe=Symbol("elIdInjection"),rD=()=>Cn()?Pt(MSe,t6):t6,La=e=>{const t=rD(),n=ZI();return W(()=>m(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Gm=[];const n6=e=>{const t=e;t.key===Qt.esc&&Gm.forEach(n=>n(t))},RSe=e=>{vn(()=>{Gm.length===0&&document.addEventListener("keydown",n6),nr&&Gm.push(e)}),Hr(()=>{Gm=Gm.filter(t=>t!==e),Gm.length===0&&nr&&document.removeEventListener("keydown",n6)})};let r6;const ZW=()=>{const e=ZI(),t=rD(),n=W(()=>`${e.value}-popper-container-${t.prefix}`),r=W(()=>`#${n.value}`);return{id:n,selector:r}},NSe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},ISe=()=>{const{id:e,selector:t}=ZW();return q2(()=>{!nr||!r6&&!document.body.querySelector(t.value)&&(r6=NSe(e.value))}),{id:e,selector:t}},DSe=gt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),jSe=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:i}=e6(),{registerTimeout:a,cancelTimeout:s}=e6();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))}}},UW=Symbol("elForwardRef"),LSe=e=>{Wn(UW,{setForwardRef:n=>{e.value=n}})},BSe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),o6={current:0},i6=te(0),HW=2e3,a6=Symbol("elZIndexContextKey"),XW=Symbol("zIndexContextKey"),g0=e=>{const t=Cn()?Pt(a6,o6):o6,n=e||(Cn()?Pt(XW,void 0):void 0),r=W(()=>{const a=m(n);return en(a)?a:HW}),o=W(()=>r.value+i6.value),i=()=>(t.current++,i6.value=t.current,o.value);return!nr&&Pt(a6),{initialZIndex:r,currentZIndex:o,nextZIndex:i}},Fy=Math.min,Gg=Math.max,zk=Math.round,cx=Math.floor,np=e=>({x:e,y:e}),VSe={left:"right",right:"left",bottom:"top",top:"bottom"},FSe={start:"end",end:"start"};function uM(e,t,n){return Gg(e,Fy(t,n))}function x1(e,t){return typeof e=="function"?e(t):e}function uv(e){return e.split("-")[0]}function k1(e){return e.split("-")[1]}function GW(e){return e==="x"?"y":"x"}function oD(e){return e==="y"?"height":"width"}function TC(e){return["top","bottom"].includes(uv(e))?"y":"x"}function iD(e){return GW(TC(e))}function zSe(e,t,n){n===void 0&&(n=!1);const r=k1(e),o=iD(e),i=oD(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Qk(a)),[a,Qk(a)]}function QSe(e){const t=Qk(e);return[cM(e),t,cM(t)]}function cM(e){return e.replace(/start|end/g,t=>FSe[t])}function WSe(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 YSe(e,t,n,r){const o=k1(e);let i=WSe(uv(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(cM)))),i}function Qk(e){return e.replace(/left|right|bottom|top/g,t=>VSe[t])}function ZSe(e){return{top:0,right:0,bottom:0,left:0,...e}}function KW(e){return typeof e!="number"?ZSe(e):{top:e,right:e,bottom:e,left:e}}function Wk(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function s6(e,t,n){let{reference:r,floating:o}=e;const i=TC(t),a=iD(t),s=oD(a),l=uv(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(k1(t)){case"start":y[a]-=v*(n&&u?-1:1);break;case"end":y[a]+=v*(n&&u?-1:1);break}return y}const USe=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}=s6(u,r,l),v=r,y={},w=0;for(let b=0;b<s.length;b++){const{name:k,fn:C}=s[b],{x:P,y:$,data:T,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=P!=null?P:d,p=$!=null?$:p,y={...y,[k]:{...y[k],...T}},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}=s6(u,v,l)),b=-1;continue}}return{x:d,y:p,placement:v,strategy:o,middlewareData:y}};async function aD(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}=x1(t,e),w=KW(y),k=s[v?p==="floating"?"reference":"floating":p],C=Wk(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})),P=p==="floating"?{...a.floating,x:r,y:o}:a.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=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=Wk(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:P,offsetParent:$,strategy:l}):P);return{top:(C.top-A.top+w.top)/T.y,bottom:(A.bottom-C.bottom+w.bottom)/T.y,left:(C.left-A.left+w.left)/T.x,right:(A.right-C.right+w.right)/T.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}=x1(e,t)||{};if(u==null)return{};const p=KW(d),v={x:n,y:r},y=iD(o),w=oD(y),b=await a.getDimensions(u),k=y==="y",C=k?"top":"left",P=k?"bottom":"right",$=k?"clientHeight":"clientWidth",T=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=T/2-A/2,I=B/2-b[w]/2-1,D=Fy(p[C],I),j=Fy(p[P],I),F=D,G=B-b[w]-j,ae=B/2-b[w]/2+N,K=uM(F,ae,G),H=!l.arrow&&k1(o)!=null&&ae!=K&&i.reference[w]/2-(ae<F?D:j)-b[w]/2<0,oe=H?ae<F?ae-F:ae-G:0;return{[y]:v[y]+oe,data:{[y]:K,centerOffset:ae-K-oe,...H&&{alignmentOffset:oe}},reset:H}}}),HSe=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}=x1(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const C=uv(o),P=uv(s)===s,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),T=v||(P||!b?[Qk(s)]:QSe(s));!v&&w!=="none"&&T.push(...YSe(s,b,w,$));const A=[s,...T],R=await aD(t,k),B=[];let N=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&B.push(R[C]),p){const F=zSe(o,a,$);B.push(R[F[0]],R[F[1]])}if(N=[...N,{placement:o,overflows:B}],!B.every(F=>F<=0)){var I,D;const F=(((I=i.flip)==null?void 0:I.index)||0)+1,G=A[F];if(G)return{data:{index:F,overflows:N},reset:{placement:G}};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 j;const K=(j=N.map(H=>[H.placement,H.overflows.filter(oe=>oe>0).reduce((oe,J)=>oe+J,0)]).sort((H,oe)=>H[1]-oe[1])[0])==null?void 0:j[0];K&&(ae=K);break}case"initialPlacement":ae=s;break}if(o!==ae)return{reset:{placement:ae}}}return{}}}};async function XSe(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=uv(n),s=k1(n),l=TC(n)==="y",u=["left","top"].includes(a)?-1:1,d=i&&l?-1:1,p=x1(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 JW=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await XSe(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},GSe=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:P}=k;return{x:C,y:P}}},...l}=x1(e,t),u={x:n,y:r},d=await aD(t,l),p=TC(uv(o)),v=GW(p);let y=u[v],w=u[p];if(i){const k=v==="y"?"top":"left",C=v==="y"?"bottom":"right",P=y+d[k],$=y-d[C];y=uM(P,y,$)}if(a){const k=p==="y"?"top":"left",C=p==="y"?"bottom":"right",P=w+d[k],$=w-d[C];w=uM(P,w,$)}const b=s.fn({...t,[v]:y,[p]:w});return{...b,data:{x:b.x-n,y:b.y-r}}}}};function rp(e){return eY(e)?(e.nodeName||"").toLowerCase():"#document"}function Il(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Td(e){var t;return(t=(eY(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eY(e){return e instanceof Node||e instanceof Il(e).Node}function hd(e){return e instanceof Element||e instanceof Il(e).Element}function hf(e){return e instanceof HTMLElement||e instanceof Il(e).HTMLElement}function l6(e){return typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Il(e).ShadowRoot}function C1(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Au(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function KSe(e){return["table","td","th"].includes(rp(e))}function sD(e){const t=lD(),n=Au(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=zy(e);for(;hf(t)&&!PC(t);){if(sD(t))return t;t=zy(t)}return null}function lD(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function PC(e){return["html","body","#document"].includes(rp(e))}function Au(e){return Il(e).getComputedStyle(e)}function $C(e){return hd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zy(e){if(rp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||l6(e)&&e.host||Td(e);return l6(t)?t.host:t}function tY(e){const t=zy(e);return PC(t)?e.ownerDocument?e.ownerDocument.body:e.body:hf(t)&&C1(t)?t:tY(t)}function $O(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=tY(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Il(o);return i?t.concat(a,a.visualViewport||[],C1(o)?o:[],a.frameElement&&n?$O(a.frameElement):[]):t.concat(o,$O(o,[],n))}function nY(e){const t=Au(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=hf(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=zk(n)!==i||zk(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function uD(e){return hd(e)?e:e.contextElement}function my(e){const t=uD(e);if(!hf(t))return np(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=nY(t);let a=(i?zk(n.width):n.width)/r,s=(i?zk(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const JSe=np(0);function rY(e){const t=Il(e);return!lD()||!t.visualViewport?JSe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function exe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Il(e)?!1:t}function cv(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=uD(e);let a=np(1);t&&(r?hd(r)&&(a=my(r)):a=my(e));const s=exe(i,n,r)?rY(i):np(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=Il(i),y=r&&hd(r)?Il(r):r;let w=v.frameElement;for(;w&&r&&y!==v;){const b=my(w),k=w.getBoundingClientRect(),C=Au(w),P=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+=P,u+=$,w=Il(w).frameElement}}return Wk({width:d,height:p,x:l,y:u})}function txe(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=hf(n),i=Td(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=np(1);const l=np(0);if((o||!o&&r!=="fixed")&&((rp(n)!=="body"||C1(i))&&(a=$C(n)),hf(n))){const u=cv(n);s=my(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 nxe(e){return Array.from(e.getClientRects())}function oY(e){return cv(Td(e)).left+$C(e).scrollLeft}function rxe(e){const t=Td(e),n=$C(e),r=e.ownerDocument.body,o=Gg(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Gg(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+oY(e);const s=-n.scrollTop;return Au(r).direction==="rtl"&&(a+=Gg(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function oxe(e,t){const n=Il(e),r=Td(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=lD();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function ixe(e,t){const n=cv(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=hf(e)?my(e):np(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 u6(e,t,n){let r;if(t==="viewport")r=oxe(e,n);else if(t==="document")r=rxe(Td(e));else if(hd(t))r=ixe(t,n);else{const o=rY(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Wk(r)}function iY(e,t){const n=zy(e);return n===t||!hd(n)||PC(n)?!1:Au(n).position==="fixed"||iY(n,t)}function axe(e,t){const n=t.get(e);if(n)return n;let r=$O(e,[],!1).filter(s=>hd(s)&&rp(s)!=="body"),o=null;const i=Au(e).position==="fixed";let a=i?zy(e):e;for(;hd(a)&&!PC(a);){const s=Au(a),l=sD(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||C1(a)&&!l&&iY(e,a))?r=r.filter(d=>d!==a):o=s,a=zy(a)}return t.set(e,r),r}function sxe(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?axe(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,d)=>{const p=u6(t,d,o);return u.top=Gg(p.top,u.top),u.right=Fy(p.right,u.right),u.bottom=Fy(p.bottom,u.bottom),u.left=Gg(p.left,u.left),u},u6(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function lxe(e){return nY(e)}function uxe(e,t,n){const r=hf(t),o=Td(t),i=n==="fixed",a=cv(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=np(0);if(r||!r&&!i)if((rp(t)!=="body"||C1(o))&&(s=$C(t)),r){const u=cv(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=oY(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function c6(e,t){return!hf(e)||Au(e).position==="fixed"?null:t?t(e):e.offsetParent}function aY(e,t){const n=Il(e);if(!hf(e))return n;let r=c6(e,t);for(;r&&KSe(r)&&Au(r).position==="static";)r=c6(r,t);return r&&(rp(r)==="html"||rp(r)==="body"&&Au(r).position==="static"&&!sD(r))?n:r||qSe(e)||n}const cxe=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||aY,i=this.getDimensions;return{reference:uxe(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function fxe(e){return Au(e).direction==="rtl"}const dxe={convertOffsetParentRelativeRectToViewportRelativeRect:txe,getDocumentElement:Td,getClippingRect:sxe,getOffsetParent:aY,getElementRects:cxe,getClientRects:nxe,getDimensions:lxe,getScale:my,isElement:hd,isRTL:fxe};function hxe(e,t){let n=null,r;const o=Td(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=cx(d),w=cx(o.clientWidth-(u+p)),b=cx(o.clientHeight-(d+v)),k=cx(u),P={rootMargin:-y+"px "+-w+"px "+-b+"px "+-k+"px",threshold:Gg(0,Fy(1,l))||1};let $=!0;function T(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(T,{...P,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,P)}n.observe(e)}return a(!0),i}function pxe(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=uD(e),d=o||i?[...u?$O(u):[],...$O(t)]:[];d.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),i&&C.addEventListener("resize",n)});const p=u&&s?hxe(u,n):null;let v=-1,y=null;a&&(y=new ResizeObserver(C=>{let[P]=C;P&&P.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?cv(e):null;l&&k();function k(){const C=cv(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 sY=(e,t,n)=>{const r=new Map,o={platform:dxe,...n},i={...o.platform,_c:r};return USe(e,t,{...o,platform:i})};gt({});const gxe=e=>{if(!nr)return;if(!e)return e;const t=Hs(e);return t||(eo(e)?t:e)},vxe=({middleware:e,placement:t,strategy:n})=>{const r=te(),o=te(),i=te(),a=te(),s=te({}),l={x:i,y:a,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!nr)return;const d=gxe(r),p=Hs(o);if(!d||!p)return;const v=await sY(d,p,{placement:m(t),strategy:m(n),middleware:m(e)});Iy(l).forEach(y=>{l[y].value=v[y]})};return vn(()=>{Da(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:o}},mxe=({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 yxe(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 bxe=(e,t,n)=>Bh(e.subTree).filter(i=>{var a;return _o(i)&&((a=i.type)==null?void 0:a.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),cD=(e,t)=>{const n={},r=Jr([]);return{children:r,addChild:a=>{n[a.uid]=a,r.value=bxe(e,t,n)},removeChild:a=>{delete n[a],r.value=r.value.filter(s=>s.uid!==a)}}},Mi=yc({type:String,values:Sf,required:!1}),lY=Symbol("size"),uY=()=>{const e=Pt(lY,{});return W(()=>m(e.size)||"")};function E1(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:o}={}){const i=Cn(),{emit:a}=i,s=Jr(),l=te(!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")}),Mr(s,"focus",u,!0),Mr(s,"blur",d,!0),Mr(s,"click",p,!0),{isFocused:l,wrapperRef:s,handleFocus:u,handleBlur:d}}function AC({afterComposition:e,emit:t}){const n=te(!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=!gwe(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 cY=Symbol("emptyValuesContextKey"),_xe=["",void 0,null],Oxe=void 0,v0=gt({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>nn(e)?!e():!e}}),MC=(e,t)=>{const n=Cn()?Pt(cY,te({})):te({}),r=W(()=>e.emptyValues||n.value.emptyValues||_xe),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:Oxe),i=a=>r.value.includes(a);return r.value.includes(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:i}},wxe=gt({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),pa=e=>gu(wxe,e),fY=Symbol(),Yk=te();function RC(e,t=void 0){const n=Cn()?Pt(fY,Yk):Yk;return e?W(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function NC(e,t){const n=RC(),r=lt(e,W(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||U_})),o=or(W(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=g0(W(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||HW})),a=W(()=>{var s;return m(t)||((s=n.value)==null?void 0:s.size)||""});return fD(W(()=>m(n)||{})),{ns:r,locale:o,zIndex:i,size:a}}const fD=(e,t,n=!1)=>{var r;const o=!!Cn(),i=o?RC():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?Sxe(i.value,l):l});return a(fY,s),a(MW,W(()=>s.value.locale)),a(RW,W(()=>s.value.namespace)),a(XW,W(()=>s.value.zIndex)),a(lY,{size:W(()=>s.value.size||"")}),a(cY,W(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!Yk.value)&&(Yk.value=s.value),s},Sxe=(e,t)=>{const n=[...new Set([...Iy(e),...Iy(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},xxe=gt({a11y:{type:Boolean,default:!0},locale:{type:je(Object)},size:Mi,button:{type:je(Object)},experimentalFeatures:{type:je(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:je(Object)},zIndex:Number,namespace:{type:String,default:"el"},...v0}),fM={},kxe=xe({name:"ElConfigProvider",props:xxe,setup(e,{slots:t}){at(()=>e.message,r=>{Object.assign(fM,r!=null?r:{})},{immediate:!0,deep:!0});const n=fD(e);return()=>Ge(t,"default",{config:n==null?void 0:n.value})}}),Cxe=pn(kxe),Exe="2.8.0",Txe=(e=[])=>({version:Exe,install:(n,r)=>{n[Q5]||(n[Q5]=!0,e.forEach(o=>n.use(o)),r&&fD(r,n,!0))}}),Pxe=gt({zIndex:{type:je([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),$xe={scroll:({scrollTop:e,fixed:t})=>en(e)&&Ho(t),[so]:e=>Ho(e)};var vt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const dY="ElAffix",Axe=xe({name:dY}),Mxe=xe({...Axe,props:Pxe,emits:$xe,setup(e,{expose:t,emit:n}){const r=e,o=lt("affix"),i=Jr(),a=Jr(),s=Jr(),{height:l}=fae(),{height:u,width:d,top:p,bottom:v,update:y}=TL(a,{windowScroll:!1}),w=TL(i),b=te(!1),k=te(0),C=te(0),P=W(()=>({height:b.value?`${u.value}px`:"",width:b.value?`${d.value}px`:""})),$=W(()=>{if(!b.value)return{};const R=r.offset?Fo(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}}),T=()=>{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||Ai(dY,`Target does not exist: ${r.target}`)):i.value=document.documentElement,s.value=II(a.value,!0),y()}),Mr(s,"scroll",A),Da(T),t({update:T,updateRoot:y}),(R,B)=>(Z(),ue("div",{ref_key:"root",ref:a,class:q(m(o).b()),style:Vt(m(P))},[ve("div",{class:q({[m(o).m("fixed")]:b.value}),style:Vt(m($))},[Ge(R.$slots,"default")],6)],6))}});var Rxe=vt(Mxe,[["__file","affix.vue"]]);const Nxe=pn(Rxe),Ixe=gt({size:{type:je([Number,String])},color:{type:String}}),Dxe=xe({name:"ElIcon",inheritAttrs:!1}),jxe=xe({...Dxe,props:Ixe,setup(e){const t=e,n=lt("icon"),r=W(()=>{const{size:o,color:i}=t;return!o&&!i?{}:{fontSize:Vo(o)?void 0:Fo(o),"--color":i}});return(o,i)=>(Z(),ue("i",In({class:m(n).b(),style:m(r)},o.$attrs),[Ge(o.$slots,"default")],16))}});var Lxe=vt(jxe,[["__file","icon.vue"]]);const jt=pn(Lxe),Bxe=["light","dark"],Vxe=gt({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Iy(tp),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Bxe,default:"light"}}),Fxe={close:e=>e instanceof MouseEvent},zxe=xe({name:"ElAlert"}),Qxe=xe({...zxe,props:Vxe,emits:Fxe,setup(e,{emit:t}){const n=e,{Close:r}=QI,o=Qi(),i=lt("alert"),a=te(!0),s=W(()=>tp[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(),Qe($i,{name:m(i).b("fade"),persisted:""},{default:le(()=>[yn(ve("div",{class:q([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(),Qe(m(jt),{key:0,class:q(m(l))},{default:le(()=>[(Z(),Qe(Dn(m(s))))]),_:1},8,["class"])):Fe("v-if",!0),ve("div",{class:q(m(i).e("content"))},[p.title||p.$slots.title?(Z(),ue("span",{key:0,class:q([m(i).e("title"),m(u)])},[Ge(p.$slots,"title",{},()=>[St(ct(p.title),1)])],2)):Fe("v-if",!0),p.$slots.default||p.description?(Z(),ue("p",{key:1,class:q(m(i).e("description"))},[Ge(p.$slots,"default",{},()=>[St(ct(p.description),1)])],2)):Fe("v-if",!0),p.closable?(Z(),ue(Tt,{key:2},[p.closeText?(Z(),ue("div",{key:0,class:q([m(i).e("close-btn"),m(i).is("customed")]),onClick:d},ct(p.closeText),3)):(Z(),Qe(m(jt),{key:1,class:q(m(i).e("close-btn")),onClick:d},{default:le(()=>[re(m(r))]),_:1},8,["class"]))],64)):Fe("v-if",!0)],2)],2),[[pr,a.value]])]),_:3},8,["name"]))}});var Wxe=vt(Qxe,[["__file","alert.vue"]]);const hY=pn(Wxe),Sv=Symbol("formContextKey"),pf=Symbol("formItemContextKey"),_i=(e,t={})=>{const n=te(void 0),r=t.prop?n:NW("size"),o=t.global?n:uY(),i=t.form?{size:void 0}:Pt(Sv,void 0),a=t.formItem?{size:void 0}:Pt(pf,void 0);return W(()=>r.value||m(e)||(a==null?void 0:a.size)||(i==null?void 0:i.size)||o.value||"")},Is=e=>{const t=NW("disabled"),n=Pt(Sv,void 0);return W(()=>t.value||m(e)||(n==null?void 0:n.disabled)||!1)},ss=()=>{const e=Pt(Sv,void 0),t=Pt(pf,void 0);return{form:e,formItem:t}},_c=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=te(!1)),r||(r=te(!1));const o=te();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([Cr(e,"id"),n],([s,l])=>{const u=s!=null?s:l?void 0:La().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})}),pp(()=>{i&&i(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:a,inputId:o}},Yxe=gt({size:{type:String,values:Sf},disabled:Boolean}),Zxe=gt({...Yxe,model:Object,rules:{type:je(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]}}),Uxe={validate:(e,t,n)=>(xt(e)||Gt(e))&&Ho(t)&&Gt(n)};function Hxe(){const e=te([]),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 fx=(e,t)=>{const n=Ra(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},Xxe="ElForm",Gxe=xe({name:Xxe}),Kxe=xe({...Gxe,props:Zxe,emits:Uxe,setup(e,{expose:t,emit:n}){const r=e,o=[],i=_i(),a=lt("form"),s=W(()=>{const{labelPosition:$,inline:T}=r;return[a.b(),a.m(i.value||"default"),{[a.m(`label-${$}`)]:$,[a.m("inline")]:T}]}),l=$=>o.find(T=>T.prop===$),u=$=>{o.push($)},d=$=>{$.prop&&o.splice(o.indexOf($),1)},p=($=[])=>{!r.model||fx(o,$).forEach(T=>T.resetField())},v=($=[])=>{fx(o,$).forEach(T=>T.clearValidate())},y=W(()=>!!r.model),w=$=>{if(o.length===0)return[];const T=fx(o,$);return T.length?T:[]},b=async $=>C(void 0,$),k=async($=[])=>{if(!y.value)return!1;const T=w($);if(T.length===0)return!0;let A={};for(const R of T)try{await R.validate("")}catch(B){A={...A,...B}}return Object.keys(A).length===0?!0:Promise.reject(A)},C=async($=[],T)=>{const A=!nn(T);try{const R=await k($);return R===!0&&await(T==null?void 0:T(R)),R}catch(R){if(R instanceof Error)throw R;const B=R;return r.scrollToError&&P(Object.keys(B)[0]),await(T==null?void 0:T(!1,B)),A&&Promise.reject(B)}},P=$=>{var T;const A=fx(o,$)[0];A&&((T=A.$el)==null||T.scrollIntoView(r.scrollIntoViewOptions))};return at(()=>r.rules,()=>{r.validateOnRuleChange&&b().catch($=>void 0)},{deep:!0}),Wn(Sv,rr({...ea(r),emit:n,resetFields:p,clearValidate:v,validateField:C,getField:l,addField:u,removeField:d,...Hxe()})),t({validate:b,validateField:C,resetFields:p,clearValidate:v,scrollToField:P,fields:o}),($,T)=>(Z(),ue("form",{class:q(m(s))},[Ge($.$slots,"default")],2))}});var qxe=vt(Kxe,[["__file","form.vue"]]);function Bg(){return Bg=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},Bg.apply(this,arguments)}function Jxe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,AO(e,t)}function dM(e){return dM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dM(e)}function AO(e,t){return AO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},AO(e,t)}function eke(){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 rk(e,t,n){return eke()?rk=Reflect.construct.bind():rk=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),u=new l;return a&&AO(u,a.prototype),u},rk.apply(null,arguments)}function tke(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function hM(e){var t=typeof Map=="function"?new Map:void 0;return hM=function(r){if(r===null||!tke(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 rk(r,arguments,dM(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),AO(o,r)},hM(e)}var nke=/%[sdj%]/g,rke=function(){};typeof process!="undefined"&&process.env;function pM(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 $l(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(nke,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 oke(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||oke(t)&&typeof e=="string"&&!e)}function ike(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 f6(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 ake(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var d6=function(e){Jxe(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}(hM(Error));function ske(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 d6(C,pM(C))):v(o)},b=ake(e);f6(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 d6(d,pM(d))):v(o)};s.length||(r(d),v(o)),s.forEach(function(b){var k=e[b];a.indexOf(b)!==-1?f6(k,n,w):ike(k,n,w)})});return p.catch(function(v){return v}),p}function lke(e){return!!(e&&e.message!==void 0)}function uke(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function h6(e,t){return function(n){var r;return e.fullFields?r=uke(t,e.fullFields):r=t[n.field||e.fullField],lke(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 p6(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]=Bg({},e[n],r):e[n]=r}}return e}var pY=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||ta(n,a||t.type))&&o.push($l(i.messages.required,t.fullField))},cke=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push($l(i.messages.whitespace,t.fullField))},dx,fke=function(){if(dx)return dx;var e="[a-fA-F\\d:]",t=function(T){return T&&T.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=(`
- (?:
- (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
- (?:`+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
- (?:`+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
- (?:`+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
- (?:`+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
- (?:`+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
- (?:`+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
- (?::(?:(?::`+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
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(T){return T&&T.exact?i:new RegExp("(?:"+t(T)+n+t(T)+")|(?:"+t(T)+o+t(T)+")","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"]*)?',P="(?:"+u+"|www\\.)"+d+"(?:localhost|"+p+"|"+v+"|"+y+w+b+")"+k+C;return dx=new RegExp("(?:^"+P+"$)","i"),dx},g6={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},P_={integer:function(t){return P_.number(t)&&parseInt(t,10)===t},float:function(t){return P_.number(t)&&!P_.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"&&!P_.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(g6.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(fke())},hex:function(t){return typeof t=="string"&&!!t.match(g6.hex)}},dke=function(t,n,r,o,i){if(t.required&&n===void 0){pY(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?P_[s](n)||o.push($l(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push($l(i.messages.types[s],t.fullField,t.type))},hke=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($l(i.messages[p].len,t.fullField,t.len)):s&&!l&&d<t.min?o.push($l(i.messages[p].min,t.fullField,t.min)):l&&!s&&d>t.max?o.push($l(i.messages[p].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&o.push($l(i.messages[p].range,t.fullField,t.min,t.max))},zm="enum",pke=function(t,n,r,o,i){t[zm]=Array.isArray(t[zm])?t[zm]:[],t[zm].indexOf(n)===-1&&o.push($l(i.messages[zm],t.fullField,t[zm].join(", ")))},gke=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push($l(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($l(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Yr={required:pY,whitespace:cke,type:dke,range:hke,enum:pke,pattern:gke},vke=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();Yr.required(t,n,o,a,i,"string"),ta(n,"string")||(Yr.type(t,n,o,a,i),Yr.range(t,n,o,a,i),Yr.pattern(t,n,o,a,i),t.whitespace===!0&&Yr.whitespace(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(ta(n)&&!t.required)return r();Yr.required(t,n,o,a,i),n!==void 0&&Yr.type(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(n===""&&(n=void 0),ta(n)&&!t.required)return r();Yr.required(t,n,o,a,i),n!==void 0&&(Yr.type(t,n,o,a,i),Yr.range(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();Yr.required(t,n,o,a,i),n!==void 0&&Yr.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();Yr.required(t,n,o,a,i),ta(n)||Yr.type(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();Yr.required(t,n,o,a,i),n!==void 0&&(Yr.type(t,n,o,a,i),Yr.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(ta(n)&&!t.required)return r();Yr.required(t,n,o,a,i),n!==void 0&&(Yr.type(t,n,o,a,i),Yr.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(n==null&&!t.required)return r();Yr.required(t,n,o,a,i,"array"),n!=null&&(Yr.type(t,n,o,a,i),Yr.range(t,n,o,a,i))}r(a)},xke=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();Yr.required(t,n,o,a,i),n!==void 0&&Yr.type(t,n,o,a,i)}r(a)},kke="enum",Cke=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();Yr.required(t,n,o,a,i),n!==void 0&&Yr[kke](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,"string")&&!t.required)return r();Yr.required(t,n,o,a,i),ta(n,"string")||Yr.pattern(t,n,o,a,i)}r(a)},Tke=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(Yr.required(t,n,o,a,i),!ta(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Yr.type(t,l,o,a,i),l&&Yr.range(t,l.getTime(),o,a,i)}}r(a)},Pke=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Yr.required(t,n,o,a,i,s),r(a)},R$=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();Yr.required(t,n,o,s,i,a),ta(n,a)||Yr.type(t,n,o,s,i)}r(s)},$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();Yr.required(t,n,o,a,i)}r(a)},G_={string:vke,method:mke,number:yke,boolean:bke,regexp:_ke,integer:Oke,float:wke,array:Ske,object:xke,enum:Cke,pattern:Eke,date:Tke,url:R$,hex:R$,email:R$,required:Pke,any:$ke};function gM(){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 vM=gM(),T1=function(){function e(n){this.rules=null,this._messages=vM,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=p6(gM(),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 P(T){if(Array.isArray(T)){var A;k=(A=k).concat.apply(A,T)}else k.push(T)}for(var $=0;$<b.length;$++)P(b[$]);k.length?(C=pM(k),u(k,C)):u(null,s)}if(l.messages){var p=this.messages();p===vM&&(p=gM()),p6(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(P){var $=P;typeof $.transform=="function"&&(s===r&&(s=Bg({},s)),C=s[b]=$.transform(C)),typeof $=="function"?$={validator:$}:$=Bg({},$),$.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 ske(v,l,function(b,k){var C=b.rule,P=(C.type==="object"||C.type==="array")&&(typeof C.fields=="object"||typeof C.defaultField=="object");P=P&&(C.required||!C.required&&b.value),C.field=b.field;function $(R,B){return Bg({},B,{fullField:C.fullField+"."+R,fullFields:C.fullFields?[].concat(C.fullFields,[R]):[R]})}function T(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(h6(C,s));if(l.first&&N.length)return w[C.field]=1,k(N);if(!P)k(N);else{if(C.required&&!b.value)return C.message!==void 0?N=[].concat(C.message).map(h6(C,s)):l.error&&(N=[l.error(C,$l(l.messages.required,C.field))]),k(N);var I={};C.defaultField&&Object.keys(b.value).map(function(F){I[F]=C.defaultField}),I=Bg({},I,b.rule.fields);var D={};Object.keys(I).forEach(function(F){var G=I[F],ae=Array.isArray(G)?G:[G];D[F]=ae.map($.bind(null,F))});var j=new e(D);j.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),j.validate(b.value,b.rule.options||l,function(F){var G=[];N&&N.length&&G.push.apply(G,N),F&&F.length&&G.push.apply(G,F),k(G.length?G:null)})}}var A;if(C.asyncValidator)A=C.asyncValidator(C,b.value,T,b.source,l);else if(C.validator){try{A=C.validator(C,b.value,T,b.source,l)}catch(R){console.error==null||console.error(R),l.suppressValidatorError||setTimeout(function(){throw R},0),T(R.message)}A===!0?T():A===!1?T(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||(C.fullField||C.field)+" fails"):A instanceof Array?T(A):A instanceof Error&&T(A.message)}A&&A.then&&A.then(function(){return T()},function(R){return T(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&&!G_.hasOwnProperty(r.type))throw new Error($l("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"?G_.required:G_[this.getType(r)]||void 0},e}();T1.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");G_[t]=n};T1.warning=rke;T1.messages=vM;T1.validators=G_;const Ake=["","error","validating","success"],Mke=gt({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:je([String,Array])},required:{type:Boolean,default:void 0},rules:{type:je([Object,Array])},error:String,validateStatus:{type:String,values:Ake},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Sf}}),v6="ElLabelWrap";var Rke=xe({name:v6,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Pt(Sv,void 0),r=Pt(pf);r||Ai(v6,"usage: <el-form-item><label-wrap /></el-form-item>");const o=lt("form"),i=te(),a=te(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()}),Hr(()=>{l("remove")}),vc(()=>u()),at(a,(d,p)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,p))}),Oo(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),P=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";k&&(b[P]=`${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(Tt,{ref:i},[(p=t.default)==null?void 0:p.call(t)])}}});const Nke=xe({name:"ElFormItem"}),Ike=xe({...Nke,props:Mke,setup(e,{expose:t}){const n=e,r=Qi(),o=Pt(Sv,void 0),i=Pt(pf,void 0),a=_i(void 0,{formItem:!1}),s=lt("form-item"),l=La().value,u=te([]),d=te(""),p=Hie(d,100),v=te(""),y=te();let w,b=!1;const k=W(()=>n.labelPosition||(o==null?void 0:o.labelPosition)),C=W(()=>{if(k.value==="top")return{};const _e=Fo(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return _e?{width:_e}:{}}),P=W(()=>{if(k.value==="top"||(o==null?void 0:o.inline))return{};if(!n.label&&!n.labelWidth&&D)return{};const _e=Fo(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}]),T=W(()=>Ho(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),A=W(()=>[s.e("error"),{[s.em("error","inline")]:T.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,j=W(()=>{const _e=o==null?void 0:o.model;if(!(!_e||!n.prop))return tk(_e,n.prop).value}),F=W(()=>{const{required:_e}=n,ye=[];n.rules&&ye.push(...Ra(n.rules));const Ne=o==null?void 0:o.rules;if(Ne&&n.prop){const Se=tk(Ne,n.prop).value;Se&&ye.push(...Ra(Se))}if(_e!==void 0){const Se=ye.map((ce,be)=>[ce,be]).filter(([ce])=>Object.keys(ce).includes("required"));if(Se.length>0)for(const[ce,be]of Se)ce.required!==_e&&(ye[be]={...ce,required:_e});else ye.push({required:_e})}return ye}),G=W(()=>F.value.length>0),ae=_e=>F.value.filter(Ne=>!Ne.trigger||!_e?!0:Array.isArray(Ne.trigger)?Ne.trigger.includes(_e):Ne.trigger===_e).map(({trigger:Ne,...Se})=>Se),K=W(()=>F.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)}),oe=W(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),J=_e=>{d.value=_e},z=_e=>{var ye,Ne;const{errors:Se,fields:ce}=_e;(!Se||!ce)&&console.error(_e),J("error"),v.value=Se?(Ne=(ye=Se==null?void 0:Se[0])==null?void 0:ye.message)!=null?Ne:`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,v.value)},X=()=>{J("success"),o==null||o.emit("validate",n.prop,!0,"")},ee=async _e=>{const ye=R.value;return new T1({[ye]:_e}).validate({[ye]:j.value},{firstFields:!0}).then(()=>(X(),!0)).catch(Se=>(z(Se),Promise.reject(Se)))},he=async(_e,ye)=>{if(b||!n.prop)return!1;const Ne=nn(ye);if(!G.value)return ye==null||ye(!1),!1;const Se=ae(_e);return Se.length===0?(ye==null||ye(!0),!0):(J("validating"),ee(Se).then(()=>(ye==null||ye(!0),!0)).catch(ce=>{const{fields:be}=ce;return ye==null||ye(!1,be),Ne?!1:Promise.reject(be)}))},fe=()=>{J(""),v.value="",b=!1},Le=async()=>{const _e=o==null?void 0:o.model;if(!_e||!n.prop)return;const ye=tk(_e,n.prop);b=!0,ye.value=JA(w),await zt(),fe(),b=!1},Ie=_e=>{u.value.includes(_e)||u.value.push(_e)},ze=_e=>{u.value=u.value.filter(ye=>ye!==_e)};at(()=>n.error,_e=>{v.value=_e||"",J(_e?"error":"")},{immediate:!0}),at(()=>n.validateStatus,_e=>J(_e||""));const Ae=rr({...ea(n),$el:y,size:a,validateState:d,labelId:l,inputIds:u,isGroup:I,hasLabel:B,fieldValue:j,addInputId:Ie,removeInputId:ze,resetField:Le,clearValidate:fe,validate:he});return Wn(pf,Ae),vn(()=>{n.prop&&(o==null||o.addField(Ae),w=JA(j.value))}),Hr(()=>{o==null||o.removeField(Ae)}),t({size:a,validateMessage:v,validateState:d,validate:he,clearValidate:fe,resetField:Le}),(_e,ye)=>{var Ne;return Z(),ue("div",{ref_key:"formItemRef",ref:y,class:q(m($)),role:m(I)?"group":void 0,"aria-labelledby":m(I)?m(l):void 0},[re(m(Rke),{"is-auto-width":m(C).width==="auto","update-all":((Ne=m(o))==null?void 0:Ne.labelWidth)==="auto"},{default:le(()=>[m(B)?(Z(),Qe(Dn(m(N)?"label":"div"),{key:0,id:m(l),for:m(N),class:q(m(s).e("label")),style:Vt(m(C))},{default:le(()=>[Ge(_e.$slots,"label",{label:m(oe)},()=>[St(ct(m(oe)),1)])]),_:3},8,["id","for","class","style"])):Fe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ve("div",{class:q(m(s).e("content")),style:Vt(m(P))},[Ge(_e.$slots,"default"),re(Dz,{name:`${m(s).namespace.value}-zoom-in-top`},{default:le(()=>[m(H)?Ge(_e.$slots,"error",{key:0,error:v.value},()=>[ve("div",{class:q(m(A))},ct(v.value),3)]):Fe("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var gY=vt(Ike,[["__file","form-item.vue"]]);const xf=pn(qxe,{FormItem:gY}),kf=xo(gY);let rc;const Dke=`
- height:0 !important;
- visibility:hidden !important;
- ${IN()?"":"overflow:hidden !important;"}
- position:absolute !important;
- z-index:-1000 !important;
- top:0 !important;
- right:0 !important;
- `,jke=["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 Lke(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:jke.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function m6(e,t=1,n){var r;rc||(rc=document.createElement("textarea"),document.body.appendChild(rc));const{paddingSize:o,borderSize:i,boxSizing:a,contextStyle:s}=Lke(e);rc.setAttribute("style",`${s};${Dke}`),rc.value=e.value||e.placeholder||"";let l=rc.scrollHeight;const u={};a==="border-box"?l=l+i:a==="content-box"&&(l=l-o),rc.value="";const d=rc.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=rc.parentNode)==null||r.removeChild(rc),rc=void 0,u}const dD=gt({id:{type:String,default:void 0},size:Mi,disabled:Boolean,modelValue:{type:je([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:je([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:zr},prefixIcon:{type:zr},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:je([Object,Array,String]),default:()=>wo({})},autofocus:Boolean,rows:{type:Number,default:2},...pa(["ariaLabel"])}),Bke={[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},Vke=xe({name:"ElInput",inheritAttrs:!1}),Fke=xe({...Vke,props:dD,emits:Bke,setup(e,{expose:t,emit:n}){const r=e,o=mv(),i=Qi(),a=W(()=>{const qe={};return r.containerRole==="combobox"&&(qe["aria-haspopup"]=o["aria-haspopup"],qe["aria-owns"]=o["aria-owns"],qe["aria-expanded"]=o["aria-expanded"]),qe}),s=W(()=>[r.type==="textarea"?k.b():b.b(),b.m(y.value),b.is("disabled",w.value),b.is("exceed",ee.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")]:oe.value&&J.value,[b.b("hidden")]:r.type==="hidden"},o.class]),l=W(()=>[b.e("wrapper"),b.is("focus",I.value)]),u=YI({excludeKeys:W(()=>Object.keys(a.value))}),{form:d,formItem:p}=ss(),{inputId:v}=_c(r,{formItemContext:p}),y=_i(),w=Is(),b=lt("input"),k=lt("textarea"),C=Jr(),P=Jr(),$=te(!1),T=te(!1),A=te(),R=Jr(r.inputStyle),B=W(()=>C.value||P.value),{wrapperRef:N,isFocused:I}=E1(B,{afterBlur(){var qe;r.validateEvent&&((qe=p==null?void 0:p.validate)==null||qe.call(p,"blur").catch(ot=>void 0))}}),D=W(()=>{var qe;return(qe=d==null?void 0:d.statusIcon)!=null?qe:!1}),j=W(()=>(p==null?void 0:p.validateState)||""),F=W(()=>j.value&&WI[j.value]),G=W(()=>T.value?rwe:E1e),ae=W(()=>[o.style]),K=W(()=>[r.inputStyle,R.value,{resize:r.resize}]),H=W(()=>zi(r.modelValue)?"":String(r.modelValue)),oe=W(()=>r.clearable&&!w.value&&!r.readonly&&!!H.value&&(I.value||$.value)),J=W(()=>r.showPassword&&!w.value&&!r.readonly&&!!H.value&&(!!H.value||I.value)),z=W(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!w.value&&!r.readonly&&!r.showPassword),X=W(()=>H.value.length),ee=W(()=>!!z.value&&X.value>Number(r.maxlength)),he=W(()=>!!i.suffix||!!r.suffixIcon||oe.value||r.showPassword||z.value||!!j.value&&D.value),[fe,Le]=yxe(C);Oo(P,qe=>{if(Ae(),!z.value||r.resize!=="both")return;const ot=qe[0],{width:ft}=ot.contentRect;A.value={right:`calc(100% - ${ft+15+6}px)`}});const Ie=()=>{const{type:qe,autosize:ot}=r;if(!(!nr||qe!=="textarea"||!P.value))if(ot){const ft=Pn(ot)?ot.minRows:void 0,kt=Pn(ot)?ot.maxRows:void 0,Wt=m6(P.value,ft,kt);R.value={overflowY:"hidden",...Wt},zt(()=>{P.value.offsetHeight,R.value=Wt})}else R.value={minHeight:m6(P.value).minHeight}},Ae=(qe=>{let ot=!1;return()=>{var ft;if(ot||!r.autosize)return;((ft=P.value)==null?void 0:ft.offsetParent)===null||(qe(),ot=!0)}})(Ie),_e=()=>{const qe=B.value,ot=r.formatter?r.formatter(H.value):H.value;!qe||qe.value===ot||(qe.value=ot)},ye=async qe=>{fe();let{value:ot}=qe.target;if(r.formatter&&(ot=r.parser?r.parser(ot):ot),!Se.value){if(ot===H.value){_e();return}n(En,ot),n("input",ot),await zt(),_e(),Le()}},Ne=qe=>{n("change",qe.target.value)},{isComposing:Se,handleCompositionStart:ce,handleCompositionUpdate:be,handleCompositionEnd:pe}=AC({emit:n,afterComposition:ye}),Me=()=>{T.value=!T.value,Ze()},Ze=async()=>{var qe;await zt(),(qe=B.value)==null||qe.focus()},Be=()=>{var qe;return(qe=B.value)==null?void 0:qe.blur()},$e=qe=>{$.value=!1,n("mouseleave",qe)},Je=qe=>{$.value=!0,n("mouseenter",qe)},Oe=qe=>{n("keydown",qe)},Ye=()=>{var qe;(qe=B.value)==null||qe.select()},ut=()=>{n(En,""),n("change",""),n("clear"),n("input","")};return at(()=>r.modelValue,()=>{var qe;zt(()=>Ie()),r.validateEvent&&((qe=p==null?void 0:p.validate)==null||qe.call(p,"change").catch(ot=>void 0))}),at(H,()=>_e()),at(()=>r.type,async()=>{await zt(),_e(),Ie()}),vn(()=>{!r.formatter&&r.parser,_e(),zt(Ie)}),t({input:C,textarea:P,ref:B,textareaStyle:K,autosize:Cr(r,"autosize"),isComposing:Se,focus:Ze,blur:Be,select:Ye,clear:ut,resizeTextarea:Ie}),(qe,ot)=>(Z(),ue("div",In(m(a),{class:[m(s),{[m(b).bm("group","append")]:qe.$slots.append,[m(b).bm("group","prepend")]:qe.$slots.prepend}],style:m(ae),role:qe.containerRole,onMouseenter:Je,onMouseleave:$e}),[Fe(" input "),qe.type!=="textarea"?(Z(),ue(Tt,{key:0},[Fe(" prepend slot "),qe.$slots.prepend?(Z(),ue("div",{key:0,class:q(m(b).be("group","prepend"))},[Ge(qe.$slots,"prepend")],2)):Fe("v-if",!0),ve("div",{ref_key:"wrapperRef",ref:N,class:q(m(l))},[Fe(" prefix slot "),qe.$slots.prefix||qe.prefixIcon?(Z(),ue("span",{key:0,class:q(m(b).e("prefix"))},[ve("span",{class:q(m(b).e("prefix-inner"))},[Ge(qe.$slots,"prefix"),qe.prefixIcon?(Z(),Qe(m(jt),{key:0,class:q(m(b).e("icon"))},{default:le(()=>[(Z(),Qe(Dn(qe.prefixIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],2)],2)):Fe("v-if",!0),ve("input",In({id:m(v),ref_key:"input",ref:C,class:m(b).e("inner")},m(u),{minlength:qe.minlength,maxlength:qe.maxlength,type:qe.showPassword?T.value?"text":"password":qe.type,disabled:m(w),readonly:qe.readonly,autocomplete:qe.autocomplete,tabindex:qe.tabindex,"aria-label":qe.ariaLabel,placeholder:qe.placeholder,style:qe.inputStyle,form:qe.form,autofocus:qe.autofocus,onCompositionstart:m(ce),onCompositionupdate:m(be),onCompositionend:m(pe),onInput:ye,onChange:Ne,onKeydown:Oe}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","onCompositionstart","onCompositionupdate","onCompositionend"]),Fe(" suffix slot "),m(he)?(Z(),ue("span",{key:1,class:q(m(b).e("suffix"))},[ve("span",{class:q(m(b).e("suffix-inner"))},[!m(oe)||!m(J)||!m(z)?(Z(),ue(Tt,{key:0},[Ge(qe.$slots,"suffix"),qe.suffixIcon?(Z(),Qe(m(jt),{key:0,class:q(m(b).e("icon"))},{default:le(()=>[(Z(),Qe(Dn(qe.suffixIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],64)):Fe("v-if",!0),m(oe)?(Z(),Qe(m(jt),{key:1,class:q([m(b).e("icon"),m(b).e("clear")]),onMousedown:tn(m(Vr),["prevent"]),onClick:ut},{default:le(()=>[re(m(Op))]),_:1},8,["class","onMousedown"])):Fe("v-if",!0),m(J)?(Z(),Qe(m(jt),{key:2,class:q([m(b).e("icon"),m(b).e("password")]),onClick:Me},{default:le(()=>[(Z(),Qe(Dn(m(G))))]),_:1},8,["class"])):Fe("v-if",!0),m(z)?(Z(),ue("span",{key:3,class:q(m(b).e("count"))},[ve("span",{class:q(m(b).e("count-inner"))},ct(m(X))+" / "+ct(qe.maxlength),3)],2)):Fe("v-if",!0),m(j)&&m(F)&&m(D)?(Z(),Qe(m(jt),{key:4,class:q([m(b).e("icon"),m(b).e("validateIcon"),m(b).is("loading",m(j)==="validating")])},{default:le(()=>[(Z(),Qe(Dn(m(F))))]),_:1},8,["class"])):Fe("v-if",!0)],2)],2)):Fe("v-if",!0)],2),Fe(" append slot "),qe.$slots.append?(Z(),ue("div",{key:1,class:q(m(b).be("group","append"))},[Ge(qe.$slots,"append")],2)):Fe("v-if",!0)],64)):(Z(),ue(Tt,{key:1},[Fe(" textarea "),ve("textarea",In({id:m(v),ref_key:"textarea",ref:P,class:[m(k).e("inner"),m(b).is("focus",m(I))]},m(u),{minlength:qe.minlength,maxlength:qe.maxlength,tabindex:qe.tabindex,disabled:m(w),readonly:qe.readonly,autocomplete:qe.autocomplete,style:m(K),"aria-label":qe.ariaLabel,placeholder:qe.placeholder,form:qe.form,autofocus:qe.autofocus,rows:qe.rows,onCompositionstart:m(ce),onCompositionupdate:m(be),onCompositionend:m(pe),onInput:ye,onChange:Ne,onKeydown:Oe}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","onCompositionstart","onCompositionupdate","onCompositionend"]),m(z)?(Z(),ue("span",{key:0,style:Vt(A.value),class:q(m(b).e("count"))},ct(m(X))+" / "+ct(qe.maxlength),7)):Fe("v-if",!0)],64))],16,["role"]))}});var zke=vt(Fke,[["__file","input.vue"]]);const ti=pn(zke),Qm=4,vY={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"}},Qke=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),hD=Symbol("scrollbarContextKey"),Wke=gt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Yke="Thumb",Zke=xe({__name:"thumb",props:Wke,setup(e){const t=e,n=Pt(hD),r=lt("scrollbar");n||Ai(Yke,"can not inject scrollbar context");const o=te(),i=te(),a=te({}),s=te(!1);let l=!1,u=!1,d=nr?document.onselectstart:null;const p=W(()=>vY[t.vertical?"vertical":"horizontal"]),v=W(()=>Qke({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",P),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},P=()=>{l=!1,a.value[p.value.axis]=0,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",P),A(),u&&(s.value=!1)},$=()=>{u=!1,s.value=!!t.size},T=()=>{u=!0,s.value=l};Hr(()=>{A(),document.removeEventListener("mouseup",P)});const A=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Mr(Cr(n,"scrollbarElement"),"mousemove",$),Mr(Cr(n,"scrollbarElement"),"mouseleave",T),(R,B)=>(Z(),Qe($i,{name:m(r).b("fade"),persisted:""},{default:le(()=>[yn(ve("div",{ref_key:"instance",ref:o,class:q([m(r).e("bar"),m(r).is(m(p).key)]),onMousedown:b},[ve("div",{ref_key:"thumb",ref:i,class:q(m(r).e("thumb")),style:Vt(m(v)),onMousedown:w},null,38)],34),[[pr,R.always||s.value]])]),_:1},8,["name"]))}});var y6=vt(Zke,[["__file","thumb.vue"]]);const Uke=gt({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Hke=xe({__name:"bar",props:Uke,setup(e,{expose:t}){const n=e,r=Pt(hD),o=te(0),i=te(0),a=te(""),s=te(""),l=te(1),u=te(1);return t({handleScroll:v=>{if(v){const y=v.offsetHeight-Qm,w=v.offsetWidth-Qm;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-Qm,w=v.offsetWidth-Qm,b=y**2/v.scrollHeight,k=w**2/v.scrollWidth,C=Math.max(b,n.minSize),P=Math.max(k,n.minSize);l.value=b/(y-b)/(C/(y-C)),u.value=k/(w-k)/(P/(w-P)),s.value=C+Qm<y?`${C}px`:"",a.value=P+Qm<w?`${P}px`:""}}),(v,y)=>(Z(),ue(Tt,null,[re(y6,{move:o.value,ratio:u.value,size:a.value,always:v.always},null,8,["move","ratio","size","always"]),re(y6,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:v.always},null,8,["move","ratio","size","always"])],64))}});var Xke=vt(Hke,[["__file","bar.vue"]]);const Gke=gt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:je([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,...pa(["ariaLabel","ariaOrientation"])}),Kke={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(en)},qke="ElScrollbar",Jke=xe({name:qke}),e2e=xe({...Jke,props:Gke,emits:Kke,setup(e,{expose:t,emit:n}){const r=e,o=lt("scrollbar");let i,a,s=0,l=0;const u=te(),d=te(),p=te(),v=te(),y=W(()=>{const A={};return r.height&&(A.height=Fo(r.height)),r.maxHeight&&(A.maxHeight=Fo(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 P=A=>{!en(A)||(d.value.scrollTop=A)},$=A=>{!en(A)||(d.value.scrollLeft=A)},T=()=>{var A;(A=v.value)==null||A.update()};return at(()=>r.noresize,A=>{A?(i==null||i(),a==null||a()):({stop:i}=Oo(p,T),a=Mr("resize",T))},{immediate:!0}),at(()=>[r.maxHeight,r.height],()=>{r.native||zt(()=>{var A;T(),d.value&&((A=v.value)==null||A.handleScroll(d.value))})}),Wn(hD,rr({scrollbarElement:u,wrapElement:d})),kN(()=>{d.value.scrollTop=s,d.value.scrollLeft=l}),vn(()=>{r.native||zt(()=>{T()})}),vc(()=>T()),t({wrapRef:d,update:T,scrollTo:C,setScrollTop:P,setScrollLeft:$,handleScroll:k}),(A,R)=>(Z(),ue("div",{ref_key:"scrollbarRef",ref:u,class:q(m(o).b())},[ve("div",{ref_key:"wrapRef",ref:d,class:q(m(w)),style:Vt(m(y)),onScroll:k},[(Z(),Qe(Dn(A.tag),{id:A.id,ref_key:"resizeRef",ref:p,class:q(m(b)),style:Vt(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:le(()=>[Ge(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),A.native?Fe("v-if",!0):(Z(),Qe(Xke,{key:0,ref_key:"barRef",ref:v,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}});var t2e=vt(e2e,[["__file","scrollbar.vue"]]);const Oc=pn(t2e),pD=Symbol("popper"),mY=Symbol("popperContent"),n2e=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],yY=gt({role:{type:String,values:n2e,default:"tooltip"}}),r2e=xe({name:"ElPopper",inheritAttrs:!1}),o2e=xe({...r2e,props:yY,setup(e,{expose:t}){const n=e,r=te(),o=te(),i=te(),a=te(),s=W(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:i,referenceRef:a,role:s};return t(l),Wn(pD,l),(u,d)=>Ge(u.$slots,"default")}});var i2e=vt(o2e,[["__file","popper.vue"]]);const bY=gt({arrowOffset:{type:Number,default:5}}),a2e=xe({name:"ElPopperArrow",inheritAttrs:!1}),s2e=xe({...a2e,props:bY,setup(e,{expose:t}){const n=e,r=lt("popper"),{arrowOffset:o,arrowRef:i,arrowStyle:a}=Pt(mY,void 0);return at(()=>n.arrowOffset,s=>{o.value=s}),Hr(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(Z(),ue("span",{ref_key:"arrowRef",ref:i,class:q(m(r).e("arrow")),style:Vt(m(a)),"data-popper-arrow":""},null,6))}});var l2e=vt(s2e,[["__file","arrow.vue"]]);const u2e="ElOnlyChild",_Y=xe({name:u2e,setup(e,{slots:t,attrs:n}){var r;const o=Pt(UW),i=BSe((r=o==null?void 0:o.setForwardRef)!=null?r:Vr);return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t,n);if(!s||s.length>1)return null;const l=OY(s);return l?yn(fd(l,n),[[i]]):null}}});function OY(e){if(!e)return null;const t=e;for(const n of t){if(Pn(n))switch(n.type){case Ss:continue;case o0:case"svg":return b6(n);case Tt:return OY(n.children);default:return n}return b6(n)}return null}function b6(e){const t=lt("only-child");return re("span",{class:t.e("content")},[e])}const wY=gt({virtualRef:{type:je(Object)},virtualTriggering:Boolean,onMouseenter:{type:je(Function)},onMouseleave:{type:je(Function)},onClick:{type:je(Function)},onKeydown:{type:je(Function)},onFocus:{type:je(Function)},onBlur:{type:je(Function)},onContextmenu:{type:je(Function)},id:String,open:Boolean}),c2e=xe({name:"ElPopperTrigger",inheritAttrs:!1}),f2e=xe({...c2e,props:wY,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=Pt(pD,void 0);LSe(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=Hs(p))},{immediate:!0}),at(o,(p,v)=>{u==null||u(),u=void 0,Nl(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)=>{zi(y[b])?p.removeAttribute(w):p.setAttribute(w,y[b])})},{immediate:!0})),Nl(v)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(y=>v.removeAttribute(y))},{immediate:!0})}),Hr(()=>{if(u==null||u(),u=void 0,o.value&&Nl(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?Fe("v-if",!0):(Z(),Qe(m(_Y),In({key:0},p.$attrs,{"aria-controls":m(i),"aria-describedby":m(a),"aria-expanded":m(l),"aria-haspopup":m(s)}),{default:le(()=>[Ge(p.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var d2e=vt(f2e,[["__file","trigger.vue"]]);const N$="focus-trap.focus-after-trapped",I$="focus-trap.focus-after-released",h2e="focus-trap.focusout-prevented",_6={cancelable:!0,bubbles:!1},p2e={cancelable:!0,bubbles:!1},O6="focusAfterTrapped",w6="focusAfterReleased",gD=Symbol("elFocusTrap"),vD=te(),IC=te(0),mD=te(0);let hx=0;const SY=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},S6=(e,t)=>{for(const n of e)if(!g2e(n,t))return n},g2e=(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},v2e=e=>{const t=SY(e),n=S6(t,e),r=S6(t.reverse(),e);return[n,r]},m2e=e=>e instanceof HTMLInputElement&&"select"in e,Oh=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),mD.value=window.performance.now(),e!==n&&m2e(e)&&t&&e.select()}};function x6(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const y2e=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=x6(e,r),e.unshift(r)},remove:r=>{var o,i;e=x6(e,r),(i=(o=e[0])==null?void 0:o.resume)==null||i.call(o)}}},b2e=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Oh(r,t),document.activeElement!==n)return},k6=y2e(),_2e=()=>IC.value>mD.value,px=()=>{vD.value="pointer",IC.value=window.performance.now()},C6=()=>{vD.value="keyboard",IC.value=window.performance.now()},O2e=()=>(vn(()=>{hx===0&&(document.addEventListener("mousedown",px),document.addEventListener("touchstart",px),document.addEventListener("keydown",C6)),hx++}),Hr(()=>{hx--,hx<=0&&(document.removeEventListener("mousedown",px),document.removeEventListener("touchstart",px),document.removeEventListener("keydown",C6))}),{focusReason:vD,lastUserFocusTimestamp:IC,lastAutomatedFocusTimestamp:mD}),gx=e=>new CustomEvent(h2e,{...p2e,detail:e}),w2e=xe({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[O6,w6,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=te();let r,o;const{focusReason:i}=O2e();RSe(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:P,currentTarget:$,shiftKey:T}=w,{loop:A}=e,R=b===Qt.tab&&!k&&!C&&!P,B=document.activeElement;if(R&&B){const N=$,[I,D]=v2e(N);if(I&&D){if(!T&&B===D){const F=gx({focusReason:i.value});t("focusout-prevented",F),F.defaultPrevented||(w.preventDefault(),A&&Oh(I,!0))}else if(T&&[I,N].includes(B)){const F=gx({focusReason:i.value});t("focusout-prevented",F),F.defaultPrevented||(w.preventDefault(),A&&Oh(D,!0))}}else if(B===N){const F=gx({focusReason:i.value});t("focusout-prevented",F),F.defaultPrevented||w.preventDefault()}}};Wn(gD,{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(O6,w)},u=w=>t(w6,w),d=w=>{const b=m(n);if(!b)return;const k=w.target,C=w.relatedTarget,P=k&&b.contains(k);e.trapped||C&&b.contains(C)||(r=C),P&&t("focusin",w),!a.paused&&e.trapped&&(P?o=k:Oh(o,!0))},p=w=>{const b=m(n);if(!(a.paused||!b))if(e.trapped){const k=w.relatedTarget;!zi(k)&&!b.contains(k)&&setTimeout(()=>{if(!a.paused&&e.trapped){const C=gx({focusReason:i.value});t("focusout-prevented",C),C.defaultPrevented||Oh(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){k6.push(a);const b=w.contains(document.activeElement)?r:document.activeElement;if(r=b,!w.contains(b)){const C=new Event(N$,_6);w.addEventListener(N$,l),w.dispatchEvent(C),C.defaultPrevented||zt(()=>{let P=e.focusStartEl;Gt(P)||(Oh(P),document.activeElement!==P&&(P="first")),P==="first"&&b2e(SY(w),!0),(document.activeElement===b||P==="container")&&Oh(w)})}}}function y(){const w=m(n);if(w){w.removeEventListener(N$,l);const b=new CustomEvent(I$,{..._6,detail:{focusReason:i.value}});w.addEventListener(I$,u),w.dispatchEvent(b),!b.defaultPrevented&&(i.value=="keyboard"||!_2e()||w.contains(document.activeElement))&&Oh(r!=null?r:document.body),w.removeEventListener(I$,u),k6.remove(a)}}return vn(()=>{e.trapped&&v(),at(()=>e.trapped,w=>{w?v():y()})}),Hr(()=>{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 S2e(e,t,n,r,o,i){return Ge(e.$slots,"default",{handleKeydown:e.onKeydown})}var P1=vt(w2e,[["render",S2e],["__file","focus-trap.vue"]]);const x2e=["fixed","absolute"],k2e=gt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:je(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:wv,default:"bottom"},popperOptions:{type:je(Object),default:()=>({})},strategy:{type:String,values:x2e,default:"absolute"}}),xY=gt({...k2e,id:String,style:{type:je([String,Array,Object])},className:{type:je([String,Array,Object])},effect:{type:je(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:je([String,Array,Object])},popperStyle:{type:je([String,Array,Object])},referenceEl:{type:je(Object)},triggerTargetEl:{type:je(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...pa(["ariaLabel"])}),C2e={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},E2e=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:[...P2e(e),...t]};return $2e(i,o==null?void 0:o.modifiers),i},T2e=e=>{if(!!nr)return Hs(e)};function P2e(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 $2e(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const A2e=0,M2e=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=Pt(pD,void 0),i=te(),a=te(),s=W(()=>({name:"eventListeners",enabled:!!e.visible})),l=W(()=>{var C;const P=m(i),$=(C=m(a))!=null?C:A2e;return{name:"arrow",enabled:!_I(P),options:{element:P,padding:$}}}),u=W(()=>({onFirstUpdate:()=>{w()},...E2e(e,[m(l),m(s)])})),d=W(()=>T2e(e.referenceEl)||m(r)),{attributes:p,state:v,styles:y,update:w,forceUpdate:b,instanceRef:k}=PSe(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}},R2e=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=g0(),i=lt("popper"),a=W(()=>m(t).popper),s=te(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()}}},N2e=(e,t)=>{const n=te(!1),r=te();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")}}},I2e=xe({name:"ElPopperContent"}),D2e=xe({...I2e,props:xY,emits:C2e,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:a,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:d}=N2e(r,n),{attributes:p,arrowRef:v,contentRef:y,styles:w,instanceRef:b,role:k,update:C}=M2e(r),{ariaModal:P,arrowStyle:$,contentAttrs:T,contentClass:A,contentStyle:R,updateZIndex:B}=R2e(r,{styles:w,attributes:p,role:k}),N=Pt(pf,void 0),I=te();Wn(mY,{arrowStyle:$,arrowRef:v,arrowOffset:I}),N&&Wn(pf,{...N,addInputId:Vr,removeInputId:Vr});let D;const j=(G=!0)=>{C(),G&&B()},F=()=>{j(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return vn(()=>{at(()=>r.triggerTargetEl,(G,ae)=>{D==null||D(),D=void 0;const K=m(G||y.value),H=m(ae||y.value);Nl(K)&&(D=at([k,()=>r.ariaLabel,P,()=>r.id],oe=>{["role","aria-label","aria-modal","id"].forEach((J,z)=>{zi(oe[z])?K.removeAttribute(J):K.setAttribute(J,oe[z])})},{immediate:!0})),H!==K&&Nl(H)&&["role","aria-label","aria-modal","id"].forEach(oe=>{H.removeAttribute(oe)})},{immediate:!0}),at(()=>r.visible,F,{immediate:!0})}),Hr(()=>{D==null||D(),D=void 0}),t({popperContentRef:y,popperInstanceRef:b,updatePopper:j,contentStyle:R}),(G,ae)=>(Z(),ue("div",In({ref_key:"contentRef",ref:y},m(T),{style:m(R),class:m(A),tabindex:"-1",onMouseenter:K=>G.$emit("mouseenter",K),onMouseleave:K=>G.$emit("mouseleave",K)}),[re(m(P1),{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:le(()=>[Ge(G.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var j2e=vt(D2e,[["__file","content.vue"]]);const kY=pn(i2e),DC=Symbol("elTooltip"),Gi=gt({...DSe,...xY,appendTo:{type:je([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:je(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...pa(["ariaLabel"])}),MO=gt({...wY,disabled:Boolean,trigger:{type:je([String,Array]),default:"hover"},triggerKeys:{type:je(Array),default:()=>[Qt.enter,Qt.space]}}),{useModelToggleProps:L2e,useModelToggleEmits:B2e,useModelToggle:V2e}=Cwe("visible"),F2e=gt({...yY,...L2e,...Gi,...MO,...bY,showArrow:{type:Boolean,default:!0}}),z2e=[...B2e,"before-show","before-hide","show","hide","open","close"],Q2e=(e,t)=>xt(e)?e.includes(t):e===t,Wm=(e,t,n)=>r=>{Q2e(m(e),t)&&n(r)},W2e=xe({name:"ElTooltipTrigger"}),Y2e=xe({...W2e,props:MO,setup(e,{expose:t}){const n=e,r=lt("tooltip"),{controlled:o,id:i,open:a,onOpen:s,onClose:l,onToggle:u}=Pt(DC,void 0),d=te(null),p=()=>{if(m(o)||n.disabled)return!0},v=Cr(n,"trigger"),y=Bo(p,Wm(v,"hover",s)),w=Bo(p,Wm(v,"hover",l)),b=Bo(p,Wm(v,"click",T=>{T.button===0&&u(T)})),k=Bo(p,Wm(v,"focus",s)),C=Bo(p,Wm(v,"focus",l)),P=Bo(p,Wm(v,"contextmenu",T=>{T.preventDefault(),u(T)})),$=Bo(p,T=>{const{code:A}=T;n.triggerKeys.includes(A)&&(T.preventDefault(),u(T))});return t({triggerRef:d}),(T,A)=>(Z(),Qe(m(d2e),{id:m(i),"virtual-ref":T.virtualRef,open:m(a),"virtual-triggering":T.virtualTriggering,class:q(m(r).e("trigger")),onBlur:m(C),onClick:m(b),onContextmenu:m(P),onFocus:m(k),onMouseenter:m(y),onMouseleave:m(w),onKeydown:m($)},{default:le(()=>[Ge(T.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Z2e=vt(Y2e,[["__file","trigger.vue"]]);const U2e=gt({to:{type:je([String,Object]),required:!0},disabled:Boolean}),H2e=xe({__name:"teleport",props:U2e,setup(e){return(t,n)=>t.disabled?Ge(t.$slots,"default",{key:0}):(Z(),Qe(Foe,{key:1,to:t.to},[Ge(t.$slots,"default")],8,["to"]))}});var X2e=vt(H2e,[["__file","teleport.vue"]]);const m0=pn(X2e),G2e=xe({name:"ElTooltipContent",inheritAttrs:!1}),K2e=xe({...G2e,props:Gi,setup(e,{expose:t}){const n=e,{selector:r}=ZW(),o=lt("tooltip"),i=te(null);let a;const{controlled:s,id:l,open:u,trigger:d,onClose:p,onOpen:v,onShow:y,onHide:w,onBeforeShow:b,onBeforeHide:k}=Pt(DC,void 0),C=W(()=>n.transition||`${o.namespace.value}-fade-in-linear`),P=W(()=>n.persistent);Hr(()=>{a==null||a()});const $=W(()=>m(P)?!0:m(u)),T=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=Bo(I,()=>{n.enterable&&m(d)==="hover"&&v()}),j=Bo(I,()=>{m(d)==="hover"&&p()}),F=()=>{var H,oe;(oe=(H=i.value)==null?void 0:H.updatePopper)==null||oe.call(H),b==null||b()},G=()=>{k==null||k()},ae=()=>{y(),a=NN(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,oe;(oe=(H=i.value)==null?void 0:H.updatePopper)==null||oe.call(H)}),t({contentRef:i}),(H,oe)=>(Z(),Qe(m(m0),{disabled:!H.teleported,to:m(A)},{default:le(()=>[re($i,{name:m(C),onAfterLeave:N,onBeforeEnter:F,onAfterEnter:ae,onBeforeLeave:G},{default:le(()=>[m($)?yn((Z(),Qe(m(j2e),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(T),"z-index":H.zIndex,onMouseenter:m(D),onMouseleave:m(j),onBlur:K,onClose:m(p)}),{default:le(()=>[Ge(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"])),[[pr,m(T)]]):Fe("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var q2e=vt(K2e,[["__file","content.vue"]]);const J2e=xe({name:"ElTooltip"}),eCe=xe({...J2e,props:F2e,emits:z2e,setup(e,{expose:t,emit:n}){const r=e;ISe();const o=La(),i=te(),a=te(),s=()=>{var C;const P=m(i);P&&((C=P.popperInstanceRef)==null||C.update())},l=te(!1),u=te(),{show:d,hide:p,hasUpdateHandler:v}=V2e({indicator:l,toggleReason:u}),{onOpen:y,onClose:w}=jSe({showAfter:Cr(r,"showAfter"),hideAfter:Cr(r,"hideAfter"),autoClose:Cr(r,"autoClose"),open:d,close:p}),b=W(()=>Ho(r.visible)&&!v.value);Wn(DC,{controlled:b,id:o,open:c1(l),trigger:Cr(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 P,$;const T=($=(P=a.value)==null?void 0:P.contentRef)==null?void 0:$.popperContentRef,A=(C==null?void 0:C.relatedTarget)||document.activeElement;return T&&T.contains(A)};return cz(()=>l.value&&p()),t({popperRef:i,contentRef:a,isFocusInsideContent:k,updatePopper:s,onOpen:y,onClose:w,hide:p}),(C,P)=>(Z(),Qe(m(kY),{ref_key:"popperRef",ref:i,role:C.role},{default:le(()=>[re(Z2e,{disabled:C.disabled,trigger:C.trigger,"trigger-keys":C.triggerKeys,"virtual-ref":C.virtualRef,"virtual-triggering":C.virtualTriggering},{default:le(()=>[C.$slots.default?Ge(C.$slots,"default",{key:0}):Fe("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:le(()=>[Ge(C.$slots,"content",{},()=>[C.rawContent?(Z(),ue("span",{key:0,innerHTML:C.content},null,8,["innerHTML"])):(Z(),ue("span",{key:1},ct(C.content),1))]),C.showArrow?(Z(),Qe(m(l2e),{key:0,"arrow-offset":C.arrowOffset},null,8,["arrow-offset"])):Fe("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 tCe=vt(eCe,[["__file","tooltip.vue"]]);const na=pn(tCe),nCe=gt({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:je(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:je([Function,Array]),default:Vr},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:Gi.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...pa(["ariaLabel"])}),rCe={[En]:e=>Gt(e),[Cs]:e=>Gt(e),[so]:e=>Gt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Pn(e)},CY="ElAutocomplete",oCe=xe({name:CY,inheritAttrs:!1}),iCe=xe({...oCe,props:nCe,emits:rCe,setup(e,{expose:t,emit:n}){const r=e,o=YI(),i=mv(),a=Is(),s=lt("autocomplete"),l=te(),u=te(),d=te(),p=te();let v=!1,y=!1;const w=te([]),b=te(-1),k=te(""),C=te(!1),P=te(!1),$=te(!1),T=La(),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},F=$s(async Ae=>{if(P.value)return;const _e=ye=>{$.value=!1,!P.value&&(xt(ye)?(w.value=ye,b.value=r.highlightFirstItem?0:-1):Ai(CY,"autocomplete suggestions must be an array"))};if($.value=!0,xt(r.fetchSuggestions))_e(r.fetchSuggestions);else{const ye=await r.fetchSuggestions(Ae,_e);xt(ye)&&_e(ye)}},r.debounce),G=Ae=>{const _e=!!Ae;if(n(Cs,Ae),n(En,Ae),P.value=!1,C.value||(C.value=_e),!r.triggerOnFocus&&!Ae){P.value=!0,w.value=[];return}F(Ae)},ae=Ae=>{var _e;a.value||(((_e=Ae.target)==null?void 0:_e.tagName)!=="INPUT"||N.value.includes(document.activeElement))&&(C.value=!0)},K=Ae=>{n(so,Ae)},H=Ae=>{y?y=!1:(C.value=!0,n("focus",Ae),r.triggerOnFocus&&!v&&F(String(r.modelValue)))},oe=Ae=>{setTimeout(()=>{var _e;if((_e=d.value)!=null&&_e.isFocusInsideContent()){y=!0;return}C.value&&ee(),n("blur",Ae)})},J=()=>{C.value=!1,n(En,""),n("clear")},z=async()=>{R.value&&b.value>=0&&b.value<w.value.length?Le(w.value[b.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),w.value=[],b.value=-1)},X=Ae=>{R.value&&(Ae.preventDefault(),Ae.stopPropagation(),ee())},ee=()=>{C.value=!1},he=()=>{var Ae;(Ae=l.value)==null||Ae.focus()},fe=()=>{var Ae;(Ae=l.value)==null||Ae.blur()},Le=async Ae=>{n(Cs,Ae[r.valueKey]),n(En,Ae[r.valueKey]),n("select",Ae),w.value=[],b.value=-1},Ie=Ae=>{if(!R.value||$.value)return;if(Ae<0){b.value=-1;return}Ae>=w.value.length&&(Ae=w.value.length-1);const _e=u.value.querySelector(`.${s.be("suggestion","wrap")}`),Ne=_e.querySelectorAll(`.${s.be("suggestion","list")} li`)[Ae],Se=_e.scrollTop,{offsetTop:ce,scrollHeight:be}=Ne;ce+be>Se+_e.clientHeight&&(_e.scrollTop+=be),ce<Se&&(_e.scrollTop-=be),b.value=Ae,l.value.ref.setAttribute("aria-activedescendant",`${T.value}-item-${b.value}`)},ze=NN(p,()=>{R.value&&ee()});return Hr(()=>{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",`${T.value}-item-${b.value}`),v=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:b,activated:C,loading:$,inputRef:l,popperRef:d,suggestions:w,handleSelect:Le,handleKeyEnter:z,focus:he,blur:fe,close:ee,highlight:Ie}),(Ae,_e)=>(Z(),Qe(m(na),{ref_key:"popperRef",ref:d,visible:m(R),placement:Ae.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[m(s).e("popper"),Ae.popperClass],teleported:Ae.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:le(()=>[ve("div",{ref_key:"regionRef",ref:u,class:q([m(s).b("suggestion"),m(s).is("loading",m(B))]),style:Vt({[Ae.fitInputWidth?"width":"minWidth"]:k.value,outline:"none"}),role:"region"},[re(m(Oc),{id:m(T),tag:"ul","wrap-class":m(s).be("suggestion","wrap"),"view-class":m(s).be("suggestion","list"),role:"listbox"},{default:le(()=>[m(B)?(Z(),ue("li",{key:0},[Ge(Ae.$slots,"loading",{},()=>[re(m(jt),{class:q(m(s).is("loading"))},{default:le(()=>[re(m(ff))]),_:1},8,["class"])])])):(Z(!0),ue(Tt,{key:1},_n(w.value,(ye,Ne)=>(Z(),ue("li",{id:`${m(T)}-item-${Ne}`,key:Ne,class:q({highlighted:b.value===Ne}),role:"option","aria-selected":b.value===Ne,onClick:Se=>Le(ye)},[Ge(Ae.$slots,"default",{item:ye},()=>[St(ct(ye[Ae.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:le(()=>[ve("div",{ref_key:"listboxRef",ref:p,class:q([m(s).b(),Ae.$attrs.class]),style:Vt(m(A)),role:"combobox","aria-haspopup":"listbox","aria-expanded":m(R),"aria-owns":m(T)},[re(m(ti),In({ref_key:"inputRef",ref:l},m(o),{clearable:Ae.clearable,disabled:m(a),name:Ae.name,"model-value":Ae.modelValue,"aria-label":Ae.ariaLabel,onInput:G,onChange:K,onFocus:H,onBlur:oe,onClear:J,onKeydown:[Fr(tn(ye=>Ie(b.value-1),["prevent"]),["up"]),Fr(tn(ye=>Ie(b.value+1),["prevent"]),["down"]),Fr(z,["enter"]),Fr(ee,["tab"]),Fr(X,["esc"])],onMousedown:ae}),Dl({_:2},[Ae.$slots.prepend?{name:"prepend",fn:le(()=>[Ge(Ae.$slots,"prepend")])}:void 0,Ae.$slots.append?{name:"append",fn:le(()=>[Ge(Ae.$slots,"append")])}:void 0,Ae.$slots.prefix?{name:"prefix",fn:le(()=>[Ge(Ae.$slots,"prefix")])}:void 0,Ae.$slots.suffix?{name:"suffix",fn:le(()=>[Ge(Ae.$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 aCe=vt(iCe,[["__file","autocomplete.vue"]]);const sCe=pn(aCe),lCe=gt({size:{type:[Number,String],values:Sf,default:"",validator:e=>en(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:zr},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:je(String),default:"cover"}}),uCe={error:e=>e instanceof Event},cCe=xe({name:"ElAvatar"}),fCe=xe({...cCe,props:lCe,emits:uCe,setup(e,{emit:t}){const n=e,r=lt("avatar"),o=te(!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:Fo(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(),ue("span",{class:q(m(i)),style:Vt(m(a))},[(u.src||u.srcSet)&&!o.value?(Z(),ue("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(),Qe(m(jt),{key:1},{default:le(()=>[(Z(),Qe(Dn(u.icon)))]),_:1})):Ge(u.$slots,"default",{key:2})],6))}});var dCe=vt(fCe,[["__file","avatar.vue"]]);const hCe=pn(dCe),pCe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},gCe={click:e=>e instanceof MouseEvent},vCe=(e,t,n)=>{const r=Jr(),o=Jr(),i=te(!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=Wz(a,300,!0);return Mr(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||Ai(n,`target does not exist: ${e.target}`),o.value=r.value),a()}),{visible:i,handleClick:s}},EY="ElBacktop",mCe=xe({name:EY}),yCe=xe({...mCe,props:pCe,emits:gCe,setup(e,{emit:t}){const n=e,r=lt("backtop"),{handleClick:o,visible:i}=vCe(n,t,EY),a=W(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(Z(),Qe($i,{name:`${m(r).namespace.value}-fade-in`},{default:le(()=>[m(i)?(Z(),ue("div",{key:0,style:Vt(m(a)),class:q(m(r).b()),onClick:tn(m(o),["stop"])},[Ge(s.$slots,"default",{},()=>[re(m(jt),{class:q(m(r).e("icon"))},{default:le(()=>[re(m(s1e))]),_:1},8,["class"])])],14,["onClick"])):Fe("v-if",!0)]),_:3},8,["name"]))}});var bCe=vt(yCe,[["__file","backtop.vue"]]);const _Ce=pn(bCe),OCe=gt({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:je([String,Object,Array])},offset:{type:je(Array),default:[0,0]},badgeClass:{type:String}}),wCe=xe({name:"ElBadge"}),SCe=xe({...wCe,props:OCe,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:Fo(-((s=(a=n.offset)==null?void 0:a[0])!=null?s:0)),marginTop:Fo((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:o}),(a,s)=>(Z(),ue("div",{class:q(m(r).b())},[Ge(a.$slots,"default"),re($i,{name:`${m(r).namespace.value}-zoom-in-center`,persisted:""},{default:le(()=>[yn(ve("sup",{class:q([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:ct(m(o))},null,14,["textContent"]),[[pr,!a.hidden&&(m(o)||a.isDot)]])]),_:1},8,["name"])],2))}});var xCe=vt(SCe,[["__file","badge.vue"]]);const TY=pn(xCe),PY=Symbol("breadcrumbKey"),kCe=gt({separator:{type:String,default:"/"},separatorIcon:{type:zr}}),CCe=xe({name:"ElBreadcrumb"}),ECe=xe({...CCe,props:kCe,setup(e){const t=e,{t:n}=or(),r=lt("breadcrumb"),o=te();return Wn(PY,t),vn(()=>{const i=o.value.querySelectorAll(`.${r.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,a)=>(Z(),ue("div",{ref_key:"breadcrumb",ref:o,class:q(m(r).b()),"aria-label":m(n)("el.breadcrumb.label"),role:"navigation"},[Ge(i.$slots,"default")],10,["aria-label"]))}});var TCe=vt(ECe,[["__file","breadcrumb.vue"]]);const PCe=gt({to:{type:je([String,Object]),default:""},replace:Boolean}),$Ce=xe({name:"ElBreadcrumbItem"}),ACe=xe({...$Ce,props:PCe,setup(e){const t=e,n=Cn(),r=Pt(PY,void 0),o=lt("breadcrumb"),i=n.appContext.config.globalProperties.$router,a=te(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var d,p;return Z(),ue("span",{class:q(m(o).e("item"))},[ve("span",{ref_key:"link",ref:a,class:q([m(o).e("inner"),m(o).is("link",!!l.to)]),role:"link",onClick:s},[Ge(l.$slots,"default")],2),(d=m(r))!=null&&d.separatorIcon?(Z(),Qe(m(jt),{key:0,class:q(m(o).e("separator"))},{default:le(()=>[(Z(),Qe(Dn(m(r).separatorIcon)))]),_:1},8,["class"])):(Z(),ue("span",{key:1,class:q(m(o).e("separator")),role:"presentation"},ct((p=m(r))==null?void 0:p.separator),3))],2)}}});var $Y=vt(ACe,[["__file","breadcrumb-item.vue"]]);const MCe=pn(TCe,{BreadcrumbItem:$Y}),RCe=xo($Y),AY=Symbol("buttonGroupContextKey"),NCe=(e,t)=>{Vh({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=Pt(AY,void 0),r=RC("button"),{form:o}=ss(),i=_i(W(()=>n==null?void 0:n.size)),a=Is(),s=te(),l=Qi(),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)===o0){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)}}},mM=["default","primary","success","warning","info","danger","text",""],ICe=["button","submit","reset"],yM=gt({size:Mi,disabled:Boolean,type:{type:String,values:mM,default:""},icon:{type:zr},nativeType:{type:String,values:ICe,default:"button"},loading:Boolean,loadingIcon:{type:zr,default:()=>ff},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:je([String,Object]),default:"button"}}),DCe={click:e=>e instanceof MouseEvent};function ja(e,t){jCe(e)&&(e="100%");var n=LCe(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 vx(e){return Math.min(1,Math.max(0,e))}function jCe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function LCe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function MY(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mx(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Vg(e){return e.length===1?"0"+e:String(e)}function BCe(e,t,n){return{r:ja(e,255)*255,g:ja(t,255)*255,b:ja(n,255)*255}}function E6(e,t,n){e=ja(e,255),t=ja(t,255),n=ja(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 D$(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 VCe(e,t,n){var r,o,i;if(e=ja(e,360),t=ja(t,100),n=ja(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=D$(s,a,e+1/3),o=D$(s,a,e),i=D$(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function T6(e,t,n){e=ja(e,255),t=ja(t,255),n=ja(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 FCe(e,t,n){e=ja(e,360)*6,t=ja(t,100),n=ja(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 P6(e,t,n,r){var o=[Vg(Math.round(e).toString(16)),Vg(Math.round(t).toString(16)),Vg(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 zCe(e,t,n,r,o){var i=[Vg(Math.round(e).toString(16)),Vg(Math.round(t).toString(16)),Vg(Math.round(n).toString(16)),Vg(QCe(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 QCe(e){return Math.round(parseFloat(e)*255).toString(16)}function $6(e){return kl(e)/255}function kl(e){return parseInt(e,16)}function WCe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var bM={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 YCe(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=HCe(e)),typeof e=="object"&&(nd(e.r)&&nd(e.g)&&nd(e.b)?(t=BCe(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):nd(e.h)&&nd(e.s)&&nd(e.v)?(r=mx(e.s),o=mx(e.v),t=FCe(e.h,r,o),a=!0,s="hsv"):nd(e.h)&&nd(e.s)&&nd(e.l)&&(r=mx(e.s),i=mx(e.l),t=VCe(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=MY(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 ZCe="[-\\+]?\\d+%?",UCe="[-\\+]?\\d*\\.\\d+%?",$h="(?:".concat(UCe,")|(?:").concat(ZCe,")"),j$="[\\s|\\(]+(".concat($h,")[,|\\s]+(").concat($h,")[,|\\s]+(").concat($h,")\\s*\\)?"),L$="[\\s|\\(]+(".concat($h,")[,|\\s]+(").concat($h,")[,|\\s]+(").concat($h,")[,|\\s]+(").concat($h,")\\s*\\)?"),oc={CSS_UNIT:new RegExp($h),rgb:new RegExp("rgb"+j$),rgba:new RegExp("rgba"+L$),hsl:new RegExp("hsl"+j$),hsla:new RegExp("hsla"+L$),hsv:new RegExp("hsv"+j$),hsva:new RegExp("hsva"+L$),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 HCe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(bM[e])e=bM[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=oc.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=oc.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=oc.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=oc.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=oc.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=oc.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=oc.hex8.exec(e),n?{r:kl(n[1]),g:kl(n[2]),b:kl(n[3]),a:$6(n[4]),format:t?"name":"hex8"}:(n=oc.hex6.exec(e),n?{r:kl(n[1]),g:kl(n[2]),b:kl(n[3]),format:t?"name":"hex"}:(n=oc.hex4.exec(e),n?{r:kl(n[1]+n[1]),g:kl(n[2]+n[2]),b:kl(n[3]+n[3]),a:$6(n[4]+n[4]),format:t?"name":"hex8"}:(n=oc.hex3.exec(e),n?{r:kl(n[1]+n[1]),g:kl(n[2]+n[2]),b:kl(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function nd(e){return Boolean(oc.CSS_UNIT.exec(String(e)))}var RY=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=WCe(t)),this.originalInput=t;var o=YCe(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=MY(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=T6(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=T6(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=E6(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=E6(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),P6(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),zCe(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(ja(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(ja(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="#"+P6(this.r,this.g,this.b,!1),n=0,r=Object.entries(bM);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=vx(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=vx(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=vx(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=vx(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 bh(e,t=20){return e.mix("#141414",t).toString()}function XCe(e){const t=Is(),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 RY(o),s=e.dark?a.tint(20).toString():bh(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?bh(a,90):a.tint(90).toString(),"text-color":o,"border-color":e.dark?bh(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?bh(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?bh(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?bh(a,80):a.tint(80).toString());else{const l=e.dark?bh(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?bh(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 GCe=xe({name:"ElButton"}),KCe=xe({...GCe,props:yM,emits:DCe,setup(e,{expose:t,emit:n}){const r=e,o=XCe(r),i=lt("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:d,shouldAddSpace:p,handleClick:v}=NCe(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(),Qe(Dn(w.tag),In({ref_key:"_ref",ref:a},m(d),{class:m(y),style:m(o),onClick:m(v)}),{default:le(()=>[w.loading?(Z(),ue(Tt,{key:0},[w.$slots.loading?Ge(w.$slots,"loading",{key:0}):(Z(),Qe(m(jt),{key:1,class:q(m(i).is("loading"))},{default:le(()=>[(Z(),Qe(Dn(w.loadingIcon)))]),_:1},8,["class"]))],64)):w.icon||w.$slots.icon?(Z(),Qe(m(jt),{key:1},{default:le(()=>[w.icon?(Z(),Qe(Dn(w.icon),{key:0})):Ge(w.$slots,"icon",{key:1})]),_:3})):Fe("v-if",!0),w.$slots.default?(Z(),ue("span",{key:2,class:q({[m(i).em("text","expand")]:m(p)})},[Ge(w.$slots,"default")],2)):Fe("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var qCe=vt(KCe,[["__file","button.vue"]]);const JCe={size:yM.size,type:yM.type},eEe=xe({name:"ElButtonGroup"}),tEe=xe({...eEe,props:JCe,setup(e){const t=e;Wn(AY,rr({size:Cr(t,"size"),type:Cr(t,"type")}));const n=lt("button");return(r,o)=>(Z(),ue("div",{class:q(m(n).b("group"))},[Ge(r.$slots,"default")],2))}});var NY=vt(tEe,[["__file","button-group.vue"]]);const ro=pn(qCe,{ButtonGroup:NY}),IY=xo(NY);var Us=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function nEe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var DY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Us,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,P={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 oe=String(ae);return!oe||oe.length>=K?ae:""+Array(K+1-oe.length).join(H)+ae},T={s:$,z:function(ae){var K=-ae.utcOffset(),H=Math.abs(K),oe=Math.floor(H/60),J=H%60;return(K<=0?"+":"-")+$(oe,2,"0")+":"+$(J,2,"0")},m:function ae(K,H){if(K.date()<H.date())return-ae(H,K);var oe=12*(H.year()-K.year())+(H.month()-K.month()),J=K.clone().add(oe,p),z=H-J<0,X=K.clone().add(oe+(z?-1:1),p);return+(-(oe+(H-J)/(z?J-X:X-J))||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]=P;var B="$isDayjsObject",N=function(ae){return ae instanceof F||!(!ae||!ae[B])},I=function ae(K,H,oe){var J;if(!K)return A;if(typeof K=="string"){var z=K.toLowerCase();R[z]&&(J=z),H&&(R[z]=H,J=z);var X=K.split("-");if(!J&&X.length>1)return ae(X[0])}else{var ee=K.name;R[ee]=K,J=ee}return!oe&&J&&(A=J),J||!oe&&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 F(H)},j=T;j.l=I,j.i=N,j.w=function(ae,K){return D(ae,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var F=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(oe){var J=oe.date,z=oe.utc;if(J===null)return new Date(NaN);if(j.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var X=J.match(k);if(X){var ee=X[2]-1||0,he=(X[7]||"0").substring(0,3);return z?new Date(Date.UTC(X[1],ee,X[3]||1,X[4]||0,X[5]||0,X[6]||0,he)):new Date(X[1],ee,X[3]||1,X[4]||0,X[5]||0,X[6]||0,he)}}return new Date(J)}(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 j},K.isValid=function(){return this.$d.toString()!==b},K.isSame=function(H,oe){var J=D(H);return this.startOf(oe)<=J&&J<=this.endOf(oe)},K.isAfter=function(H,oe){return D(H)<this.startOf(oe)},K.isBefore=function(H,oe){return this.endOf(oe)<D(H)},K.$g=function(H,oe,J){return j.u(H)?this[oe]:this.set(J,H)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(H,oe){var J=this,z=!!j.u(oe)||oe,X=j.p(H),ee=function(ye,Ne){var Se=j.w(J.$u?Date.UTC(J.$y,Ne,ye):new Date(J.$y,Ne,ye),J);return z?Se:Se.endOf(u)},he=function(ye,Ne){return j.w(J.toDate()[ye].apply(J.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(Ne)),J)},fe=this.$W,Le=this.$M,Ie=this.$D,ze="set"+(this.$u?"UTC":"");switch(X){case y:return z?ee(1,0):ee(31,11);case p:return z?ee(1,Le):ee(0,Le+1);case d:var Ae=this.$locale().weekStart||0,_e=(fe<Ae?fe+7:fe)-Ae;return ee(z?Ie-_e:Ie+(6-_e),Le);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,oe){var J,z=j.p(H),X="set"+(this.$u?"UTC":""),ee=(J={},J[u]=X+"Date",J[w]=X+"Date",J[p]=X+"Month",J[y]=X+"FullYear",J[l]=X+"Hours",J[s]=X+"Minutes",J[a]=X+"Seconds",J[i]=X+"Milliseconds",J)[z],he=z===u?this.$D+(oe-this.$W):oe;if(z===p||z===y){var fe=this.clone().set(w,1);fe.$d[ee](he),fe.init(),this.$d=fe.set(w,Math.min(this.$D,fe.daysInMonth())).$d}else ee&&this.$d[ee](he);return this.init(),this},K.set=function(H,oe){return this.clone().$set(H,oe)},K.get=function(H){return this[j.p(H)]()},K.add=function(H,oe){var J,z=this;H=Number(H);var X=j.p(oe),ee=function(Le){var Ie=D(z);return j.w(Ie.date(Ie.date()+Math.round(Le*H)),z)};if(X===p)return this.set(p,this.$M+H);if(X===y)return this.set(y,this.$y+H);if(X===u)return ee(1);if(X===d)return ee(7);var he=(J={},J[s]=r,J[l]=o,J[a]=n,J)[X]||1,fe=this.$d.getTime()+H*he;return j.w(fe,this)},K.subtract=function(H,oe){return this.add(-1*H,oe)},K.format=function(H){var oe=this,J=this.$locale();if(!this.isValid())return J.invalidDate||b;var z=H||"YYYY-MM-DDTHH:mm:ssZ",X=j.z(this),ee=this.$H,he=this.$m,fe=this.$M,Le=J.weekdays,Ie=J.months,ze=J.meridiem,Ae=function(Ne,Se,ce,be){return Ne&&(Ne[Se]||Ne(oe,z))||ce[Se].slice(0,be)},_e=function(Ne){return j.s(ee%12||12,Ne,"0")},ye=ze||function(Ne,Se,ce){var be=Ne<12?"AM":"PM";return ce?be.toLowerCase():be};return z.replace(C,function(Ne,Se){return Se||function(ce){switch(ce){case"YY":return String(oe.$y).slice(-2);case"YYYY":return j.s(oe.$y,4,"0");case"M":return fe+1;case"MM":return j.s(fe+1,2,"0");case"MMM":return Ae(J.monthsShort,fe,Ie,3);case"MMMM":return Ae(Ie,fe);case"D":return oe.$D;case"DD":return j.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return Ae(J.weekdaysMin,oe.$W,Le,2);case"ddd":return Ae(J.weekdaysShort,oe.$W,Le,3);case"dddd":return Le[oe.$W];case"H":return String(ee);case"HH":return j.s(ee,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return ye(ee,he,!0);case"A":return ye(ee,he,!1);case"m":return String(he);case"mm":return j.s(he,2,"0");case"s":return String(oe.$s);case"ss":return j.s(oe.$s,2,"0");case"SSS":return j.s(oe.$ms,3,"0");case"Z":return X}return null}(Ne)||X.replace(":","")})},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(H,oe,J){var z,X=this,ee=j.p(oe),he=D(H),fe=(he.utcOffset()-this.utcOffset())*r,Le=this-he,Ie=function(){return j.m(X,he)};switch(ee){case y:z=Ie()/12;break;case p:z=Ie();break;case v:z=Ie()/3;break;case d:z=(Le-fe)/6048e5;break;case u:z=(Le-fe)/864e5;break;case l:z=Le/o;break;case s:z=Le/r;break;case a:z=Le/n;break;default:z=Le}return J?z:j.a(z)},K.daysInMonth=function(){return this.endOf(p).$D},K.$locale=function(){return R[this.$L]},K.locale=function(H,oe){if(!H)return this.$L;var J=this.clone(),z=I(H,oe,!0);return z&&(J.$L=z),J},K.clone=function(){return j.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}(),G=F.prototype;return D.prototype=G,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",u],["$M",p],["$y",y],["$D",w]].forEach(function(ae){G[ae[1]]=function(K){return this.$g(K,ae[0],ae[1])}}),D.extend=function(ae,K){return ae.$i||(ae(K,F,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})})(DY);var un=DY.exports,jY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Us,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),P=60*C[1]+(+C[2]||0);return P===0?0:C[0]==="+"?-P:P}(b)}],p=function(b){var k=s[b];return k&&(k.indexOf?k:k.s.concat(k.f))},v=function(b,k){var C,P=s.meridiem;if(P){for(var $=1;$<=24;$+=1)if(b.indexOf(P($,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 P=1;P<=31;P+=1)k(P).replace(/\[|\]/g,"")===b&&(this.day=P)}],M:[i,u("month")],MM:[o,u("month")],MMM:[a,function(b){var k=p("months"),C=(p("monthsShort")||k.map(function(P){return P.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 P=(b=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,D,j){var F=j&&j.toUpperCase();return D||C[j]||n[j]||C[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,ae,K){return ae||K.slice(1)})})).match(r),$=P.length,T=0;T<$;T+=1){var A=P[T],R=y[A],B=R&&R[0],N=R&&R[1];P[T]=N?{regex:B,parser:N}:A.replace(/^\[|\]$/g,"")}return function(I){for(var D={},j=0,F=0;j<$;j+=1){var G=P[j];if(typeof G=="string")F+=G.length;else{var ae=G.regex,K=G.parser,H=I.slice(F),oe=ae.exec(H)[0];K.call(D,oe),I=I.replace(oe,"")}}return function(J){var z=J.afternoon;if(z!==void 0){var X=J.hours;z?X<12&&(J.hours+=12):X===12&&(J.hours=0),delete J.afternoon}}(D),D}}return function(b,k,C){C.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(l=b.parseTwoDigitYear);var P=k.prototype,$=P.parse;P.parse=function(T){var A=T.date,R=T.utc,B=T.args;this.$u=R;var N=B[1];if(typeof N=="string"){var I=B[2]===!0,D=B[3]===!0,j=I||D,F=B[2];D&&(F=B[2]),s=this.$locale(),!I&&F&&(s=C.Ls[F]),this.$d=function(H,oe,J){try{if(["x","X"].indexOf(oe)>-1)return new Date((oe==="X"?1e3:1)*H);var z=w(oe)(H),X=z.year,ee=z.month,he=z.day,fe=z.hours,Le=z.minutes,Ie=z.seconds,ze=z.milliseconds,Ae=z.zone,_e=new Date,ye=he||(X||ee?1:_e.getDate()),Ne=X||_e.getFullYear(),Se=0;X&&!ee||(Se=ee>0?ee-1:_e.getMonth());var ce=fe||0,be=Le||0,pe=Ie||0,Me=ze||0;return Ae?new Date(Date.UTC(Ne,Se,ye,ce,be,pe,Me+60*Ae.offset*1e3)):J?new Date(Date.UTC(Ne,Se,ye,ce,be,pe,Me)):new Date(Ne,Se,ye,ce,be,pe,Me)}catch{return new Date("")}}(A,N,R),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),j&&A!=this.format(N)&&(this.$d=new Date("")),s={}}else if(N instanceof Array)for(var G=N.length,ae=1;ae<=G;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===G&&(this.$d=new Date(""))}else $.call(this,T)}}})})(jY);var yD=jY.exports;const A6=["hours","minutes","seconds"],_M="HH:mm:ss",Km="YYYY-MM-DD",rEe={date:Km,dates:Km,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Km} ${_M}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Km,datetimerange:`${Km} ${_M}`},B$=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Fh=e=>Array.from(Array.from({length:e}).keys()),LY=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),BY=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),M6=function(e,t){const n=tv(e),r=tv(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},R6=function(e,t){const n=xt(e),r=xt(t);return n&&r?e.length!==t.length?!1:e.every((o,i)=>M6(o,t[i])):!n&&!r?M6(e,t):!1},N6=function(e,t,n){const r=du(t)||t==="x"?un(e).locale(n):un(e,t).locale(n);return r.isValid()?r:void 0},I6=function(e,t,n){return du(t)?e:t==="x"?+e:un(e).locale(n).format(t)},V$=(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},VY=gt({disabledHours:{type:je(Function)},disabledMinutes:{type:je(Function)},disabledSeconds:{type:je(Function)}}),FY=gt({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),bD=gt({id:{type:je([Array,String])},name:{type:je([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:je([String,Object]),default:Op},editable:{type:Boolean,default:!0},prefixIcon:{type:je([String,Object]),default:""},size:Mi,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:je(Object),default:()=>({})},modelValue:{type:je([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:je([Date,Array])},defaultTime:{type:je([Date,Array])},isRange:Boolean,...VY,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:je([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,...v0,...pa(["ariaLabel"])}),oEe=xe({name:"Picker"}),iEe=xe({...oEe,props:bD,emits:["update:modelValue","change","focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,o=mv(),{lang:i}=or(),a=lt("date"),s=lt("input"),l=lt("range"),{form:u,formItem:d}=ss(),p=Pt("ElPopperOptions",{}),{valueOnClear:v}=MC(r,null),y=te(),w=te(),b=te(!1),k=te(!1),C=te(null);let P=!1,$=!1;const T=W(()=>[a.b("editor"),a.bm("editor",r.type),s.e("wrapper"),a.is("disabled",fe.value),a.is("active",b.value),l.b("editor"),Oe?l.bm("editor",Oe.value):"",o.class]),A=W(()=>[s.e("icon"),l.e("close-icon"),ce.value?"":l.e("close-icon--hidden")]);at(b,rt=>{rt?zt(()=>{rt&&(C.value=r.modelValue)}):(ot.value=null,zt(()=>{R(r.modelValue)}))});const R=(rt,Lt)=>{(Lt||!R6(rt,C.value))&&(n("change",rt),r.validateEvent&&(d==null||d.validate("change").catch(wn=>void 0)))},B=rt=>{if(!R6(r.modelValue,rt)){let Lt;xt(rt)?Lt=rt.map(wn=>I6(wn,r.valueFormat,i.value)):rt&&(Lt=I6(rt,r.valueFormat,i.value)),n("update:modelValue",rt&&Lt,i.value)}},N=rt=>{n("keydown",rt)},I=W(()=>{if(w.value){const rt=Je.value?w.value:w.value.$el;return Array.from(rt.querySelectorAll("input"))}return[]}),D=(rt,Lt,wn)=>{const Nt=I.value;!Nt.length||(!wn||wn==="min"?(Nt[0].setSelectionRange(rt,Lt),Nt[0].focus()):wn==="max"&&(Nt[1].setSelectionRange(rt,Lt),Nt[1].focus()))},j=()=>{z(!0,!0),zt(()=>{$=!1})},F=(rt="",Lt=!1)=>{Lt||($=!0),b.value=Lt;let wn;xt(rt)?wn=rt.map(Nt=>Nt.toDate()):wn=rt&&rt.toDate(),ot.value=null,B(wn)},G=()=>{k.value=!0},ae=()=>{n("visible-change",!0)},K=rt=>{(rt==null?void 0:rt.key)===Qt.esc&&z(!0,!0)},H=()=>{k.value=!1,b.value=!1,$=!1,n("visible-change",!1)},oe=()=>{b.value=!0},J=()=>{b.value=!1},z=(rt=!0,Lt=!1)=>{$=Lt;const[wn,Nt]=m(I);let Xt=wn;!rt&&Je.value&&(Xt=Nt),Xt&&Xt.focus()},X=rt=>{r.readonly||fe.value||b.value||$||(b.value=!0,n("focus",rt))};let ee;const he=rt=>{const Lt=async()=>{setTimeout(()=>{var wn;ee===Lt&&(!(((wn=y.value)==null?void 0:wn.isFocusInsideContent())&&!P)&&I.value.filter(Nt=>Nt.contains(document.activeElement)).length===0&&(ft(),b.value=!1,n("blur",rt),r.validateEvent&&(d==null||d.validate("blur").catch(Nt=>void 0))),P=!1)},0)};ee=Lt,Lt()},fe=W(()=>r.disabled||(u==null?void 0:u.disabled)),Le=W(()=>{let rt;if(pe.value?Xe.value.getDefaultValue&&(rt=Xe.value.getDefaultValue()):xt(r.modelValue)?rt=r.modelValue.map(Lt=>N6(Lt,r.valueFormat,i.value)):rt=N6(r.modelValue,r.valueFormat,i.value),Xe.value.getRangeAvailableTime){const Lt=Xe.value.getRangeAvailableTime(rt);os(Lt,rt)||(rt=Lt,B(xt(rt)?rt.map(wn=>wn.toDate()):rt.toDate()))}return xt(rt)&&rt.some(Lt=>!Lt)&&(rt=[]),rt}),Ie=W(()=>{if(!Xe.value.panelReady)return"";const rt=Wt(Le.value);return xt(ot.value)?[ot.value[0]||rt&&rt[0]||"",ot.value[1]||rt&&rt[1]||""]:ot.value!==null?ot.value:!Ae.value&&pe.value||!b.value&&pe.value?"":rt?_e.value||ye.value||Ne.value?rt.join(", "):rt:""}),ze=W(()=>r.type.includes("time")),Ae=W(()=>r.type.startsWith("time")),_e=W(()=>r.type==="dates"),ye=W(()=>r.type==="months"),Ne=W(()=>r.type==="years"),Se=W(()=>r.prefixIcon||(ze.value?OW:o1e)),ce=te(!1),be=rt=>{r.readonly||fe.value||(ce.value&&(rt.stopPropagation(),j(),Xe.value.handleClear?Xe.value.handleClear():B(v.value),R(v.value,!0),ce.value=!1,b.value=!1),n("clear"))},pe=W(()=>{const{modelValue:rt}=r;return!rt||xt(rt)&&!rt.filter(Boolean).length}),Me=async rt=>{var Lt;r.readonly||fe.value||(((Lt=rt.target)==null?void 0:Lt.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(b.value=!0)},Ze=()=>{r.readonly||fe.value||!pe.value&&r.clearable&&(ce.value=!0)},Be=()=>{ce.value=!1},$e=rt=>{var Lt;r.readonly||fe.value||(((Lt=rt.touches[0].target)==null?void 0:Lt.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(b.value=!0)},Je=W(()=>r.type.includes("range")),Oe=_i(),Ye=W(()=>{var rt,Lt;return(Lt=(rt=m(y))==null?void 0:rt.popperRef)==null?void 0:Lt.contentRef}),ut=W(()=>{var rt;return m(Je)?m(w):(rt=m(w))==null?void 0:rt.$el}),qe=NN(ut,rt=>{const Lt=m(Ye),wn=m(ut);Lt&&(rt.target===Lt||rt.composedPath().includes(Lt))||rt.target===wn||rt.composedPath().includes(wn)||(b.value=!1)});Hr(()=>{qe==null||qe()});const ot=te(null),ft=()=>{if(ot.value){const rt=kt(Ie.value);rt&&Ct(rt)&&(B(xt(rt)?rt.map(Lt=>Lt.toDate()):rt.toDate()),ot.value=null)}ot.value===""&&(B(v.value),R(v.value),ot.value=null)},kt=rt=>rt?Xe.value.parseUserInput(rt):null,Wt=rt=>rt?Xe.value.formatToString(rt):null,Ct=rt=>Xe.value.isValidValue(rt),ln=async rt=>{if(r.readonly||fe.value)return;const{code:Lt}=rt;if(N(rt),Lt===Qt.esc){b.value===!0&&(b.value=!1,rt.preventDefault(),rt.stopPropagation());return}if(Lt===Qt.down&&(Xe.value.handleFocusPicker&&(rt.preventDefault(),rt.stopPropagation()),b.value===!1&&(b.value=!0,await zt()),Xe.value.handleFocusPicker)){Xe.value.handleFocusPicker();return}if(Lt===Qt.tab){P=!0;return}if(Lt===Qt.enter||Lt===Qt.numpadEnter){(ot.value===null||ot.value===""||Ct(kt(Ie.value)))&&(ft(),b.value=!1),rt.stopPropagation();return}if(ot.value){rt.stopPropagation();return}Xe.value.handleKeydownInput&&Xe.value.handleKeydownInput(rt)},Ce=rt=>{ot.value=rt,b.value||(b.value=!0)},He=rt=>{const Lt=rt.target;ot.value?ot.value=[Lt.value,ot.value[1]]:ot.value=[Lt.value,null]},me=rt=>{const Lt=rt.target;ot.value?ot.value=[ot.value[0],Lt.value]:ot.value=[null,Lt.value]},Ve=()=>{var rt;const Lt=ot.value,wn=kt(Lt&&Lt[0]),Nt=m(Le);if(wn&&wn.isValid()){ot.value=[Wt(wn),((rt=Ie.value)==null?void 0:rt[1])||null];const Xt=[wn,Nt&&(Nt[1]||null)];Ct(Xt)&&(B(Xt),ot.value=null)}},ke=()=>{var rt;const Lt=m(ot),wn=kt(Lt&&Lt[1]),Nt=m(Le);if(wn&&wn.isValid()){ot.value=[((rt=m(Ie))==null?void 0:rt[0])||null,Wt(wn)];const Xt=[Nt&&Nt[0],wn];Ct(Xt)&&(B(Xt),ot.value=null)}},Xe=te({}),nt=rt=>{Xe.value[rt[0]]=rt[1],Xe.value.panelReady=!0},Ft=rt=>{n("calendar-change",rt)},Vn=(rt,Lt,wn)=>{n("panel-change",rt,Lt,wn)};return Wn("EP_PICKER_BASE",{props:r}),t({focus:z,handleFocusInput:X,handleBlurInput:he,handleOpen:oe,handleClose:J,onPick:F}),(rt,Lt)=>(Z(),Qe(m(na),In({ref_key:"refPopper",ref:y,visible:b.value,effect:"light",pure:"",trigger:"click"},rt.$attrs,{role:"dialog",teleported:"",transition:`${m(a).namespace.value}-zoom-in-top`,"popper-class":[`${m(a).namespace.value}-picker__popper`,rt.popperClass],"popper-options":m(p),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:G,onShow:ae,onHide:H}),{default:le(()=>[m(Je)?(Z(),ue("div",{key:1,ref_key:"inputRef",ref:w,class:q(m(T)),style:Vt(rt.$attrs.style),onClick:X,onMouseenter:Ze,onMouseleave:Be,onTouchstartPassive:$e,onKeydown:ln},[m(Se)?(Z(),Qe(m(jt),{key:0,class:q([m(s).e("icon"),m(l).e("icon")]),onMousedown:tn(Me,["prevent"]),onTouchstartPassive:$e},{default:le(()=>[(Z(),Qe(Dn(m(Se))))]),_:1},8,["class","onMousedown"])):Fe("v-if",!0),ve("input",{id:rt.id&&rt.id[0],autocomplete:"off",name:rt.name&&rt.name[0],placeholder:rt.startPlaceholder,value:m(Ie)&&m(Ie)[0],disabled:m(fe),readonly:!rt.editable||rt.readonly,class:q(m(l).b("input")),onMousedown:Me,onInput:He,onChange:Ve,onFocus:X,onBlur:he},null,42,["id","name","placeholder","value","disabled","readonly"]),Ge(rt.$slots,"range-separator",{},()=>[ve("span",{class:q(m(l).b("separator"))},ct(rt.rangeSeparator),3)]),ve("input",{id:rt.id&&rt.id[1],autocomplete:"off",name:rt.name&&rt.name[1],placeholder:rt.endPlaceholder,value:m(Ie)&&m(Ie)[1],disabled:m(fe),readonly:!rt.editable||rt.readonly,class:q(m(l).b("input")),onMousedown:Me,onFocus:X,onBlur:he,onInput:me,onChange:ke},null,42,["id","name","placeholder","value","disabled","readonly"]),rt.clearIcon?(Z(),Qe(m(jt),{key:1,class:q(m(A)),onClick:be},{default:le(()=>[(Z(),Qe(Dn(rt.clearIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],38)):(Z(),Qe(m(ti),{key:0,id:rt.id,ref_key:"inputRef",ref:w,"container-role":"combobox","model-value":m(Ie),name:rt.name,size:m(Oe),disabled:m(fe),placeholder:rt.placeholder,class:q([m(a).b("editor"),m(a).bm("editor",rt.type),rt.$attrs.class]),style:Vt(rt.$attrs.style),readonly:!rt.editable||rt.readonly||m(_e)||m(ye)||m(Ne)||rt.type==="week","aria-label":rt.ariaLabel,tabindex:rt.tabindex,"validate-event":!1,onInput:Ce,onFocus:X,onBlur:he,onKeydown:ln,onChange:ft,onMousedown:Me,onMouseenter:Ze,onMouseleave:Be,onTouchstartPassive:$e,onClick:tn(()=>{},["stop"])},{prefix:le(()=>[m(Se)?(Z(),Qe(m(jt),{key:0,class:q(m(s).e("icon")),onMousedown:tn(Me,["prevent"]),onTouchstartPassive:$e},{default:le(()=>[(Z(),Qe(Dn(m(Se))))]),_:1},8,["class","onMousedown"])):Fe("v-if",!0)]),suffix:le(()=>[ce.value&&rt.clearIcon?(Z(),Qe(m(jt),{key:0,class:q(`${m(s).e("icon")} clear-icon`),onClick:tn(be,["stop"])},{default:le(()=>[(Z(),Qe(Dn(rt.clearIcon)))]),_:1},8,["class","onClick"])):Fe("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onKeydown","onClick"]))]),content:le(()=>[Ge(rt.$slots,"default",{visible:b.value,actualVisible:k.value,parsedValue:m(Le),format:rt.format,dateFormat:rt.dateFormat,timeFormat:rt.timeFormat,unlinkPanels:rt.unlinkPanels,type:rt.type,defaultValue:rt.defaultValue,onPick:F,onSelectRange:D,onSetPickerOption:nt,onCalendarChange:Ft,onPanelChange:Vn,onKeydown:K,onMousedown:tn(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var zY=vt(iEe,[["__file","picker.vue"]]);const aEe=gt({...FY,datetimeRole:String,parsedValue:{type:je(Object)}}),QY=({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}}},F$=e=>{const t=(r,o)=>r||o,n=r=>r!==!0;return e.map(t).filter(n)},WY=(e,t,n)=>({getHoursList:(a,s)=>V$(24,e&&(()=>e==null?void 0:e(a,s))),getMinutesList:(a,s,l)=>V$(60,t&&(()=>t==null?void 0:t(a,s,l))),getSecondsList:(a,s,l,u)=>V$(60,n&&(()=>n==null?void 0:n(a,s,l,u)))}),YY=(e,t,n)=>{const{getHoursList:r,getMinutesList:o,getSecondsList:i}=WY(e,t,n);return{getAvailableHours:(u,d)=>F$(r(u,d)),getAvailableMinutes:(u,d,p)=>F$(o(u,d,p)),getAvailableSeconds:(u,d,p,v)=>F$(i(u,d,p,v))}},ZY=e=>{const t=te(e.parsedValue);return at(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},wh=new Map;if(nr){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of wh.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function D6(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Nl(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 pd={beforeMount(e,t){wh.has(e)||wh.set(e,[]),wh.get(e).push({documentHandler:D6(e,t),bindingFn:t.value})},updated(e,t){wh.has(e)||wh.set(e,[]);const n=wh.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),o={documentHandler:D6(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){wh.delete(e)}},sEe=100,lEe=600,Zk={beforeMount(e,t){const n=t.value,{interval:r=sEe,delay:o=lEe}=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))})}},OM="_trap-focus-children",Fg=[],j6=e=>{if(Fg.length===0)return;const t=Fg[Fg.length-1][OM];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())}},uEe={beforeMount(e){e[OM]=bL(e),Fg.push(e),Fg.length<=1&&document.addEventListener("keydown",j6)},updated(e){zt(()=>{e[OM]=bL(e)})},unmounted(){Fg.shift(),Fg.length===0&&document.removeEventListener("keydown",j6)}};var L6=!1,Mg,wM,SM,ok,ik,UY,ak,xM,kM,CM,HY,EM,TM,XY,GY;function Qs(){if(!L6){L6=!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(EM=/\b(iPhone|iP[ao]d)/.exec(e),TM=/\b(iP[ao]d)/.exec(e),CM=/Android/i.exec(e),XY=/FBAN\/\w+;/i.exec(e),GY=/Mobile/i.exec(e),HY=!!/Win64/.exec(e),t){Mg=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Mg&&document&&document.documentMode&&(Mg=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);UY=r?parseFloat(r[1])+4:Mg,wM=t[2]?parseFloat(t[2]):NaN,SM=t[3]?parseFloat(t[3]):NaN,ok=t[4]?parseFloat(t[4]):NaN,ok?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),ik=t&&t[1]?parseFloat(t[1]):NaN):ik=NaN}else Mg=wM=SM=ik=ok=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);ak=o?parseFloat(o[1].replace("_",".")):!0}else ak=!1;xM=!!n[2],kM=!!n[3]}else ak=xM=kM=!1}}var PM={ie:function(){return Qs()||Mg},ieCompatibilityMode:function(){return Qs()||UY>Mg},ie64:function(){return PM.ie()&&HY},firefox:function(){return Qs()||wM},opera:function(){return Qs()||SM},webkit:function(){return Qs()||ok},safari:function(){return PM.webkit()},chrome:function(){return Qs()||ik},windows:function(){return Qs()||xM},osx:function(){return Qs()||ak},linux:function(){return Qs()||kM},iphone:function(){return Qs()||EM},mobile:function(){return Qs()||EM||TM||CM||GY},nativeApp:function(){return Qs()||XY},android:function(){return Qs()||CM},ipad:function(){return Qs()||TM}},cEe=PM,yx=!!(typeof window<"u"&&window.document&&window.document.createElement),fEe={canUseDOM:yx,canUseWorkers:typeof Worker<"u",canUseEventListeners:yx&&!!(window.addEventListener||window.attachEvent),canUseViewport:yx&&!!window.screen,isInWorker:!yx},KY=fEe,qY;KY.canUseDOM&&(qY=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function dEe(e,t){if(!KY.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 hEe=dEe,B6=10,V6=40,F6=800;function JY(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*B6,o=n*B6,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(e.deltaMode==1?(r*=V6,o*=V6):(r*=F6,o*=F6)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}JY.getEventType=function(){return cEe.firefox()?"DOMMouseScroll":hEe("wheel")?"wheel":"mousewheel"};var pEe=JY;/**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */const gEe=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=pEe(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},vEe={beforeMount(e,t){gEe(e,t.value)}},mEe=gt({role:{type:String,required:!0},spinnerDate:{type:je(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:je(String),default:""},...VY}),yEe=xe({__name:"basic-time-spinner",props:mEe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=lt("time"),{getHoursList:o,getMinutesList:i,getSecondsList:a}=WY(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=te(),u=te(),d=te(),p=te(),v={hours:u,minutes:d,seconds:p},y=W(()=>n.showSeconds?A6:A6.slice(0,2)),w=W(()=>{const{spinnerDate:z}=n,X=z.hour(),ee=z.minute(),he=z.second();return{hours:X,minutes:ee,seconds:he}}),b=W(()=>{const{hours:z,minutes:X}=m(w);return{hours:o(n.role),minutes:i(z,n.role),seconds:a(z,X,n.role)}}),k=W(()=>{const{hours:z,minutes:X,seconds:ee}=m(w);return{hours:B$(z,23),minutes:B$(X,59),seconds:B$(ee,59)}}),C=$s(z=>{s=!1,T(z)},200),P=z=>{if(!!!n.amPmMode)return"";const ee=n.amPmMode==="A";let he=z<12?" am":" pm";return ee&&(he=he.toUpperCase()),he},$=z=>{let X;switch(z){case"hours":X=[0,2];break;case"minutes":X=[3,5];break;case"seconds":X=[6,8];break}const[ee,he]=X;t("select-range",ee,he),l.value=z},T=z=>{B(z,m(w)[z])},A=()=>{T("hours"),T("minutes"),T("seconds")},R=z=>z.querySelector(`.${r.namespace.value}-scrollbar__wrap`),B=(z,X)=>{if(n.arrowControl)return;const ee=m(v[z]);ee&&ee.$el&&(R(ee.$el).scrollTop=Math.max(0,X*N(z)))},N=z=>{const X=m(v[z]),ee=X==null?void 0:X.$el.querySelector("li");return ee&&Number.parseFloat(Th(ee,"height"))||0},I=()=>{j(1)},D=()=>{j(-1)},j=z=>{l.value||$("hours");const X=l.value,ee=m(w)[X],he=l.value==="hours"?24:60,fe=F(X,ee,z,he);G(X,fe),B(X,fe),zt(()=>$(X))},F=(z,X,ee,he)=>{let fe=(X+ee+he)%he;const Le=m(b)[z];for(;Le[fe]&&fe!==X;)fe=(fe+ee+he)%he;return fe},G=(z,X)=>{if(m(b)[z][X])return;const{hours:fe,minutes:Le,seconds:Ie}=m(w);let ze;switch(z){case"hours":ze=n.spinnerDate.hour(X).minute(Le).second(Ie);break;case"minutes":ze=n.spinnerDate.hour(fe).minute(X).second(Ie);break;case"seconds":ze=n.spinnerDate.hour(fe).minute(Le).second(X);break}t("change",ze)},ae=(z,{value:X,disabled:ee})=>{ee||(G(z,X),$(z),B(z,X))},K=z=>{s=!0,C(z);const X=Math.min(Math.round((R(m(v[z]).$el).scrollTop-(H(z)*.5-10)/N(z)+3)/N(z)),z==="hours"?23:59);G(z,X)},H=z=>m(v[z]).$el.offsetHeight,oe=()=>{const z=X=>{const ee=m(v[X]);ee&&ee.$el&&(R(ee.$el).onscroll=()=>{K(X)})};z("hours"),z("minutes"),z("seconds")};vn(()=>{zt(()=>{!n.arrowControl&&oe(),A(),n.role==="start"&&$("hours")})});const J=(z,X)=>{v[X].value=z};return t("set-option",[`${n.role}_scrollDown`,j]),t("set-option",[`${n.role}_emitSelectRange`,$]),at(()=>n.spinnerDate,()=>{s||A()}),(z,X)=>(Z(),ue("div",{class:q([m(r).b("spinner"),{"has-seconds":z.showSeconds}])},[z.arrowControl?Fe("v-if",!0):(Z(!0),ue(Tt,{key:0},_n(m(y),ee=>(Z(),Qe(m(Oc),{key:ee,ref_for:!0,ref:he=>J(he,ee),class:q(m(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":m(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:he=>$(ee),onMousemove:he=>T(ee)},{default:le(()=>[(Z(!0),ue(Tt,null,_n(m(b)[ee],(he,fe)=>(Z(),ue("li",{key:fe,class:q([m(r).be("spinner","item"),m(r).is("active",fe===m(w)[ee]),m(r).is("disabled",he)]),onClick:Le=>ae(ee,{value:fe,disabled:he})},[ee==="hours"?(Z(),ue(Tt,{key:0},[St(ct(("0"+(z.amPmMode?fe%12||12:fe)).slice(-2))+ct(P(fe)),1)],64)):(Z(),ue(Tt,{key:1},[St(ct(("0"+fe).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),z.arrowControl?(Z(!0),ue(Tt,{key:1},_n(m(y),ee=>(Z(),ue("div",{key:ee,class:q([m(r).be("spinner","wrapper"),m(r).is("arrow")]),onMouseenter:he=>$(ee)},[yn((Z(),Qe(m(jt),{class:q(["arrow-up",m(r).be("spinner","arrow")])},{default:le(()=>[re(m(jI))]),_:1},8,["class"])),[[m(Zk),D]]),yn((Z(),Qe(m(jt),{class:q(["arrow-down",m(r).be("spinner","arrow")])},{default:le(()=>[re(m(Ed))]),_:1},8,["class"])),[[m(Zk),I]]),ve("ul",{class:q(m(r).be("spinner","list"))},[(Z(!0),ue(Tt,null,_n(m(k)[ee],(he,fe)=>(Z(),ue("li",{key:fe,class:q([m(r).be("spinner","item"),m(r).is("active",he===m(w)[ee]),m(r).is("disabled",m(b)[ee][he])])},[typeof he=="number"?(Z(),ue(Tt,{key:0},[ee==="hours"?(Z(),ue(Tt,{key:0},[St(ct(("0"+(z.amPmMode?he%12||12:he)).slice(-2))+ct(P(he)),1)],64)):(Z(),ue(Tt,{key:1},[St(ct(("0"+he).slice(-2)),1)],64))],64)):Fe("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):Fe("v-if",!0)],2))}});var $M=vt(yEe,[["__file","basic-time-spinner.vue"]]);const bEe=xe({__name:"panel-time-pick",props:aEe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=Pt("EP_PICKER_BASE"),{arrowControl:o,disabledHours:i,disabledMinutes:a,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:p}=YY(i,a,s),v=lt("time"),{t:y,lang:w}=or(),b=te([0,2]),k=ZY(n),C=W(()=>Vo(n.actualVisible)?`${v.namespace.value}-zoom-in-top`:""),P=W(()=>n.format.includes("ss")),$=W(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=J=>{const z=un(J).locale(w.value),X=ae(z);return z.isSame(X)},A=()=>{t("pick",k.value,!1)},R=(J=!1,z=!1)=>{z||t("pick",n.parsedValue,J)},B=J=>{if(!n.visible)return;const z=ae(J).millisecond(0);t("pick",z,!0)},N=(J,z)=>{t("select-range",J,z),b.value=[J,z]},I=J=>{const z=[0,3].concat(P.value?[6]:[]),X=["hours","minutes"].concat(P.value?["seconds"]:[]),he=(z.indexOf(b.value[0])+J+z.length)%z.length;j.start_emitSelectRange(X[he])},D=J=>{const z=J.code,{left:X,right:ee,up:he,down:fe}=Qt;if([X,ee].includes(z)){I(z===X?-1:1),J.preventDefault();return}if([he,fe].includes(z)){const Le=z===he?-1:1;j.start_scrollDown(Le),J.preventDefault();return}},{timePickerOptions:j,onSetOption:F,getAvailableTime:G}=QY({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:p}),ae=J=>G(J,n.datetimeRole||"",!0),K=J=>J?un(J,n.format).locale(w.value):null,H=J=>J?J.format(n.format):null,oe=()=>un(l).locale(w.value);return t("set-picker-option",["isValidValue",T]),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",oe]),(J,z)=>(Z(),Qe($i,{name:m(C)},{default:le(()=>[J.actualVisible||J.visible?(Z(),ue("div",{key:0,class:q(m(v).b("panel"))},[ve("div",{class:q([m(v).be("panel","content"),{"has-seconds":m(P)}])},[re($M,{ref:"spinner",role:J.datetimeRole||"start","arrow-control":m(o),"show-seconds":m(P),"am-pm-mode":m($),"spinner-date":J.parsedValue,"disabled-hours":m(i),"disabled-minutes":m(a),"disabled-seconds":m(s),onChange:B,onSetOption:m(F),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:q(m(v).be("panel","footer"))},[ve("button",{type:"button",class:q([m(v).be("panel","btn"),"cancel"]),onClick:A},ct(m(y)("el.datepicker.cancel")),3),ve("button",{type:"button",class:q([m(v).be("panel","btn"),"confirm"]),onClick:X=>R()},ct(m(y)("el.datepicker.confirm")),11,["onClick"])],2)],2)):Fe("v-if",!0)]),_:1},8,["name"]))}});var Uk=vt(bEe,[["__file","panel-time-pick.vue"]]);const _Ee=gt({...FY,parsedValue:{type:je(Array)}}),OEe=xe({__name:"panel-time-range",props:_Ee,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(Se,ce)=>{const be=[];for(let pe=Se;pe<=ce;pe++)be.push(pe);return be},{t:o,lang:i}=or(),a=lt("time"),s=lt("picker"),l=Pt("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),T.value?"has-seconds":""]),b=W(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),T.value?"has-seconds":""]),k=W(()=>n.parsedValue[0]),C=W(()=>n.parsedValue[1]),P=ZY(n),$=()=>{t("pick",P.value,!1)},T=W(()=>n.format.includes("ss")),A=W(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),R=(Se=!1)=>{t("pick",[k.value,C.value],Se)},B=Se=>{D(Se.millisecond(0),C.value)},N=Se=>{D(k.value,Se.millisecond(0))},I=Se=>{const ce=Se.map(pe=>un(pe).locale(i.value)),be=ee(ce);return ce[0].isSame(be[0])&&ce[1].isSame(be[1])},D=(Se,ce)=>{t("pick",[Se,ce],!0)},j=W(()=>k.value>C.value),F=te([0,2]),G=(Se,ce)=>{t("select-range",Se,ce,"min"),F.value=[Se,ce]},ae=W(()=>T.value?11:8),K=(Se,ce)=>{t("select-range",Se,ce,"max");const be=m(ae);F.value=[Se+be,ce+be]},H=Se=>{const ce=T.value?[0,3,6,11,14,17]:[0,3,8,11],be=["hours","minutes"].concat(T.value?["seconds"]:[]),Me=(ce.indexOf(F.value[0])+Se+ce.length)%ce.length,Ze=ce.length/2;Me<Ze?Ie.start_emitSelectRange(be[Me]):Ie.end_emitSelectRange(be[Me-Ze])},oe=Se=>{const ce=Se.code,{left:be,right:pe,up:Me,down:Ze}=Qt;if([be,pe].includes(ce)){H(ce===be?-1:1),Se.preventDefault();return}if([Me,Ze].includes(ce)){const Be=ce===Me?-1:1,$e=F.value[0]<ae.value?"start":"end";Ie[`${$e}_scrollDown`](Be),Se.preventDefault();return}},J=(Se,ce)=>{const be=d?d(Se):[],pe=Se==="start",Ze=(ce||(pe?C.value:k.value)).hour(),Be=pe?r(Ze+1,23):r(0,Ze-1);return ek(be,Be)},z=(Se,ce,be)=>{const pe=p?p(Se,ce):[],Me=ce==="start",Ze=be||(Me?C.value:k.value),Be=Ze.hour();if(Se!==Be)return pe;const $e=Ze.minute(),Je=Me?r($e+1,59):r(0,$e-1);return ek(pe,Je)},X=(Se,ce,be,pe)=>{const Me=v?v(Se,ce,be):[],Ze=be==="start",Be=pe||(Ze?C.value:k.value),$e=Be.hour(),Je=Be.minute();if(Se!==$e||ce!==Je)return Me;const Oe=Be.second(),Ye=Ze?r(Oe+1,59):r(0,Oe-1);return ek(Me,Ye)},ee=([Se,ce])=>[ze(Se,"start",!0,ce),ze(ce,"end",!1,Se)],{getAvailableHours:he,getAvailableMinutes:fe,getAvailableSeconds:Le}=YY(J,z,X),{timePickerOptions:Ie,getAvailableTime:ze,onSetOption:Ae}=QY({getAvailableHours:he,getAvailableMinutes:fe,getAvailableSeconds:Le}),_e=Se=>Se?xt(Se)?Se.map(ce=>un(ce,n.format).locale(i.value)):un(Se,n.format).locale(i.value):null,ye=Se=>Se?xt(Se)?Se.map(ce=>ce.format(n.format)):Se.format(n.format):null,Ne=()=>{if(xt(y))return y.map(ce=>un(ce).locale(i.value));const Se=un(y).locale(i.value);return[Se,Se.add(60,"m")]};return t("set-picker-option",["formatToString",ye]),t("set-picker-option",["parseUserInput",_e]),t("set-picker-option",["isValidValue",I]),t("set-picker-option",["handleKeydownInput",oe]),t("set-picker-option",["getDefaultValue",Ne]),t("set-picker-option",["getRangeAvailableTime",ee]),(Se,ce)=>Se.actualVisible?(Z(),ue("div",{key:0,class:q([m(a).b("range-picker"),m(s).b("panel")])},[ve("div",{class:q(m(a).be("range-picker","content"))},[ve("div",{class:q(m(a).be("range-picker","cell"))},[ve("div",{class:q(m(a).be("range-picker","header"))},ct(m(o)("el.datepicker.startTime")),3),ve("div",{class:q(m(w))},[re($M,{ref:"minSpinner",role:"start","show-seconds":m(T),"am-pm-mode":m(A),"arrow-control":m(u),"spinner-date":m(k),"disabled-hours":J,"disabled-minutes":z,"disabled-seconds":X,onChange:B,onSetOption:m(Ae),onSelectRange:G},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),ve("div",{class:q(m(a).be("range-picker","cell"))},[ve("div",{class:q(m(a).be("range-picker","header"))},ct(m(o)("el.datepicker.endTime")),3),ve("div",{class:q(m(b))},[re($M,{ref:"maxSpinner",role:"end","show-seconds":m(T),"am-pm-mode":m(A),"arrow-control":m(u),"spinner-date":m(C),"disabled-hours":J,"disabled-minutes":z,"disabled-seconds":X,onChange:N,onSetOption:m(Ae),onSelectRange:K},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),ve("div",{class:q(m(a).be("panel","footer"))},[ve("button",{type:"button",class:q([m(a).be("panel","btn"),"cancel"]),onClick:be=>$()},ct(m(o)("el.datepicker.cancel")),11,["onClick"]),ve("button",{type:"button",class:q([m(a).be("panel","btn"),"confirm"]),disabled:m(j),onClick:be=>R()},ct(m(o)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):Fe("v-if",!0)}});var wEe=vt(OEe,[["__file","panel-time-range.vue"]]);un.extend(yD);var SEe=xe({name:"ElTimePicker",install:null,props:{...bD,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=te(),[r,o]=e.isRange?["timerange",wEe]:["time",Uk],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:_M;return re(zY,In(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>re(o,l,null)})}}});const xEe=pn(SEe),kEe=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Fh(t).map((r,o)=>n-(t-o-1))},CEe=e=>{const t=e.daysInMonth();return Fh(t).map((n,r)=>r+1)},EEe=e=>Fh(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),TEe=gt({selectedDay:{type:je(Object)},range:{type:je(Array)},date:{type:je(Object),required:!0},hideHeader:{type:Boolean}}),PEe={pick:e=>Pn(e)};var eZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Us,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]),P=a(k[y]),$=C||P.map(function(A){return A.slice(0,w)});if(!b)return $;var T=k.weekStart;return $.map(function(A,R){return $[(R+(T||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)}}})})(eZ);var tZ=eZ.exports;const $Ee=(e,t)=>{un.extend(tZ);const n=un.localeData().firstDayOfWeek(),{t:r,lang:o}=or(),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=Fh(w.date()-y.date()+1).map(P=>({text:y.date()+P,type:"current"}));let k=b.length%7;k=k===0?0:7-k;const C=Fh(k).map((P,$)=>({text:$+1,type:"next"}));v=b.concat(C)}else{const y=e.date.startOf("month").day(),w=kEe(e.date,(y-n+7)%7).map(P=>({text:P,type:"prev"})),b=CEe(e.date).map(P=>({text:P,type:"current"}));v=[...w,...b];const k=7-(v.length%7||7),C=Fh(k).map((P,$)=>({text:$+1,type:"next"}));v=v.concat(C)}return EEe(v)}),l=W(()=>{const v=n;return v===0?M$.map(y=>r(`el.datepicker.weeks.${y}`)):M$.slice(v).concat(M$.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()}}}},AEe=xe({name:"DateTable"}),MEe=xe({...AEe,props:TEe,emits:PEe,setup(e,{expose:t,emit:n}){const r=e,{isInRange:o,now:i,rows:a,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:d}=$Ee(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(),ue("table",{class:q([m(p).b(),m(p).is("range",m(o))]),cellspacing:"0",cellpadding:"0"},[w.hideHeader?Fe("v-if",!0):(Z(),ue("thead",{key:0},[(Z(!0),ue(Tt,null,_n(m(s),k=>(Z(),ue("th",{key:k},ct(k),1))),128))])),ve("tbody",null,[(Z(!0),ue(Tt,null,_n(m(a),(k,C)=>(Z(),ue("tr",{key:C,class:q({[m(p).e("row")]:!0,[m(p).em("row","hide-border")]:C===0&&w.hideHeader})},[(Z(!0),ue(Tt,null,_n(k,(P,$)=>(Z(),ue("td",{key:$,class:q(y(P)),onClick:T=>m(u)(P)},[ve("div",{class:q(m(v).b())},[Ge(w.$slots,"date-cell",{data:m(d)(P)},()=>[ve("span",null,ct(P.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var z6=vt(MEe,[["__file","date-table.vue"]]);const REe=(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]]},NEe=(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]]},IEe=(e,t,n)=>{const{lang:r}=or(),o=te(),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(Cs,C),t(En,C)}}),s=W(()=>{if(!e.range)return[];const k=e.range.map($=>un($).locale(r.value)),[C,P]=k;return C.isAfter(P)?[]:C.isSame(P,"month")?y(C,P):C.add(1,"month").month()!==P.month()?[]:y(C,P)}),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 P=k.startOf("week"),$=C.endOf("week"),T=P.get("month"),A=$.get("month");return T===A?[[P,$]]:(T+1)%12===A?REe(P,$):T+2===A||(T+1)%11===A?NEe(P,$):[]},w=k=>{a.value=k};return{calculateValidatedDateRange:y,date:l,realSelectedDay:a,pickDay:w,selectDate:k=>{const P={"prev-month":u.value,"next-month":d.value,"prev-year":p.value,"next-year":v.value,today:i}[k];P.isSame(l.value,"day")||w(P)},validatedRange:s}},DEe=e=>xt(e)&&e.length===2&&e.every(t=>tv(t)),jEe=gt({modelValue:{type:Date},range:{type:je(Array),validator:DEe}}),LEe={[En]:e=>tv(e),[Cs]:e=>tv(e)},BEe="ElCalendar",VEe=xe({name:BEe}),FEe=xe({...VEe,props:jEe,emits:LEe,setup(e,{expose:t,emit:n}){const r=e,o=lt("calendar"),{calculateValidatedDateRange:i,date:a,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:d}=IEe(r,n),{t:p}=or(),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(),ue("div",{class:q(m(o).b())},[ve("div",{class:q(m(o).e("header"))},[Ge(y.$slots,"header",{date:m(v)},()=>[ve("div",{class:q(m(o).e("title"))},ct(m(v)),3),m(d).length===0?(Z(),ue("div",{key:0,class:q(m(o).e("button-group"))},[re(m(IY),null,{default:le(()=>[re(m(ro),{size:"small",onClick:b=>m(u)("prev-month")},{default:le(()=>[St(ct(m(p)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),re(m(ro),{size:"small",onClick:b=>m(u)("today")},{default:le(()=>[St(ct(m(p)("el.datepicker.today")),1)]),_:1},8,["onClick"]),re(m(ro),{size:"small",onClick:b=>m(u)("next-month")},{default:le(()=>[St(ct(m(p)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):Fe("v-if",!0)])],2),m(d).length===0?(Z(),ue("div",{key:0,class:q(m(o).e("body"))},[re(z6,{date:m(a),"selected-day":m(l),onPick:m(s)},Dl({_:2},[y.$slots["date-cell"]?{name:"date-cell",fn:le(b=>[Ge(y.$slots,"date-cell",ac(Zh(b)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(Z(),ue("div",{key:1,class:q(m(o).e("body"))},[(Z(!0),ue(Tt,null,_n(m(d),(b,k)=>(Z(),Qe(z6,{key:k,date:b[0],"selected-day":m(l),range:b,"hide-header":k!==0,onPick:m(s)},Dl({_:2},[y.$slots["date-cell"]?{name:"date-cell",fn:le(C=>[Ge(y.$slots,"date-cell",ac(Zh(C)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var zEe=vt(FEe,[["__file","calendar.vue"]]);const QEe=pn(zEe),WEe=gt({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:je([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),YEe=xe({name:"ElCard"}),ZEe=xe({...YEe,props:WEe,setup(e){const t=lt("card");return(n,r)=>(Z(),ue("div",{class:q([m(t).b(),m(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(Z(),ue("div",{key:0,class:q(m(t).e("header"))},[Ge(n.$slots,"header",{},()=>[St(ct(n.header),1)])],2)):Fe("v-if",!0),ve("div",{class:q([m(t).e("body"),n.bodyClass]),style:Vt(n.bodyStyle)},[Ge(n.$slots,"default")],6),n.$slots.footer||n.footer?(Z(),ue("div",{key:1,class:q(m(t).e("footer"))},[Ge(n.$slots,"footer",{},()=>[St(ct(n.footer),1)])],2)):Fe("v-if",!0)],2))}});var UEe=vt(ZEe,[["__file","card.vue"]]);const HEe=pn(UEe),XEe=gt({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}),GEe={change:(e,t)=>[e,t].every(en)},nZ=Symbol("carouselContextKey"),Q6=300,KEe=(e,t,n)=>{const{children:r,addChild:o,removeChild:i}=cD(Cn(),"ElCarouselItem"),a=Qi(),s=te(-1),l=te(null),u=te(!1),d=te(),p=te(0),v=te(!0),y=te(!0),w=te(!1),b=W(()=>e.arrow!=="never"&&!m(P)),k=W(()=>r.value.some(ze=>ze.props.label.toString().length>0)),C=W(()=>e.type==="card"),P=W(()=>e.direction==="vertical"),$=W(()=>e.height!=="auto"?{height:e.height}:{height:`${p.value}px`,overflow:"hidden"}),T=Lh(ze=>{D(ze)},Q6,{trailing:!0}),A=Lh(ze=>{z(ze)},Q6),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 ye=r.value.filter(Ne=>Ne.props.name===ze);ye.length>0&&(ze=r.value.indexOf(ye[0]))}if(ze=Number(ze),Number.isNaN(ze)||ze!==Math.floor(ze))return;const Ae=r.value.length,_e=s.value;ze<0?s.value=e.loop?Ae-1:0:ze>=Ae?s.value=e.loop?0:Ae-1:s.value=ze,_e===s.value&&j(_e),he()}function j(ze){r.value.forEach((Ae,_e)=>{Ae.translateItem(_e,s.value,ze)})}function F(ze,Ae){var _e,ye,Ne,Se;const ce=m(r),be=ce.length;if(be===0||!ze.states.inStage)return!1;const pe=Ae+1,Me=Ae-1,Ze=be-1,Be=ce[Ze].states.active,$e=ce[0].states.active,Je=(ye=(_e=ce[pe])==null?void 0:_e.states)==null?void 0:ye.active,Oe=(Se=(Ne=ce[Me])==null?void 0:Ne.states)==null?void 0:Se.active;return Ae===Ze&&$e||Je?"left":Ae===0&&Be||Oe?"right":!1}function G(){u.value=!0,e.pauseOnHover&&B()}function ae(){u.value=!1,N()}function K(){w.value=!1}function H(ze){m(P)||r.value.forEach((Ae,_e)=>{ze===F(Ae,_e)&&(Ae.states.hover=!0)})}function oe(){m(P)||r.value.forEach(ze=>{ze.states.hover=!1})}function J(ze){ze!==s.value&&(y.value||(w.value=!0)),s.value=ze}function z(ze){e.trigger==="hover"&&ze!==s.value&&(s.value=ze,y.value||(w.value=!0))}function X(){D(s.value-1)}function ee(){D(s.value+1)}function he(){B(),e.pauseOnHover||N()}function fe(ze){e.height==="auto"&&(p.value=ze)}function Le(){var ze;const Ae=(ze=a.default)==null?void 0:ze.call(a);if(!Ae)return null;const _e=Bh(Ae),ye="ElCarouselItem",Ne=_e.filter(Se=>_o(Se)&&Se.type.name===ye);return(Ne==null?void 0:Ne.length)===2&&e.loop&&!C.value?(v.value=!0,Ne):(v.value=!1,null)}at(()=>s.value,(ze,Ae)=>{j(Ae),v.value&&(ze=ze%2,Ae=Ae%2),Ae>-1&&t("change",ze,Ae)}),at(()=>e.autoplay,ze=>{ze?N():B()}),at(()=>e.loop,()=>{D(s.value)}),at(()=>e.interval,()=>{he()});const Ie=Jr();return vn(()=>{at(()=>r.value,()=>{r.value.length>0&&D(e.initialIndex)},{immediate:!0}),Ie.value=Oo(d.value,()=>{j()}),N()}),Hr(()=>{B(),d.value&&Ie.value&&Ie.value.stop()}),Wn(nZ,{root:d,isCardType:C,isVertical:P,items:r,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:i,setActiveItem:D,setContainerHeight:fe}),{root:d,activeIndex:s,arrowDisplay:b,hasLabel:k,hover:u,isCardType:C,isTransitioning:w,items:r,isVertical:P,containerStyle:$,isItemsTwoLength:v,handleButtonEnter:H,handleTransitionEnd:K,handleButtonLeave:oe,handleIndicatorClick:J,handleMouseEnter:G,handleMouseLeave:ae,setActiveItem:D,prev:X,next:ee,PlaceholderItem:Le,isTwoLengthShow:R,throttledArrowClick:T,throttledIndicatorHover:A}},qEe="ElCarousel",JEe=xe({name:qEe}),eTe=xe({...JEe,props:XEe,emits:GEe,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:P,handleTransitionEnd:$,setActiveItem:T,prev:A,next:R,PlaceholderItem:B,isTwoLengthShow:N,throttledArrowClick:I,throttledIndicatorHover:D}=KEe(r,n),j=lt("carousel"),{t:F}=or(),G=W(()=>{const H=[j.b(),j.m(r.direction)];return m(u)&&H.push(j.m("card")),H}),ae=W(()=>{const H=[j.e("container")];return r.motionBlur&&m(b)&&H.push(m(p)?`${j.namespace.value}-transitioning-vertical`:`${j.namespace.value}-transitioning`),H}),K=W(()=>{const H=[j.e("indicators"),j.em("indicators",r.direction)];return m(s)&&H.push(j.em("indicators","labels")),r.indicatorPosition==="outside"&&H.push(j.em("indicators","outside")),m(p)&&H.push(j.em("indicators","right")),H});return t({activeIndex:i,setActiveItem:T,prev:A,next:R}),(H,oe)=>(Z(),ue("div",{ref_key:"root",ref:o,class:q(m(G)),onMouseenter:tn(m(C),["stop"]),onMouseleave:tn(m(P),["stop"])},[m(a)?(Z(),Qe($i,{key:0,name:"carousel-arrow-left",persisted:""},{default:le(()=>[yn(ve("button",{type:"button",class:q([m(j).e("arrow"),m(j).em("arrow","left")]),"aria-label":m(F)("el.carousel.leftArrow"),onMouseenter:J=>m(y)("left"),onMouseleave:m(w),onClick:tn(J=>m(I)(m(i)-1),["stop"])},[re(m(jt),null,{default:le(()=>[re(m(qh))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[pr,(H.arrow==="always"||m(l))&&(r.loop||m(i)>0)]])]),_:1})):Fe("v-if",!0),m(a)?(Z(),Qe($i,{key:1,name:"carousel-arrow-right",persisted:""},{default:le(()=>[yn(ve("button",{type:"button",class:q([m(j).e("arrow"),m(j).em("arrow","right")]),"aria-label":m(F)("el.carousel.rightArrow"),onMouseenter:J=>m(y)("right"),onMouseleave:m(w),onClick:tn(J=>m(I)(m(i)+1),["stop"])},[re(m(jt),null,{default:le(()=>[re(m(xs))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[pr,(H.arrow==="always"||m(l))&&(r.loop||m(i)<m(d).length-1)]])]),_:1})):Fe("v-if",!0),ve("div",{class:q(m(ae)),style:Vt(m(v)),onTransitionend:m($)},[re(m(B)),Ge(H.$slots,"default")],46,["onTransitionend"]),H.indicatorPosition!=="none"?(Z(),ue("ul",{key:2,class:q(m(K))},[(Z(!0),ue(Tt,null,_n(m(d),(J,z)=>yn((Z(),ue("li",{key:z,class:q([m(j).e("indicator"),m(j).em("indicator",H.direction),m(j).is("active",z===m(i))]),onMouseenter:X=>m(D)(z),onClick:tn(X=>m(k)(z),["stop"])},[ve("button",{class:q(m(j).e("button")),"aria-label":m(F)("el.carousel.indicator",{index:z+1})},[m(s)?(Z(),ue("span",{key:0},ct(J.props.label),1)):Fe("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[pr,m(N)(z)]])),128))],2)):Fe("v-if",!0),r.motionBlur?(Z(),ue("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"})])])])):Fe("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var tTe=vt(eTe,[["__file","carousel.vue"]]);const nTe=gt({name:{type:String,default:""},label:{type:[String,Number],default:""}}),rTe=(e,t)=>{const n=Pt(nZ),r=Cn(),o=te(),i=te(!1),a=te(0),s=te(1),l=te(!1),u=te(!1),d=te(!1),p=te(!1),{isCardType:v,isVertical:y,cardScale:w}=n;function b(T,A,R){const B=R-1,N=A-1,I=A+1,D=R/2;return A===0&&T===B?-1:A===B&&T===0?R:T<N&&A-T>=D?R+1:T>I&&T-A>=D?-2:T}function k(T,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)*(T-A)+1)/4:T<A?-(1+w)*N/4:(3+w)*N/4}function C(T,A,R){const B=n.root.value;return B?((R?B.offsetHeight:B.offsetWidth)||0)*(T-A):0}const P=(T,A,R)=>{var B;const N=m(v),I=(B=n.items.value.length)!=null?B:Number.NaN,D=T===A;!N&&!Vo(R)&&(p.value=D||T===R),!D&&I>2&&n.loop&&(T=b(T,A,I));const j=m(y);l.value=D,N?(d.value=Math.round(Math.abs(T-A))<=1,a.value=k(T,A),s.value=m(l)?1:w):a.value=C(T,A,j),u.value=!0,D&&o.value&&n.setContainerHeight(o.value.offsetHeight)};function $(){if(n&&m(v)){const T=n.items.value.findIndex(({uid:A})=>A===r.uid);n.setActiveItem(T)}}return vn(()=>{n.addItem({props:e,states:rr({hover:i,translate:a,scale:s,active:l,ready:u,inStage:d,animating:p}),uid:r.uid,translateItem:P})}),pp(()=>{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:$}},oTe=xe({name:"ElCarouselItem"}),iTe=xe({...oTe,props:nTe,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}=rTe(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)`,P=`scale(${m(p)})`;return{transform:[C,P].join(" ")}});return(k,C)=>yn((Z(),ue("div",{ref_key:"carouselItemRef",ref:r,class:q(m(w)),style:Vt(m(b)),onClick:m(y)},[m(d)?yn((Z(),ue("div",{key:0,class:q(m(n).e("mask"))},null,2)),[[pr,!m(o)]]):Fe("v-if",!0),Ge(k.$slots,"default")],14,["onClick"])),[[pr,m(v)]])}});var rZ=vt(iTe,[["__file","carousel-item.vue"]]);const aTe=pn(tTe,{CarouselItem:rZ}),sTe=xo(rZ),oZ={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:Mi,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...pa(["ariaControls"])},iZ={[En]:e=>Gt(e)||en(e)||Ho(e),change:e=>Gt(e)||en(e)||Ho(e)},y0=Symbol("checkboxGroupContextKey"),lTe=({model:e,isChecked:t})=>{const n=Pt(y0,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!Vo(s)&&e.value.length>=s&&!t.value||!Vo(l)&&e.value.length<=l&&t.value});return{isDisabled:Is(W(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},uTe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:i})=>{const a=Pt(y0,void 0),{formItem:s}=ss(),{emit:l}=Cn();function u(w){var b,k,C,P;return[!0,e.trueValue,e.trueLabel].includes(w)?(k=(b=e.trueValue)!=null?b:e.trueLabel)!=null?k:!0:(P=(C=e.falseValue)!=null?C:e.falseLabel)!=null?P:!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}},cTe=e=>{const t=te(!1),{emit:n}=Cn(),r=Pt(y0,void 0),o=W(()=>Vo(r)===!1),i=te(!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}},fTe=(e,t,{model:n})=>{const r=Pt(y0,void 0),o=te(!1),i=W(()=>sv(e.value)?e.label:e.value),a=W(()=>{const d=n.value;return Ho(d)?d:xt(d)?Pn(i.value)?d.map(fr).some(p=>os(p,i.value)):d.map(fr).includes(i.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),s=_i(W(()=>{var d;return(d=r==null?void 0:r.size)==null?void 0:d.value}),{prop:!0}),l=_i(W(()=>{var d;return(d=r==null?void 0:r.size)==null?void 0:d.value})),u=W(()=>!!t.default||!sv(i.value));return{checkboxButtonSize:s,isChecked:a,isFocused:o,checkboxSize:l,hasOwnLabel:u,actualValue:i}},aZ=(e,t)=>{const{formItem:n}=ss(),{model:r,isGroup:o,isLimitExceeded:i}=cTe(e),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,actualValue:p}=fTe(e,t,{model:r}),{isDisabled:v}=lTe({model:r,isChecked:s}),{inputId:y,isLabeledByFormItem:w}=_c(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:b,onClickRoot:k}=uTe(e,{model:r,isLimitExceeded:i,hasOwnLabel:d,isDisabled:v,isLabeledByFormItem:w});return(()=>{function P(){var $,T;xt(r.value)&&!r.value.includes(p.value)?r.value.push(p.value):r.value=(T=($=e.trueValue)!=null?$:e.trueLabel)!=null?T:!0}e.checked&&P()})(),Vh({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&&sv(e.value))),Vh({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)),Vh({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}},dTe=xe({name:"ElCheckbox"}),hTe=xe({...dTe,props:oZ,emits:iZ,setup(e){const t=e,n=Qi(),{inputId:r,isLabeledByFormItem:o,isChecked:i,isDisabled:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:d,actualValue:p,handleChange:v,onClickRoot:y}=aZ(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,P)=>(Z(),Qe(Dn(!m(u)&&m(o)?"span":"label"),{class:q(m(b)),"aria-controls":C.indeterminate?C.ariaControls:null,onClick:m(y)},{default:le(()=>{var $,T;return[ve("span",{class:q(m(k))},[C.trueValue||C.falseValue||C.trueLabel||C.falseLabel?yn((Z(),ue("input",{key:0,id:m(r),"onUpdate:modelValue":A=>eo(d)?d.value=A:null,class:q(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":(T=C.falseValue)!=null?T: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"])),[[Nk,m(d)]]):yn((Z(),ue("input",{key:1,id:m(r),"onUpdate:modelValue":A=>eo(d)?d.value=A:null,class:q(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"])),[[Nk,m(d)]]),ve("span",{class:q(m(w).e("inner"))},null,2)],2),m(u)?(Z(),ue("span",{key:0,class:q(m(w).e("label"))},[Ge(C.$slots,"default"),C.$slots.default?Fe("v-if",!0):(Z(),ue(Tt,{key:0},[St(ct(C.label),1)],64))],2)):Fe("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var pTe=vt(hTe,[["__file","checkbox.vue"]]);const gTe=xe({name:"ElCheckboxButton"}),vTe=xe({...gTe,props:oZ,emits:iZ,setup(e){const t=e,n=Qi(),{isFocused:r,isChecked:o,isDisabled:i,checkboxButtonSize:a,model:s,actualValue:l,handleChange:u}=aZ(t,n),d=Pt(y0,void 0),p=lt("checkbox"),v=W(()=>{var w,b,k,C;const P=(b=(w=d==null?void 0:d.fill)==null?void 0:w.value)!=null?b:"";return{backgroundColor:P,borderColor:P,color:(C=(k=d==null?void 0:d.textColor)==null?void 0:k.value)!=null?C:"",boxShadow:P?`-1px 0 0 0 ${P}`: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(),ue("label",{class:q(m(y))},[w.trueValue||w.falseValue||w.trueLabel||w.falseLabel?yn((Z(),ue("input",{key:0,"onUpdate:modelValue":P=>eo(s)?s.value=P:null,class:q(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:P=>r.value=!0,onBlur:P=>r.value=!1,onClick:tn(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Nk,m(s)]]):yn((Z(),ue("input",{key:1,"onUpdate:modelValue":P=>eo(s)?s.value=P:null,class:q(m(p).be("button","original")),type:"checkbox",name:w.name,tabindex:w.tabindex,disabled:m(i),value:m(l),onChange:m(u),onFocus:P=>r.value=!0,onBlur:P=>r.value=!1,onClick:tn(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[Nk,m(s)]]),w.$slots.default||w.label?(Z(),ue("span",{key:2,class:q(m(p).be("button","inner")),style:Vt(m(o)?m(v):void 0)},[Ge(w.$slots,"default",{},()=>[St(ct(w.label),1)])],6)):Fe("v-if",!0)],2)}}});var sZ=vt(vTe,[["__file","checkbox-button.vue"]]);const mTe=gt({modelValue:{type:je(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Mi,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...pa(["ariaLabel"])}),yTe={[En]:e=>xt(e),change:e=>xt(e)},bTe=xe({name:"ElCheckboxGroup"}),_Te=xe({...bTe,props:mTe,emits:yTe,setup(e,{emit:t}){const n=e,r=lt("checkbox"),{formItem:o}=ss(),{inputId:i,isLabeledByFormItem:a}=_c(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(y0,{...gu(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(),Qe(Dn(u.tag),{id:m(i),class:q(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:le(()=>[Ge(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var lZ=vt(_Te,[["__file","checkbox-group.vue"]]);const zl=pn(pTe,{CheckboxButton:sZ,CheckboxGroup:lZ}),OTe=xo(sZ),uZ=xo(lZ),cZ=gt({modelValue:{type:[String,Number,Boolean],default:void 0},size:Mi,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),wTe=gt({...cZ,border:Boolean}),fZ={[En]:e=>Gt(e)||en(e)||Ho(e),[so]:e=>Gt(e)||en(e)||Ho(e)},dZ=Symbol("radioGroupKey"),hZ=(e,t)=>{const n=te(),r=Pt(dZ,void 0),o=W(()=>!!r),i=W(()=>sv(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=_i(W(()=>r==null?void 0:r.size)),l=Is(W(()=>r==null?void 0:r.disabled)),u=te(!1),d=W(()=>l.value||o.value&&a.value!==i.value?-1:0);return Vh({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&&sv(e.value))),{radioRef:n,isGroup:o,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:d,modelValue:a,actualValue:i}},STe=xe({name:"ElRadio"}),xTe=xe({...STe,props:wTe,emits:fZ,setup(e,{emit:t}){const n=e,r=lt("radio"),{radioRef:o,radioGroup:i,focus:a,size:s,disabled:l,modelValue:u,actualValue:d}=hZ(n,t);function p(){zt(()=>t("change",u.value))}return(v,y)=>{var w;return Z(),ue("label",{class:q([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:q([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=>eo(u)?u.value=b:null,class:q(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"]),[[jz,m(u)]]),ve("span",{class:q(m(r).e("inner"))},null,2)],2),ve("span",{class:q(m(r).e("label")),onKeydown:tn(()=>{},["stop"])},[Ge(v.$slots,"default",{},()=>[St(ct(v.label),1)])],42,["onKeydown"])],2)}}});var kTe=vt(xTe,[["__file","radio.vue"]]);const CTe=gt({...cZ}),ETe=xe({name:"ElRadioButton"}),TTe=xe({...ETe,props:CTe,setup(e){const t=e,n=lt("radio"),{radioRef:r,focus:o,size:i,disabled:a,modelValue:s,radioGroup:l,actualValue:u}=hZ(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(),ue("label",{class:q([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=>eo(s)?s.value=w:null,class:q(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"]),[[jz,m(s)]]),ve("span",{class:q(m(n).be("button","inner")),style:Vt(m(s)===m(u)?m(d):{}),onKeydown:tn(()=>{},["stop"])},[Ge(p.$slots,"default",{},()=>[St(ct(p.label),1)])],46,["onKeydown"])],2)}}});var pZ=vt(TTe,[["__file","radio-button.vue"]]);const PTe=gt({id:{type:String,default:void 0},size:Mi,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},...pa(["ariaLabel"])}),$Te=fZ,ATe=xe({name:"ElRadioGroup"}),MTe=xe({...ATe,props:PTe,emits:$Te,setup(e,{emit:t}){const n=e,r=lt("radio"),o=La(),i=te(),{formItem:a}=ss(),{inputId:s,isLabeledByFormItem:l}=_c(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(dZ,rr({...ea(n),changeEvent:u,name:d})),at(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(p=>void 0))}),(p,v)=>(Z(),ue("div",{id:m(s),ref_key:"radioGroupRef",ref:i,class:q(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},[Ge(p.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var gZ=vt(MTe,[["__file","radio-group.vue"]]);const vZ=pn(kTe,{RadioButton:pZ,RadioGroup:gZ}),RTe=xo(gZ),NTe=xo(pZ);var ITe=xe({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 Zt("span",{class:e.e("label")},i?i({node:t,data:r}):o)}});const _D=Symbol(),DTe=xe({name:"ElCascaderNode",components:{ElCheckbox:zl,ElRadio:vZ,NodeContent:ITe,ElIcon:jt,Check:p0,Loading:ff,ArrowRight:xs},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Pt(_D),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||(P(),!u.value&&t("expand",R))},P=()=>{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):P())},T=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:P,handleClick:$,handleCheck:A,handleSelectCheck:T}}});function jTe(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(),ue("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:q([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},[Fe(" prefix "),e.multiple?(Z(),Qe(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(),Qe(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:tn(()=>{},["stop"])},{default:le(()=>[Fe(`
- Add an empty element to avoid render label,
- do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
- `),ve("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(Z(),Qe(u,{key:2,class:q(e.ns.e("prefix"))},{default:le(()=>[re(l)]),_:1},8,["class"])):Fe("v-if",!0),Fe(" content "),re(d),Fe(" postfix "),e.isLeaf?Fe("v-if",!0):(Z(),ue(Tt,{key:3},[e.node.loading?(Z(),Qe(u,{key:0,class:q([e.ns.is("loading"),e.ns.e("postfix")])},{default:le(()=>[re(p)]),_:1},8,["class"])):(Z(),Qe(u,{key:1,class:q(["arrow-right",e.ns.e("postfix")])},{default:le(()=>[re(v)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var LTe=vt(DTe,[["render",jTe],["__file","node.vue"]]);const BTe=xe({name:"ElCascaderMenu",components:{Loading:ff,ElIcon:jt,ElScrollbar:Oc,ElCascaderNode:LTe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Cn(),n=lt("cascader-menu"),{t:r}=or(),o=La();let i=null,a=null;const s=Pt(_D),l=te(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:P}=C.getBoundingClientRect(),{offsetWidth:$,offsetHeight:T}=C,A=k.clientX-P,R=i.offsetTop,B=R+i.offsetHeight;l.value.innerHTML=`
- <path style="pointer-events: auto;" fill="transparent" d="M${A} ${R} L${$} 0 V${R} Z" />
- <path style="pointer-events: auto;" fill="transparent" d="M${A} ${B} L${$} ${T} V${B} Z" />
- `}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 VTe(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(),Qe(u,{key:e.menuId,tag:"ul",role:"menu",class:q(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:le(()=>{var d;return[(Z(!0),ue(Tt,null,_n(e.nodes,p=>(Z(),Qe(a,{key:p.uid,node:p,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(Z(),ue("div",{key:0,class:q(e.ns.e("empty-text"))},[re(l,{size:"14",class:q(e.ns.is("loading"))},{default:le(()=>[re(s)]),_:1},8,["class"]),St(" "+ct(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(Z(),ue("div",{key:1,class:q(e.ns.e("empty-text"))},ct(e.t("el.cascader.noData")),3)):(d=e.panel)!=null&&d.isHoverMenu?(Z(),ue("svg",{key:2,ref:"hoverZone",class:q(e.ns.e("hover-zone"))},null,2)):Fe("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var FTe=vt(BTe,[["render",VTe],["__file","menu.vue"]]);let zTe=0;const QTe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};class Qy{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=zTe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:a,children:s}=n,l=t[s],u=QTe(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 Qy(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!du(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 Vo(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 Qy(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${ef(t)}`;this.children.forEach(o=>{o&&(o.broadcast(t,...n),o[r]&&o[r](...n))})}emit(t,...n){const{parent:r}=this,o=`onChild${ef(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 AM=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(AM(r.children,t))),n),[]);class W6{constructor(t,n){this.config=n;const r=(t||[]).map(o=>new Qy(o,this.config));this.nodes=r,this.allNodes=AM(r,!1),this.leafNodes=AM(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new Qy(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=>os(o.value,t)||os(o.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:o})=>os(t.value,r)&&t.level===o)||null}}const mZ=gt({modelValue:{type:je([Number,String,Array])},options:{type:je(Array),default:()=>[]},props:{type:je(Object),default:()=>({})}}),WTe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Vr,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},YTe=e=>W(()=>({...WTe,...e.props})),Y6=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},ZTe=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Fz(e)&&e.click()},UTe=(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},HTe=xe({name:"ElCascaderPanel",components:{ElCascaderMenu:FTe},props:{...mZ,border:{type:Boolean,default:!0},renderLabel:Function},emits:[En,so,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const o=lt("cascader"),i=YTe(e);let a=null;const s=te(!0),l=te([]),u=te(null),d=te([]),p=te(null),v=te([]),y=W(()=>i.value.expandTrigger==="hover"),w=W(()=>e.renderLabel||n.default),b=()=>{const{options:F}=e,G=i.value;r=!1,a=new W6(F,G),d.value=[a.getNodes()],G.lazy&&du(e.options)?(s.value=!1,k(void 0,ae=>{ae&&(a=new W6(ae,G),d.value=[a.getNodes()]),s.value=!0,N(!1,!0)})):N(!1,!0)},k=(F,G)=>{const ae=i.value;F=F||new Qy({},ae,void 0,!0),F.loading=!0;const K=H=>{const oe=F,J=oe.root?null:oe;H&&(a==null||a.appendNodes(H,J)),oe.loading=!1,oe.loaded=!0,oe.childrenData=oe.childrenData||[],G&&G(H)};ae.lazyLoad(F,K)},C=(F,G)=>{var ae;const{level:K}=F,H=d.value.slice(0,K);let oe;F.isLeaf?oe=F.pathNodes[K-2]:(oe=F,H.push(F.children)),((ae=p.value)==null?void 0:ae.uid)!==(oe==null?void 0:oe.uid)&&(p.value=F,d.value=H,!G&&t("expand-change",(F==null?void 0:F.pathValues)||[]))},P=(F,G,ae=!0)=>{const{checkStrictly:K,multiple:H}=i.value,oe=v.value[0];r=!0,!H&&(oe==null||oe.doCheck(!1)),F.doCheck(G),B(),ae&&!H&&!K&&t("close"),!ae&&!H&&!K&&$(F)},$=F=>{!F||(F=F.parent,$(F),F&&C(F))},T=F=>a==null?void 0:a.getFlattedNodes(F),A=F=>{var G;return(G=T(F))==null?void 0:G.filter(ae=>ae.checked!==!1)},R=()=>{v.value.forEach(F=>F.doCheck(!1)),B(),d.value=d.value.slice(0,1),p.value=null,t("expand-change",[])},B=()=>{var F;const{checkStrictly:G,multiple:ae}=i.value,K=v.value,H=A(!G),oe=UTe(K,H),J=oe.map(z=>z.valueByOption);v.value=oe,u.value=ae?J:(F=J[0])!=null?F:null},N=(F=!1,G=!1)=>{const{modelValue:ae}=e,{lazy:K,multiple:H,checkStrictly:oe}=i.value,J=!oe;if(!(!s.value||r||!G&&os(ae,u.value)))if(K&&!F){const X=W5(AQ(ws(ae))).map(ee=>a==null?void 0:a.getNodeByValue(ee)).filter(ee=>!!ee&&!ee.loaded&&!ee.loading);X.length?X.forEach(ee=>{k(ee,()=>N(!1,G))}):N(!0,G)}else{const z=H?ws(ae):[ae],X=W5(z.map(ee=>a==null?void 0:a.getNodeByValue(ee,J)));I(X,G),u.value=CO(ae)}},I=(F,G=!0)=>{const{checkStrictly:ae}=i.value,K=v.value,H=F.filter(z=>!!z&&(ae||z.isLeaf)),oe=a==null?void 0:a.getSameNode(p.value),J=G&&oe||H[0];J?J.pathNodes.forEach(z=>C(z,!0)):p.value=null,K.forEach(z=>z.doCheck(!1)),rr(H).forEach(z=>z.doCheck(!0)),v.value=H,zt(D)},D=()=>{!nr||l.value.forEach(F=>{const G=F==null?void 0:F.$el;if(G){const ae=G.querySelector(`.${o.namespace.value}-scrollbar__wrap`),K=G.querySelector(`.${o.b("node")}.${o.is("active")}`)||G.querySelector(`.${o.b("node")}.in-active-path`);DI(ae,K)}})},j=F=>{const G=F.target,{code:ae}=F;switch(ae){case Qt.up:case Qt.down:{F.preventDefault();const K=ae===Qt.up?-1:1;Gx(zz(G,K,`.${o.b("node")}[tabindex="-1"]`));break}case Qt.left:{F.preventDefault();const K=l.value[Y6(G)-1],H=K==null?void 0:K.$el.querySelector(`.${o.b("node")}[aria-expanded="true"]`);Gx(H);break}case Qt.right:{F.preventDefault();const K=l.value[Y6(G)+1],H=K==null?void 0:K.$el.querySelector(`.${o.b("node")}[tabindex="-1"]`);Gx(H);break}case Qt.enter:ZTe(G);break}};return Wn(_D,rr({config:i,expandingNode:p,checkedNodes:v,isHoverMenu:y,initialLoaded:s,renderLabelFn:w,lazyLoad:k,expandNode:C,handleCheckChange:P})),at([i,()=>e.options],b,{deep:!0,immediate:!0}),at(()=>e.modelValue,()=>{r=!1,N()},{deep:!0}),at(()=>u.value,F=>{os(F,e.modelValue)||(t(En,F),t(so,F))}),dz(()=>l.value=[]),vn(()=>!du(e.modelValue)&&N()),{ns:o,menuList:l,menus:d,checkedNodes:v,handleKeyDown:j,handleCheckChange:P,getFlattedNodes:T,getCheckedNodes:A,clearCheckedNodes:R,calculateCheckedValue:B,scrollToExpandingNode:D}}});function XTe(e,t,n,r,o,i){const a=Tn("el-cascader-menu");return Z(),ue("div",{class:q([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[(Z(!0),ue(Tt,null,_n(e.menus,(s,l)=>(Z(),Qe(a,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],42,["onKeydown"])}var GTe=vt(HTe,[["render",XTe],["__file","index.vue"]]);const yZ=pn(GTe),fv=gt({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Sf},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),KTe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},qTe=xe({name:"ElTag"}),JTe=xe({...qTe,props:fv,emits:KTe,setup(e,{emit:t}){const n=e,r=_i(),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(),ue("span",{key:0,class:q(m(i)),style:Vt({backgroundColor:l.color}),onClick:s},[ve("span",{class:q(m(o).e("content"))},[Ge(l.$slots,"default")],2),l.closable?(Z(),Qe(m(jt),{key:0,class:q(m(o).e("close")),onClick:tn(a,["stop"])},{default:le(()=>[re(m(ks))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],6)):(Z(),Qe($i,{key:1,name:`${m(o).namespace.value}-zoom-in-center`,appear:""},{default:le(()=>[ve("span",{class:q(m(i)),style:Vt({backgroundColor:l.color}),onClick:s},[ve("span",{class:q(m(o).e("content"))},[Ge(l.$slots,"default")],2),l.closable?(Z(),Qe(m(jt),{key:0,class:q(m(o).e("close")),onClick:tn(a,["stop"])},{default:le(()=>[re(m(ks))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],6)]),_:3},8,["name"]))}});var ePe=vt(JTe,[["__file","tag.vue"]]);const op=pn(ePe),tPe=gt({...mZ,size:Mi,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:je(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:je(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Gi.teleported,tagType:{...fv.type,default:"info"},tagEffect:{...fv.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...v0}),nPe={[En]:e=>!0,[so]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Ho(e),expandChange:e=>!!e,removeTag:e=>!!e},rPe="ElCascader",oPe=xe({name:rPe}),iPe=xe({...oPe,props:tPe,emits:nPe,setup(e,{expose:t,emit:n}){const r=e,o={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ke})=>{const{modifiersData:Xe,placement:nt}=ke;["right","left","bottom","top"].includes(nt)||(Xe.arrow.x=35)},requires:["arrow"]}]},i=mv();let a=0,s=0;const l=lt("cascader"),u=lt("input"),{t:d}=or(),{form:p,formItem:v}=ss(),{valueOnClear:y}=MC(r),{isComposing:w,handleComposition:b}=AC({afterComposition(ke){var Xe;const nt=(Xe=ke.target)==null?void 0:Xe.value;me(nt)}}),k=te(null),C=te(null),P=te(null),$=te(null),T=te(null),A=te(!1),R=te(!1),B=te(!1),N=te(!1),I=te(""),D=te(""),j=te([]),F=te([]),G=te([]),ae=W(()=>i.style),K=W(()=>r.disabled||(p==null?void 0:p.disabled)),H=W(()=>r.placeholder||d("el.cascader.placeholder")),oe=W(()=>D.value||j.value.length>0||w.value?"":H.value),J=_i(),z=W(()=>["small"].includes(J.value)?"small":"default"),X=W(()=>!!r.props.multiple),ee=W(()=>!r.filterable||X.value),he=W(()=>X.value?D.value:I.value),fe=W(()=>{var ke;return((ke=$.value)==null?void 0:ke.checkedNodes)||[]}),Le=W(()=>!r.clearable||K.value||B.value||!R.value?!1:!!fe.value.length),Ie=W(()=>{const{showAllLevels:ke,separator:Xe}=r,nt=fe.value;return nt.length?X.value?"":nt[0].calcText(ke,Xe):""}),ze=W(()=>(v==null?void 0:v.validateState)||""),Ae=W({get(){return CO(r.modelValue)},set(ke){const Xe=ke!=null?ke:y.value;n(En,Xe),n(so,Xe),r.validateEvent&&(v==null||v.validate("change").catch(nt=>void 0))}}),_e=W(()=>[l.b(),l.m(J.value),l.is("disabled",K.value),i.class]),ye=W(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",A.value)]),Ne=W(()=>l.is("focus",A.value||N.value)),Se=W(()=>{var ke,Xe;return(Xe=(ke=k.value)==null?void 0:ke.popperRef)==null?void 0:Xe.contentRef}),ce=ke=>{var Xe,nt,Ft;K.value||(ke=ke!=null?ke:!A.value,ke!==A.value&&(A.value=ke,(nt=(Xe=C.value)==null?void 0:Xe.input)==null||nt.setAttribute("aria-expanded",`${ke}`),ke?(be(),zt((Ft=$.value)==null?void 0:Ft.scrollToExpandingNode)):r.filterable&&ft(),n("visibleChange",ke)))},be=()=>{zt(()=>{var ke;(ke=k.value)==null||ke.updatePopper()})},pe=()=>{B.value=!1},Me=ke=>{const{showAllLevels:Xe,separator:nt}=r;return{node:ke,key:ke.uid,text:ke.calcText(Xe,nt),hitState:!1,closable:!K.value&&!ke.isDisabled,isCollapseTag:!1}},Ze=ke=>{var Xe;const nt=ke.node;nt.doCheck(!1),(Xe=$.value)==null||Xe.calculateCheckedValue(),n("removeTag",nt.valueByOption)},Be=()=>{if(!X.value)return;const ke=fe.value,Xe=[],nt=[];if(ke.forEach(Ft=>nt.push(Me(Ft))),F.value=nt,ke.length){ke.slice(0,r.maxCollapseTags).forEach(rt=>Xe.push(Me(rt)));const Ft=ke.slice(r.maxCollapseTags),Vn=Ft.length;Vn&&(r.collapseTags?Xe.push({key:-1,text:`+ ${Vn}`,closable:!1,isCollapseTag:!0}):Ft.forEach(rt=>Xe.push(Me(rt))))}j.value=Xe},$e=()=>{var ke,Xe;const{filterMethod:nt,showAllLevels:Ft,separator:Vn}=r,rt=(Xe=(ke=$.value)==null?void 0:ke.getFlattedNodes(!r.props.checkStrictly))==null?void 0:Xe.filter(Lt=>Lt.isDisabled?!1:(Lt.calcText(Ft,Vn),nt(Lt,he.value)));X.value&&(j.value.forEach(Lt=>{Lt.hitState=!1}),F.value.forEach(Lt=>{Lt.hitState=!1})),B.value=!0,G.value=rt,be()},Je=()=>{var ke;let Xe;B.value&&T.value?Xe=T.value.$el.querySelector(`.${l.e("suggestion-item")}`):Xe=(ke=$.value)==null?void 0:ke.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),Xe&&(Xe.focus(),!B.value&&Xe.click())},Oe=()=>{var ke,Xe;const nt=(ke=C.value)==null?void 0:ke.input,Ft=P.value,Vn=(Xe=T.value)==null?void 0:Xe.$el;if(!(!nr||!nt)){if(Vn){const rt=Vn.querySelector(`.${l.e("suggestion-list")}`);rt.style.minWidth=`${nt.offsetWidth}px`}if(Ft){const{offsetHeight:rt}=Ft,Lt=j.value.length>0?`${Math.max(rt+6,a)}px`:`${a}px`;nt.style.height=Lt,be()}}},Ye=ke=>{var Xe;return(Xe=$.value)==null?void 0:Xe.getCheckedNodes(ke)},ut=ke=>{be(),n("expandChange",ke)},qe=ke=>{if(!w.value)switch(ke.code){case Qt.enter:ce();break;case Qt.down:ce(!0),zt(Je),ke.preventDefault();break;case Qt.esc:A.value===!0&&(ke.preventDefault(),ke.stopPropagation(),ce(!1));break;case Qt.tab:ce(!1);break}},ot=()=>{var ke;(ke=$.value)==null||ke.clearCheckedNodes(),!A.value&&r.filterable&&ft(),ce(!1),n("clear")},ft=()=>{const{value:ke}=Ie;I.value=ke,D.value=ke},kt=ke=>{var Xe,nt;const{checked:Ft}=ke;X.value?(Xe=$.value)==null||Xe.handleCheckChange(ke,!Ft,!1):(!Ft&&((nt=$.value)==null||nt.handleCheckChange(ke,!0,!1)),ce(!1))},Wt=ke=>{const Xe=ke.target,{code:nt}=ke;switch(nt){case Qt.up:case Qt.down:{const Ft=nt===Qt.up?-1:1;Gx(zz(Xe,Ft,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Qt.enter:Xe.click();break}},Ct=()=>{const ke=j.value,Xe=ke[ke.length-1];s=D.value?0:s+1,!(!Xe||!s||r.collapseTags&&ke.length>1)&&(Xe.hitState?Ze(Xe):Xe.hitState=!0)},ln=ke=>{const Xe=ke.target,nt=l.e("search-input");Xe.className===nt&&(N.value=!0),n("focus",ke)},Ce=ke=>{N.value=!1,n("blur",ke)},He=$s(()=>{const{value:ke}=he;if(!ke)return;const Xe=r.beforeFilter(ke);hO(Xe)?Xe.then($e).catch(()=>{}):Xe!==!1?$e():pe()},r.debounce),me=(ke,Xe)=>{!A.value&&ce(!0),!(Xe!=null&&Xe.isComposing)&&(ke?He():pe())},Ve=ke=>Number.parseFloat(Kie(u.cssVarName("input-height"),ke).value)-2;return at(B,be),at([fe,K,()=>r.collapseTags],Be),at(j,()=>{zt(()=>Oe())}),at(J,async()=>{await zt();const ke=C.value.input;a=Ve(ke)||a,Oe()}),at(Ie,ft,{immediate:!0}),vn(()=>{const ke=C.value.input,Xe=Ve(ke);a=ke.offsetHeight||Xe,Oo(ke,Oe)}),t({getCheckedNodes:Ye,cascaderPanelRef:$,togglePopperVisible:ce,contentRef:Se}),(ke,Xe)=>(Z(),Qe(m(na),{ref_key:"tooltipRef",ref:k,visible:A.value,teleported:ke.teleported,"popper-class":[m(l).e("dropdown"),ke.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:ke.persistent,onHide:pe},{default:le(()=>[yn((Z(),ue("div",{class:q(m(_e)),style:Vt(m(ae)),onClick:()=>ce(m(ee)?void 0:!0),onKeydown:qe,onMouseenter:nt=>R.value=!0,onMouseleave:nt=>R.value=!1},[re(m(ti),{ref_key:"input",ref:C,modelValue:I.value,"onUpdate:modelValue":nt=>I.value=nt,placeholder:m(oe),readonly:m(ee),disabled:m(K),"validate-event":!1,size:m(J),class:q(m(Ne)),tabindex:m(X)&&ke.filterable&&!m(K)?-1:void 0,onCompositionstart:m(b),onCompositionupdate:m(b),onCompositionend:m(b),onFocus:ln,onBlur:Ce,onInput:me},{suffix:le(()=>[m(Le)?(Z(),Qe(m(jt),{key:"clear",class:q([m(u).e("icon"),"icon-circle-close"]),onClick:tn(ot,["stop"])},{default:le(()=>[re(m(Op))]),_:1},8,["class","onClick"])):(Z(),Qe(m(jt),{key:"arrow-down",class:q(m(ye)),onClick:tn(nt=>ce(),["stop"])},{default:le(()=>[re(m(Ed))]),_:1},8,["class","onClick"]))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),m(X)?(Z(),ue("div",{key:0,ref_key:"tagWrapper",ref:P,class:q([m(l).e("tags"),m(l).is("validate",Boolean(m(ze)))])},[(Z(!0),ue(Tt,null,_n(j.value,nt=>(Z(),Qe(m(op),{key:nt.key,type:ke.tagType,size:m(z),effect:ke.tagEffect,hit:nt.hitState,closable:nt.closable,"disable-transitions":"",onClose:Ft=>Ze(nt)},{default:le(()=>[nt.isCollapseTag===!1?(Z(),ue("span",{key:0},ct(nt.text),1)):(Z(),Qe(m(na),{key:1,disabled:A.value||!ke.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:le(()=>[ve("span",null,ct(nt.text),1)]),content:le(()=>[ve("div",{class:q(m(l).e("collapse-tags"))},[(Z(!0),ue(Tt,null,_n(F.value.slice(ke.maxCollapseTags),(Ft,Vn)=>(Z(),ue("div",{key:Vn,class:q(m(l).e("collapse-tag"))},[(Z(),Qe(m(op),{key:Ft.key,class:"in-tooltip",type:ke.tagType,size:m(z),effect:ke.tagEffect,hit:Ft.hitState,closable:Ft.closable,"disable-transitions":"",onClose:rt=>Ze(Ft)},{default:le(()=>[ve("span",null,ct(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)),ke.filterable&&!m(K)?yn((Z(),ue("input",{key:0,"onUpdate:modelValue":nt=>D.value=nt,type:"text",class:q(m(l).e("search-input")),placeholder:m(Ie)?"":m(H),onInput:nt=>me(D.value,nt),onClick:tn(nt=>ce(!0),["stop"]),onKeydown:Fr(Ct,["delete"]),onCompositionstart:m(b),onCompositionupdate:m(b),onCompositionend:m(b),onFocus:ln,onBlur:Ce},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[MN,D.value]]):Fe("v-if",!0)],2)):Fe("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[m(pd),()=>ce(!1),m(Se)]])]),content:le(()=>[yn(re(m(yZ),{ref_key:"cascaderPanelRef",ref:$,modelValue:m(Ae),"onUpdate:modelValue":nt=>eo(Ae)?Ae.value=nt:null,options:ke.options,props:r.props,border:!1,"render-label":ke.$slots.default,onExpandChange:ut,onClose:nt=>ke.$nextTick(()=>ce(!1))},null,8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[pr,!B.value]]),ke.filterable?yn((Z(),Qe(m(Oc),{key:0,ref_key:"suggestionPanel",ref:T,tag:"ul",class:q(m(l).e("suggestion-panel")),"view-class":m(l).e("suggestion-list"),onKeydown:Wt},{default:le(()=>[G.value.length?(Z(!0),ue(Tt,{key:0},_n(G.value,nt=>(Z(),ue("li",{key:nt.uid,class:q([m(l).e("suggestion-item"),m(l).is("checked",nt.checked)]),tabindex:-1,onClick:Ft=>kt(nt)},[ve("span",null,ct(nt.text),1),nt.checked?(Z(),Qe(m(jt),{key:0},{default:le(()=>[re(m(p0))]),_:1})):Fe("v-if",!0)],10,["onClick"]))),128)):Ge(ke.$slots,"empty",{key:1},()=>[ve("li",{class:q(m(l).e("empty-text"))},ct(m(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[pr,B.value]]):Fe("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition","persistent"]))}});var aPe=vt(iPe,[["__file","cascader.vue"]]);const sPe=pn(aPe),lPe=gt({checked:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),uPe={"update:checked":e=>Ho(e),[so]:e=>Ho(e)},cPe=xe({name:"ElCheckTag"}),fPe=xe({...cPe,props:lPe,emits:uPe,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(so,a),t("update:checked",a)};return(a,s)=>(Z(),ue("span",{class:q(m(o)),onClick:i},[Ge(a.$slots,"default")],2))}});var dPe=vt(fPe,[["__file","check-tag.vue"]]);const hPe=pn(dPe),bZ=Symbol("rowContextKey"),pPe=["start","center","end","space-around","space-between","space-evenly"],gPe=["top","middle","bottom"],vPe=gt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:pPe,default:"start"},align:{type:String,values:gPe}}),mPe=xe({name:"ElRow"}),yPe=xe({...mPe,props:vPe,setup(e){const t=e,n=lt("row"),r=W(()=>t.gutter);Wn(bZ,{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(),Qe(Dn(a.tag),{class:q(m(i)),style:Vt(m(o))},{default:le(()=>[Ge(a.$slots,"default")]),_:3},8,["class","style"]))}});var bPe=vt(yPe,[["__file","row.vue"]]);const il=pn(bPe),_Pe=gt({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:je([Number,Object]),default:()=>wo({})},sm:{type:je([Number,Object]),default:()=>wo({})},md:{type:je([Number,Object]),default:()=>wo({})},lg:{type:je([Number,Object]),default:()=>wo({})},xl:{type:je([Number,Object]),default:()=>wo({})}}),OPe=xe({name:"ElCol"}),wPe=xe({...OPe,props:_Pe,setup(e){const t=e,{gutter:n}=Pt(bZ,{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(),Qe(Dn(a.tag),{class:q(m(i)),style:Vt(m(o))},{default:le(()=>[Ge(a.$slots,"default")]),_:3},8,["class","style"]))}});var SPe=vt(wPe,[["__file","col.vue"]]);const al=pn(SPe),Z6=e=>en(e)||Gt(e)||xt(e),xPe=gt({accordion:Boolean,modelValue:{type:je([Array,String,Number]),default:()=>wo([])}}),kPe={[En]:Z6,[so]:Z6},_Z=Symbol("collapseContextKey"),CPe=(e,t)=>{const n=te(Ra(e.modelValue)),r=i=>{n.value=i;const a=e.accordion?n.value[0]:n.value;t(En,a),t(so,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=Ra(e.modelValue),{deep:!0}),Wn(_Z,{activeNames:n,handleItemClick:o}),{activeNames:n,setActiveNames:r}},EPe=()=>{const e=lt("collapse");return{rootKls:W(()=>e.b())}},TPe=xe({name:"ElCollapse"}),PPe=xe({...TPe,props:xPe,emits:kPe,setup(e,{expose:t,emit:n}){const r=e,{activeNames:o,setActiveNames:i}=CPe(r,n),{rootKls:a}=EPe();return t({activeNames:o,setActiveNames:i}),(s,l)=>(Z(),ue("div",{class:q(m(a))},[Ge(s.$slots,"default")],2))}});var $Pe=vt(PPe,[["__file","collapse.vue"]]);const APe=xe({name:"ElCollapseTransition"}),MPe=xe({...APe,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(),Qe($i,In({name:m(t).b()},Ooe(r)),{default:le(()=>[Ge(o.$slots,"default")]),_:3},16,["name"]))}});var RPe=vt(MPe,[["__file","collapse-transition.vue"]]);const jC=pn(RPe),NPe=gt({title:{type:String,default:""},name:{type:je([String,Number]),default:void 0},disabled:Boolean}),IPe=e=>{const t=Pt(_Z),{namespace:n}=lt("collapse"),r=te(!1),o=te(!1),i=rD(),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))}}},DPe=(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}},jPe=xe({name:"ElCollapseItem"}),LPe=xe({...jPe,props:NPe,setup(e,{expose:t}){const n=e,{focusing:r,id:o,isActive:i,handleFocus:a,handleHeaderClick:s,handleEnterClick:l}=IPe(n),{arrowKls:u,headKls:d,rootKls:p,itemWrapperKls:v,itemContentKls:y,scopedContentId:w,scopedHeadId:b}=DPe(n,{focusing:r,isActive:i,id:o});return t({isActive:i}),(k,C)=>(Z(),ue("div",{class:q(m(p))},[ve("button",{id:m(b),class:q(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:Fr(tn(m(l),["stop","prevent"]),["space","enter"]),onFocus:m(a),onBlur:P=>r.value=!1},[Ge(k.$slots,"title",{},()=>[St(ct(k.title),1)]),re(m(jt),{class:q(m(u))},{default:le(()=>[re(m(xs))]),_:1},8,["class"])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),re(m(jC),null,{default:le(()=>[yn(ve("div",{id:m(w),role:"region",class:q(m(v)),"aria-hidden":!m(i),"aria-labelledby":m(b)},[ve("div",{class:q(m(y))},[Ge(k.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[pr,m(i)]])]),_:3})],2))}});var OZ=vt(LPe,[["__file","collapse-item.vue"]]);const OD=pn($Pe,{CollapseItem:OZ}),wD=xo(OZ),BPe=gt({color:{type:je(Object),required:!0},vertical:{type:Boolean,default:!1}});let z$=!1;function RO(e,t){if(!nr)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,z$=!1,(a=t.end)==null||a.call(t,i)},o=function(i){var a;z$||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),z$=!0,(a=t.start)==null||a.call(t,i))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const VPe=e=>{const t=Cn(),{t:n}=or(),r=Jr(),o=Jr(),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}=DN(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}},FPe=(e,{bar:t,thumb:n,handleDrag:r})=>{const o=Cn(),i=lt("color-alpha-slider"),a=te(0),s=te(0),l=te();function u(){if(!n.value||e.vertical)return 0;const P=o.vnode.el,$=e.color.get("alpha");return P?Math.round($*(P.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const P=o.vnode.el;if(!e.vertical)return 0;const $=e.color.get("alpha");return P?Math.round($*(P.offsetHeight-n.value.offsetHeight/2)/100):0}function p(){if(e.color&&e.color.value){const{r:P,g:$,b:T}=e.color.toRgb();return`linear-gradient(to right, rgba(${P}, ${$}, ${T}, 0) 0%, rgba(${P}, ${$}, ${T}, 1) 100%)`}return""}function v(){a.value=u(),s.value=d(),l.value=p()}vn(()=>{if(!t.value||!n.value)return;const P={drag:$=>{r($)},end:$=>{r($)}};RO(t.value,P),RO(n.value,P),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:Fo(a.value),top:Fo(s.value)}));return{rootKls:y,barKls:w,barStyle:k,thumbKls:b,thumbStyle:C,update:v}},zPe="ElColorAlphaSlider",QPe=xe({name:zPe}),WPe=xe({...QPe,props:BPe,setup(e,{expose:t}){const n=e,{alpha:r,alphaLabel:o,bar:i,thumb:a,handleDrag:s,handleClick:l,handleKeydown:u}=VPe(n),{rootKls:d,barKls:p,barStyle:v,thumbKls:y,thumbStyle:w,update:b}=FPe(n,{bar:i,thumb:a,handleDrag:s});return t({update:b,bar:i,thumb:a}),(k,C)=>(Z(),ue("div",{class:q(m(d))},[ve("div",{ref_key:"bar",ref:i,class:q(m(p)),style:Vt(m(v)),onClick:m(l)},null,14,["onClick"]),ve("div",{ref_key:"thumb",ref:a,class:q(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 YPe=vt(WPe,[["__file","alpha-slider.vue"]]);const ZPe=xe({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=lt("color-hue-slider"),n=Cn(),r=te(),o=te(),i=te(0),a=te(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}=DN(y);let P;if(e.vertical){let $=C-b.top;$=Math.min($,b.height-r.value.offsetHeight/2),$=Math.max(r.value.offsetHeight/2,$),P=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,$),P=Math.round(($-r.value.offsetWidth/2)/(b.width-r.value.offsetWidth)*360)}e.color.set("hue",P)}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)}};RO(o.value,y),RO(r.value,y),v()}),{bar:o,thumb:r,thumbLeft:i,thumbTop:a,hueValue:s,handleClick:l,update:v,ns:t}}});function UPe(e,t,n,r,o,i){return Z(),ue("div",{class:q([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ve("div",{ref:"bar",class:q(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),ve("div",{ref:"thumb",class:q(e.ns.e("thumb")),style:Vt({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var HPe=vt(ZPe,[["render",UPe],["__file","hue-slider.vue"]]);const XPe=gt({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Mi,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Gi.teleported,predefine:{type:je(Array)},validateEvent:{type:Boolean,default:!0},...pa(["ariaLabel"])}),GPe={[En]:e=>Gt(e)||zi(e),[so]:e=>Gt(e)||zi(e),activeChange:e=>Gt(e)||zi(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},wZ=Symbol("colorPickerContextKey"),U6=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},KPe=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},qPe=function(e){return typeof e=="string"&&e.includes("%")},yy=function(e,t){KPe(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)},H6={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},sk=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${H6[t]||t}${H6[n]||n}`},X6=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${sk(e)}${sk(t)}${sk(n)}`},Q$={A:10,B:11,C:12,D:13,E:14,F:15},kg=function(e){return e.length===2?(Q$[e[0].toUpperCase()]||+e[0])*16+(Q$[e[1].toUpperCase()]||+e[1]):Q$[e[1].toUpperCase()]||+e[1]},JPe=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}},G6=(e,t,n)=>{e=yy(e,255),t=yy(t,255),n=yy(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}},y_=function(e,t,n){e=yy(e,360)*6,t=yy(t,100),n=yy(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 K_{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)ar(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)ar(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 y_(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}=JPe(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}=G6(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=kg(r[0]+r[0]),i=kg(r[1]+r[1]),a=kg(r[2]+r[2])):(r.length===6||r.length===8)&&(o=kg(r.slice(0,2)),i=kg(r.slice(2,4)),a=kg(r.slice(4,6))),r.length===8?this._alpha=kg(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=G6(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=U6(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=`${X6(y_(t,n,r))}${sk(o*255/100)}`;break}default:{const{r:a,g:s,b:l}=y_(t,n,r);this.value=`rgba(${a}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const a=U6(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}=y_(t,n,r);this.value=`rgb(${a}, ${s}, ${l})`;break}default:this.value=X6(y_(t,n,r))}}}const e$e=xe({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}=Pt(wZ),r=te(i(e.colors,e.color));at(()=>n.value,a=>{const s=new K_;s.fromString(a),r.value.forEach(l=>{l.selected=s.compare(l)})}),Da(()=>{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 K_;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 t$e(e,t,n,r,o,i){return Z(),ue("div",{class:q(e.ns.b())},[ve("div",{class:q(e.ns.e("colors"))},[(Z(!0),ue(Tt,null,_n(e.rgbaColors,(a,s)=>(Z(),ue("div",{key:e.colors[s],class:q([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 n$e=vt(e$e,[["render",t$e],["__file","predefine.vue"]]);const r$e=xe({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=lt("color-svpanel"),n=Cn(),r=te(0),o=te(0),i=te("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}=DN(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(()=>{RO(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 o$e(e,t,n,r,o,i){return Z(),ue("div",{class:q(e.ns.b()),style:Vt({backgroundColor:e.background})},[ve("div",{class:q(e.ns.e("white"))},null,2),ve("div",{class:q(e.ns.e("black"))},null,2),ve("div",{class:q(e.ns.e("cursor")),style:Vt({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[ve("div")],6)],6)}var i$e=vt(r$e,[["render",o$e],["__file","sv-panel.vue"]]);const a$e=xe({name:"ElColorPicker"}),s$e=xe({...a$e,props:XPe,emits:GPe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=or(),i=lt("color"),{formItem:a}=ss(),s=_i(),l=Is(),{inputId:u,isLabeledByFormItem:d}=_c(r,{formItemContext:a}),p=te(),v=te(),y=te(),w=te(),b=te(),k=te(),{isFocused:C,handleFocus:P,handleBlur:$}=E1(b,{beforeFocus(){return l.value},beforeBlur(ye){var Ne;return(Ne=w.value)==null?void 0:Ne.isFocusInsideContent(ye)},afterBlur(){K(!1),z()}});let T=!0;const A=rr(new K_({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),R=te(!1),B=te(!1),N=te(""),I=W(()=>!r.modelValue&&!B.value?"transparent":ae(A,r.showAlpha)),D=W(()=>!r.modelValue&&!B.value?"":A.value),j=W(()=>d.value?void 0:r.ariaLabel||o("el.colorpicker.defaultLabel")),F=W(()=>d.value?a==null?void 0:a.labelId:void 0),G=W(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value),i.is("focused",C.value)]);function ae(ye,Ne){if(!(ye instanceof K_))throw new TypeError("color should be instance of _color Class");const{r:Se,g:ce,b:be}=ye.toRgb();return Ne?`rgba(${Se}, ${ce}, ${be}, ${ye.get("alpha")/100})`:`rgb(${Se}, ${ce}, ${be})`}function K(ye){R.value=ye}const H=$s(K,100,{leading:!0});function oe(){l.value||K(!0)}function J(){H(!1),z()}function z(){zt(()=>{r.modelValue?A.fromString(r.modelValue):(A.value="",zt(()=>{B.value=!1}))})}function X(){l.value||H(!R.value)}function ee(){A.fromString(N.value)}function he(){const ye=A.value;n(En,ye),n("change",ye),r.validateEvent&&(a==null||a.validate("change").catch(Ne=>void 0)),H(!1),zt(()=>{const Ne=new K_({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});A.compare(Ne)||z()})}function fe(){H(!1),n(En,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(a==null||a.validate("change").catch(ye=>void 0)),z()}function Le(){!R.value||(J(),C.value&&Ae())}function Ie(ye){ye.preventDefault(),ye.stopPropagation(),K(!1),z()}function ze(ye){switch(ye.code){case Qt.enter:case Qt.space:ye.preventDefault(),ye.stopPropagation(),oe(),k.value.focus();break;case Qt.esc:Ie(ye);break}}function Ae(){b.value.focus()}function _e(){b.value.blur()}return vn(()=>{r.modelValue&&(N.value=D.value)}),at(()=>r.modelValue,ye=>{ye?ye&&ye!==A.value&&(T=!1,A.fromString(ye)):B.value=!1}),at(()=>D.value,ye=>{N.value=ye,T&&n("activeChange",ye),T=!0}),at(()=>A.value,()=>{!r.modelValue&&!B.value&&(B.value=!0)}),at(()=>R.value,()=>{zt(()=>{var ye,Ne,Se;(ye=p.value)==null||ye.update(),(Ne=v.value)==null||Ne.update(),(Se=y.value)==null||Se.update()})}),Wn(wZ,{currentColor:D}),t({color:A,show:oe,hide:J,focus:Ae,blur:_e}),(ye,Ne)=>(Z(),Qe(m(na),{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"),ye.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:ye.teleported,transition:`${m(i).namespace.value}-zoom-in-top`,persistent:"",onHide:Se=>K(!1)},{content:le(()=>[yn((Z(),ue("div",{onKeydown:Fr(Ie,["esc"])},[ve("div",{class:q(m(i).be("dropdown","main-wrapper"))},[re(HPe,{ref_key:"hue",ref:p,class:"hue-slider",color:m(A),vertical:""},null,8,["color"]),re(i$e,{ref_key:"sv",ref:v,color:m(A)},null,8,["color"])],2),ye.showAlpha?(Z(),Qe(YPe,{key:0,ref_key:"alpha",ref:y,color:m(A)},null,8,["color"])):Fe("v-if",!0),ye.predefine?(Z(),Qe(n$e,{key:1,ref:"predefine","enable-alpha":ye.showAlpha,color:m(A),colors:ye.predefine},null,8,["enable-alpha","color","colors"])):Fe("v-if",!0),ve("div",{class:q(m(i).be("dropdown","btns"))},[ve("span",{class:q(m(i).be("dropdown","value"))},[re(m(ti),{ref_key:"inputRef",ref:k,modelValue:N.value,"onUpdate:modelValue":Se=>N.value=Se,"validate-event":!1,size:"small",onKeyup:Fr(ee,["enter"]),onBlur:ee},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),re(m(ro),{class:q(m(i).be("dropdown","link-btn")),text:"",size:"small",onClick:fe},{default:le(()=>[St(ct(m(o)("el.colorpicker.clear")),1)]),_:1},8,["class"]),re(m(ro),{plain:"",size:"small",class:q(m(i).be("dropdown","btn")),onClick:he},{default:le(()=>[St(ct(m(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[m(pd),Le]])]),default:le(()=>[ve("div",In({id:m(u),ref_key:"triggerRef",ref:b},ye.$attrs,{class:m(G),role:"button","aria-label":m(j),"aria-labelledby":m(F),"aria-description":m(o)("el.colorpicker.description",{color:ye.modelValue||""}),"aria-disabled":m(l),tabindex:m(l)?-1:ye.tabindex,onKeydown:ze,onFocus:m(P),onBlur:m($)}),[m(l)?(Z(),ue("div",{key:0,class:q(m(i).be("picker","mask"))},null,2)):Fe("v-if",!0),ve("div",{class:q(m(i).be("picker","trigger")),onClick:X},[ve("span",{class:q([m(i).be("picker","color"),m(i).is("alpha",ye.showAlpha)])},[ve("span",{class:q(m(i).be("picker","color-inner")),style:Vt({backgroundColor:m(I)})},[yn(re(m(jt),{class:q([m(i).be("picker","icon"),m(i).is("icon-arrow-down")])},{default:le(()=>[re(m(Ed))]),_:1},8,["class"]),[[pr,ye.modelValue||B.value]]),yn(re(m(jt),{class:q([m(i).be("picker","empty"),m(i).is("icon-close")])},{default:le(()=>[re(m(ks))]),_:1},8,["class"]),[[pr,!ye.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 l$e=vt(s$e,[["__file","color-picker.vue"]]);const u$e=pn(l$e),c$e=xe({name:"ElContainer"}),f$e=xe({...c$e,props:{direction:{type:String}},setup(e){const t=e,n=Qi(),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(),ue("section",{class:q([m(r).b(),m(r).is("vertical",m(o))])},[Ge(i.$slots,"default")],2))}});var d$e=vt(f$e,[["__file","container.vue"]]);const h$e=xe({name:"ElAside"}),p$e=xe({...h$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(),ue("aside",{class:q(m(n).b()),style:Vt(m(r))},[Ge(o.$slots,"default")],6))}});var SZ=vt(p$e,[["__file","aside.vue"]]);const g$e=xe({name:"ElFooter"}),v$e=xe({...g$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(),ue("footer",{class:q(m(n).b()),style:Vt(m(r))},[Ge(o.$slots,"default")],6))}});var xZ=vt(v$e,[["__file","footer.vue"]]);const m$e=xe({name:"ElHeader"}),y$e=xe({...m$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(),ue("header",{class:q(m(n).b()),style:Vt(m(r))},[Ge(o.$slots,"default")],6))}});var kZ=vt(y$e,[["__file","header.vue"]]);const b$e=xe({name:"ElMain"}),_$e=xe({...b$e,setup(e){const t=lt("main");return(n,r)=>(Z(),ue("main",{class:q(m(t).b())},[Ge(n.$slots,"default")],2))}});var CZ=vt(_$e,[["__file","main.vue"]]);const O$e=pn(d$e,{Aside:SZ,Footer:xZ,Header:kZ,Main:CZ}),w$e=xo(SZ),S$e=xo(xZ),x$e=xo(kZ),k$e=xo(CZ);var EZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Us,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)}}})})(EZ);var C$e=EZ.exports,TZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Us,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)}}})})(TZ);var E$e=TZ.exports,PZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Us,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}}})})(PZ);var T$e=PZ.exports,$Z={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Us,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")}}})})($Z);var P$e=$Z.exports,AZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Us,function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}})})(AZ);var $$e=AZ.exports,MZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Us,function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}})})(MZ);var A$e=MZ.exports;const LC=Symbol(),M$e=gt({...bD,type:{type:je(String),default:"date"}}),R$e=["date","dates","year","years","month","months","week","range"],SD=gt({disabledDate:{type:je(Function)},date:{type:je(Object),required:!0},minDate:{type:je(Object)},maxDate:{type:je(Object)},parsedValue:{type:je([Object,Array])},rangeState:{type:je(Object),default:()=>({endDate:null,selecting:!1})}}),RZ=gt({type:{type:je(String),required:!0,values:cwe},dateFormat:String,timeFormat:String}),xD=gt({unlinkPanels:Boolean,parsedValue:{type:je(Array)}}),kD=e=>({type:String,values:R$e,default:e}),N$e=gt({...RZ,parsedValue:{type:je([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),I$e=gt({...SD,cellClassName:{type:je(Function)},showWeekNumber:Boolean,selectionMode:kD("date")}),D$e=["changerange","pick","select"],Wy=e=>{if(!xt(e))return!1;const[t,n]=e;return un.isDayjs(t)&&un.isDayjs(n)&&t.isSameOrBefore(n)},CD=(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)]},j$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)}},MM=(e="")=>["normal","today"].includes(e),L$e=(e,t)=>{const{lang:n}=or(),r=te(),o=te(),i=te(),a=te(),s=te([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(z=>z.toLowerCase()),p=W(()=>u>3?7-u:-u),v=W(()=>{const z=e.date.startOf("month");return z.subtract(z.day()||7,"day")}),y=W(()=>d.concat(d).slice(u,u+7)),w=W(()=>ZN(m(T)).some(z=>z.isCurrent)),b=W(()=>{const z=e.date.startOf("month"),X=z.day()||7,ee=z.daysInMonth(),he=z.subtract(1,"month").daysInMonth();return{startOfMonthDay:X,dateCountOfMonth:ee,dateCountOfLastMonth:he}}),k=W(()=>e.selectionMode==="dates"?ws(e.parsedValue):[]),C=(z,{count:X,rowIndex:ee,columnIndex:he})=>{const{startOfMonthDay:fe,dateCountOfMonth:Le,dateCountOfLastMonth:Ie}=m(b),ze=m(p);if(ee>=0&&ee<=1){const Ae=fe+ze<0?7+fe+ze:fe+ze;if(he+ee*7>=Ae)return z.text=X,!0;z.text=Ie-(Ae-he%7)+1+ee*7,z.type="prev-month"}else return X<=Le?z.text=X:(z.text=X-Le,z.type="next-month"),!0;return!1},P=(z,{columnIndex:X,rowIndex:ee},he)=>{const{disabledDate:fe,cellClassName:Le}=e,Ie=m(k),ze=C(z,{count:he,rowIndex:ee,columnIndex:X}),Ae=z.dayjs.toDate();return z.selected=Ie.find(_e=>_e.isSame(z.dayjs,"day")),z.isSelected=!!z.selected,z.isCurrent=R(z),z.disabled=fe==null?void 0:fe(Ae),z.customClass=Le==null?void 0:Le(Ae),ze},$=z=>{if(e.selectionMode==="week"){const[X,ee]=e.showWeekNumber?[1,7]:[0,6],he=J(z[X+1]);z[X].inRange=he,z[X].start=he,z[ee].inRange=he,z[ee].end=he}},T=W(()=>{const{minDate:z,maxDate:X,rangeState:ee,showWeekNumber:he}=e,fe=m(p),Le=m(s),Ie="day";let ze=1;if(he)for(let Ae=0;Ae<6;Ae++)Le[Ae][0]||(Le[Ae][0]={type:"week",text:m(v).add(Ae*7+1,Ie).week()});return j$e({row:6,column:7},Le,{startDate:z,columnIndexOffset:he?1:0,nextEndDate:ee.endDate||X||ee.selecting&&z||null,now:un().locale(m(n)).startOf(Ie),unit:Ie,relativeDateGetter:Ae=>m(v).add(Ae-fe,Ie),setCellMetadata:(...Ae)=>{P(...Ae,ze)&&(ze+=1)},setRowMetadata:$}),Le});at(()=>e.date,async()=>{var z;(z=m(r))!=null&&z.contains(document.activeElement)&&(await zt(),await A())});const A=async()=>{var z;return(z=m(o))==null?void 0:z.focus()},R=z=>e.selectionMode==="date"&&MM(z.type)&&B(z,e.parsedValue),B=(z,X)=>X?un(X).locale(m(n)).isSame(e.date.date(Number(z.text)),"day"):!1,N=(z,X)=>{const ee=z*7+(X-(e.showWeekNumber?1:0))-m(p);return m(v).add(ee,"day")},I=z=>{var X;if(!e.rangeState.selecting)return;let ee=z.target;if(ee.tagName==="SPAN"&&(ee=(X=ee.parentNode)==null?void 0:X.parentNode),ee.tagName==="DIV"&&(ee=ee.parentNode),ee.tagName!=="TD")return;const he=ee.parentNode.rowIndex-1,fe=ee.cellIndex;m(T)[he][fe].disabled||(he!==m(i)||fe!==m(a))&&(i.value=he,a.value=fe,t("changerange",{selecting:!0,endDate:N(he,fe)}))},D=z=>!m(w)&&(z==null?void 0:z.text)===1&&z.type==="normal"||z.isCurrent,j=z=>{l||m(w)||e.selectionMode!=="date"||oe(z,!0)},F=z=>{!z.target.closest("td")||(l=!0)},G=z=>{!z.target.closest("td")||(l=!1)},ae=z=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:z,maxDate:null}),t("select",!0)):(z>=e.minDate?t("pick",{minDate:e.minDate,maxDate:z}):t("pick",{minDate:z,maxDate:e.minDate}),t("select",!1))},K=z=>{const X=z.week(),ee=`${z.year()}w${X}`;t("pick",{year:z.year(),week:X,value:ee,date:z.startOf("week")})},H=(z,X)=>{const ee=X?ws(e.parsedValue).filter(he=>(he==null?void 0:he.valueOf())!==z.valueOf()):ws(e.parsedValue).concat([z]);t("pick",ee)},oe=(z,X=!1)=>{const ee=z.target.closest("td");if(!ee)return;const he=ee.parentNode.rowIndex-1,fe=ee.cellIndex,Le=m(T)[he][fe];if(Le.disabled||Le.type==="week")return;const Ie=N(he,fe);switch(e.selectionMode){case"range":{ae(Ie);break}case"date":{t("pick",Ie,X);break}case"week":{K(Ie);break}case"dates":{H(Ie,!!Le.selected);break}}},J=z=>{if(e.selectionMode!=="week")return!1;let X=e.date.startOf("day");if(z.type==="prev-month"&&(X=X.subtract(1,"month")),z.type==="next-month"&&(X=X.add(1,"month")),X=X.date(Number.parseInt(z.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const ee=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(ee,"day").isSame(X,"day")}return!1};return{WEEKS:y,rows:T,tbodyRef:r,currentCellRef:o,focus:A,isCurrent:R,isWeekActive:J,isSelectedCell:D,handlePickDate:oe,handleMouseUp:G,handleMouseDown:F,handleMouseMove:I,handleFocus:j}},B$e=(e,{isCurrent:t,isWeekActive:n})=>{const r=lt("date-table"),{t:o}=or(),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 MM(d.type)&&!d.disabled?(p.push("available"),d.type==="today"&&p.push("today")):p.push(d.type),t(d)&&p.push("current"),d.inRange&&(MM(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}},V$e=gt({cell:{type:je(Object)}});var ED=xe({name:"ElDatePickerCell",props:V$e,setup(e){const t=lt("date-table-cell"),{slots:n}=Pt(LC);return()=>{const{cell:r}=e;return Ge(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 F$e=xe({__name:"basic-date-table",props:I$e,emits:D$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}=L$e(r,n),{tableLabel:C,tableKls:P,weekLabel:$,getCellClasses:T,getRowKls:A,t:R}=B$e(r,{isCurrent:u,isWeekActive:d});return t({focus:l}),(B,N)=>(Z(),ue("table",{"aria-label":m(C),class:q(m(P)),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(),ue("th",{key:0,scope:"col"},ct(m($)),1)):Fe("v-if",!0),(Z(!0),ue(Tt,null,_n(m(o),(I,D)=>(Z(),ue("th",{key:D,"aria-label":m(R)("el.datepicker.weeksFull."+I),scope:"col"},ct(m(R)("el.datepicker.weeks."+I)),9,["aria-label"]))),128))]),(Z(!0),ue(Tt,null,_n(m(i),(I,D)=>(Z(),ue("tr",{key:D,class:q(m(A)(I[1]))},[(Z(!0),ue(Tt,null,_n(I,(j,F)=>(Z(),ue("td",{key:`${D}.${F}`,ref_for:!0,ref:G=>m(p)(j)&&(s.value=G),class:q(m(T)(j)),"aria-current":j.isCurrent?"date":void 0,"aria-selected":j.isCurrent,tabindex:m(p)(j)?0:-1,onFocus:m(k)},[re(m(ED),{cell:j},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var RM=vt(F$e,[["__file","basic-date-table.vue"]]);const z$e=gt({...SD,selectionMode:kD("month")}),Q$e=xe({__name:"basic-month-table",props:z$e,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=(T,A,R)=>{const B=un().locale(R).startOf("month").month(A).year(T),N=B.daysInMonth();return Fh(N).map(I=>B.add(I,"day").toDate())},i=lt("month-table"),{t:a,lang:s}=or(),l=te(),u=te(),d=te(r.date.locale("en").localeData().monthsShort().map(T=>T.toLowerCase())),p=te([[],[],[]]),v=te(),y=te(),w=W(()=>{var T,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 j=I[D]||(I[D]={row:N,column:D,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});j.type="normal";const F=N*4+D,G=r.date.startOf("year").month(F),ae=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;j.inRange=!!(r.minDate&&G.isSameOrAfter(r.minDate,"month")&&ae&&G.isSameOrBefore(ae,"month"))||!!(r.minDate&&G.isSameOrBefore(r.minDate,"month")&&ae&&G.isSameOrAfter(ae,"month")),(T=r.minDate)!=null&&T.isSameOrAfter(ae)?(j.start=!!(ae&&G.isSame(ae,"month")),j.end=r.minDate&&G.isSame(r.minDate,"month")):(j.start=!!(r.minDate&&G.isSame(r.minDate,"month")),j.end=!!(ae&&G.isSame(ae,"month"))),B.isSame(G)&&(j.type="today"),j.text=F,j.disabled=((A=r.disabledDate)==null?void 0:A.call(r,G.toDate()))||!1}}return R}),b=()=>{var T;(T=u.value)==null||T.focus()},k=T=>{const A={},R=r.date.year(),B=new Date,N=T.text;return A.disabled=r.disabledDate?o(R,N,s.value).every(r.disabledDate):!1,A.current=ws(r.parsedValue).findIndex(I=>un.isDayjs(I)&&I.year()===R&&I.month()===N)>=0,A.today=B.getFullYear()===R&&B.getMonth()===N,T.inRange&&(A["in-range"]=!0,T.start&&(A["start-date"]=!0),T.end&&(A["end-date"]=!0)),A},C=T=>{const A=r.date.year(),R=T.text;return ws(r.date).findIndex(B=>B.year()===A&&B.month()===R)>=0},P=T=>{var A;if(!r.rangeState.selecting)return;let R=T.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)}))},$=T=>{var A;const R=(A=T.target)==null?void 0:A.closest("td");if((R==null?void 0:R.tagName)!=="TD"||Xs(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(T.type==="keydown"){n("pick",ws(r.parsedValue),!1);return}const j=r.date.startOf("month").month(I),F=Xs(R,"current")?ws(r.parsedValue).filter(G=>Number(G)!==Number(j)):ws(r.parsedValue).concat([un(j)]);n("pick",F)}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 T,A;(T=l.value)!=null&&T.contains(document.activeElement)&&(await zt(),(A=u.value)==null||A.focus())}),t({focus:b}),(T,A)=>(Z(),ue("table",{role:"grid","aria-label":m(a)("el.datepicker.monthTablePrompt"),class:q(m(i).b()),onClick:$,onMousemove:P},[ve("tbody",{ref_key:"tbodyRef",ref:l},[(Z(!0),ue(Tt,null,_n(m(w),(R,B)=>(Z(),ue("tr",{key:B},[(Z(!0),ue(Tt,null,_n(R,(N,I)=>(Z(),ue("td",{key:I,ref_for:!0,ref:D=>C(N)&&(u.value=D),class:q(k(N)),"aria-selected":`${C(N)}`,"aria-label":m(a)(`el.datepicker.month${+N.text+1}`),tabindex:C(N)?0:-1,onKeydown:[Fr(tn($,["prevent","stop"]),["space"]),Fr(tn($,["prevent","stop"]),["enter"])]},[re(m(ED),{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 NM=vt(Q$e,[["__file","basic-month-table.vue"]]);const W$e=gt({...SD,selectionMode:kD("year")}),Y$e=xe({__name:"basic-year-table",props:W$e,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=(T,A)=>{const R=un(String(T)).locale(A).startOf("year"),N=R.endOf("year").dayOfYear();return Fh(N).map(I=>R.add(I,"day").toDate())},i=lt("year-table"),{t:a,lang:s}=or(),l=te(),u=te(),d=W(()=>Math.floor(r.date.year()/10)*10),p=te([[],[],[]]),v=te(),y=te(),w=W(()=>{var T;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 j=B*4+I+d.value,F=un().year(j),G=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;D.inRange=!!(r.minDate&&F.isSameOrAfter(r.minDate,"year")&&G&&F.isSameOrBefore(G,"year"))||!!(r.minDate&&F.isSameOrBefore(r.minDate,"year")&&G&&F.isSameOrAfter(G,"year")),(T=r.minDate)!=null&&T.isSameOrAfter(G)?(D.start=!!(G&&F.isSame(G,"year")),D.end=!!(r.minDate&&F.isSame(r.minDate,"year"))):(D.start=!!(r.minDate&&F.isSame(r.minDate,"year")),D.end=!!(G&&F.isSame(G,"year"))),R.isSame(F)&&(D.type="today"),D.text=j;const K=F.toDate();D.disabled=r.disabledDate&&r.disabledDate(K)||!1,N[I]=D}}return A}),b=()=>{var T;(T=u.value)==null||T.focus()},k=T=>{const A={},R=un().locale(s.value),B=T.text;return A.disabled=r.disabledDate?o(B,s.value).every(r.disabledDate):!1,A.today=R.year()===B,A.current=ws(r.parsedValue).findIndex(N=>N.year()===B)>=0,T.inRange&&(A["in-range"]=!0,T.start&&(A["start-date"]=!0),T.end&&(A["end-date"]=!0)),A},C=T=>{const A=T.text;return ws(r.date).findIndex(R=>R.year()===A)>=0},P=T=>{var A;const R=(A=T.target)==null?void 0:A.closest("td");if(!R||!R.textContent||Xs(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(T.type==="keydown"){n("pick",ws(r.parsedValue),!1);return}const j=Xs(R,"current")?ws(r.parsedValue).filter(F=>(F==null?void 0:F.year())!==I):ws(r.parsedValue).concat([D]);n("pick",j)}else n("pick",I)},$=T=>{var A;if(!r.rangeState.selecting)return;const R=(A=T.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 T,A;(T=l.value)!=null&&T.contains(document.activeElement)&&(await zt(),(A=u.value)==null||A.focus())}),t({focus:b}),(T,A)=>(Z(),ue("table",{role:"grid","aria-label":m(a)("el.datepicker.yearTablePrompt"),class:q(m(i).b()),onClick:P,onMousemove:$},[ve("tbody",{ref_key:"tbodyRef",ref:l},[(Z(!0),ue(Tt,null,_n(m(w),(R,B)=>(Z(),ue("tr",{key:B},[(Z(!0),ue(Tt,null,_n(R,(N,I)=>(Z(),ue("td",{key:`${B}_${I}`,ref_for:!0,ref:D=>C(N)&&(u.value=D),class:q(["available",k(N)]),"aria-selected":C(N),"aria-label":String(N.text),tabindex:C(N)?0:-1,onKeydown:[Fr(tn(P,["prevent","stop"]),["space"]),Fr(tn(P,["prevent","stop"]),["enter"])]},[re(m(ED),{cell:N},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var IM=vt(Y$e,[["__file","basic-year-table.vue"]]);const Z$e=xe({__name:"panel-date-pick",props:N$e,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(me,Ve,ke)=>!0,o=lt("picker-panel"),i=lt("date-picker"),a=mv(),s=Qi(),{t:l,lang:u}=or(),d=Pt("EP_PICKER_BASE"),p=Pt(DC),{shortcuts:v,disabledDate:y,cellClassName:w,defaultTime:b}=d.props,k=Cr(d.props,"defaultValue"),C=te(),P=te(un().locale(u.value)),$=te(!1);let T=!1;const A=W(()=>un(b).locale(u.value)),R=W(()=>P.value.month()),B=W(()=>P.value.year()),N=te([]),I=te(null),D=te(null),j=me=>N.value.length>0?r(me,N.value,n.format||"HH:mm:ss"):!0,F=me=>b&&!Me.value&&!$.value&&!T?A.value.year(me.year()).month(me.month()).date(me.date()):Ae.value?me.millisecond(0):me.startOf("day"),G=(me,...Ve)=>{if(!me)t("pick",me,...Ve);else if(xt(me)){const ke=me.map(F);t("pick",ke,...Ve)}else t("pick",F(me),...Ve);I.value=null,D.value=null,$.value=!1,T=!1},ae=async(me,Ve)=>{if(X.value==="date"){me=me;let ke=n.parsedValue?n.parsedValue.year(me.year()).month(me.month()).date(me.date()):me;j(ke)||(ke=N.value[0][0].year(me.year()).month(me.month()).date(me.date())),P.value=ke,G(ke,Ae.value||Ve),n.type==="datetime"&&(await zt(),Ct())}else X.value==="week"?G(me.date):X.value==="dates"&&G(me,!0)},K=me=>{const Ve=me?"add":"subtract";P.value=P.value[Ve](1,"month"),He("month")},H=me=>{const Ve=P.value,ke=me?"add":"subtract";P.value=oe.value==="year"?Ve[ke](10,"year"):Ve[ke](1,"year"),He("year")},oe=te("date"),J=W(()=>{const me=l("el.datepicker.year");if(oe.value==="year"){const Ve=Math.floor(B.value/10)*10;return me?`${Ve} ${me} - ${Ve+9} ${me}`:`${Ve} - ${Ve+9}`}return`${B.value} ${me}`}),z=me=>{const Ve=nn(me.value)?me.value():me.value;if(Ve){T=!0,G(un(Ve).locale(u.value));return}me.onClick&&me.onClick({attrs:a,slots:s,emit:t})},X=W(()=>{const{type:me}=n;return["week","month","months","year","years","dates"].includes(me)?me:"date"}),ee=W(()=>X.value==="dates"||X.value==="months"||X.value==="years"),he=W(()=>X.value==="date"?oe.value:X.value),fe=W(()=>!!v.length),Le=async(me,Ve)=>{X.value==="month"?(P.value=P.value.startOf("month").month(me),G(P.value,!1)):X.value==="months"?G(me,Ve!=null?Ve:!0):(P.value=P.value.startOf("month").month(me),oe.value="date",["month","year","date","week"].includes(X.value)&&(G(P.value,!0),await zt(),Ct())),He("month")},Ie=async(me,Ve)=>{X.value==="year"?(P.value=P.value.startOf("year").year(me),G(P.value,!1)):X.value==="years"?G(me,Ve!=null?Ve:!0):(P.value=P.value.year(me),oe.value="month",["month","year","date","week"].includes(X.value)&&(G(P.value,!0),await zt(),Ct())),He("year")},ze=async me=>{oe.value=me,await zt(),Ct()},Ae=W(()=>n.type==="datetime"||n.type==="datetimerange"),_e=W(()=>{const me=Ae.value||X.value==="dates",Ve=X.value==="years",ke=X.value==="months",Xe=oe.value==="date",nt=oe.value==="year",Ft=oe.value==="month";return me&&Xe||Ve&&nt||ke&&Ft}),ye=W(()=>y?n.parsedValue?xt(n.parsedValue)?y(n.parsedValue[0].toDate()):y(n.parsedValue.toDate()):!0:!1),Ne=()=>{if(ee.value)G(n.parsedValue);else{let me=n.parsedValue;if(!me){const Ve=un(b).locale(u.value),ke=Wt();me=Ve.year(ke.year()).month(ke.month()).date(ke.date())}P.value=me,G(me)}},Se=W(()=>y?y(un().locale(u.value).toDate()):!1),ce=()=>{const Ve=un().locale(u.value).toDate();$.value=!0,(!y||!y(Ve))&&j(Ve)&&(P.value=un().locale(u.value),G(P.value))},be=W(()=>n.timeFormat||BY(n.format)),pe=W(()=>n.dateFormat||LY(n.format)),Me=W(()=>{if(D.value)return D.value;if(!(!n.parsedValue&&!k.value))return(n.parsedValue||P.value).format(be.value)}),Ze=W(()=>{if(I.value)return I.value;if(!(!n.parsedValue&&!k.value))return(n.parsedValue||P.value).format(pe.value)}),Be=te(!1),$e=()=>{Be.value=!0},Je=()=>{Be.value=!1},Oe=me=>({hour:me.hour(),minute:me.minute(),second:me.second(),year:me.year(),month:me.month(),date:me.date()}),Ye=(me,Ve,ke)=>{const{hour:Xe,minute:nt,second:Ft}=Oe(me),Vn=n.parsedValue?n.parsedValue.hour(Xe).minute(nt).second(Ft):me;P.value=Vn,G(P.value,!0),ke||(Be.value=Ve)},ut=me=>{const Ve=un(me,be.value).locale(u.value);if(Ve.isValid()&&j(Ve)){const{year:ke,month:Xe,date:nt}=Oe(P.value);P.value=Ve.year(ke).month(Xe).date(nt),D.value=null,Be.value=!1,G(P.value,!0)}},qe=me=>{const Ve=un(me,pe.value).locale(u.value);if(Ve.isValid()){if(y&&y(Ve.toDate()))return;const{hour:ke,minute:Xe,second:nt}=Oe(P.value);P.value=Ve.hour(ke).minute(Xe).second(nt),I.value=null,G(P.value,!0)}},ot=me=>un.isDayjs(me)&&me.isValid()&&(y?!y(me.toDate()):!0),ft=me=>xt(me)?me.map(Ve=>Ve.format(n.format)):me.format(n.format),kt=me=>un(me,n.format).locale(u.value),Wt=()=>{const me=un(k.value).locale(u.value);if(!k.value){const Ve=A.value;return un().hour(Ve.hour()).minute(Ve.minute()).second(Ve.second()).locale(u.value)}return me},Ct=async()=>{var me;["week","month","year","date"].includes(X.value)&&((me=C.value)==null||me.focus(),X.value==="week"&&Ce(Qt.down))},ln=me=>{const{code:Ve}=me;[Qt.up,Qt.down,Qt.left,Qt.right,Qt.home,Qt.end,Qt.pageUp,Qt.pageDown].includes(Ve)&&(Ce(Ve),me.stopPropagation(),me.preventDefault()),[Qt.enter,Qt.space,Qt.numpadEnter].includes(Ve)&&I.value===null&&D.value===null&&(me.preventDefault(),G(P.value,!1))},Ce=me=>{var Ve;const{up:ke,down:Xe,left:nt,right:Ft,home:Vn,end:rt,pageUp:Lt,pageDown:wn}=Qt,Nt={year:{[ke]:-4,[Xe]:4,[nt]:-1,[Ft]:1,offset:(Ht,Sn)=>Ht.setFullYear(Ht.getFullYear()+Sn)},month:{[ke]:-4,[Xe]:4,[nt]:-1,[Ft]:1,offset:(Ht,Sn)=>Ht.setMonth(Ht.getMonth()+Sn)},week:{[ke]:-1,[Xe]:1,[nt]:-1,[Ft]:1,offset:(Ht,Sn)=>Ht.setDate(Ht.getDate()+Sn*7)},date:{[ke]:-7,[Xe]:7,[nt]:-1,[Ft]:1,[Vn]:Ht=>-Ht.getDay(),[rt]: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=P.value.toDate();for(;Math.abs(P.value.diff(Xt,"year",!0))<1;){const Ht=Nt[he.value];if(!Ht)return;if(Ht.offset(Xt,nn(Ht[me])?Ht[me](Xt):(Ve=Ht[me])!=null?Ve:0),y&&y(Xt))break;const Sn=un(Xt).locale(u.value);P.value=Sn,t("pick",Sn,!0);break}},He=me=>{t("panel-change",P.value.toDate(),me,oe.value)};return at(()=>X.value,me=>{if(["month","year"].includes(me)){oe.value=me;return}else if(me==="years"){oe.value="year";return}else if(me==="months"){oe.value="month";return}oe.value="date"},{immediate:!0}),at(()=>oe.value,()=>{p==null||p.updatePopper()}),at(()=>k.value,me=>{me&&(P.value=Wt())},{immediate:!0}),at(()=>n.parsedValue,me=>{if(me){if(ee.value||Array.isArray(me))return;P.value=me}else P.value=Wt()},{immediate:!0}),t("set-picker-option",["isValidValue",ot]),t("set-picker-option",["formatToString",ft]),t("set-picker-option",["parseUserInput",kt]),t("set-picker-option",["handleFocusPicker",Ct]),(me,Ve)=>(Z(),ue("div",{class:q([m(o).b(),m(i).b(),{"has-sidebar":me.$slots.sidebar||m(fe),"has-time":m(Ae)}])},[ve("div",{class:q(m(o).e("body-wrapper"))},[Ge(me.$slots,"sidebar",{class:q(m(o).e("sidebar"))}),m(fe)?(Z(),ue("div",{key:0,class:q(m(o).e("sidebar"))},[(Z(!0),ue(Tt,null,_n(m(v),(ke,Xe)=>(Z(),ue("button",{key:Xe,type:"button",class:q(m(o).e("shortcut")),onClick:nt=>z(ke)},ct(ke.text),11,["onClick"]))),128))],2)):Fe("v-if",!0),ve("div",{class:q(m(o).e("body"))},[m(Ae)?(Z(),ue("div",{key:0,class:q(m(i).e("time-header"))},[ve("span",{class:q(m(i).e("editor-wrap"))},[re(m(ti),{placeholder:m(l)("el.datepicker.selectDate"),"model-value":m(Ze),size:"small","validate-event":!1,onInput:ke=>I.value=ke,onChange:qe},null,8,["placeholder","model-value","onInput"])],2),yn((Z(),ue("span",{class:q(m(i).e("editor-wrap"))},[re(m(ti),{placeholder:m(l)("el.datepicker.selectTime"),"model-value":m(Me),size:"small","validate-event":!1,onFocus:$e,onInput:ke=>D.value=ke,onChange:ut},null,8,["placeholder","model-value","onInput"]),re(m(Uk),{visible:Be.value,format:m(be),"parsed-value":P.value,onPick:Ye},null,8,["visible","format","parsed-value"])],2)),[[m(pd),Je]])],2)):Fe("v-if",!0),yn(ve("div",{class:q([m(i).e("header"),(oe.value==="year"||oe.value==="month")&&m(i).e("header--bordered")])},[ve("span",{class:q(m(i).e("prev-btn"))},[ve("button",{type:"button","aria-label":m(l)("el.datepicker.prevYear"),class:q(["d-arrow-left",m(o).e("icon-btn")]),onClick:ke=>H(!1)},[Ge(me.$slots,"prev-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(Jh))]),_:1})])],10,["aria-label","onClick"]),yn(ve("button",{type:"button","aria-label":m(l)("el.datepicker.prevMonth"),class:q([m(o).e("icon-btn"),"arrow-left"]),onClick:ke=>K(!1)},[Ge(me.$slots,"prev-month",{},()=>[re(m(jt),null,{default:le(()=>[re(m(qh))]),_:1})])],10,["aria-label","onClick"]),[[pr,oe.value==="date"]])],2),ve("span",{role:"button",class:q(m(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Fr(ke=>ze("year"),["enter"]),onClick:ke=>ze("year")},ct(m(J)),43,["onKeydown","onClick"]),yn(ve("span",{role:"button","aria-live":"polite",tabindex:"0",class:q([m(i).e("header-label"),{active:oe.value==="month"}]),onKeydown:Fr(ke=>ze("month"),["enter"]),onClick:ke=>ze("month")},ct(m(l)(`el.datepicker.month${m(R)+1}`)),43,["onKeydown","onClick"]),[[pr,oe.value==="date"]]),ve("span",{class:q(m(i).e("next-btn"))},[yn(ve("button",{type:"button","aria-label":m(l)("el.datepicker.nextMonth"),class:q([m(o).e("icon-btn"),"arrow-right"]),onClick:ke=>K(!0)},[Ge(me.$slots,"next-month",{},()=>[re(m(jt),null,{default:le(()=>[re(m(xs))]),_:1})])],10,["aria-label","onClick"]),[[pr,oe.value==="date"]]),ve("button",{type:"button","aria-label":m(l)("el.datepicker.nextYear"),class:q([m(o).e("icon-btn"),"d-arrow-right"]),onClick:ke=>H(!0)},[Ge(me.$slots,"next-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(ep))]),_:1})])],10,["aria-label","onClick"])],2)],2),[[pr,oe.value!=="time"]]),ve("div",{class:q(m(o).e("content")),onKeydown:ln},[oe.value==="date"?(Z(),Qe(RM,{key:0,ref_key:"currentViewRef",ref:C,"selection-mode":m(X),date:P.value,"parsed-value":me.parsedValue,"disabled-date":m(y),"cell-class-name":m(w),onPick:ae},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):Fe("v-if",!0),oe.value==="year"?(Z(),Qe(IM,{key:1,ref_key:"currentViewRef",ref:C,"selection-mode":m(X),date:P.value,"disabled-date":m(y),"parsed-value":me.parsedValue,onPick:Ie},null,8,["selection-mode","date","disabled-date","parsed-value"])):Fe("v-if",!0),oe.value==="month"?(Z(),Qe(NM,{key:2,ref_key:"currentViewRef",ref:C,"selection-mode":m(X),date:P.value,"parsed-value":me.parsedValue,"disabled-date":m(y),onPick:Le},null,8,["selection-mode","date","parsed-value","disabled-date"])):Fe("v-if",!0)],34)],2)],2),yn(ve("div",{class:q(m(o).e("footer"))},[yn(re(m(ro),{text:"",size:"small",class:q(m(o).e("link-btn")),disabled:m(Se),onClick:ce},{default:le(()=>[St(ct(m(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[pr,!m(ee)]]),re(m(ro),{plain:"",size:"small",class:q(m(o).e("link-btn")),disabled:m(ye),onClick:Ne},{default:le(()=>[St(ct(m(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[pr,m(_e)]])],2))}});var U$e=vt(Z$e,[["__file","panel-date-pick.vue"]]);const H$e=gt({...RZ,...xD,visible:Boolean}),NZ=e=>{const{emit:t}=Cn(),n=mv(),r=Qi();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})}},IZ=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:o,onParsedValueChanged:i})=>{const{emit:a}=Cn(),{pickerNs:s}=Pt(LC),l=lt("date-range-picker"),{t:u,lang:d}=or(),p=NZ(d),v=te(),y=te(),w=te({endDate:null,selecting:!1}),b=T=>{w.value=T},k=(T=!1)=>{const A=m(v),R=m(y);Wy([A,R])&&a("pick",[A,R],T)},C=T=>{w.value.selecting=T,T||(w.value.endDate=null)},P=T=>{if(xt(T)&&T.length===2){const[A,R]=T;v.value=A,n.value=A,y.value=R,i(m(v),m(y))}else $()},$=()=>{const[T,A]=CD(m(t),{lang:m(d),unit:o,unlinkPanels:e.unlinkPanels});v.value=void 0,y.value=void 0,n.value=T,r.value=A};return at(t,T=>{T&&$()},{immediate:!0}),at(()=>e.parsedValue,P,{immediate:!0}),{minDate:v,maxDate:y,rangeState:w,lang:d,ppNs:s,drpNs:l,handleChangeRange:b,handleRangeConfirm:k,handleShortcutClick:p,onSelect:C,onReset:P,t:u}},bx="month",X$e=xe({__name:"panel-date-range",props:H$e,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=Pt("EP_PICKER_BASE"),{disabledDate:o,cellClassName:i,defaultTime:a,clearable:s}=r.props,l=Cr(r.props,"format"),u=Cr(r.props,"shortcuts"),d=Cr(r.props,"defaultValue"),{lang:p}=or(),v=te(un().locale(p.value)),y=te(un().locale(p.value).add(1,bx)),{minDate:w,maxDate:b,rangeState:k,ppNs:C,drpNs:P,handleChangeRange:$,handleRangeConfirm:T,handleShortcutClick:A,onSelect:R,onReset:B,t:N}=IZ(n,{defaultValue:d,leftDate:v,rightDate:y,unit:bx,onParsedValueChanged:Ve});at(()=>n.visible,ke=>{!ke&&k.value.selecting&&(B(n.parsedValue),R(!1))});const I=te({min:null,max:null}),D=te({min:null,max:null}),j=W(()=>`${v.value.year()} ${N("el.datepicker.year")} ${N(`el.datepicker.month${v.value.month()+1}`)}`),F=W(()=>`${y.value.year()} ${N("el.datepicker.year")} ${N(`el.datepicker.month${y.value.month()+1}`)}`),G=W(()=>v.value.year()),ae=W(()=>v.value.month()),K=W(()=>y.value.year()),H=W(()=>y.value.month()),oe=W(()=>!!u.value.length),J=W(()=>I.value.min!==null?I.value.min:w.value?w.value.format(fe.value):""),z=W(()=>I.value.max!==null?I.value.max:b.value||w.value?(b.value||w.value).format(fe.value):""),X=W(()=>D.value.min!==null?D.value.min:w.value?w.value.format(he.value):""),ee=W(()=>D.value.max!==null?D.value.max:b.value||w.value?(b.value||w.value).format(he.value):""),he=W(()=>n.timeFormat||BY(l.value)),fe=W(()=>n.dateFormat||LY(l.value)),Le=ke=>Wy(ke)&&(o?!o(ke[0].toDate())&&!o(ke[1].toDate()):!0),Ie=()=>{v.value=v.value.subtract(1,"year"),n.unlinkPanels||(y.value=v.value.add(1,"month")),be("year")},ze=()=>{v.value=v.value.subtract(1,"month"),n.unlinkPanels||(y.value=v.value.add(1,"month")),be("month")},Ae=()=>{n.unlinkPanels?y.value=y.value.add(1,"year"):(v.value=v.value.add(1,"year"),y.value=v.value.add(1,"month")),be("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")),be("month")},ye=()=>{v.value=v.value.add(1,"year"),be("year")},Ne=()=>{v.value=v.value.add(1,"month"),be("month")},Se=()=>{y.value=y.value.subtract(1,"year"),be("year")},ce=()=>{y.value=y.value.subtract(1,"month"),be("month")},be=ke=>{t("panel-change",[v.value.toDate(),y.value.toDate()],ke)},pe=W(()=>{const ke=(ae.value+1)%12,Xe=ae.value+1>=12?1:0;return n.unlinkPanels&&new Date(G.value+Xe,ke)<new Date(K.value,H.value)}),Me=W(()=>n.unlinkPanels&&K.value*12+H.value-(G.value*12+ae.value+1)>=12),Ze=W(()=>!(w.value&&b.value&&!k.value.selecting&&Wy([w.value,b.value]))),Be=W(()=>n.type==="datetime"||n.type==="datetimerange"),$e=(ke,Xe)=>{if(!!ke)return a?un(a[Xe]||a).locale(p.value).year(ke.year()).month(ke.month()).date(ke.date()):ke},Je=(ke,Xe=!0)=>{const nt=ke.minDate,Ft=ke.maxDate,Vn=$e(nt,0),rt=$e(Ft,1);b.value===rt&&w.value===Vn||(t("calendar-change",[nt.toDate(),Ft&&Ft.toDate()]),b.value=rt,w.value=Vn,!(!Xe||Be.value)&&T())},Oe=te(!1),Ye=te(!1),ut=()=>{Oe.value=!1},qe=()=>{Ye.value=!1},ot=(ke,Xe)=>{I.value[Xe]=ke;const nt=un(ke,fe.value).locale(p.value);if(nt.isValid()){if(o&&o(nt.toDate()))return;Xe==="min"?(v.value=nt,w.value=(w.value||v.value).year(nt.year()).month(nt.month()).date(nt.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(w.value))&&(y.value=nt.add(1,"month"),b.value=w.value.add(1,"month"))):(y.value=nt,b.value=(b.value||y.value).year(nt.year()).month(nt.month()).date(nt.date()),!n.unlinkPanels&&(!w.value||w.value.isAfter(b.value))&&(v.value=nt.subtract(1,"month"),w.value=b.value.subtract(1,"month")))}},ft=(ke,Xe)=>{I.value[Xe]=null},kt=(ke,Xe)=>{D.value[Xe]=ke;const nt=un(ke,he.value).locale(p.value);nt.isValid()&&(Xe==="min"?(Oe.value=!0,w.value=(w.value||v.value).hour(nt.hour()).minute(nt.minute()).second(nt.second())):(Ye.value=!0,b.value=(b.value||y.value).hour(nt.hour()).minute(nt.minute()).second(nt.second()),y.value=b.value))},Wt=(ke,Xe)=>{D.value[Xe]=null,Xe==="min"?(v.value=w.value,Oe.value=!1,(!b.value||b.value.isBefore(w.value))&&(b.value=w.value)):(y.value=b.value,Ye.value=!1,b.value&&b.value.isBefore(w.value)&&(w.value=b.value))},Ct=(ke,Xe,nt)=>{D.value.min||(ke&&(v.value=ke,w.value=(w.value||v.value).hour(ke.hour()).minute(ke.minute()).second(ke.second())),nt||(Oe.value=Xe),(!b.value||b.value.isBefore(w.value))&&(b.value=w.value,y.value=ke))},ln=(ke,Xe,nt)=>{D.value.max||(ke&&(y.value=ke,b.value=(b.value||y.value).hour(ke.hour()).minute(ke.minute()).second(ke.second())),nt||(Ye.value=Xe),b.value&&b.value.isBefore(w.value)&&(w.value=b.value))},Ce=()=>{v.value=CD(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)},He=ke=>xt(ke)?ke.map(Xe=>Xe.format(l.value)):ke.format(l.value),me=ke=>xt(ke)?ke.map(Xe=>un(Xe,l.value).locale(p.value)):un(ke,l.value).locale(p.value);function Ve(ke,Xe){if(n.unlinkPanels&&Xe){const nt=(ke==null?void 0:ke.year())||0,Ft=(ke==null?void 0:ke.month())||0,Vn=Xe.year(),rt=Xe.month();y.value=nt===Vn&&Ft===rt?Xe.add(1,bx):Xe}else y.value=v.value.add(1,bx),Xe&&(y.value=y.value.hour(Xe.hour()).minute(Xe.minute()).second(Xe.second()))}return t("set-picker-option",["isValidValue",Le]),t("set-picker-option",["parseUserInput",me]),t("set-picker-option",["formatToString",He]),t("set-picker-option",["handleClear",Ce]),(ke,Xe)=>(Z(),ue("div",{class:q([m(C).b(),m(P).b(),{"has-sidebar":ke.$slots.sidebar||m(oe),"has-time":m(Be)}])},[ve("div",{class:q(m(C).e("body-wrapper"))},[Ge(ke.$slots,"sidebar",{class:q(m(C).e("sidebar"))}),m(oe)?(Z(),ue("div",{key:0,class:q(m(C).e("sidebar"))},[(Z(!0),ue(Tt,null,_n(m(u),(nt,Ft)=>(Z(),ue("button",{key:Ft,type:"button",class:q(m(C).e("shortcut")),onClick:Vn=>m(A)(nt)},ct(nt.text),11,["onClick"]))),128))],2)):Fe("v-if",!0),ve("div",{class:q(m(C).e("body"))},[m(Be)?(Z(),ue("div",{key:0,class:q(m(P).e("time-header"))},[ve("span",{class:q(m(P).e("editors-wrap"))},[ve("span",{class:q(m(P).e("time-picker-wrap"))},[re(m(ti),{size:"small",disabled:m(k).selecting,placeholder:m(N)("el.datepicker.startDate"),class:q(m(P).e("editor")),"model-value":m(J),"validate-event":!1,onInput:nt=>ot(nt,"min"),onChange:nt=>ft(nt,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),yn((Z(),ue("span",{class:q(m(P).e("time-picker-wrap"))},[re(m(ti),{size:"small",class:q(m(P).e("editor")),disabled:m(k).selecting,placeholder:m(N)("el.datepicker.startTime"),"model-value":m(X),"validate-event":!1,onFocus:nt=>Oe.value=!0,onInput:nt=>kt(nt,"min"),onChange:nt=>Wt(nt,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),re(m(Uk),{visible:Oe.value,format:m(he),"datetime-role":"start","parsed-value":v.value,onPick:Ct},null,8,["visible","format","parsed-value"])],2)),[[m(pd),ut]])],2),ve("span",null,[re(m(jt),null,{default:le(()=>[re(m(xs))]),_:1})]),ve("span",{class:q([m(P).e("editors-wrap"),"is-right"])},[ve("span",{class:q(m(P).e("time-picker-wrap"))},[re(m(ti),{size:"small",class:q(m(P).e("editor")),disabled:m(k).selecting,placeholder:m(N)("el.datepicker.endDate"),"model-value":m(z),readonly:!m(w),"validate-event":!1,onInput:nt=>ot(nt,"max"),onChange:nt=>ft(nt,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),yn((Z(),ue("span",{class:q(m(P).e("time-picker-wrap"))},[re(m(ti),{size:"small",class:q(m(P).e("editor")),disabled:m(k).selecting,placeholder:m(N)("el.datepicker.endTime"),"model-value":m(ee),readonly:!m(w),"validate-event":!1,onFocus:nt=>m(w)&&(Ye.value=!0),onInput:nt=>kt(nt,"max"),onChange:nt=>Wt(nt,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),re(m(Uk),{"datetime-role":"end",visible:Ye.value,format:m(he),"parsed-value":y.value,onPick:ln},null,8,["visible","format","parsed-value"])],2)),[[m(pd),qe]])],2)],2)):Fe("v-if",!0),ve("div",{class:q([[m(C).e("content"),m(P).e("content")],"is-left"])},[ve("div",{class:q(m(P).e("header"))},[ve("button",{type:"button",class:q([m(C).e("icon-btn"),"d-arrow-left"]),"aria-label":m(N)("el.datepicker.prevYear"),onClick:Ie},[Ge(ke.$slots,"prev-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(Jh))]),_:1})])],10,["aria-label"]),ve("button",{type:"button",class:q([m(C).e("icon-btn"),"arrow-left"]),"aria-label":m(N)("el.datepicker.prevMonth"),onClick:ze},[Ge(ke.$slots,"prev-month",{},()=>[re(m(jt),null,{default:le(()=>[re(m(qh))]),_:1})])],10,["aria-label"]),ke.unlinkPanels?(Z(),ue("button",{key:0,type:"button",disabled:!m(Me),class:q([[m(C).e("icon-btn"),{"is-disabled":!m(Me)}],"d-arrow-right"]),"aria-label":m(N)("el.datepicker.nextYear"),onClick:ye},[Ge(ke.$slots,"next-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(ep))]),_:1})])],10,["disabled","aria-label"])):Fe("v-if",!0),ke.unlinkPanels?(Z(),ue("button",{key:1,type:"button",disabled:!m(pe),class:q([[m(C).e("icon-btn"),{"is-disabled":!m(pe)}],"arrow-right"]),"aria-label":m(N)("el.datepicker.nextMonth"),onClick:Ne},[Ge(ke.$slots,"next-month",{},()=>[re(m(jt),null,{default:le(()=>[re(m(xs))]),_:1})])],10,["disabled","aria-label"])):Fe("v-if",!0),ve("div",null,ct(m(j)),1)],2),re(RM,{"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:Je,onSelect:m(R)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),ve("div",{class:q([[m(C).e("content"),m(P).e("content")],"is-right"])},[ve("div",{class:q(m(P).e("header"))},[ke.unlinkPanels?(Z(),ue("button",{key:0,type:"button",disabled:!m(Me),class:q([[m(C).e("icon-btn"),{"is-disabled":!m(Me)}],"d-arrow-left"]),"aria-label":m(N)("el.datepicker.prevYear"),onClick:Se},[Ge(ke.$slots,"prev-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(Jh))]),_:1})])],10,["disabled","aria-label"])):Fe("v-if",!0),ke.unlinkPanels?(Z(),ue("button",{key:1,type:"button",disabled:!m(pe),class:q([[m(C).e("icon-btn"),{"is-disabled":!m(pe)}],"arrow-left"]),"aria-label":m(N)("el.datepicker.prevMonth"),onClick:ce},[Ge(ke.$slots,"prev-month",{},()=>[re(m(jt),null,{default:le(()=>[re(m(qh))]),_:1})])],10,["disabled","aria-label"])):Fe("v-if",!0),ve("button",{type:"button","aria-label":m(N)("el.datepicker.nextYear"),class:q([m(C).e("icon-btn"),"d-arrow-right"]),onClick:Ae},[Ge(ke.$slots,"next-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(ep))]),_:1})])],10,["aria-label"]),ve("button",{type:"button",class:q([m(C).e("icon-btn"),"arrow-right"]),"aria-label":m(N)("el.datepicker.nextMonth"),onClick:_e},[Ge(ke.$slots,"next-month",{},()=>[re(m(jt),null,{default:le(()=>[re(m(xs))]),_:1})])],10,["aria-label"]),ve("div",null,ct(m(F)),1)],2),re(RM,{"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:Je,onSelect:m(R)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),m(Be)?(Z(),ue("div",{key:0,class:q(m(C).e("footer"))},[m(s)?(Z(),Qe(m(ro),{key:0,text:"",size:"small",class:q(m(C).e("link-btn")),onClick:Ce},{default:le(()=>[St(ct(m(N)("el.datepicker.clear")),1)]),_:1},8,["class"])):Fe("v-if",!0),re(m(ro),{plain:"",size:"small",class:q(m(C).e("link-btn")),disabled:m(Ze),onClick:nt=>m(T)(!1)},{default:le(()=>[St(ct(m(N)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])],2)):Fe("v-if",!0)],2))}});var G$e=vt(X$e,[["__file","panel-date-range.vue"]]);const K$e=gt({...xD}),q$e=["pick","set-picker-option","calendar-change"],J$e=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=or(),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}},_x="year",eAe=xe({name:"DatePickerMonthRange"}),tAe=xe({...eAe,props:K$e,emits:q$e,setup(e,{emit:t}){const n=e,{lang:r}=or(),o=Pt("EP_PICKER_BASE"),{shortcuts:i,disabledDate:a}=o.props,s=Cr(o.props,"format"),l=Cr(o.props,"defaultValue"),u=te(un().locale(r.value)),d=te(un().locale(r.value).add(1,_x)),{minDate:p,maxDate:v,rangeState:y,ppNs:w,drpNs:b,handleChangeRange:k,handleRangeConfirm:C,handleShortcutClick:P,onSelect:$}=IZ(n,{defaultValue:l,leftDate:u,rightDate:d,unit:_x,onParsedValueChanged:J}),T=W(()=>!!i.length),{leftPrevYear:A,rightNextYear:R,leftNextYear:B,rightPrevYear:N,leftLabel:I,rightLabel:D,leftYear:j,rightYear:F}=J$e({unlinkPanels:Cr(n,"unlinkPanels"),leftDate:u,rightDate:d}),G=W(()=>n.unlinkPanels&&F.value>j.value+1),ae=(z,X=!0)=>{const ee=z.minDate,he=z.maxDate;v.value===he&&p.value===ee||(t("calendar-change",[ee.toDate(),he&&he.toDate()]),v.value=he,p.value=ee,X&&C())},K=()=>{u.value=CD(m(l),{lang:m(r),unit:"year",unlinkPanels:n.unlinkPanels})[0],d.value=u.value.add(1,"year"),t("pick",null)},H=z=>xt(z)?z.map(X=>X.format(s.value)):z.format(s.value),oe=z=>xt(z)?z.map(X=>un(X,s.value).locale(r.value)):un(z,s.value).locale(r.value);function J(z,X){if(n.unlinkPanels&&X){const ee=(z==null?void 0:z.year())||0,he=X.year();d.value=ee===he?X.add(1,_x):X}else d.value=u.value.add(1,_x)}return t("set-picker-option",["isValidValue",Wy]),t("set-picker-option",["formatToString",H]),t("set-picker-option",["parseUserInput",oe]),t("set-picker-option",["handleClear",K]),(z,X)=>(Z(),ue("div",{class:q([m(w).b(),m(b).b(),{"has-sidebar":Boolean(z.$slots.sidebar)||m(T)}])},[ve("div",{class:q(m(w).e("body-wrapper"))},[Ge(z.$slots,"sidebar",{class:q(m(w).e("sidebar"))}),m(T)?(Z(),ue("div",{key:0,class:q(m(w).e("sidebar"))},[(Z(!0),ue(Tt,null,_n(m(i),(ee,he)=>(Z(),ue("button",{key:he,type:"button",class:q(m(w).e("shortcut")),onClick:fe=>m(P)(ee)},ct(ee.text),11,["onClick"]))),128))],2)):Fe("v-if",!0),ve("div",{class:q(m(w).e("body"))},[ve("div",{class:q([[m(w).e("content"),m(b).e("content")],"is-left"])},[ve("div",{class:q(m(b).e("header"))},[ve("button",{type:"button",class:q([m(w).e("icon-btn"),"d-arrow-left"]),onClick:m(A)},[Ge(z.$slots,"prev-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(Jh))]),_:1})])],10,["onClick"]),z.unlinkPanels?(Z(),ue("button",{key:0,type:"button",disabled:!m(G),class:q([[m(w).e("icon-btn"),{[m(w).is("disabled")]:!m(G)}],"d-arrow-right"]),onClick:m(B)},[Ge(z.$slots,"next-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(ep))]),_:1})])],10,["disabled","onClick"])):Fe("v-if",!0),ve("div",null,ct(m(I)),1)],2),re(NM,{"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:q([[m(w).e("content"),m(b).e("content")],"is-right"])},[ve("div",{class:q(m(b).e("header"))},[z.unlinkPanels?(Z(),ue("button",{key:0,type:"button",disabled:!m(G),class:q([[m(w).e("icon-btn"),{"is-disabled":!m(G)}],"d-arrow-left"]),onClick:m(N)},[Ge(z.$slots,"prev-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(Jh))]),_:1})])],10,["disabled","onClick"])):Fe("v-if",!0),ve("button",{type:"button",class:q([m(w).e("icon-btn"),"d-arrow-right"]),onClick:m(R)},[Ge(z.$slots,"next-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(ep))]),_:1})])],10,["onClick"]),ve("div",null,ct(m(D)),1)],2),re(NM,{"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 nAe=vt(tAe,[["__file","panel-month-range.vue"]]);const rAe=gt({...xD}),oAe=["pick","set-picker-option","calendar-change"],iAe=({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}},K6="year",aAe=xe({name:"DatePickerYearRange"}),sAe=xe({...aAe,props:rAe,emits:oAe,setup(e,{emit:t}){const n=e,{lang:r}=or(),o=te(un().locale(r.value)),i=te(o.value.add(10,"year")),{pickerNs:a}=Pt(LC),s=lt("date-range-picker"),l=W(()=>!!ae.length),u=W(()=>[a.b(),s.b(),{"has-sidebar":Boolean(Qi().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=NZ(r),{leftPrevYear:y,rightNextYear:w,leftNextYear:b,rightPrevYear:k,leftLabel:C,rightLabel:P,leftYear:$,rightYear:T}=iAe({unlinkPanels:Cr(n,"unlinkPanels"),leftDate:o,rightDate:i}),A=W(()=>n.unlinkPanels&&T.value>$.value+1),R=te(),B=te(),N=te({endDate:null,selecting:!1}),I=fe=>{N.value=fe},D=(fe,Le=!0)=>{const Ie=fe.minDate,ze=fe.maxDate;B.value===ze&&R.value===Ie||(t("calendar-change",[Ie.toDate(),ze&&ze.toDate()]),B.value=ze,R.value=Ie,Le&&j())},j=(fe=!1)=>{Wy([R.value,B.value])&&t("pick",[R.value,B.value],fe)},F=fe=>{N.value.selecting=fe,fe||(N.value.endDate=null)},G=Pt("EP_PICKER_BASE"),{shortcuts:ae,disabledDate:K}=G.props,H=Cr(G.props,"format"),oe=Cr(G.props,"defaultValue"),J=()=>{let fe;if(xt(oe.value)){const Le=un(oe.value[0]);let Ie=un(oe.value[1]);return n.unlinkPanels||(Ie=Le.add(10,K6)),[Le,Ie]}else oe.value?fe=un(oe.value):fe=un();return fe=fe.locale(r.value),[fe,fe.add(10,K6)]};at(()=>oe.value,fe=>{if(fe){const Le=J();o.value=Le[0],i.value=Le[1]}},{immediate:!0}),at(()=>n.parsedValue,fe=>{if(fe&&fe.length===2)if(R.value=fe[0],B.value=fe[1],o.value=R.value,n.unlinkPanels&&B.value){const Le=R.value.year(),Ie=B.value.year();i.value=Le===Ie?B.value.add(10,"year"):B.value}else i.value=o.value.add(10,"year");else{const Le=J();R.value=void 0,B.value=void 0,o.value=Le[0],i.value=Le[1]}},{immediate:!0});const z=fe=>xt(fe)?fe.map(Le=>un(Le,H.value).locale(r.value)):un(fe,H.value).locale(r.value),X=fe=>xt(fe)?fe.map(Le=>Le.format(H.value)):fe.format(H.value),ee=fe=>Wy(fe)&&(K?!K(fe[0].toDate())&&!K(fe[1].toDate()):!0),he=()=>{const fe=J();o.value=fe[0],i.value=fe[1],B.value=void 0,R.value=void 0,t("pick",null)};return t("set-picker-option",["isValidValue",ee]),t("set-picker-option",["parseUserInput",z]),t("set-picker-option",["formatToString",X]),t("set-picker-option",["handleClear",he]),(fe,Le)=>(Z(),ue("div",{class:q(m(u))},[ve("div",{class:q(m(a).e("body-wrapper"))},[Ge(fe.$slots,"sidebar",{class:q(m(a).e("sidebar"))}),m(l)?(Z(),ue("div",{key:0,class:q(m(a).e("sidebar"))},[(Z(!0),ue(Tt,null,_n(m(ae),(Ie,ze)=>(Z(),ue("button",{key:ze,type:"button",class:q(m(a).e("shortcut")),onClick:Ae=>m(v)(Ie)},ct(Ie.text),11,["onClick"]))),128))],2)):Fe("v-if",!0),ve("div",{class:q(m(a).e("body"))},[ve("div",{class:q(m(d).content)},[ve("div",{class:q(m(s).e("header"))},[ve("button",{type:"button",class:q(m(d).arrowLeftBtn),onClick:m(y)},[Ge(fe.$slots,"prev-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(Jh))]),_:1})])],10,["onClick"]),fe.unlinkPanels?(Z(),ue("button",{key:0,type:"button",disabled:!m(A),class:q(m(d).arrowRightBtn),onClick:m(b)},[Ge(fe.$slots,"next-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(ep))]),_:1})])],10,["disabled","onClick"])):Fe("v-if",!0),ve("div",null,ct(m(C)),1)],2),re(IM,{"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:F},null,8,["date","min-date","max-date","range-state","disabled-date"])],2),ve("div",{class:q(m(p).content)},[ve("div",{class:q(m(s).e("header"))},[fe.unlinkPanels?(Z(),ue("button",{key:0,type:"button",disabled:!m(A),class:q(m(p).arrowLeftBtn),onClick:m(k)},[Ge(fe.$slots,"prev-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(Jh))]),_:1})])],10,["disabled","onClick"])):Fe("v-if",!0),ve("button",{type:"button",class:q(m(p).arrowRightBtn),onClick:m(w)},[Ge(fe.$slots,"next-year",{},()=>[re(m(jt),null,{default:le(()=>[re(m(ep))]),_:1})])],10,["onClick"]),ve("div",null,ct(m(P)),1)],2),re(IM,{"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:F},null,8,["date","min-date","max-date","range-state","disabled-date"])],2)],2)],2)],2))}});var lAe=vt(sAe,[["__file","panel-year-range.vue"]]);const uAe=function(e){switch(e){case"daterange":case"datetimerange":return G$e;case"monthrange":return nAe;case"yearrange":return lAe;default:return U$e}};un.extend(tZ);un.extend(C$e);un.extend(yD);un.extend(E$e);un.extend(T$e);un.extend(P$e);un.extend($$e);un.extend(A$e);var cAe=xe({name:"ElDatePicker",install:null,props:M$e,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const o=lt("picker-panel");Wn("ElPopperOptions",rr(Cr(e,"popperOptions"))),Wn(LC,{slots:r,pickerNs:o});const i=te();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:rEe[e.type]||Km,d=uAe(e.type);return re(zY,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 fAe=pn(cAe),TD=Symbol("elDescriptions");var b_=xe({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Pt(TD,{})}},render(){var e,t,n,r,o,i,a;const s=hwe(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,P=s.labelClassName,$={width:Fo(s.width),minWidth:Fo(s.minWidth)},T=lt("descriptions");switch(this.type){case"label":return yn(Zt(this.tag,{style:$,class:[T.e("cell"),T.e("label"),T.is("bordered-label",u),T.is("vertical-label",p),k,P],colSpan:p?w:1},v),l);case"content":return yn(Zt(this.tag,{style:$,class:[T.e("cell"),T.e("content"),T.is("bordered-content",u),T.is("vertical-content",p),b,C],colSpan:p?w:w*2-1},y),l);default:return yn(Zt("td",{style:$,class:[T.e("cell"),b],colSpan:w},[zi(v)?void 0:Zt("span",{class:[T.e("label"),P]},v),Zt("span",{class:[T.e("content"),C]},y)]),l)}}});const dAe=gt({row:{type:je(Array),default:()=>[]}}),hAe=xe({name:"ElDescriptionsRow"}),pAe=xe({...hAe,props:dAe,setup(e){const t=Pt(TD,{});return(n,r)=>m(t).direction==="vertical"?(Z(),ue(Tt,{key:0},[ve("tr",null,[(Z(!0),ue(Tt,null,_n(n.row,(o,i)=>(Z(),Qe(m(b_),{key:`tr1-${i}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),ve("tr",null,[(Z(!0),ue(Tt,null,_n(n.row,(o,i)=>(Z(),Qe(m(b_),{key:`tr2-${i}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(Z(),ue("tr",{key:1},[(Z(!0),ue(Tt,null,_n(n.row,(o,i)=>(Z(),ue(Tt,{key:`tr3-${i}`},[m(t).border?(Z(),ue(Tt,{key:0},[re(m(b_),{cell:o,tag:"td",type:"label"},null,8,["cell"]),re(m(b_),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(Z(),Qe(m(b_),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var gAe=vt(pAe,[["__file","descriptions-row.vue"]]);const vAe=gt({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Mi,title:{type:String,default:""},extra:{type:String,default:""}}),mAe=xe({name:"ElDescriptions"}),yAe=xe({...mAe,props:vAe,setup(e){const t=e,n=lt("descriptions"),r=_i(),o=Qi();Wn(TD,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=Bh(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(),ue("div",{class:q(m(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(Z(),ue("div",{key:0,class:q(m(n).e("header"))},[ve("div",{class:q(m(n).e("title"))},[Ge(l.$slots,"title",{},()=>[St(ct(l.title),1)])],2),ve("div",{class:q(m(n).e("extra"))},[Ge(l.$slots,"extra",{},()=>[St(ct(l.extra),1)])],2)],2)):Fe("v-if",!0),ve("div",{class:q(m(n).e("body"))},[ve("table",{class:q([m(n).e("table"),m(n).is("bordered",l.border)])},[ve("tbody",null,[(Z(!0),ue(Tt,null,_n(s(),(d,p)=>(Z(),Qe(gAe,{key:p,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var bAe=vt(yAe,[["__file","description.vue"]]);const _Ae=gt({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:""}}),DZ=xe({name:"ElDescriptionsItem",props:_Ae}),OAe=pn(bAe,{DescriptionsItem:DZ}),wAe=xo(DZ),SAe=gt({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:je([String,Array,Object])},zIndex:{type:je([String,Number])}}),xAe={click:e=>e instanceof MouseEvent},kAe="overlay";var CAe=xe({name:"ElOverlay",props:SAe,emits:xAe,setup(e,{slots:t,emit:n}){const r=lt(kAe),o=l=>{n("click",l)},{onClick:i,onMousedown:a,onMouseup:s}=nD(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},[Ge(t,"default")],uu.STYLE|uu.CLASS|uu.PROPS,["onClick","onMouseup","onMousedown"]):Zt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ge(t,"default")])}});const PD=CAe,jZ=Symbol("dialogInjectionKey"),LZ=gt({center:Boolean,alignCenter:Boolean,closeIcon:{type:zr},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),EAe={close:()=>!0},TAe=xe({name:"ElDialogContent"}),PAe=xe({...TAe,props:LZ,emits:EAe,setup(e,{expose:t}){const n=e,{t:r}=or(),{Close:o}=zI,{dialogRef:i,headerRef:a,bodyId:s,ns:l,style:u}=Pt(jZ),{focusTrapRef:d}=Pt(gD),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=CC(d,i),y=W(()=>n.draggable),w=W(()=>n.overflow),{resetPostion:b}=AW(i,a,y,w);return t({resetPostion:b}),(k,C)=>(Z(),ue("div",{ref:m(v),class:q(m(p)),style:Vt(m(u)),tabindex:"-1"},[ve("header",{ref_key:"headerRef",ref:a,class:q([m(l).e("header"),{"show-close":k.showClose}])},[Ge(k.$slots,"header",{},()=>[ve("span",{role:"heading","aria-level":k.ariaLevel,class:q(m(l).e("title"))},ct(k.title),11,["aria-level"])]),k.showClose?(Z(),ue("button",{key:0,"aria-label":m(r)("el.dialog.close"),class:q(m(l).e("headerbtn")),type:"button",onClick:P=>k.$emit("close")},[re(m(jt),{class:q(m(l).e("close"))},{default:le(()=>[(Z(),Qe(Dn(k.closeIcon||m(o))))]),_:1},8,["class"])],10,["aria-label","onClick"])):Fe("v-if",!0)],2),ve("div",{id:m(s),class:q(m(l).e("body"))},[Ge(k.$slots,"default")],10,["id"]),k.$slots.footer?(Z(),ue("footer",{key:0,class:q(m(l).e("footer"))},[Ge(k.$slots,"footer")],2)):Fe("v-if",!0)],6))}});var $Ae=vt(PAe,[["__file","dialog-content.vue"]]);const BZ=gt({...LZ,appendToBody:Boolean,appendTo:{type:je([String,Object]),default:"body"},beforeClose:{type:je(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"}}),VZ={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[En]:e=>Ho(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},FZ=(e,t)=>{var n;const o=Cn().emit,{nextZIndex:i}=g0();let a="";const s=La(),l=La(),u=te(!1),d=te(!1),p=te(!1),v=te((n=e.zIndex)!=null?n:i());let y,w;const b=RC("namespace",U_),k=W(()=>{const K={},H=`--${b.value}-dialog`;return e.fullscreen||(e.top&&(K[`${H}-margin-top`]=e.top),e.width&&(K[`${H}-width`]=Fo(e.width))),K}),C=W(()=>e.alignCenter?{display:"flex"}:{});function P(){o("opened")}function $(){o("closed"),o(En,!1),e.destroyOnClose&&(p.value=!1)}function T(){o("close")}function A(){w==null||w(),y==null||y(),e.openDelay&&e.openDelay>0?{stop:y}=rv(()=>I(),e.openDelay):I()}function R(){y==null||y(),w==null||w(),e.closeDelay&&e.closeDelay>0?{stop:w}=rv(()=>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(){!nr||(u.value=!0)}function D(){u.value=!1}function j(){o("openAutoFocus")}function F(){o("closeAutoFocus")}function G(K){var H;((H=K.detail)==null?void 0:H.focusReason)==="pointer"&&K.preventDefault()}e.lockScroll&&UI(u);function ae(){e.closeOnPressEscape&&B()}return at(()=>e.modelValue,K=>{K?(d.value=!1,A(),p.value=!0,v.value=_I(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:P,afterLeave:$,beforeLeave:T,handleClose:B,onModalClick:N,close:R,doClose:D,onOpenAutoFocus:j,onCloseAutoFocus:F,onCloseRequested:ae,onFocusoutPrevented:G,titleId:s,bodyId:l,closed:d,style:k,overlayDialogStyle:C,rendered:p,visible:u,zIndex:v}},AAe=xe({name:"ElDialog",inheritAttrs:!1}),MAe=xe({...AAe,props:BZ,emits:VZ,setup(e,{expose:t}){const n=e,r=Qi();Vh({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=te(),a=te(),s=te(),{visible:l,titleId:u,bodyId:d,style:p,overlayDialogStyle:v,rendered:y,zIndex:w,afterEnter:b,afterLeave:k,beforeLeave:C,handleClose:P,onModalClick:$,onOpenAutoFocus:T,onCloseAutoFocus:A,onCloseRequested:R,onFocusoutPrevented:B}=FZ(n,i);Wn(jZ,{dialogRef:i,headerRef:a,bodyId:d,ns:o,rendered:y,style:p});const N=nD($),I=W(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s,resetPostion:()=>{s.value.resetPostion()}}),(j,F)=>(Z(),Qe(m(m0),{to:j.appendTo,disabled:j.appendTo!=="body"?!1:!j.appendToBody},{default:le(()=>[re($i,{name:"dialog-fade",onAfterEnter:m(b),onAfterLeave:m(k),onBeforeLeave:m(C),persisted:""},{default:le(()=>[yn(re(m(PD),{"custom-mask-event":"",mask:j.modal,"overlay-class":j.modalClass,"z-index":m(w)},{default:le(()=>[ve("div",{role:"dialog","aria-modal":"true","aria-label":j.title||void 0,"aria-labelledby":j.title?void 0:m(u),"aria-describedby":m(d),class:q(`${m(o).namespace.value}-overlay-dialog`),style:Vt(m(v)),onClick:m(N).onClick,onMousedown:m(N).onMousedown,onMouseup:m(N).onMouseup},[re(m(P1),{loop:"",trapped:m(l),"focus-start-el":"container",onFocusAfterTrapped:m(T),onFocusAfterReleased:m(A),onFocusoutPrevented:m(B),onReleaseRequested:m(R)},{default:le(()=>[m(y)?(Z(),Qe($Ae,In({key:0,ref_key:"dialogContentRef",ref:s},j.$attrs,{center:j.center,"align-center":j.alignCenter,"close-icon":j.closeIcon,draggable:m(I),overflow:j.overflow,fullscreen:j.fullscreen,"show-close":j.showClose,title:j.title,"aria-level":j.headerAriaLevel,onClose:m(P)}),Dl({header:le(()=>[j.$slots.title?Ge(j.$slots,"title",{key:1}):Ge(j.$slots,"header",{key:0,close:m(P),titleId:m(u),titleClass:m(o).e("title")})]),default:le(()=>[Ge(j.$slots,"default")]),_:2},[j.$slots.footer?{name:"footer",fn:le(()=>[Ge(j.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):Fe("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"]),[[pr,m(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var RAe=vt(MAe,[["__file","dialog.vue"]]);const Pd=pn(RAe),NAe=gt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:je(String),default:"solid"}}),IAe=xe({name:"ElDivider"}),DAe=xe({...IAe,props:NAe,setup(e){const t=e,n=lt("divider"),r=W(()=>n.cssVar({"border-style":t.borderStyle}));return(o,i)=>(Z(),ue("div",{class:q([m(n).b(),m(n).m(o.direction)]),style:Vt(m(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(Z(),ue("div",{key:0,class:q([m(n).e("text"),m(n).is(o.contentPosition)])},[Ge(o.$slots,"default")],2)):Fe("v-if",!0)],6))}});var jAe=vt(DAe,[["__file","divider.vue"]]);const zZ=pn(jAe),LAe=gt({...BZ,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"}}),BAe=VZ,VAe=xe({name:"ElDrawer",inheritAttrs:!1}),FAe=xe({...VAe,props:LAe,emits:BAe,setup(e,{expose:t}){const n=e,r=Qi();Vh({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=te(),i=te(),a=lt("drawer"),{t:s}=or(),{afterEnter:l,afterLeave:u,beforeLeave:d,visible:p,rendered:v,titleId:y,bodyId:w,zIndex:b,onModalClick:k,onOpenAutoFocus:C,onCloseAutoFocus:P,onFocusoutPrevented:$,onCloseRequested:T,handleClose:A}=FZ(n,o),R=W(()=>n.direction==="rtl"||n.direction==="ltr"),B=W(()=>Fo(n.size));return t({handleClose:A,afterEnter:l,afterLeave:u}),(N,I)=>(Z(),Qe(m(m0),{to:N.appendTo,disabled:N.appendTo!=="body"?!1:!N.appendToBody},{default:le(()=>[re($i,{name:m(a).b("fade"),onAfterEnter:m(l),onAfterLeave:m(u),onBeforeLeave:m(d),persisted:""},{default:le(()=>[yn(re(m(PD),{mask:N.modal,"overlay-class":N.modalClass,"z-index":m(b),onClick:m(k)},{default:le(()=>[re(m(P1),{loop:"",trapped:m(p),"focus-trap-el":o.value,"focus-start-el":i.value,onFocusAfterTrapped:m(C),onFocusAfterReleased:m(P),onFocusoutPrevented:m($),onReleaseRequested:m(T)},{default:le(()=>[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:q(m(a).e("sr-focus")),tabindex:"-1"},null,2),N.withHeader?(Z(),ue("header",{key:0,class:q(m(a).e("header"))},[N.$slots.title?Ge(N.$slots,"title",{key:1},()=>[Fe(" DEPRECATED SLOT ")]):Ge(N.$slots,"header",{key:0,close:m(A),titleId:m(y),titleClass:m(a).e("title")},()=>[N.$slots.title?Fe("v-if",!0):(Z(),ue("span",{key:0,id:m(y),role:"heading","aria-level":N.headerAriaLevel,class:q(m(a).e("title"))},ct(N.title),11,["id","aria-level"]))]),N.showClose?(Z(),ue("button",{key:2,"aria-label":m(s)("el.drawer.close"),class:q(m(a).e("close-btn")),type:"button",onClick:m(A)},[re(m(jt),{class:q(m(a).e("close"))},{default:le(()=>[re(m(ks))]),_:1},8,["class"])],10,["aria-label","onClick"])):Fe("v-if",!0)],2)):Fe("v-if",!0),m(v)?(Z(),ue("div",{key:1,id:m(w),class:q(m(a).e("body"))},[Ge(N.$slots,"default")],10,["id"])):Fe("v-if",!0),N.$slots.footer?(Z(),ue("div",{key:2,class:q(m(a).e("footer"))},[Ge(N.$slots,"footer")],2)):Fe("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"]),[[pr,m(p)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var zAe=vt(FAe,[["__file","drawer.vue"]]);const $D=pn(zAe),QAe=xe({inheritAttrs:!1});function WAe(e,t,n,r,o,i){return Ge(e.$slots,"default")}var YAe=vt(QAe,[["render",WAe],["__file","collection.vue"]]);const ZAe=xe({name:"ElCollectionItem",inheritAttrs:!1});function UAe(e,t,n,r,o,i){return Ge(e.$slots,"default")}var HAe=vt(ZAe,[["render",UAe],["__file","collection-item.vue"]]);const QZ="data-el-collection-item",WZ=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),i={...YAe,name:t,setup(){const s=te(null),l=new Map;Wn(r,{itemMap:l,getItems:()=>{const d=m(s);if(!d)return[];const p=Array.from(d.querySelectorAll(`[${QZ}]`));return[...l.values()].sort((y,w)=>p.indexOf(y.ref)-p.indexOf(w.ref))},collectionRef:s})}},a={...HAe,name:n,setup(s,{attrs:l}){const u=te(null),d=Pt(r,void 0);Wn(o,{collectionItemRef:u}),vn(()=>{const p=m(u);p&&d.itemMap.set(p,{ref:p,...l})}),Hr(()=>{const p=m(u);d.itemMap.delete(p)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:i,ElCollectionItem:a}},XAe=gt({style:{type:je([String,Array,Object])},currentTabId:{type:je(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:je(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:GAe,ElCollectionItem:KAe,COLLECTION_INJECTION_KEY:AD,COLLECTION_ITEM_INJECTION_KEY:qAe}=WZ("RovingFocusGroup"),MD=Symbol("elRovingFocusGroup"),YZ=Symbol("elRovingFocusGroupItem"),JAe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},eMe=(e,t)=>{if(t!=="rtl")return e;switch(e){case Qt.right:return Qt.left;case Qt.left:return Qt.right;default:return e}},tMe=(e,t,n)=>{const r=eMe(e.key,n);if(!(t==="vertical"&&[Qt.left,Qt.right].includes(r))&&!(t==="horizontal"&&[Qt.up,Qt.down].includes(r)))return JAe[r]},nMe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),RD=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},q6="currentTabIdChange",J6="rovingFocusGroup.entryFocus",rMe={bubbles:!1,cancelable:!0},oMe=xe({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:XAe,emits:[q6,"entryFocus"],setup(e,{emit:t}){var n;const r=te((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),o=te(!1),i=te(!1),a=te(null),{getItems:s}=Pt(AD,void 0),l=W(()=>[{outline:"none"},e.style]),u=b=>{t(q6,b)},d=()=>{o.value=!0},p=Bo(b=>{var k;(k=e.onMousedown)==null||k.call(e,b)},()=>{i.value=!0}),v=Bo(b=>{var k;(k=e.onFocus)==null||k.call(e,b)},b=>{const k=!m(i),{target:C,currentTarget:P}=b;if(C===P&&k&&!m(o)){const $=new Event(J6,rMe);if(P==null||P.dispatchEvent($),!$.defaultPrevented){const T=s().filter(I=>I.focusable),A=T.find(I=>I.active),R=T.find(I=>I.id===m(r)),N=[A,R,...T].filter(Boolean).map(I=>I.ref);RD(N)}}i.value=!1}),y=Bo(b=>{var k;(k=e.onBlur)==null||k.call(e,b)},()=>{o.value=!1}),w=(...b)=>{t("entryFocus",...b)};Wn(MD,{currentTabbedId:c1(r),loop:Cr(e,"loop"),tabIndex:W(()=>m(o)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:l,orientation:Cr(e,"orientation"),dir:Cr(e,"dir"),onItemFocus:u,onItemShiftTab:d,onBlur:y,onFocus:v,onMousedown:p}),at(()=>e.currentTabId,b=>{r.value=b!=null?b:null}),Mr(a,J6,w)}});function iMe(e,t,n,r,o,i){return Ge(e.$slots,"default")}var aMe=vt(oMe,[["render",iMe],["__file","roving-focus-group-impl.vue"]]);const sMe=xe({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:GAe,ElRovingFocusGroupImpl:aMe}});function lMe(e,t,n,r,o,i){const a=Tn("el-roving-focus-group-impl"),s=Tn("el-focus-group-collection");return Z(),Qe(s,null,{default:le(()=>[re(a,ac(Zh(e.$attrs)),{default:le(()=>[Ge(e.$slots,"default")]),_:3},16)]),_:3})}var uMe=vt(sMe,[["render",lMe],["__file","roving-focus-group.vue"]]);const cMe=xe({components:{ElRovingFocusCollectionItem:KAe},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}=Pt(MD,void 0),{getItems:a}=Pt(AD,void 0),s=La(),l=te(null),u=Bo(y=>{t("mousedown",y)},y=>{e.focusable?o(m(s)):y.preventDefault()}),d=Bo(y=>{t("focus",y)},()=>{o(m(s))}),p=Bo(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 P=tMe(y);if(P){y.preventDefault();let T=a().filter(A=>A.focusable).map(A=>A.ref);switch(P){case"last":{T.reverse();break}case"prev":case"next":{P==="prev"&&T.reverse();const A=T.indexOf(C);T=r.value?nMe(T,A+1):T.slice(A+1);break}}zt(()=>{RD(T)})}}),v=W(()=>n.value===m(s));return Wn(YZ,{rovingFocusGroupItemRef:l,tabIndex:W(()=>m(v)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:p}),{id:s,handleKeydown:p,handleFocus:d,handleMousedown:u}}});function fMe(e,t,n,r,o,i){const a=Tn("el-roving-focus-collection-item");return Z(),Qe(a,{id:e.id,focusable:e.focusable,active:e.active},{default:le(()=>[Ge(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var dMe=vt(cMe,[["render",fMe],["__file","roving-focus-item.vue"]]);const lk=gt({trigger:MO.trigger,effect:{...Gi.effect,default:"light"},type:{type:je(String)},placement:{type:je(String),default:"bottom"},popperOptions:{type:je(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:je([Number,String]),default:0},maxHeight:{type:je([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:je(Object)},teleported:Gi.teleported}),ZZ=gt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:zr}}),hMe=gt({onKeydown:{type:je(Function)}}),pMe=[Qt.down,Qt.pageDown,Qt.home],UZ=[Qt.up,Qt.pageUp,Qt.end],gMe=[...pMe,...UZ],{ElCollection:vMe,ElCollectionItem:mMe,COLLECTION_INJECTION_KEY:yMe,COLLECTION_ITEM_INJECTION_KEY:bMe}=WZ("Dropdown"),BC=Symbol("elDropdown"),{ButtonGroup:_Me}=ro,OMe=xe({name:"ElDropdown",components:{ElButton:ro,ElButtonGroup:_Me,ElScrollbar:Oc,ElDropdownCollection:vMe,ElTooltip:na,ElRovingFocusGroup:uMe,ElOnlyChild:_Y,ElIcon:jt,ArrowDown:Ed},props:lk,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Cn(),r=lt("dropdown"),{t:o}=or(),i=te(),a=te(),s=te(null),l=te(null),u=te(null),d=te(null),p=te(!1),v=[Qt.enter,Qt.space,Qt.down],y=W(()=>({maxHeight:Fo(e.maxHeight)})),w=W(()=>[r.m(A.value)]),b=W(()=>Ra(e.trigger)),k=La().value,C=W(()=>e.id||k);at([i,b],([oe,J],[z])=>{var X,ee,he;(X=z==null?void 0:z.$el)!=null&&X.removeEventListener&&z.$el.removeEventListener("pointerenter",B),(ee=oe==null?void 0:oe.$el)!=null&&ee.removeEventListener&&oe.$el.removeEventListener("pointerenter",B),((he=oe==null?void 0:oe.$el)==null?void 0:he.addEventListener)&&J.includes("hover")&&oe.$el.addEventListener("pointerenter",B)},{immediate:!0}),Hr(()=>{var oe,J;(J=(oe=i.value)==null?void 0:oe.$el)!=null&&J.removeEventListener&&i.value.$el.removeEventListener("pointerenter",B)});function P(){$()}function $(){var oe;(oe=s.value)==null||oe.onClose()}function T(){var oe;(oe=s.value)==null||oe.onOpen()}const A=_i();function R(...oe){t("command",...oe)}function B(){var oe,J;(J=(oe=i.value)==null?void 0:oe.$el)==null||J.focus()}function N(){}function I(){const oe=m(l);b.value.includes("hover")&&(oe==null||oe.focus()),d.value=null}function D(oe){d.value=oe}function j(oe){p.value||(oe.preventDefault(),oe.stopImmediatePropagation())}function F(){t("visible-change",!0)}function G(oe){(oe==null?void 0:oe.type)==="keydown"&&l.value.focus()}function ae(){t("visible-change",!1)}return Wn(BC,{contentRef:l,role:W(()=>e.role),triggerId:C,isUsingKeyboard:p,onItemEnter:N,onItemLeave:I}),Wn("elDropdown",{instance:n,dropdownSize:A,handleClick:P,commandHandler:R,trigger:Cr(e,"trigger"),hideOnClick:Cr(e,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:y,dropdownTriggerKls:w,dropdownSize:A,triggerId:C,triggerKeys:v,currentTabId:d,handleCurrentTabIdChange:D,handlerMainButtonClick:oe=>{t("click",oe)},handleEntryFocus:j,handleClose:$,handleOpen:T,handleBeforeShowTooltip:F,handleShowTooltip:G,handleBeforeHideTooltip:ae,onFocusAfterTrapped:oe=>{var J,z;oe.preventDefault(),(z=(J=l.value)==null?void 0:J.focus)==null||z.call(J,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:a}}});function wMe(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(),ue("div",{class:q([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},Dl({content:le(()=>[re(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:le(()=>[re(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:le(()=>[re(s,null,{default:le(()=>[Ge(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:le(()=>[re(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:le(()=>[Ge(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(),Qe(b,{key:0},{default:le(()=>[re(v,In({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:le(()=>[Ge(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:le(()=>[re(w,{class:q(e.ns.e("icon"))},{default:le(()=>[re(y)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Fe("v-if",!0)],2)}var SMe=vt(OMe,[["render",wMe],["__file","dropdown.vue"]]);const xMe=xe({name:"DropdownItemImpl",components:{ElIcon:jt},props:ZZ,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=lt("dropdown"),{role:r}=Pt(BC,void 0),{collectionItemRef:o}=Pt(bMe,void 0),{collectionItemRef:i}=Pt(qAe,void 0),{rovingFocusGroupItemRef:a,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:d}=Pt(YZ,void 0),p=CC(o,i,a),v=W(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),y=Bo(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:{[QZ]:""},role:v,tabIndex:s,handleFocus:l,handleKeydown:y,handleMousedown:d}}});function kMe(e,t,n,r,o,i){const a=Tn("el-icon");return Z(),ue(Tt,null,[e.divided?(Z(),ue("li",In({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):Fe("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(),Qe(a,{key:0},{default:le(()=>[(Z(),Qe(Dn(e.icon)))]),_:1})):Fe("v-if",!0),Ge(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var CMe=vt(xMe,[["render",kMe],["__file","dropdown-item-impl.vue"]]);const HZ=()=>{const e=Pt("elDropdown",{}),t=W(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},EMe=xe({name:"ElDropdownItem",components:{ElDropdownCollectionItem:mMe,ElRovingFocusItem:dMe,ElDropdownItemImpl:CMe},inheritAttrs:!1,props:ZZ,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=HZ(),o=Cn(),i=te(null),a=W(()=>{var y,w;return(w=(y=m(i))==null?void 0:y.textContent)!=null?w:""}),{onItemEnter:s,onItemLeave:l}=Pt(BC,void 0),u=Bo(y=>(t("pointermove",y),y.defaultPrevented),_L(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=Bo(y=>(t("pointerleave",y),y.defaultPrevented),_L(l)),p=Bo(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 TMe(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(),Qe(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:le(()=>[re(l,{focusable:!e.disabled},{default:le(()=>[re(s,In(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:le(()=>[Ge(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var XZ=vt(EMe,[["render",TMe],["__file","dropdown-item.vue"]]);const PMe=xe({name:"ElDropdownMenu",props:hMe,setup(e){const t=lt("dropdown"),{_elDropdownSize:n}=HZ(),r=n.value,{focusTrapRef:o,onKeydown:i}=Pt(gD,void 0),{contentRef:a,role:s,triggerId:l}=Pt(BC,void 0),{collectionRef:u,getItems:d}=Pt(yMe,void 0),{rovingFocusGroupRef:p,rovingFocusGroupRootStyle:v,tabIndex:y,onBlur:w,onFocus:b,onMousedown:k}=Pt(MD,void 0),{collectionRef:C}=Pt(AD,void 0),P=W(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),$=CC(a,u,o,p,C),T=Bo(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)||!gMe.includes(N))return;const j=d().filter(F=>!F.disabled).map(F=>F.ref);UZ.includes(N)&&j.reverse(),RD(j)});return{size:r,rovingFocusGroupRootStyle:v,tabIndex:y,dropdownKls:P,role:s,triggerId:l,dropdownListWrapperRef:$,handleKeydown:R=>{T(R),i(R)},onBlur:w,onFocus:b,onMousedown:k}}});function $Me(e,t,n,r,o,i){return Z(),ue("ul",{ref:e.dropdownListWrapperRef,class:q(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"])},[Ge(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var GZ=vt(PMe,[["render",$Me],["__file","dropdown-menu.vue"]]);const AMe=pn(SMe,{DropdownItem:XZ,DropdownMenu:GZ}),MMe=xo(XZ),RMe=xo(GZ),NMe=xe({name:"ImgEmpty"}),IMe=xe({...NMe,setup(e){const t=lt("empty"),n=La();return(r,o)=>(Z(),ue("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 DMe=vt(IMe,[["__file","img-empty.vue"]]);const jMe=gt({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),LMe=xe({name:"ElEmpty"}),BMe=xe({...LMe,props:jMe,setup(e){const t=e,{t:n}=or(),r=lt("empty"),o=W(()=>t.description||n("el.table.emptyText")),i=W(()=>({width:Fo(t.imageSize)}));return(a,s)=>(Z(),ue("div",{class:q(m(r).b())},[ve("div",{class:q(m(r).e("image")),style:Vt(m(i))},[a.image?(Z(),ue("img",{key:0,src:a.image,ondragstart:"return false"},null,8,["src"])):Ge(a.$slots,"image",{key:1},()=>[re(DMe)])],6),ve("div",{class:q(m(r).e("description"))},[a.$slots.description?Ge(a.$slots,"description",{key:0}):(Z(),ue("p",{key:1},ct(m(o)),1))],2),a.$slots.default?(Z(),ue("div",{key:0,class:q(m(r).e("bottom"))},[Ge(a.$slots,"default")],2)):Fe("v-if",!0)],2))}});var VMe=vt(BMe,[["__file","empty.vue"]]);const KZ=pn(VMe),FMe=gt({urlList:{type:je(Array),default:()=>wo([])},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:je(String)}}),zMe={close:()=>!0,switch:e=>en(e),rotate:e=>en(e)},QMe=xe({name:"ElImageViewer"}),WMe=xe({...QMe,props:FMe,emits:zMe,setup(e,{expose:t,emit:n}){var r;const o=e,i={CONTAIN:{name:"contain",icon:ld(SW)},ORIGINAL:{name:"original",icon:ld(W1e)}},{t:a}=or(),s=lt("image-viewer"),{nextZIndex:l}=g0(),u=te(),d=te([]),p=vre(),v=te(!0),y=te(o.initialIndex),w=Jr(i.CONTAIN),b=te({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),k=te((r=o.zIndex)!=null?r:l()),C=W(()=>{const{urlList:X}=o;return X.length<=1}),P=W(()=>y.value===0),$=W(()=>y.value===o.urlList.length-1),T=W(()=>o.urlList[y.value]),A=W(()=>[s.e("btn"),s.e("prev"),s.is("disabled",!o.infinite&&P.value)]),R=W(()=>[s.e("btn"),s.e("next"),s.is("disabled",!o.infinite&&$.value)]),B=W(()=>{const{scale:X,deg:ee,offsetX:he,offsetY:fe,enableTransition:Le}=b.value;let Ie=he/X,ze=fe/X;const Ae=ee*Math.PI/180,_e=Math.cos(Ae),ye=Math.sin(Ae);Ie=Ie*_e+ze*ye,ze=ze*_e-he/X*ye;const Ne={transform:`scale(${X}) rotate(${ee}deg) translate(${Ie}px, ${ze}px)`,transition:Le?"transform .3s":""};return w.value.name===i.CONTAIN.name&&(Ne.maxWidth=Ne.maxHeight="100%"),Ne});function N(){D(),n("close")}function I(){const X=Lh(he=>{switch(he.code){case Qt.esc:o.closeOnPressEscape&&N();break;case Qt.space:K();break;case Qt.left:oe();break;case Qt.up:z("zoomIn");break;case Qt.right:J();break;case Qt.down:z("zoomOut");break}}),ee=Lh(he=>{const fe=he.deltaY||he.deltaX;z(fe<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{Mr(document,"keydown",X),Mr(document,"wheel",ee)})}function D(){p.stop()}function j(){v.value=!1}function F(X){v.value=!1,X.target.alt=a("el.image.error")}function G(X){if(v.value||X.button!==0||!u.value)return;b.value.enableTransition=!1;const{offsetX:ee,offsetY:he}=b.value,fe=X.pageX,Le=X.pageY,Ie=Lh(Ae=>{b.value={...b.value,offsetX:ee+Ae.pageX-fe,offsetY:he+Ae.pageY-Le}}),ze=Mr(document,"mousemove",Ie);Mr(document,"mouseup",()=>{ze()}),X.preventDefault()}function ae(){b.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function K(){if(v.value)return;const X=Iy(i),ee=Object.values(i),he=w.value.name,Le=(ee.findIndex(Ie=>Ie.name===he)+1)%X.length;w.value=i[X[Le]],ae()}function H(X){const ee=o.urlList.length;y.value=(X+ee)%ee}function oe(){P.value&&!o.infinite||H(y.value-1)}function J(){$.value&&!o.infinite||H(y.value+1)}function z(X,ee={}){if(v.value)return;const{minScale:he,maxScale:fe}=o,{zoomRate:Le,rotateDeg:Ie,enableTransition:ze}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...ee};switch(X){case"zoomOut":b.value.scale>he&&(b.value.scale=Number.parseFloat((b.value.scale/Le).toFixed(3)));break;case"zoomIn":b.value.scale<fe&&(b.value.scale=Number.parseFloat((b.value.scale*Le).toFixed(3)));break;case"clockwise":b.value.deg+=Ie,n("rotate",b.value.deg);break;case"anticlockwise":b.value.deg-=Ie,n("rotate",b.value.deg);break}b.value.enableTransition=ze}return at(T,()=>{zt(()=>{const X=d.value[0];X!=null&&X.complete||(v.value=!0)})}),at(y,X=>{ae(),n("switch",X)}),vn(()=>{var X,ee;I(),(ee=(X=u.value)==null?void 0:X.focus)==null||ee.call(X)}),t({setActiveItem:H}),(X,ee)=>(Z(),Qe(m(m0),{to:"body",disabled:!X.teleported},{default:le(()=>[re($i,{name:"viewer-fade",appear:""},{default:le(()=>[ve("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:q(m(s).e("wrapper")),style:Vt({zIndex:k.value})},[ve("div",{class:q(m(s).e("mask")),onClick:tn(he=>X.hideOnClickModal&&N(),["self"])},null,10,["onClick"]),Fe(" CLOSE "),ve("span",{class:q([m(s).e("btn"),m(s).e("close")]),onClick:N},[re(m(jt),null,{default:le(()=>[re(m(ks))]),_:1})],2),Fe(" ARROW "),m(C)?Fe("v-if",!0):(Z(),ue(Tt,{key:0},[ve("span",{class:q(m(A)),onClick:oe},[re(m(jt),null,{default:le(()=>[re(m(qh))]),_:1})],2),ve("span",{class:q(m(R)),onClick:J},[re(m(jt),null,{default:le(()=>[re(m(xs))]),_:1})],2)],64)),Fe(" ACTIONS "),ve("div",{class:q([m(s).e("btn"),m(s).e("actions")])},[ve("div",{class:q(m(s).e("actions__inner"))},[re(m(jt),{onClick:he=>z("zoomOut")},{default:le(()=>[re(m(swe))]),_:1},8,["onClick"]),re(m(jt),{onClick:he=>z("zoomIn")},{default:le(()=>[re(m(EW))]),_:1},8,["onClick"]),ve("i",{class:q(m(s).e("actions__divider"))},null,2),re(m(jt),{onClick:K},{default:le(()=>[(Z(),Qe(Dn(m(w).icon)))]),_:1}),ve("i",{class:q(m(s).e("actions__divider"))},null,2),re(m(jt),{onClick:he=>z("anticlockwise")},{default:le(()=>[re(m(F1e))]),_:1},8,["onClick"]),re(m(jt),{onClick:he=>z("clockwise")},{default:le(()=>[re(m(xW))]),_:1},8,["onClick"])],2)],2),Fe(" CANVAS "),ve("div",{class:q(m(s).e("canvas"))},[(Z(!0),ue(Tt,null,_n(X.urlList,(he,fe)=>yn((Z(),ue("img",{ref_for:!0,ref:Le=>d.value[fe]=Le,key:he,src:he,style:Vt(m(B)),class:q(m(s).e("img")),crossorigin:X.crossorigin,onLoad:j,onError:F,onMousedown:G},null,46,["src","crossorigin"])),[[pr,fe===y.value]])),128))],2),Ge(X.$slots,"default")],6)]),_:3})]),_:3},8,["disabled"]))}});var YMe=vt(WMe,[["__file","image-viewer.vue"]]);const qZ=pn(YMe),ZMe=gt({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:je([String,Object])},previewSrcList:{type:je(Array),default:()=>wo([])},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:je(String)}}),UMe={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>en(e),close:()=>!0,show:()=>!0},HMe=xe({name:"ElImage",inheritAttrs:!1}),XMe=xe({...HMe,props:ZMe,emits:UMe,setup(e,{emit:t}){const n=e;let r="";const{t:o}=or(),i=lt("image"),a=mv(),s=W(()=>Ny(Object.entries(a).filter(([J])=>/^(data-|on[A-Z])/i.test(J)||["id","style"].includes(J)))),l=YI({excludeListeners:!0,excludeKeys:W(()=>Object.keys(s.value))}),u=te(),d=te(!1),p=te(!0),v=te(!1),y=te(),w=te(),b=nr&&"loading"in HTMLImageElement.prototype;let k,C;const P=W(()=>[i.e("inner"),T.value&&i.e("preview"),p.value&&i.is("loading")]),$=W(()=>{const{fit:J}=n;return nr&&J?{objectFit:J}:{}}),T=W(()=>{const{previewSrcList:J}=n;return Array.isArray(J)&&J.length>0}),A=W(()=>{const{previewSrcList:J,initialIndex:z}=n;let X=z;return z>J.length-1&&(X=0),X}),R=W(()=>n.loading==="eager"?!1:!b&&n.loading==="lazy"||n.lazy),B=()=>{!nr||(p.value=!0,d.value=!1,u.value=n.src)};function N(J){p.value=!1,d.value=!1,t("load",J)}function I(J){p.value=!1,d.value=!0,t("error",J)}function D(){dae(y.value,w.value)&&(B(),G())}const j=Wz(D,200,!0);async function F(){var J;if(!nr)return;await zt();const{scrollContainer:z}=n;Nl(z)?w.value=z:Gt(z)&&z!==""?w.value=(J=document.querySelector(z))!=null?J:void 0:y.value&&(w.value=II(y.value)),w.value&&(k=Mr(w,"scroll",j),setTimeout(()=>D(),100))}function G(){!nr||!w.value||!j||(k==null||k(),w.value=void 0)}function ae(J){if(!!J.ctrlKey){if(J.deltaY<0)return J.preventDefault(),!1;if(J.deltaY>0)return J.preventDefault(),!1}}function K(){!T.value||(C=Mr("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 oe(J){t("switch",J)}return at(()=>n.src,()=>{R.value?(p.value=!0,d.value=!1,G(),F()):B()}),vn(()=>{R.value?F():B()}),(J,z)=>(Z(),ue("div",In({ref_key:"container",ref:y},m(s),{class:[m(i).b(),J.$attrs.class]}),[d.value?Ge(J.$slots,"error",{key:0},()=>[ve("div",{class:q(m(i).e("error"))},ct(m(o)("el.image.error")),3)]):(Z(),ue(Tt,{key:1},[u.value!==void 0?(Z(),ue("img",In({key:0},m(l),{src:u.value,loading:J.loading,style:m($),class:m(P),crossorigin:J.crossorigin,onClick:K,onLoad:N,onError:I}),null,16,["src","loading","crossorigin"])):Fe("v-if",!0),p.value?(Z(),ue("div",{key:1,class:q(m(i).e("wrapper"))},[Ge(J.$slots,"placeholder",{},()=>[ve("div",{class:q(m(i).e("placeholder"))},null,2)])],2)):Fe("v-if",!0)],64)),m(T)?(Z(),ue(Tt,{key:2},[v.value?(Z(),Qe(m(qZ),{key:0,"z-index":J.zIndex,"initial-index":m(A),infinite:J.infinite,"zoom-rate":J.zoomRate,"min-scale":J.minScale,"max-scale":J.maxScale,"url-list":J.previewSrcList,crossorigin:J.crossorigin,"hide-on-click-modal":J.hideOnClickModal,teleported:J.previewTeleported,"close-on-press-escape":J.closeOnPressEscape,onClose:H,onSwitch:oe},{default:le(()=>[J.$slots.viewer?(Z(),ue("div",{key:0},[Ge(J.$slots,"viewer")])):Fe("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"])):Fe("v-if",!0)],64)):Fe("v-if",!0)],16))}});var GMe=vt(XMe,[["__file","image.vue"]]);const KMe=pn(GMe),qMe=gt({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:Mi,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},...pa(["ariaLabel"])}),JMe={[so]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Cs]:e=>en(e)||zi(e),[En]:e=>en(e)||zi(e)},eRe=xe({name:"ElInputNumber"}),tRe=xe({...eRe,props:qMe,emits:JMe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=or(),i=lt("input-number"),a=te(),s=rr({currentValue:r.modelValue,userInput:null}),{formItem:l}=ss(),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 Vo(r.precision)?Math.max(C(r.modelValue),K):(K>r.precision,r.precision)}),v=W(()=>r.controls&&r.controlsPosition==="right"),y=_i(),w=Is(),b=W(()=>{if(s.userInput!==null)return s.userInput;let K=s.currentValue;if(zi(K))return"";if(en(K)){if(Number.isNaN(K))return"";Vo(r.precision)||(K=K.toFixed(r.precision))}return K}),k=(K,H)=>{if(Vo(H)&&(H=p.value),H===0)return Math.round(K);let oe=String(K);const J=oe.indexOf(".");if(J===-1||!oe.replace(".","").split("")[J+H])return K;const ee=oe.length;return oe.charAt(ee-1)==="5"&&(oe=`${oe.slice(0,Math.max(0,ee-1))}6`),Number.parseFloat(Number(oe).toFixed(H))},C=K=>{if(zi(K))return 0;const H=K.toString(),oe=H.indexOf(".");let J=0;return oe!==-1&&(J=H.length-oe-1),J},P=(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=P(K);R(H),n(Cs,s.currentValue),G()},T=()=>{if(r.readonly||w.value||u.value)return;const K=Number(b.value)||0,H=P(K,-1);R(H),n(Cs,s.currentValue),G()},A=(K,H)=>{const{max:oe,min:J,step:z,precision:X,stepStrictly:ee,valueOnClear:he}=r;oe<J&&Ai("InputNumber","min should not be greater than max.");let fe=Number(K);if(zi(K)||Number.isNaN(fe))return null;if(K===""){if(he===null)return null;fe=Gt(he)?{min:J,max:oe}[he]:he}return ee&&(fe=k(Math.round(fe/z)*z,X)),Vo(X)||(fe=k(fe,X)),(fe>oe||fe<J)&&(fe=fe>oe?oe:J,H&&n(En,fe)),fe},R=(K,H=!0)=>{var oe;const J=s.currentValue,z=A(K);if(!H){n(En,z);return}J===z&&K||(s.userInput=null,n(En,z),J!==z&&n(so,z,J),r.validateEvent&&((oe=l==null?void 0:l.validate)==null||oe.call(l,"change").catch(X=>void 0)),s.currentValue=z)},B=K=>{s.userInput=K;const H=K===""?null:Number(K);n(Cs,H),R(H,!1)},N=K=>{const H=K!==""?Number(K):"";(en(H)&&!Number.isNaN(H)||K==="")&&R(H),G(),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)},j=K=>{n("focus",K)},F=K=>{var H;s.userInput=null,n("blur",K),r.validateEvent&&((H=l==null?void 0:l.validate)==null||H.call(l,"blur").catch(oe=>void 0))},G=()=>{s.currentValue!==r.modelValue&&(s.currentValue=r.modelValue)},ae=K=>{document.activeElement===K.target&&K.preventDefault()};return at(()=>r.modelValue,(K,H)=>{const oe=A(K,!0);s.userInput===null&&oe!==H&&(s.currentValue=oe)},{immediate:!0}),vn(()=>{var K;const{min:H,max:oe,modelValue:J}=r,z=(K=a.value)==null?void 0:K.input;if(z.setAttribute("role","spinbutton"),Number.isFinite(oe)?z.setAttribute("aria-valuemax",String(oe)):z.removeAttribute("aria-valuemax"),Number.isFinite(H)?z.setAttribute("aria-valuemin",String(H)):z.removeAttribute("aria-valuemin"),z.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),z.setAttribute("aria-disabled",String(w.value)),!en(J)&&J!=null){let X=Number(J);Number.isNaN(X)&&(X=null),n(En,X)}z.addEventListener("wheel",ae,{passive:!1})}),vc(()=>{var K,H;const oe=(K=a.value)==null?void 0:K.input;oe==null||oe.setAttribute("aria-valuenow",`${(H=s.currentValue)!=null?H:""}`)}),t({focus:I,blur:D}),(K,H)=>(Z(),ue("div",{class:q([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(),ue("span",{key:0,role:"button","aria-label":m(o)("el.inputNumber.decrease"),class:q([m(i).e("decrease"),m(i).is("disabled",m(u))]),onKeydown:Fr(T,["enter"])},[Ge(K.$slots,"decrease-icon",{},()=>[re(m(jt),null,{default:le(()=>[m(v)?(Z(),Qe(m(Ed),{key:0})):(Z(),Qe(m(A1e),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[m(Zk),T]]):Fe("v-if",!0),K.controls?yn((Z(),ue("span",{key:1,role:"button","aria-label":m(o)("el.inputNumber.increase"),class:q([m(i).e("increase"),m(i).is("disabled",m(d))]),onKeydown:Fr($,["enter"])},[Ge(K.$slots,"increase-icon",{},()=>[re(m(jt),null,{default:le(()=>[m(v)?(Z(),Qe(m(jI),{key:0})):(Z(),Qe(m(Vk),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[m(Zk),$]]):Fe("v-if",!0),re(m(ti),{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:[Fr(tn($,["prevent"]),["up"]),Fr(tn(T,["prevent"]),["down"])],onBlur:F,onFocus:j,onInput:B,onChange:N},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var nRe=vt(tRe,[["__file","input-number.vue"]]);const JZ=pn(nRe),rRe=gt({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:zr}}),oRe={click:e=>e instanceof MouseEvent},iRe=xe({name:"ElLink"}),aRe=xe({...iRe,props:rRe,emits:oRe,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(),ue("a",{class:q(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(),Qe(m(jt),{key:0},{default:le(()=>[(Z(),Qe(Dn(a.icon)))]),_:1})):Fe("v-if",!0),a.$slots.default?(Z(),ue("span",{key:1,class:q(m(r).e("inner"))},[Ge(a.$slots,"default")],2)):Fe("v-if",!0),a.$slots.icon?Ge(a.$slots,"icon",{key:2}):Fe("v-if",!0)],10,["href","target"]))}});var sRe=vt(aRe,[["__file","link.vue"]]);const lRe=pn(sRe);class uRe{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:{Xx(t,"mouseleave");break}case Qt.enter:case Qt.space:{o=!0,r.currentTarget.click();break}}return o&&(r.preventDefault(),r.stopPropagation()),!1})})}}class cRe{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 uRe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Qt.down:{Xx(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Qt.up:{Xx(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Qt.tab:{Xx(t.currentTarget,"mouseleave");break}case Qt.enter:case Qt.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class fRe{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 cRe(r,t)})}}const dRe=xe({name:"ElMenuCollapseTransition",setup(){const e=lt("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){vu(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){is(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Xs(n,e.m("collapse"))?(is(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),vu(n,e.m("collapse"))):(vu(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),is(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){vu(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function hRe(e,t,n,r,o,i){return Z(),Qe($i,In({mode:"out-in"},e.listeners),{default:le(()=>[Ge(e.$slots,"default")]),_:3},16)}var pRe=vt(dRe,[["render",hRe],["__file","menu-collapse-transition.vue"]]);function eU(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 gRe(e){return W(()=>{const n=e.backgroundColor;return n?new RY(n).shade(20).toString():""})}const tU=(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":gRe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},vRe=gt({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:zr},expandOpenIcon:{type:zr},collapseCloseIcon:{type:zr},collapseOpenIcon:{type:zr}}),W$="ElSubMenu";var ND=xe({name:W$,props:vRe,setup(e,{slots:t,expose:n}){const r=Cn(),{indexPath:o,parentMenu:i}=eU(r,W(()=>e.index)),a=lt("menu"),s=lt("sub-menu"),l=Pt("rootMenu");l||Ai(W$,"can not inject root menu");const u=Pt(`subMenu:${i.value.uid}`);u||Ai(W$,"can not inject sub menu");const d=te({}),p=te({});let v;const y=te(!1),w=te(),b=te(null),k=W(()=>N.value==="horizontal"&&P.value?"bottom-start":"right-start"),C=W(()=>N.value==="horizontal"&&P.value||N.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?R.value?e.expandOpenIcon:e.expandCloseIcon:Ed:e.collapseCloseIcon&&e.collapseOpenIcon?R.value?e.collapseOpenIcon:e.collapseCloseIcon:xs),P=W(()=>u.level===0),$=W(()=>{const X=e.teleported;return X===void 0?P.value:X}),T=W(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),A=W(()=>N.value==="horizontal"&&P.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 X=!1;return Object.values(d.value).forEach(ee=>{ee.active&&(X=!0)}),Object.values(p.value).forEach(ee=>{ee.active&&(X=!0)}),X}),N=W(()=>l.props.mode),I=rr({index:e.index,indexPath:o,active:B}),D=tU(l.props,u.level+1),j=W(()=>{var X;return(X=e.popperOffset)!=null?X:l.props.popperOffset}),F=W(()=>{var X;return(X=e.popperClass)!=null?X:l.props.popperClass}),G=W(()=>{var X;return(X=e.showTimeout)!=null?X:l.props.showTimeout}),ae=W(()=>{var X;return(X=e.hideTimeout)!=null?X:l.props.hideTimeout}),K=()=>{var X,ee,he;return(he=(ee=(X=b.value)==null?void 0:X.popperRef)==null?void 0:ee.popperInstanceRef)==null?void 0:he.destroy()},H=X=>{X||K()},oe=()=>{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})},J=(X,ee=G.value)=>{var he;if(X.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}=rv(()=>{l.openMenu(e.index,o.value)},ee),$.value&&((he=i.value.vnode.el)==null||he.dispatchEvent(new MouseEvent("mouseenter")))}},z=(X=!1)=>{var ee;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}=rv(()=>!y.value&&l.closeMenu(e.index,o.value),ae.value),$.value&&X&&((ee=u.handleMouseleave)==null||ee.call(u,!0))};at(()=>l.props.collapse,X=>H(Boolean(X)));{const X=he=>{p.value[he.index]=he},ee=he=>{delete p.value[he.index]};Wn(`subMenu:${r.uid}`,{addSubMenu:X,removeSubMenu:ee,handleMouseleave:z,mouseInChild:y,level:u.level+1})}return n({opened:R}),vn(()=>{l.addSubMenu(I),u.addSubMenu(I)}),Hr(()=>{u.removeSubMenu(I),l.removeSubMenu(I)}),()=>{var X;const ee=[(X=t.title)==null?void 0:X.call(t),Zt(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)?Zt(r.appContext.components[C.value]):Zt(C.value)})],he=l.isMenuPopup?Zt(na,{ref:b,visible:R.value,effect:"light",pure:!0,offset:j.value,showArrow:!1,persistent:!0,popperClass:F.value,placement:k.value,teleported:$.value,fallbackPlacements:A.value,transition:T.value,gpuAcceleration:!1},{content:()=>{var fe;return Zt("div",{class:[a.m(N.value),a.m("popup-container"),F.value],onMouseenter:Le=>J(Le,100),onMouseleave:()=>z(!0),onFocus:Le=>J(Le,100)},[Zt("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${k.value}`)],style:D.value},[(fe=t.default)==null?void 0:fe.call(t)])])},default:()=>Zt("div",{class:s.e("title"),onClick:oe},ee)}):Zt(Tt,{},[Zt("div",{class:s.e("title"),ref:w,onClick:oe},ee),Zt(jC,{},{default:()=>{var fe;return yn(Zt("ul",{role:"menu",class:[a.b(),a.m("inline")],style:D.value},[(fe=t.default)==null?void 0:fe.call(t)]),[[pr,R.value]])}})]);return Zt("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:J,onMouseleave:()=>z(),onFocus:J},[he])}}});const mRe=gt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:je(Array),default:()=>wo([])},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:zr,default:()=>N1e},popperEffect:{type:je(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),Y$=e=>Array.isArray(e)&&e.every(t=>Gt(t)),yRe={close:(e,t)=>Gt(e)&&Y$(t),open:(e,t)=>Gt(e)&&Y$(t),select:(e,t,n,r)=>Gt(e)&&Y$(t)&&Pn(n)&&(r===void 0||r instanceof Promise)};var bRe=xe({name:"ElMenu",props:mRe,emits:yRe,setup(e,{emit:t,slots:n,expose:r}){const o=Cn(),i=o.appContext.config.globalProperties.$router,a=te(),s=lt("menu"),l=lt("sub-menu"),u=te(-1),d=te(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=te(e.defaultActive),v=te({}),y=te({}),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 oe=y.value[H];oe&&k(H,oe.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)},P=(ae,K)=>{C(ae),t("close",ae,K)},$=({index:ae,indexPath:K})=>{d.value.includes(ae)?P(ae,K):k(ae,K)},T=ae=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:K,indexPath:H}=ae;if(!(zi(K)||zi(H)))if(e.router&&i){const oe=ae.route||K,J=i.push(oe).then(z=>(z||(p.value=K),z));t("select",K,H,{index:K,indexPath:H,route:oe},J)}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),oe=Number.parseInt(K.marginRight,10);return ae.offsetWidth+H+oe||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(Le=>Le.nodeName!=="#comment"&&(Le.nodeName!=="#text"||Le.nodeValue)),oe=64,J=getComputedStyle(a.value),z=Number.parseInt(J.paddingLeft,10),X=Number.parseInt(J.paddingRight,10),ee=a.value.clientWidth-z-X;let he=0,fe=0;return H.forEach((Le,Ie)=>{he+=R(Le),he<=ee-oe&&(fe=Ie+1)}),fe===H.length?-1:fe},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 j=()=>{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 F;Da(()=>{e.mode==="horizontal"&&e.ellipsis?F=Oo(a,j).stop:F==null||F()});const G=te(!1);{const ae=J=>{y.value[J.index]=J},K=J=>{delete y.value[J.index]};Wn("rootMenu",rr({props:e,openedMenus:d,items:v,subMenus:y,activeIndex:p,isMenuPopup:w,addMenuItem:J=>{v.value[J.index]=J},removeMenuItem:J=>{delete v.value[J.index]},addSubMenu:ae,removeSubMenu:K,openMenu:k,closeMenu:P,handleMenuItemClick:T,handleSubMenuClick:$})),Wn(`subMenu:${o.uid}`,{addSubMenu:ae,removeSubMenu:K,mouseInChild:G,level:0})}return vn(()=>{e.mode==="horizontal"&&new fRe(o.vnode.el,s.namespace.value)}),r({open:K=>{const{indexPath:H}=y.value[K];H.forEach(oe=>k(oe,H))},close:C,handleResize:j}),()=>{var ae,K;let H=(K=(ae=n.default)==null?void 0:ae.call(n))!=null?K:[];const oe=[];if(e.mode==="horizontal"&&a.value){const ee=Bh(H),he=u.value===-1?ee:ee.slice(0,u.value),fe=u.value===-1?[]:ee.slice(u.value);(fe==null?void 0:fe.length)&&e.ellipsis&&(H=he,oe.push(Zt(ND,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Zt(jt,{class:l.e("icon-more")},{default:()=>Zt(e.ellipsisIcon)}),default:()=>fe})))}const J=tU(e,0),z=e.closeOnClickOutside?[[pd,()=>{!d.value.length||G.value||(d.value.forEach(ee=>t("close",ee,N(ee))),d.value=[])}]]:[],X=yn(Zt("ul",{key:String(e.collapse),role:"menubar",ref:a,style:J.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...H,...oe]),z);return e.collapseTransition&&e.mode==="vertical"?Zt(pRe,()=>X):X}}});const _Re=gt({index:{type:je([String,null]),default:null},route:{type:je([String,Object])},disabled:Boolean}),ORe={click:e=>Gt(e.index)&&Array.isArray(e.indexPath)},Z$="ElMenuItem",wRe=xe({name:Z$,components:{ElTooltip:na},props:_Re,emits:ORe,setup(e,{emit:t}){const n=Cn(),r=Pt("rootMenu"),o=lt("menu"),i=lt("menu-item");r||Ai(Z$,"can not inject root menu");const{parentMenu:a,indexPath:s}=eU(n,Cr(e,"index")),l=Pt(`subMenu:${a.value.uid}`);l||Ai(Z$,"can not inject sub menu");const u=W(()=>e.index===r.activeIndex),d=rr({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)}),Hr(()=>{l.removeSubMenu(d),r.removeMenuItem(d)}),{parentMenu:a,rootMenu:r,active:u,nsMenu:o,nsMenuItem:i,handleClick:p}}});function SRe(e,t,n,r,o,i){const a=Tn("el-tooltip");return Z(),ue("li",{class:q([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(),Qe(a,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:le(()=>[Ge(e.$slots,"title")]),default:le(()=>[ve("div",{class:q(e.nsMenu.be("tooltip","trigger"))},[Ge(e.$slots,"default")],2)]),_:3},8,["effect"])):(Z(),ue(Tt,{key:1},[Ge(e.$slots,"default"),Ge(e.$slots,"title")],64))],10,["onClick"])}var nU=vt(wRe,[["render",SRe],["__file","menu-item.vue"]]);const xRe={title:String},kRe="ElMenuItemGroup",CRe=xe({name:kRe,props:xRe,setup(){return{ns:lt("menu-item-group")}}});function ERe(e,t,n,r,o,i){return Z(),ue("li",{class:q(e.ns.b())},[ve("div",{class:q(e.ns.e("title"))},[e.$slots.title?Ge(e.$slots,"title",{key:1}):(Z(),ue(Tt,{key:0},[St(ct(e.title),1)],64))],2),ve("ul",null,[Ge(e.$slots,"default")])],2)}var rU=vt(CRe,[["render",ERe],["__file","menu-item-group.vue"]]);const TRe=pn(bRe,{MenuItem:nU,MenuItemGroup:rU,SubMenu:ND}),PRe=xo(nU),$Re=xo(rU),ARe=xo(ND),MRe=gt({icon:{type:zr,default:()=>n1e},title:String,content:{type:String,default:""}}),RRe={back:()=>!0},NRe=xe({name:"ElPageHeader"}),IRe=xe({...NRe,props:MRe,emits:RRe,setup(e,{emit:t}){const n=Qi(),{t:r}=or(),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(),ue("div",{class:q(m(i))},[s.$slots.breadcrumb?(Z(),ue("div",{key:0,class:q(m(o).e("breadcrumb"))},[Ge(s.$slots,"breadcrumb")],2)):Fe("v-if",!0),ve("div",{class:q(m(o).e("header"))},[ve("div",{class:q(m(o).e("left"))},[ve("div",{class:q(m(o).e("back")),role:"button",tabindex:"0",onClick:a},[s.icon||s.$slots.icon?(Z(),ue("div",{key:0,"aria-label":s.title||m(r)("el.pageHeader.title"),class:q(m(o).e("icon"))},[Ge(s.$slots,"icon",{},()=>[s.icon?(Z(),Qe(m(jt),{key:0},{default:le(()=>[(Z(),Qe(Dn(s.icon)))]),_:1})):Fe("v-if",!0)])],10,["aria-label"])):Fe("v-if",!0),ve("div",{class:q(m(o).e("title"))},[Ge(s.$slots,"title",{},()=>[St(ct(s.title||m(r)("el.pageHeader.title")),1)])],2)],2),re(m(zZ),{direction:"vertical"}),ve("div",{class:q(m(o).e("content"))},[Ge(s.$slots,"content",{},()=>[St(ct(s.content),1)])],2)],2),s.$slots.extra?(Z(),ue("div",{key:0,class:q(m(o).e("extra"))},[Ge(s.$slots,"extra")],2)):Fe("v-if",!0)],2),s.$slots.default?(Z(),ue("div",{key:1,class:q(m(o).e("main"))},[Ge(s.$slots,"default")],2)):Fe("v-if",!0)],2))}});var DRe=vt(IRe,[["__file","page-header.vue"]]);const jRe=pn(DRe),oU=Symbol("elPaginationKey"),LRe=gt({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:zr}}),BRe={click:e=>e instanceof MouseEvent},VRe=xe({name:"ElPaginationPrev"}),FRe=xe({...VRe,props:LRe,emits:BRe,setup(e){const t=e,{t:n}=or(),r=W(()=>t.disabled||t.currentPage<=1);return(o,i)=>(Z(),ue("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(),ue("span",{key:0},ct(o.prevText),1)):(Z(),Qe(m(jt),{key:1},{default:le(()=>[(Z(),Qe(Dn(o.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var zRe=vt(FRe,[["__file","prev.vue"]]);const QRe=gt({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:zr}}),WRe=xe({name:"ElPaginationNext"}),YRe=xe({...WRe,props:QRe,emits:["click"],setup(e){const t=e,{t:n}=or(),r=W(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,i)=>(Z(),ue("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(),ue("span",{key:0},ct(o.nextText),1)):(Z(),Qe(m(jt),{key:1},{default:le(()=>[(Z(),Qe(Dn(o.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var ZRe=vt(YRe,[["__file","next.vue"]]);const iU=Symbol("ElSelectGroup"),b0=Symbol("ElSelect");function URe(e,t){const n=Pt(b0),r=Pt(iU,{disabled:!1}),o=W(()=>d(Ra(n.props.modelValue),e.value)),i=W(()=>{var y;if(n.props.multiple){const w=Ra((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=>fr(Mo(k,b))===Mo(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(NI(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 HRe=xe({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=La(),r=W(()=>[t.be("dropdown","item"),t.is("disabled",m(s)),t.is("selected",m(a)),t.is("hovering",m(v))]),o=rr({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:a,isDisabled:s,select:l,hoverItem:u,updateOption:d}=URe(e,o),{visible:p,hover:v}=ea(o),y=Cn().proxy;l.onOptionCreate(y),Hr(()=>{const b=y.value,{selected:k}=l.states,P=(l.props.multiple?k:[k]).some($=>$.value===y.value);zt(()=>{l.states.cachedOptions.get(b)===y&&!P&&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 XRe(e,t,n,r,o,i){return yn((Z(),ue("li",{id:e.id,class:q(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:tn(e.selectOptionClick,["stop"])},[Ge(e.$slots,"default",{},()=>[ve("span",null,ct(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[pr,e.visible]])}var ID=vt(HRe,[["render",XRe],["__file","option.vue"]]);const GRe=xe({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Pt(b0),t=lt("select"),n=W(()=>e.props.popperClass),r=W(()=>e.props.multiple),o=W(()=>e.props.fitInputWidth),i=te("");function a(){var s;i.value=`${(s=e.selectRef)==null?void 0:s.offsetWidth}px`}return vn(()=>{a(),Oo(e.selectRef,a)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function KRe(e,t,n,r,o,i){return Z(),ue("div",{class:q([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Vt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(Z(),ue("div",{key:0,class:q(e.ns.be("dropdown","header"))},[Ge(e.$slots,"header")],2)):Fe("v-if",!0),Ge(e.$slots,"default"),e.$slots.footer?(Z(),ue("div",{key:1,class:q(e.ns.be("dropdown","footer"))},[Ge(e.$slots,"footer")],2)):Fe("v-if",!0)],6)}var qRe=vt(GRe,[["render",KRe],["__file","select-dropdown.vue"]]);const JRe=11,eNe=(e,t)=>{const{t:n}=or(),r=La(),o=lt("select"),i=lt("input"),a=rr({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=te(null),l=te(null),u=te(null),d=te(null),p=te(null),v=te(null),y=te(null),w=te(null),b=te(null),k=te(null),C=te(null),P=te(null),{isComposing:$,handleCompositionStart:T,handleCompositionUpdate:A,handleCompositionEnd:R}=AC({afterComposition:wt=>Ct(wt)}),{wrapperRef:B,isFocused:N,handleBlur:I}=E1(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=te(!1),j=te(),{form:F,formItem:G}=ss(),{inputId:ae}=_c(e,{formItemContext:G}),{valueOnClear:K,isEmptyValue:H}=MC(e),oe=W(()=>e.disabled||(F==null?void 0:F.disabled)),J=W(()=>xt(e.modelValue)?e.modelValue.length>0:!H(e.modelValue)),z=W(()=>e.clearable&&!oe.value&&a.inputHovering&&J.value),X=W(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),ee=W(()=>o.is("reverse",X.value&&D.value)),he=W(()=>(G==null?void 0:G.validateState)||""),fe=W(()=>WI[he.value]),Le=W(()=>e.remote?300:0),Ie=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(()=>Ae.value.filter(wt=>wt.visible).length),Ae=W(()=>{const wt=Array.from(a.options.values()),rn=[];return a.optionValues.forEach(Yn=>{const dr=wt.findIndex(Yi=>Yi.value===Yn);dr>-1&&rn.push(wt[dr])}),rn.length>=wt.length?rn:wt}),_e=W(()=>Array.from(a.cachedOptions.values())),ye=W(()=>{const wt=Ae.value.filter(rn=>!rn.created).some(rn=>rn.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!wt}),Ne=()=>{e.filterable&&nn(e.filterMethod)||e.filterable&&e.remote&&nn(e.remoteMethod)||Ae.value.forEach(wt=>{var rn;(rn=wt.updateOption)==null||rn.call(wt,a.inputValue)})},Se=_i(),ce=W(()=>["small"].includes(Se.value)?"small":"default"),be=W({get(){return D.value&&Ie.value!==!1},set(wt){D.value=wt}}),pe=W(()=>{if(e.multiple&&!Vo(e.modelValue))return Ra(e.modelValue).length===0&&!a.inputValue;const wt=xt(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Vo(wt)?!a.inputValue:!0}),Me=W(()=>{var wt;const rn=(wt=e.placeholder)!=null?wt:n("el.select.placeholder");return e.multiple||!J.value?rn:a.selectedLabel}),Ze=W(()=>CL?null:"mouseenter");at(()=>e.modelValue,(wt,rn)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",Be("")),Je(),!os(wt,rn)&&e.validateEvent&&(G==null||G.validate("change").catch(Yn=>void 0))},{flush:"post",deep:!0}),at(()=>D.value,wt=>{wt?Be(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",wt)}),at(()=>a.options.entries(),()=>{var wt;if(!nr)return;const rn=((wt=s.value)==null?void 0:wt.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Vo(e.modelValue)||!Array.from(rn).includes(document.activeElement))&&Je(),e.defaultFirstOption&&(e.filterable||e.remote)&&ze.value&&$e()},{flush:"post"}),at(()=>a.hoveringIndex,wt=>{en(wt)&&wt>-1?j.value=Ae.value[wt]||{}:j.value={},Ae.value.forEach(rn=>{rn.hover=j.value===rn})}),Da(()=>{a.isBeforeHide||Ne()});const Be=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($e):zt(Ye))},$e=()=>{const wt=Ae.value.filter(dr=>dr.visible&&!dr.disabled&&!dr.states.groupDisabled),rn=wt.find(dr=>dr.created),Yn=wt[0];a.hoveringIndex=nt(Ae.value,rn||Yn)},Je=()=>{if(e.multiple)a.selectedLabel="";else{const rn=xt(e.modelValue)?e.modelValue[0]:e.modelValue,Yn=Oe(rn);a.selectedLabel=Yn.currentLabel,a.selected=Yn;return}const wt=[];Vo(e.modelValue)||Ra(e.modelValue).forEach(rn=>{wt.push(Oe(rn))}),a.selected=wt},Oe=wt=>{let rn;const Yn=Yx(wt).toLowerCase()==="object",dr=Yx(wt).toLowerCase()==="null",Yi=Yx(wt).toLowerCase()==="undefined";for(let Go=a.cachedOptions.size-1;Go>=0;Go--){const di=_e.value[Go];if(Yn?Mo(di.value,e.valueKey)===Mo(wt,e.valueKey):di.value===wt){rn={value:wt,currentLabel:di.currentLabel,get isDisabled(){return di.isDisabled}};break}}if(rn)return rn;const ii=Yn?wt.label:!dr&&!Yi?wt:"";return{value:wt,currentLabel:ii}},Ye=()=>{e.multiple?a.hoveringIndex=Ae.value.findIndex(wt=>a.selected.some(rn=>fi(rn)===fi(wt))):a.hoveringIndex=Ae.value.findIndex(wt=>fi(wt)===fi(a.selected))},ut=()=>{a.selectionWidth=l.value.getBoundingClientRect().width},qe=()=>{a.calculatorWidth=v.value.getBoundingClientRect().width},ot=()=>{a.collapseItemWidth=C.value.getBoundingClientRect().width},ft=()=>{var wt,rn;(rn=(wt=u.value)==null?void 0:wt.updatePopper)==null||rn.call(wt)},kt=()=>{var wt,rn;(rn=(wt=d.value)==null?void 0:wt.updatePopper)==null||rn.call(wt)},Wt=()=>{a.inputValue.length>0&&!D.value&&(D.value=!0),Be(a.inputValue)},Ct=wt=>{if(a.inputValue=wt.target.value,e.remote)ln();else return Wt()},ln=$s(()=>{Wt()},Le.value),Ce=wt=>{os(e.modelValue,wt)||t(so,wt)},He=wt=>vC(wt,rn=>!a.disabledOptions.has(rn)),me=wt=>{if(!!e.multiple&&wt.code!==Qt.delete&&wt.target.value.length<=0){const rn=Ra(e.modelValue).slice(),Yn=He(rn);if(Yn<0)return;const dr=rn[Yn];rn.splice(Yn,1),t(En,rn),Ce(rn),t("remove-tag",dr)}},Ve=(wt,rn)=>{const Yn=a.selected.indexOf(rn);if(Yn>-1&&!oe.value){const dr=Ra(e.modelValue).slice();dr.splice(Yn,1),t(En,dr),Ce(dr),t("remove-tag",rn.value)}wt.stopPropagation(),Nt()},ke=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),Ce(rn),a.hoveringIndex=-1,D.value=!1,t("clear"),Nt()},Xe=wt=>{var rn;if(e.multiple){const Yn=Ra((rn=e.modelValue)!=null?rn:[]).slice(),dr=nt(Yn,wt.value);dr>-1?Yn.splice(dr,1):(e.multipleLimit<=0||Yn.length<e.multipleLimit)&&Yn.push(wt.value),t(En,Yn),Ce(Yn),wt.created&&Be(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(En,wt.value),Ce(wt.value),D.value=!1;Nt(),!D.value&&zt(()=>{Ft(wt)})},nt=(wt=[],rn)=>{if(!Pn(rn))return wt.indexOf(rn);const Yn=e.valueKey;let dr=-1;return wt.some((Yi,ii)=>fr(Mo(Yi,Yn))===Mo(rn,Yn)?(dr=ii,!0):!1),dr},Ft=wt=>{var rn,Yn,dr,Yi,ii;const Xo=xt(wt)?wt[0]:wt;let Go=null;if(Xo!=null&&Xo.value){const di=Ae.value.filter(_t=>_t.value===Xo.value);di.length>0&&(Go=di[0].$el)}if(u.value&&Go){const di=(Yi=(dr=(Yn=(rn=u.value)==null?void 0:rn.popperRef)==null?void 0:Yn.contentRef)==null?void 0:dr.querySelector)==null?void 0:Yi.call(dr,`.${o.be("dropdown","wrap")}`);di&&DI(di,Go)}(ii=P.value)==null||ii.handleScroll()},Vn=wt=>{a.options.set(wt.value,wt),a.cachedOptions.set(wt.value,wt),wt.disabled&&a.disabledOptions.set(wt.value,wt)},rt=(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=>{ke(wt)},Sn=wt=>{if(D.value=!1,N.value){const rn=new FocusEvent("focus",wt);zt(()=>I(rn))}},jr=()=>{a.inputValue.length>0?a.inputValue="":D.value=!1},to=()=>{oe.value||(CL&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:D.value=!D.value)},ya=()=>{D.value?Ae.value[a.hoveringIndex]&&Xe(Ae.value[a.hoveringIndex]):to()},fi=wt=>Pn(wt.value)?Mo(wt.value,e.valueKey):wt.value,Fa=W(()=>Ae.value.filter(wt=>wt.visible).every(wt=>wt.disabled)),ba=W(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),Af=W(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),Ql=wt=>{if(!D.value){D.value=!0;return}if(!(a.options.size===0||a.filteredOptionsCount===0||$.value)&&!Fa.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=Ae.value[a.hoveringIndex];(rn.disabled===!0||rn.states.groupDisabled===!0||!rn.visible)&&Ql(wt),zt(()=>Ft(j.value))}},Wi=()=>{if(!l.value)return 0;const wt=window.getComputedStyle(l.value);return Number.parseFloat(wt.gap||"6px")},ll=W(()=>{const wt=Wi();return{maxWidth:`${C.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-wt:a.selectionWidth}px`}}),bn=W(()=>({maxWidth:`${a.selectionWidth}px`})),Sc=W(()=>({width:`${Math.max(a.calculatorWidth,JRe)}px`}));return Oo(l,ut),Oo(v,qe),Oo(b,ft),Oo(B,ft),Oo(k,kt),Oo(C,ot),vn(()=>{Je()}),{inputId:ae,contentId:r,nsSelect:o,nsInput:i,states:a,isFocused:N,expanded:D,optionsArray:Ae,hoverOption:j,selectSize:Se,filteredOptionsCount:ze,resetCalculatorWidth:qe,updateTooltip:ft,updateTagTooltip:kt,debouncedOnInputChange:ln,onInput:Ct,deletePrevTag:me,deleteTag:Ve,deleteSelected:ke,handleOptionSelect:Xe,scrollToOption:Ft,hasModelValue:J,shouldShowPlaceholder:pe,currentPlaceholder:Me,mouseEnterEventName:Ze,showClose:z,iconComponent:X,iconReverse:ee,validateState:he,validateIcon:fe,showNewOption:ye,updateOptions:Ne,collapseTagSize:ce,setSelected:Je,selectDisabled:oe,emptyText:Ie,handleCompositionStart:T,handleCompositionUpdate:A,handleCompositionEnd:R,onOptionCreate:Vn,onOptionDestroy:rt,handleMenuEnter:wn,focus:Nt,blur:Xt,handleClearClick:Ht,handleClickOutside:Sn,handleEsc:jr,toggleMenu:to,selectOption:ya,getValueKey:fi,navigateOptions:Ql,dropdownMenuVisible:be,showTagList:ba,collapseTagList:Af,tagStyle:ll,collapseTagStyle:bn,inputStyle:Sc,popperRef:Lt,inputRef:p,tooltipRef:u,tagTooltipRef:d,calculatorRef:v,prefixRef:y,suffixRef:w,selectRef:s,wrapperRef:B,selectionRef:l,scrollbarRef:P,menuRef:b,tagMenuRef:k,collapseItemRef:C}};var tNe=xe({name:"ElOptions",setup(e,{slots:t}){const n=Pt(b0);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),os(s,r)||(r=s,n&&(n.states.optionValues=s)),a}}});const nNe=gt({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Mi,effect:{type:je(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:je(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Gi.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:zr,default:Op},fitInputWidth:Boolean,suffixIcon:{type:zr,default:Ed},tagType:{...fv.type,default:"info"},tagEffect:{...fv.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:je(String),values:wv,default:"bottom-start"},fallbackPlacements:{type:je(Array),default:["bottom-start","top-start","right","left"]},...v0,...pa(["ariaLabel"])}),eB="ElSelect",rNe=xe({name:eB,componentName:eB,components:{ElSelectMenu:qRe,ElOption:ID,ElOptions:tNe,ElTag:op,ElScrollbar:Oc,ElTooltip:na,ElIcon:jt},directives:{ClickOutside:pd},props:nNe,emits:[En,so,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=eNe(e,t);return Wn(b0,rr({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 oNe(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=J2("click-outside");return yn((Z(),ue("div",{ref:"selectRef",class:q([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[V_(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:le(()=>{var w;return[ve("div",{ref:"wrapperRef",class:q([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(),ue("div",{key:0,ref:"prefixRef",class:q(e.nsSelect.e("prefix"))},[Ge(e.$slots,"prefix")],2)):Fe("v-if",!0),ve("div",{ref:"selectionRef",class:q([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?Ge(e.$slots,"tag",{key:0},()=>[(Z(!0),ue(Tt,null,_n(e.showTagList,b=>(Z(),ue("div",{key:e.getValueKey(b),class:q(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:le(()=>[ve("span",{class:q(e.nsSelect.e("tags-text"))},[Ge(e.$slots,"label",{label:b.currentLabel,value:b.value},()=>[St(ct(b.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(Z(),Qe(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:le(()=>[ve("div",{ref:"collapseItemRef",class:q(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:le(()=>[ve("span",{class:q(e.nsSelect.e("tags-text"))}," + "+ct(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:le(()=>[ve("div",{ref:"tagMenuRef",class:q(e.nsSelect.e("selection"))},[(Z(!0),ue(Tt,null,_n(e.collapseTagList,b=>(Z(),ue("div",{key:e.getValueKey(b),class:q(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:le(()=>[ve("span",{class:q(e.nsSelect.e("tags-text"))},[Ge(e.$slots,"label",{label:b.currentLabel,value:b.value},()=>[St(ct(b.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):Fe("v-if",!0)]):Fe("v-if",!0),e.selectDisabled?Fe("v-if",!0):(Z(),ue("div",{key:1,class:q([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:q([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:[Fr(tn(b=>e.navigateOptions("next"),["stop","prevent"]),["down"]),Fr(tn(b=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),Fr(tn(e.handleEsc,["stop","prevent"]),["esc"]),Fr(tn(e.selectOption,["stop","prevent"]),["enter"]),Fr(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"]),[[MN,e.states.inputValue]]),e.filterable?(Z(),ue("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:q(e.nsSelect.e("input-calculator")),textContent:ct(e.states.inputValue)},null,10,["textContent"])):Fe("v-if",!0)],2)),e.shouldShowPlaceholder?(Z(),ue("div",{key:2,class:q([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Ge(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[ve("span",null,ct(e.currentPlaceholder),1)]):(Z(),ue("span",{key:1},ct(e.currentPlaceholder),1))],2)):Fe("v-if",!0)],2),ve("div",{ref:"suffixRef",class:q(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(Z(),Qe(l,{key:0,class:q([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:le(()=>[(Z(),Qe(Dn(e.iconComponent)))]),_:1},8,["class"])):Fe("v-if",!0),e.showClose&&e.clearIcon?(Z(),Qe(l,{key:1,class:q([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:le(()=>[(Z(),Qe(Dn(e.clearIcon)))]),_:1},8,["class","onClick"])):Fe("v-if",!0),e.validateState&&e.validateIcon?(Z(),Qe(l,{key:2,class:q([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:le(()=>[(Z(),Qe(Dn(e.validateIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],2)],10,["onClick"])]}),content:le(()=>[re(v,{ref:"menuRef"},{default:le(()=>[e.$slots.header?(Z(),ue("div",{key:0,class:q(e.nsSelect.be("dropdown","header")),onClick:tn(()=>{},["stop"])},[Ge(e.$slots,"header")],10,["onClick"])):Fe("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:q([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:le(()=>[e.showNewOption?(Z(),Qe(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):Fe("v-if",!0),re(d,null,{default:le(()=>[Ge(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[pr,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(Z(),ue("div",{key:1,class:q(e.nsSelect.be("dropdown","loading"))},[Ge(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(Z(),ue("div",{key:2,class:q(e.nsSelect.be("dropdown","empty"))},[Ge(e.$slots,"empty",{},()=>[ve("span",null,ct(e.emptyText),1)])],2)):Fe("v-if",!0),e.$slots.footer?(Z(),ue("div",{key:3,class:q(e.nsSelect.be("dropdown","footer")),onClick:tn(()=>{},["stop"])},[Ge(e.$slots,"footer")],10,["onClick"])):Fe("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 iNe=vt(rNe,[["render",oNe],["__file","select.vue"]]);const aNe=xe({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=lt("select"),n=te(null),r=Cn(),o=te([]);Wn(iU,rr({...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=Ra(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()}),Zz(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function sNe(e,t,n,r,o,i){return yn((Z(),ue("ul",{ref:"groupRef",class:q(e.ns.be("group","wrap"))},[ve("li",{class:q(e.ns.be("group","title"))},ct(e.label),3),ve("li",null,[ve("ul",{class:q(e.ns.b("group"))},[Ge(e.$slots,"default")],2)])],2)),[[pr,e.visible]])}var aU=vt(aNe,[["render",sNe],["__file","option-group.vue"]]);const hc=pn(iNe,{Option:ID,OptionGroup:aU}),ip=xo(ID),lNe=xo(aU),DD=()=>Pt(oU,{}),uNe=gt({pageSize:{type:Number,required:!0},pageSizes:{type:je(Array),default:()=>wo([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Sf}}),cNe=xe({name:"ElPaginationSizes"}),fNe=xe({...cNe,props:uNe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=or(),o=lt("pagination"),i=DD(),a=te(n.pageSize);at(()=>n.pageSizes,(u,d)=>{if(!os(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(),ue("span",{class:q(m(o).e("sizes"))},[re(m(hc),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:le(()=>[(Z(!0),ue(Tt,null,_n(m(s),p=>(Z(),Qe(m(ip),{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 dNe=vt(fNe,[["__file","sizes.vue"]]);const hNe=gt({size:{type:String,values:Sf}}),pNe=xe({name:"ElPaginationJumper"}),gNe=xe({...pNe,props:hNe,setup(e){const{t}=or(),n=lt("pagination"),{pageCount:r,disabled:o,currentPage:i,changeEvent:a}=DD(),s=te(),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(),ue("span",{class:q(m(n).e("jump")),disabled:m(o)},[ve("span",{class:q([m(n).e("goto")])},ct(m(t)("el.pagination.goto")),3),re(m(ti),{size:p.size,class:q([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:q([m(n).e("classifier")])},ct(m(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var vNe=vt(gNe,[["__file","jumper.vue"]]);const mNe=gt({total:{type:Number,default:1e3}}),yNe=xe({name:"ElPaginationTotal"}),bNe=xe({...yNe,props:mNe,setup(e){const{t}=or(),n=lt("pagination"),{disabled:r}=DD();return(o,i)=>(Z(),ue("span",{class:q(m(n).e("total")),disabled:m(r)},ct(m(t)("el.pagination.total",{total:o.total})),11,["disabled"]))}});var _Ne=vt(bNe,[["__file","total.vue"]]);const ONe=gt({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),wNe=xe({name:"ElPaginationPager"}),SNe=xe({...wNe,props:ONe,emits:["change"],setup(e,{emit:t}){const n=e,r=lt("pager"),o=lt("icon"),{t:i}=or(),a=te(!1),s=te(!1),l=te(!1),u=te(!1),d=te(!1),p=te(!1),v=W(()=>{const T=n.pagerCount,A=(T-1)/2,R=Number(n.currentPage),B=Number(n.pageCount);let N=!1,I=!1;B>T&&(R>T-A&&(N=!0),R<B-A&&(I=!0));const D=[];if(N&&!I){const j=B-(T-2);for(let F=j;F<B;F++)D.push(F)}else if(!N&&I)for(let j=2;j<T;j++)D.push(j);else if(N&&I){const j=Math.floor(T/2)-1;for(let F=R-j;F<=R+j;F++)D.push(F)}else for(let j=2;j<B;j++)D.push(j);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);Da(()=>{const T=(n.pagerCount-1)/2;a.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-T&&(a.value=!0),n.currentPage<n.pageCount-T&&(s.value=!0))});function k(T=!1){n.disabled||(T?l.value=!0:u.value=!0)}function C(T=!1){T?d.value=!0:p.value=!0}function P(T){const A=T.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")&&$(T)}function $(T){const A=T.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(T,A)=>(Z(),ue("ul",{class:q(m(r).b()),onClick:$,onKeyup:Fr(P,["enter"])},[T.pageCount>0?(Z(),ue("li",{key:0,class:q([[m(r).is("active",T.currentPage===1),m(r).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===1,"aria-label":m(i)("el.pagination.currentPage",{pager:1}),tabindex:m(b)}," 1 ",10,["aria-current","aria-label","tabindex"])):Fe("v-if",!0),a.value?(Z(),ue("li",{key:1,class:q(m(y)),tabindex:m(b),"aria-label":m(i)("el.pagination.prevPages",{pager:T.pagerCount-2}),onMouseenter:R=>k(!0),onMouseleave:R=>l.value=!1,onFocus:R=>C(!0),onBlur:R=>d.value=!1},[(l.value||d.value)&&!T.disabled?(Z(),Qe(m(Jh),{key:0})):(Z(),Qe(m(Z_),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):Fe("v-if",!0),(Z(!0),ue(Tt,null,_n(m(v),R=>(Z(),ue("li",{key:R,class:q([[m(r).is("active",T.currentPage===R),m(r).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===R,"aria-label":m(i)("el.pagination.currentPage",{pager:R}),tabindex:m(b)},ct(R),11,["aria-current","aria-label","tabindex"]))),128)),s.value?(Z(),ue("li",{key:2,class:q(m(w)),tabindex:m(b),"aria-label":m(i)("el.pagination.nextPages",{pager:T.pagerCount-2}),onMouseenter:R=>k(),onMouseleave:R=>u.value=!1,onFocus:R=>C(),onBlur:R=>p.value=!1},[(u.value||p.value)&&!T.disabled?(Z(),Qe(m(ep),{key:0})):(Z(),Qe(m(Z_),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):Fe("v-if",!0),T.pageCount>1?(Z(),ue("li",{key:3,class:q([[m(r).is("active",T.currentPage===T.pageCount),m(r).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===T.pageCount,"aria-label":m(i)("el.pagination.currentPage",{pager:T.pageCount}),tabindex:m(b)},ct(T.pageCount),11,["aria-current","aria-label","tabindex"])):Fe("v-if",!0)],42,["onKeyup"]))}});var xNe=vt(SNe,[["__file","pager.vue"]]);const bs=e=>typeof e!="number",kNe=gt({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:je(Array),default:()=>wo([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:zr,default:()=>qh},nextText:{type:String,default:""},nextIcon:{type:zr,default:()=>xs},teleported:{type:Boolean,default:!0},small:Boolean,size:Mi,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),CNe={"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)},tB="ElPagination";var ENe=xe({name:tB,props:kNe,emits:CNe,setup(e,{emit:t,slots:n}){const{t:r}=or(),o=lt("pagination"),i=Cn().vnode.props||{},a=W(()=>{var T;return e.small?"small":(T=e.size)!=null?T:uY().value});Vh({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(bs(e.total)&&bs(e.pageCount)||!bs(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes")){if(bs(e.pageCount)){if(!bs(e.total)&&!bs(e.pageSize)&&!l)return!1}else if(!l)return!1}return!0}),d=te(bs(e.defaultPageSize)?10:e.defaultPageSize),p=te(bs(e.defaultCurrentPage)?1:e.defaultCurrentPage),v=W({get(){return bs(e.pageSize)?d.value:e.pageSize},set(T){bs(e.pageSize)&&(d.value=T),l&&(t("update:page-size",T),t("size-change",T))}}),y=W(()=>{let T=0;return bs(e.pageCount)?bs(e.total)||(T=Math.max(1,Math.ceil(e.total/v.value))):T=e.pageCount,T}),w=W({get(){return bs(e.currentPage)?p.value:e.currentPage},set(T){let A=T;T<1?A=1:T>y.value&&(A=y.value),bs(e.currentPage)&&(p.value=A),s&&(t("update:current-page",A),t("current-change",A))}});at(y,T=>{w.value>T&&(w.value=T)}),at([w,v],T=>{t("change",...T)},{flush:"post"});function b(T){w.value=T}function k(T){v.value=T;const A=y.value;w.value>A&&(w.value=A)}function C(){e.disabled||(w.value-=1,t("prev-click",w.value))}function P(){e.disabled||(w.value+=1,t("next-click",w.value))}function $(T,A){T&&(T.props||(T.props={}),T.props.class=[T.props.class,A].join(" "))}return Wn(oU,{pageCount:y,disabled:W(()=>e.disabled),currentPage:w,changeEvent:b,handleSizeChange:k}),()=>{var T,A;if(!u.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&y.value<=1)return null;const R=[],B=[],N=Zt("div",{class:o.e("rightwrapper")},B),I={prev:Zt(zRe,{disabled:e.disabled,currentPage:w.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:C}),jumper:Zt(vNe,{size:a.value}),pager:Zt(xNe,{currentPage:w.value,pageCount:y.value,pagerCount:e.pagerCount,onChange:b,disabled:e.disabled}),next:Zt(ZRe,{disabled:e.disabled,currentPage:w.value,pageCount:y.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:P}),sizes:Zt(dNe,{pageSize:v.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:a.value}),slot:(A=(T=n==null?void 0:n.default)==null?void 0:T.call(n))!=null?A:null,total:Zt(_Ne,{total:bs(e.total)?0:e.total})},D=e.layout.split(",").map(F=>F.trim());let j=!1;return D.forEach(F=>{if(F==="->"){j=!0;return}j?B.push(I[F]):R.push(I[F])}),$(R[0],o.is("first")),$(R[R.length-1],o.is("last")),j&&B.length>0&&($(B[0],o.is("first")),$(B[B.length-1],o.is("last")),R.push(N)),Zt("div",{class:[o.b(),o.is("background",e.background),o.m(a.value)]},R)}}});const jD=pn(ENe),TNe=gt({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:mM,default:"primary"},cancelButtonType:{type:String,values:mM,default:"text"},icon:{type:zr,default:()=>B1e},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Gi.teleported,persistent:Gi.persistent,width:{type:[String,Number],default:150}}),PNe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},$Ne=xe({name:"ElPopconfirm"}),ANe=xe({...$Ne,props:TNe,emits:PNe,setup(e,{emit:t}){const n=e,{t:r}=or(),o=lt("popconfirm"),i=te(),a=()=>{var v,y;(y=(v=i.value)==null?void 0:v.onClose)==null||y.call(v)},s=W(()=>({width:Fo(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(),Qe(m(na),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:le(()=>[ve("div",{class:q(m(o).b())},[ve("div",{class:q(m(o).e("main"))},[!v.hideIcon&&v.icon?(Z(),Qe(m(jt),{key:0,class:q(m(o).e("icon")),style:Vt({color:v.iconColor})},{default:le(()=>[(Z(),Qe(Dn(v.icon)))]),_:1},8,["class","style"])):Fe("v-if",!0),St(" "+ct(v.title),1)],2),ve("div",{class:q(m(o).e("action"))},[re(m(ro),{size:"small",type:v.cancelButtonType==="text"?"":v.cancelButtonType,text:v.cancelButtonType==="text",onClick:u},{default:le(()=>[St(ct(m(p)),1)]),_:1},8,["type","text"]),re(m(ro),{size:"small",type:v.confirmButtonType==="text"?"":v.confirmButtonType,text:v.confirmButtonType==="text",onClick:l},{default:le(()=>[St(ct(m(d)),1)]),_:1},8,["type","text"])],2)],2)]),default:le(()=>[v.$slots.reference?Ge(v.$slots,"reference",{key:0}):Fe("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var MNe=vt(ANe,[["__file","popconfirm.vue"]]);const RNe=pn(MNe),NNe=gt({trigger:MO.trigger,placement:lk.placement,disabled:MO.disabled,visible:Gi.visible,transition:Gi.transition,popperOptions:lk.popperOptions,tabindex:lk.tabindex,content:Gi.content,popperStyle:Gi.popperStyle,popperClass:Gi.popperClass,enterable:{...Gi.enterable,default:!0},effect:{...Gi.effect,default:"light"},teleported:Gi.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}}),INe={"update:visible":e=>Ho(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},DNe="onUpdate:visible",jNe=xe({name:"ElPopover"}),LNe=xe({...jNe,props:NNe,emits:INe,setup(e,{expose:t,emit:n}){const r=e,o=W(()=>r[DNe]),i=lt("popover"),a=te(),s=W(()=>{var k;return(k=m(a))==null?void 0:k.popperRef}),l=W(()=>[{width:Fo(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(),Qe(m(na),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:le(()=>[k.title?(Z(),ue("div",{key:0,class:q(m(i).e("title")),role:"title"},ct(k.title),3)):Fe("v-if",!0),Ge(k.$slots,"default",{},()=>[St(ct(k.content),1)])]),default:le(()=>[k.$slots.reference?Ge(k.$slots,"reference",{key:0}):Fe("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 BNe=vt(LNe,[["__file","popover.vue"]]);const nB=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var VNe={mounted(e,t){nB(e,t)},updated(e,t){nB(e,t)}};const FNe="popover",sU=uwe(VNe,FNe),zNe=pn(BNe,{directive:sU}),QNe=gt({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:je(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:je([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:je(Function),default:e=>`${e}%`}}),WNe=xe({name:"ElProgress"}),YNe=xe({...WNe,props:QNe,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`},T=P(t.percentage);return T.includes("gradient")?$.background=T:$.backgroundColor=T,$}),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,T=t.type==="dashboard";return`
- M 50 50
- m 0 ${T?"":"-"}${$}
- a ${$} ${$} 0 1 1 0 ${T?"-":""}${$*2}
- a ${$} ${$} 0 1 1 0 ${T?"":"-"}${$*2}
- `}),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?$=P(t.percentage):$=n[t.status]||n.default,$}),w=W(()=>t.status==="warning"?kC:t.type==="line"?t.status==="success"?BI:Op:t.status==="success"?p0:ks),b=W(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),k=W(()=>t.format(t.percentage));function C($){const T=100/$.length;return $.map((R,B)=>Gt(R)?{color:R,percentage:(B+1)*T}:R).sort((R,B)=>R.percentage-B.percentage)}const P=$=>{var T;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(T=R[R.length-1])==null?void 0:T.color}};return($,T)=>(Z(),ue("div",{class:q([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(),ue("div",{key:0,class:q(m(r).b("bar"))},[ve("div",{class:q(m(r).be("bar","outer")),style:Vt({height:`${$.strokeWidth}px`})},[ve("div",{class:q([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(),ue("div",{key:0,class:q(m(r).be("bar","innerText"))},[Ge($.$slots,"default",{percentage:$.percentage},()=>[ve("span",null,ct(m(k)),1)])],2)):Fe("v-if",!0)],6)],6)],2)):(Z(),ue("div",{key:1,class:q(m(r).b("circle")),style:Vt({height:`${$.width}px`,width:`${$.width}px`})},[(Z(),ue("svg",{viewBox:"0 0 100 100"},[ve("path",{class:q(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:q(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(),ue("div",{key:2,class:q(m(r).e("text")),style:Vt({fontSize:`${m(b)}px`})},[Ge($.$slots,"default",{percentage:$.percentage},()=>[$.status?(Z(),Qe(m(jt),{key:1},{default:le(()=>[(Z(),Qe(Dn(m(w))))]),_:1})):(Z(),ue("span",{key:0},ct(m(k)),1))])],6)):Fe("v-if",!0)],10,["aria-valuenow"]))}});var ZNe=vt(YNe,[["__file","progress.vue"]]);const lU=pn(ZNe),UNe=gt({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:je([Array,Object]),default:()=>wo(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:je([Array,Object]),default:()=>[lx,lx,lx]},voidIcon:{type:zr,default:()=>q1e},disabledVoidIcon:{type:zr,default:()=>lx},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:je(Array),default:()=>wo(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Mi,clearable:Boolean,...pa(["ariaLabel"])}),HNe={[so]:e=>en(e),[En]:e=>en(e)},XNe=xe({name:"ElRate"}),GNe=xe({...XNe,props:UNe,emits:HNe,setup(e,{expose:t,emit:n}){const r=e;function o(H,oe){const J=ee=>Pn(ee),z=Object.keys(oe).map(ee=>+ee).filter(ee=>{const he=oe[ee];return(J(he)?he.excluded:!1)?H<ee:H<=ee}).sort((ee,he)=>ee-he),X=oe[z[0]];return J(X)&&X.value||X}const i=Pt(Sv,void 0),a=Pt(pf,void 0),s=_i(),l=lt("rate"),{inputId:u,isLabeledByFormItem:d}=_c(r,{formItemContext:a}),p=te(r.modelValue),v=te(-1),y=te(!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":T.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}),P=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),T=W(()=>{const H=o(p.value,$.value);return Pn(H)?"":H}),A=W(()=>{let H="";return b.value?H=`${P.value}%`:r.allowHalf&&(H="50%"),{color:T.value,width:H}}),R=W(()=>{let H=xt(r.icons)?[...r.icons]:{...r.icons};return H=ld(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:ld(r.disabledVoidIcon):Gt(r.voidIcon)?r.voidIcon:ld(r.voidIcon)),I=W(()=>o(p.value,R.value));function D(H){const oe=b.value&&P.value>0&&H-1<r.modelValue&&H>r.modelValue,J=r.allowHalf&&y.value&&H-.5<=p.value&&H>p.value;return oe||J}function j(H){r.clearable&&H===r.modelValue&&(H=0),n(En,H),r.modelValue!==H&&n("change",H)}function F(H){b.value||(r.allowHalf&&y.value?j(p.value):j(H))}function G(H){if(b.value)return;let oe=p.value;const J=H.code;return J===Qt.up||J===Qt.right?(r.allowHalf?oe+=.5:oe+=1,H.stopPropagation(),H.preventDefault()):(J===Qt.left||J===Qt.down)&&(r.allowHalf?oe-=.5:oe-=1,H.stopPropagation(),H.preventDefault()),oe=oe<0?0:oe,oe=oe>r.max?r.max:oe,n(En,oe),n("change",oe),oe}function ae(H,oe){if(!b.value){if(r.allowHalf&&oe){let J=oe.target;Xs(J,l.e("item"))&&(J=J.querySelector(`.${l.e("icon")}`)),(J.clientWidth===0||Xs(J,l.e("decimal")))&&(J=J.parentNode),y.value=oe.offsetX*2<=J.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,oe)=>{var J;return Z(),ue("div",{id:m(u),class:q([m(w),m(l).is("disabled",m(b))]),role:"slider","aria-label":m(d)?void 0:H.ariaLabel||"rating","aria-labelledby":m(d)?(J=m(a))==null?void 0:J.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:G},[(Z(!0),ue(Tt,null,_n(H.max,(z,X)=>(Z(),ue("span",{key:X,class:q(m(l).e("item")),onMousemove:ee=>ae(z,ee),onMouseleave:K,onClick:ee=>F(z)},[re(m(jt),{class:q([m(l).e("icon"),{hover:v.value===z},m(l).is("active",z<=p.value)])},{default:le(()=>[D(z)?Fe("v-if",!0):(Z(),ue(Tt,{key:0},[yn((Z(),Qe(Dn(m(I)),null,null,512)),[[pr,z<=p.value]]),yn((Z(),Qe(Dn(m(N)),null,null,512)),[[pr,!(z<=p.value)]])],64)),D(z)?(Z(),ue(Tt,{key:1},[(Z(),Qe(Dn(m(N)),{class:q([m(l).em("decimal","box")])},null,8,["class"])),re(m(jt),{style:Vt(m(A)),class:q([m(l).e("icon"),m(l).e("decimal")])},{default:le(()=>[(Z(),Qe(Dn(m(B))))]),_:1},8,["style","class"])],64)):Fe("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),H.showText||H.showScore?(Z(),ue("span",{key:0,class:q(m(l).e("text")),style:Vt({color:H.textColor})},ct(m(C)),7)):Fe("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var KNe=vt(GNe,[["__file","rate.vue"]]);const qNe=pn(KNe),ry={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},rB={[ry.success]:c1e,[ry.warning]:kC,[ry.error]:VI,[ry.info]:FI},JNe=gt({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),eIe=xe({name:"ElResult"}),tIe=xe({...eIe,props:JNe,setup(e){const t=e,n=lt("result"),r=W(()=>{const o=t.icon,i=o&&ry[o]?ry[o]:"icon-info",a=rB[i]||rB["icon-info"];return{class:i,component:a}});return(o,i)=>(Z(),ue("div",{class:q(m(n).b())},[ve("div",{class:q(m(n).e("icon"))},[Ge(o.$slots,"icon",{},()=>[m(r).component?(Z(),Qe(Dn(m(r).component),{key:0,class:q(m(r).class)},null,8,["class"])):Fe("v-if",!0)])],2),o.title||o.$slots.title?(Z(),ue("div",{key:0,class:q(m(n).e("title"))},[Ge(o.$slots,"title",{},()=>[ve("p",null,ct(o.title),1)])],2)):Fe("v-if",!0),o.subTitle||o.$slots["sub-title"]?(Z(),ue("div",{key:1,class:q(m(n).e("subtitle"))},[Ge(o.$slots,"sub-title",{},()=>[ve("p",null,ct(o.subTitle),1)])],2)):Fe("v-if",!0),o.$slots.extra?(Z(),ue("div",{key:2,class:q(m(n).e("extra"))},[Ge(o.$slots,"extra")],2)):Fe("v-if",!0)],2))}});var nIe=vt(tIe,[["__file","result.vue"]]);const rIe=pn(nIe);var oB=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function oIe(e,t){return!!(e===t||oB(e)&&oB(t))}function iIe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!oIe(e[n],t[n]))return!1;return!0}function aIe(e,t){t===void 0&&(t=iIe);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 uU=()=>{const t=Cn().proxy.$props;return W(()=>{const n=(r,o,i)=>({});return t.perfMode?p1(n):aIe(n)})},DM=50,Hk="itemRendered",Xk="scroll",oy="forward",Gk="backward",mu="auto",VC="smart",NO="start",rf="center",IO="end",Yy="horizontal",LD="vertical",sIe="ltr",by="rtl",DO="negative",BD="positive-ascending",VD="positive-descending",lIe={[Yy]:"left",[LD]:"top"},uIe=20,cIe={[Yy]:"deltaX",[LD]:"deltaY"},fIe=({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=>{lv(o);const u=l[cIe[n.value]];a(i)&&a(i+u)||(i+=u,IN()||l.preventDefault(),o=Kh(()=>{r(i),i=0}))}}},jM=yc({type:je([Number,Function]),required:!0}),LM=yc({type:Number}),BM=yc({type:Number,default:2}),dIe=yc({type:String,values:["ltr","rtl"],default:"ltr"}),VM=yc({type:Number,default:0}),Kk=yc({type:Number,required:!0}),cU=yc({type:String,values:["horizontal","vertical"],default:LD}),fU=gt({className:{type:String,default:""},containerElement:{type:je([String,Object]),default:"div"},data:{type:je(Array),default:()=>wo([])},direction:dIe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:je([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),dU=gt({cache:BM,estimatedItemSize:LM,layout:cU,initScrollOffset:VM,total:Kk,itemSize:jM,...fU}),FM={type:Number,default:6},hU={type:Number,default:0},pU={type:Number,default:2},Kg=gt({columnCache:BM,columnWidth:jM,estimatedColumnWidth:LM,estimatedRowHeight:LM,initScrollLeft:VM,initScrollTop:VM,itemKey:{type:je(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:BM,rowHeight:jM,totalColumn:Kk,totalRow:Kk,hScrollbarSize:FM,vScrollbarSize:FM,scrollbarStartGap:hU,scrollbarEndGap:pU,role:String,...fU}),gU=gt({alwaysOn:Boolean,class:String,layout:cU,total:Kk,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:FM,startGap:hU,endGap:pU,visible:Boolean}),zg=(e,t)=>e<t?oy:Gk,jO=e=>e===sIe||e===by||e===Yy,iB=e=>e===by;let Ym=null;function qk(e=!1){if(Ym===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?Ym=VD:(t.scrollLeft=1,t.scrollLeft===0?Ym=DO:Ym=BD),document.body.removeChild(t),Ym}return Ym}function hIe({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 zM=xe({name:"ElVirtualScrollBar",props:gU,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=te(),a=te();let s=null,l=null;const u=rr({isDragging:!1,traveled:0}),d=W(()=>vY[e.layout]),p=W(()=>e.clientSize-m(n)),v=W(()=>({position:"absolute",width:`${Yy===e.layout?p.value:e.scrollbarSize}px`,height:`${Yy===e.layout?e.scrollbarSize:p.value}px`,[lIe[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,uIe),N))}),w=W(()=>{if(!Number.isFinite(y.value))return{display:"none"};const R=`${y.value}px`;return hIe({bar:d.value,size:R,move:u.traveled},e.layout)}),b=W(()=>Math.floor(e.clientSize-y.value-m(n))),k=()=>{window.addEventListener("mousemove",T),window.addEventListener("mouseup",$);const R=m(a);!R||(l=document.onselectstart,document.onselectstart=()=>!1,R.addEventListener("touchmove",T,{passive:!0}),R.addEventListener("touchend",$))},C=()=>{window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",$),document.onselectstart=l,l=null;const R=m(a);!R||(R.removeEventListener("touchmove",T),R.removeEventListener("touchend",$))},P=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()},T=R=>{const{isDragging:B}=u;if(!B||!a.value||!i.value)return;const N=u[d.value.axis];if(!N)return;lv(s);const I=(i.value.getBoundingClientRect()[d.value.direction]-R[d.value.client])*-1,D=a.value[d.value.offset]-N,j=I-D;s=Kh(()=>{u.traveled=Math.max(e.startGap,Math.min(j,b.value)),t("scroll",j,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))}),Hr(()=>{C()}),()=>Zt("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:P},Zt("div",{ref:a,class:o.e("thumb"),style:w.value,onMousedown:P},[]))}}),vU=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:i,getStopIndexForStartIndex:a,initCache:s,clearCache:l,validateProps:u})=>xe({name:e!=null?e:"ElVirtualList",props:dU,emits:[Hk,Xk],setup(d,{emit:p,expose:v}){u(d);const y=Cn(),w=lt("vl"),b=te(s(d,y)),k=uU(),C=te(),P=te(),$=te(),T=te({isScrolling:!1,scrollDir:"forward",scrollOffset:en(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),A=W(()=>{const{total:fe,cache:Le}=d,{isScrolling:Ie,scrollDir:ze,scrollOffset:Ae}=m(T);if(fe===0)return[0,0,0,0];const _e=i(d,Ae,m(b)),ye=a(d,_e,Ae,m(b)),Ne=!Ie||ze===Gk?Math.max(1,Le):1,Se=!Ie||ze===oy?Math.max(1,Le):1;return[Math.max(0,_e-Ne),Math.max(0,Math.min(fe-1,ye+Se)),_e,ye]}),R=W(()=>o(d,m(b))),B=W(()=>jO(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 fe=m(R),Le=m(B);return{height:Le?"100%":`${fe}px`,pointerEvents:m(T).isScrolling?"none":void 0,width:Le?`${fe}px`:"100%"}}),D=W(()=>B.value?d.width:d.height),{onWheel:j}=fIe({atStartEdge:W(()=>T.value.scrollOffset<=0),atEndEdge:W(()=>T.value.scrollOffset>=R.value),layout:W(()=>d.layout)},fe=>{var Le,Ie;(Ie=(Le=$.value).onMouseUp)==null||Ie.call(Le),oe(Math.min(T.value.scrollOffset+fe,R.value-D.value))});Mr(C,"wheel",j,{passive:!1});const F=()=>{const{total:fe}=d;if(fe>0){const[Ae,_e,ye,Ne]=m(A);p(Hk,Ae,_e,ye,Ne)}const{scrollDir:Le,scrollOffset:Ie,updateRequested:ze}=m(T);p(Xk,Le,Ie,ze)},G=fe=>{const{clientHeight:Le,scrollHeight:Ie,scrollTop:ze}=fe.currentTarget,Ae=m(T);if(Ae.scrollOffset===ze)return;const _e=Math.max(0,Math.min(ze,Ie-Le));T.value={...Ae,isScrolling:!0,scrollDir:zg(Ae.scrollOffset,_e),scrollOffset:_e,updateRequested:!1},zt(X)},ae=fe=>{const{clientWidth:Le,scrollLeft:Ie,scrollWidth:ze}=fe.currentTarget,Ae=m(T);if(Ae.scrollOffset===Ie)return;const{direction:_e}=d;let ye=Ie;if(_e===by)switch(qk()){case DO:{ye=-Ie;break}case VD:{ye=ze-Le-Ie;break}}ye=Math.max(0,Math.min(ye,ze-Le)),T.value={...Ae,isScrolling:!0,scrollDir:zg(Ae.scrollOffset,ye),scrollOffset:ye,updateRequested:!1},zt(X)},K=fe=>{m(B)?ae(fe):G(fe),F()},H=(fe,Le)=>{const Ie=(R.value-D.value)/Le*fe;oe(Math.min(R.value-D.value,Ie))},oe=fe=>{fe=Math.max(fe,0),fe!==m(T).scrollOffset&&(T.value={...m(T),scrollOffset:fe,scrollDir:zg(m(T).scrollOffset,fe),updateRequested:!0},zt(X))},J=(fe,Le=mu)=>{const{scrollOffset:Ie}=m(T);fe=Math.max(0,Math.min(fe,d.total-1)),oe(t(d,fe,Le,Ie,m(b)))},z=fe=>{const{direction:Le,itemSize:Ie,layout:ze}=d,Ae=k.value(l&&Ie,l&&ze,l&&Le);let _e;if(ar(Ae,String(fe)))_e=Ae[fe];else{const ye=r(d,fe,m(b)),Ne=n(d,fe,m(b)),Se=m(B),ce=Le===by,be=Se?ye:0;Ae[fe]=_e={position:"absolute",left:ce?void 0:`${be}px`,right:ce?`${be}px`:void 0,top:Se?0:`${ye}px`,height:Se?"100%":`${Ne}px`,width:Se?`${Ne}px`:"100%"}}return _e},X=()=>{T.value.isScrolling=!1,zt(()=>{k.value(-1,null,null)})},ee=()=>{const fe=C.value;fe&&(fe.scrollTop=0)};vn(()=>{if(!nr)return;const{initScrollOffset:fe}=d,Le=m(C);en(fe)&&Le&&(m(B)?Le.scrollLeft=fe:Le.scrollTop=fe),F()}),vc(()=>{const{direction:fe,layout:Le}=d,{scrollOffset:Ie,updateRequested:ze}=m(T),Ae=m(C);if(ze&&Ae)if(Le===Yy)if(fe===by)switch(qk()){case DO:{Ae.scrollLeft=-Ie;break}case BD:{Ae.scrollLeft=Ie;break}default:{const{clientWidth:_e,scrollWidth:ye}=Ae;Ae.scrollLeft=ye-_e-Ie;break}}else Ae.scrollLeft=Ie;else Ae.scrollTop=Ie}),kN(()=>{m(C).scrollTop=m(T).scrollOffset});const he={ns:w,clientSize:D,estimatedTotalSize:R,windowStyle:N,windowRef:C,innerRef:P,innerStyle:I,itemsToRender:A,scrollbarRef:$,states:T,getItemStyle:z,onScroll:K,onScrollbarScroll:H,onWheel:j,scrollTo:oe,scrollToItem:J,resetScrollTop:ee};return v({windowRef:C,innerRef:P,getItemStyleCache:k,scrollTo:oe,scrollToItem:J,resetScrollTop:ee,states:T}),he},render(d){var p;const{$slots:v,className:y,clientSize:w,containerElement:b,data:k,getItemStyle:C,innerElement:P,itemsToRender:$,innerStyle:T,layout:A,total:R,onScroll:B,onScrollbarScroll:N,states:I,useIsScrolling:D,windowStyle:j,ns:F}=d,[G,ae]=$,K=Dn(b),H=Dn(P),oe=[];if(R>0)for(let ee=G;ee<=ae;ee++)oe.push((p=v.default)==null?void 0:p.call(v,{data:k,key:ee,index:ee,isScrolling:D?I.isScrolling:void 0,style:C(ee)}));const J=[Zt(H,{style:T,ref:"innerRef"},Gt(H)?oe:{default:()=>oe})],z=Zt(zM,{ref:"scrollbarRef",clientSize:w,layout:A,onScroll:N,ratio:w*100/this.estimatedTotalSize,scrollFrom:I.scrollOffset/(this.estimatedTotalSize-w),total:R}),X=Zt(K,{class:[F.e("window"),y],style:j,onScroll:B,ref:"windowRef",key:0},Gt(K)?[J]:{default:()=>[J]});return Zt("div",{key:0,class:[F.e("wrapper"),I.scrollbarAlwaysOn?"always-on":""]},[X,z])}}),mU=vU({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=jO(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===VC&&(s>=p-l&&s<=d+l?a=mu:a=rf),a){case NO:return d;case IO:return p;case rf:{const v=Math.round(p+(d-p)/2);return v<Math.ceil(l/2)?0:v>u+Math.floor(l/2)?u:v}case mu: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=jO(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(){}}),iy=(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]},pIe=(e,t,n)=>{const{items:r,lastVisitedIndex:o}=t;return(o>0?r[o].offset:0)>=n?yU(e,t,0,o,n):gIe(e,t,Math.max(0,o),n)},yU=(e,t,n,r,o)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),a=iy(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)},gIe=(e,t,n,r)=>{const{total:o}=e;let i=1;for(;n<o&&iy(e,n,t).offset<r;)n+=i,i*=2;return yU(e,t,Math.floor(n/2),Math.min(n,o-1),r)},aB=({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},vIe=vU({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>iy(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:aB,getOffset:(e,t,n,r,o)=>{const{height:i,layout:a,width:s}=e,l=jO(a)?s:i,u=iy(e,t,o),d=aB(e,o),p=Math.max(0,Math.min(d-l,u.offset)),v=Math.max(0,u.offset-l+u.size);switch(n===VC&&(r>=v-l&&r<=p+l?n=mu:n=rf),n){case NO:return p;case IO:return v;case rf:return Math.round(v+(p-v)/2);case mu:default:return r>=v&&r<=p?r:r<v?v:p}},getStartIndexForOffset:(e,t,n)=>pIe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:o,total:i,layout:a,width:s}=e,l=jO(a)?s:o,u=iy(e,t,r),d=n+l;let p=u.offset+u.size,v=t;for(;v<i-1&&p<d;)v++,p+=iy(e,v,r).size;return v},initCache({estimatedItemSize:e=DM},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})=>{}}),mIe=({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=>{lv(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=Kh(()=>{o(a,s),a=0,s=0}))}}},bU=({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})=>xe({name:e!=null?e:"ElVirtualList",props:Kg,emits:[Hk,Xk],setup(b,{emit:k,expose:C,slots:P}){const $=lt("vl");w(b);const T=Cn(),A=te(v(b,T));y==null||y(T,A);const R=te(),B=te(),N=te(),I=te(null),D=te({isScrolling:!1,scrollLeft:en(b.initScrollLeft)?b.initScrollLeft:0,scrollTop:en(b.initScrollTop)?b.initScrollTop:0,updateRequested:!1,xAxisScrollDir:oy,yAxisScrollDir:oy}),j=uU(),F=W(()=>Number.parseInt(`${b.height}`,10)),G=W(()=>Number.parseInt(`${b.width}`,10)),ae=W(()=>{const{totalColumn:Be,totalRow:$e,columnCache:Je}=b,{isScrolling:Oe,xAxisScrollDir:Ye,scrollLeft:ut}=m(D);if(Be===0||$e===0)return[0,0,0,0];const qe=r(b,ut,m(A)),ot=o(b,qe,ut,m(A)),ft=!Oe||Ye===Gk?Math.max(1,Je):1,kt=!Oe||Ye===oy?Math.max(1,Je):1;return[Math.max(0,qe-ft),Math.max(0,Math.min(Be-1,ot+kt)),qe,ot]}),K=W(()=>{const{totalColumn:Be,totalRow:$e,rowCache:Je}=b,{isScrolling:Oe,yAxisScrollDir:Ye,scrollTop:ut}=m(D);if(Be===0||$e===0)return[0,0,0,0];const qe=d(b,ut,m(A)),ot=p(b,qe,ut,m(A)),ft=!Oe||Ye===Gk?Math.max(1,Je):1,kt=!Oe||Ye===oy?Math.max(1,Je):1;return[Math.max(0,qe-ft),Math.max(0,Math.min($e-1,ot+kt)),qe,ot]}),H=W(()=>i(b,m(A))),oe=W(()=>a(b,m(A))),J=W(()=>{var Be;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},(Be=b.style)!=null?Be:{}]}),z=W(()=>{const Be=`${m(oe)}px`;return{height:`${m(H)}px`,pointerEvents:m(D).isScrolling?"none":void 0,width:Be}}),X=()=>{const{totalColumn:Be,totalRow:$e}=b;if(Be>0&&$e>0){const[ot,ft,kt,Wt]=m(ae),[Ct,ln,Ce,He]=m(K);k(Hk,{columnCacheStart:ot,columnCacheEnd:ft,rowCacheStart:Ct,rowCacheEnd:ln,columnVisibleStart:kt,columnVisibleEnd:Wt,rowVisibleStart:Ce,rowVisibleEnd:He})}const{scrollLeft:Je,scrollTop:Oe,updateRequested:Ye,xAxisScrollDir:ut,yAxisScrollDir:qe}=m(D);k(Xk,{xAxisScrollDir:ut,scrollLeft:Je,yAxisScrollDir:qe,scrollTop:Oe,updateRequested:Ye})},ee=Be=>{const{clientHeight:$e,clientWidth:Je,scrollHeight:Oe,scrollLeft:Ye,scrollTop:ut,scrollWidth:qe}=Be.currentTarget,ot=m(D);if(ot.scrollTop===ut&&ot.scrollLeft===Ye)return;let ft=Ye;if(iB(b.direction))switch(qk()){case DO:ft=-Ye;break;case VD:ft=qe-Je-Ye;break}D.value={...ot,isScrolling:!0,scrollLeft:ft,scrollTop:Math.max(0,Math.min(ut,Oe-$e)),updateRequested:!0,xAxisScrollDir:zg(ot.scrollLeft,ft),yAxisScrollDir:zg(ot.scrollTop,ut)},zt(()=>_e()),ye(),X()},he=(Be,$e)=>{const Je=m(F),Oe=(H.value-Je)/$e*Be;Ie({scrollTop:Math.min(H.value-Je,Oe)})},fe=(Be,$e)=>{const Je=m(G),Oe=(oe.value-Je)/$e*Be;Ie({scrollLeft:Math.min(oe.value-Je,Oe)})},{onWheel:Le}=mIe({atXStartEdge:W(()=>D.value.scrollLeft<=0),atXEndEdge:W(()=>D.value.scrollLeft>=oe.value-m(G)),atYStartEdge:W(()=>D.value.scrollTop<=0),atYEndEdge:W(()=>D.value.scrollTop>=H.value-m(F))},(Be,$e)=>{var Je,Oe,Ye,ut;(Oe=(Je=B.value)==null?void 0:Je.onMouseUp)==null||Oe.call(Je),(ut=(Ye=N.value)==null?void 0:Ye.onMouseUp)==null||ut.call(Ye);const qe=m(G),ot=m(F);Ie({scrollLeft:Math.min(D.value.scrollLeft+Be,oe.value-qe),scrollTop:Math.min(D.value.scrollTop+$e,H.value-ot)})});Mr(R,"wheel",Le,{passive:!1});const Ie=({scrollLeft:Be=D.value.scrollLeft,scrollTop:$e=D.value.scrollTop})=>{Be=Math.max(Be,0),$e=Math.max($e,0);const Je=m(D);$e===Je.scrollTop&&Be===Je.scrollLeft||(D.value={...Je,xAxisScrollDir:zg(Je.scrollLeft,Be),yAxisScrollDir:zg(Je.scrollTop,$e),scrollLeft:Be,scrollTop:$e,updateRequested:!0},zt(()=>_e()),ye(),X())},ze=(Be=0,$e=0,Je=mu)=>{const Oe=m(D);$e=Math.max(0,Math.min($e,b.totalColumn-1)),Be=Math.max(0,Math.min(Be,b.totalRow-1));const Ye=_W($.namespace.value),ut=m(A),qe=i(b,ut),ot=a(b,ut);Ie({scrollLeft:s(b,$e,Je,Oe.scrollLeft,ut,ot>b.width?Ye:0),scrollTop:l(b,Be,Je,Oe.scrollTop,ut,qe>b.height?Ye:0)})},Ae=(Be,$e)=>{const{columnWidth:Je,direction:Oe,rowHeight:Ye}=b,ut=j.value(t&&Je,t&&Ye,t&&Oe),qe=`${Be},${$e}`;if(ar(ut,qe))return ut[qe];{const[,ot]=n(b,$e,m(A)),ft=m(A),kt=iB(Oe),[Wt,Ct]=u(b,Be,ft),[ln]=n(b,$e,ft);return ut[qe]={position:"absolute",left:kt?void 0:`${ot}px`,right:kt?`${ot}px`:void 0,top:`${Ct}px`,height:`${Wt}px`,width:`${ln}px`},ut[qe]}},_e=()=>{D.value.isScrolling=!1,zt(()=>{j.value(-1,null,null)})};vn(()=>{if(!nr)return;const{initScrollLeft:Be,initScrollTop:$e}=b,Je=m(R);Je&&(en(Be)&&(Je.scrollLeft=Be),en($e)&&(Je.scrollTop=$e)),X()});const ye=()=>{const{direction:Be}=b,{scrollLeft:$e,scrollTop:Je,updateRequested:Oe}=m(D),Ye=m(R);if(Oe&&Ye){if(Be===by)switch(qk()){case DO:{Ye.scrollLeft=-$e;break}case BD:{Ye.scrollLeft=$e;break}default:{const{clientWidth:ut,scrollWidth:qe}=Ye;Ye.scrollLeft=qe-ut-$e;break}}else Ye.scrollLeft=Math.max(0,$e);Ye.scrollTop=Math.max(0,Je)}},{resetAfterColumnIndex:Ne,resetAfterRowIndex:Se,resetAfter:ce}=T.proxy;C({windowRef:R,innerRef:I,getItemStyleCache:j,scrollTo:Ie,scrollToItem:ze,states:D,resetAfterColumnIndex:Ne,resetAfterRowIndex:Se,resetAfter:ce});const be=()=>{const{scrollbarAlwaysOn:Be,scrollbarStartGap:$e,scrollbarEndGap:Je,totalColumn:Oe,totalRow:Ye}=b,ut=m(G),qe=m(F),ot=m(oe),ft=m(H),{scrollLeft:kt,scrollTop:Wt}=m(D),Ct=Zt(zM,{ref:B,alwaysOn:Be,startGap:$e,endGap:Je,class:$.e("horizontal"),clientSize:ut,layout:"horizontal",onScroll:fe,ratio:ut*100/ot,scrollFrom:kt/(ot-ut),total:Ye,visible:!0}),ln=Zt(zM,{ref:N,alwaysOn:Be,startGap:$e,endGap:Je,class:$.e("vertical"),clientSize:qe,layout:"vertical",onScroll:he,ratio:qe*100/ft,scrollFrom:Wt/(ft-qe),total:Oe,visible:!0});return{horizontalScrollbar:Ct,verticalScrollbar:ln}},pe=()=>{var Be;const[$e,Je]=m(ae),[Oe,Ye]=m(K),{data:ut,totalColumn:qe,totalRow:ot,useIsScrolling:ft,itemKey:kt}=b,Wt=[];if(ot>0&&qe>0)for(let Ct=Oe;Ct<=Ye;Ct++)for(let ln=$e;ln<=Je;ln++)Wt.push((Be=P.default)==null?void 0:Be.call(P,{columnIndex:ln,data:ut,key:kt({columnIndex:ln,data:ut,rowIndex:Ct}),isScrolling:ft?m(D).isScrolling:void 0,style:Ae(Ct,ln),rowIndex:Ct}));return Wt},Me=()=>{const Be=Dn(b.innerElement),$e=pe();return[Zt(Be,{style:m(z),ref:I},Gt(Be)?$e:{default:()=>$e})]};return()=>{const Be=Dn(b.containerElement),{horizontalScrollbar:$e,verticalScrollbar:Je}=be(),Oe=Me();return Zt("div",{key:0,class:$.e("wrapper"),role:b.role},[Zt(Be,{class:b.className,style:m(J),onScroll:ee,ref:R},Gt(Be)?Oe:{default:()=>Oe}),$e,Je])}}}),yIe=bU({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=mu:o=rf),o){case NO:return u;case IO:return d;case rf:{const p=Math.round(d+(u-d)/2);return p<Math.ceil(n/2)?0:p>l+Math.floor(n/2)?l:p}case mu: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===VC&&(i>=d-t&&i<=u+t?o=mu:o=rf),o){case NO:return u;case IO:return d;case rf:{const p=Math.round(d+(u-d)/2);return p<Math.ceil(t/2)?0:p>l+Math.floor(t/2)?l:p}case mu: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:Jk,min:_U,floor:OU}=Math,bIe={column:"columnWidth",row:"rowHeight"},QM={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},id=(e,t,n,r)=>{const[o,i,a]=[n[r],e[bIe[r]],n[QM[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[QM[r]]=t}return o[t]},wU=(e,t,n,r,o,i)=>{for(;n<=r;){const a=n+OU((r-n)/2),s=id(e,a,t,i).offset;if(s===o)return a;s<o?n=a+1:r=a-1}return Jk(0,n-1)},_Ie=(e,t,n,r,o)=>{const i=o==="column"?e.totalColumn:e.totalRow;let a=1;for(;n<i&&id(e,n,t,o).offset<r;)n+=a,a*=2;return wU(e,t,OU(n/2),_U(n,i-1),r,o)},sB=(e,t,n,r)=>{const[o,i]=[t[r],t[QM[r]]];return(i>0?o[i].offset:0)>=n?wU(e,t,0,i,n,r):_Ie(e,t,Jk(0,i),n,r)},SU=({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},xU=({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},OIe={column:xU,row:SU},lB=(e,t,n,r,o,i,a)=>{const[s,l]=[i==="row"?e.height:e.width,OIe[i]],u=id(e,t,o,i),d=l(e,o),p=Jk(0,_U(d-s,u.offset)),v=Jk(0,u.offset-s+a+u.size);switch(n===VC&&(r>=v-s&&r<=p+s?n=mu:n=rf),n){case NO:return p;case IO:return v;case rf:return Math.round(v+(p-v)/2);case mu:default:return r>=v&&r<=p?r:v>p||r<v?v:p}},wIe=bU({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=id(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=id(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,o,i)=>lB(e,t,n,r,o,"column",i),getRowOffset:(e,t,n,r,o,i)=>lB(e,t,n,r,o,"row",i),getColumnStartIndexForOffset:(e,t,n)=>sB(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const o=id(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+=id(e,t,r,"column").size;return s},getEstimatedTotalHeight:SU,getEstimatedTotalWidth:xU,getRowStartIndexForOffset:(e,t,n)=>sB(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:o,height:i}=e,a=id(e,t,r,"row"),s=n+i;let l=a.size+a.offset,u=t;for(;u<o-1&&l<s;)u++,l+=id(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:a},s)=>{var l,u;s=Vo(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=DM,estimatedRowHeight:t=DM})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),SIe=xe({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:lt("select")}}});function xIe(e,t,n,r,o,i){return Z(),ue("div",{class:q(e.ns.be("group","title")),style:Vt([e.style,{lineHeight:`${e.height}px`}])},ct(e.item.label),7)}var kIe=vt(SIe,[["render",xIe],["__file","group-item.vue"]]);function CIe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const kU={label:"label",value:"value",disabled:"disabled",options:"options"};function FC(e){const t=W(()=>({...kU,...e.props}));return{aliasProps:t,getLabel:a=>Mo(a,t.value.label),getValue:a=>Mo(a,t.value.value),getDisabled:a=>Mo(a,t.value.disabled),getOptions:a=>Mo(a,t.value.options)}}const EIe=gt({allowCreate:Boolean,autocomplete:{type:je(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:zr,default:Op},effect:{type:je(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:je([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:je(Array),required:!0},placeholder:{type:String},teleported:Gi.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:je(Object),default:()=>({})},remote:Boolean,size:Mi,props:{type:je(Object),default:()=>kU},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},placement:{type:je(String),values:wv,default:"bottom-start"},fallbackPlacements:{type:je(Array),default:["bottom-start","top-start","right","left"]},tagType:{...fv.type,default:"info"},tagEffect:{...fv.effect,default:"light"},...v0,...pa(["ariaLabel"])}),TIe=gt({data:Array,disabled:Boolean,hovering:Boolean,item:{type:je(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),FD=Symbol("ElSelectV2Injection"),PIe=xe({props:TIe,emits:["select","hover"],setup(e,{emit:t}){const n=Pt(FD),r=lt("select"),{hoverItem:o,selectOptionClick:i}=CIe(e,{emit:t}),{getLabel:a}=FC(n.props);return{ns:r,hoverItem:o,selectOptionClick:i,getLabel:a}}});function $Ie(e,t,n,r,o,i){return Z(),ue("li",{"aria-selected":e.selected,style:Vt(e.style),class:q([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"])},[Ge(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[ve("span",null,ct(e.getLabel(e.item)),1)])],46,["aria-selected","onMouseenter","onClick"])}var AIe=vt(PIe,[["render",$Ie],["__file","option-item.vue"]]),MIe=xe({name:"ElSelectDropdown",props:{loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=Pt(FD),o=lt("select"),{getLabel:i,getValue:a,getDisabled:s}=FC(r.props),l=te([]),u=te(),d=W(()=>e.data.length);at(()=>d.value,()=>{var j,F;(F=(j=r.tooltipRef.value).updatePopper)==null||F.call(j)});const p=W(()=>Vo(r.props.estimatedOptionHeight)),v=W(()=>p.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:j=>l.value[j]}),y=(j=[],F)=>{const{props:{valueKey:G}}=r;return Pn(F)?j&&j.some(ae=>fr(Mo(ae,G))===Mo(F,G)):j.includes(F)},w=(j,F)=>{if(Pn(F)){const{valueKey:G}=r.props;return Mo(j,G)===Mo(F,G)}else return j===F},b=(j,F)=>r.props.multiple?y(j,a(F)):w(j,a(F)),k=(j,F)=>{const{disabled:G,multiple:ae,multipleLimit:K}=r.props;return G||!F&&(ae?K>0&&j.length>=K:!1)},C=j=>e.hoveringIndex===j;n({listRef:u,isSized:p,isItemDisabled:k,isItemHovering:C,isItemSelected:b,scrollToItem:j=>{const F=u.value;F&&F.scrollToItem(j)},resetScrollTop:()=>{const j=u.value;j&&j.resetScrollTop()}});const T=j=>{const{index:F,data:G,style:ae}=j,K=m(p),{itemSize:H,estimatedSize:oe}=m(v),{modelValue:J}=r.props,{onSelect:z,onHover:X}=r,ee=G[F];if(ee.type==="Group")return re(kIe,{item:ee,style:ae,height:K?H:oe},null);const he=b(J,ee),fe=k(J,he),Le=C(F);return re(AIe,In(j,{selected:he,disabled:s(ee)||fe,created:!!ee.created,hovering:Le,item:ee,onSelect:z,onHover:X}),{default:Ie=>{var ze;return((ze=t.default)==null?void 0:ze.call(t,Ie))||re("span",null,[i(ee)])}})},{onKeyboardNavigate:A,onKeyboardSelect:R}=r,B=()=>{A("forward")},N=()=>{A("backward")},I=()=>{r.expanded=!1},D=j=>{const{code:F}=j,{tab:G,esc:ae,down:K,up:H,enter:oe}=Qt;switch(F!==G&&(j.preventDefault(),j.stopPropagation()),F){case G:case ae:{I();break}case K:{B();break}case H:{N();break}case oe:{R();break}}};return()=>{var j,F,G,ae;const{data:K,width:H}=e,{height:oe,multiple:J,scrollbarAlwaysOn:z}=r.props,X=m(p)?mU:vIe;return re("div",{class:[o.b("dropdown"),o.is("multiple",J)],style:{width:`${H}px`}},[(j=t.header)==null?void 0:j.call(t),((F=t.loading)==null?void 0:F.call(t))||((G=t.empty)==null?void 0:G.call(t))||re(X,In({ref:u},m(v),{className:o.be("dropdown","list"),scrollbarAlwaysOn:z,data:K,height:oe,width:H,total:K.length,onKeydown:D}),{default:ee=>re(T,ee,null)}),(ae=t.footer)==null?void 0:ae.call(t)])}}});function RIe(e,t){const{aliasProps:n,getLabel:r,getValue:o}=FC(e),i=te(0),a=te(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 NIe=11,IIe=(e,t)=>{const{t:n}=or(),r=lt("select"),o=lt("input"),{form:i,formItem:a}=ss(),{inputId:s}=_c(e,{formItemContext:a}),{aliasProps:l,getLabel:u,getValue:d,getDisabled:p,getOptions:v}=FC(e),{valueOnClear:y,isEmptyValue:w}=MC(e),b=rr({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),k=te(-1),C=te(null),P=te(null),$=te(null),T=te(null),A=te(null),R=te(null),B=te(null),N=te(null),I=te(null),D=te(null),j=te(null),{isComposing:F,handleCompositionStart:G,handleCompositionEnd:ae,handleCompositionUpdate:K}=AC({afterComposition:_t=>dr(_t)}),{wrapperRef:H,isFocused:oe}=E1(A,{afterFocus(){e.automaticDropdown&&!X.value&&(X.value=!0,b.menuVisibleOnFocus=!0)},beforeBlur(_t){var cn,Bn;return((cn=$.value)==null?void 0:cn.isFocusInsideContent(_t))||((Bn=T.value)==null?void 0:Bn.isFocusInsideContent(_t))},afterBlur(){X.value=!1,b.menuVisibleOnFocus=!1}}),J=te([]),z=te([]),X=te(!1),ee=W(()=>e.disabled||(i==null?void 0:i.disabled)),he=W(()=>{const _t=z.value.length*e.itemHeight;return _t>e.height?e.height:_t}),fe=W(()=>e.multiple?xt(e.modelValue)&&e.modelValue.length>0:!w(e.modelValue)),Le=W(()=>e.clearable&&!ee.value&&b.inputHovering&&fe.value),Ie=W(()=>e.remote&&e.filterable?"":Ed),ze=W(()=>Ie.value&&r.is("reverse",X.value)),Ae=W(()=>(a==null?void 0:a.validateState)||""),_e=W(()=>WI[Ae.value]),ye=W(()=>e.remote?300:0),Ne=W(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!b.inputValue&&J.value.length===0?!1:e.filterable&&b.inputValue&&J.value.length>0&&z.value.length===0?e.noMatchText||n("el.select.noMatch"):J.value.length===0?e.noDataText||n("el.select.noData"):null),Se=_t=>{const cn=Bn=>{if(e.filterable&&nn(e.filterMethod)||e.filterable&&e.remote&&nn(e.remoteMethod))return!0;const _r=new RegExp(NI(_t),"i");return _t?_r.test(u(Bn)||""):!0};return e.loading?[]:[...b.createdOptions,...e.options].reduce((Bn,_r)=>{const Ni=v(_r);if(xt(Ni)){const cs=Ni.filter(cn);cs.length>0&&Bn.push({label:u(_r),type:"Group"},...cs)}else(e.remote||cn(_r))&&Bn.push(_r);return Bn},[])},ce=()=>{J.value=Se(""),z.value=Se(b.inputValue)},be=W(()=>{const _t=new Map;return J.value.forEach((cn,Bn)=>{_t.set(Nt(d(cn)),{option:cn,index:Bn})}),_t}),pe=W(()=>{const _t=new Map;return z.value.forEach((cn,Bn)=>{_t.set(Nt(d(cn)),{option:cn,index:Bn})}),_t}),Me=W(()=>z.value.every(_t=>p(_t))),Ze=_i(),Be=W(()=>Ze.value==="small"?"small":"default"),$e=()=>{var _t;k.value=((_t=C.value)==null?void 0:_t.offsetWidth)||200},Je=()=>{if(!P.value)return 0;const _t=window.getComputedStyle(P.value);return Number.parseFloat(_t.gap||"6px")},Oe=W(()=>{const _t=Je();return{maxWidth:`${j.value&&e.maxCollapseTags===1?b.selectionWidth-b.collapseItemWidth-_t:b.selectionWidth}px`}}),Ye=W(()=>({maxWidth:`${b.selectionWidth}px`})),ut=W(()=>({width:`${Math.max(b.calculatorWidth,NIe)}px`})),qe=W(()=>xt(e.modelValue)?e.modelValue.length===0&&!b.inputValue:e.filterable?!b.inputValue:!0),ot=W(()=>{var _t;const cn=(_t=e.placeholder)!=null?_t:n("el.select.placeholder");return e.multiple||!fe.value?cn:b.selectedLabel}),ft=W(()=>{var _t,cn;return(cn=(_t=$.value)==null?void 0:_t.popperRef)==null?void 0:cn.contentRef}),kt=W(()=>{if(e.multiple){const _t=e.modelValue.length;if(e.modelValue.length>0&&pe.value.has(e.modelValue[_t-1])){const{index:cn}=pe.value.get(e.modelValue[_t-1]);return cn}}else if(e.modelValue&&pe.value.has(e.modelValue)){const{index:_t}=pe.value.get(e.modelValue);return _t}return-1}),Wt=W({get(){return X.value&&Ne.value!==!1},set(_t){X.value=_t}}),Ct=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:Ce,removeNewOption:He,selectNewOption:me,clearAllNewOption:Ve}=RIe(e,b),ke=()=>{ee.value||(b.menuVisibleOnFocus?b.menuVisibleOnFocus=!1:X.value=!X.value)},Xe=()=>{b.inputValue.length>0&&!X.value&&(X.value=!0),Ce(b.inputValue),Ft(b.inputValue)},nt=$s(Xe,ye.value),Ft=_t=>{b.previousQuery===_t||F.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)&&z.value.length?zt(Vn):zt(Yn))},Vn=()=>{const _t=z.value.filter(_r=>!_r.disabled&&_r.type!=="Group"),cn=_t.find(_r=>_r.created),Bn=_t[0];b.hoveringIndex=wn(z.value,cn||Bn)},rt=_t=>{os(e.modelValue,_t)||t(so,_t)},Lt=_t=>{t(En,_t),rt(_t),b.previousValue=e.multiple?String(_t):_t},wn=(_t=[],cn)=>{if(!Pn(cn))return _t.indexOf(cn);const Bn=e.valueKey;let _r=-1;return _t.some((Ni,cs)=>Mo(Ni,Bn)===Mo(cn,Bn)?(_r=cs,!0):!1),_r},Nt=_t=>Pn(_t)?Mo(_t,e.valueKey):_t,Xt=()=>{$e()},Ht=()=>{b.selectionWidth=P.value.getBoundingClientRect().width},Sn=()=>{b.calculatorWidth=R.value.getBoundingClientRect().width},jr=()=>{b.collapseItemWidth=j.value.getBoundingClientRect().width},to=()=>{var _t,cn;(cn=(_t=$.value)==null?void 0:_t.updatePopper)==null||cn.call(_t)},ya=()=>{var _t,cn;(cn=(_t=T.value)==null?void 0:_t.updatePopper)==null||cn.call(_t)},fi=_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),He(_t)):(e.multipleLimit<=0||cn.length<e.multipleLimit)&&(cn=[...cn,d(_t)],b.cachedOptions.push(_t),me(_t)),Lt(cn),_t.created&&Ft(""),e.filterable&&!e.reserveKeyword&&(b.inputValue="")}else b.selectedLabel=u(_t),Lt(d(_t)),X.value=!1,me(_t),_t.created||Ve();ba()},Fa=(_t,cn)=>{let Bn=e.modelValue.slice();const _r=wn(Bn,d(cn));_r>-1&&!ee.value&&(Bn=[...e.modelValue.slice(0,_r),...e.modelValue.slice(_r+1)],b.cachedOptions.splice(_r,1),Lt(Bn),t("remove-tag",d(cn)),He(cn)),_t.stopPropagation(),ba()},ba=()=>{var _t;(_t=A.value)==null||_t.focus()},Af=()=>{var _t;(_t=A.value)==null||_t.blur()},Ql=()=>{b.inputValue.length>0?b.inputValue="":X.value=!1},Wi=_t=>vC(_t,cn=>!b.cachedOptions.some(Bn=>d(Bn)===cn&&p(Bn))),ll=_t=>{if(!!e.multiple&&_t.code!==Qt.delete&&b.inputValue.length===0){_t.preventDefault();const cn=e.modelValue.slice(),Bn=Wi(cn);if(Bn<0)return;const _r=cn[Bn];cn.splice(Bn,1);const Ni=b.cachedOptions[Bn];b.cachedOptions.splice(Bn,1),He(Ni),Lt(cn),t("remove-tag",_r)}},bn=()=>{let _t;xt(e.modelValue)?_t=[]:_t=y.value,e.multiple?b.cachedOptions=[]:b.selectedLabel="",X.value=!1,Lt(_t),t("clear"),Ve(),ba()},Sc=(_t,cn=void 0)=>{const Bn=z.value;if(!["forward","backward"].includes(_t)||ee.value||Bn.length<=0||Me.value||F.value)return;if(!X.value)return ke();cn===void 0&&(cn=b.hoveringIndex);let _r=-1;_t==="forward"?(_r=cn+1,_r>=Bn.length&&(_r=0)):_t==="backward"&&(_r=cn-1,(_r<0||_r>=Bn.length)&&(_r=Bn.length-1));const Ni=Bn[_r];if(p(Ni)||Ni.type==="Group")return Sc(_t,_r);b.hoveringIndex=_r,Xo(_r)},wt=()=>{if(X.value)~b.hoveringIndex&&z.value[b.hoveringIndex]&&fi(z.value[b.hoveringIndex]);else return ke()},rn=_t=>{b.hoveringIndex=_t},Yn=()=>{e.multiple?b.hoveringIndex=z.value.findIndex(_t=>e.modelValue.some(cn=>Nt(cn)===Nt(_t))):b.hoveringIndex=z.value.findIndex(_t=>Nt(_t)===Nt(e.modelValue))},dr=_t=>{if(b.inputValue=_t.target.value,e.remote)nt();else return Xe()},Yi=_t=>{if(X.value=!1,oe.value){const cn=new FocusEvent("focus",_t);handleBlur(cn)}},ii=()=>(b.isBeforeHide=!1,zt(()=>{~kt.value&&Xo(b.hoveringIndex)})),Xo=_t=>{I.value.scrollToItem(_t)},Go=_t=>{const cn=Nt(_t);if(be.value.has(cn)){const{option:Bn}=be.value.get(cn);return Bn}return{[l.value.value]:_t,[l.value.label]:_t}},di=()=>{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=Go(_t);b.cachedOptions.push(cn)}}else b.cachedOptions=[],b.previousValue=void 0;else if(fe.value){b.previousValue=e.modelValue;const _t=z.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;Ve(),$e()};return at(X,_t=>{_t?Ft(""):(b.inputValue="",b.previousQuery=null,b.isBeforeHide=!0,Ce("")),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))&&di(),!os(_t,cn)&&e.validateEvent&&((Bn=a==null?void 0:a.validate)==null||Bn.call(a,"change").catch(_r=>void 0))},{deep:!0}),at(()=>e.options,()=>{const _t=A.value;(!_t||_t&&document.activeElement!==_t)&&di()},{deep:!0,flush:"post"}),at(()=>z.value,()=>I.value&&zt(I.value.resetScrollTop)),Da(()=>{b.isBeforeHide||ce()}),Da(()=>{const{valueKey:_t,options:cn}=e,Bn=new Map;for(const _r of cn){const Ni=d(_r);let cs=Ni;if(Pn(cs)&&(cs=Mo(Ni,_t)),Bn.get(cs))break;Bn.set(cs,!0)}}),vn(()=>{di()}),Oo(C,Xt),Oo(P,Ht),Oo(R,Sn),Oo(I,to),Oo(H,to),Oo(D,ya),Oo(j,jr),{inputId:s,collapseTagSize:Be,currentPlaceholder:ot,expanded:X,emptyText:Ne,popupHeight:he,debounce:ye,allOptions:J,filteredOptions:z,iconComponent:Ie,iconReverse:ze,tagStyle:Oe,collapseTagStyle:Ye,inputStyle:ut,popperSize:k,dropdownMenuVisible:Wt,hasModelValue:fe,shouldShowPlaceholder:qe,selectDisabled:ee,selectSize:Ze,showClearBtn:Le,states:b,isFocused:oe,nsSelect:r,nsInput:o,calculatorRef:R,inputRef:A,menuRef:I,tagMenuRef:D,tooltipRef:$,tagTooltipRef:T,selectRef:C,wrapperRef:H,selectionRef:P,prefixRef:B,suffixRef:N,collapseItemRef:j,popperRef:ft,validateState:Ae,validateIcon:_e,showTagList:Ct,collapseTagList:ln,debouncedOnInputChange:nt,deleteTag:Fa,getLabel:u,getValue:d,getDisabled:p,getValueKey:Nt,handleClear:bn,handleClickOutside:Yi,handleDel:ll,handleEsc:Ql,focus:ba,blur:Af,handleMenuEnter:ii,handleResize:Xt,resetSelectionWidth:Ht,resetCalculatorWidth:Sn,updateTooltip:to,updateTagTooltip:ya,updateOptions:ce,toggleMenu:ke,scrollTo:Xo,onInput:dr,onKeyboardNavigate:Sc,onKeyboardSelect:wt,onSelect:fi,onHover:rn,handleCompositionStart:G,handleCompositionEnd:ae,handleCompositionUpdate:K}},DIe=xe({name:"ElSelectV2",components:{ElSelectMenu:MIe,ElTag:op,ElTooltip:na,ElIcon:jt},directives:{ClickOutside:pd},props:EIe,emits:[En,so,"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=IIe(rr({...ea(e),modelValue:n}),t);return Wn(FD,{props:rr({...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 jIe(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=J2("click-outside");return yn((Z(),ue("div",{ref:"selectRef",class:q([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:le(()=>[ve("div",{ref:"wrapperRef",class:q([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(),ue("div",{key:0,ref:"prefixRef",class:q(e.nsSelect.e("prefix"))},[Ge(e.$slots,"prefix")],2)):Fe("v-if",!0),ve("div",{ref:"selectionRef",class:q([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?Ge(e.$slots,"tag",{key:0},()=>[(Z(!0),ue(Tt,null,_n(e.showTagList,p=>(Z(),ue("div",{key:e.getValueKey(e.getValue(p)),class:q(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:le(()=>[ve("span",{class:q(e.nsSelect.e("tags-text"))},[Ge(e.$slots,"label",{label:e.getLabel(p),value:e.getValue(p)},()=>[St(ct(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(Z(),Qe(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:le(()=>[ve("div",{ref:"collapseItemRef",class:q(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:le(()=>[ve("span",{class:q(e.nsSelect.e("tags-text"))}," + "+ct(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:le(()=>[ve("div",{ref:"tagMenuRef",class:q(e.nsSelect.e("selection"))},[(Z(!0),ue(Tt,null,_n(e.collapseTagList,p=>(Z(),ue("div",{key:e.getValueKey(e.getValue(p)),class:q(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:le(()=>[ve("span",{class:q(e.nsSelect.e("tags-text"))},[Ge(e.$slots,"label",{label:e.getLabel(p),value:e.getValue(p)},()=>[St(ct(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):Fe("v-if",!0)]):Fe("v-if",!0),e.selectDisabled?Fe("v-if",!0):(Z(),ue("div",{key:1,class:q([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:q([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:[Fr(tn(p=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),Fr(tn(p=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),Fr(tn(e.onKeyboardSelect,["stop","prevent"]),["enter"]),Fr(tn(e.handleEsc,["stop","prevent"]),["esc"]),Fr(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"]),[[MN,e.states.inputValue]]),e.filterable?(Z(),ue("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:q(e.nsSelect.e("input-calculator")),textContent:ct(e.states.inputValue)},null,10,["textContent"])):Fe("v-if",!0)],2)),e.shouldShowPlaceholder?(Z(),ue("div",{key:2,class:q([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Ge(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[ve("span",null,ct(e.currentPlaceholder),1)]):(Z(),ue("span",{key:1},ct(e.currentPlaceholder),1))],2)):Fe("v-if",!0)],2),ve("div",{ref:"suffixRef",class:q(e.nsSelect.e("suffix"))},[e.iconComponent?yn((Z(),Qe(l,{key:0,class:q([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:le(()=>[(Z(),Qe(Dn(e.iconComponent)))]),_:1},8,["class"])),[[pr,!e.showClearBtn]]):Fe("v-if",!0),e.showClearBtn&&e.clearIcon?(Z(),Qe(l,{key:1,class:q([e.nsSelect.e("caret"),e.nsInput.e("icon")]),onClick:tn(e.handleClear,["prevent","stop"])},{default:le(()=>[(Z(),Qe(Dn(e.clearIcon)))]),_:1},8,["class","onClick"])):Fe("v-if",!0),e.validateState&&e.validateIcon?(Z(),Qe(l,{key:2,class:q([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:le(()=>[(Z(),Qe(Dn(e.validateIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],2)],10,["onClick"])]),content:le(()=>[re(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Dl({default:le(p=>[Ge(e.$slots,"default",ac(Zh(p)))]),_:2},[e.$slots.header?{name:"header",fn:le(()=>[ve("div",{class:q(e.nsSelect.be("dropdown","header"))},[Ge(e.$slots,"header")],2)])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:le(()=>[ve("div",{class:q(e.nsSelect.be("dropdown","loading"))},[Ge(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:le(()=>[ve("div",{class:q(e.nsSelect.be("dropdown","empty"))},[Ge(e.$slots,"empty",{},()=>[ve("span",null,ct(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:le(()=>[ve("div",{class:q(e.nsSelect.be("dropdown","footer"))},[Ge(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 LIe=vt(DIe,[["render",jIe],["__file","select.vue"]]);const BIe=pn(LIe),VIe=gt({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),FIe=gt({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),zIe=xe({name:"ElSkeletonItem"}),QIe=xe({...zIe,props:FIe,setup(e){const t=lt("skeleton");return(n,r)=>(Z(),ue("div",{class:q([m(t).e("item"),m(t).e(n.variant)])},[n.variant==="image"?(Z(),Qe(m(D1e),{key:0})):Fe("v-if",!0)],2))}});var e2=vt(QIe,[["__file","skeleton-item.vue"]]);const WIe=xe({name:"ElSkeleton"}),YIe=xe({...WIe,props:VIe,setup(e,{expose:t}){const n=e,r=lt("skeleton"),o=ASe(Cr(n,"loading"),n.throttle);return t({uiLoading:o}),(i,a)=>m(o)?(Z(),ue("div",In({key:0,class:[m(r).b(),m(r).is("animated",i.animated)]},i.$attrs),[(Z(!0),ue(Tt,null,_n(i.count,s=>(Z(),ue(Tt,{key:s},[i.loading?Ge(i.$slots,"template",{key:s},()=>[re(e2,{class:q(m(r).is("first")),variant:"p"},null,8,["class"]),(Z(!0),ue(Tt,null,_n(i.rows,l=>(Z(),Qe(e2,{key:l,class:q([m(r).e("paragraph"),m(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):Fe("v-if",!0)],64))),128))],16)):Ge(i.$slots,"default",ac(In({key:1},i.$attrs)))}});var ZIe=vt(YIe,[["__file","skeleton.vue"]]);const UIe=pn(ZIe,{SkeletonItem:e2}),HIe=xo(e2),CU=Symbol("sliderContextKey"),XIe=gt({modelValue:{type:je([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:Mi,inputSize:Mi,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:je(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:je(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:wv,default:"top"},marks:{type:je(Object)},validateEvent:{type:Boolean,default:!0},...pa(["ariaLabel"])}),U$=e=>en(e)||xt(e)&&e.every(en),GIe={[En]:U$,[Cs]:U$,[so]:U$},KIe=(e,t,n)=>{const r=te();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),Mr(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]})):[]),JIe=(e,t,n)=>{const{form:r,formItem:o}=ss(),i=Jr(),a=te(),s=te(),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=F=>{const G=e.min+F*(e.max-e.min)/100;if(!e.range)return a;let ae;return Math.abs(d.value-G)<Math.abs(p.value-G)?ae=t.firstValue<t.secondValue?"firstButton":"secondButton":ae=t.firstValue>t.secondValue?"firstButton":"secondButton",l[ae]},P=F=>{const G=C(F);return G.value.setPosition(F),G},$=F=>{t.firstValue=F!=null?F:e.min,A(e.range?[d.value,p.value]:F!=null?F:e.min)},T=F=>{t.secondValue=F,e.range&&A([d.value,p.value])},A=F=>{n(En,F),n(Cs,F)},R=async()=>{await zt(),n(so,e.range?[d.value,p.value]:e.modelValue)},B=F=>{var G,ae,K,H,oe,J;if(u.value||t.dragging)return;k();let z=0;if(e.vertical){const X=(K=(ae=(G=F.touches)==null?void 0:G.item(0))==null?void 0:ae.clientY)!=null?K:F.clientY;z=(i.value.getBoundingClientRect().bottom-X)/t.sliderSize*100}else{const X=(J=(oe=(H=F.touches)==null?void 0:H.item(0))==null?void 0:oe.clientX)!=null?J:F.clientX,ee=i.value.getBoundingClientRect().left;z=(X-ee)/t.sliderSize*100}if(!(z<0||z>100))return P(z)};return{elFormItem:o,slider:i,firstButton:a,secondButton:s,sliderDisabled:u,minValue:d,maxValue:p,runwayStyle:w,barStyle:b,resetSize:k,setPosition:P,emitChange:R,onSliderWrapperPrevent:F=>{var G,ae;(((G=l.firstButton.value)==null?void 0:G.dragging)||((ae=l.secondButton.value)==null?void 0:ae.dragging))&&F.preventDefault()},onSliderClick:F=>{B(F)&&R()},onSliderDown:async F=>{const G=B(F);G&&(await zt(),G.value.onButtonDown(F))},onSliderMarkerDown:F=>{u.value||t.dragging||P(F)},setFirstValue:$,setSecondValue:T}},{left:eDe,down:tDe,right:nDe,up:rDe,home:oDe,end:iDe,pageUp:aDe,pageDown:sDe}=Qt,lDe=(e,t,n)=>{const r=te(),o=te(!1),i=W(()=>t.value instanceof Function),a=W(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=$s(()=>{n.value&&(o.value=!0)},50),l=$s(()=>{n.value&&(o.value=!1)},50);return{tooltip:r,tooltipVisible:o,formatValue:a,displayTooltip:s,hideTooltip:l}},uDe=(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}=Pt(CU),{tooltip:w,tooltipVisible:b,formatValue:k,displayTooltip:C,hideTooltip:P}=lDe(e,d,s),$=te(),T=W(()=>`${(e.modelValue-o.value)/(i.value-o.value)*100}%`),A=W(()=>e.vertical?{bottom:T.value}:{left:T.value}),R=()=>{t.hovering=!0,C()},B=()=>{t.hovering=!1,t.dragging||P()},N=he=>{r.value||(he.preventDefault(),J(he),window.addEventListener("mousemove",z),window.addEventListener("touchmove",z),window.addEventListener("mouseup",X),window.addEventListener("touchend",X),window.addEventListener("contextmenu",X),$.value.focus())},I=he=>{r.value||(t.newPosition=Number.parseFloat(T.value)+he/(i.value-o.value)*100,ee(t.newPosition),p())},D=()=>{I(-a.value)},j=()=>{I(a.value)},F=()=>{I(-a.value*4)},G=()=>{I(a.value*4)},ae=()=>{r.value||(ee(0),p())},K=()=>{r.value||(ee(100),p())},H=he=>{let fe=!0;[eDe,tDe].includes(he.key)?D():[nDe,rDe].includes(he.key)?j():he.key===oDe?ae():he.key===iDe?K():he.key===sDe?F():he.key===aDe?G():fe=!1,fe&&he.preventDefault()},oe=he=>{let fe,Le;return he.type.startsWith("touch")?(Le=he.touches[0].clientY,fe=he.touches[0].clientX):(Le=he.clientY,fe=he.clientX),{clientX:fe,clientY:Le}},J=he=>{t.dragging=!0,t.isClick=!0;const{clientX:fe,clientY:Le}=oe(he);e.vertical?t.startY=Le:t.startX=fe,t.startPosition=Number.parseFloat(T.value),t.newPosition=t.startPosition},z=he=>{if(t.dragging){t.isClick=!1,C(),v();let fe;const{clientX:Le,clientY:Ie}=oe(he);e.vertical?(t.currentY=Ie,fe=(t.startY-t.currentY)/u.value*100):(t.currentX=Le,fe=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+fe,ee(t.newPosition)}},X=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||P(),t.isClick||ee(t.newPosition),p()},0),window.removeEventListener("mousemove",z),window.removeEventListener("touchmove",z),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),window.removeEventListener("contextmenu",X))},ee=async he=>{if(he===null||Number.isNaN(+he))return;he<0?he=0:he>100&&(he=100);const fe=100/((i.value-o.value)/a.value);let Ie=Math.round(he/fe)*fe*(i.value-o.value)*.01+o.value;Ie=Number.parseFloat(Ie.toFixed(l.value)),Ie!==e.modelValue&&n(En,Ie),!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)}),Mr($,"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:ee}},cDe=(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}%`}}),fDe=(e,t,n,r,o,i)=>{const a=u=>{o(En,u),o(Cs,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&&Ai("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()})},dDe=gt({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:wv,default:"top"}}),hDe={[En]:e=>en(e)},pDe=xe({name:"ElSliderButton"}),gDe=xe({...pDe,props:dDe,emits:hDe,setup(e,{expose:t,emit:n}){const r=e,o=lt("slider"),i=rr({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}=uDe(r,i,n),{hovering:P,dragging:$}=ea(i);return t({onButtonDown:b,onKeyDown:k,setPosition:C,hovering:P,dragging:$}),(T,A)=>(Z(),ue("div",{ref_key:"button",ref:s,class:q([m(o).e("button-wrapper"),{hover:m(P),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(na),{ref_key:"tooltip",ref:l,visible:m(d),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!m(u),persistent:""},{content:le(()=>[ve("span",null,ct(m(v)),1)]),default:le(()=>[ve("div",{class:q([m(o).e("button"),{hover:m(P),dragging:m($)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var uB=vt(gDe,[["__file","button.vue"]]);const vDe=gt({mark:{type:je([String,Object]),default:void 0}});var mDe=xe({name:"ElSliderMarker",props:vDe,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()=>Zt("div",{class:t.e("marks-text"),style:r.value},n.value)}});const yDe=xe({name:"ElSlider"}),bDe=xe({...yDe,props:XIe,emits:GIe,setup(e,{expose:t,emit:n}){const r=e,o=lt("slider"),{t:i}=or(),a=rr({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:P,onSliderClick:$,onSliderDown:T,onSliderMarkerDown:A,setFirstValue:R,setSecondValue:B}=JIe(r,a,n),{stops:N,getStopStyle:I}=cDe(r,a,v,y),{inputId:D,isLabeledByFormItem:j}=_c(r,{formItemContext:s}),F=_i(),G=W(()=>r.inputSize||F.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(fe.value):`${fe.value}`),oe=W(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),J=W(()=>r.formatValueText?r.formatValueText(Le.value):`${Le.value}`),z=W(()=>[o.b(),o.m(F.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}]),X=qIe(r);fDe(r,a,v,y,n,s);const ee=W(()=>{const Ae=[r.min,r.max,r.step].map(_e=>{const ye=`${_e}`.split(".")[1];return ye?ye.length:0});return Math.max.apply(null,Ae)}),{sliderWrapper:he}=KIe(r,a,k),{firstValue:fe,secondValue:Le,sliderSize:Ie}=ea(a),ze=Ae=>{a.dragging=Ae};return Mr(he,"touchstart",P,{passive:!1}),Mr(he,"touchmove",P,{passive:!1}),Wn(CU,{...ea(r),sliderSize:Ie,disabled:p,precision:ee,emitChange:C,resetSize:k,updateDragging:ze}),t({onSliderClick:$}),(Ae,_e)=>{var ye,Ne;return Z(),ue("div",{id:Ae.range?m(D):void 0,ref_key:"sliderWrapper",ref:he,class:q(m(z)),role:Ae.range?"group":void 0,"aria-label":Ae.range&&!m(j)?m(ae):void 0,"aria-labelledby":Ae.range&&m(j)?(ye=m(s))==null?void 0:ye.labelId:void 0},[ve("div",{ref_key:"slider",ref:l,class:q([m(o).e("runway"),{"show-input":Ae.showInput&&!Ae.range},m(o).is("disabled",m(p))]),style:Vt(m(w)),onMousedown:m(T),onTouchstartPassive:m(T)},[ve("div",{class:q(m(o).e("bar")),style:Vt(m(b))},null,6),re(uB,{id:Ae.range?void 0:m(D),ref_key:"firstButton",ref:u,"model-value":m(fe),vertical:Ae.vertical,"tooltip-class":Ae.tooltipClass,placement:Ae.placement,role:"slider","aria-label":Ae.range||!m(j)?m(K):void 0,"aria-labelledby":!Ae.range&&m(j)?(Ne=m(s))==null?void 0:Ne.labelId:void 0,"aria-valuemin":Ae.min,"aria-valuemax":Ae.range?m(Le):Ae.max,"aria-valuenow":m(fe),"aria-valuetext":m(H),"aria-orientation":Ae.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"]),Ae.range?(Z(),Qe(uB,{key:0,ref_key:"secondButton",ref:d,"model-value":m(Le),vertical:Ae.vertical,"tooltip-class":Ae.tooltipClass,placement:Ae.placement,role:"slider","aria-label":m(oe),"aria-valuemin":m(fe),"aria-valuemax":Ae.max,"aria-valuenow":m(Le),"aria-valuetext":m(J),"aria-orientation":Ae.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"])):Fe("v-if",!0),Ae.showStops?(Z(),ue("div",{key:1},[(Z(!0),ue(Tt,null,_n(m(N),(Se,ce)=>(Z(),ue("div",{key:ce,class:q(m(o).e("stop")),style:Vt(m(I)(Se))},null,6))),128))])):Fe("v-if",!0),m(X).length>0?(Z(),ue(Tt,{key:2},[ve("div",null,[(Z(!0),ue(Tt,null,_n(m(X),(Se,ce)=>(Z(),ue("div",{key:ce,style:Vt(m(I)(Se.position)),class:q([m(o).e("stop"),m(o).e("marks-stop")])},null,6))),128))]),ve("div",{class:q(m(o).e("marks"))},[(Z(!0),ue(Tt,null,_n(m(X),(Se,ce)=>(Z(),Qe(m(mDe),{key:ce,mark:Se.mark,style:Vt(m(I)(Se.position)),onMousedown:tn(be=>m(A)(Se.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):Fe("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),Ae.showInput&&!Ae.range?(Z(),Qe(m(JZ),{key:0,ref:"input","model-value":m(fe),class:q(m(o).e("input")),step:Ae.step,disabled:m(p),controls:Ae.showInputControls,min:Ae.min,max:Ae.max,precision:m(ee),debounce:Ae.debounce,size:m(G),"onUpdate:modelValue":m(R),onChange:m(C)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):Fe("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var _De=vt(bDe,[["__file","slider.vue"]]);const ODe=pn(_De),wDe=gt({prefixCls:{type:String}}),cB=xe({name:"ElSpaceItem",props:wDe,setup(e,{slots:t}){const n=lt("space"),r=W(()=>`${e.prefixCls||n.b()}__item`);return()=>Zt("div",{class:r.value},Ge(t,"default"))}}),fB={small:8,default:12,large:16};function SDe(e){const t=lt("space"),n=W(()=>[t.b(),t.m(e.direction),e.class]),r=te(0),o=te(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 Da(()=>{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=fB[s||"small"]||fB.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 xDe=gt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:je([String,Object,Array]),default:""},style:{type:je([String,Array,Object]),default:""},alignment:{type:je(String),default:"center"},prefixCls:{type:String},spacer:{type:je([Object,String,Number,Array]),default:null,validator:e=>_o(e)||en(e)||Gt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Sf,validator:e=>en(e)||xt(e)&&e.length===2&&e.every(en)}}),kDe=xe({name:"ElSpace",props:xDe,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:o}=SDe(e);function i(a,s="",l=[]){const{prefixCls:u}=e;return a.forEach((d,p)=>{sM(d)?xt(d.children)&&d.children.forEach((v,y)=>{sM(v)&&xt(v.children)?i(v.children,`${s+y}-`,l):l.push(re(cB,{style:o.value,prefixCls:u,key:`nested-${s+y}`},{default:()=>[v]},uu.PROPS|uu.STYLE,["style","prefixCls"]))}):dwe(d)&&l.push(re(cB,{style:o.value,prefixCls:u,key:`LoopKey${s+p}`},{default:()=>[d]},uu.PROPS|uu.STYLE,["style","prefixCls"]))}),l}return()=>{var a;const{spacer:s,direction:l}=e,u=Ge(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},[_o(s)?s:St(s,uu.TEXT)],uu.STYLE)),b},[])}return re("div",{class:n.value,style:r.value},d,uu.STYLE|uu.CLASS)}return u.children}}}),CDe=pn(kDe),EDe=gt({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:je([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:je([String,Object,Array])}}),TDe=xe({name:"ElStatistic"}),PDe=xe({...TDe,props:EDe,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(),ue("div",{class:q(m(r).b())},[i.$slots.title||i.title?(Z(),ue("div",{key:0,class:q(m(r).e("head"))},[Ge(i.$slots,"title",{},()=>[St(ct(i.title),1)])],2)):Fe("v-if",!0),ve("div",{class:q(m(r).e("content"))},[i.$slots.prefix||i.prefix?(Z(),ue("div",{key:0,class:q(m(r).e("prefix"))},[Ge(i.$slots,"prefix",{},()=>[ve("span",null,ct(i.prefix),1)])],2)):Fe("v-if",!0),ve("span",{class:q(m(r).e("number")),style:Vt(i.valueStyle)},ct(m(o)),7),i.$slots.suffix||i.suffix?(Z(),ue("div",{key:1,class:q(m(r).e("suffix"))},[Ge(i.$slots,"suffix",{},()=>[ve("span",null,ct(i.suffix),1)])],2)):Fe("v-if",!0)],2)],2))}});var $De=vt(PDe,[["__file","statistic.vue"]]);const EU=pn($De),ADe=gt({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:je([Number,Object]),default:0},valueStyle:{type:je([String,Object,Array])}}),MDe={finish:()=>!0,[so]:e=>en(e)},RDe=[["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]],dB=e=>en(e)?new Date(e).getTime():e.valueOf(),hB=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return RDe.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")},NDe=xe({name:"ElCountdown"}),IDe=xe({...NDe,props:ADe,emits:MDe,setup(e,{expose:t,emit:n}){const r=e;let o;const i=te(0),a=W(()=>hB(i.value,r.format)),s=d=>hB(d,r.format),l=()=>{o&&(lv(o),o=void 0)},u=()=>{const d=dB(r.value),p=()=>{let v=d-Date.now();n("change",v),v<=0?(v=0,l(),n("finish")):o=Kh(p),i.value=v};o=Kh(p)};return vn(()=>{i.value=dB(r.value)-Date.now(),at(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0})}),Hr(()=>{l()}),t({displayValue:a}),(d,p)=>(Z(),Qe(m(EU),{value:i.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:s},Dl({_:2},[_n(d.$slots,(v,y)=>({name:y,fn:le(()=>[Ge(d.$slots,y)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var DDe=vt(IDe,[["__file","countdown.vue"]]);const jDe=pn(DDe),LDe=gt({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"}}),BDe={[so]:(e,t)=>[e,t].every(en)},VDe=xe({name:"ElSteps"}),FDe=xe({...VDe,props:LDe,emits:BDe,setup(e,{emit:t}){const n=e,r=lt("steps"),{children:o,addChild:i,removeChild:a}=cD(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(so,s,l)}),(s,l)=>(Z(),ue("div",{class:q([m(r).b(),m(r).m(s.simple?"simple":s.direction)])},[Ge(s.$slots,"default")],2))}});var zDe=vt(FDe,[["__file","steps.vue"]]);const QDe=gt({title:{type:String,default:""},icon:{type:zr},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),WDe=xe({name:"ElStep"}),YDe=xe({...WDe,props:QDe,setup(e){const t=e,n=lt("step"),r=te(-1),o=te({}),i=te(""),a=Pt("ElSteps"),s=Cn();vn(()=>{at([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([R])=>{T(R)},{immediate:!0})}),Hr(()=>{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}),P=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},T=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=rr({uid:s.uid,currentStatus:l,setIndex:P,calcProgress:$});return a.addStep(A),(R,B)=>(Z(),ue("div",{style:Vt(m(C)),class:q(m(k))},[Fe(" icon & line "),ve("div",{class:q([m(n).e("head"),m(n).is(m(l))])},[m(v)?Fe("v-if",!0):(Z(),ue("div",{key:0,class:q(m(n).e("line"))},[ve("i",{class:q(m(n).e("line-inner")),style:Vt(o.value)},null,6)],2)),ve("div",{class:q([m(n).e("icon"),m(n).is(R.icon||R.$slots.icon?"icon":"text")])},[Ge(R.$slots,"icon",{},()=>[R.icon?(Z(),Qe(m(jt),{key:0,class:q(m(n).e("icon-inner"))},{default:le(()=>[(Z(),Qe(Dn(R.icon)))]),_:1},8,["class"])):m(l)==="success"?(Z(),Qe(m(jt),{key:1,class:q([m(n).e("icon-inner"),m(n).is("status")])},{default:le(()=>[re(m(p0))]),_:1},8,["class"])):m(l)==="error"?(Z(),Qe(m(jt),{key:2,class:q([m(n).e("icon-inner"),m(n).is("status")])},{default:le(()=>[re(m(ks))]),_:1},8,["class"])):m(v)?Fe("v-if",!0):(Z(),ue("div",{key:3,class:q(m(n).e("icon-inner"))},ct(r.value+1),3))])],2)],2),Fe(" title & description "),ve("div",{class:q(m(n).e("main"))},[ve("div",{class:q([m(n).e("title"),m(n).is(m(l))])},[Ge(R.$slots,"title",{},()=>[St(ct(R.title),1)])],2),m(v)?(Z(),ue("div",{key:0,class:q(m(n).e("arrow"))},null,2)):(Z(),ue("div",{key:1,class:q([m(n).e("description"),m(n).is(m(l))])},[Ge(R.$slots,"description",{},()=>[St(ct(R.description),1)])],2))],2)],6))}});var TU=vt(YDe,[["__file","item.vue"]]);const ZDe=pn(zDe,{Step:TU}),UDe=xo(TU),HDe=gt({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:$W},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:zr},activeActionIcon:{type:zr},activeIcon:{type:zr},inactiveIcon:{type:zr},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:je(Function)},id:String,tabindex:{type:[String,Number]},...pa(["ariaLabel"])}),XDe={[En]:e=>Ho(e)||Gt(e)||en(e),[so]:e=>Ho(e)||Gt(e)||en(e),[Cs]:e=>Ho(e)||Gt(e)||en(e)},PU="ElSwitch",GDe=xe({name:PU}),KDe=xe({...GDe,props:HDe,emits:XDe,setup(e,{expose:t,emit:n}){const r=e,{formItem:o}=ss(),i=_i(),a=lt("switch"),{inputId:s}=_c(r,{formItemContext:o}),l=Is(W(()=>r.loading)),u=te(r.modelValue!==!1),d=te(),p=te(),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:Fo(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(so,r.inactiveValue),n(Cs,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 P=()=>{const A=C.value?r.inactiveValue:r.activeValue;n(En,A),n(so,A),n(Cs,A),zt(()=>{d.value.checked=C.value})},$=()=>{if(l.value)return;const{beforeChange:A}=r;if(!A){P();return}const R=A();[hO(R),Ho(R)].includes(!0)||Ai(PU,"beforeChange must return type `Promise<boolean>` or `boolean`"),hO(R)?R.then(N=>{N&&P()}).catch(N=>{}):R&&P()},T=()=>{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:T,checked:C}),(A,R)=>(Z(),ue("div",{class:q(m(v)),onClick:tn($,["prevent"])},[ve("input",{id:m(s),ref_key:"input",ref:d,class:q(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:P,onKeydown:Fr($,["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(),ue("span",{key:0,class:q(m(y))},[A.inactiveIcon?(Z(),Qe(m(jt),{key:0},{default:le(()=>[(Z(),Qe(Dn(A.inactiveIcon)))]),_:1})):Fe("v-if",!0),!A.inactiveIcon&&A.inactiveText?(Z(),ue("span",{key:1,"aria-hidden":m(C)},ct(A.inactiveText),9,["aria-hidden"])):Fe("v-if",!0)],2)):Fe("v-if",!0),ve("span",{ref_key:"core",ref:p,class:q(m(a).e("core")),style:Vt(m(b))},[A.inlinePrompt?(Z(),ue("div",{key:0,class:q(m(a).e("inner"))},[A.activeIcon||A.inactiveIcon?(Z(),Qe(m(jt),{key:0,class:q(m(a).is("icon"))},{default:le(()=>[(Z(),Qe(Dn(m(C)?A.activeIcon:A.inactiveIcon)))]),_:1},8,["class"])):A.activeText||A.inactiveText?(Z(),ue("span",{key:1,class:q(m(a).is("text")),"aria-hidden":!m(C)},ct(m(C)?A.activeText:A.inactiveText),11,["aria-hidden"])):Fe("v-if",!0)],2)):Fe("v-if",!0),ve("div",{class:q(m(a).e("action"))},[A.loading?(Z(),Qe(m(jt),{key:0,class:q(m(a).is("loading"))},{default:le(()=>[re(m(ff))]),_:1},8,["class"])):m(C)?Ge(A.$slots,"active-action",{key:1},()=>[A.activeActionIcon?(Z(),Qe(m(jt),{key:0},{default:le(()=>[(Z(),Qe(Dn(A.activeActionIcon)))]),_:1})):Fe("v-if",!0)]):m(C)?Fe("v-if",!0):Ge(A.$slots,"inactive-action",{key:2},()=>[A.inactiveActionIcon?(Z(),Qe(m(jt),{key:0},{default:le(()=>[(Z(),Qe(Dn(A.inactiveActionIcon)))]),_:1})):Fe("v-if",!0)])],2)],6),!A.inlinePrompt&&(A.activeIcon||A.activeText)?(Z(),ue("span",{key:1,class:q(m(w))},[A.activeIcon?(Z(),Qe(m(jt),{key:0},{default:le(()=>[(Z(),Qe(Dn(A.activeIcon)))]),_:1})):Fe("v-if",!0),!A.activeIcon&&A.activeText?(Z(),ue("span",{key:1,"aria-hidden":!m(C)},ct(A.activeText),9,["aria-hidden"])):Fe("v-if",!0)],2)):Fe("v-if",!0)],10,["onClick"]))}});var qDe=vt(KDe,[["__file","switch.vue"]]);const $1=pn(qDe),H$=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},JDe=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"?Mo(s,u):u(s,l,e))):(t!=="$key"&&Pn(s)&&"$value"in s&&(s=s.$value),[Pn(s)?Mo(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)},$U=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},e3e=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||Ai("ElTable",`No column matching with column-key: ${t}`),n},pB=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?$U(e,r[0]):null},es=(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)},Qg=function(e,t){const n={};return(e||[]).forEach((r,o)=>{n[es(r,t)]={row:r,index:o}}),n};function t3e(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(ar(t,r)){const o=t[r];typeof o!="undefined"&&(n[r]=o)}return n}function zD(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function AU(e){return e===""||e!==void 0&&(e=zD(e),Number.isNaN(e)&&(e=80)),e}function n3e(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function r3e(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function t2(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)&&(Ho(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=>{t2(e,y,n!=null?n:!u,r,o,a+1),a+=v(y)+1}),s}function o3e(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 lu=null;function i3e(e,t,n,r){if((lu==null?void 0:lu.trigger)===n)return;lu==null||lu();const o=r==null?void 0:r.refs.tableWrapper,i=o==null?void 0:o.dataset.prefix,a={strategy:"fixed",...e.popperOptions},s=re(na,{content:t,virtualTriggering:!0,virtualRef:n,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:a,onHide:()=>{lu==null||lu()}});s.appContext={...r.appContext,...r};const l=document.createElement("div");Uh(s,l),s.component.exposed.onOpen();const u=o==null?void 0:o.querySelector(`.${i}-scrollbar__wrap`);lu=()=>{Uh(null,l),u==null||u.removeEventListener("scroll",lu),lu=null},lu.trigger=n,u==null||u.addEventListener("scroll",lu)}function MU(e){return e.children?$Q(e.children,MU):[e]}function gB(e,t){return e+t.colSpan}const RU=(e,t,n,r)=>{let o=0,i=e;const a=n.states.columns.value;if(r){const l=MU(r[e]);o=a.slice(0,a.indexOf(l[0])).reduce(gB,0),i=o+l.reduce(gB,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}:{}},QD=(e,t,n,r,o,i=0)=>{const a=[],{direction:s,start:l,after:u}=RU(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 vB(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const WD=(e,t,n,r)=>{const{direction:o,start:i=0,after:a=0}=RU(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(vB,0):s.right=u.slice(a+1).reverse().reduce(vB,0),s},Zy=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function a3e(e){const t=Cn(),n=te(!1),r=te([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const d=Qg(r.value,u);r.value=l.reduce((p,v)=>{const y=es(v,u);return d[y]&&p.push(v),p},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{t2(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=Qg(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?!!Qg(r.value,u)[es(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function s3e(e){const t=Cn(),n=te(null),r=te(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=>es(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=es(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 l3e(e){const t=te([]),n=te({}),r=te(16),o=te(!1),i=te({}),a=te("hasChildren"),s=te("children"),l=te(!1),u=Cn(),d=W(()=>{if(!e.rowKey.value)return{};const P=e.data.value||[];return v(P)}),p=W(()=>{const P=e.rowKey.value,$=Object.keys(i.value),T={};return $.length&&$.forEach(A=>{if(i.value[A].length){const R={children:[]};i.value[A].forEach(B=>{const N=es(B,P);R.children.push(N),B[a.value]&&!T[N]&&(T[N]={children:[]})}),T[A]=R}}),T}),v=P=>{const $=e.rowKey.value,T={};return o3e(P,(A,R,B)=>{const N=es(A,$);Array.isArray(R)?T[N]={children:R.map(I=>es(I,$)),level:B}:o.value&&(T[N]={children:[],lazy:!0,level:B})},s.value,a.value),T},y=(P=!1,$=(T=>(T=u.store)==null?void 0:T.states.defaultExpandAll.value)())=>{var T;const A=d.value,R=p.value,B=Object.keys(A),N={};if(B.length){const I=m(n),D=[],j=(G,ae)=>{if(P)return t.value?$||t.value.includes(ae):!!($||(G==null?void 0:G.expanded));{const K=$||t.value&&t.value.includes(ae);return!!((G==null?void 0:G.expanded)||K)}};B.forEach(G=>{const ae=I[G],K={...A[G]};if(K.expanded=j(ae,G),K.lazy){const{loaded:H=!1,loading:oe=!1}=ae||{};K.loaded=!!H,K.loading=!!oe,D.push(G)}N[G]=K});const F=Object.keys(R);o.value&&F.length&&D.length&&F.forEach(G=>{const ae=I[G],K=R[G].children;if(D.includes(G)){if(N[G].children.length!==0)throw new Error("[ElTable]children must be an empty array.");N[G].children=K}else{const{loaded:H=!1,loading:oe=!1}=ae||{};N[G]={lazy:!0,loaded:!!H,loading:!!oe,expanded:j(ae,G),children:K,level:""}}})}n.value=N,(T=u.store)==null||T.updateTableScrollY()};at(()=>t.value,()=>{y(!0)}),at(()=>d.value,()=>{y()}),at(()=>p.value,()=>{y()});const w=P=>{t.value=P,y()},b=(P,$)=>{u.store.assertRowKey();const T=e.rowKey.value,A=es(P,T),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",P,$),u.store.updateTableScrollY()}},k=P=>{u.store.assertRowKey();const $=e.rowKey.value,T=es(P,$),A=n.value[T];o.value&&A&&"loaded"in A&&!A.loaded?C(P,T,A):b(P,void 0)},C=(P,$,T)=>{const{load:A}=u.props;A&&!n.value[$].loaded&&(n.value[$].loading=!0,A(P,T,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",P,!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 u3e=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:JDe(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},uk=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,uk(n.children)):t.push(n)}),t};function c3e(){var e;const t=Cn(),{size:n}=ea((e=t.proxy)==null?void 0:e.$props),r=te(null),o=te([]),i=te([]),a=te(!1),s=te([]),l=te([]),u=te([]),d=te([]),p=te([]),v=te([]),y=te([]),w=te([]),b=[],k=te(0),C=te(0),P=te(0),$=te(!1),T=te([]),A=te(!1),R=te(!1),B=te(null),N=te({}),I=te(null),D=te(null),j=te(null),F=te(null),G=te(null);at(o,()=>t.state&&oe(!1),{deep:!0});const ae=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},K=Ce=>{var He;(He=Ce.children)==null||He.forEach(me=>{me.fixed=Ce.fixed,K(me)})},H=()=>{s.value.forEach(ke=>{K(ke)}),d.value=s.value.filter(ke=>ke.fixed===!0||ke.fixed==="left"),p.value=s.value.filter(ke=>ke.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 Ce=s.value.filter(ke=>!ke.fixed);l.value=[].concat(d.value).concat(Ce).concat(p.value);const He=uk(Ce),me=uk(d.value),Ve=uk(p.value);k.value=He.length,C.value=me.length,P.value=Ve.length,u.value=[].concat(me).concat(He).concat(Ve),a.value=d.value.length>0||p.value.length>0},oe=(Ce,He=!1)=>{Ce&&H(),He?t.state.doLayout():t.state.debouncedUpdateLayout()},J=Ce=>T.value.includes(Ce),z=()=>{$.value=!1;const Ce=T.value;T.value=[],Ce.length&&t.emit("selection-change",[])},X=()=>{let Ce;if(r.value){Ce=[];const He=Qg(T.value,r.value),me=Qg(o.value,r.value);for(const Ve in He)ar(He,Ve)&&!me[Ve]&&Ce.push(He[Ve].row)}else Ce=T.value.filter(He=>!o.value.includes(He));if(Ce.length){const He=T.value.filter(me=>!Ce.includes(me));T.value=He,t.emit("selection-change",He.slice())}},ee=()=>(T.value||[]).slice(),he=(Ce,He,me=!0)=>{var Ve,ke,Xe,nt;const Ft={children:(ke=(Ve=t==null?void 0:t.store)==null?void 0:Ve.states)==null?void 0:ke.childrenColumnName.value,checkStrictly:(nt=(Xe=t==null?void 0:t.store)==null?void 0:Xe.states)==null?void 0:nt.checkStrictly.value};if(t2(T.value,Ce,He,Ft,B.value)){const rt=(T.value||[]).slice();me&&t.emit("select",rt,Ce),t.emit("selection-change",rt)}},fe=()=>{var Ce,He;const me=R.value?!$.value:!($.value||T.value.length);$.value=me;let Ve=!1,ke=0;const Xe=(He=(Ce=t==null?void 0:t.store)==null?void 0:Ce.states)==null?void 0:He.rowKey.value,{childrenColumnName:nt}=t.store.states,Ft={children:nt.value,checkStrictly:!1};o.value.forEach((Vn,rt)=>{const Lt=rt+ke;t2(T.value,Vn,me,Ft,B.value,Lt)&&(Ve=!0),ke+=ze(es(Vn,Xe))}),Ve&&t.emit("selection-change",T.value?T.value.slice():[]),t.emit("select-all",(T.value||[]).slice())},Le=()=>{const Ce=Qg(T.value,r.value);o.value.forEach(He=>{const me=es(He,r.value),Ve=Ce[me];Ve&&(T.value[Ve.index]=He)})},Ie=()=>{var Ce;if(((Ce=o.value)==null?void 0:Ce.length)===0){$.value=!1;return}const{childrenColumnName:He}=t.store.states,me=r.value?Qg(T.value,r.value):void 0;let Ve=0,ke=0;const Xe=Vn=>me?!!me[es(Vn,r.value)]:T.value.includes(Vn),nt=Vn=>{var rt;for(const Lt of Vn){const wn=B.value&&B.value.call(null,Lt,Ve);if(Xe(Lt))ke++;else if(!B.value||wn)return!1;if(Ve++,((rt=Lt[He.value])==null?void 0:rt.length)&&!nt(Lt[He.value]))return!1}return!0},Ft=nt(o.value||[]);$.value=ke===0?!1:Ft},ze=Ce=>{var He;if(!t||!t.store)return 0;const{treeData:me}=t.store.states;let Ve=0;const ke=(He=me.value[Ce])==null?void 0:He.children;return ke&&(Ve+=ke.length,ke.forEach(Xe=>{Ve+=ze(Xe)})),Ve},Ae=(Ce,He)=>{Array.isArray(Ce)||(Ce=[Ce]);const me={};return Ce.forEach(Ve=>{N.value[Ve.id]=He,me[Ve.columnKey||Ve.id]=He}),me},_e=(Ce,He,me)=>{D.value&&D.value!==Ce&&(D.value.order=null),D.value=Ce,j.value=He,F.value=me},ye=()=>{let Ce=m(i);Object.keys(N.value).forEach(He=>{const me=N.value[He];if(!me||me.length===0)return;const Ve=$U({columns:u.value},He);Ve&&Ve.filterMethod&&(Ce=Ce.filter(ke=>me.some(Xe=>Ve.filterMethod.call(null,Xe,ke,Ve))))}),I.value=Ce},Ne=()=>{o.value=u3e(I.value,{sortingColumn:D.value,sortProp:j.value,sortOrder:F.value})},Se=(Ce=void 0)=>{Ce&&Ce.filter||ye(),Ne()},ce=Ce=>{const{tableHeaderRef:He}=t.refs;if(!He)return;const me=Object.assign({},He.filterPanels),Ve=Object.keys(me);if(!!Ve.length)if(typeof Ce=="string"&&(Ce=[Ce]),Array.isArray(Ce)){const ke=Ce.map(Xe=>e3e({columns:u.value},Xe));Ve.forEach(Xe=>{const nt=ke.find(Ft=>Ft.id===Xe);nt&&(nt.filteredValue=[])}),t.store.commit("filterChange",{column:ke,values:[],silent:!0,multi:!0})}else Ve.forEach(ke=>{const Xe=u.value.find(nt=>nt.id===ke);Xe&&(Xe.filteredValue=[])}),N.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},be=()=>{!D.value||(_e(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:pe,toggleRowExpansion:Me,updateExpandRows:Ze,states:Be,isRowExpanded:$e}=a3e({data:o,rowKey:r}),{updateTreeExpandKeys:Je,toggleTreeExpansion:Oe,updateTreeData:Ye,loadOrToggle:ut,states:qe}=l3e({data:o,rowKey:r}),{updateCurrentRowData:ot,updateCurrentRow:ft,setCurrentRowKey:kt,states:Wt}=s3e({data:o,rowKey:r});return{assertRowKey:ae,updateColumns:H,scheduleLayout:oe,isSelected:J,clearSelection:z,cleanSelection:X,getSelectionRows:ee,toggleRowSelection:he,_toggleAllSelection:fe,toggleAllSelection:null,updateSelectionByRowKey:Le,updateAllSelected:Ie,updateFilters:Ae,updateCurrentRow:ft,updateSort:_e,execFilter:ye,execSort:Ne,execQuery:Se,clearFilter:ce,clearSort:be,toggleRowExpansion:Me,setExpandRowKeysAdapter:Ce=>{pe(Ce),Je(Ce)},setCurrentRowKey:kt,toggleRowExpansionAdapter:(Ce,He)=>{u.value.some(({type:Ve})=>Ve==="expand")?Me(Ce,He):Oe(Ce,He)},isRowExpanded:$e,updateExpandRows:Ze,updateCurrentRowData:ot,loadOrToggle:ut,updateTreeData:Ye,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:P,isAllSelected:$,selection:T,reserveSelection:A,selectOnIndeterminate:R,selectable:B,filters:N,filteredData:I,sortingColumn:D,sortProp:j,sortOrder:F,hoverRow:G,...Be,...qe,...Wt}}}function WM(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=WM(n.children,t)),n)})}function YM(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&YM(t.children)}),e.sort((t,n)=>t.no-n.no)}function f3e(){const e=Cn(),t=c3e();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=WM(d,l)):(d.push(s),p=d),YM(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&&(YM(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=WM(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 d3e(e,t){if(!e)throw new Error("Table is required.");const n=f3e();return n.toggleAllSelection=$s(n._toggleAllSelection,10),Object.keys(q_).forEach(r=>{NU(IU(t,r),r,n)}),h3e(n,t),n}function h3e(e,t){Object.keys(q_).forEach(n=>{at(()=>IU(t,n),r=>{NU(r,n,e)})})}function NU(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 IU(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 p3e{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=te(null),this.scrollX=te(!1),this.scrollY=te(!1),this.bodyWidth=te(null),this.fixedWidth=te(null),this.rightFixedWidth=te(null),this.gutterWidth=0;for(const n in t)ar(t,n)&&(eo(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(!nr)return;const r=this.table.vnode.el;if(t=n3e(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(!nr)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:g3e}=zl,v3e=xe({name:"ElTableFilterPanel",components:{ElCheckbox:zl,ElCheckboxGroup:g3e,ElScrollbar:Oc,ElTooltip:na,ElIcon:jt,ArrowDown:Ed,ArrowUp:jI},directives:{ClickOutside:pd},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Cn(),{t:n}=or(),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=te(!1),a=te(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()},P=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 T=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:P,isActive:v,t:n,ns:r,showFilterPanel:w,hideFilterPanel:b,popperPaneRef:T,tooltip:a}}});function m3e(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=J2("click-outside");return Z(),Qe(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:le(()=>[e.multiple?(Z(),ue("div",{key:0},[ve("div",{class:q(e.ns.e("content"))},[re(l,{"wrap-class":e.ns.e("wrap")},{default:le(()=>[re(s,{modelValue:e.filteredValue,"onUpdate:modelValue":w=>e.filteredValue=w,class:q(e.ns.e("checkbox-group"))},{default:le(()=>[(Z(!0),ue(Tt,null,_n(e.filters,w=>(Z(),Qe(a,{key:w.value,value:w.value},{default:le(()=>[St(ct(w.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),ve("div",{class:q(e.ns.e("bottom"))},[ve("button",{class:q({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},ct(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),ve("button",{type:"button",onClick:e.handleReset},ct(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(Z(),ue("ul",{key:1,class:q(e.ns.e("list"))},[ve("li",{class:q([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:w=>e.handleSelect(null)},ct(e.t("el.table.clearFilter")),11,["onClick"]),(Z(!0),ue(Tt,null,_n(e.filters,w=>(Z(),ue("li",{key:w.value,class:q([e.ns.e("list-item"),e.ns.is("active",e.isActive(w))]),label:w.value,onClick:b=>e.handleSelect(w.value)},ct(w.text),11,["label","onClick"]))),128))],2))]),default:le(()=>[yn((Z(),ue("span",{class:q([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[re(p,null,{default:le(()=>[Ge(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(Z(),Qe(u,{key:0})):(Z(),Qe(d,{key:1}))])]),_:3})],10,["onClick"])),[[y,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class"])}var y3e=vt(v3e,[["render",m3e],["__file","filter-panel.vue"]]);function DU(e){const t=Cn();q2(()=>{n.value.addObserver(t)}),vn(()=>{r(n.value),o(n.value)}),vc(()=>{r(n.value),o(n.value)}),pp(()=>{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 Cf=Symbol("ElTable");function b3e(e,t){const n=Cn(),r=Pt(Cf),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=te(null),l=te(!1),u=te({}),d=(b,k)=>{if(!!nr&&!(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,T=n.vnode.el.querySelector(`th.${k.id}`),A=T.getBoundingClientRect(),R=A.left-$+30;vu(T,"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 j=D.clientX-u.value.startMouseLeft,F=u.value.startLeft+j;B.style.left=`${Math.max(R,F)}px`},I=()=>{if(l.value){const{startColumnLeft:D,startLeft:j}=u.value,G=Number.parseInt(B.style.left,10)-D;k.width=k.realWidth=G,C==null||C.emit("header-dragend",k.width,j-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(()=>{is(T,"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(!Nl(C))return;const P=C==null?void 0:C.closest("th");if(!(!k||!k.resizable)&&!l.value&&e.border){const $=P.getBoundingClientRect(),T=document.body.style;$.width>12&&$.right-b.pageX<8?(T.cursor="col-resize",Xs(P,"is-sortable")&&(P.style.cursor="col-resize"),s.value=k):l.value||(T.cursor="",Xs(P,"is-sortable")&&(P.style.cursor="pointer"),s.value=null)}},v=()=>{!nr||(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 P;b.stopPropagation();const $=k.order===C?null:C||y(k),T=(P=b.target)==null?void 0:P.closest("th");if(T&&Xs(T,"noclick")){is(T,"noclick");return}if(!k.sortable)return;const A=b.currentTarget;if(["ascending","descending"].some(D=>Xs(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 _3e(e){const t=Pt(Cf),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=WD(l,d.fixed,e.store,u);return Zy(y,"left"),Zy(y,"right"),Object.assign({},v,y)},getHeaderCellClass:(s,l,u,d)=>{const p=QD(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 jU=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,jU(n.children))):t.push(n)}),t},LU=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 jU(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 O3e(e){const t=Pt(Cf),n=W(()=>LU(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 w3e=xe({name:"ElTableHeader",components:{ElCheckbox:zl},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=Pt(Cf),o=lt("table"),i=te({}),{onColumnsChange:a,onScrollableChange:s}=DU(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}=b3e(e,t),{getHeaderRowStyle:b,getHeaderRowClass:k,getHeaderCellStyle:C,getHeaderCellClass:P}=_3e(e),{isGroup:$,toggleAllSelection:T,columnRows:A}=O3e(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:P,getHeaderCellStyle:C,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:p,handleMouseOut:v,handleSortClick:y,handleFilterClick:w,isGroup:$,toggleAllSelection:T}},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 Zt("thead",{class:{[e.is("group")]:t}},n.map((k,C)=>Zt("tr",{class:i(C),key:C,style:a(C)},k.map((P,$)=>(P.rowSpan>b&&(b=P.rowSpan),Zt("th",{class:o(C,$,k,P),colspan:P.colSpan,key:`${P.id}-thead`,rowspan:P.rowSpan,style:r(C,$,k,P),onClick:T=>{T.currentTarget.classList.contains("noclick")||s(T,P)},onContextmenu:T=>l(T,P),onMousedown:T=>u(T,P),onMousemove:T=>d(T,P),onMouseout:v},[Zt("div",{class:["cell",P.filteredValue&&P.filteredValue.length>0?"highlight":""]},[P.renderHeader?P.renderHeader({column:P,$index:$,store:y,_self:w}):P.label,P.sortable&&Zt("span",{onClick:T=>p(T,P),class:"caret-wrapper"},[Zt("i",{onClick:T=>p(T,P,"ascending"),class:"sort-caret ascending"}),Zt("i",{onClick:T=>p(T,P,"descending"),class:"sort-caret descending"})]),P.filterable&&Zt(y3e,{store:y,placement:P.filterPlacement||"bottom-start",column:P,upDataColumn:(T,A)=>{P[T]=A}},{"filter-icon":()=>P.renderFilterIcon?P.renderFilterIcon({filterOpened:P.filterOpened}):null})])]))))))}});function X$(e,t,n=.03){return e-t>n}function S3e(e){const t=Pt(Cf),n=te(""),r=te(Zt("div")),o=(w,b,k)=>{var C;const P=t,$=H$(w);let T;const A=(C=P==null?void 0:P.vnode.el)==null?void 0:C.dataset.prefix;$&&(T=pB({columns:e.store.states.columns.value},$,A),T&&(P==null||P.emit(`cell-${k}`,b,T,$,w))),P==null||P.emit(`row-${k}`,b,T,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=$s(w=>{e.store.commit("setHoverRow",w)},30),u=$s(()=>{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,P=Number.parseInt(b.paddingTop,10)||0,$=Number.parseInt(b.paddingBottom,10)||0;return{left:k,right:C,top:P,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 P=t,$=H$(w),T=(C=P==null?void 0:P.vnode.el)==null?void 0:C.dataset.prefix;if($){const oe=pB({columns:e.store.states.columns.value},$,T);$.rowSpan>1&&p($.rowSpan,w,vu);const J=P.hoverState={cell:$,column:oe,row:b};P==null||P.emit("cell-mouse-enter",J.row,J.column,J.cell,w)}if(!k)return;const A=w.target.querySelector(".cell");if(!(Xs(A,`${T}-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:j,left:F,right:G,bottom:ae}=d(A),K=F+G,H=j+ae;(X$(B+K,I)||X$(N+H,D)||X$(A.scrollWidth,I))&&i3e(k,$.innerText||$.textContent,$,P)},handleCellMouseLeave:w=>{const b=H$(w);if(!b)return;b.rowSpan>1&&p(b.rowSpan,w,is);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 x3e(e){const t=Pt(Cf),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=WD(d,e==null?void 0:e.fixed,e.store);return Zy(b,"left"),Zy(b,"right"),Object.assign({},w,b)},getCellClass:(u,d,p,v,y)=>{const w=QD(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 k3e(e){const t=Pt(Cf),n=lt("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:i,handleMouseEnter:a,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:p}=S3e(e),{getRowStyle:v,getRowClass:y,getCellStyle:w,getCellClass:b,getSpan:k,getColspanRealWidth:C}=x3e(e),P=W(()=>e.store.states.columns.value.findIndex(({type:B})=>B==="default")),$=(B,N)=>{const I=t.props.rowKey;return I?es(B,I):N},T=(B,N,I,D=!1)=>{const{tooltipEffect:j,tooltipOptions:F,store:G}=e,{indent:ae,columns:K}=G.states,H=y(B,N);let oe=!0;return I&&(H.push(n.em("row",`level-${I.level}`)),oe=I.display),Zt("tr",{style:[oe?null:{display:"none"},v(B,N)],class:H,key:$(B,N),onDblclick:z=>r(z,B),onClick:z=>o(z,B),onContextmenu:z=>i(z,B),onMouseenter:()=>a(N),onMouseleave:s},K.value.map((z,X)=>{const{rowspan:ee,colspan:he}=k(B,z,N,X);if(!ee||!he)return null;const fe=Object.assign({},z);fe.realWidth=C(K.value,he,X);const Le={store:e.store,_self:e.context||t,column:fe,row:B,$index:N,cellIndex:X,expanded:D};X===P.value&&I&&(Le.treeNode={indent:I.level*ae.value,level:I.level},typeof I.expanded=="boolean"&&(Le.treeNode.expanded=I.expanded,"loading"in I&&(Le.treeNode.loading=I.loading),"noLazyChildren"in I&&(Le.treeNode.noLazyChildren=I.noLazyChildren)));const Ie=`${$(B,N)},${X}`,ze=fe.columnKey||fe.rawColumnKey||"",Ae=A(X,z,Le),_e=z.showOverflowTooltip&&BQ({effect:j},F,z.showOverflowTooltip);return Zt("td",{style:w(N,X,B,z),class:b(N,X,B,z,he-1),key:`${ze}${Ie}`,rowspan:ee,colspan:he,onMouseenter:ye=>l(ye,B,_e),onMouseleave:u},[Ae])}))},A=(B,N,I)=>N.renderCell(I);return{wrappedRowRender:(B,N)=>{const I=e.store,{isRowExpanded:D,assertRowKey:j}=I,{treeData:F,lazyTreeNodeMap:G,childrenColumnName:ae,rowKey:K}=I.states,H=I.states.columns.value;if(H.some(({type:J})=>J==="expand")){const J=D(B),z=T(B,N,void 0,J),X=t.renderExpanded;return J?X?[[z,Zt("tr",{key:`expanded-row__${z.key}`},[Zt("td",{colspan:H.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[X({row:B,$index:N,store:I,expanded:J})])])]]:(console.error("[Element Error]renderExpanded is required."),z):[[z]]}else if(Object.keys(F.value).length){j();const J=es(B,K.value);let z=F.value[J],X=null;z&&(X={expanded:z.expanded,level:z.level,display:!0},typeof z.lazy=="boolean"&&(typeof z.loaded=="boolean"&&z.loaded&&(X.noLazyChildren=!(z.children&&z.children.length)),X.loading=z.loading));const ee=[T(B,N,X)];if(z){let he=0;const fe=(Ie,ze)=>{!(Ie&&Ie.length&&ze)||Ie.forEach(Ae=>{const _e={display:ze.display&&ze.expanded,level:ze.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ye=es(Ae,K.value);if(ye==null)throw new Error("For nested data item, row-key is required.");if(z={...F.value[ye]},z&&(_e.expanded=z.expanded,z.level=z.level||_e.level,z.display=!!(z.expanded&&_e.display),typeof z.lazy=="boolean"&&(typeof z.loaded=="boolean"&&z.loaded&&(_e.noLazyChildren=!(z.children&&z.children.length)),_e.loading=z.loading)),he++,ee.push(T(Ae,N+he,_e)),z){const Ne=G.value[ye]||Ae[ae.value];fe(Ne,z)}})};z.display=!0;const Le=G.value[J]||B[ae.value];fe(Le,z)}return ee}else return T(B,N,void 0)},tooltipContent:d,tooltipTrigger:p}}const C3e={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 E3e=xe({name:"ElTableBody",props:C3e,setup(e){const t=Cn(),n=Pt(Cf),r=lt("table"),{wrappedRowRender:o,tooltipContent:i,tooltipTrigger:a}=k3e(e),{onColumnsChange:s,onScrollableChange:l}=DU(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(($,T,A)=>{var R,B;return((R=k[A])==null?void 0:R.colSpan)>1&&(C=(B=k[A])==null?void 0:B.colSpan),T.nodeName!=="TD"&&C===0&&$.push(A),C>0&&C--,$},[]).forEach($=>{var T;for(b=d;b>0;){const A=(T=w[b-1])==null?void 0:T.childNodes;if(A[$]&&A[$].nodeName==="TD"&&A[$].rowSpan>1){vu(A[$],"hover-cell"),u.push(A[$]);break}b--}})}else u.forEach(C=>is(C,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!nr||Kh(()=>{const C=w[p],P=w[d];C&&!C.classList.contains("hover-fixed-row")&&is(C,"hover-row"),P&&vu(P,"hover-row")})}),pp(()=>{var d;(d=lu)==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 Zt("tbody",{tabIndex:-1},[n.reduce((r,o)=>r.concat(e(o,r.length)),[])])}});function T3e(){const e=Pt(Cf),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 P3e(e){const{columns:t}=T3e(),n=lt("table");return{getCellClasses:(i,a)=>{const s=i[a],l=[n.e("cell"),s.id,s.align,s.labelClassName,...QD(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=WD(a,i.fixed,e.store);return Zy(s,"left"),Zy(s,"right"),s},columns:t}}var $3e=xe({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}=P3e(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)}),Zt(Zt("tfoot",[Zt("tr",{},[...e.map((s,l)=>Zt("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,l),style:t(s,l)},[Zt("div",{class:["cell",s.labelClassName]},[a[l]])]))])]))}});function A3e(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 M3e(e,t,n,r){const o=te(!1),i=te(null),a=te(!1),s=z=>{a.value=z},l=te({width:null,height:null,headerHeight:null}),u=te(!1),d={display:"inline-block",verticalAlign:"middle"},p=te(),v=te(0),y=te(0),w=te(0),b=te(0),k=te(0);Da(()=>{t.setHeight(e.height)}),Da(()=>{t.setMaxHeight(e.maxHeight)}),at(()=>[e.currentRowKey,n.states.rowKey],([z,X])=>{!m(X)||!m(z)||n.setCurrentRowKey(`${z}`)},{immediate:!0}),at(()=>e.data,z=>{r.store.commit("setData",z)},{immediate:!0,deep:!0}),Da(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const C=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},P=(z,X)=>{const{pixelX:ee,pixelY:he}=X;Math.abs(ee)>=Math.abs(he)&&(r.refs.bodyWrapper.scrollLeft+=X.pixelX/5)},$=W(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),T=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 z=r.vnode.el,X=r.refs.headerWrapper;e.flexible&&z&&z.parentElement&&(z.parentElement.style.minWidth="0"),l.value={width:p.value=z.offsetWidth,height:z.offsetHeight,headerHeight:e.showHeader&&X?X.offsetHeight:null},n.states.columns.value.forEach(ee=>{ee.filteredValue&&ee.filteredValue.length&&r.store.commit("filterChange",{column:ee,values:ee.filteredValue,silent:!0})}),r.$ready=!0});const R=(z,X)=>{if(!z)return;const ee=Array.from(z.classList).filter(he=>!he.startsWith("is-scrolling-"));ee.push(t.scrollX.value?X:"is-scrolling-none"),z.className=ee.join(" ")},B=z=>{const{tableWrapper:X}=r.refs;R(X,z)},N=z=>{const{tableWrapper:X}=r.refs;return!!(X&&X.classList.contains(z))},I=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const ze="is-scrolling-none";N(ze)||B(ze);return}const z=r.refs.scrollBarRef.wrapRef;if(!z)return;const{scrollLeft:X,offsetWidth:ee,scrollWidth:he}=z,{headerWrapper:fe,footerWrapper:Le}=r.refs;fe&&(fe.scrollLeft=X),Le&&(Le.scrollLeft=X);const Ie=he-ee-1;X>=Ie?B("is-scrolling-right"):B(X===0?"is-scrolling-left":"is-scrolling-middle")},D=()=>{!r.refs.scrollBarRef||(r.refs.scrollBarRef.wrapRef&&Mr(r.refs.scrollBarRef.wrapRef,"scroll",I,{passive:!0}),e.fit?Oo(r.vnode.el,j):Mr(window,"resize",j),Oo(r.refs.bodyWrapper,()=>{var z,X;j(),(X=(z=r.refs)==null?void 0:z.scrollBarRef)==null||X.update()}))},j=()=>{var z,X,ee,he;const fe=r.vnode.el;if(!r.$ready||!fe)return;let Le=!1;const{width:Ie,height:ze,headerHeight:Ae}=l.value,_e=p.value=fe.offsetWidth;Ie!==_e&&(Le=!0);const ye=fe.offsetHeight;(e.height||$.value)&&ze!==ye&&(Le=!0);const Ne=e.tableLayout==="fixed"?r.refs.headerWrapper:(z=r.refs.tableHeaderRef)==null?void 0:z.$el;e.showHeader&&(Ne==null?void 0:Ne.offsetHeight)!==Ae&&(Le=!0),v.value=((X=r.refs.tableWrapper)==null?void 0:X.scrollHeight)||0,w.value=(Ne==null?void 0:Ne.scrollHeight)||0,b.value=((ee=r.refs.footerWrapper)==null?void 0:ee.offsetHeight)||0,k.value=((he=r.refs.appendWrapper)==null?void 0:he.offsetHeight)||0,y.value=v.value-w.value-b.value-k.value,Le&&(l.value={width:_e,height:ye,headerHeight:e.showHeader&&(Ne==null?void 0:Ne.offsetHeight)||0},A())},F=_i(),G=W(()=>{const{bodyWidth:z,scrollY:X,gutterWidth:ee}=t;return z.value?`${z.value-(X.value?ee:0)}px`:""}),ae=W(()=>e.maxHeight?"fixed":e.tableLayout),K=W(()=>{if(e.data&&e.data.length)return null;let z="100%";e.height&&y.value&&(z=`${y.value}px`);const X=p.value;return{width:X?`${X}px`:"",height:z}}),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`}:{}),oe=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:P,tableSize:F,emptyBlockStyle:K,handleFixedMousewheel:(z,X)=>{const ee=r.refs.bodyWrapper;if(Math.abs(X.spinY)>0){const he=ee.scrollTop;X.pixelY<0&&he!==0&&z.preventDefault(),X.pixelY>0&&ee.scrollHeight-ee.clientHeight>he&&z.preventDefault(),ee.scrollTop+=Math.ceil(X.pixelY/5)}else ee.scrollLeft+=Math.ceil(X.pixelX/5)},resizeProxyVisible:a,bodyWidth:G,resizeState:l,doLayout:A,tableBodyStyles:T,tableLayout:ae,scrollbarViewStyle:d,tableInnerStyle:H,scrollbarStyle:oe}}function R3e(e){const t=te(),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()}),pp(()=>{var r;(r=t.value)==null||r.disconnect()})}var N3e={data:{type:Array,default:()=>[]},size:Mi,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 BU(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 Zt("colgroup",{},n.map(o=>Zt("col",r(o))))}BU.props=["columns","tableLayout"];const I3e=()=>{const e=te(),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 D3e=1;const j3e=xe({name:"ElTable",directives:{Mousewheel:vEe},components:{TableHeader:w3e,TableBody:E3e,TableFooter:$3e,ElScrollbar:Oc,hColgroup:BU},props:N3e,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}=or(),n=lt("table"),r=Cn();Wn(Cf,r);const o=d3e(r,e);r.store=o;const i=new p3e({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}=A3e(o),{isHidden:k,renderExpanded:C,setDragVisible:P,isGroup:$,handleMouseLeave:T,handleHeaderFooterMousewheel:A,tableSize:R,emptyBlockStyle:B,handleFixedMousewheel:N,resizeProxyVisible:I,bodyWidth:D,resizeState:j,doLayout:F,tableBodyStyles:G,tableLayout:ae,scrollbarViewStyle:K,tableInnerStyle:H,scrollbarStyle:oe}=M3e(e,i,o,r),{scrollBarRef:J,scrollTo:z,setScrollLeft:X,setScrollTop:ee}=I3e(),he=$s(F,50),fe=`${n.namespace.value}-table_${D3e++}`;r.tableId=fe,r.state={isGroup:$,resizeState:j,doLayout:F,debouncedUpdateLayout:he};const Le=W(()=>e.sumText||t("el.table.sumText")),Ie=W(()=>e.emptyText||t("el.table.emptyText")),ze=W(()=>LU(o.states.originColumns.value)[0]);return R3e(r),{ns:n,layout:i,store:o,columns:ze,handleHeaderFooterMousewheel:A,handleMouseLeave:T,tableId:fe,tableSize:R,isHidden:k,isEmpty:a,renderExpanded:C,resizeProxyVisible:I,resizeState:j,isGroup:$,bodyWidth:D,tableBodyStyles:G,emptyBlockStyle:B,debouncedUpdateLayout:he,handleFixedMousewheel:N,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:v,toggleRowExpansion:y,clearSort:w,doLayout:F,sort:b,t,setDragVisible:P,context:r,computedSumText:Le,computedEmptyText:Ie,tableLayout:ae,scrollbarViewStyle:K,tableInnerStyle:H,scrollbarStyle:oe,scrollBarRef:J,scrollTo:z,setScrollLeft:X,setScrollTop:ee}}});function L3e(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=J2("mousewheel");return Z(),ue("div",{ref:"tableWrapper",class:q([{[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:q(e.ns.e("inner-wrapper")),style:Vt(e.tableInnerStyle)},[ve("div",{ref:"hiddenColumns",class:"hidden-columns"},[Ge(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?yn((Z(),ue("div",{key:0,ref:"headerWrapper",class:q(e.ns.e("header-wrapper"))},[ve("table",{ref:"tableHeader",class:q(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]]):Fe("v-if",!0),ve("div",{ref:"bodyWrapper",class:q(e.ns.e("body-wrapper"))},[re(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:le(()=>[ve("table",{ref:"tableBody",class:q(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(),Qe(s,{key:0,ref:"tableHeaderRef",class:q(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"])):Fe("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(),Qe(u,{key:1,class:q(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"])):Fe("v-if",!0)],6),e.isEmpty?(Z(),ue("div",{key:0,ref:"emptyBlock",style:Vt(e.emptyBlockStyle),class:q(e.ns.e("empty-block"))},[ve("span",{class:q(e.ns.e("empty-text"))},[Ge(e.$slots,"empty",{},()=>[St(ct(e.computedEmptyText),1)])],2)],6)):Fe("v-if",!0),e.$slots.append?(Z(),ue("div",{key:1,ref:"appendWrapper",class:q(e.ns.e("append-wrapper"))},[Ge(e.$slots,"append")],2)):Fe("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?yn((Z(),ue("div",{key:1,ref:"footerWrapper",class:q(e.ns.e("footer-wrapper"))},[ve("table",{class:q(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)),[[pr,!e.isEmpty],[p,e.handleHeaderFooterMousewheel]]):Fe("v-if",!0),e.border||e.isGroup?(Z(),ue("div",{key:2,class:q(e.ns.e("border-left-patch"))},null,2)):Fe("v-if",!0)],6),yn(ve("div",{ref:"resizeProxy",class:q(e.ns.e("column-resize-proxy"))},null,2),[[pr,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var B3e=vt(j3e,[["render",L3e],["__file","table.vue"]]);const V3e={selection:"table-column--selection",expand:"table__expand-column"},F3e={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:""}},z3e=e=>V3e[e]||"",Q3e={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Zt(zl,{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 Zt(zl,{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)),Zt("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")),Zt("div",{class:o,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Zt(jt,null,{default:()=>[Zt(xs)]})]})},sortable:!1,resizable:!1}};function W3e({row:e,column:t,$index:n}){var r;const o=t.property,i=o&&tk(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 Y3e({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[Zt("span",{class:o.e("placeholder")})]:null;const i=[],a=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(Zt("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=xs;t.loading&&(l=ff),i.push(Zt("div",{class:s,onClick:a},{default:()=>[Zt(jt,{class:{[o.is("loading")]:t.loading}},{default:()=>[Zt(l)]})]}))}else i.push(Zt("span",{class:o.e("placeholder")}));return i}function mB(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function Z3e(e,t){const n=Cn();return{registerComplexWatchers:()=>{const i=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},s=mB(i,a);Object.keys(s).forEach(l=>{const u=a[l];ar(t,u)&&at(()=>t[u],d=>{let p=d;u==="width"&&l==="realWidth"&&(p=zD(d)),u==="minWidth"&&l==="realMinWidth"&&(p=AU(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=mB(i,a);Object.keys(s).forEach(l=>{const u=a[l];ar(t,u)&&at(()=>t[u],d=>{n.columnConfig.value[l]=d})})}}}function U3e(e,t,n){const r=Cn(),o=te(""),i=te(!1),a=te(),s=te(),l=lt("table");Da(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),Da(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:a.value,s.value});const u=W(()=>{let T=r.vnode.vParent||r.parent;for(;T&&!T.tableId&&!T.columnId;)T=T.vnode.vParent||T.parent;return T}),d=W(()=>{const{store:T}=r.parent;if(!T)return!1;const{treeData:A}=T.states,R=A.value;return R&&Object.keys(R).length>0}),p=te(zD(e.width)),v=te(AU(e.minWidth)),y=T=>(p.value&&(T.width=p.value),v.value&&(T.minWidth=v.value),!p.value&&v.value&&(T.width=void 0),T.minWidth||(T.minWidth=80),T.realWidth=Number(T.width===void 0?T.minWidth:T.width),T),w=T=>{const A=T.type,R=Q3e[A]||{};Object.keys(R).forEach(N=>{const I=R[N];N!=="className"&&I!==void 0&&(T[N]=I)});const B=z3e(A);if(B){const N=`${m(l.namespace)}-${B}`;T.className=T.className?`${T.className} ${N}`:N}return T},b=T=>{Array.isArray(T)?T.forEach(R=>A(R)):A(T);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:T=>{e.renderHeader||T.type!=="selection"&&(T.renderHeader=R=>(r.columnConfig.value.label,Ge(t,"header",R,()=>[T.label]))),t["filter-icon"]&&(T.renderFilterIcon=R=>Ge(t,"filter-icon",R));let A=T.renderCell;return T.type==="expand"?(T.renderCell=R=>Zt("div",{class:"cell"},[A(R)]),n.value.renderExpanded=R=>t.default?t.default(R):t.default):(A=A||W3e,T.renderCell=R=>{let B=null;if(t.default){const G=t.default(R);B=G.some(ae=>ae.type!==Ss)?G:A(R)}else B=A(R);const{columns:N}=n.value.store.states,I=N.value.findIndex(G=>G.type==="default"),D=d.value&&R.cellIndex===I,j=Y3e(R,D),F={class:"cell",style:{}};return T.showOverflowTooltip&&(F.class=`${F.class} ${m(l.namespace)}-tooltip`,F.style={width:`${(R.column.realWidth||Number(R.column.width))-1}px`}),b(B),Zt("div",F,[j,B])}),T},getPropsData:(...T)=>T.reduce((A,R)=>(Array.isArray(R)&&R.forEach(B=>{A[B]=e[B]}),A),{}),getColumnElIndex:(T,A)=>Array.prototype.indexOf.call(T,A),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var H3e={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 X3e=1;var VU=xe({name:"ElTableColumn",components:{ElCheckbox:zl},props:H3e,setup(e,{slots:t}){const n=Cn(),r=te({}),o=W(()=>{let $=n.parent;for(;$&&!$.tableId;)$=$.parent;return $}),{registerNormalWatchers:i,registerComplexWatchers:a}=Z3e(o,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:p,setColumnForcedProps:v,setColumnRenders:y,getPropsData:w,getColumnElIndex:b,realAlign:k,updateColumnOrder:C}=U3e(e,t,o),P=d.value;s.value=`${P.tableId||P.columnId}_column_${X3e++}`,q2(()=>{l.value=o.value!==P;const $=e.type||"default",T=e.sortable===""?!0:e.sortable,A=Vo(e.showOverflowTooltip)?P.props.showOverflowTooltip:e.showOverflowTooltip,R={...F3e[$],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:T,index:e.index,rawColumnKey:n.vnode.key};let j=w(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);j=t3e(R,j),j=r3e(y,p,v)(j),r.value=j,i(),a()}),vn(()=>{var $;const T=d.value,A=l.value?T.vnode.el.children:($=T.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?T.columnConfig.value:null,C)}),Hr(()=>{r.value.getColumnIndex()>-1&&o.value.store.commit("removeColumn",r.value,l.value?P.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===Tt&&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 Zt("div",o)}catch{return Zt("div",[])}}});const YD=pn(B3e,{TableColumn:VU}),ZD=xo(VU);var LO=(e=>(e.ASC="asc",e.DESC="desc",e))(LO||{}),BO=(e=>(e.CENTER="center",e.RIGHT="right",e))(BO||{}),FU=(e=>(e.LEFT="left",e.RIGHT="right",e))(FU||{});const ZM={asc:"desc",desc:"asc"},VO=Symbol("placeholder"),G3e=(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 K3e(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:VO})}),m(a).forEach(k=>{b.push(k)}),m(i).forEach(k=>{b.push({...k,placeholderSign:VO})}),b}),l=W(()=>m(o).length||m(i).length),u=W(()=>m(t).reduce((k,C)=>(k[C.key]=G3e(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:P,sortBy:$}=e;let T=LO.ASC;Pn(P)?T=ZM[P[C]]:T=ZM[$.order],(k=e.onColumnSort)==null||k.call(e,{column:p(C),key:C,order:T})}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 q3e=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:o})=>{const i=te({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}},J3e=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:o,ns:i,isScrolling:a})=>{const s=Cn(),{emit:l}=s,u=Jr(!1),d=te(e.defaultExpandedRowKeys||[]),p=te(-1),v=Jr(null),y=te({}),w=te({}),b=Jr({}),k=Jr({}),C=Jr({}),P=W(()=>en(e.estimatedRowHeight));function $(D){var j;(j=e.onRowsRendered)==null||j.call(e,D),D.rowCacheEnd>m(p)&&(p.value=D.rowCacheEnd)}function T({hovered:D,rowKey:j}){if(a.value)return;o.vnode.el.querySelectorAll(`[rowkey="${String(j)}"]`).forEach(ae=>{D?ae.classList.add(i.is("hovered")):ae.classList.remove(i.is("hovered"))})}function A({expanded:D,rowData:j,rowIndex:F,rowKey:G}){var ae,K;const H=[...m(d)],oe=H.indexOf(G);D?oe===-1&&H.push(G):oe>-1&&H.splice(oe,1),d.value=H,l("update:expandedRowKeys",H),(ae=e.onRowExpand)==null||ae.call(e,{expanded:D,rowData:j,rowIndex:F,rowKey:G}),(K=e.onExpandedRowsChange)==null||K.call(e,H)}const R=$s(()=>{var D,j,F,G;u.value=!0,y.value={...m(y),...m(w)},B(m(v),!1),w.value={},v.value=null,(D=t.value)==null||D.forceUpdate(),(j=n.value)==null||j.forceUpdate(),(F=r.value)==null||F.forceUpdate(),(G=s.proxy)==null||G.$forceUpdate(),u.value=!1},0);function B(D,j=!1){!m(P)||[t,n,r].forEach(F=>{const G=m(F);G&&G.resetAfterRowIndex(D,j)})}function N(D,j,F){const G=m(v);(G===null||G>F)&&(v.value=F),w.value[D]=j}function I({rowKey:D,height:j,rowIndex:F},G){G?G===FU.RIGHT?C.value[D]=j:b.value[D]=j:k.value[D]=j;const ae=Math.max(...[b,C,k].map(K=>K.value[D]||0));m(y)[D]!==ae&&(N(D,ae,F),R())}return{expandedRowKeys:d,lastRenderedRowIndex:p,isDynamic:P,isResetting:u,rowHeights:y,resetAfterIndex:B,onRowExpanded:A,onRowHovered:T,onRowsRendered:$,onRowHeightChange:I}},eje=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const o=te({}),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}},tje=(e,t)=>e+t,ck=e=>xt(e)?e.reduce(tje,0):e,dv=(e,t,n={})=>nn(e)?e(t):e!=null?e:n,Ah=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Fo(e[t])}),e),zU=e=>_o(e)?t=>Zt(e,t):e,nje=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:o})=>{const i=W(()=>{const{fixed:$,width:T,vScrollbarSize:A}=e,R=T-A;return $?Math.max(Math.round(m(t)),R):R}),a=W(()=>m(i)+e.vScrollbarSize),s=W(()=>{const{height:$=0,maxHeight:T=0,footerHeight:A,hScrollbarSize:R}=e;if(T>0){const B=m(w),N=m(l),D=m(y)+B+N+R;return Math.min(D,T-A)}return $-A}),l=W(()=>{const{rowHeight:$,estimatedRowHeight:T}=e,A=m(n);return en(T)?A.length*T:A.length*$}),u=W(()=>{const{maxHeight:$}=e,T=m(s);if(en($)&&$>0)return T;const A=m(l)+m(y)+m(w);return Math.min(T,A)}),d=$=>$.width,p=W(()=>ck(m(r).map(d))),v=W(()=>ck(m(o).map(d))),y=W(()=>ck(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:T,width:A}=e;return Ah({...$,height:T,width:A})}),C=W(()=>Ah({height:e.footerHeight})),P=W(()=>({top:Fo(m(y)),bottom:Fo(e.footerHeight),width:Fo(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:p,rightTableWidth:v,headerWidth:a,rowsHeight:l,windowHeight:b,footerHeight:C,emptyStyle:P,rootStyle:k,headerHeight:y}},rje=e=>{const t=te(),n=te(0),r=te(0);let o;return vn(()=>{o=Oo(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}),Hr(()=>{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 oje(e){const t=te(),n=te(),r=te(),{columns:o,columnsStyles:i,columnsTotalWidth:a,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:d,onColumnSorted:p}=K3e(e,Cr(e,"columns"),Cr(e,"fixed")),{scrollTo:v,scrollToLeft:y,scrollToTop:w,scrollToRow:b,onScroll:k,onVerticalScroll:C,scrollPos:P}=q3e(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:be}),$=lt("table-v2"),T=Cn(),A=Jr(!1),{expandedRowKeys:R,lastRenderedRowIndex:B,isDynamic:N,isResetting:I,rowHeights:D,resetAfterIndex:j,onRowExpanded:F,onRowHeightChange:G,onRowHovered:ae,onRowsRendered:K}=J3e(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:T,ns:$,isScrolling:A}),{data:H,depthMap:oe}=eje(e,{expandedRowKeys:R,lastRenderedRowIndex:B,resetAfterIndex:j}),{bodyWidth:J,fixedTableHeight:z,mainTableHeight:X,leftTableWidth:ee,rightTableWidth:he,headerWidth:fe,rowsHeight:Le,windowHeight:Ie,footerHeight:ze,emptyStyle:Ae,rootStyle:_e,headerHeight:ye}=nje(e,{columnsTotalWidth:a,data:H,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),Ne=te(),Se=W(()=>{const pe=m(H).length===0;return xt(e.fixedData)?e.fixedData.length===0&&pe:pe});function ce(pe){const{estimatedRowHeight:Me,rowHeight:Ze,rowKey:Be}=e;return Me?m(D)[m(H)[pe][Be]]||Me:Ze}function be(){const{onEndReached:pe}=e;if(!pe)return;const{scrollTop:Me}=m(P),Ze=m(Le),Be=m(Ie),$e=Ze-(Me+Be)+e.hScrollbarSize;m(B)>=0&&Ze===Me+m(X)-m(ye)&&pe($e)}return at(()=>e.expandedRowKeys,pe=>R.value=pe,{deep:!0}),{columns:o,containerRef:Ne,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:N,isResetting:I,isScrolling:A,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:a,data:H,expandedRowKeys:R,depthMap:oe,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:d,bodyWidth:J,emptyStyle:Ae,rootStyle:_e,headerWidth:fe,footerHeight:ze,mainTableHeight:X,fixedTableHeight:z,leftTableWidth:ee,rightTableWidth:he,showEmpty:Se,getRowHeight:ce,onColumnSorted:p,onRowHovered:ae,onRowExpanded:F,onRowsRendered:K,onRowHeightChange:G,scrollTo:v,scrollToLeft:y,scrollToTop:w,scrollToRow:b,onScroll:k,onVerticalScroll:C}}const UD=Symbol("tableV2"),QU=String,A1={type:je(Array),required:!0},HD={type:je(Array)},WU={...HD,required:!0},ije=String,yB={type:je(Array),default:()=>wo([])},Rg={type:Number,required:!0},YU={type:je([String,Number,Symbol]),default:"id"},bB={type:je(Object)},Wg=gt({class:String,columns:A1,columnsStyles:{type:je(Object),required:!0},depth:Number,expandColumnKey:ije,estimatedRowHeight:{...Kg.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:je(Function)},onRowHover:{type:je(Function)},onRowHeightChange:{type:je(Function)},rowData:{type:je(Object),required:!0},rowEventHandlers:{type:je(Object)},rowIndex:{type:Number,required:!0},rowKey:YU,style:{type:je(Object)}}),G$={type:Number,required:!0},XD=gt({class:String,columns:A1,fixedHeaderData:{type:je(Array)},headerData:{type:je(Array),required:!0},headerHeight:{type:je([Number,Array]),default:50},rowWidth:G$,rowHeight:{type:Number,default:50},height:G$,width:G$}),fk=gt({columns:A1,data:WU,fixedData:HD,estimatedRowHeight:Wg.estimatedRowHeight,width:Rg,height:Rg,headerWidth:Rg,headerHeight:XD.headerHeight,bodyWidth:Rg,rowHeight:Rg,cache:dU.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Kg.scrollbarAlwaysOn,scrollbarStartGap:Kg.scrollbarStartGap,scrollbarEndGap:Kg.scrollbarEndGap,class:QU,style:bB,containerStyle:bB,getRowHeight:{type:je(Function),required:!0},rowKey:Wg.rowKey,onRowsRendered:{type:je(Function)},onScroll:{type:je(Function)}}),aje=gt({cache:fk.cache,estimatedRowHeight:Wg.estimatedRowHeight,rowKey:YU,headerClass:{type:je([String,Function])},headerProps:{type:je([Object,Function])},headerCellProps:{type:je([Object,Function])},headerHeight:XD.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:je([String,Function])},rowProps:{type:je([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:je([Object,Function])},columns:A1,data:WU,dataGetter:{type:je(Function)},fixedData:HD,expandColumnKey:Wg.expandColumnKey,expandedRowKeys:yB,defaultExpandedRowKeys:yB,class:QU,fixed:Boolean,style:{type:je(Object)},width:Rg,height:Rg,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Kg.hScrollbarSize,vScrollbarSize:Kg.vScrollbarSize,scrollbarAlwaysOn:gU.alwaysOn,sortBy:{type:je(Object),default:()=>({})},sortState:{type:je(Object),default:void 0},onColumnSort:{type:je(Function)},onExpandedRowsChange:{type:je(Function)},onEndReached:{type:je(Function)},onRowExpand:Wg.onRowExpand,onScroll:fk.onScroll,onRowsRendered:fk.onRowsRendered,rowEventHandlers:Wg.rowEventHandlers}),GD=(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=Ge(t,"default",e,()=>[i]);return re("div",{class:e.class,title:i,style:o},[a])};GD.displayName="ElTableV2Cell";GD.inheritAttrs=!1;const KD=(e,{slots:t})=>Ge(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])]});KD.displayName="ElTableV2HeaderCell";KD.inheritAttrs=!1;const sje=gt({class:String,columns:A1,columnsStyles:{type:je(Object),required:!0},headerIndex:Number,style:{type:je(Object)}}),lje=xe({name:"ElTableV2HeaderRow",props:sje,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])}}}),uje="ElTableV2Header",cje=xe({name:uje,props:XD,setup(e,{slots:t,expose:n}){const r=lt("table-v2"),o=te(),i=W(()=>Ah({width:e.width,height:e.height})),a=W(()=>Ah({width:e.rowWidth,height:e.height})),s=W(()=>Ra(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 P=Ah({height:w,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:p,columns:v,rowData:b,rowIndex:-(k+1),style:P})})},d=()=>{const p=r.e("dynamic-header-row"),{columns:v}=e;return m(s).map((y,w)=>{var b;const k=Ah({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()])])}}}),fje=e=>{const{isScrolling:t}=Pt(UD),n=te(!1),r=te(),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)===VO;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}},dje="ElTableV2TableRow",hje=xe({name:dje,props:Wg,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:o,isScrolling:i,measurable:a,measured:s,rowRef:l,onExpand:u}=fje(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((P,$)=>{const T=xt(w.children)&&w.children.length>0&&P.key===v;return n.cell({column:P,columns:d,columnIndex:$,depth:y,style:p[P.key],rowData:w,rowIndex:b,isScrolling:m(i),expandIconProps:T?{rowData:w,rowIndex:b,onExpand:u}:void 0})});if(n.row&&(C=n.row({cells:C.map(P=>xt(P)&&P.length===1?P[0]:P),style:k,columns:d,depth:y,rowData:w,rowIndex:b,isScrolling:m(i)})),m(a)){const{height:P,...$}=k||{},T=m(s);return re("div",In({ref:l,class:e.class,style:T?k:$,role:"row"},r,m(o)),[C])}return re("div",In(r,{ref:l,class:e.class,style:k,role:"row"},m(o)),[C])}}}),pje=e=>{const{sortOrder:t}=e;return re(jt,{size:14,class:e.class},{default:()=>[t===LO.ASC?re(X1e,null,null):re(U1e,null,null)]})},gje=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(xs,null,null)]})},vje="ElTableV2Grid",mje=e=>{const t=te(),n=te(),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(()=>ck(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:P}){var $;($=e.onRowsRendered)==null||$.call(e,{rowCacheStart:b,rowCacheEnd:k,rowVisibleStart:C,rowVisibleEnd:P})}function d(b,k){var C;(C=n.value)==null||C.resetAfterRowIndex(b,k)}function p(b,k){const C=m(t),P=m(n);Pn(b)?(C==null||C.scrollToLeft(b.scrollLeft),P==null||P.scrollTo(b)):(C==null||C.scrollToLeft(b),P==null||P.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}},qD=xe({name:vje,props:fk,setup(e,{slots:t,expose:n}){const{ns:r}=Pt(UD),{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}=mje(e);n({forceUpdate:p,totalHeight:d,scrollTo:b,scrollToTop:k,scrollToRow:C,resetAfterRowIndex:w});const P=()=>e.bodyWidth;return()=>{const{cache:$,columns:T,data:A,fixedData:R,useIsScrolling:B,scrollbarAlwaysOn:N,scrollbarEndGap:I,scrollbarStartGap:D,style:j,rowHeight:F,bodyWidth:G,estimatedRowHeight:ae,headerWidth:K,height:H,width:oe,getRowHeight:J,onScroll:z}=e,X=en(ae),ee=X?wIe:yIe,he=m(u);return re("div",{role:"table",class:[r.e("table"),e.class],style:j},[re(ee,{ref:o,data:A,useIsScrolling:B,itemKey:v,columnCache:0,columnWidth:X?P:G,totalColumn:1,totalRow:A.length,rowCache:$,rowHeight:X?J:F,width:oe,height:m(a),class:r.e("body"),role:"rowgroup",scrollbarStartGap:D,scrollbarEndGap:I,scrollbarAlwaysOn:N,onScroll:z,onItemRendered:y,perfMode:!1},{default:fe=>{var Le;const Ie=A[fe.rowIndex];return(Le=t.row)==null?void 0:Le.call(t,{...fe,columns:T,rowData:Ie})}}),m(s)&&re(cje,{ref:l,class:r.e("header-wrapper"),columns:T,headerData:A,headerHeight:e.headerHeight,fixedHeaderData:R,rowWidth:K,rowHeight:F,width:oe,height:Math.min(he+m(i),H)},{dynamic:t.header,fixed:t.row})])}}});function yje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_o(e)}const bje=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return re(qD,In({ref:n},r),yje(t)?t:{default:()=>[t]})};function _je(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_o(e)}const Oje=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return re(qD,In({ref:n},r),_je(t)?t:{default:()=>[t]})};function wje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_o(e)}const Sje=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return re(qD,In({ref:n},r),wje(t)?t:{default:()=>[t]})};function xje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_o(e)}const kje=(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:P,onRowExpanded:$}=e,T=dv(w,{columns:n,rowData:u,rowIndex:d},""),A=dv(y,{columns:n,rowData:u,rowIndex:d}),R=u[b],B=o[R]||0,N=Boolean(i),I=d<0,D=[C.e("row"),T,{[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)}],j=l?P:void 0,F={...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(hje,In(F,{onRowExpand:$,onMouseenter:K=>{j==null||j({hovered:!0,rowKey:R,event:K,rowData:u,rowIndex:d})},onMouseleave:K=>{j==null||j({hovered:!1,rowKey:R,event:K,rowData:u,rowIndex:d})},rowkey:R}),xje(t)?t:{default:()=>[t]})},UM=({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=Ah(l);if(t.placeholderSign===VO)return re("div",{class:d.em("row-cell","placeholder"),style:C},null);const{cellRenderer:P,dataKey:$,dataGetter:T}=t,A=nn(T)?T({columns:e,column:t,columnIndex:n,rowData:a,rowIndex:s}):Mo(a,$!=null?$:""),R=dv(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=zU(P),I=N?N(B):Ge(k,"default",B,()=>[re(GD,B,null)]),D=[d.e("row-cell"),t.class,t.align===BO.CENTER&&d.is("align-center"),t.align===BO.RIGHT&&d.is("align-right")],j=s>=0&&v&&t.key===v,F=s>=0&&u.includes(a[b]);let G;const ae=`margin-inline-start: ${r*y}px;`;return j&&(Pn(o)?G=re(gje,In(o,{class:[d.e("expand-icon"),d.is("expanded",F)],size:w,expanded:F,style:ae,expandable:!0}),null):G=re("div",{style:[ae,`width: ${w}px; height: ${w}px;`].join(" ")},null)),re("div",In({class:D,style:C},R,{role:"cell"}),[G,I])};UM.inheritAttrs=!1;function Cje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_o(e)}const Eje=({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"),dv(o,l,""),{[a.is("customized")]:Boolean(s.header)}],d={...dv(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return re(lje,d,Cje(s)?s:{default:()=>[s]})},_B=(e,{slots:t})=>{const{column:n,ns:r,style:o,onColumnSorted:i}=e,a=Ah(o);if(n.placeholderSign===VO)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=zU(s),v=p?p(d):Ge(t,"default",d,()=>[re(KD,d,null)]),{sortBy:y,sortState:w,headerCellProps:b}=e;let k,C;if(w){const T=w[n.key];k=Boolean(ZM[T]),C=k?T:LO.ASC}else k=n.key===y.key,C=k?y.order:LO.ASC;const P=[r.e("header-cell"),dv(l,e,""),n.align===BO.CENTER&&r.is("align-center"),n.align===BO.RIGHT&&r.is("align-right"),u&&r.is("sortable")],$={...dv(b,e),onClick:n.sortable?i:void 0,class:P,style:a,["data-key"]:n.key};return re("div",In($,{role:"columnheader"}),[v,u&&re(pje,{class:[r.e("sort-icon"),k&&r.is("sorting")],sortOrder:C},null)])},ZU=(e,{slots:t})=>{var n;return re("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};ZU.displayName="ElTableV2Footer";const UU=(e,{slots:t})=>{const n=Ge(t,"default",{},()=>[re(KZ,null,null)]);return re("div",{class:e.class,style:e.style},[n])};UU.displayName="ElTableV2Empty";const HU=(e,{slots:t})=>{var n;return re("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};HU.displayName="ElTableV2Overlay";function __(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_o(e)}const Tje="ElTableV2",Pje=xe({name:Tje,props:aje,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:P,isDynamic:$,isResetting:T,isScrolling:A,bodyWidth:R,emptyStyle:B,rootStyle:N,headerWidth:I,footerHeight:D,showEmpty:j,scrollTo:F,scrollToLeft:G,scrollToTop:ae,scrollToRow:K,getRowHeight:H,onColumnSorted:oe,onRowHeightChange:J,onRowHovered:z,onRowExpanded:X,onRowsRendered:ee,onScroll:he,onVerticalScroll:fe}=oje(e);return n({scrollTo:F,scrollToLeft:G,scrollToTop:ae,scrollToRow:K}),Wn(UD,{ns:r,isResetting:T,isScrolling:A}),()=>{const{cache:Le,cellProps:Ie,estimatedRowHeight:ze,expandColumnKey:Ae,fixedData:_e,headerHeight:ye,headerClass:Ne,headerProps:Se,headerCellProps:ce,sortBy:be,sortState:pe,rowHeight:Me,rowClass:Ze,rowEventHandlers:Be,rowKey:$e,rowProps:Je,scrollbarAlwaysOn:Oe,indentSize:Ye,iconSize:ut,useIsScrolling:qe,vScrollbarSize:ot,width:ft}=e,kt=m(v),Wt={cache:Le,class:r.e("main"),columns:m(s),data:kt,fixedData:_e,estimatedRowHeight:ze,bodyWidth:m(R)+ot,headerHeight:ye,headerWidth:m(I),height:m(l),mainTableRef:k,rowKey:$e,rowHeight:Me,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:ot,useIsScrolling:qe,width:ft,getRowHeight:H,onRowsRendered:ee,onScroll:he},Ct=m(d),ln=m(u),Ce={cache:Le,class:r.e("left"),columns:m(i),data:kt,estimatedRowHeight:ze,leftTableRef:C,rowHeight:Me,bodyWidth:Ct,headerWidth:Ct,headerHeight:ye,height:ln,rowKey:$e,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:ot,useIsScrolling:qe,width:Ct,getRowHeight:H,onScroll:fe},me=m(p)+ot,Ve={cache:Le,class:r.e("right"),columns:m(a),data:kt,estimatedRowHeight:ze,rightTableRef:P,rowHeight:Me,bodyWidth:me,headerWidth:me,headerHeight:ye,height:ln,rowKey:$e,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:ot,width:me,style:`--${m(r.namespace)}-table-scrollbar-size: ${ot}px`,useIsScrolling:qe,getRowHeight:H,onScroll:fe},ke=m(o),Xe={ns:r,depthMap:m(y),columnsStyles:ke,expandColumnKey:Ae,expandedRowKeys:m(w),estimatedRowHeight:ze,hasFixedColumns:m(b),rowProps:Je,rowClass:Ze,rowKey:$e,rowEventHandlers:Be,onRowHovered:z,onRowExpanded:X,onRowHeightChange:J},nt={cellProps:Ie,expandColumnKey:Ae,indentSize:Ye,iconSize:ut,rowKey:$e,expandedRowKeys:m(w),ns:r},Ft={ns:r,headerClass:Ne,headerProps:Se,columnsStyles:ke},Vn={ns:r,sortBy:be,sortState:pe,headerCellProps:ce,onColumnSorted:oe},rt={row:Nt=>re(kje,In(Nt,Xe),{row:t.row,cell:Xt=>{let Ht;return t.cell?re(UM,In(Xt,nt,{style:ke[Xt.column.key]}),__(Ht=t.cell(Xt))?Ht:{default:()=>[Ht]}):re(UM,In(Xt,nt,{style:ke[Xt.column.key]}),null)}}),header:Nt=>re(Eje,In(Nt,Ft),{header:t.header,cell:Xt=>{let Ht;return t["header-cell"]?re(_B,In(Xt,Vn,{style:ke[Xt.column.key]}),__(Ht=t["header-cell"](Xt))?Ht:{default:()=>[Ht]}):re(_B,In(Xt,Vn,{style:ke[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(bje,Wt,__(rt)?rt:{default:()=>[rt]}),re(Oje,Ce,__(rt)?rt:{default:()=>[rt]}),re(Sje,Ve,__(rt)?rt:{default:()=>[rt]}),t.footer&&re(ZU,wn,{default:t.footer}),m(j)&&re(UU,{class:r.e("empty"),style:m(B)},{default:t.empty}),t.overlay&&re(HU,{class:r.e("overlay")},{default:t.overlay})])}}}),$je=gt({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:je(Function)}}),Aje=xe({name:"ElAutoResizer",props:$je,setup(e,{slots:t}){const n=lt("auto-resizer"),{height:r,width:o,sizer:i}=rje(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})])}}}),Mje=pn(Pje),Rje=pn(Aje),zC=Symbol("tabsRootContextKey"),Nje=gt({tabs:{type:je(Array),default:()=>wo([])}}),XU="ElTabBar",Ije=xe({name:XU}),Dje=xe({...Ije,props:Nje,setup(e,{expose:t}){const n=e,r=Cn(),o=Pt(zC);o||Ai(XU,"<el-tabs><el-tab-bar /></el-tabs>");const i=lt("tabs"),a=te(),s=te(),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 P=(C=(k=r.parent)==null?void 0:k.refs)==null?void 0:C[`tab-${b.uid}`];if(!P)return!1;if(!b.active)return!0;d=P[`offset${ef(w)}`],p=P[`client${ef(v)}`];const $=window.getComputedStyle(P);return v==="width"&&(p-=Number.parseFloat($.paddingLeft)+Number.parseFloat($.paddingRight),d+=Number.parseFloat($.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${ef(y)}(${d}px)`}},u=()=>s.value=l();return at(()=>n.tabs,async()=>{await zt(),u()},{immediate:!0}),Oo(a,()=>u()),t({ref:a,update:u}),(d,p)=>(Z(),ue("div",{ref_key:"barRef",ref:a,class:q([m(i).e("active-bar"),m(i).is(m(o).props.tabPosition)]),style:Vt(s.value)},null,6))}});var jje=vt(Dje,[["__file","tab-bar.vue"]]);const Lje=gt({panes:{type:je(Array),default:()=>wo([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Bje={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},OB="ElTabNav",Vje=xe({name:OB,props:Lje,emits:Bje,setup(e,{expose:t,emit:n}){const r=Pt(zC);r||Ai(OB,"<el-tabs><tab-nav /></el-tabs>");const o=lt("tabs"),i=qie(),a=cae(),s=te(),l=te(),u=te(),d=te(),p=te(!1),v=te(0),y=te(!1),w=te(!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${ef(b.value)}`],I=v.value;if(!I)return;const D=I>N?I-N:0;v.value=D},P=()=>{if(!s.value||!l.value)return;const N=l.value[`offset${ef(b.value)}`],I=s.value[`offset${ef(b.value)}`],D=v.value;if(N-D<=I)return;const j=N-D>I*2?D+I:N-I;v.value=j},$=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,j=["top","bottom"].includes(r.props.tabPosition),F=I.getBoundingClientRect(),G=D.getBoundingClientRect(),ae=j?N.offsetWidth-G.width:N.offsetHeight-G.height,K=v.value;let H=K;j?(F.left<G.left&&(H=K-(G.left-F.left)),F.right>G.right&&(H=K+F.right-G.right)):(F.top<G.top&&(H=K-(G.top-F.top)),F.bottom>G.bottom&&(H=K+(F.bottom-G.bottom))),H=Math.max(H,0),v.value=Math.min(H,ae)},T=()=>{var N;if(!l.value||!s.value)return;e.stretch&&((N=d.value)==null||N.update());const I=l.value[`offset${ef(b.value)}`],D=s.value[`offset${ef(b.value)}`],j=v.value;D<I?(p.value=p.value||{},p.value.prev=j,p.value.next=j+D<I,I-j<D&&(v.value=I-D)):(p.value=!1,j>0&&(v.value=0))},A=N=>{const I=N.code,{up:D,down:j,left:F,right:G}=Qt;if(![D,j,F,G].includes(I))return;const ae=Array.from(N.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),K=ae.indexOf(N.target);let H;I===F||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}),Oo(u,T),vn(()=>setTimeout(()=>$(),0)),vc(()=>T()),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:P},[re(jt,null,{default:()=>[re(xs,null,null)]})])]:null,I=e.panes.map((D,j)=>{var F,G,ae,K;const H=D.uid,oe=D.props.disabled,J=(G=(F=D.props.name)!=null?F:D.index)!=null?G:`${j}`,z=!oe&&(D.isClosable||e.editable);D.index=`${j}`;const X=z?re(jt,{class:"is-icon-close",onClick:fe=>n("tabRemove",D,fe)},{default:()=>[re(ks,null,null)]}):null,ee=((K=(ae=D.slots).label)==null?void 0:K.call(ae))||D.props.label,he=!oe&&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",oe),o.is("closable",z),o.is("focus",y.value)],id:`tab-${J}`,key:`tab-${H}`,"aria-controls":`pane-${J}`,role:"tab","aria-selected":D.active,tabindex:he,onFocus:()=>R(),onBlur:()=>B(),onClick:fe=>{B(),n("tabClick",D,J,fe)},onKeydown:fe=>{z&&(fe.code===Qt.delete||fe.code===Qt.backspace)&&n("tabRemove",D,fe)}},[ee,X])});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(jje,{ref:d,tabs:[...e.panes]},null),I])])])}}}),Fje=gt({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:je(Function),default:()=>!0},stretch:Boolean}),K$=e=>Gt(e)||en(e),zje={[En]:e=>K$(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>K$(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>K$(e),tabAdd:()=>!0},Qje=xe({name:"ElTabs",props:Fje,emits:zje,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}=cD(Cn(),"ElTabPane"),d=te(),p=te((o=e.modelValue)!=null?o:"0"),v=async(C,P=!1)=>{var $,T,A;if(!(p.value===C||Vo(C)))try{await(($=e.beforeLeave)==null?void 0:$.call(e,C,p.value))!==!1&&(p.value=C,P&&(t(En,C),t("tabChange",C)),(A=(T=d.value)==null?void 0:T.removeFocus)==null||A.call(T))}catch{}},y=(C,P,$)=>{C.props.disabled||(v(P,!0),t("tabClick",C,$))},w=(C,P)=>{C.props.disabled||Vo(C.props.name)||(P.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(zC,{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"],P=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?Ge(n,"add-icon"):re(jt,{class:i.is("icon-plus")},{default:()=>[re(Vk,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(Vje,{ref:d,currentName:p.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:y,onTabRemove:w},{$stable:!A})}},null),P]),T=re("div",{class:i.e("content")},[Ge(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"}]},[T,$])}}}),Wje=gt({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),GU="ElTabPane",Yje=xe({name:GU}),Zje=xe({...Yje,props:Wje,setup(e){const t=e,n=Cn(),r=Qi(),o=Pt(zC);o||Ai(GU,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=lt("tab-pane"),a=te(),s=W(()=>t.closable||o.props.closable),l=SL(()=>{var y;return o.currentName.value===((y=t.name)!=null?y:a.value)}),u=te(l.value),d=W(()=>{var y;return(y=t.name)!=null?y:a.value}),p=SL(()=>!t.lazy||u.value||l.value);at(l,y=>{y&&(u.value=!0)});const v=rr({uid:n.uid,slots:r,props:t,paneName:d,active:l,index:a,isClosable:s});return o.registerPane(v),vn(()=>{o.sortPane(v)}),pp(()=>{o.unregisterPane(v.uid)}),(y,w)=>m(p)?yn((Z(),ue("div",{key:0,id:`pane-${m(d)}`,class:q(m(i).b()),role:"tabpanel","aria-hidden":!m(l),"aria-labelledby":`tab-${m(d)}`},[Ge(y.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[pr,m(l)]]):Fe("v-if",!0)}});var KU=vt(Zje,[["__file","tab-pane.vue"]]);const QC=pn(Qje,{TabPane:KU}),WC=xo(KU),Uje=gt({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Sf,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Hje=xe({name:"ElText"}),Xje=xe({...Hje,props:Uje,setup(e){const t=e,n=_i(),r=lt("text"),o=W(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated),r.is("line-clamp",!Vo(t.lineClamp))]);return(i,a)=>(Z(),Qe(Dn(i.tag),{class:q(m(o)),style:Vt({"-webkit-line-clamp":i.lineClamp})},{default:le(()=>[Ge(i.$slots,"default")]),_:3},8,["class","style"]))}});var Gje=vt(Xje,[["__file","text.vue"]]);const M1=pn(Gje),Kje=gt({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:je(String),default:"light"},clearable:{type:Boolean,default:!0},size:Mi,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:je([String,Object]),default:()=>OW},clearIcon:{type:je([String,Object]),default:()=>Op},...v0}),sd=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=sd(e);if(!n)return-1;const r=sd(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},wB=e=>`${e}`.padStart(2,"0"),qm=e=>`${wB(e.hours)}:${wB(e.minutes)}`,qje=(e,t)=>{const n=sd(e);if(!n)return"";const r=sd(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)},Jje=xe({name:"ElTimeSelect"}),e4e=xe({...Jje,props:Kje,emits:["change","blur","focus","clear","update:modelValue"],setup(e,{expose:t}){const n=e;un.extend(yD);const{Option:r}=hc,o=lt("input"),i=te(),a=Is(),{lang:s}=or(),l=W(()=>n.modelValue),u=W(()=>{const C=sd(n.start);return C?qm(C):null}),d=W(()=>{const C=sd(n.end);return C?qm(C):null}),p=W(()=>{const C=sd(n.step);return C?qm(C):null}),v=W(()=>{const C=sd(n.minTime||"");return C?qm(C):null}),y=W(()=>{const C=sd(n.maxTime||"");return C?qm(C):null}),w=W(()=>{const C=[];if(n.start&&n.end&&n.step){let P=u.value,$;for(;P&&d.value&&q$(P,d.value)<=0;)$=un(P,"HH:mm").locale(s.value).format(n.format),C.push({value:$,disabled:q$(P,v.value||"-1:-1")<=0||q$(P,y.value||"100:100")>=0}),P=qje(P,p.value)}return C});return t({blur:()=>{var C,P;(P=(C=i.value)==null?void 0:C.blur)==null||P.call(C)},focus:()=>{var C,P;(P=(C=i.value)==null?void 0:C.focus)==null||P.call(C)}}),(C,P)=>(Z(),Qe(m(hc),{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:le(()=>[C.prefixIcon?(Z(),Qe(m(jt),{key:0,class:q(m(o).e("prefix-icon"))},{default:le(()=>[(Z(),Qe(Dn(C.prefixIcon)))]),_:1},8,["class"])):Fe("v-if",!0)]),default:le(()=>[(Z(!0),ue(Tt,null,_n(m(w),$=>(Z(),Qe(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 t4e=vt(e4e,[["__file","time-select.vue"]]);const n4e=pn(t4e),r4e=xe({name:"ElTimeline",setup(e,{slots:t}){const n=lt("timeline");return Wn("timeline",t),()=>Zt("ul",{class:[n.b()]},[Ge(t,"default")])}}),o4e=gt({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:zr},hollow:Boolean}),i4e=xe({name:"ElTimelineItem"}),a4e=xe({...i4e,props:o4e,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(),ue("li",{class:q([m(n).b(),{[m(n).e("center")]:o.center}])},[ve("div",{class:q(m(n).e("tail"))},null,2),o.$slots.dot?Fe("v-if",!0):(Z(),ue("div",{key:0,class:q(m(r)),style:Vt({backgroundColor:o.color})},[o.icon?(Z(),Qe(m(jt),{key:0,class:q(m(n).e("icon"))},{default:le(()=>[(Z(),Qe(Dn(o.icon)))]),_:1},8,["class"])):Fe("v-if",!0)],6)),o.$slots.dot?(Z(),ue("div",{key:1,class:q(m(n).e("dot"))},[Ge(o.$slots,"dot")],2)):Fe("v-if",!0),ve("div",{class:q(m(n).e("wrapper"))},[!o.hideTimestamp&&o.placement==="top"?(Z(),ue("div",{key:0,class:q([m(n).e("timestamp"),m(n).is("top")])},ct(o.timestamp),3)):Fe("v-if",!0),ve("div",{class:q(m(n).e("content"))},[Ge(o.$slots,"default")],2),!o.hideTimestamp&&o.placement==="bottom"?(Z(),ue("div",{key:1,class:q([m(n).e("timestamp"),m(n).is("bottom")])},ct(o.timestamp),3)):Fe("v-if",!0)],2)],2))}});var qU=vt(a4e,[["__file","timeline-item.vue"]]);const s4e=pn(r4e,{TimelineItem:qU}),l4e=xo(qU),JU=gt({nowrap:Boolean});var eH=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(eH||{});const u4e=Object.values(eH),JD=gt({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:je(Object),default:null}}),c4e=gt({side:{type:je(String),values:u4e,required:!0}}),f4e=["absolute","fixed"],d4e=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],e3=gt({arrowPadding:{type:je(Number),default:5},effect:{type:je(String),default:"light"},contentClass:String,placement:{type:je(String),values:d4e,default:"bottom"},reference:{type:je(Object),default:null},offset:{type:Number,default:8},strategy:{type:je(String),values:f4e,default:"absolute"},showArrow:Boolean,...pa(["ariaLabel"])}),t3=gt({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:je(Function)},"onUpdate:open":{type:je(Function)}}),Zm={type:je(Function)},n3=gt({onBlur:Zm,onClick:Zm,onFocus:Zm,onMouseDown:Zm,onMouseEnter:Zm,onMouseLeave:Zm}),h4e=gt({...t3,...JD,...n3,...e3,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:je(Object),default:null},teleported:Boolean,to:{type:je(String),default:"body"}}),YC=Symbol("tooltipV2"),tH=Symbol("tooltipV2Content"),J$="tooltip_v2.open",p4e=xe({name:"ElTooltipV2Root"}),g4e=xe({...p4e,props:t3,setup(e,{expose:t}){const n=e,r=te(n.defaultOpen),o=te(null),i=W({get:()=>sv(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}=rv(()=>{i.value=!0},W(()=>n.delayDuration),{immediate:!1}),u=lt("tooltip-v2"),d=La(),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(J$)),y()),(C=n.onOpenChange)==null||C.call(n,k)}),vn(()=>{document.addEventListener(J$,w)}),Hr(()=>{l(),document.removeEventListener(J$,w)}),Wn(YC,{contentId:d,triggerRef:o,ns:u,onClose:w,onDelayOpen:v,onOpen:y}),t({onOpen:y,onClose:w}),(k,C)=>Ge(k.$slots,"default",{open:m(i)})}});var v4e=vt(g4e,[["__file","root.vue"]]);const m4e=xe({name:"ElTooltipV2Arrow"}),y4e=xe({...m4e,props:{...JD,...c4e},setup(e){const t=e,{ns:n}=Pt(YC),{arrowRef:r}=Pt(tH),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(),ue("span",{ref_key:"arrowRef",ref:r,style:Vt(m(o)),class:q(m(n).e("arrow"))},null,6))}});var SB=vt(y4e,[["__file","arrow.vue"]]);const b4e=gt({style:{type:je([String,Object,Array]),default:()=>({})}}),_4e=xe({name:"ElVisuallyHidden"}),O4e=xe({..._4e,props:b4e,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(),ue("span",In(r.$attrs,{style:m(n)}),[Ge(r.$slots,"default")],16))}});var w4e=vt(O4e,[["__file","visual-hidden.vue"]]);const S4e=xe({name:"ElTooltipV2Content"}),x4e=xe({...S4e,props:{...e3,...JU},setup(e){const t=e,{triggerRef:n,contentId:r}=Pt(YC),o=te(t.placement),i=te(t.strategy),a=te(null),{referenceRef:s,contentRef:l,middlewareData:u,x:d,y:p,update:v}=vxe({placement:o,strategy:i,middleware:W(()=>{const $=[JW(t.offset)];return t.showArrow&&$.push(mxe({arrowRef:a})),$})}),y=g0().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`||""}}),P=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(tH,{arrowRef:a}),($,T)=>(Z(),ue("div",{ref_key:"contentRef",ref:l,style:Vt(m(k)),"data-tooltip-v2-root":""},[$.nowrap?Fe("v-if",!0):(Z(),ue("div",{key:0,"data-side":m(b),class:q(m(P))},[Ge($.$slots,"default",{contentStyle:m(k),contentClass:m(P)}),re(m(w4e),{id:m(r),role:"tooltip"},{default:le(()=>[$.ariaLabel?(Z(),ue(Tt,{key:0},[St(ct($.ariaLabel),1)],64)):Ge($.$slots,"default",{key:1})]),_:3},8,["id"]),Ge($.$slots,"arrow",{style:Vt(m(C)),side:m(b)})],10,["data-side"]))],4))}});var xB=vt(x4e,[["__file","content.vue"]]);const k4e=gt({setRef:{type:je(Function),required:!0},onlyChild:Boolean});var C4e=xe({props:k4e,setup(e,{slots:t}){const n=te(),r=CC(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?pwe(i.children):i.children;return re(Tt,{ref:r},[a])}}});const E4e=xe({name:"ElTooltipV2Trigger"}),T4e=xe({...E4e,props:{...JU,...n3},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:o,triggerRef:i,contentId:a}=Pt(YC);let s=!1;const l=P=>{i.value=P},u=()=>{s=!1},d=Bo(t.onMouseEnter,o),p=Bo(t.onMouseLeave,n),v=Bo(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),y=Bo(t.onFocus,()=>{s||r()}),w=Bo(t.onBlur,n),b=Bo(t.onClick,P=>{P.detail===0&&n()}),k={blur:w,click:b,focus:y,mousedown:v,mouseenter:d,mouseleave:p},C=(P,$,T)=>{P&&Object.entries($).forEach(([A,R])=>{P[T](A,R)})};return at(i,(P,$)=>{C(P,k,"addEventListener"),C($,k,"removeEventListener"),P&&P.setAttribute("aria-describedby",a.value)}),Hr(()=>{C(i.value,k,"removeEventListener"),document.removeEventListener("mouseup",u)}),(P,$)=>P.nowrap?(Z(),Qe(m(C4e),{key:0,"set-ref":l,"only-child":""},{default:le(()=>[Ge(P.$slots,"default")]),_:3})):(Z(),ue("button",In({key:1,ref_key:"triggerRef",ref:i},P.$attrs),[Ge(P.$slots,"default")],16))}});var P4e=vt(T4e,[["__file","trigger.vue"]]);const $4e=xe({name:"ElTooltipV2"}),A4e=xe({...$4e,props:h4e,setup(e){const n=ea(e),r=rr(gu(n,Object.keys(JD))),o=rr(gu(n,Object.keys(e3))),i=rr(gu(n,Object.keys(t3))),a=rr(gu(n,Object.keys(n3)));return(s,l)=>(Z(),Qe(v4e,ac(Zh(i)),{default:le(({open:u})=>[re(P4e,In(a,{nowrap:""}),{default:le(()=>[Ge(s.$slots,"trigger")]),_:3},16),re(m(m0),{to:s.to,disabled:!s.teleported},{default:le(()=>[s.fullTransition?(Z(),Qe($i,ac(In({key:0},s.transitionProps)),{default:le(()=>[s.alwaysOn||u?(Z(),Qe(xB,ac(In({key:0},o)),{arrow:le(({style:d,side:p})=>[s.showArrow?(Z(),Qe(SB,In({key:0},r,{style:d,side:p}),null,16,["style","side"])):Fe("v-if",!0)]),default:le(()=>[Ge(s.$slots,"default")]),_:3},16)):Fe("v-if",!0)]),_:2},1040)):(Z(),ue(Tt,{key:1},[s.alwaysOn||u?(Z(),Qe(xB,ac(In({key:0},o)),{arrow:le(({style:d,side:p})=>[s.showArrow?(Z(),Qe(SB,In({key:0},r,{style:d,side:p}),null,16,["style","side"])):Fe("v-if",!0)]),default:le(()=>[Ge(s.$slots,"default")]),_:3},16)):Fe("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var M4e=vt(A4e,[["__file","tooltip.vue"]]);const R4e=pn(M4e),nH="left-check-change",rH="right-check-change",Jm=gt({data:{type:je(Array),default:()=>[]},titles:{type:je(Array),default:()=>[]},buttonTexts:{type:je(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:je(Function)},leftDefaultChecked:{type:je(Array),default:()=>[]},rightDefaultChecked:{type:je(Array),default:()=>[]},renderContent:{type:je(Function)},modelValue:{type:je(Array),default:()=>[]},format:{type:je(Object),default:()=>({})},filterable:Boolean,props:{type:je(Object),default:()=>wo({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),HM=(e,t)=>[e,t].every(xt)||xt(e)&&zi(t),N4e={[so]:(e,t,n)=>[e,n].every(xt)&&["left","right"].includes(t),[En]:e=>xt(e),[nH]:HM,[rH]:HM},XM="checked-change",I4e=gt({data:Jm.data,optionRender:{type:je(Function)},placeholder:String,title:String,filterable:Boolean,format:Jm.format,filterMethod:Jm.filterMethod,defaultChecked:Jm.leftDefaultChecked,props:Jm.props}),D4e={[XM]:HM},R1=e=>{const t={label:"label",key:"key",disabled:"disabled"};return W(()=>({...t,...e.props}))},j4e=(e,t,n)=>{const r=R1(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(XM,d,v)}else n(XM,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}},L4e=(e,t)=>({onSourceCheckedChange:(o,i)=>{e.leftChecked=o,i&&t(nH,o,i)},onTargetCheckedChange:(o,i)=>{e.rightChecked=o,i&&t(rH,o,i)}}),B4e=e=>{const t=R1(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}},V4e=(e,t,n)=>{const r=R1(e),o=(s,l,u)=>{n(En,s),n(so,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)}}},F4e=xe({name:"ElTransferPanel"}),z4e=xe({...F4e,props:I4e,emits:D4e,setup(e,{expose:t,emit:n}){const r=e,o=Qi(),i=({option:$})=>$,{t:a}=or(),s=lt("transfer"),l=rr({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=R1(r),{filteredData:d,checkedSummary:p,isIndeterminate:v,handleAllCheckedChange:y}=j4e(r,l,n),w=W(()=>!du(l.query)&&du(d.value)),b=W(()=>!du(o.default()[0].children)),{checked:k,allChecked:C,query:P}=ea(l);return t({query:P}),($,T)=>(Z(),ue("div",{class:q(m(s).b("panel"))},[ve("p",{class:q(m(s).be("panel","header"))},[re(m(zl),{modelValue:m(C),"onUpdate:modelValue":A=>eo(C)?C.value=A:null,indeterminate:m(v),"validate-event":!1,onChange:m(y)},{default:le(()=>[St(ct($.title)+" ",1),ve("span",null,ct(m(p)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),ve("div",{class:q([m(s).be("panel","body"),m(s).is("with-footer",m(b))])},[$.filterable?(Z(),Qe(m(ti),{key:0,modelValue:m(P),"onUpdate:modelValue":A=>eo(P)?P.value=A:null,class:q(m(s).be("panel","filter")),size:"default",placeholder:$.placeholder,"prefix-icon":m(kW),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):Fe("v-if",!0),yn(re(m(uZ),{modelValue:m(k),"onUpdate:modelValue":A=>eo(k)?k.value=A:null,"validate-event":!1,class:q([m(s).is("filterable",$.filterable),m(s).be("panel","list")])},{default:le(()=>[(Z(!0),ue(Tt,null,_n(m(d),A=>(Z(),Qe(m(zl),{key:A[m(u).key],class:q(m(s).be("panel","item")),value:A[m(u).key],disabled:A[m(u).disabled],"validate-event":!1},{default:le(()=>{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"]),[[pr,!m(w)&&!m(du)($.data)]]),yn(ve("p",{class:q(m(s).be("panel","empty"))},ct(m(w)?m(a)("el.transfer.noMatch"):m(a)("el.transfer.noData")),3),[[pr,m(w)||m(du)($.data)]])],2),m(b)?(Z(),ue("p",{key:0,class:q(m(s).be("panel","footer"))},[Ge($.$slots,"default")],2)):Fe("v-if",!0)],2))}});var kB=vt(z4e,[["__file","transfer-panel.vue"]]);const Q4e=xe({name:"ElTransfer"}),W4e=xe({...Q4e,props:Jm,emits:N4e,setup(e,{expose:t,emit:n}){const r=e,o=Qi(),{t:i}=or(),a=lt("transfer"),{formItem:s}=ss(),l=rr({leftChecked:[],rightChecked:[]}),u=R1(r),{sourceData:d,targetData:p}=B4e(r),{onSourceCheckedChange:v,onTargetCheckedChange:y}=L4e(l,n),{addToLeft:w,addToRight:b}=V4e(r,l,n),k=te(),C=te(),P=N=>{switch(N){case"left":k.value.query="";break;case"right":C.value.query="";break}},$=W(()=>r.buttonTexts.length===2),T=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(Zt,N):o.default?o.default({option:N}):Zt("span",N[u.value.label]||N[u.value.key]));return t({clearQuery:P,leftPanel:k,rightPanel:C}),(N,I)=>(Z(),ue("div",{class:q(m(a).b())},[re(kB,{ref_key:"leftPanel",ref:k,data:m(d),"option-render":m(B),placeholder:m(R),title:m(T),filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,"default-checked":N.leftDefaultChecked,props:r.props,onCheckedChange:m(v)},{default:le(()=>[Ge(N.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),ve("div",{class:q(m(a).e("buttons"))},[re(m(ro),{type:"primary",class:q([m(a).e("button"),m(a).is("with-texts",m($))]),disabled:m(du)(l.rightChecked),onClick:m(w)},{default:le(()=>[re(m(jt),null,{default:le(()=>[re(m(qh))]),_:1}),m(Vo)(N.buttonTexts[0])?Fe("v-if",!0):(Z(),ue("span",{key:0},ct(N.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),re(m(ro),{type:"primary",class:q([m(a).e("button"),m(a).is("with-texts",m($))]),disabled:m(du)(l.leftChecked),onClick:m(b)},{default:le(()=>[m(Vo)(N.buttonTexts[1])?Fe("v-if",!0):(Z(),ue("span",{key:0},ct(N.buttonTexts[1]),1)),re(m(jt),null,{default:le(()=>[re(m(xs))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),re(kB,{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:le(()=>[Ge(N.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Y4e=vt(W4e,[["__file","transfer.vue"]]);const Z4e=pn(Y4e),_y="$treeNodeId",CB=function(e,t){!t||t[_y]||Object.defineProperty(t,_y,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},r3=function(e,t){return e?t[e]:t[_y]},GM=(e,t,n)=>{const r=e.value.currentNode;n();const o=e.value.currentNode;r!==o&&t("current-change",o?o.data:null,o)},KM=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}},$_=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=KM(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||$_(o)},Ox=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 U4e=0;class qg{constructor(t){this.id=U4e++,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)ar(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=Ox(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)||CB(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)||CB(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Ox(this,"children")||[];for(let r=0,o=n.length;r<o;r++)this.insertChild({data:n[r]})}get label(){return Ox(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Ox(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=rr(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||$_(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}=KM(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}=KM(u);p||(this.checked=p,this.indeterminate=d)}};if(this.shouldLoadData()){this.loadData(()=>{l(),$_(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||$_(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[_y];!!s&&n.findIndex(u=>u[_y]===s)>=0?r[s]={index:a,data:i}:o.push({index:a,data:i})}),this.store.lazy||n.forEach(i=>{r[i[_y]]||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||$_(this)}}class H4e{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)ar(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)?r3(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=sv(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)ar(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 X4e=xe({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=lt("tree"),n=Pt("NodeInstance"),r=Pt("RootTree");return()=>{const o=e.node,{data:i,store:a}=o;return e.renderContent?e.renderContent(Zt,{_self:n,node:o,data:i,store:a}):Ge(r.ctx.slots,"default",{node:o,data:i},()=>[Zt("span",{class:t.be("node","label")},[o.label])])}}});var G4e=vt(X4e,[["__file","tree-node-content.vue"]]);function oH(e){const t=Pt("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 iH=Symbol("dragEvents");function K4e({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const i=lt("tree"),a=te({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Wn(iH,{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&&is(y.$el,i.is("drop-inner"));const w=a.value.draggingNode;if(!w||!v)return;let b=!0,k=!0,C=!0,P=!0;typeof e.allowDrop=="function"&&(b=e.allowDrop(w.node,v.node,"prev"),P=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(),T=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(),j=r.value;A==="before"?N=D.top-T.top:A==="after"&&(N=D.bottom-T.top),j.style.top=`${N}px`,j.style.left=`${D.right-T.left}px`,A==="inner"?vu(v.$el,i.is("drop-inner")):is(v.$el,i.is("drop-inner")),a.value.showDropIndicator=A==="before"||A==="after",a.value.allowDrop=a.value.showDropIndicator||P,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)})),is(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 q4e=xe({name:"ElTreeNode",components:{ElCollapseTransition:jC,ElCheckbox:zl,NodeContent:G4e,ElIcon:jt,Loading:ff},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}=oH(e),o=Pt("RootTree"),i=te(!1),a=te(!1),s=te(null),l=te(null),u=te(null),d=Pt(iH),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=>r3(o.props.nodeKey,I.data),w=I=>{const D=e.props.class;if(!D)return{};let j;if(nn(D)){const{data:F}=I;j=D(F,I)}else j=D;return Gt(j)?{[j]:!0}:j},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=>{GM(o.store,o.ctx.emit,()=>o.store.value.setCurrentNode(e.node)),o.currentNode.value=e.node,o.props.expandOnClickNode&&P(),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)},P=()=>{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 j=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:j.getCheckedNodes(),checkedKeys:j.getCheckedKeys(),halfCheckedNodes:j.getHalfCheckedNodes(),halfCheckedKeys:j.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:P,handleCheckChange:$,handleChildNodeExpand:(I,D,j)=>{r(D),o.ctx.emit("node-expand",I,D,j)},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:LI}}});function J4e(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(),ue("div",{ref:"node$",class:q([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:q(e.ns.be("node","content")),style:Vt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(Z(),Qe(a,{key:0,class:q([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:le(()=>[(Z(),Qe(Dn(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):Fe("v-if",!0),e.showCheckbox?(Z(),Qe(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"])):Fe("v-if",!0),e.node.loading?(Z(),Qe(a,{key:2,class:q([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:le(()=>[re(l)]),_:1},8,["class"])):Fe("v-if",!0),re(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),re(p,null,{default:le(()=>[!e.renderAfterExpand||e.childNodeRendered?yn((Z(),ue("div",{key:0,class:q(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(Z(!0),ue(Tt,null,_n(e.node.childNodes,v=>(Z(),Qe(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"])),[[pr,e.expanded]]):Fe("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[pr,e.node.visible]])}var e8e=vt(q4e,[["render",J4e],["__file","tree-node.vue"]]);function t8e({el$:e},t){const n=lt("tree"),r=Jr([]),o=Jr([]);vn(()=>{a()}),vc(()=>{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")})}),Mr(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 n8e=xe({name:"ElTree",components:{ElTreeNode:e8e},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:zr}},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}=or(),r=lt("tree"),o=Pt(b0,null),i=te(new H4e({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=te(i.value.root),s=te(null),l=te(null),u=te(null),{broadcastExpanded:d}=oH(e),{dragState:p}=K4e({props:e,ctx:t,el$:l,dropIndicator$:u,store:i});t8e({el$:l},i);const v=W(()=>{const{childNodes:J}=a.value,z=o?o.hasFilteredOptions!==0:!1;return(!J||J.length===0||J.every(({visible:X})=>!X))&&!z});at(()=>e.currentNodeKey,J=>{i.value.setCurrentNodeKey(J)}),at(()=>e.defaultCheckedKeys,J=>{i.value.setDefaultCheckedKey(J)}),at(()=>e.defaultExpandedKeys,J=>{i.value.setDefaultExpandedKeys(J)}),at(()=>e.data,J=>{i.value.setData(J)},{deep:!0}),at(()=>e.checkStrictly,J=>{i.value.checkStrictly=J});const y=J=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(J)},w=J=>r3(e.nodeKey,J.data),b=J=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const z=i.value.getNode(J);if(!z)return[];const X=[z.data];let ee=z.parent;for(;ee&&ee!==a.value;)X.push(ee.data),ee=ee.parent;return X.reverse()},k=(J,z)=>i.value.getCheckedNodes(J,z),C=J=>i.value.getCheckedKeys(J),P=()=>{const J=i.value.getCurrentNode();return J?J.data:null},$=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const J=P();return J?J[e.nodeKey]:null},T=(J,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(J,z)},A=(J,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(J,z)},R=(J,z,X)=>{i.value.setChecked(J,z,X)},B=()=>i.value.getHalfCheckedNodes(),N=()=>i.value.getHalfCheckedKeys(),I=(J,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");GM(i,t.emit,()=>{d(J),i.value.setUserCurrentNode(J,z)})},D=(J,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");GM(i,t.emit,()=>{d(),i.value.setCurrentNodeKey(J,z)})},j=J=>i.value.getNode(J),F=J=>{i.value.remove(J)},G=(J,z)=>{i.value.append(J,z)},ae=(J,z)=>{i.value.insertBefore(J,z)},K=(J,z)=>{i.value.insertAfter(J,z)},H=(J,z,X)=>{d(z),t.emit("node-expand",J,z,X)},oe=(J,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(J,z)};return Wn("RootTree",{ctx:t,props:e,store:i,root:a,currentNode:s,instance:Cn()}),Wn(pf,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:P,getCurrentKey:$,setCheckedNodes:T,setCheckedKeys:A,setChecked:R,getHalfCheckedNodes:B,getHalfCheckedKeys:N,setCurrentNode:I,setCurrentKey:D,t:n,getNode:j,remove:F,append:G,insertBefore:ae,insertAfter:K,handleNodeExpand:H,updateKeyChildren:oe}}});function r8e(e,t,n,r,o,i){const a=Tn("el-tree-node");return Z(),ue("div",{ref:"el$",class:q([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),ue(Tt,null,_n(e.root.childNodes,s=>(Z(),Qe(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(),ue("div",{key:0,class:q(e.ns.e("empty-block"))},[Ge(e.$slots,"empty",{},()=>{var s;return[ve("span",{class:q(e.ns.e("empty-text"))},ct((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):Fe("v-if",!0),yn(ve("div",{ref:"dropIndicator$",class:q(e.ns.e("drop-indicator"))},null,2),[[pr,e.dragState.showDropIndicator]])],2)}var o8e=vt(n8e,[["render",r8e],["__file","tree.vue"]]);const n2=pn(o8e),i8e=(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"}),{...gu(ea(e),Object.keys(hc.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)}}},a8e=xe({extends:ip,setup(e,t){const n=ip.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 o3(e){return Array.isArray(e)&&e.length}function O_(e){return Array.isArray(e)?e:qM(e)?[e]:[]}function dk(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(o3(s)){const l=dk(s,t,n,r,a);if(l)return l}}}}function JM(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);o3(a)&&JM(a,t,n,i)}}const s8e=(e,{attrs:t,slots:n,emit:r},{select:o,tree:i,key:a})=>{at(()=>e.modelValue,()=>{e.showCheckbox&&zt(()=>{const p=i.value;p&&!os(p.getCheckedKeys(),O_(e.modelValue))&&p.setCheckedKeys(O_(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=O_(e.modelValue).map(p=>dk(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 JM(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{...gu(ea(e),Object.keys(n2.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(a8e,{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(NI(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 P=(b=o.value)==null?void 0:b.states.options.get(l("value",p));(k=o.value)==null||k.handleOptionSelect(P)}}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={};JM([i.value.store.root],$=>b[$.key]=$,$=>$.childNodes);const k=v.checkedKeys,C=e.multiple?O_(e.modelValue).filter($=>!($ in b)&&!k.includes($)):[],P=C.concat(k);if(e.checkStrictly)r(En,e.multiple?P:P.includes(w)?w:void 0);else if(e.multiple)r(En,C.concat(i.value.getCheckedKeys(!0)));else{const $=dk([p],R=>!o3(l("children",R))&&!l("disabled",R),R=>l("children",R)),T=$?l("value",$):void 0,A=qM(e.modelValue)&&!!dk([p],R=>l("value",R)===e.modelValue,R=>l("children",R));r(En,T===e.modelValue||A?void 0:T)}zt(()=>{var $;const T=O_(e.modelValue);i.value.setCheckedKeys(T),($=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 l8e=xe({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Pt(b0);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"))||[];nr&&!Array.from(r).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const u8e=xe({name:"ElTreeSelect",inheritAttrs:!1,props:{...hc.props,...n2.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,o=te(),i=te(),a=W(()=>e.nodeKey||e.valueKey||"value"),s=i8e(e,t,{select:o,tree:i,key:a}),{cacheOptions:l,...u}=s8e(e,t,{select:o,tree:i,key:a}),d=rr({});return r(d),vn(()=>{Object.assign(d,{...gu(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...gu(o.value,["focus","blur"])})}),()=>Zt(hc,rr({...s,ref:p=>o.value=p}),{...n,default:()=>[Zt(l8e,{data:l.value}),Zt(n2,rr({...u,ref:p=>i.value=p}))]})}});var c8e=vt(u8e,[["__file","tree-select.vue"]]);const f8e=pn(c8e),i3=Symbol(),d8e={key:-1,level:-1,data:{}};var A_=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(A_||{}),eR=(e=>(e.ADD="add",e.DELETE="delete",e))(eR||{});const aH={type:Number,default:26},h8e=gt({data:{type:je(Array),default:()=>wo([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:je(Object),default:()=>wo({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:je(Array),default:()=>wo([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:je(Array),default:()=>wo([])},indent:{type:Number,default:16},itemSize:aH,icon:{type:zr},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:je([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:je(Function)},perfMode:{type:Boolean,default:!0}}),p8e=gt({node:{type:je(Object),default:()=>wo(d8e)},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:aH}),g8e=gt({node:{type:je(Object),required:!0}}),sH="node-click",lH="node-expand",uH="node-collapse",cH="current-change",fH="check",dH="check-change",hH="node-contextmenu",v8e={[sH]:(e,t,n)=>e&&t&&n,[lH]:(e,t)=>e&&t,[uH]:(e,t)=>e&&t,[cH]:(e,t)=>e&&t,[fH]:(e,t)=>e&&t,[dH]:(e,t)=>e&&typeof t=="boolean",[hH]:(e,t,n)=>e&&t&&n},m8e={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function y8e(e,t){const n=te(new Set),r=te(new Set),{emit:o}=Cn();at([()=>t.value,()=>e.defaultCheckedKeys],()=>zt(()=>{P(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:$,maxLevel:T}=t.value,A=n.value,R=new Set;for(let B=T-1;B>=1;--B){const N=$.get(B);!N||N.forEach(I=>{const D=I.children;if(D){let j=!0,F=!1;for(const G of D){const ae=G.key;if(A.has(ae))F=!0;else if(R.has(ae)){j=!1,F=!0;break}else j=!1}j?A.add(I.key):F?(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=($,T,A=!0)=>{const R=n.value,B=(N,I)=>{R[I?eR.ADD:eR.DELETE](N.key);const D=N.children;!e.checkStrictly&&D&&D.forEach(j=>{j.disabled||B(j,I)})};B($,T),i(),A&&u($,T)},u=($,T)=>{const{checkedNodes:A,checkedKeys:R}=w(),{halfCheckedNodes:B,halfCheckedKeys:N}=b();o(fH,$.data,{checkedKeys:R,checkedNodes:A,halfCheckedKeys:N,halfCheckedNodes:B}),o(dH,$.data,T)};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 T=[],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),T.push(N.data))})}return{checkedKeys:A,checkedNodes:T}}function b(){const $=[],T=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:A}=t.value;r.value.forEach(R=>{const B=A.get(R);B&&(T.push(R),$.push(B.data))})}return{halfCheckedNodes:$,halfCheckedKeys:T}}function k($){n.value.clear(),r.value.clear(),zt(()=>{P($)})}function C($,T){if((t==null?void 0:t.value)&&e.showCheckbox){const A=t.value.treeNodeMap.get($);A&&l(A,T,!1)}}function P($){if(t!=null&&t.value){const{treeNodeMap:T}=t.value;if(e.showCheckbox&&T&&$)for(const A of $){const R=T.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 b8e(e,t){const n=te(new Set([])),r=te(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 P=C.children;if(P&&b(P),!C.isLeaf){if(!u.has(C.key))p.add(C.key);else if(P){let $=!0;for(const T of P)if(!p.has(T.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 _8e(e,t){const n=te(new Set(e.defaultExpandedKeys)),r=te(),o=Jr(),i=te();at(()=>e.currentNodeKey,Se=>{r.value=Se},{immediate:!0}),at(()=>e.data,Se=>{Ae(Se)},{immediate:!0});const{isIndeterminate:a,isChecked:s,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:v,setChecked:y,setCheckedKeys:w}=y8e(e,o),{doFilter:b,hiddenNodeKeySet:k,isForceHiddenExpandIcon:C}=b8e(e,o),P=W(()=>{var Se;return((Se=e.props)==null?void 0:Se.value)||A_.KEY}),$=W(()=>{var Se;return((Se=e.props)==null?void 0:Se.children)||A_.CHILDREN}),T=W(()=>{var Se;return((Se=e.props)==null?void 0:Se.disabled)||A_.DISABLED}),A=W(()=>{var Se;return((Se=e.props)==null?void 0:Se.label)||A_.LABEL}),R=W(()=>{const Se=n.value,ce=k.value,be=[],pe=o.value&&o.value.treeNodes||[];function Me(){const Ze=[];for(let Be=pe.length-1;Be>=0;--Be)Ze.push(pe[Be]);for(;Ze.length;){const Be=Ze.pop();if(!!Be&&(ce.has(Be.key)||be.push(Be),Se.has(Be.key))){const $e=Be.children;if($e){const Je=$e.length;for(let Oe=Je-1;Oe>=0;--Oe)Ze.push($e[Oe])}}}}return Me(),be}),B=W(()=>R.value.length>0);function N(Se){const ce=new Map,be=new Map;let pe=1;function Me(Be,$e=1,Je=void 0){var Oe;const Ye=[];for(const ut of Be){const qe=j(ut),ot={level:$e,key:qe,data:ut};ot.label=G(ut),ot.parent=Je;const ft=D(ut);ot.disabled=F(ut),ot.isLeaf=!ft||ft.length===0,ft&&ft.length&&(ot.children=Me(ft,$e+1,ot)),Ye.push(ot),ce.set(qe,ot),be.has($e)||be.set($e,[]),(Oe=be.get($e))==null||Oe.push(ot)}return $e>pe&&(pe=$e),Ye}const Ze=Me(Se);return{treeNodeMap:ce,levelTreeNodeMap:be,maxLevel:pe,treeNodes:Ze}}function I(Se){const ce=b(Se);ce&&(n.value=ce)}function D(Se){return Se[$.value]}function j(Se){return Se?Se[P.value]:""}function F(Se){return Se[T.value]}function G(Se){return Se[A.value]}function ae(Se){n.value.has(Se.key)?X(Se):z(Se)}function K(Se){n.value=new Set(Se)}function H(Se,ce){t(sH,Se.data,Se,ce),oe(Se),e.expandOnClickNode&&ae(Se),e.showCheckbox&&e.checkOnClickNode&&!Se.disabled&&l(Se,!s(Se),!0)}function oe(Se){fe(Se)||(r.value=Se.key,t(cH,Se.data,Se))}function J(Se,ce){l(Se,ce)}function z(Se){const ce=n.value;if(o.value&&e.accordion){const{treeNodeMap:be}=o.value;ce.forEach(pe=>{const Me=be.get(pe);Se&&Se.level===(Me==null?void 0:Me.level)&&ce.delete(pe)})}ce.add(Se.key),t(lH,Se.data,Se)}function X(Se){n.value.delete(Se.key),t(uH,Se.data,Se)}function ee(Se){return n.value.has(Se.key)}function he(Se){return!!Se.disabled}function fe(Se){const ce=r.value;return ce!==void 0&&ce===Se.key}function Le(){var Se,ce;if(!!r.value)return(ce=(Se=o.value)==null?void 0:Se.treeNodeMap.get(r.value))==null?void 0:ce.data}function Ie(){return r.value}function ze(Se){r.value=Se}function Ae(Se){zt(()=>o.value=N(Se))}function _e(Se){var ce;const be=Pn(Se)?j(Se):Se;return(ce=o.value)==null?void 0:ce.treeNodeMap.get(be)}function ye(Se,ce="auto"){const be=_e(Se);be&&i.value&&i.value.scrollToItem(R.value.indexOf(be),ce)}function Ne(Se){var ce;(ce=i.value)==null||ce.scrollTo(Se)}return{tree:o,flattenTree:R,isNotEmpty:B,listRef:i,getKey:j,getChildren:D,toggleExpand:ae,toggleCheckbox:l,isExpanded:ee,isChecked:s,isIndeterminate:a,isDisabled:he,isCurrent:fe,isForceHiddenExpandIcon:C,handleNodeClick:H,handleNodeCheck:J,getCurrentNode:Le,getCurrentKey:Ie,setCurrentKey:ze,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:v,setChecked:y,setCheckedKeys:w,filter:I,setData:Ae,getNode:_e,expandNode:z,collapseNode:X,setExpandedKeys:K,scrollToNode:ye,scrollTo:Ne}}var O8e=xe({name:"ElTreeNodeContent",props:g8e,setup(e){const t=Pt(i3),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}):Zt("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const w8e=xe({name:"ElTreeNode"}),S8e=xe({...w8e,props:p8e,emits:m8e,setup(e,{emit:t}){const n=e,r=Pt(i3),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:LI}),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(hH,p,(b=n.node)==null?void 0:b.data,n.node)};return(p,v)=>{var y,w,b;return Z(),ue("div",{ref:"node$",class:q([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:q(m(o).be("node","content")),style:Vt({paddingLeft:`${(p.node.level-1)*m(i)}px`,height:p.itemSize+"px"})},[m(a)?(Z(),Qe(m(jt),{key:0,class:q([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:le(()=>[(Z(),Qe(Dn(m(a))))]),_:1},8,["class","onClick"])):Fe("v-if",!0),p.showCheckbox?(Z(),Qe(m(zl),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:u,onClick:tn(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):Fe("v-if",!0),re(m(O8e),{node:p.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick"])}}});var x8e=vt(S8e,[["__file","tree-node.vue"]]);const k8e=xe({name:"ElTreeV2"}),C8e=xe({...k8e,props:h8e,emits:v8e,setup(e,{expose:t,emit:n}){const r=e,o=Qi(),i=W(()=>r.itemSize);Wn(i3,{ctx:{emit:n,slots:o},props:r,instance:Cn()}),Wn(pf,void 0);const{t:a}=or(),s=lt("tree"),{flattenTree:l,isNotEmpty:u,listRef:d,toggleExpand:p,isExpanded:v,isIndeterminate:y,isChecked:w,isDisabled:b,isCurrent:k,isForceHiddenExpandIcon:C,handleNodeClick:P,handleNodeCheck:$,toggleCheckbox:T,getCurrentNode:A,getCurrentKey:R,setCurrentKey:B,getCheckedKeys:N,getCheckedNodes:I,getHalfCheckedKeys:D,getHalfCheckedNodes:j,setChecked:F,setCheckedKeys:G,filter:ae,setData:K,getNode:H,expandNode:oe,collapseNode:J,setExpandedKeys:z,scrollToNode:X,scrollTo:ee}=_8e(r,n);return t({toggleCheckbox:T,getCurrentNode:A,getCurrentKey:R,setCurrentKey:B,getCheckedKeys:N,getCheckedNodes:I,getHalfCheckedKeys:D,getHalfCheckedNodes:j,setChecked:F,setCheckedKeys:G,filter:ae,setData:K,getNode:H,expandNode:oe,collapseNode:J,setExpandedKeys:z,scrollToNode:X,scrollTo:ee}),(he,fe)=>{var Le;return Z(),ue("div",{class:q([m(s).b(),{[m(s).m("highlight-current")]:he.highlightCurrent}]),role:"tree"},[m(u)?(Z(),Qe(m(mU),{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:le(({data:Ie,index:ze,style:Ae})=>[(Z(),Qe(x8e,{key:Ie[ze].key,style:Vt(Ae),node:Ie[ze],expanded:m(v)(Ie[ze]),"show-checkbox":he.showCheckbox,checked:m(w)(Ie[ze]),indeterminate:m(y)(Ie[ze]),"item-size":m(i),disabled:m(b)(Ie[ze]),current:m(k)(Ie[ze]),"hidden-expand-icon":m(C)(Ie[ze]),onClick:m(P),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(),ue("div",{key:1,class:q(m(s).e("empty-block"))},[ve("span",{class:q(m(s).e("empty-text"))},ct((Le=he.emptyText)!=null?Le:m(a)("el.tree.emptyText")),3)],2))],2)}}});var E8e=vt(C8e,[["__file","tree.vue"]]);const T8e=pn(E8e),pH=Symbol("uploadContextKey"),P8e="ElUpload";class $8e extends Error{constructor(t,n,r,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=o}}function EB(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 $8e(r,n.status,t.method,e)}function A8e(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const M8e=e=>{typeof XMLHttpRequest=="undefined"&&Ai(P8e,"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(EB(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(EB(n,e,t));e.onSuccess(A8e(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))zi(a)||t.setRequestHeader(i,String(a));return t.send(r),t},gH=["text","picture","picture-card"];let R8e=1;const tR=()=>Date.now()+R8e++,vH=gt({action:{type:String,default:"#"},headers:{type:je(Object)},method:{type:String,default:"post"},data:{type:je([Object,Function,Promise]),default:()=>wo({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:je(Array),default:()=>wo([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:gH,default:"text"},httpRequest:{type:je(Function),default:M8e},disabled:Boolean,limit:Number}),N8e=gt({...vH,beforeUpload:{type:je(Function),default:Vr},beforeRemove:{type:je(Function)},onRemove:{type:je(Function),default:Vr},onChange:{type:je(Function),default:Vr},onPreview:{type:je(Function),default:Vr},onSuccess:{type:je(Function),default:Vr},onProgress:{type:je(Function),default:Vr},onError:{type:je(Function),default:Vr},onExceed:{type:je(Function),default:Vr},crossorigin:{type:je(String)}}),I8e=gt({files:{type:je(Array),default:()=>wo([])},disabled:{type:Boolean,default:!1},handlePreview:{type:je(Function),default:Vr},listType:{type:String,values:gH,default:"text"},crossorigin:{type:je(String)}}),D8e={remove:e=>!!e},j8e=xe({name:"ElUploadList"}),L8e=xe({...j8e,props:I8e,emits:D8e,setup(e,{emit:t}){const n=e,{t:r}=or(),o=lt("upload"),i=lt("icon"),a=lt("list"),s=Is(),l=te(!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(),Qe(Dz,{tag:"ul",class:q(m(u)),name:m(a).b()},{default:le(()=>[(Z(!0),ue(Tt,null,_n(p.files,(y,w)=>(Z(),ue("li",{key:y.uid||y.name,class:q([m(o).be("list","item"),m(o).is(y.status),{focusing:l.value}]),tabindex:"0",onKeydown:Fr(b=>!m(s)&&d(y),["delete"]),onFocus:b=>l.value=!0,onBlur:b=>l.value=!1,onClick:b=>l.value=!1},[Ge(p.$slots,"default",{file:y,index:w},()=>[p.listType==="picture"||y.status!=="uploading"&&p.listType==="picture-card"?(Z(),ue("img",{key:0,class:q(m(o).be("list","item-thumbnail")),src:y.url,crossorigin:p.crossorigin,alt:""},null,10,["src","crossorigin"])):Fe("v-if",!0),y.status==="uploading"||p.listType!=="picture-card"?(Z(),ue("div",{key:1,class:q(m(o).be("list","item-info"))},[ve("a",{class:q(m(o).be("list","item-name")),onClick:tn(b=>p.handlePreview(y),["prevent"])},[re(m(jt),{class:q(m(i).m("document"))},{default:le(()=>[re(m(_1e))]),_:1},8,["class"]),ve("span",{class:q(m(o).be("list","item-file-name")),title:y.name},ct(y.name),11,["title"])],10,["onClick"]),y.status==="uploading"?(Z(),Qe(m(lU),{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"])):Fe("v-if",!0)],2)):Fe("v-if",!0),ve("label",{class:q(m(o).be("list","item-status-label"))},[p.listType==="text"?(Z(),Qe(m(jt),{key:0,class:q([m(i).m("upload-success"),m(i).m("circle-check")])},{default:le(()=>[re(m(BI))]),_:1},8,["class"])):["picture-card","picture"].includes(p.listType)?(Z(),Qe(m(jt),{key:1,class:q([m(i).m("upload-success"),m(i).m("check")])},{default:le(()=>[re(m(p0))]),_:1},8,["class"])):Fe("v-if",!0)],2),m(s)?Fe("v-if",!0):(Z(),Qe(m(jt),{key:2,class:q(m(i).m("close")),onClick:b=>d(y)},{default:le(()=>[re(m(ks))]),_:2},1032,["class","onClick"])),Fe(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Fe(" This is a bug which needs to be fixed "),Fe(" TODO: Fix the incorrect navigation interaction "),m(s)?Fe("v-if",!0):(Z(),ue("i",{key:3,class:q(m(i).m("close-tip"))},ct(m(r)("el.upload.deleteTip")),3)),p.listType==="picture-card"?(Z(),ue("span",{key:4,class:q(m(o).be("list","item-actions"))},[ve("span",{class:q(m(o).be("list","item-preview")),onClick:b=>p.handlePreview(y)},[re(m(jt),{class:q(m(i).m("zoom-in"))},{default:le(()=>[re(m(EW))]),_:1},8,["class"])],10,["onClick"]),m(s)?Fe("v-if",!0):(Z(),ue("span",{key:0,class:q(m(o).be("list","item-delete")),onClick:b=>d(y)},[re(m(jt),{class:q(m(i).m("delete"))},{default:le(()=>[re(m(wW))]),_:1},8,["class"])],10,["onClick"]))],2)):Fe("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),Ge(p.$slots,"append")]),_:3},8,["class","name"]))}});var TB=vt(L8e,[["__file","upload-list.vue"]]);const B8e=gt({disabled:{type:Boolean,default:!1}}),V8e={file:e=>xt(e)},mH="ElUploadDrag",F8e=xe({name:mH}),z8e=xe({...F8e,props:B8e,emits:V8e,setup(e,{emit:t}){Pt(pH)||Ai(mH,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=lt("upload"),o=te(!1),i=Is(),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(),ue("div",{class:q([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"])},[Ge(l.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var Q8e=vt(z8e,[["__file","upload-dragger.vue"]]);const W8e=gt({...vH,beforeUpload:{type:je(Function),default:Vr},onRemove:{type:je(Function),default:Vr},onStart:{type:je(Function),default:Vr},onSuccess:{type:je(Function),default:Vr},onProgress:{type:je(Function),default:Vr},onError:{type:je(Function),default:Vr},onExceed:{type:je(Function),default:Vr}}),Y8e=xe({name:"ElUploadContent",inheritAttrs:!1}),Z8e=xe({...Y8e,props:W8e,setup(e,{expose:t}){const n=e,r=lt("upload"),o=Is(),i=Jr({}),a=Jr(),s=b=>{if(b.length===0)return;const{autoUpload:k,limit:C,fileList:P,multiple:$,onStart:T,onExceed:A}=n;if(C&&P.length+b.length>C){A(b,P);return}$||(b=b.slice(0,1));for(const R of b){const B=R;B.uid=tR(),T(B),k&&l(B)}},l=async b=>{if(a.value.value="",!n.beforeUpload)return d(b);let k,C={};try{const $=n.data,T=n.beforeUpload(b);C=Tk(n.data)?CO(n.data):n.data,k=await T,Tk(n.data)&&os($,C)&&(C=CO(n.data))}catch{k=!1}if(k===!1){n.onRemove(b);return}let P=b;k instanceof Blob&&(k instanceof File?P=k:P=new File([k],b.name,{type:b.type})),d(Object.assign(P,{uid:b.uid}),C)},u=async(b,k)=>nn(b)?b(k):b,d=async(b,k)=>{const{headers:C,data:P,method:$,withCredentials:T,name:A,action:R,onProgress:B,onSuccess:N,onError:I,httpRequest:D}=n;try{k=await u(k!=null?k:P,b)}catch{n.onRemove(b);return}const{uid:j}=b,F={headers:C||{},withCredentials:T,file:b,data:k,method:$,filename:A,action:R,onProgress:ae=>{B(ae,b)},onSuccess:ae=>{N(ae,b),delete i.value[j]},onError:ae=>{I(ae,b),delete i.value[j]}},G=D(F);i.value[j]=G,G instanceof Promise&&G.then(F.onSuccess,F.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,P])=>{P instanceof XMLHttpRequest&&P.abort(),delete i.value[C]})},upload:l}),(b,k)=>(Z(),ue("div",{class:q([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:Fr(tn(y,["self"]),["enter","space"])},[b.drag?(Z(),Qe(Q8e,{key:0,disabled:m(o),onFile:s},{default:le(()=>[Ge(b.$slots,"default")]),_:3},8,["disabled"])):Ge(b.$slots,"default",{key:1}),ve("input",{ref_key:"inputRef",ref:a,class:q(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 PB=vt(Z8e,[["__file","upload-content.vue"]]);const $B="ElUpload",AB=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},U8e=(e,t)=>{const n=Uz(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=>{zi(y.uid)&&(y.uid=tR());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||Ai($B,"file to be removed not found");const b=k=>{o(k),a(k),e.onRemove(k,n.value),AB(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=tR()),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:AB}},H8e=xe({name:"ElUpload"}),X8e=xe({...H8e,props:N8e,setup(e,{expose:t}){const n=e,r=Is(),o=Jr(),{abort:i,submit:a,clearFiles:s,uploadFiles:l,handleStart:u,handleError:d,handleRemove:p,handleSuccess:v,handleProgress:y,revokeFileObjectURL:w}=U8e(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 Hr(()=>{l.value.forEach(w)}),Wn(pH,{accept:Cr(n,"accept")}),t({abort:i,submit:a,clearFiles:s,handleStart:u,handleRemove:p}),(C,P)=>(Z(),ue("div",null,[m(b)&&C.showFileList?(Z(),Qe(TB,{key:0,disabled:m(r),"list-type":C.listType,files:m(l),crossorigin:C.crossorigin,"handle-preview":C.onPreview,onRemove:m(p)},Dl({append:le(()=>[re(PB,In({ref_key:"uploadRef",ref:o},m(k)),{default:le(()=>[C.$slots.trigger?Ge(C.$slots,"trigger",{key:0}):Fe("v-if",!0),!C.$slots.trigger&&C.$slots.default?Ge(C.$slots,"default",{key:1}):Fe("v-if",!0)]),_:3},16)]),_:2},[C.$slots.file?{name:"default",fn:le(({file:$,index:T})=>[Ge(C.$slots,"file",{file:$,index:T})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Fe("v-if",!0),!m(b)||m(b)&&!C.showFileList?(Z(),Qe(PB,In({key:1,ref_key:"uploadRef",ref:o},m(k)),{default:le(()=>[C.$slots.trigger?Ge(C.$slots,"trigger",{key:0}):Fe("v-if",!0),!C.$slots.trigger&&C.$slots.default?Ge(C.$slots,"default",{key:1}):Fe("v-if",!0)]),_:3},16)):Fe("v-if",!0),C.$slots.trigger?Ge(C.$slots,"default",{key:2}):Fe("v-if",!0),Ge(C.$slots,"tip"),!m(b)&&C.showFileList?(Z(),Qe(TB,{key:3,disabled:m(r),"list-type":C.listType,files:m(l),crossorigin:C.crossorigin,"handle-preview":C.onPreview,onRemove:m(p)},Dl({_:2},[C.$slots.file?{name:"default",fn:le(({file:$,index:T})=>[Ge(C.$slots,"file",{file:$,index:T})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Fe("v-if",!0)]))}});var G8e=vt(X8e,[["__file","upload.vue"]]);const K8e=pn(G8e),q8e=gt({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:je([String,Array]),default:"Element Plus"},font:{type:je(Object)},gap:{type:je(Array),default:()=>[100,100]},offset:{type:je(Array)}});function J8e(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function eLe(e){return Object.keys(e).map(t=>`${J8e(t)}: ${e[t]};`).join(" ")}function tLe(){return window.devicePixelRatio||1}const nLe=(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},yH=3;function eA(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 rLe(){function e(t,n,r,o,i,a,s,l){const[u,d,p,v]=eA(o,i,r);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,p,v);else{const{color:ee,fontSize:he,fontStyle:fe,fontWeight:Le,fontFamily:Ie,textAlign:ze,textBaseline:Ae}=a,_e=Number(he)*r;u.font=`${fe} normal ${Le} ${_e}px/${i}px ${Ie}`,u.fillStyle=ee,u.textAlign=ze,u.textBaseline=Ae;const ye=Array.isArray(t)?t:[t];ye==null||ye.forEach((Ne,Se)=>{u.fillText(Ne!=null?Ne:"",p/2,Se*(_e+yH*r))})}const y=Math.PI/180*Number(n),w=Math.max(o,i),[b,k,C]=eA(w,w,r);b.translate(C/2,C/2),b.rotate(y),p>0&&v>0&&b.drawImage(d,-p/2,-v/2);function P(ee,he){const fe=ee*Math.cos(y)-he*Math.sin(y),Le=ee*Math.sin(y)+he*Math.cos(y);return[fe,Le]}let $=0,T=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(([ee,he])=>{const[fe,Le]=P(ee,he);$=Math.min($,fe),T=Math.max(T,fe),A=Math.min(A,Le),R=Math.max(R,Le)});const D=$+C/2,j=A+C/2,F=T-$,G=R-A,ae=s*r,K=l*r,H=(F+ae)*2,oe=G+K,[J,z]=eA(H,oe);function X(ee=0,he=0){J.drawImage(k,D,j,F,G,ee,he,F,G)}return X(),X(F+ae,-G/2-K/2),X(F+ae,+G/2+K/2),[z.toDataURL(),H/r,oe/r]}return e}const oLe=xe({name:"ElWatermark"}),iLe=xe({...oLe,props:q8e,setup(e){const t=e,n={position:"relative"},r=W(()=>{var D,j;return(j=(D=t.font)==null?void 0:D.color)!=null?j:"rgba(0,0,0,.15)"}),o=W(()=>{var D,j;return(j=(D=t.font)==null?void 0:D.fontSize)!=null?j:16}),i=W(()=>{var D,j;return(j=(D=t.font)==null?void 0:D.fontWeight)!=null?j:"normal"}),a=W(()=>{var D,j;return(j=(D=t.font)==null?void 0:D.fontStyle)!=null?j:"normal"}),s=W(()=>{var D,j;return(j=(D=t.font)==null?void 0:D.fontFamily)!=null?j:"sans-serif"}),l=W(()=>{var D,j;return(j=(D=t.font)==null?void 0:D.textAlign)!=null?j:"center"}),u=W(()=>{var D,j;return(j=(D=t.font)==null?void 0:D.textBaseline)!=null?j:"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,j;return(j=(D=t.offset)==null?void 0:D[0])!=null?j:v.value}),b=W(()=>{var D,j;return(j=(D=t.offset)==null?void 0:D[1])!=null?j:y.value}),k=()=>{const D={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let j=w.value-v.value,F=b.value-y.value;return j>0&&(D.left=`${j}px`,D.width=`calc(100% - ${j}px)`,j=0),F>0&&(D.top=`${F}px`,D.height=`calc(100% - ${F}px)`,F=0),D.backgroundPosition=`${j}px ${F}px`,D},C=Jr(null),P=Jr(),$=te(!1),T=()=>{P.value&&(P.value.remove(),P.value=void 0)},A=(D,j)=>{var F;C.value&&P.value&&($.value=!0,P.value.setAttribute("style",eLe({...k(),backgroundImage:`url('${D}')`,backgroundSize:`${Math.floor(j)}px`})),(F=C.value)==null||F.append(P.value),setTimeout(()=>{$.value=!1}))},R=D=>{let j=120,F=64;const G=t.image,ae=t.content,K=t.width,H=t.height;if(!G&&D.measureText){D.font=`${Number(o.value)}px ${s.value}`;const oe=Array.isArray(ae)?ae:[ae],J=oe.map(z=>{const X=D.measureText(z);return[X.width,X.fontBoundingBoxAscent!==void 0?X.fontBoundingBoxAscent+X.fontBoundingBoxDescent:X.actualBoundingBoxAscent+X.actualBoundingBoxDescent]});j=Math.ceil(Math.max(...J.map(z=>z[0]))),F=Math.ceil(Math.max(...J.map(z=>z[1])))*oe.length+(oe.length-1)*yH}return[K!=null?K:j,H!=null?H:F]},B=rLe(),N=()=>{const j=document.createElement("canvas").getContext("2d"),F=t.image,G=t.content,ae=t.rotate;if(j){P.value||(P.value=document.createElement("div"));const K=tLe(),[H,oe]=R(j),J=z=>{const[X,ee]=B(z||"",ae,K,H,oe,{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(X,ee)};if(F){const z=new Image;z.onload=()=>{J(z)},z.onerror=()=>{J(G)},z.crossOrigin="anonymous",z.referrerPolicy="no-referrer",z.src=F}else J(G)}};return vn(()=>{N()}),at(()=>t,()=>{N()},{deep:!0,flush:"post"}),Hr(()=>{T()}),Zz(C,D=>{$.value||D.forEach(j=>{nLe(j,P.value)&&(T(),N())})},{attributes:!0,subtree:!0,childList:!0}),(D,j)=>(Z(),ue("div",{ref_key:"containerRef",ref:C,style:Vt([n])},[Ge(D.$slots,"default")],4))}});var aLe=vt(iLe,[["__file","watermark.vue"]]);const sLe=pn(aLe),lLe=gt({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:je(Object)},targetAreaClickable:{type:Boolean,default:!0}}),uLe=(e,t,n,r,o)=>{const i=te(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}!cLe(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)}),Hr(()=>{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}},ZC=Symbol("ElTour");function cLe(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 fLe=(e,t,n,r,o,i,a,s)=>{const l=te(),u=te(),d=te({}),p={x:l,y:u,placement:r,strategy:o,middlewareData:d},v=W(()=>{const C=[JW(m(i)),HSe(),GSe(),dLe()];return m(s)&&m(n)&&C.push(qW({element:m(n)})),C}),y=async()=>{if(!nr)return;const C=m(e),P=m(t);if(!C||!P)return;const $=await sY(C,P,{placement:m(r),strategy:m(o),middleware:m(v)});Iy(p).forEach(T=>{p[T].value=$[T]})},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),P=m(t);C&&P&&(k=pxe(C,P,y)),Da(()=>{y()})}),Hr(()=>{k&&k()}),{update:y,contentStyle:w,arrowStyle:b}},dLe=()=>({name:"overflow",async fn(e){const t=await aD(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),hLe=xe({name:"ElTourMask",inheritAttrs:!1}),pLe=xe({...hLe,props:lLe,setup(e){const t=e,{ns:n}=Pt(ZC),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 UI(Cr(t,"visible"),{ns:n}),(s,l)=>s.visible?(Z(),ue("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(),ue("svg",{style:{width:"100%",height:"100%"}},[ve("path",{class:q(m(n).e("hollow")),style:Vt(m(a)),d:m(i)},null,14,["d"])]))],16)):Fe("v-if",!0)}});var gLe=vt(pLe,[["__file","mask.vue"]]);const vLe=["absolute","fixed"],mLe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],a3=gt({placement:{type:je(String),values:mLe,default:"bottom"},reference:{type:je(Object),default:null},strategy:{type:je(String),values:vLe,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),yLe={close:()=>!0},bLe=xe({name:"ElTourContent"}),_Le=xe({...bLe,props:a3,emits:yLe,setup(e,{emit:t}){const n=e,r=te(n.placement),o=te(n.strategy),i=te(null),a=te(null);at(()=>n.placement,()=>{r.value=n.placement});const{contentStyle:s,arrowStyle:l}=fLe(Cr(n,"reference"),i,a,r,o,Cr(n,"offset"),Cr(n,"zIndex"),Cr(n,"showArrow")),u=W(()=>r.value.split("-")[0]),{ns:d}=Pt(ZC),p=()=>{t("close")},v=y=>{y.detail.focusReason==="pointer"&&y.preventDefault()};return(y,w)=>(Z(),ue("div",{ref_key:"contentRef",ref:i,style:Vt(m(s)),class:q(m(d).e("content")),"data-side":m(u),tabindex:"-1"},[re(m(P1),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:p,onFocusoutPrevented:v},{default:le(()=>[Ge(y.$slots,"default")]),_:3},8,["focus-trap-el"]),y.showArrow?(Z(),ue("span",{key:0,ref_key:"arrowRef",ref:a,style:Vt(m(l)),class:q(m(d).e("arrow"))},null,6)):Fe("v-if",!0)],14,["data-side"]))}});var OLe=vt(_Le,[["__file","content.vue"]]),wLe=xe({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(Bh((i=a[0])==null?void 0:i.children)),r!==l&&(r=l,n("update-total",l)),s.length?s[e.current]:null}}});const SLe=gt({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:zr},placement:a3.placement,contentStyle:{type:je([Object])},mask:{type:je([Boolean,Object]),default:!0},gap:{type:je(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:je([Boolean,Object]),default:()=>({block:"center"})},type:{type:je(String)},appendTo:{type:je([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),xLe={[En]:e=>Ho(e),["update:current"]:e=>en(e),close:e=>en(e),finish:()=>!0,change:e=>en(e)},kLe=xe({name:"ElTour"}),CLe=xe({...kLe,props:SLe,emits:xLe,setup(e,{emit:t}){const n=e,r=lt("tour"),o=te(0),i=te(),a=Uz(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(()=>Ho(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}=g0(),P=C(),$=W(()=>{var I;return(I=n.zIndex)!=null?I:P}),{mergedPosInfo:T,triggerTarget:A}=uLe(s,Cr(n,"modelValue"),Cr(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=Qi();return Wn(ZC,{currentStep:i,current:a,total:o,showClose:Cr(n,"showClose"),closeIcon:Cr(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(),ue(Tt,null,[re(m(m0),{to:I.appendTo},{default:le(()=>{var j,F;return[ve("div",In({class:m(l)},I.$attrs),[re(gLe,{visible:m(v),fill:(j=m(y))==null?void 0:j.color,style:Vt((F=m(y))==null?void 0:F.style),pos:m(T),"z-index":m($),"target-area-clickable":I.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),I.modelValue?(Z(),Qe(OLe,{key:m(a),reference:m(A),placement:m(u),"show-arrow":m(w),"z-index":m($),style:Vt(m(d)),onClose:R},{default:le(()=>[re(m(wLe),{current:m(a),onUpdateTotal:B},{default:le(()=>[Ge(I.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):Fe("v-if",!0)],16)]}),_:3},8,["to"]),Fe(" just for IDE "),Fe("v-if",!0)],64))}});var ELe=vt(CLe,[["__file","tour.vue"]]);const TLe=gt({target:{type:je([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:zr},showArrow:{type:Boolean,default:void 0},placement:a3.placement,mask:{type:je([Boolean,Object]),default:void 0},contentStyle:{type:je([Object])},prevButtonProps:{type:je(Object)},nextButtonProps:{type:je(Object)},scrollIntoViewOptions:{type:je([Boolean,Object]),default:void 0},type:{type:je(String)}}),PLe={close:()=>!0},$Le=xe({name:"ElTourStep"}),ALe=xe({...$Le,props:TLe,emits:PLe,setup(e,{emit:t}){const n=e,{Close:r}=zI,{t:o}=or(),{currentStep:i,current:a,total:s,showClose:l,closeIcon:u,mergedType:d,ns:p,slots:v,updateModelValue:y,onClose:w,onFinish:b,onChange:k}=Pt(ZC);at(n,N=>{i.value=N},{immediate:!0});const C=W(()=>{var N;return(N=n.showClose)!=null?N:l.value}),P=W(()=>{var N,I;return(I=(N=n.closeIcon)!=null?N:u.value)!=null?I:r}),$=N=>{if(!!N)return QQ(N,["children","onClick"])},T=()=>{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(),ue(Tt,null,[m(C)?(Z(),ue("button",{key:0,"aria-label":"Close",class:q(m(p).e("closebtn")),type:"button",onClick:B},[re(m(jt),{class:q(m(p).e("close"))},{default:le(()=>[(Z(),Qe(Dn(m(P))))]),_:1},8,["class"])],2)):Fe("v-if",!0),ve("header",{class:q([m(p).e("header"),{"show-close":m(l)}])},[Ge(N.$slots,"header",{},()=>[ve("span",{role:"heading",class:q(m(p).e("title"))},ct(N.title),3)])],2),ve("div",{class:q(m(p).e("body"))},[Ge(N.$slots,"default",{},()=>[ve("span",null,ct(N.description),1)])],2),ve("footer",{class:q(m(p).e("footer"))},[ve("div",{class:q(m(p).b("indicators"))},[m(v).indicators?(Z(),Qe(Dn(m(v).indicators),{key:0,current:m(a),total:m(s)},null,8,["current","total"])):(Z(!0),ue(Tt,{key:1},_n(m(s),(D,j)=>(Z(),ue("span",{key:D,class:q([m(p).b("indicator"),j===m(a)?"is-active":""])},null,2))),128))],2),ve("div",{class:q(m(p).b("buttons"))},[m(a)>0?(Z(),Qe(m(ro),In({key:0,size:"small",type:m(d)},$(N.prevButtonProps),{onClick:T}),{default:le(()=>{var D,j;return[St(ct((j=(D=N.prevButtonProps)==null?void 0:D.children)!=null?j:m(o)("el.tour.previous")),1)]}),_:1},16,["type"])):Fe("v-if",!0),m(a)<=m(s)-1?(Z(),Qe(m(ro),In({key:1,size:"small",type:m(d)==="primary"?"default":"primary"},$(N.nextButtonProps),{onClick:A}),{default:le(()=>{var D,j;return[St(ct((j=(D=N.nextButtonProps)==null?void 0:D.children)!=null?j:m(a)===m(s)-1?m(o)("el.tour.finish"):m(o)("el.tour.next")),1)]}),_:1},16,["type"])):Fe("v-if",!0)],2)],2)],64))}});var bH=vt(ALe,[["__file","step.vue"]]);const MLe=pn(ELe,{TourStep:bH}),RLe=xo(bH),NLe=gt({container:{type:je([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:je(String),default:"default"},direction:{type:je(String),default:"vertical"}}),ILe={change:e=>Gt(e),click:(e,t)=>e instanceof MouseEvent&&(Gt(t)||Vo(t))},_H=Symbol("anchor"),DLe=xe({name:"ElAnchor"}),jLe=xe({...DLe,props:NLe,emits:ILe,setup(e,{expose:t,emit:n}){const r=e,o=te(""),i=te(null),a=te(null),s=te(),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=sx(N);if(!I)return;k&&k(),u=!0;const D=F5(I,s.value),j=ZA(I,D),F=D.scrollHeight-D.clientHeight,G=Math.min(j-r.offset,F);k=GOe(s.value,d,G,r.duration,()=>{setTimeout(()=>{u=!1},20)})},P=N=>{N&&(b(N),C(N))},$=(N,I)=>{n("click",N,I),P(I)},T=vwe(()=>{s.value&&(d=z5(s.value));const N=A();u||Vo(N)||b(N)}),A=()=>{if(!s.value)return;const N=z5(s.value),I=[];for(const D of Object.keys(l)){const j=sx(D);if(!j)continue;const F=F5(j,s.value),G=ZA(j,F);I.push({top:G-r.offset-r.bound,href:D})}I.sort((D,j)=>D.top-j.top);for(let D=0;D<I.length;D++){const j=I[D],F=I[D+1];if(D===0&&N===0)return"";if(j.top<=N&&(!F||F.top>N))return j.href}},R=()=>{const N=sx(r.container);!N||xC(N)?s.value=window:s.value=N};Mr(s,"scroll",T);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(),j=N.getBoundingClientRect();return r.direction==="horizontal"?{left:`${j.left-I.left}px`,width:`${j.width}px`,opacity:1}:{top:`${j.top-I.top+(j.height-D.height)/2}px`,opacity:1}});return vn(()=>{R();const N=decodeURIComponent(window.location.hash);sx(N)?P(N):T()}),at(()=>r.container,()=>{R()}),Wn(_H,{ns:p,direction:r.direction,currentAnchor:o,addLink:y,removeLink:w,handleClick:$}),t({scrollTo:P}),(N,I)=>(Z(),ue("div",{ref_key:"anchorRef",ref:i,class:q(m(v))},[N.marker?(Z(),ue("div",{key:0,ref_key:"markerRef",ref:a,class:q(m(p).e("marker")),style:Vt(m(B))},null,6)):Fe("v-if",!0),ve("div",{class:q(m(p).e("list"))},[Ge(N.$slots,"default")],2)],2))}});var LLe=vt(jLe,[["__file","anchor.vue"]]);const BLe=gt({title:String,href:String}),VLe=xe({name:"ElAnchorLink"}),FLe=xe({...VLe,props:BLe,setup(e){const t=e,n=te(null),{ns:r,direction:o,currentAnchor:i,addLink:a,removeLink:s,handleClick:l}=Pt(_H),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})}),Hr(()=>{const{href:p}=t;p&&s(p)}),(p,v)=>(Z(),ue("div",{class:q(m(r).e("item"))},[ve("a",{ref_key:"linkRef",ref:n,class:q(m(u)),href:p.href,onClick:d},[Ge(p.$slots,"default",{},()=>[St(ct(p.title),1)])],10,["href"]),p.$slots["sub-link"]&&m(o)==="vertical"?(Z(),ue("div",{key:0,class:q(m(r).e("list"))},[Ge(p.$slots,"sub-link")],2)):Fe("v-if",!0)],2))}});var OH=vt(FLe,[["__file","anchor-link.vue"]]);const zLe=pn(LLe,{AnchorLink:OH}),QLe=xo(OH),WLe=gt({options:{type:je(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:Mi,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...pa(["ariaLabel"])}),YLe={[En]:e=>Gt(e)||en(e)||Ho(e),[so]:e=>Gt(e)||en(e)||Ho(e)},ZLe=xe({name:"ElSegmented"}),ULe=xe({...ZLe,props:WLe,emits:YLe,setup(e,{emit:t}){const n=e,r=lt("segmented"),o=La(),i=_i(),a=Is(),{formItem:s}=ss(),{inputId:l,isLabeledByFormItem:u}=_c(n,{formItemContext:s}),d=te(null),p=Gie(),v=rr({isInit:!1,width:0,translateX:0,disabled:!1,focusVisible:!1}),y=I=>{const D=w(I);t(En,D),t(so,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),P=I=>n.options.find(D=>w(D)===I),$=I=>[r.e("item"),r.is("selected",C(I)),r.is("disabled",k(I))],T=()=>{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 j=I.getBoundingClientRect();v.isInit=!0,v.width=j.width,v.translateX=I.offsetLeft,v.disabled=k(P(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 Oo(d,T),at(p,T),at(()=>n.modelValue,()=>{var I;T(),n.validateEvent&&((I=s==null?void 0:s.validate)==null||I.call(s,"change").catch(D=>void 0))},{flush:"post"}),(I,D)=>(Z(),ue("div",{id:m(l),ref_key:"segmentedRef",ref:d,class:q(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:q(m(r).e("group"))},[ve("div",{style:Vt(m(R)),class:q(m(B))},null,6),(Z(!0),ue(Tt,null,_n(I.options,(j,F)=>(Z(),ue("label",{key:F,class:q($(j))},[ve("input",{class:q(m(r).e("item-input")),type:"radio",name:m(N),disabled:k(j),checked:C(j),onChange:G=>y(j)},null,42,["name","disabled","checked","onChange"]),ve("div",{class:q(m(r).e("item-label"))},[Ge(I.$slots,"default",{item:j},()=>[St(ct(b(j)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"]))}});var HLe=vt(ULe,[["__file","segmented.vue"]]);const XLe=pn(HLe),GLe=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},KLe=(e,t,n)=>{const{selectionEnd:r}=e;if(r===null)return;const o=e.value,i=Ra(t);let a=-1,s;for(let l=r-1;l>=0;--l){const u=o[l];if(u===n||u===`
- `||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},qLe=(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]}),IN()?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},JLe=gt({...dD,options:{type:je(Array),default:()=>[]},prefix:{type:je([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:je([Boolean,Function]),default:()=>GLe,validator:e=>e===!1?!0:nn(e)},placement:{type:je(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:je(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:je(Object),default:()=>({})}}),e5e={[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},t5e=gt({options:{type:je(Array),default:()=>[]},loading:Boolean,disabled:Boolean}),n5e={select:e=>Gt(e.value)},r5e=xe({name:"ElMentionDropdown"}),o5e=xe({...r5e,props:t5e,emits:n5e,setup(e,{expose:t,emit:n}){const r=e,o=lt("mention"),{t:i}=or(),a=te(-1),s=te(),l=te(),u=te(),d=($,T)=>[o.be("dropdown","item"),o.is("hovering",a.value===T),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:T}=r;if(T.length===0||y.value)return;$==="next"?(a.value++,a.value===T.length&&(a.value=0)):$==="prev"&&(a.value--,a.value<0&&(a.value=T.length-1));const A=T[a.value];if(A.disabled){k($);return}zt(()=>C(A))},C=$=>{var T,A,R,B;const{options:N}=r,I=N.findIndex(j=>j.value===$.value),D=(T=l.value)==null?void 0:T[I];if(D){const j=(R=(A=u.value)==null?void 0:A.querySelector)==null?void 0:R.call(A,`.${o.be("dropdown","wrap")}`);j&&DI(j,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}),($,T)=>(Z(),ue("div",{ref_key:"dropdownRef",ref:u,class:q(m(o).b("dropdown"))},[$.$slots.header?(Z(),ue("div",{key:0,class:q(m(o).be("dropdown","header"))},[Ge($.$slots,"header")],2)):Fe("v-if",!0),yn(re(m(Oc),{ref_key:"scrollbarRef",ref:s,tag:"ul","wrap-class":m(o).be("dropdown","wrap"),"view-class":m(o).be("dropdown","list")},{default:le(()=>[(Z(!0),ue(Tt,null,_n($.options,(A,R)=>(Z(),ue("li",{ref_for:!0,ref_key:"optionRefs",ref:l,key:A.value,class:q(d(A,R)),onMouseenter:B=>v(R),onClick:tn(B=>p(A),["stop"])},[Ge($.$slots,"label",{item:A,index:R},()=>{var B;return[ve("span",null,ct((B=A.label)!=null?B:A.value),1)]})],42,["onMouseenter","onClick"]))),128))]),_:3},8,["wrap-class","view-class"]),[[pr,$.options.length>0&&!$.loading]]),$.loading?(Z(),ue("div",{key:1,class:q(m(o).be("dropdown","loading"))},[Ge($.$slots,"loading",{},()=>[St(ct(m(i)("el.mention.loading")),1)])],2)):Fe("v-if",!0),$.$slots.footer?(Z(),ue("div",{key:2,class:q(m(o).be("dropdown","footer"))},[Ge($.$slots,"footer")],2)):Fe("v-if",!0)],2))}});var i5e=vt(o5e,[["__file","mention-dropdown.vue"]]);const a5e=xe({name:"ElMention"}),s5e=xe({...a5e,props:JLe,emits:e5e,setup(e,{expose:t,emit:n}){const r=e,o=W(()=>gu(r,Object.keys(dD))),i=lt("mention"),a=te(),s=te(),l=te(),u=te(!1),d=te(),p=te(),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,j,F;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 G=N.key==="ArrowUp"?"prev":"next";(D=l.value)==null||D.navigateOptions(G)}else if(["Enter"].includes(N.key)){if(!u.value)return;N.preventDefault(),(j=l.value)!=null&&j.hoverOption?(F=l.value)==null||F.selectHoverOption():u.value=!1}else if(["Backspace"].includes(N.key)&&r.whole&&p.value){const{splitIndex:G,selectionEnd:ae,pattern:K,prefixIndex:H,prefix:oe}=p.value,J=T();if(!J)return;const z=J.value,X=r.options.find(he=>he.value===K);if((nn(r.checkIsWhole)?r.checkIsWhole(K,oe):X)&&G!==-1&&G+1===ae){N.preventDefault();const he=z.slice(0,H)+z.slice(G+1);n(En,he);const fe=H;zt(()=>{J.selectionStart=fe,J.selectionEnd=fe,B()})}}}},{wrapperRef:C}=E1(a,{afterFocus(){A()},beforeBlur(N){var I;return(I=s.value)==null?void 0:I.isFocusInsideContent(N)},afterBlur(){u.value=!1}}),P=()=>{A()},$=N=>{if(!p.value)return;const I=T();if(!I)return;const D=I.value,{split:j}=r,F=D.slice(p.value.end),G=F.startsWith(j),ae=`${N.value}${G?"":j}`,K=D.slice(0,p.value.start)+ae+F;n(En,K),n("select",N,p.value.prefix);const H=p.value.start+ae.length+(G?1:0);zt(()=>{I.selectionStart=H,I.selectionEnd=H,I.focus(),B()})},T=()=>{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=T();if(!N)return;const I=qLe(N),D=N.getBoundingClientRect(),j=a.value.$el.getBoundingClientRect();d.value={position:"absolute",width:0,height:`${I.height}px`,left:`${I.left+D.left-j.left}px`,top:`${I.top+D.top-j.top}px`}},B=()=>{const N=T();if(document.activeElement!==N){u.value=!1;return}const{prefix:I,split:D}=r;if(p.value=KLe(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(),ue("div",{ref_key:"wrapperRef",ref:C,class:q(m(i).b())},[re(m(ti),In(In(m(o),N.$attrs),{ref_key:"elInputRef",ref:a,"model-value":N.modelValue,onInput:b,onKeydown:k,onMousedown:P}),Dl({_:2},[_n(N.$slots,(D,j)=>({name:j,fn:le(F=>[Ge(N.$slots,j,ac(Zh(F)))])}))]),1040,["model-value"]),re(m(na),{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:le(()=>[ve("div",{style:Vt(d.value)},null,4)]),content:le(()=>{var D;return[re(i5e,{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"])},Dl({_:2},[_n(N.$slots,(j,F)=>({name:F,fn:le(G=>[Ge(N.$slots,F,ac(Zh(G)))])}))]),1032,["options","disabled","loading","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var l5e=vt(s5e,[["__file","mention.vue"]]);const u5e=pn(l5e);var c5e=[Nxe,hY,sCe,Rje,hCe,_Ce,TY,MCe,RCe,ro,IY,QEe,HEe,aTe,sTe,sPe,yZ,hPe,zl,OTe,uZ,al,OD,wD,jC,u$e,Cxe,O$e,w$e,S$e,x$e,k$e,fAe,OAe,wAe,Pd,zZ,$D,AMe,MMe,RMe,KZ,xf,kf,jt,KMe,qZ,ti,JZ,lRe,TRe,PRe,$Re,ARe,jRe,jD,RNe,zNe,kY,lU,vZ,NTe,RTe,qNe,rIe,il,Oc,hc,ip,lNe,BIe,UIe,HIe,ODe,CDe,EU,jDe,ZDe,UDe,$1,YD,ZD,Mje,QC,WC,op,M1,xEe,n4e,s4e,l4e,na,R4e,Z4e,n2,f8e,T8e,K8e,sLe,MLe,RLe,zLe,QLe,XLe,u5e];const cu="ElInfiniteScroll",f5e=50,d5e=200,h5e=0,p5e={delay:{type:Number,default:d5e},distance:{type:Number,default:h5e},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},s3=(e,t)=>Object.entries(p5e).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},{}),wH=e=>{const{observer:t}=e[cu];t&&(t.disconnect(),delete e[cu].observer)},g5e=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:i,lastScrollTop:a}=e[cu],{disabled:s,distance:l}=s3(e,o),{clientHeight:u,scrollHeight:d,scrollTop:p}=r,v=p-a;if(e[cu].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=ZA(e,r);y=p+u>=k+w+b-l}y&&t.call(o)};function tA(e,t){const{containerEl:n,instance:r}=e[cu],{disabled:o}=s3(e,r);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):wH(e))}const v5e={async mounted(e,t){const{instance:n,value:r}=t;nn(r)||Ai(cu,"'v-infinite-scroll' binding value must be a function"),await zt();const{delay:o,immediate:i}=s3(e,n),a=II(e,!0),s=a===window?document.documentElement:a,l=Lh(g5e.bind(null,e,r),o);if(!!a){if(e[cu]={instance:n,container:a,containerEl:s,delay:o,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Lh(tA.bind(null,e,r),f5e));e[cu].observer=u,u.observe(e,{childList:!0,subtree:!0}),tA(e,r)}a.addEventListener("scroll",l)}},unmounted(e){if(!e[cu])return;const{container:t,onScroll:n}=e[cu];t==null||t.removeEventListener("scroll",n),wH(e)},async updated(e){if(!e[cu])await zt();else{const{containerEl:t,cb:n,observer:r}=e[cu];t.clientHeight&&r&&tA(e,n)}}},nR=v5e;nR.install=e=>{e.directive("InfiniteScroll",nR)};const m5e=nR;function y5e(e){let t;const n=te(!1),r=rr({...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()):(is(v,y.bm("parent","relative")),v.removeAttribute("loading-number")),is(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=xe({name:"ElLoading",setup(v,{expose:y}){const{ns:w,zIndex:b}=NC("loading");return y({ns:w,zIndex:b}),()=>{const k=r.spinner||r.svg,C=Zt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...k?{innerHTML:k}:{}},[Zt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),P=r.text?Zt("p",{class:w.b("text")},[r.text]):void 0;return Zt($i,{name:w.b("fade"),onAfterLeave:l},{default:le(()=>[yn(re("div",{style:{backgroundColor:r.background||""},class:[w.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Zt("div",{class:w.b("spinner")},[C,P])]),[[pr,r.visible]])])})}}}),d=nC(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 wx;const rR=function(e={}){if(!nr)return;const t=b5e(e);if(t.fullscreen&&wx)return wx;const n=y5e({...t,closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(wx=void 0)}});_5e(t,t.parent,n),MB(t,t.parent,n),t.parent.vLoadingAddClassList=()=>MB(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&&(wx=n),n},b5e=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}},_5e=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Th(document.body,"position"),n.originalOverflow.value=Th(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Th(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(Th(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])o[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Th(t,"position");for(const[i,a]of Object.entries(o))n.$el.style[i]=a},MB=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?is(t,r.bm("parent","relative")):vu(t,r.bm("parent","relative")),e.fullscreen&&e.lock?vu(t,r.bm("parent","hidden")):is(t,r.bm("parent","hidden"))},hk=Symbol("ElLoading"),RB=(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&&te(y)},u=v=>l(s(v)||e.getAttribute(`element-loading-${hp(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[hk]={options:p,instance:rR(p)}},O5e=(e,t)=>{for(const n of Object.keys(t))eo(t[n])&&(t[n].value=e[n])},NB={mounted(e,t){t.value&&RB(e,t)},updated(e,t){const n=e[hk];t.oldValue!==t.value&&(t.value&&!t.oldValue?RB(e,t):t.value&&t.oldValue?Pn(t.value)&&O5e(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[hk])==null||t.instance.close(),e[hk]=null}},w5e={install(e){e.directive("loading",NB),e.config.globalProperties.$loading=rR},directive:NB,service:rR},SH=["success","info","warning","error"],Ka=wo({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:nr?document.body:void 0}),S5e=gt({customClass:{type:String,default:Ka.customClass},center:{type:Boolean,default:Ka.center},dangerouslyUseHTMLString:{type:Boolean,default:Ka.dangerouslyUseHTMLString},duration:{type:Number,default:Ka.duration},icon:{type:zr,default:Ka.icon},id:{type:String,default:Ka.id},message:{type:je([String,Object,Function]),default:Ka.message},onClose:{type:je(Function),default:Ka.onClose},showClose:{type:Boolean,default:Ka.showClose},type:{type:String,values:SH,default:Ka.type},plain:{type:Boolean,default:Ka.plain},offset:{type:Number,default:Ka.offset},zIndex:{type:Number,default:Ka.zIndex},grouping:{type:Boolean,default:Ka.grouping},repeatNum:{type:Number,default:Ka.repeatNum}}),x5e={destroy:()=>!0},lc=GF([]),k5e=e=>{const t=lc.findIndex(o=>o.id===e),n=lc[t];let r;return t>0&&(r=lc[t-1]),{current:n,prev:r}},C5e=e=>{const{prev:t}=k5e(e);return t?t.vm.exposed.bottom.value:0},E5e=(e,t)=>lc.findIndex(r=>r.id===e)>0?16:t,T5e=xe({name:"ElMessage"}),P5e=xe({...T5e,props:S5e,emits:x5e,setup(e,{expose:t}){const n=e,{Close:r}=QI,{ns:o,zIndex:i}=NC("message"),{currentZIndex:a,nextZIndex:s}=i,l=te(),u=te(!1),d=te(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&&tp[B]}}),w=W(()=>n.icon||tp[n.type]||""),b=W(()=>C5e(n.id)),k=W(()=>E5e(n.id,n.offset)+b.value),C=W(()=>d.value+k.value),P=W(()=>({top:`${k.value}px`,zIndex:a.value}));function $(){n.duration!==0&&({stop:p}=rv(()=>{A()},n.duration))}function T(){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,()=>{T(),$()}),Mr(document,"keydown",R),Oo(l,()=>{d.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:C,close:A}),(B,N)=>(Z(),Qe($i,{name:m(o).b("fade"),onBeforeLeave:B.onClose,onAfterLeave:I=>B.$emit("destroy"),persisted:""},{default:le(()=>[yn(ve("div",{id:B.id,ref_key:"messageRef",ref:l,class:q([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(P)),role:"alert",onMouseenter:T,onMouseleave:$},[B.repeatNum>1?(Z(),Qe(m(TY),{key:0,value:B.repeatNum,type:m(v),class:q(m(o).e("badge"))},null,8,["value","type","class"])):Fe("v-if",!0),m(w)?(Z(),Qe(m(jt),{key:1,class:q([m(o).e("icon"),m(y)])},{default:le(()=>[(Z(),Qe(Dn(m(w))))]),_:1},8,["class"])):Fe("v-if",!0),Ge(B.$slots,"default",{},()=>[B.dangerouslyUseHTMLString?(Z(),ue(Tt,{key:1},[Fe(" Caution here, message could've been compromised, never use user's input as message "),ve("p",{class:q(m(o).e("content")),innerHTML:B.message},null,10,["innerHTML"])],2112)):(Z(),ue("p",{key:0,class:q(m(o).e("content"))},ct(B.message),3))]),B.showClose?(Z(),Qe(m(jt),{key:2,class:q(m(o).e("closeBtn")),onClick:tn(A,["stop"])},{default:le(()=>[re(m(r))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],46,["id"]),[[pr,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var $5e=vt(P5e,[["__file","message.vue"]]);let A5e=1;const xH=e=>{const t=!e||Gt(e)||_o(e)||nn(e)?{message:e}:e,n={...Ka,...t};if(!n.appendTo)n.appendTo=document.body;else if(Gt(n.appendTo)){let r=document.querySelector(n.appendTo);Nl(r)||(r=document.body),n.appendTo=r}return n},M5e=e=>{const t=lc.indexOf(e);if(t===-1)return;lc.splice(t,1);const{handler:n}=e;n.close()},R5e=({appendTo:e,...t},n)=>{const r=`message_${A5e++}`,o=t.onClose,i=document.createElement("div"),a={...t,id:r,onClose:()=>{o==null||o(),M5e(d)},onDestroy:()=>{Uh(null,i)}},s=re($5e,a,nn(a.message)||_o(a.message)?{default:nn(a.message)?a.message:()=>a.message}:null);s.appContext=n||Uy._context,Uh(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},Uy=(e={},t)=>{if(!nr)return{close:()=>{}};if(en(fM.max)&&lc.length>=fM.max)return{close:()=>{}};const n=xH(e);if(n.grouping&&lc.length){const o=lc.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=R5e(n,t);return lc.push(r),r.handler};SH.forEach(e=>{Uy[e]=(t={},n)=>{const r=xH(t);return Uy({...r,type:e},n)}});function N5e(e){for(const t of lc)(!e||e===t.props.type)&&t.handler.close()}Uy.closeAll=N5e;Uy._context=null;const Bi=PW(Uy,"$message"),I5e=xe({name:"ElMessageBox",directives:{TrapFocus:uEe},components:{ElButton:ro,ElFocusTrap:P1,ElInput:ti,ElOverlay:PD,ElIcon:jt,...QI},inheritAttrs:!1,props:{buttonSize:{type:String,validator:$W},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}=NC("message-box",W(()=>e.buttonSize)),{t:a}=n,{nextZIndex:s}=r,l=te(!1),u=rr({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:ld(ff),cancelButtonLoadingIcon:ld(ff),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),d=W(()=>{const H=u.type;return{[o.bm("icon",H)]:H&&tp[H]}}),p=La(),v=La(),y=W(()=>u.icon||tp[u.type]||""),w=W(()=>!!u.message),b=te(),k=te(),C=te(),P=te(),$=te(),T=W(()=>u.confirmButtonClass);at(()=>u.inputValue,async H=>{await zt(),e.boxType==="prompt"&&H!==null&&F()},{immediate:!0}),at(()=>l.value,H=>{var oe,J;H&&(e.boxType!=="prompt"&&(u.autofocus?C.value=(J=(oe=$.value)==null?void 0:oe.$el)!=null?J:b.value:C.value=b.value),u.zIndex=s()),e.boxType==="prompt"&&(H?zt().then(()=>{var z;P.value&&P.value.$el&&(u.autofocus?C.value=(z=G())!=null?z:b.value:C.value=b.value)}):(u.editorErrorMessage="",u.validateError=!1))});const A=W(()=>e.draggable),R=W(()=>e.overflow);AW(b,k,A,R),vn(async()=>{await zt(),e.closeOnHashChange&&window.addEventListener("hashchange",B)}),Hr(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",B)});function B(){!l.value||(l.value=!1,zt(()=>{u.action&&t("action",u.action)}))}const N=()=>{e.closeOnClickModal&&j(u.distinguishCancelAndClose?"close":"cancel")},I=nD(N),D=H=>{if(u.inputType!=="textarea")return H.preventDefault(),j("confirm")},j=H=>{var oe;e.boxType==="prompt"&&H==="confirm"&&!F()||(u.action=H,u.beforeClose?(oe=u.beforeClose)==null||oe.call(u,H,u,B):B())},F=()=>{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 oe=u.inputValidator;if(typeof oe=="function"){const J=oe(u.inputValue);if(J===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof J=="string")return u.editorErrorMessage=J,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},G=()=>{const H=P.value.$refs;return H.input||H.textarea},ae=()=>{j("close")},K=()=>{e.closeOnPressEscape&&ae()};return e.lockScroll&&UI(l),{...ea(u),ns:o,overlayEvent:I,visible:l,hasMessage:w,typeClass:d,contentId:p,inputId:v,btnSize:i,iconComponent:y,confirmButtonClasses:T,rootRef:b,focusStartRef:C,headerRef:k,inputRef:P,confirmRef:$,doClose:B,handleClose:ae,onCloseRequested:K,handleWrapperClick:N,handleInputEnter:D,handleAction:j,t:a}}});function D5e(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(),Qe($i,{name:"fade-in-linear",onAfterLeave:v=>e.$emit("vanish"),persisted:""},{default:le(()=>[yn(re(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:le(()=>[ve("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:q(`${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:le(()=>[ve("div",{ref:"rootRef",class:q([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(),ue("div",{key:0,ref:"headerRef",class:q([e.ns.e("header"),{"show-close":e.showClose}])},[ve("div",{class:q(e.ns.e("title"))},[e.iconComponent&&e.center?(Z(),Qe(a,{key:0,class:q([e.ns.e("status"),e.typeClass])},{default:le(()=>[(Z(),Qe(Dn(e.iconComponent)))]),_:1},8,["class"])):Fe("v-if",!0),ve("span",null,ct(e.title),1)],2),e.showClose?(Z(),ue("button",{key:0,type:"button",class:q(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:v=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:Fr(tn(v=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[re(a,{class:q(e.ns.e("close"))},{default:le(()=>[re(s)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):Fe("v-if",!0)],2)):Fe("v-if",!0),ve("div",{id:e.contentId,class:q(e.ns.e("content"))},[ve("div",{class:q(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(Z(),Qe(a,{key:0,class:q([e.ns.e("status"),e.typeClass])},{default:le(()=>[(Z(),Qe(Dn(e.iconComponent)))]),_:1},8,["class"])):Fe("v-if",!0),e.hasMessage?(Z(),ue("div",{key:1,class:q(e.ns.e("message"))},[Ge(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Z(),Qe(Dn(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(Z(),Qe(Dn(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:le(()=>[St(ct(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):Fe("v-if",!0)],2),yn(ve("div",{class:q(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:q({invalid:e.validateError}),onKeydown:Fr(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),ve("div",{class:q(e.ns.e("errormsg")),style:Vt({visibility:e.editorErrorMessage?"visible":"hidden"})},ct(e.editorErrorMessage),7)],2),[[pr,e.showInput]])],10,["id"]),ve("div",{class:q(e.ns.e("btns"))},[e.showCancelButton?(Z(),Qe(u,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:q([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:v=>e.handleAction("cancel"),onKeydown:Fr(tn(v=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:le(()=>[St(ct(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):Fe("v-if",!0),yn(re(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:q([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:v=>e.handleAction("confirm"),onKeydown:Fr(tn(v=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:le(()=>[St(ct(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[pr,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"]),[[pr,e.visible]])]),_:3},8,["onAfterLeave"])}var j5e=vt(I5e,[["render",D5e],["__file","index.vue"]]);const FO=new Map,L5e=e=>{let t=document.body;return e.appendTo&&(Gt(e.appendTo)&&(t=document.querySelector(e.appendTo)),Nl(e.appendTo)&&(t=e.appendTo),Nl(t)||(t=document.body)),t},B5e=(e,t,n=null)=>{const r=re(j5e,e,nn(e.message)||_o(e.message)?{default:nn(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Uh(r,t),L5e(e).appendChild(t.firstElementChild),r.component},V5e=()=>document.createElement("div"),F5e=(e,t)=>{const n=V5e();e.onVanish=()=>{Uh(null,n),FO.delete(o)},e.onAction=i=>{const a=FO.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=B5e(e,n,t),o=r.proxy;for(const i in e)ar(e,i)&&!ar(o.$props,i)&&(o[i]=e[i]);return o.visible=!0,o};function _0(e,t=null){if(!nr)return Promise.reject();let n;return Gt(e)||_o(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const i=F5e(e,t!=null?t:_0._context);FO.set(i,{options:e,callback:n,resolve:r,reject:o})})}const z5e=["alert","confirm","prompt"],Q5e={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};z5e.forEach(e=>{_0[e]=W5e(e)});function W5e(e){return(t,n,r,o)=>{let i="";return Pn(n)?(r=n,i=""):Vo(n)?i="":i=n,_0(Object.assign({title:i,message:t,type:"",...Q5e[e]},r,{boxType:e}),o)}}_0.close=()=>{FO.forEach((e,t)=>{t.doClose()}),FO.clear()};_0._context=null;const Sh=_0;Sh.install=e=>{Sh._context=e._context,e.config.globalProperties.$msgbox=Sh,e.config.globalProperties.$messageBox=Sh,e.config.globalProperties.$alert=Sh.alert,e.config.globalProperties.$confirm=Sh.confirm,e.config.globalProperties.$prompt=Sh.prompt};const Y5e=Sh,kH=["success","info","warning","error"],Z5e=gt({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:zr},id:{type:String,default:""},message:{type:je([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:je(Function),default:()=>{}},onClose:{type:je(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:[...kH,""],default:""},zIndex:Number}),U5e={destroy:()=>!0},H5e=xe({name:"ElNotification"}),X5e=xe({...H5e,props:Z5e,emits:U5e,setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=NC("notification"),{nextZIndex:i,currentZIndex:a}=o,{Close:s}=zI,l=te(!1);let u;const d=W(()=>{const $=n.type;return $&&tp[n.type]?r.m($):""}),p=W(()=>n.type&&tp[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}=rv(()=>{l.value&&C()},n.duration))}function k(){u==null||u()}function C(){l.value=!1}function P({code:$}){$===Qt.delete||$===Qt.backspace?k():$===Qt.esc?l.value&&C():b()}return vn(()=>{b(),i(),l.value=!0}),Mr(document,"keydown",P),t({visible:l,close:C}),($,T)=>(Z(),Qe($i,{name:m(r).b("fade"),onBeforeLeave:$.onClose,onAfterLeave:A=>$.$emit("destroy"),persisted:""},{default:le(()=>[yn(ve("div",{id:$.id,class:q([m(r).b(),$.customClass,m(v)]),style:Vt(m(w)),role:"alert",onMouseenter:k,onMouseleave:b,onClick:$.onClick},[m(p)?(Z(),Qe(m(jt),{key:0,class:q([m(r).e("icon"),m(d)])},{default:le(()=>[(Z(),Qe(Dn(m(p))))]),_:1},8,["class"])):Fe("v-if",!0),ve("div",{class:q(m(r).e("group"))},[ve("h2",{class:q(m(r).e("title")),textContent:ct($.title)},null,10,["textContent"]),yn(ve("div",{class:q(m(r).e("content")),style:Vt($.title?void 0:{margin:0})},[Ge($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(Z(),ue(Tt,{key:1},[Fe(" Caution here, message could've been compromised, never use user's input as message "),ve("p",{innerHTML:$.message},null,8,["innerHTML"])],2112)):(Z(),ue("p",{key:0},ct($.message),1))])],6),[[pr,$.message]]),$.showClose?(Z(),Qe(m(jt),{key:0,class:q(m(r).e("closeBtn")),onClick:tn(C,["stop"])},{default:le(()=>[re(m(s))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],2)],46,["id","onClick"]),[[pr,l.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var G5e=vt(X5e,[["__file","notification.vue"]]);const r2={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},oR=16;let K5e=1;const Hy=function(e={},t=null){if(!nr)return{close:()=>{}};(typeof e=="string"||_o(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;r2[n].forEach(({vm:d})=>{var p;r+=(((p=d.el)==null?void 0:p.offsetHeight)||0)+oR}),r+=oR;const o=`notification_${K5e++}`,i=e.onClose,a={...e,offset:r,id:o,onClose:()=>{q5e(o,n,i)}};let s=document.body;Nl(e.appendTo)?s=e.appendTo:Gt(e.appendTo)&&(s=document.querySelector(e.appendTo)),Nl(s)||(s=document.body);const l=document.createElement("div"),u=re(G5e,a,_o(a.message)?{default:()=>a.message}:null);return u.appContext=t!=null?t:Hy._context,u.props.onDestroy=()=>{Uh(null,l)},Uh(u,l),r2[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};kH.forEach(e=>{Hy[e]=(t={})=>((typeof t=="string"||_o(t))&&(t={message:t}),Hy({...t,type:e}))});function q5e(e,t,n){const r=r2[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-oR;p.props.offset=v}}function J5e(){for(const e of Object.values(r2))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}Hy.closeAll=J5e;Hy._context=null;const e6e=PW(Hy,"$notify");var t6e=[m5e,w5e,Bi,Y5e,e6e,sU],n6e=Txe([...c5e,...t6e]),r6e={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}"}}},Kt={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 T}),o.d(r,"c",function(){return ze}),o.d(r,"d",function(){return Ae}),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 Ie}),o.d(r,"i",function(){return a}),o.d(r,"j",function(){return Le}),o.d(r,"k",function(){return F});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,ye){for(var Ne in ye)_e[Ne]=ye[Ne];return _e}function k(_e){var ye=_e.parentNode;ye&&ye.removeChild(_e)}function C(_e,ye,Ne){var Se,ce,be,pe={};for(be in ye)be=="key"?Se=ye[be]:be=="ref"?ce=ye[be]:pe[be]=ye[be];if(arguments.length>2&&(pe.children=arguments.length>3?i.call(arguments,2):Ne),typeof _e=="function"&&_e.defaultProps!=null)for(be in _e.defaultProps)pe[be]===void 0&&(pe[be]=_e.defaultProps[be]);return P(_e,pe,Se,ce,null)}function P(_e,ye,Ne,Se,ce){var be={type:_e,props:ye,key:Ne,ref:Se,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:ce==null?++s:ce};return ce==null&&a.vnode!=null&&a.vnode(be),be}function $(){return{current:null}}function T(_e){return _e.children}function A(_e,ye){this.props=_e,this.context=ye}function R(_e,ye){if(ye==null)return _e.__?R(_e.__,_e.__.__k.indexOf(_e)+1):null;for(var Ne;ye<_e.__k.length;ye++)if((Ne=_e.__k[ye])!=null&&Ne.__e!=null)return Ne.__e;return typeof _e.type=="function"?R(_e):null}function B(_e){var ye,Ne;if((_e=_e.__)!=null&&_e.__c!=null){for(_e.__e=_e.__c.base=null,ye=0;ye<_e.__k.length;ye++)if((Ne=_e.__k[ye])!=null&&Ne.__e!=null){_e.__e=_e.__c.base=Ne.__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(ye,Ne){return ye.__v.__b-Ne.__v.__b}),l=[],_e.some(function(ye){var Ne,Se,ce,be,pe,Me;ye.__d&&(pe=(be=(Ne=ye).__v).__e,(Me=Ne.__P)&&(Se=[],(ce=b({},be)).__v=be.__v+1,J(Me,be,ce,Ne.__n,Me.ownerSVGElement!==void 0,be.__h!=null?[pe]:null,Se,pe==null?R(be):pe,be.__h),z(Se,be),be.__e!=pe&&B(be)))})}function D(_e,ye,Ne,Se,ce,be,pe,Me,Ze,Be){var $e,Je,Oe,Ye,ut,qe,ot,ft=Se&&Se.__k||y,kt=ft.length;for(Ne.__k=[],$e=0;$e<ye.length;$e++)if((Ye=Ne.__k[$e]=(Ye=ye[$e])==null||typeof Ye=="boolean"?null:typeof Ye=="string"||typeof Ye=="number"||typeof Ye=="bigint"?P(null,Ye,null,null,Ye):Array.isArray(Ye)?P(T,{children:Ye},null,null,null):Ye.__b>0?P(Ye.type,Ye.props,Ye.key,null,Ye.__v):Ye)!=null){if(Ye.__=Ne,Ye.__b=Ne.__b+1,(Oe=ft[$e])===null||Oe&&Ye.key==Oe.key&&Ye.type===Oe.type)ft[$e]=void 0;else for(Je=0;Je<kt;Je++){if((Oe=ft[Je])&&Ye.key==Oe.key&&Ye.type===Oe.type){ft[Je]=void 0;break}Oe=null}J(_e,Ye,Oe=Oe||v,ce,be,pe,Me,Ze,Be),ut=Ye.__e,(Je=Ye.ref)&&Oe.ref!=Je&&(ot||(ot=[]),Oe.ref&&ot.push(Oe.ref,null,Ye),ot.push(Je,Ye.__c||ut,Ye)),ut!=null?(qe==null&&(qe=ut),typeof Ye.type=="function"&&Ye.__k===Oe.__k?Ye.__d=Ze=j(Ye,Ze,_e):Ze=G(_e,Ye,Oe,ft,ut,Ze),typeof Ne.type=="function"&&(Ne.__d=Ze)):Ze&&Oe.__e==Ze&&Ze.parentNode!=_e&&(Ze=R(Oe))}for(Ne.__e=qe,$e=kt;$e--;)ft[$e]!=null&&(typeof Ne.type=="function"&&ft[$e].__e!=null&&ft[$e].__e==Ne.__d&&(Ne.__d=R(Se,$e+1)),he(ft[$e],ft[$e]));if(ot)for($e=0;$e<ot.length;$e++)ee(ot[$e],ot[++$e],ot[++$e])}function j(_e,ye,Ne){for(var Se,ce=_e.__k,be=0;ce&&be<ce.length;be++)(Se=ce[be])&&(Se.__=_e,ye=typeof Se.type=="function"?j(Se,ye,Ne):G(Ne,Se,Se,ce,Se.__e,ye));return ye}function F(_e,ye){return ye=ye||[],_e==null||typeof _e=="boolean"||(Array.isArray(_e)?_e.some(function(Ne){F(Ne,ye)}):ye.push(_e)),ye}function G(_e,ye,Ne,Se,ce,be){var pe,Me,Ze;if(ye.__d!==void 0)pe=ye.__d,ye.__d=void 0;else if(Ne==null||ce!=be||ce.parentNode==null)e:if(be==null||be.parentNode!==_e)_e.appendChild(ce),pe=null;else{for(Me=be,Ze=0;(Me=Me.nextSibling)&&Ze<Se.length;Ze+=2)if(Me==ce)break e;_e.insertBefore(ce,be),pe=be}return pe!==void 0?pe:ce.nextSibling}function ae(_e,ye,Ne){ye[0]==="-"?_e.setProperty(ye,Ne):_e[ye]=Ne==null?"":typeof Ne!="number"||w.test(ye)?Ne:Ne+"px"}function K(_e,ye,Ne,Se,ce){var be;e:if(ye==="style")if(typeof Ne=="string")_e.style.cssText=Ne;else{if(typeof Se=="string"&&(_e.style.cssText=Se=""),Se)for(ye in Se)Ne&&ye in Ne||ae(_e.style,ye,"");if(Ne)for(ye in Ne)Se&&Ne[ye]===Se[ye]||ae(_e.style,ye,Ne[ye])}else if(ye[0]==="o"&&ye[1]==="n")be=ye!==(ye=ye.replace(/Capture$/,"")),ye=ye.toLowerCase()in _e?ye.toLowerCase().slice(2):ye.slice(2),_e.l||(_e.l={}),_e.l[ye+be]=Ne,Ne?Se||_e.addEventListener(ye,be?oe:H,be):_e.removeEventListener(ye,be?oe:H,be);else if(ye!=="dangerouslySetInnerHTML"){if(ce)ye=ye.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(ye!=="href"&&ye!=="list"&&ye!=="form"&&ye!=="tabIndex"&&ye!=="download"&&ye in _e)try{_e[ye]=Ne==null?"":Ne;break e}catch{}typeof Ne=="function"||(Ne!=null&&(Ne!==!1||ye[0]==="a"&&ye[1]==="r")?_e.setAttribute(ye,Ne):_e.removeAttribute(ye))}}function H(_e){this.l[_e.type+!1](a.event?a.event(_e):_e)}function oe(_e){this.l[_e.type+!0](a.event?a.event(_e):_e)}function J(_e,ye,Ne,Se,ce,be,pe,Me,Ze){var Be,$e,Je,Oe,Ye,ut,qe,ot,ft,kt,Wt,Ct=ye.type;if(ye.constructor!==void 0)return null;Ne.__h!=null&&(Ze=Ne.__h,Me=ye.__e=Ne.__e,ye.__h=null,be=[Me]),(Be=a.__b)&&Be(ye);try{e:if(typeof Ct=="function"){if(ot=ye.props,ft=(Be=Ct.contextType)&&Se[Be.__c],kt=Be?ft?ft.props.value:Be.__:Se,Ne.__c?qe=($e=ye.__c=Ne.__c).__=$e.__E:("prototype"in Ct&&Ct.prototype.render?ye.__c=$e=new Ct(ot,kt):(ye.__c=$e=new A(ot,kt),$e.constructor=Ct,$e.render=fe),ft&&ft.sub($e),$e.props=ot,$e.state||($e.state={}),$e.context=kt,$e.__n=Se,Je=$e.__d=!0,$e.__h=[]),$e.__s==null&&($e.__s=$e.state),Ct.getDerivedStateFromProps!=null&&($e.__s==$e.state&&($e.__s=b({},$e.__s)),b($e.__s,Ct.getDerivedStateFromProps(ot,$e.__s))),Oe=$e.props,Ye=$e.state,Je)Ct.getDerivedStateFromProps==null&&$e.componentWillMount!=null&&$e.componentWillMount(),$e.componentDidMount!=null&&$e.__h.push($e.componentDidMount);else{if(Ct.getDerivedStateFromProps==null&&ot!==Oe&&$e.componentWillReceiveProps!=null&&$e.componentWillReceiveProps(ot,kt),!$e.__e&&$e.shouldComponentUpdate!=null&&$e.shouldComponentUpdate(ot,$e.__s,kt)===!1||ye.__v===Ne.__v){$e.props=ot,$e.state=$e.__s,ye.__v!==Ne.__v&&($e.__d=!1),$e.__v=ye,ye.__e=Ne.__e,ye.__k=Ne.__k,ye.__k.forEach(function(ln){ln&&(ln.__=ye)}),$e.__h.length&&pe.push($e);break e}$e.componentWillUpdate!=null&&$e.componentWillUpdate(ot,$e.__s,kt),$e.componentDidUpdate!=null&&$e.__h.push(function(){$e.componentDidUpdate(Oe,Ye,ut)})}$e.context=kt,$e.props=ot,$e.state=$e.__s,(Be=a.__r)&&Be(ye),$e.__d=!1,$e.__v=ye,$e.__P=_e,Be=$e.render($e.props,$e.state,$e.context),$e.state=$e.__s,$e.getChildContext!=null&&(Se=b(b({},Se),$e.getChildContext())),Je||$e.getSnapshotBeforeUpdate==null||(ut=$e.getSnapshotBeforeUpdate(Oe,Ye)),Wt=Be!=null&&Be.type===T&&Be.key==null?Be.props.children:Be,D(_e,Array.isArray(Wt)?Wt:[Wt],ye,Ne,Se,ce,be,pe,Me,Ze),$e.base=ye.__e,ye.__h=null,$e.__h.length&&pe.push($e),qe&&($e.__E=$e.__=null),$e.__e=!1}else be==null&&ye.__v===Ne.__v?(ye.__k=Ne.__k,ye.__e=Ne.__e):ye.__e=X(Ne.__e,ye,Ne,Se,ce,be,pe,Ze);(Be=a.diffed)&&Be(ye)}catch(ln){ye.__v=null,(Ze||be!=null)&&(ye.__e=Me,ye.__h=!!Ze,be[be.indexOf(Me)]=null),a.__e(ln,ye,Ne)}}function z(_e,ye){a.__c&&a.__c(ye,_e),_e.some(function(Ne){try{_e=Ne.__h,Ne.__h=[],_e.some(function(Se){Se.call(Ne)})}catch(Se){a.__e(Se,Ne.__v)}})}function X(_e,ye,Ne,Se,ce,be,pe,Me){var Ze,Be,$e,Je=Ne.props,Oe=ye.props,Ye=ye.type,ut=0;if(Ye==="svg"&&(ce=!0),be!=null){for(;ut<be.length;ut++)if((Ze=be[ut])&&"setAttribute"in Ze==!!Ye&&(Ye?Ze.localName===Ye:Ze.nodeType===3)){_e=Ze,be[ut]=null;break}}if(_e==null){if(Ye===null)return document.createTextNode(Oe);_e=ce?document.createElementNS("http://www.w3.org/2000/svg",Ye):document.createElement(Ye,Oe.is&&Oe),be=null,Me=!1}if(Ye===null)Je===Oe||Me&&_e.data===Oe||(_e.data=Oe);else{if(be=be&&i.call(_e.childNodes),Be=(Je=Ne.props||v).dangerouslySetInnerHTML,$e=Oe.dangerouslySetInnerHTML,!Me){if(be!=null)for(Je={},ut=0;ut<_e.attributes.length;ut++)Je[_e.attributes[ut].name]=_e.attributes[ut].value;($e||Be)&&($e&&(Be&&$e.__html==Be.__html||$e.__html===_e.innerHTML)||(_e.innerHTML=$e&&$e.__html||""))}if(function(qe,ot,ft,kt,Wt){var Ct;for(Ct in ft)Ct==="children"||Ct==="key"||Ct in ot||K(qe,Ct,null,ft[Ct],kt);for(Ct in ot)Wt&&typeof ot[Ct]!="function"||Ct==="children"||Ct==="key"||Ct==="value"||Ct==="checked"||ft[Ct]===ot[Ct]||K(qe,Ct,ot[Ct],ft[Ct],kt)}(_e,Oe,Je,ce,Me),$e)ye.__k=[];else if(ut=ye.props.children,D(_e,Array.isArray(ut)?ut:[ut],ye,Ne,Se,ce&&Ye!=="foreignObject",be,pe,be?be[0]:Ne.__k&&R(Ne,0),Me),be!=null)for(ut=be.length;ut--;)be[ut]!=null&&k(be[ut]);Me||("value"in Oe&&(ut=Oe.value)!==void 0&&(ut!==Je.value||ut!==_e.value||Ye==="progress"&&!ut)&&K(_e,"value",ut,Je.value,!1),"checked"in Oe&&(ut=Oe.checked)!==void 0&&ut!==_e.checked&&K(_e,"checked",ut,Je.checked,!1))}return _e}function ee(_e,ye,Ne){try{typeof _e=="function"?_e(ye):_e.current=ye}catch(Se){a.__e(Se,Ne)}}function he(_e,ye,Ne){var Se,ce;if(a.unmount&&a.unmount(_e),(Se=_e.ref)&&(Se.current&&Se.current!==_e.__e||ee(Se,null,ye)),(Se=_e.__c)!=null){if(Se.componentWillUnmount)try{Se.componentWillUnmount()}catch(be){a.__e(be,ye)}Se.base=Se.__P=null}if(Se=_e.__k)for(ce=0;ce<Se.length;ce++)Se[ce]&&he(Se[ce],ye,typeof _e.type!="function");Ne||_e.__e==null||k(_e.__e),_e.__e=_e.__d=void 0}function fe(_e,ye,Ne){return this.constructor(_e,Ne)}function Le(_e,ye,Ne){var Se,ce,be;a.__&&a.__(_e,ye),ce=(Se=typeof Ne=="function")?null:Ne&&Ne.__k||ye.__k,be=[],J(ye,_e=(!Se&&Ne||ye).__k=C(T,null,[_e]),ce||v,v,ye.ownerSVGElement!==void 0,!Se&&Ne?[Ne]:ce?null:ye.firstChild?i.call(ye.childNodes):null,be,!Se&&Ne?Ne:ce?ce.__e:ye.firstChild,Se),z(be,_e)}function Ie(_e,ye){Le(_e,ye,Ie)}function ze(_e,ye,Ne){var Se,ce,be,pe=b({},_e.props);for(be in ye)be=="key"?Se=ye[be]:be=="ref"?ce=ye[be]:pe[be]=ye[be];return arguments.length>2&&(pe.children=arguments.length>3?i.call(arguments,2):Ne),P(_e.type,pe,Se||_e.key,ce||_e.ref,null)}function Ae(_e,ye){var Ne={__c:ye="__cC"+p++,__:_e,Consumer:function(Se,ce){return Se.children(ce)},Provider:function(Se){var ce,be;return this.getChildContext||(ce=[],(be={})[ye]=this,this.getChildContext=function(){return be},this.shouldComponentUpdate=function(pe){this.props.value!==pe.value&&ce.some(N)},this.sub=function(pe){ce.push(pe);var Me=pe.componentWillUnmount;pe.componentWillUnmount=function(){ce.splice(ce.indexOf(pe),1),Me&&Me.call(pe)}}),Se.children}};return Ne.Provider.__=Ne.Consumer.contextType=Ne}i=y.slice,a={__e:function(_e,ye){for(var Ne,Se,ce;ye=ye.__;)if((Ne=ye.__c)&&!Ne.__)try{if((Se=Ne.constructor)&&Se.getDerivedStateFromError!=null&&(Ne.setState(Se.getDerivedStateFromError(_e)),ce=Ne.__d),Ne.componentDidCatch!=null&&(Ne.componentDidCatch(_e),ce=Ne.__d),ce)return Ne.__E=Ne}catch(be){_e=be}throw _e}},s=0,A.prototype.setState=function(_e,ye){var Ne;Ne=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=b({},this.state),typeof _e=="function"&&(_e=_e(b({},Ne),this.props)),_e&&b(Ne,_e),_e!=null&&this.__v&&(ye&&this.__h.push(ye),N(this))},A.prototype.forceUpdate=function(_e){this.__v&&(this.__e=!0,_e&&this.__h.push(_e),N(this))},A.prototype.render=T,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 Vp}),o.d(r,"c",function(){return Go}),o.d(r,"d",function(){return Ht}),o.d(r,"e",function(){return Xe}),o.d(r,"f",function(){return ke}),o.d(r,"g",function(){return Xt}),o.d(r,"h",function(){return pl}),o.d(r,"i",function(){return Wt}),o.d(r,"j",function(){return Nt}),o.d(r,"k",function(){return Wl}),o.d(r,"l",function(){return $p}),o.d(r,"m",function(){return qe}),o.d(r,"n",function(){return xc}),o.d(r,"o",function(){return j}),o.d(r,"p",function(){return Rv}),o.d(r,"q",function(){return Yl}),o.d(r,"r",function(){return Rd}),o.d(r,"s",function(){return ds}),o.d(r,"t",function(){return zo}),o.d(r,"u",function(){return Md}),o.d(r,"v",function(){return Mv}),o.d(r,"w",function(){return Ip}),o.d(r,"x",function(){return kc}),o.d(r,"y",function(){return fs}),o.d(r,"z",function(){return ai}),o.d(r,"A",function(){return xa}),o.d(r,"B",function(){return ul}),o.d(r,"C",function(){return Be}),o.d(r,"D",function(){return Nv}),o.d(r,"E",function(){return Xr}),o.d(r,"F",function(){return Gr}),o.d(r,"G",function(){return Tp}),o.d(r,"H",function(){return Ni}),o.d(r,"I",function(){return Dp}),o.d(r,"J",function(){return hi}),o.d(r,"K",function(){return He}),o.d(r,"L",function(){return uo}),o.d(r,"M",function(){return Id});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,se){Object.defineProperty(Q,Y,{enumerable:!1,writable:!0,configurable:!0,value:se})}function C(Q,Y){var se="isMobX"+Q;return Y.prototype[se]=!0,function(Ee){return w(Ee)&&Ee[se]===!0}}function P(Q){return Q instanceof Map}function $(Q){return Q instanceof Set}function T(Q){var Y=new Set;for(var se in Q)Y.add(se);return Object.getOwnPropertySymbols(Q).forEach(function(Ee){Object.getOwnPropertyDescriptor(Q,Ee).enumerable&&Y.add(Ee)}),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=Je.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 Yi(this)},Q.prototype.reportChanged=function(){Yn(),function(Y){Y.lowestObserverState!==Je.STALE&&(Y.lowestObserverState=Je.STALE,Y.observers.forEach(function(se){se.dependenciesState===Je.UP_TO_DATE&&(se.isTracing!==Oe.NONE&&ii(se,Y),se.onBecomeStale()),se.dependenciesState=Je.STALE}))}(this),dr()},Q.prototype.toString=function(){return this.name},Q}(),D=C("Atom",I);function j(Q,Y,se){Y===void 0&&(Y=y),se===void 0&&(se=y);var Ee,We=new I(Q);return Y!==y&&$v("onBecomeObserved",We,Y,Ee),se!==y&&Xr(We,se),We}var F={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)}},G=function(Q,Y){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,Ee){se.__proto__=Ee}||function(se,Ee){for(var We in Ee)Ee.hasOwnProperty(We)&&(se[We]=Ee[We])},G(Q,Y)};/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */var ae=function(){return ae=Object.assign||function(Q){for(var Y,se=1,Ee=arguments.length;se<Ee;se++)for(var We in Y=arguments[se])Object.prototype.hasOwnProperty.call(Y,We)&&(Q[We]=Y[We]);return Q},ae.apply(this,arguments)};function K(Q){var Y=typeof Symbol=="function"&&Q[Symbol.iterator],se=0;return Y?Y.call(Q):{next:function(){return Q&&se>=Q.length&&(Q=void 0),{value:Q&&Q[se++],done:!Q}}}}function H(Q,Y){var se=typeof Symbol=="function"&&Q[Symbol.iterator];if(!se)return Q;var Ee,We,st=se.call(Q),Ot=[];try{for(;(Y===void 0||Y-- >0)&&!(Ee=st.next()).done;)Ot.push(Ee.value)}catch(Yt){We={error:Yt}}finally{try{Ee&&!Ee.done&&(se=st.return)&&se.call(st)}finally{if(We)throw We.error}}return Ot}function oe(){for(var Q=[],Y=0;Y<arguments.length;Y++)Q=Q.concat(H(arguments[Y]));return Q}var J=Symbol("mobx did run lazy initializers"),z=Symbol("mobx pending decorators"),X={},ee={};function he(Q,Y){var se=Y?X:ee;return se[Q]||(se[Q]={configurable:!0,enumerable:Y,get:function(){return fe(this),this[Q]},set:function(Ee){fe(this),this[Q]=Ee}})}function fe(Q){var Y,se;if(Q[J]!==!0){var Ee=Q[z];if(Ee){k(Q,J,!0);var We=oe(Object.getOwnPropertySymbols(Ee),Object.keys(Ee));try{for(var st=K(We),Ot=st.next();!Ot.done;Ot=st.next()){var Yt=Ee[Ot.value];Yt.propertyCreator(Q,Yt.prop,Yt.descriptor,Yt.decoratorTarget,Yt.decoratorArguments)}}catch(mn){Y={error:mn}}finally{try{Ot&&!Ot.done&&(se=st.return)&&se.call(st)}finally{if(Y)throw Y.error}}}}}function Le(Q,Y){return function(){var se,Ee=function(We,st,Ot,Yt){if(Yt===!0)return Y(We,st,Ot,We,se),null;if(!Object.prototype.hasOwnProperty.call(We,z)){var mn=We[z];k(We,z,ae({},mn))}return We[z][st]={prop:st,propertyCreator:Y,descriptor:Ot,decoratorTarget:We,decoratorArguments:se},he(st,Q)};return Ie(arguments)?(se=s,Ee.apply(null,arguments)):(se=Array.prototype.slice.call(arguments),Ee)}}function Ie(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,se){return kc(Q)?Q:Array.isArray(Q)?Be.array(Q,{name:se}):b(Q)?Be.object(Q,void 0,{name:se}):P(Q)?Be.map(Q,{name:se}):$(Q)?Be.set(Q,{name:se}):Q}function Ae(Q){return Q}function _e(Q){p(Q);var Y=Le(!0,function(Ee,We,st,Ot,Yt){var mn=st?st.initializer?st.initializer.call(Ee):st.value:void 0;za(Ee).addObservableProp(We,mn,Q)}),se=(i!==void 0&&i.env,Y);return se.enhancer=Q,se}var ye={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Ne(Q){return Q==null?ye:typeof Q=="string"?{name:Q,deep:!0,proxy:!0}:Q}Object.freeze(ye);var Se=_e(ze),ce=_e(function(Q,Y,se){return Q==null||xa(Q)||fs(Q)||ai(Q)||aa(Q)?Q:Array.isArray(Q)?Be.array(Q,{name:se,deep:!1}):b(Q)?Be.object(Q,void 0,{name:se,deep:!1}):P(Q)?Be.map(Q,{name:se,deep:!1}):$(Q)?Be.set(Q,{name:se,deep:!1}):d(!1)}),be=_e(Ae),pe=_e(function(Q,Y,se){return At(Q,Y)?Y:Q});function Me(Q){return Q.defaultDecorator?Q.defaultDecorator.enhancer:Q.deep===!1?Ae:ze}var Ze={box:function(Q,Y){arguments.length>2&&$e("box");var se=Ne(Y);return new to(Q,Me(se),se.name,!0,se.equals)},array:function(Q,Y){arguments.length>2&&$e("array");var se=Ne(Y);return Rf(Q,Me(se),se.name)},map:function(Q,Y){arguments.length>2&&$e("map");var se=Ne(Y);return new Vp(Q,Me(se),se.name)},set:function(Q,Y){arguments.length>2&&$e("set");var se=Ne(Y);return new dl(Q,Me(se),se.name)},object:function(Q,Y,se){typeof arguments[1]=="string"&&$e("object");var Ee=Ne(se);if(Ee.proxy===!1)return Yl({},Q,Y,Ee);var We=Ap(Ee),st=Yl({},void 0,void 0,Ee),Ot=Cc(st);return Av(Ot,Q,Y,We),Ot},ref:be,shallow:ce,deep:Se,struct:pe},Be=function(Q,Y,se){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return Se.apply(null,arguments);if(kc(Q))return Q;var Ee=b(Q)?Be.object(Q,Y,se):Array.isArray(Q)?Be.array(Q,Y):P(Q)?Be.map(Q,Y):$(Q)?Be.set(Q,Y):Q;if(Ee!==Q)return Ee;d(!1)};function $e(Q){d("Expected one or two arguments to observable."+Q+". Did you accidentally try to use observable."+Q+" as decorator?")}Object.keys(Ze).forEach(function(Q){return Be[Q]=Ze[Q]});var Je,Oe,Ye=Le(!1,function(Q,Y,se,Ee,We){var st=se.get,Ot=se.set,Yt=We[0]||{};za(Q).addComputedProp(Q,Y,ae({get:st,set:Ot,context:Q},Yt))}),ut=Ye({equals:F.structural}),qe=function(Q,Y,se){if(typeof Y=="string"||Q!==null&&typeof Q=="object"&&arguments.length===1)return Ye.apply(null,arguments);var Ee=typeof Y=="object"?Y:{};return Ee.get=Q,Ee.set=typeof Y=="function"?Y:Ee.set,Ee.name=Ee.name||Q.name||"",new fi(Ee)};qe.struct=ut,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"}(Je||(Je={})),function(Q){Q[Q.NONE=0]="NONE",Q[Q.LOG=1]="LOG",Q[Q.BREAK=2]="BREAK"}(Oe||(Oe={}));var ot=function(Q){this.cause=Q};function ft(Q){return Q instanceof ot}function kt(Q){switch(Q.dependenciesState){case Je.UP_TO_DATE:return!1;case Je.NOT_TRACKING:case Je.STALE:return!0;case Je.POSSIBLY_STALE:for(var Y=ke(!0),se=me(),Ee=Q.observing,We=Ee.length,st=0;st<We;st++){var Ot=Ee[st];if(Fa(Ot)){if(bn.disableErrorBoundaries)Ot.get();else try{Ot.get()}catch{return Ve(se),Xe(Y),!0}if(Q.dependenciesState===Je.STALE)return Ve(se),Xe(Y),!0}}return nt(Q),Ve(se),Xe(Y),!1}}function Wt(){return bn.trackingDerivation!==null}function Ct(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,se){var Ee=ke(!0);nt(Q),Q.newObserving=new Array(Q.observing.length+100),Q.unboundDepsCount=0,Q.runId=++bn.runId;var We,st=bn.trackingDerivation;if(bn.trackingDerivation=Q,bn.disableErrorBoundaries===!0)We=Y.call(se);else try{We=Y.call(se)}catch(Ot){We=new ot(Ot)}return bn.trackingDerivation=st,function(Ot){for(var Yt=Ot.observing,mn=Ot.observing=Ot.newObserving,Or=Je.UP_TO_DATE,fn=0,oo=Ot.unboundDepsCount,ur=0;ur<oo;ur++)(Qr=mn[ur]).diffValue===0&&(Qr.diffValue=1,fn!==ur&&(mn[fn]=Qr),fn++),Qr.dependenciesState>Or&&(Or=Qr.dependenciesState);for(mn.length=fn,Ot.newObserving=null,oo=Yt.length;oo--;)(Qr=Yt[oo]).diffValue===0&&wt(Qr,Ot),Qr.diffValue=0;for(;fn--;){var Qr;(Qr=mn[fn]).diffValue===1&&(Qr.diffValue=0,Sc(Qr,Ot))}Or!==Je.UP_TO_DATE&&(Ot.dependenciesState=Or,Ot.onBecomeStale())}(Q),Xe(Ee),We}function Ce(Q){var Y=Q.observing;Q.observing=[];for(var se=Y.length;se--;)wt(Y[se],Q);Q.dependenciesState=Je.NOT_TRACKING}function He(Q){var Y=me();try{return Q()}finally{Ve(Y)}}function me(){var Q=bn.trackingDerivation;return bn.trackingDerivation=null,Q}function Ve(Q){bn.trackingDerivation=Q}function ke(Q){var Y=bn.allowStateReads;return bn.allowStateReads=Q,Y}function Xe(Q){bn.allowStateReads=Q}function nt(Q){if(Q.dependenciesState!==Je.UP_TO_DATE){Q.dependenciesState=Je.UP_TO_DATE;for(var Y=Q.observing,se=Y.length;se--;)Y[se].lowestObserverState=Je.UP_TO_DATE}}var Ft=0,Vn=1,rt=Object.getOwnPropertyDescriptor(function(){},"name");rt&&rt.configurable;function Lt(Q,Y,se){var Ee=function(){return wn(Q,Y,se||this,arguments)};return Ee.isMobxAction=!0,Ee}function wn(Q,Y,se,Ee){var We=Nt();try{return Y.apply(se,Ee)}catch(st){throw We.error=st,st}finally{Xt(We)}}function Nt(Q,Y,se){var Ee=0,We=me();Yn();var st={prevDerivation:We,prevAllowStateChanges:Sn(!0),prevAllowStateReads:ke(!0),notifySpy:!1,startTime:Ee,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),jr(Q.prevAllowStateChanges),Xe(Q.prevAllowStateReads),dr(),Ve(Q.prevDerivation),Q.notifySpy,bn.suppressReactionErrors=!1}function Ht(Q,Y){var se,Ee=Sn(Q);try{se=Y()}finally{jr(Ee)}return se}function Sn(Q){var Y=bn.allowStateChanges;return bn.allowStateChanges=Q,Y}function jr(Q){bn.allowStateChanges=Q}var to=function(Q){function Y(se,Ee,We,st,Ot){We===void 0&&(We="ObservableValue@"+u()),Ot===void 0&&(Ot=F.default);var Yt=Q.call(this,We)||this;return Yt.enhancer=Ee,Yt.name=We,Yt.equals=Ot,Yt.hasUnreportedChange=!1,Yt.value=Ee(se,void 0,We),Yt}return function(se,Ee){function We(){this.constructor=se}G(se,Ee),se.prototype=Ee===null?Object.create(Ee):(We.prototype=Ee.prototype,new We)}(Y,Q),Y.prototype.dehanceValue=function(se){return this.dehancer!==void 0?this.dehancer(se):se},Y.prototype.set=function(se){this.value,(se=this.prepareNewValue(se))!==bn.UNCHANGED&&this.setNewValue(se)},Y.prototype.prepareNewValue=function(se){if(Ct(this),wa(this)){var Ee=Rr(this,{object:this,type:"update",newValue:se});if(!Ee)return bn.UNCHANGED;se=Ee.newValue}return se=this.enhancer(se,this.value,this.name),this.equals(this.value,se)?bn.UNCHANGED:se},Y.prototype.setNewValue=function(se){var Ee=this.value;this.value=se,this.reportChanged(),Sa(this)&&wi(this,{type:"update",object:this,newValue:se,oldValue:Ee})},Y.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},Y.prototype.intercept=function(se){return Ul(this,se)},Y.prototype.observe=function(se,Ee){return Ee&&se({object:this,type:"update",newValue:this.value,oldValue:void 0}),fl(this,se)},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),ya=C("ObservableValue",to),fi=function(){function Q(Y){this.dependenciesState=Je.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=Je.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+u(),this.value=new ot(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Oe.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?F.structural:F.default),this.scope=Y.context,this.requiresReaction=!!Y.requiresReaction,this.keepAlive=!!Y.keepAlive}return Q.prototype.onBecomeStale=function(){(function(Y){Y.lowestObserverState===Je.UP_TO_DATE&&(Y.lowestObserverState=Je.POSSIBLY_STALE,Y.observers.forEach(function(se){se.dependenciesState===Je.UP_TO_DATE&&(se.dependenciesState=Je.POSSIBLY_STALE,se.isTracing!==Oe.NONE&&ii(se,Y),se.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?(Yi(this),kt(this)&&this.trackAndCompute()&&function(se){se.lowestObserverState!==Je.STALE&&(se.lowestObserverState=Je.STALE,se.observers.forEach(function(Ee){Ee.dependenciesState===Je.POSSIBLY_STALE?Ee.dependenciesState=Je.STALE:Ee.dependenciesState===Je.UP_TO_DATE&&(se.lowestObserverState=Je.UP_TO_DATE)}))}(this)):kt(this)&&(this.warnAboutUntrackedRead(),Yn(),this.value=this.computeValue(!1),dr());var Y=this.value;if(ft(Y))throw Y.cause;return Y},Q.prototype.peek=function(){var Y=this.computeValue(!1);if(ft(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,se=this.dependenciesState===Je.NOT_TRACKING,Ee=this.computeValue(!0),We=se||ft(Y)||ft(Ee)||!this.equals(Y,Ee);return We&&(this.value=Ee),We},Q.prototype.computeValue=function(Y){var se;if(this.isComputing=!0,bn.computationDepth++,Y)se=ln(this,this.derivation,this.scope);else if(bn.disableErrorBoundaries===!0)se=this.derivation.call(this.scope);else try{se=this.derivation.call(this.scope)}catch(Ee){se=new ot(Ee)}return bn.computationDepth--,this.isComputing=!1,se},Q.prototype.suspend=function(){this.keepAlive||(Ce(this),this.value=void 0)},Q.prototype.observe=function(Y,se){var Ee=this,We=!0,st=void 0;return $p(function(){var Ot=Ee.get();if(!We||se){var Yt=me();Y({type:"update",object:Ee,newValue:Ot,oldValue:st}),Ve(Yt)}We=!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}(),Fa=C("ComputedValue",fi),ba=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},Af={};function Ql(){return typeof window!="undefined"?window:a!==void 0?a:typeof self!="undefined"?self:Af}var Wi=!0,ll=!1,bn=function(){var Q=Ql();return Q.__mobxInstanceCount>0&&!Q.__mobxGlobals&&(Wi=!1),Q.__mobxGlobals&&Q.__mobxGlobals.version!==new ba().version&&(Wi=!1),Wi?Q.__mobxGlobals?(Q.__mobxInstanceCount+=1,Q.__mobxGlobals.UNCHANGED||(Q.__mobxGlobals.UNCHANGED={}),Q.__mobxGlobals):(Q.__mobxInstanceCount=1,Q.__mobxGlobals=new ba):(setTimeout(function(){ll||d("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new ba)}();function Sc(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 dr(){if(--bn.inBatch==0){_t();for(var Q=bn.pendingUnobservations,Y=0;Y<Q.length;Y++){var se=Q[Y];se.isPendingUnobservation=!1,se.observers.size===0&&(se.isBeingObserved&&(se.isBeingObserved=!1,se.onBecomeUnobserved()),se instanceof fi&&se.suspend())}bn.pendingUnobservations=[]}}function Yi(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 ii(Q,Y){if(Q.isTracing===Oe.BREAK){var se=[];Xo(zo(Q),se,1),new Function(`debugger;
- /*
- Tracing '`+Q.name+`'
- You are entering this break point because derivation '`+Q.name+"' is being traced and '"+Y.name+`' is now forcing it to update.
- Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
- The stackframe you are looking for is at least ~6-8 stack-frames up.
- `+(Q instanceof fi?Q.derivation.toString().replace(/[*]\//g,"/"):"")+`
- The dependencies for this derivation are:
- `+se.join(`
- `)+`
- */
- `)()}}function Xo(Q,Y,se){Y.length>=1e3?Y.push("(and many more)"):(Y.push(""+new Array(se).join(" ")+Q.name),Q.dependencies&&Q.dependencies.forEach(function(Ee){return Xo(Ee,Y,se+1)}))}var Go=function(){function Q(Y,se,Ee,We){Y===void 0&&(Y="Reaction@"+u()),We===void 0&&(We=!1),this.name=Y,this.onInvalidate=se,this.errorHandler=Ee,this.requiresObservable=We,this.observing=[],this.newObserving=[],this.dependenciesState=Je.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=Oe.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,kt(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(Y){this.reportExceptionInDerivation(Y)}}dr()}},Q.prototype.track=function(Y){if(!this.isDisposed){Yn(),this._isRunning=!0;var se=ln(this,Y,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Ce(this),ft(se)&&this.reportExceptionInDerivation(se.cause),dr()}},Q.prototype.reportExceptionInDerivation=function(Y){var se=this;if(this.errorHandler)this.errorHandler(Y,this);else{if(bn.disableErrorBoundaries)throw Y;bn.suppressReactionErrors,bn.globalReactionErrorHandlers.forEach(function(Ee){return Ee(Y,se)})}},Q.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Yn(),Ce(this),dr()))},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 se=[],Ee=0;Ee<arguments.length;Ee++)se[Ee]=arguments[Ee];var We=!1;typeof se[se.length-1]=="boolean"&&(We=se.pop());var st=Lr(se);if(!st)return d(!1);st.isTracing,Oe.NONE,st.isTracing=We?Oe.BREAK:Oe.LOG}(this,Y)},Q}(),di=function(Q){return Q()};function _t(){bn.inBatch>0||bn.isRunningReactions||di(cn)}function cn(){bn.isRunningReactions=!0;for(var Q=bn.pendingReactions,Y=0;Q.length>0;){++Y==100&&Q.splice(0);for(var se=Q.splice(0),Ee=0,We=se.length;Ee<We;Ee++)se[Ee].runReaction()}bn.isRunningReactions=!1}var Bn=C("Reaction",Go);function _r(Q){var Y=di;di=function(se){return Q(function(){return Y(se)})}}function Ni(Q){return function(){}}function cs(){d(!1)}function Du(Q){return function(Y,se,Ee){if(Ee){if(Ee.value)return{value:Lt(Q,Ee.value),enumerable:!1,configurable:!0,writable:!0};var We=Ee.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Lt(Q,We.call(this))}}}return Tv(Q).apply(this,arguments)}}function Tv(Q){return function(Y,se,Ee){Object.defineProperty(Y,se,{configurable:!0,enumerable:!1,get:function(){},set:function(We){k(this,se,Wl(Q,We))}})}}var Wl=function(Q,Y,se,Ee){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"?Du(Q):Ee!==!0?Du(Y).apply(null,arguments):void k(Q,Y,Lt(Q.name||Y,se.value,this))};function Tp(Q,Y){return wn(typeof Q=="string"?Q:Q.name||"<unnamed action>",typeof Q=="function"?Q:Y,this,void 0)}function Md(Q){return typeof Q=="function"&&Q.isMobxAction===!0}function Pp(Q,Y,se){k(Q,Y,Lt(Y,se.bind(Q)))}function $p(Q,Y){Y===void 0&&(Y=l);var se,Ee=Y&&Y.name||Q.name||"Autorun@"+u();if(!Y.scheduler&&!Y.delay)se=new Go(Ee,function(){this.track(Ot)},Y.onError,Y.requiresObservable);else{var We=Pv(Y),st=!1;se=new Go(Ee,function(){st||(st=!0,We(function(){st=!1,se.isDisposed||se.track(Ot)}))},Y.onError,Y.requiresObservable)}function Ot(){Q(se)}return se.schedule(),se.getDisposer()}Wl.bound=function(Q,Y,se,Ee){return Ee===!0?(Pp(Q,Y,se.value),null):se?{configurable:!0,enumerable:!1,get:function(){return Pp(this,Y,se.value||se.initializer.call(this)),this[Y]},set:cs}:{enumerable:!1,configurable:!0,set:function(We){Pp(this,Y,We)},get:function(){}}};var $0=function(Q){return Q()};function Pv(Q){return Q.scheduler?Q.scheduler:Q.delay?function(Y){return setTimeout(Y,Q.delay)}:$0}function Gr(Q,Y,se){se===void 0&&(se=l);var Ee,We,st,Ot=se.name||"Reaction@"+u(),Yt=Wl(Ot,se.onError?(Ee=se.onError,We=Y,function(){try{return We.apply(this,arguments)}catch(ko){Ee.call(this,ko)}}):Y),mn=!se.scheduler&&!se.delay,Or=Pv(se),fn=!0,oo=!1,ur=se.compareStructural?F.structural:se.equals||F.default,Qr=new Go(Ot,function(){fn||mn?hs():oo||(oo=!0,Or(hs))},se.onError,se.requiresObservable);function hs(){if(oo=!1,!Qr.isDisposed){var ko=!1;Qr.track(function(){var ka=Q(Qr);ko=fn||!ur(st,ka),st=ka}),fn&&se.fireImmediately&&Yt(st,Qr),fn||ko!==!0||Yt(st,Qr),fn&&(fn=!1)}}return Qr.schedule(),Qr.getDisposer()}function Xr(Q,Y,se){return $v("onBecomeUnobserved",Q,Y,se)}function $v(Q,Y,se,Ee){var We=typeof Ee=="function"?ds(Y,se):ds(Y),st=typeof Ee=="function"?Ee:se,Ot=Q+"Listeners";return We[Ot]?We[Ot].add(st):We[Ot]=new Set([st]),typeof We[Q]!="function"?d(!1):function(){var Yt=We[Ot];Yt&&(Yt.delete(st),Yt.size===0&&delete We[Ot])}}function xc(Q){var Y=Q.enforceActions,se=Q.computedRequiresReaction,Ee=Q.computedConfigurable,We=Q.disableErrorBoundaries,st=Q.reactionScheduler,Ot=Q.reactionRequiresObservable,Yt=Q.observableRequiresReaction;if(Q.isolateGlobalState===!0&&((bn.pendingReactions.length||bn.inBatch||bn.isRunningReactions)&&d("isolateGlobalState should be called before MobX is running any reactions"),ll=!0,Wi&&(--Ql().__mobxInstanceCount==0&&(Ql().__mobxGlobals=void 0),bn=new ba)),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"}se!==void 0&&(bn.computedRequiresReaction=!!se),Ot!==void 0&&(bn.reactionRequiresObservable=!!Ot),Yt!==void 0&&(bn.observableRequiresReaction=!!Yt,bn.allowStateReads=!bn.observableRequiresReaction),Ee!==void 0&&(bn.computedConfigurable=!!Ee),We!==void 0&&(bn.disableErrorBoundaries=!!We),st&&_r(st)}function Yl(Q,Y,se,Ee){var We=Ap(Ee=Ne(Ee));return fe(Q),za(Q,Ee.name,We.enhancer),Y&&Av(Q,Y,se,We),Q}function Ap(Q){return Q.defaultDecorator||(Q.deep===!1?be:Se)}function Av(Q,Y,se,Ee){var We,st;Yn();try{var Ot=B(Y);try{for(var Yt=K(Ot),mn=Yt.next();!mn.done;mn=Yt.next()){var Or=mn.value,fn=Object.getOwnPropertyDescriptor(Y,Or),oo=(se&&Or in se?se[Or]:fn.get?Ye:Ee)(Q,Or,fn,!0);oo&&Object.defineProperty(Q,Or,oo)}}catch(ur){We={error:ur}}finally{try{mn&&!mn.done&&(st=Yt.return)&&st.call(Yt)}finally{if(We)throw We.error}}}finally{dr()}}function zo(Q,Y){return Mp(ds(Q,Y))}function Mp(Q){var Y,se,Ee={name:Q.name};return Q.observing&&Q.observing.length>0&&(Ee.dependencies=(Y=Q.observing,se=[],Y.forEach(function(We){se.indexOf(We)===-1&&se.push(We)}),se).map(Mp)),Ee}var Mf=0;function Rp(){this.message="FLOW_CANCELLED"}function Rd(Q){arguments.length!==1&&d("Flow expects 1 argument and cannot be used as decorator");var Y=Q.name||"<unnamed flow>";return function(){var se,Ee=this,We=arguments,st=++Mf,Ot=Wl(Y+" - runid: "+st+" - init",Q).apply(Ee,We),Yt=void 0,mn=new Promise(function(Or,fn){var oo=0;function ur(ko){var ka;Yt=void 0;try{ka=Wl(Y+" - runid: "+st+" - yield "+oo++,Ot.next).call(Ot,ko)}catch(Xl){return fn(Xl)}hs(ka)}function Qr(ko){var ka;Yt=void 0;try{ka=Wl(Y+" - runid: "+st+" - yield "+oo++,Ot.throw).call(Ot,ko)}catch(Xl){return fn(Xl)}hs(ka)}function hs(ko){if(!ko||typeof ko.then!="function")return ko.done?Or(ko.value):(Yt=Promise.resolve(ko.value)).then(ur,Qr);ko.then(hs,fn)}se=fn,ur(void 0)});return mn.cancel=Wl(Y+" - runid: "+st+" - cancel",function(){try{Yt&&Ii(Yt);var Or=Ot.return(void 0),fn=Promise.resolve(Or.value);fn.then(y,y),Ii(fn),se(new Rp)}catch(oo){se(oo)}}),mn}}function Ii(Q){typeof Q.cancel=="function"&&Q.cancel()}function Np(Q,Y){if(Q==null)return!1;if(Y!==void 0){if(xa(Q)===!1||!Q[N].values.has(Y))return!1;var se=ds(Q,Y);return Fa(se)}return Fa(Q)}function Mv(Q){return arguments.length>1?d(!1):Np(Q)}function Ip(Q,Y){return typeof Y!="string"?d(!1):Np(Q,Y)}function Nd(Q,Y){return Q!=null&&(Y!==void 0?!!xa(Q)&&Q[N].values.has(Y):xa(Q)||!!Q[N]||D(Q)||Bn(Q)||Fa(Q))}function kc(Q){return arguments.length!==1&&d(!1),Nd(Q)}function ul(Q){return xa(Q)?Q[N].getKeys():ai(Q)||aa(Q)?Array.from(Q.keys()):fs(Q)?Q.map(function(Y,se){return se}):d(!1)}function uo(Q){return xa(Q)?ul(Q).map(function(Y){return Q[Y]}):ai(Q)?ul(Q).map(function(Y){return Q.get(Y)}):aa(Q)?Array.from(Q.values()):fs(Q)?Q.slice():d(!1)}function Rv(Q){return xa(Q)?ul(Q).map(function(Y){return[Y,Q[Y]]}):ai(Q)?ul(Q).map(function(Y){return[Y,Q.get(Y)]}):aa(Q)?Array.from(Q.entries()):fs(Q)?Q.map(function(Y,se){return[se,Y]}):d(!1)}function _a(Q,Y,se){if(arguments.length!==2||aa(Q))if(xa(Q)){var Ee=Q[N],We=Ee.values.get(Y);We?Ee.write(Y,se):Ee.addObservableProp(Y,se,Ee.defaultEnhancer)}else if(ai(Q))Q.set(Y,se);else if(aa(Q))Q.add(Y);else{if(!fs(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]=se,dr()}else{Yn();var st=Y;try{for(var Ot in st)_a(Q,Ot,st[Ot])}finally{dr()}}}function Nv(Q,Y,se,Ee){return typeof se=="function"?function(We,st,Ot,Yt){return pl(We,st).observe(Ot,Yt)}(Q,Y,se,Ee):function(We,st,Ot){return pl(We).observe(st,Ot)}(Q,Y,se)}Rp.prototype=Object.create(Error.prototype);var Iv={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function ia(Q,Y,se,Ee){return Ee.detectCycles&&Q.set(Y,se),se}function Oa(Q,Y,se){if(!Y.recurseEverything&&!kc(Q)||typeof Q!="object")return Q;if(Q===null)return null;if(Q instanceof Date)return Q;if(ya(Q))return Oa(Q.get(),Y,se);if(kc(Q)&&ul(Q),Y.detectCycles===!0&&Q!==null&&se.has(Q))return se.get(Q);if(fs(Q)||Array.isArray(Q)){var Ee=ia(se,Q,[],Y),We=Q.map(function(ur){return Oa(ur,Y,se)});Ee.length=We.length;for(var st=0,Ot=We.length;st<Ot;st++)Ee[st]=We[st];return Ee}if(aa(Q)||Object.getPrototypeOf(Q)===Set.prototype){if(Y.exportMapsAsObjects===!1){var Yt=ia(se,Q,new Set,Y);return Q.forEach(function(ur){Yt.add(Oa(ur,Y,se))}),Yt}var mn=ia(se,Q,[],Y);return Q.forEach(function(ur){mn.push(Oa(ur,Y,se))}),mn}if(ai(Q)||Object.getPrototypeOf(Q)===Map.prototype){if(Y.exportMapsAsObjects===!1){var Or=ia(se,Q,new Map,Y);return Q.forEach(function(ur,Qr){Or.set(Qr,Oa(ur,Y,se))}),Or}var fn=ia(se,Q,{},Y);return Q.forEach(function(ur,Qr){fn[Qr]=Oa(ur,Y,se)}),fn}var oo=ia(se,Q,{},Y);return T(Q).forEach(function(ur){oo[ur]=Oa(Q[ur],Y,se)}),oo}function Dp(Q,Y){var se;return typeof Y=="boolean"&&(Y={detectCycles:Y}),Y||(Y=Iv),Y.detectCycles=Y.detectCycles===void 0?Y.recurseEverything===!0:Y.detectCycles===!0,Y.detectCycles&&(se=new Map),Oa(Q,Y,se)}function Lr(Q){switch(Q.length){case 0:return bn.trackingDerivation;case 1:return ds(Q[0]);case 2:return ds(Q[0],Q[1])}}function hi(Q,Y){Y===void 0&&(Y=void 0),Yn();try{return Q.apply(Y)}finally{dr()}}function Id(Q,Y,se){return arguments.length===1||Y&&typeof Y=="object"?jp(Q,Y):Dv(Q,Y,se||{})}function Dv(Q,Y,se){var Ee;typeof se.timeout=="number"&&(Ee=setTimeout(function(){if(!st[N].isDisposed){st();var Ot=new Error("WHEN_TIMEOUT");if(!se.onError)throw Ot;se.onError(Ot)}},se.timeout)),se.name=se.name||"When@"+u();var We=Lt(se.name+"-effect",Y),st=$p(function(Ot){Q()&&(Ot.dispose(),Ee&&clearTimeout(Ee),We())},se);return st}function jp(Q,Y){var se,Ee=new Promise(function(We,st){var Ot=Dv(Q,We,ae(ae({},Y),{onError:st}));se=function(){Ot(),st("WHEN_CANCELLED")}});return Ee.cancel=se,Ee}function Dd(Q){return Q[N]}function cl(Q){return typeof Q=="string"||typeof Q=="number"||typeof Q=="symbol"}var Zl={has:function(Q,Y){if(Y===N||Y==="constructor"||Y===J)return!0;var se=Dd(Q);return cl(Y)?se.has(Y):Y in Q},get:function(Q,Y){if(Y===N||Y==="constructor"||Y===J)return Q[Y];var se=Dd(Q),Ee=se.values.get(Y);if(Ee instanceof I){var We=Ee.get();return We===void 0&&se.has(Y),We}return cl(Y)&&se.has(Y),Q[Y]},set:function(Q,Y,se){return!!cl(Y)&&(_a(Q,Y,se),!0)},deleteProperty:function(Q,Y){return!!cl(Y)&&(Dd(Q).remove(Y),!0)},ownKeys:function(Q){return Dd(Q).keysAtom.reportObserved(),Reflect.ownKeys(Q)},preventExtensions:function(Q){return d("Dynamic observable objects cannot be frozen"),!1}};function Cc(Q){var Y=new Proxy(Q,Zl);return Q[N].proxy=Y,Y}function wa(Q){return Q.interceptors!==void 0&&Q.interceptors.length>0}function Ul(Q,Y){var se=Q.interceptors||(Q.interceptors=[]);return se.push(Y),v(function(){var Ee=se.indexOf(Y);Ee!==-1&&se.splice(Ee,1)})}function Rr(Q,Y){var se=me();try{for(var Ee=oe(Q.interceptors||[]),We=0,st=Ee.length;We<st&&(p(!(Y=Ee[We](Y))||Y.type,"Intercept handlers should return nothing or a change object"),Y);We++);return Y}finally{Ve(se)}}function Sa(Q){return Q.changeListeners!==void 0&&Q.changeListeners.length>0}function fl(Q,Y){var se=Q.changeListeners||(Q.changeListeners=[]);return se.push(Y),v(function(){var Ee=se.indexOf(Y);Ee!==-1&&se.splice(Ee,1)})}function wi(Q,Y){var se=me(),Ee=Q.changeListeners;if(Ee){for(var We=0,st=(Ee=Ee.slice()).length;We<st;We++)Ee[We](Y);Ve(se)}}var jd={get:function(Q,Y){return Y===N?Q[N]:Y==="length"?Q[N].getArrayLength():typeof Y=="number"?Ro.get.call(Q,Y):typeof Y!="string"||isNaN(Y)?Ro.hasOwnProperty(Y)?Ro[Y]:Q[Y]:Ro.get.call(Q,parseInt(Y))},set:function(Q,Y,se){return Y==="length"&&Q[N].setArrayLength(se),typeof Y=="number"&&Ro.set.call(Q,Y,se),typeof Y=="symbol"||isNaN(Y)?Q[Y]=se:Ro.set.call(Q,parseInt(Y),se),!0},preventExtensions:function(Q){return d("Observable arrays cannot be frozen"),!1}};function Rf(Q,Y,se,Ee){se===void 0&&(se="ObservableArray@"+u()),Ee===void 0&&(Ee=!1);var We,st,Ot,Yt=new Lp(se,Y,Ee);We=Yt.values,st=N,Ot=Yt,Object.defineProperty(We,st,{enumerable:!1,writable:!1,configurable:!0,value:Ot});var mn=new Proxy(Yt.values,jd);if(Yt.proxy=mn,Q&&Q.length){var Or=Sn(!0);Yt.spliceWithArray(0,0,Q),jr(Or)}return mn}var Lp=function(){function Q(Y,se,Ee){this.owned=Ee,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new I(Y||"ObservableArray@"+u()),this.enhancer=function(We,st){return se(We,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 Ul(this,Y)},Q.prototype.observe=function(Y,se){return se===void 0&&(se=!1),se&&Y({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),fl(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 se=this.values.length;if(Y!==se)if(Y>se){for(var Ee=new Array(Y-se),We=0;We<Y-se;We++)Ee[We]=void 0;this.spliceWithArray(se,0,Ee)}else this.spliceWithArray(Y,se-Y)},Q.prototype.updateArrayLength=function(Y,se){if(Y!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=se},Q.prototype.spliceWithArray=function(Y,se,Ee){var We=this;Ct(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)),se=arguments.length===1?st-Y:se==null?0:Math.max(0,Math.min(se,st-Y)),Ee===void 0&&(Ee=s),wa(this)){var Ot=Rr(this,{object:this.proxy,type:"splice",index:Y,removedCount:se,added:Ee});if(!Ot)return s;se=Ot.removedCount,Ee=Ot.added}Ee=Ee.length===0?Ee:Ee.map(function(mn){return We.enhancer(mn,void 0)});var Yt=this.spliceItemsIntoValues(Y,se,Ee);return se===0&&Ee.length===0||this.notifyArraySplice(Y,Ee,Yt),this.dehanceValues(Yt)},Q.prototype.spliceItemsIntoValues=function(Y,se,Ee){var We;if(Ee.length<1e4)return(We=this.values).splice.apply(We,oe([Y,se],Ee));var st=this.values.slice(Y,Y+se);return this.values=this.values.slice(0,Y).concat(Ee,this.values.slice(Y+se)),st},Q.prototype.notifyArrayChildUpdate=function(Y,se,Ee){var We=!this.owned&&!1,st=Sa(this),Ot=st||We?{object:this.proxy,type:"update",index:Y,newValue:se,oldValue:Ee}:null;this.atom.reportChanged(),st&&wi(this,Ot)},Q.prototype.notifyArraySplice=function(Y,se,Ee){var We=!this.owned&&!1,st=Sa(this),Ot=st||We?{object:this.proxy,type:"splice",index:Y,removed:Ee,added:se,removedCount:Ee.length,addedCount:se.length}:null;this.atom.reportChanged(),st&&wi(this,Ot)},Q}(),Ro={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 se=[],Ee=2;Ee<arguments.length;Ee++)se[Ee-2]=arguments[Ee];var We=this[N];switch(arguments.length){case 0:return[];case 1:return We.spliceWithArray(Q);case 2:return We.spliceWithArray(Q,Y)}return We.spliceWithArray(Q,Y,se)},spliceWithArray:function(Q,Y,se){return this[N].spliceWithArray(Q,Y,se)},push:function(){for(var Q=[],Y=0;Y<arguments.length;Y++)Q[Y]=arguments[Y];var se=this[N];return se.spliceWithArray(se.values.length,0,Q),se.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 se=this[N];return se.spliceWithArray(0,0,Q),se.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],se=Y.dehanceValues(Y.values).indexOf(Q);return se>-1&&(this.splice(se,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 se=this[N],Ee=se.values;if(Q<Ee.length){Ct(se.atom);var We=Ee[Q];if(wa(se)){var st=Rr(se,{type:"update",object:se.proxy,index:Q,newValue:Y});if(!st)return;Y=st.newValue}(Y=se.enhancer(Y,We))!==We&&(Ee[Q]=Y,se.notifyArrayChildUpdate(Q,Y,We))}else{if(Q!==Ee.length)throw new Error("[mobx.array] Index out of bounds, "+Q+" is larger than "+Ee.length);se.spliceWithArray(Q,0,[Y])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(Q){typeof Array.prototype[Q]=="function"&&(Ro[Q]=function(){var Y=this[N];Y.atom.reportObserved();var se=Y.dehanceValues(Y.values);return se[Q].apply(se,arguments)})}),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach(function(Q){typeof Array.prototype[Q]=="function"&&(Ro[Q]=function(Y,se){var Ee=this,We=this[N];return We.atom.reportObserved(),We.dehanceValues(We.values)[Q](function(st,Ot){return Y.call(se,st,Ot,Ee)},se)})}),["reduce","reduceRight"].forEach(function(Q){Ro[Q]=function(){var Y=this,se=this[N];se.atom.reportObserved();var Ee=arguments[0];return arguments[0]=function(We,st,Ot){return st=se.dehanceValue(st),Ee(We,st,Ot,Y)},se.values[Q].apply(se.values,arguments)}});var Ld,Hl=C("ObservableArrayAdministration",Lp);function fs(Q){return w(Q)&&Hl(Q[N])}var Bp,A0={},Vp=function(){function Q(Y,se,Ee){if(se===void 0&&(se=ze),Ee===void 0&&(Ee="ObservableMap@"+u()),this.enhancer=se,this.name=Ee,this[Ld]=A0,this._keysAtom=j(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 se=this;if(!bn.trackingDerivation)return this._has(Y);var Ee=this._hasMap.get(Y);if(!Ee){var We=Ee=new to(this._has(Y),Ae,this.name+"."+A(Y)+"?",!1);this._hasMap.set(Y,We),Xr(We,function(){return se._hasMap.delete(Y)})}return Ee.get()},Q.prototype.set=function(Y,se){var Ee=this._has(Y);if(wa(this)){var We=Rr(this,{type:Ee?"update":"add",object:this,newValue:se,name:Y});if(!We)return this;se=We.newValue}return Ee?this._updateValue(Y,se):this._addValue(Y,se),this},Q.prototype.delete=function(Y){var se=this;if(Ct(this._keysAtom),wa(this)&&!(We=Rr(this,{type:"delete",object:this,name:Y})))return!1;if(this._has(Y)){var Ee=Sa(this),We=Ee?{type:"delete",object:this,oldValue:this._data.get(Y).value,name:Y}:null;return hi(function(){se._keysAtom.reportChanged(),se._updateHasMapEntry(Y,!1),se._data.get(Y).setNewValue(void 0),se._data.delete(Y)}),Ee&&wi(this,We),!0}return!1},Q.prototype._updateHasMapEntry=function(Y,se){var Ee=this._hasMap.get(Y);Ee&&Ee.setNewValue(se)},Q.prototype._updateValue=function(Y,se){var Ee=this._data.get(Y);if((se=Ee.prepareNewValue(se))!==bn.UNCHANGED){var We=Sa(this),st=We?{type:"update",object:this,oldValue:Ee.value,name:Y,newValue:se}:null;Ee.setNewValue(se),We&&wi(this,st)}},Q.prototype._addValue=function(Y,se){var Ee=this;Ct(this._keysAtom),hi(function(){var Ot=new to(se,Ee.enhancer,Ee.name+"."+A(Y),!1);Ee._data.set(Y,Ot),se=Ot.value,Ee._updateHasMapEntry(Y,!0),Ee._keysAtom.reportChanged()});var We=Sa(this),st=We?{type:"add",object:this,name:Y,newValue:se}:null;We&&wi(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,se=this.keys();return Tr({next:function(){var Ee=se.next(),We=Ee.done,st=Ee.value;return{done:We,value:We?void 0:Y.get(st)}}})},Q.prototype.entries=function(){var Y=this,se=this.keys();return Tr({next:function(){var Ee=se.next(),We=Ee.done,st=Ee.value;return{done:We,value:We?void 0:[st,Y.get(st)]}}})},Q.prototype[Ld=N,Symbol.iterator]=function(){return this.entries()},Q.prototype.forEach=function(Y,se){var Ee,We;try{for(var st=K(this),Ot=st.next();!Ot.done;Ot=st.next()){var Yt=H(Ot.value,2),mn=Yt[0],Or=Yt[1];Y.call(se,Or,mn,this)}}catch(fn){Ee={error:fn}}finally{try{Ot&&!Ot.done&&(We=st.return)&&We.call(st)}finally{if(Ee)throw Ee.error}}},Q.prototype.merge=function(Y){var se=this;return ai(Y)&&(Y=Y.toJS()),hi(function(){var Ee=Sn(!0);try{b(Y)?T(Y).forEach(function(We){return se.set(We,Y[We])}):Array.isArray(Y)?Y.forEach(function(We){var st=H(We,2),Ot=st[0],Yt=st[1];return se.set(Ot,Yt)}):P(Y)?(Y.constructor!==Map&&d("Cannot initialize from classes that inherit from Map: "+Y.constructor.name),Y.forEach(function(We,st){return se.set(st,We)})):Y!=null&&d("Cannot initialize map from "+Y)}finally{jr(Ee)}}),this},Q.prototype.clear=function(){var Y=this;hi(function(){He(function(){var se,Ee;try{for(var We=K(Y.keys()),st=We.next();!st.done;st=We.next()){var Ot=st.value;Y.delete(Ot)}}catch(Yt){se={error:Yt}}finally{try{st&&!st.done&&(Ee=We.return)&&Ee.call(We)}finally{if(se)throw se.error}}})})},Q.prototype.replace=function(Y){var se=this;return hi(function(){var Ee,We,st,Ot,Yt=function(sa){if(P(sa)||ai(sa))return sa;if(Array.isArray(sa))return new Map(sa);if(b(sa)){var If=new Map;for(var Tc in sa)If.set(Tc,sa[Tc]);return If}return d("Cannot convert to map from '"+sa+"'")}(Y),mn=new Map,Or=!1;try{for(var fn=K(se._data.keys()),oo=fn.next();!oo.done;oo=fn.next()){var ur=oo.value;if(!Yt.has(ur))if(se.delete(ur))Or=!0;else{var Qr=se._data.get(ur);mn.set(ur,Qr)}}}catch(sa){Ee={error:sa}}finally{try{oo&&!oo.done&&(We=fn.return)&&We.call(fn)}finally{if(Ee)throw Ee.error}}try{for(var hs=K(Yt.entries()),ko=hs.next();!ko.done;ko=hs.next()){var ka=H(ko.value,2),Xl=(ur=ka[0],Qr=ka[1],se._data.has(ur));if(se.set(ur,Qr),se._data.has(ur)){var Gl=se._data.get(ur);mn.set(ur,Gl),Xl||(Or=!0)}}}catch(sa){st={error:sa}}finally{try{ko&&!ko.done&&(Ot=hs.return)&&Ot.call(hs)}finally{if(st)throw st.error}}if(!Or)if(se._data.size!==mn.size)se._keysAtom.reportChanged();else for(var Nf=se._data.keys(),zp=mn.keys(),Lu=Nf.next(),Vd=zp.next();!Lu.done;){if(Lu.value!==Vd.value){se._keysAtom.reportChanged();break}Lu=Nf.next(),Vd=zp.next()}se._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,se,Ee={};try{for(var We=K(this),st=We.next();!st.done;st=We.next()){var Ot=H(st.value,2),Yt=Ot[0],mn=Ot[1];Ee[typeof Yt=="symbol"?Yt:A(Yt)]=mn}}catch(Or){Y={error:Or}}finally{try{st&&!st.done&&(se=We.return)&&se.call(We)}finally{if(Y)throw Y.error}}return Ee},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(se){return A(se)+": "+Y.get(se)}).join(", ")+" }]"},Q.prototype.observe=function(Y,se){return fl(this,Y)},Q.prototype.intercept=function(Y){return Ul(this,Y)},Q}(),ai=C("ObservableMap",Vp),Ec={},dl=function(){function Q(Y,se,Ee){if(se===void 0&&(se=ze),Ee===void 0&&(Ee="ObservableSet@"+u()),this.name=Ee,this[Bp]=Ec,this._data=new Set,this._atom=j(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(We,st){return se(We,st,Ee)},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;hi(function(){He(function(){var se,Ee;try{for(var We=K(Y._data.values()),st=We.next();!st.done;st=We.next()){var Ot=st.value;Y.delete(Ot)}}catch(Yt){se={error:Yt}}finally{try{st&&!st.done&&(Ee=We.return)&&Ee.call(We)}finally{if(se)throw se.error}}})})},Q.prototype.forEach=function(Y,se){var Ee,We;try{for(var st=K(this),Ot=st.next();!Ot.done;Ot=st.next()){var Yt=Ot.value;Y.call(se,Yt,Yt,this)}}catch(mn){Ee={error:mn}}finally{try{Ot&&!Ot.done&&(We=st.return)&&We.call(st)}finally{if(Ee)throw Ee.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 se=this;if(Ct(this._atom),wa(this)&&!(We=Rr(this,{type:"add",object:this,newValue:Y})))return this;if(!this.has(Y)){hi(function(){se._data.add(se.enhancer(Y,void 0)),se._atom.reportChanged()});var Ee=Sa(this),We=Ee?{type:"add",object:this,newValue:Y}:null;Ee&&wi(this,We)}return this},Q.prototype.delete=function(Y){var se=this;if(wa(this)&&!(We=Rr(this,{type:"delete",object:this,oldValue:Y})))return!1;if(this.has(Y)){var Ee=Sa(this),We=Ee?{type:"delete",object:this,oldValue:Y}:null;return hi(function(){se._atom.reportChanged(),se._data.delete(Y)}),Ee&&wi(this,We),!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,se=Array.from(this.keys()),Ee=Array.from(this.values());return Tr({next:function(){var We=Y;return Y+=1,We<Ee.length?{value:[se[We],Ee[We]],done:!1}:{done:!0}}})},Q.prototype.keys=function(){return this.values()},Q.prototype.values=function(){this._atom.reportObserved();var Y=this,se=0,Ee=Array.from(this._data.values());return Tr({next:function(){return se<Ee.length?{value:Y.dehanceValue(Ee[se++]),done:!1}:{done:!0}}})},Q.prototype.replace=function(Y){var se=this;return aa(Y)&&(Y=Y.toJS()),hi(function(){var Ee=Sn(!0);try{Array.isArray(Y)||$(Y)?(se.clear(),Y.forEach(function(We){return se.add(We)})):Y!=null&&d("Cannot initialize set from "+Y)}finally{jr(Ee)}}),this},Q.prototype.observe=function(Y,se){return fl(this,Y)},Q.prototype.intercept=function(Y){return Ul(this,Y)},Q.prototype.toJS=function(){return new Set(this)},Q.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},Q.prototype[Bp=N,Symbol.iterator]=function(){return this.values()},Q}(),aa=C("ObservableSet",dl),Fp=function(){function Q(Y,se,Ee,We){se===void 0&&(se=new Map),this.target=Y,this.values=se,this.name=Ee,this.defaultEnhancer=We,this.keysAtom=new I(Ee+".keys")}return Q.prototype.read=function(Y){return this.values.get(Y).get()},Q.prototype.write=function(Y,se){var Ee=this.target,We=this.values.get(Y);if(We instanceof fi)We.set(se);else{if(wa(this)){if(!(Ot=Rr(this,{type:"update",object:this.proxy||Ee,name:Y,newValue:se})))return;se=Ot.newValue}if((se=We.prepareNewValue(se))!==bn.UNCHANGED){var st=Sa(this),Ot=st?{type:"update",object:this.proxy||Ee,oldValue:We.value,name:Y,newValue:se}:null;We.setNewValue(se),st&&wi(this,Ot)}}},Q.prototype.has=function(Y){var se=this.pendingKeys||(this.pendingKeys=new Map),Ee=se.get(Y);if(Ee)return Ee.get();var We=!!this.values.get(Y);return Ee=new to(We,Ae,this.name+"."+A(Y)+"?",!1),se.set(Y,Ee),Ee.get()},Q.prototype.addObservableProp=function(Y,se,Ee){Ee===void 0&&(Ee=this.defaultEnhancer);var We=this.target;if(wa(this)){var st=Rr(this,{object:this.proxy||We,name:Y,type:"add",newValue:se});if(!st)return;se=st.newValue}var Ot=new to(se,Ee,this.name+"."+A(Y),!1);this.values.set(Y,Ot),se=Ot.value,Object.defineProperty(We,Y,function(Yt){return ju[Yt]||(ju[Yt]={configurable:!0,enumerable:!0,get:function(){return this[N].read(Yt)},set:function(mn){this[N].write(Yt,mn)}})}(Y)),this.notifyPropertyAddition(Y,se)},Q.prototype.addComputedProp=function(Y,se,Ee){var We,st,Ot,Yt=this.target;Ee.name=Ee.name||this.name+"."+A(se),this.values.set(se,new fi(Ee)),(Y===Yt||(We=Y,st=se,!(Ot=Object.getOwnPropertyDescriptor(We,st))||Ot.configurable!==!1&&Ot.writable!==!1))&&Object.defineProperty(Y,se,function(mn){return Bd[mn]||(Bd[mn]={configurable:bn.computedConfigurable,enumerable:!1,get:function(){return hl(this).read(mn)},set:function(Or){hl(this).write(mn,Or)}})}(se))},Q.prototype.remove=function(Y){if(this.values.has(Y)){var se=this.target;if(wa(this)&&!(mn=Rr(this,{object:this.proxy||se,name:Y,type:"remove"})))return;try{Yn();var Ee=Sa(this),We=!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 Yt=this.pendingKeys.get(Y);Yt&&Yt.set(!1)}delete this.target[Y];var mn=Ee?{type:"remove",object:this.proxy||se,oldValue:Ot,name:Y}:null;Ee&&wi(this,mn)}finally{dr()}}},Q.prototype.illegalAccess=function(Y,se){},Q.prototype.observe=function(Y,se){return fl(this,Y)},Q.prototype.intercept=function(Y){return Ul(this,Y)},Q.prototype.notifyPropertyAddition=function(Y,se){var Ee=Sa(this),We=Ee?{type:"add",object:this.proxy||this.target,name:Y,newValue:se}:null;if(Ee&&wi(this,We),this.pendingKeys){var st=this.pendingKeys.get(Y);st&&st.set(!0)}this.keysAtom.reportChanged()},Q.prototype.getKeys=function(){var Y,se;this.keysAtom.reportObserved();var Ee=[];try{for(var We=K(this.values),st=We.next();!st.done;st=We.next()){var Ot=H(st.value,2),Yt=Ot[0];Ot[1]instanceof to&&Ee.push(Yt)}}catch(mn){Y={error:mn}}finally{try{st&&!st.done&&(se=We.return)&&se.call(We)}finally{if(Y)throw Y.error}}return Ee},Q}();function za(Q,Y,se){if(Y===void 0&&(Y=""),se===void 0&&(se=ze),Object.prototype.hasOwnProperty.call(Q,N))return Q[N];b(Q)||(Y=(Q.constructor.name||"ObservableObject")+"@"+u()),Y||(Y="ObservableObject@"+u());var Ee=new Fp(Q,new Map,A(Y),se);return k(Q,N,Ee),Ee}var ju=Object.create(null),Bd=Object.create(null);function hl(Q){var Y=Q[N];return Y||(fe(Q),Q[N])}var Qa=C("ObservableObjectAdministration",Fp);function xa(Q){return!!w(Q)&&(fe(Q),Qa(Q[N]))}function ds(Q,Y){if(typeof Q=="object"&&Q!==null){if(fs(Q))return Y!==void 0&&d(!1),Q[N].atom;if(aa(Q))return Q[N];if(ai(Q)){var se=Q;return Y===void 0?se._keysAtom:((Ee=se._data.get(Y)||se._hasMap.get(Y))||d(!1),Ee)}var Ee;if(fe(Q),Y&&!Q[N]&&Q[Y],xa(Q))return Y?((Ee=Q[N].values.get(Y))||d(!1),Ee):d(!1);if(D(Q)||Fa(Q)||Bn(Q))return Q}else if(typeof Q=="function"&&Bn(Q[N]))return Q[N];return d(!1)}function pl(Q,Y){return Q||d("Expecting some object"),Y!==void 0?pl(ds(Q,Y)):D(Q)||Fa(Q)||Bn(Q)||ai(Q)||aa(Q)?Q:(fe(Q),Q[N]?Q[N]:void d(!1))}var mt=Object.prototype.toString;function At(Q,Y,se){return se===void 0&&(se=-1),It(Q,Y,se)}function It(Q,Y,se,Ee,We){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]":se>=0&&se++}Q=sn(Q),Y=sn(Y);var Yt=Ot==="[object Array]";if(!Yt){if(typeof Q!="object"||typeof Y!="object")return!1;var mn=Q.constructor,Or=Y.constructor;if(mn!==Or&&!(typeof mn=="function"&&mn instanceof mn&&typeof Or=="function"&&Or instanceof Or)&&"constructor"in Q&&"constructor"in Y)return!1}if(se===0)return!1;se<0&&(se=-1),We=We||[];for(var fn=(Ee=Ee||[]).length;fn--;)if(Ee[fn]===Q)return We[fn]===Y;if(Ee.push(Q),We.push(Y),Yt){if((fn=Q.length)!==Y.length)return!1;for(;fn--;)if(!It(Q[fn],Y[fn],se-1,Ee,We))return!1}else{var oo=Object.keys(Q),ur=void 0;if(fn=oo.length,Object.keys(Y).length!==fn)return!1;for(;fn--;)if(!sr(Y,ur=oo[fn])||!It(Q[ur],Y[ur],se-1,Ee,We))return!1}return Ee.pop(),We.pop(),!0}function sn(Q){return fs(Q)?Q.slice():P(Q)||ai(Q)||$(Q)||aa(Q)?Array.from(Q.entries()):Q}function sr(Q,Y){return Object.prototype.hasOwnProperty.call(Q,Y)}function Tr(Q){return Q[Symbol.iterator]=go,Q}function go(){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:Ni,extras:{getDebugName:function(Q,Y){return(Y!==void 0?ds(Q,Y):xa(Q)||ai(Q)||aa(Q)?pl(Q):ds(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),P=o(33),$=o(54),T=o(87),A=o(32),R=o(40),B=o(41),N=o(86),I=o(39),D=o(69),j=o(60),F=o(77),G=o(74),ae=o(139),K=o(112),H=o(50),oe=o(38),J=o(84),z=o(98),X=o(42),ee=o(89),he=o(93),fe=o(72),Le=o(90),Ie=o(28),ze=o(140),Ae=o(141),_e=o(78),ye=o(58),Ne=o(79).forEach,Se=he("hidden"),ce="Symbol",be=Ie("toPrimitive"),pe=ye.set,Me=ye.getterFor(ce),Ze=Object.prototype,Be=a.Symbol,$e=Be&&Be.prototype,Je=a.TypeError,Oe=a.QObject,Ye=s("JSON","stringify"),ut=H.f,qe=oe.f,ot=ae.f,ft=J.f,kt=d([].push),Wt=ee("symbols"),Ct=ee("op-symbols"),ln=ee("string-to-symbol-registry"),Ce=ee("symbol-to-string-registry"),He=ee("wks"),me=!Oe||!Oe.prototype||!Oe.prototype.findChild,Ve=v&&w(function(){return j(qe({},"a",{get:function(){return qe(this,"a",{value:7}).a}})).a!=7})?function(Nt,Xt,Ht){var Sn=ut(Ze,Xt);Sn&&delete Ze[Xt],qe(Nt,Xt,Ht),Sn&&Nt!==Ze&&qe(Ze,Xt,Sn)}:qe,ke=function(Nt,Xt){var Ht=Wt[Nt]=j($e);return pe(Ht,{type:ce,tag:Nt,description:Xt}),v||(Ht.description=Xt),Ht},Xe=function(Nt,Xt,Ht){Nt===Ze&&Xe(Ct,Xt,Ht),A(Nt);var Sn=N(Xt);return A(Ht),b(Wt,Sn)?(Ht.enumerable?(b(Nt,Se)&&Nt[Se][Sn]&&(Nt[Se][Sn]=!1),Ht=j(Ht,{enumerable:D(0,!1)})):(b(Nt,Se)||qe(Nt,Se,D(1,{})),Nt[Se][Sn]=!0),Ve(Nt,Sn,Ht)):qe(Nt,Sn,Ht)},nt=function(Nt,Xt){A(Nt);var Ht=B(Xt),Sn=F(Ht).concat(Lt(Ht));return Ne(Sn,function(jr){v&&!u(Ft,Ht,jr)||Xe(Nt,jr,Ht[jr])}),Nt},Ft=function(Nt){var Xt=N(Nt),Ht=u(ft,this,Xt);return!(this===Ze&&b(Wt,Xt)&&!b(Ct,Xt))&&(!(Ht||!b(this,Xt)||!b(Wt,Xt)||b(this,Se)&&this[Se][Xt])||Ht)},Vn=function(Nt,Xt){var Ht=B(Nt),Sn=N(Xt);if(Ht!==Ze||!b(Wt,Sn)||b(Ct,Sn)){var jr=ut(Ht,Sn);return!jr||!b(Wt,Sn)||b(Ht,Se)&&Ht[Se][Sn]||(jr.enumerable=!0),jr}},rt=function(Nt){var Xt=ot(B(Nt)),Ht=[];return Ne(Xt,function(Sn){b(Wt,Sn)||b(fe,Sn)||kt(Ht,Sn)}),Ht},Lt=function(Nt){var Xt=Nt===Ze,Ht=ot(Xt?Ct:B(Nt)),Sn=[];return Ne(Ht,function(jr){!b(Wt,jr)||Xt&&!b(Ze,jr)||kt(Sn,Wt[jr])}),Sn};if(y||(Be=function(){if($($e,this))throw Je("Symbol is not a constructor");var Nt=arguments.length&&arguments[0]!==void 0?I(arguments[0]):void 0,Xt=Le(Nt),Ht=function(Sn){this===Ze&&u(Ht,Ct,Sn),b(this,Se)&&b(this[Se],Xt)&&(this[Se][Xt]=!1),Ve(this,Xt,D(1,Sn))};return v&&me&&Ve(Ze,Xt,{configurable:!0,set:Ht}),ke(Xt,Nt)},X($e=Be.prototype,"toString",function(){return Me(this).tag}),X(Be,"withoutSetter",function(Nt){return ke(Le(Nt),Nt)}),J.f=Ft,oe.f=Xe,H.f=Vn,G.f=ae.f=rt,K.f=Lt,ze.f=function(Nt){return ke(Ie(Nt),Nt)},v&&(qe($e,"description",{configurable:!0,get:function(){return Me(this).description}}),p||X(Ze,"propertyIsEnumerable",Ft,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!y,sham:!y},{Symbol:Be}),Ne(F(He),function(Nt){Ae(Nt)}),i({target:ce,stat:!0,forced:!y},{for:function(Nt){var Xt=I(Nt);if(b(ln,Xt))return ln[Xt];var Ht=Be(Xt);return ln[Xt]=Ht,Ce[Ht]=Xt,Ht},keyFor:function(Nt){if(!T(Nt))throw Je(Nt+" is not a symbol");if(b(Ce,Nt))return Ce[Nt]},useSetter:function(){me=!0},useSimple:function(){me=!1}}),i({target:"Object",stat:!0,forced:!y,sham:!v},{create:function(Nt,Xt){return Xt===void 0?j(Nt):nt(j(Nt),Xt)},defineProperty:Xe,defineProperties:nt,getOwnPropertyDescriptor:Vn}),i({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:rt,getOwnPropertySymbols:Lt}),i({target:"Object",stat:!0,forced:w(function(){K.f(1)})},{getOwnPropertySymbols:function(Nt){return K.f(R(Nt))}}),Ye&&i({target:"JSON",stat:!0,forced:!y||w(function(){var Nt=Be();return Ye([Nt])!="[null]"||Ye({a:Nt})!="{}"||Ye(Object(Nt))!="{}"})},{stringify:function(Nt,Xt,Ht){var Sn=z(arguments),jr=Xt;if((P(Xt)||Nt!==void 0)&&!T(Nt))return k(Xt)||(Xt=function(to,ya){if(C(jr)&&(ya=u(jr,this,to,ya)),!T(ya))return ya}),Sn[1]=Xt,l(Ye,null,Sn)}}),!$e[be]){var wn=$e.valueOf;X($e,be,function(Nt){return u(wn,this)})}_e(Be,ce),fe[Se]=!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 P in l)if(k[P]!==l[P])try{u(k,P,l[P])}catch{k[P]=l[P]}}}};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={},P=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(P,b),P.prototype=k,k.constructor=P;var $=String(b("test"))=="Symbol(test)",T=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=T(I);if(u(C,I))return"";var j=$?N(D,7,-1):B(D,R,"$1");return j===""?void 0:j}}),i({global:!0,forced:!0},{Symbol:P})}},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 X}),o.d(r,"f",function(){return oe}),o.d(r,"g",function(){return Wt});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(Ce,He){l.i.__h&&l.i.__h(a,Ce,u||He),u=0;var me=a.__H||(a.__H={__:[],__h:[]});return Ce>=me.__.length&&me.__.push({}),me.__[Ce]}function C(Ce){return u=1,P(G,Ce)}function P(Ce,He,me){var Ve=k(i++,2);return Ve.t=Ce,Ve.__c||(Ve.__=[me?me(He):G(void 0,He),function(ke){var Xe=Ve.t(Ve.__[0],ke);Ve.__[0]!==Xe&&(Ve.__=[Xe,Ve.__[1]],Ve.__c.setState({}))}],Ve.__c=a),Ve.__}function $(Ce,He){var me=k(i++,3);!l.i.__s&&F(me.__H,He)&&(me.__=Ce,me.__H=He,a.__H.__h.push(me))}function T(Ce,He){var me=k(i++,4);!l.i.__s&&F(me.__H,He)&&(me.__=Ce,me.__H=He,a.__h.push(me))}function A(Ce,He){var me=k(i++,7);return F(me.__H,He)&&(me.__=Ce(),me.__H=He,me.__h=Ce),me.__}function R(Ce,He){return u=8,A(function(){return Ce},He)}function B(){var Ce;for(d.sort(function(He,me){return He.__v.__b-me.__v.__b});Ce=d.pop();)if(Ce.__P)try{Ce.__H.__h.forEach(D),Ce.__H.__h.forEach(j),Ce.__H.__h=[]}catch(He){Ce.__H.__h=[],l.i.__e(He,Ce.__v)}}l.i.__b=function(Ce){a=null,p&&p(Ce)},l.i.__r=function(Ce){v&&v(Ce),i=0;var He=(a=Ce.__c).__H;He&&(He.__h.forEach(D),He.__h.forEach(j),He.__h=[])},l.i.diffed=function(Ce){y&&y(Ce);var He=Ce.__c;He&&He.__H&&He.__H.__h.length&&(d.push(He)!==1&&s===l.i.requestAnimationFrame||((s=l.i.requestAnimationFrame)||I)(B)),a=null},l.i.__c=function(Ce,He){He.some(function(me){try{me.__h.forEach(D),me.__h=me.__h.filter(function(Ve){return!Ve.__||j(Ve)})}catch(Ve){He.some(function(ke){ke.__h&&(ke.__h=[])}),He=[],l.i.__e(Ve,me.__v)}}),w&&w(Ce,He)},l.i.unmount=function(Ce){b&&b(Ce);var He,me=Ce.__c;me&&me.__H&&(me.__H.__.forEach(function(Ve){try{D(Ve)}catch(ke){He=ke}}),He&&l.i.__e(He,me.__v))};var N=typeof requestAnimationFrame=="function";function I(Ce){var He,me=function(){clearTimeout(Ve),N&&cancelAnimationFrame(He),setTimeout(Ce)},Ve=setTimeout(me,100);N&&(He=requestAnimationFrame(me))}function D(Ce){var He=a,me=Ce.__c;typeof me=="function"&&(Ce.__c=void 0,me()),a=He}function j(Ce){var He=a;Ce.__c=Ce.__(),a=He}function F(Ce,He){return!Ce||Ce.length!==He.length||He.some(function(me,Ve){return me!==Ce[Ve]})}function G(Ce,He){return typeof He=="function"?He(Ce):He}function ae(Ce,He){for(var me in He)Ce[me]=He[me];return Ce}function K(Ce,He){for(var me in Ce)if(me!=="__source"&&!(me in He))return!0;for(var Ve in He)if(Ve!=="__source"&&Ce[Ve]!==He[Ve])return!0;return!1}function H(Ce){this.props=Ce}function oe(Ce,He){function me(ke){var Xe=this.props.ref,nt=Xe==ke.ref;return!nt&&Xe&&(Xe.call?Xe(null):Xe.current=null),He?!He(this.props,ke)||!nt:K(this.props,ke)}function Ve(ke){return this.shouldComponentUpdate=me,Object(l.e)(Ce,ke)}return Ve.displayName="Memo("+(Ce.displayName||Ce.name)+")",Ve.prototype.isReactComponent=!0,Ve.__f=!0,Ve}(H.prototype=new l.a).isPureReactComponent=!0,H.prototype.shouldComponentUpdate=function(Ce,He){return K(this.props,Ce)||K(this.state,He)};var J=l.i.__b;l.i.__b=function(Ce){Ce.type&&Ce.type.__f&&Ce.ref&&(Ce.props.ref=Ce.ref,Ce.ref=null),J&&J(Ce)};var z=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function X(Ce){function He(me,Ve){var ke=ae({},me);return delete ke.ref,Ce(ke,!(Ve=me.ref||Ve)||typeof Ve=="object"&&!("current"in Ve)?null:Ve)}return He.$$typeof=z,He.render=He,He.prototype.isReactComponent=He.__f=!0,He.displayName="ForwardRef("+(Ce.displayName||Ce.name)+")",He}var ee=function(Ce,He){return Ce==null?null:Object(l.k)(Object(l.k)(Ce).map(He))},he={map:ee,forEach:ee,count:function(Ce){return Ce?Object(l.k)(Ce).length:0},only:function(Ce){var He=Object(l.k)(Ce);if(He.length!==1)throw"Children.only";return He[0]},toArray:l.k},fe=l.i.__e;l.i.__e=function(Ce,He,me){if(Ce.then){for(var Ve,ke=He;ke=ke.__;)if((Ve=ke.__c)&&Ve.__c)return He.__e==null&&(He.__e=me.__e,He.__k=me.__k),Ve.__c(Ce,He)}fe(Ce,He,me)};var Le=l.i.unmount;function Ie(Ce,He,me){return Ce&&(Ce.__c&&Ce.__c.__H&&(Ce.__c.__H.__.forEach(function(Ve){typeof Ve.__c=="function"&&Ve.__c()}),Ce.__c.__H=null),(Ce=ae({},Ce)).__c!=null&&(Ce.__c.__P===me&&(Ce.__c.__P=He),Ce.__c=null),Ce.__k=Ce.__k&&Ce.__k.map(function(Ve){return Ie(Ve,He,me)})),Ce}function ze(Ce,He,me){return Ce&&(Ce.__v=null,Ce.__k=Ce.__k&&Ce.__k.map(function(Ve){return ze(Ve,He,me)}),Ce.__c&&Ce.__c.__P===He&&(Ce.__e&&me.insertBefore(Ce.__e,Ce.__d),Ce.__c.__e=!0,Ce.__c.__P=me)),Ce}function Ae(){this.__u=0,this.t=null,this.__b=null}function _e(Ce){var He=Ce.__.__c;return He&&He.__e&&He.__e(Ce)}function ye(){this.u=null,this.o=null}l.i.unmount=function(Ce){var He=Ce.__c;He&&He.__R&&He.__R(),He&&Ce.__h===!0&&(Ce.type=null),Le&&Le(Ce)},(Ae.prototype=new l.a).__c=function(Ce,He){var me=He.__c,Ve=this;Ve.t==null&&(Ve.t=[]),Ve.t.push(me);var ke=_e(Ve.__v),Xe=!1,nt=function(){Xe||(Xe=!0,me.__R=null,ke?ke(Ft):Ft())};me.__R=nt;var Ft=function(){if(!--Ve.__u){if(Ve.state.__e){var rt=Ve.state.__e;Ve.__v.__k[0]=ze(rt,rt.__c.__P,rt.__c.__O)}var Lt;for(Ve.setState({__e:Ve.__b=null});Lt=Ve.t.pop();)Lt.forceUpdate()}},Vn=He.__h===!0;Ve.__u++||Vn||Ve.setState({__e:Ve.__b=Ve.__v.__k[0]}),Ce.then(nt,nt)},Ae.prototype.componentWillUnmount=function(){this.t=[]},Ae.prototype.render=function(Ce,He){if(this.__b){if(this.__v.__k){var me=document.createElement("div"),Ve=this.__v.__k[0].__c;this.__v.__k[0]=Ie(this.__b,me,Ve.__O=Ve.__P)}this.__b=null}var ke=He.__e&&Object(l.e)(l.b,null,Ce.fallback);return ke&&(ke.__h=null),[Object(l.e)(l.b,null,He.__e?null:Ce.children),ke]};var Ne=function(Ce,He,me){if(++me[1]===me[0]&&Ce.o.delete(He),Ce.props.revealOrder&&(Ce.props.revealOrder[0]!=="t"||!Ce.o.size))for(me=Ce.u;me;){for(;me.length>3;)me.pop()();if(me[1]<me[0])break;Ce.u=me=me[2]}};function Se(Ce){return this.getChildContext=function(){return Ce.context},Ce.children}function ce(Ce){var He=this,me=Ce.i;He.componentWillUnmount=function(){Object(l.j)(null,He.l),He.l=null,He.i=null},He.i&&He.i!==me&&He.componentWillUnmount(),Ce.__v?(He.l||(He.i=me,He.l={nodeType:1,parentNode:me,childNodes:[],appendChild:function(Ve){this.childNodes.push(Ve),He.i.appendChild(Ve)},insertBefore:function(Ve,ke){this.childNodes.push(Ve),He.i.appendChild(Ve)},removeChild:function(Ve){this.childNodes.splice(this.childNodes.indexOf(Ve)>>>1,1),He.i.removeChild(Ve)}}),Object(l.j)(Object(l.e)(Se,{context:He.context},Ce.__v),He.l)):He.l&&He.componentWillUnmount()}(ye.prototype=new l.a).__e=function(Ce){var He=this,me=_e(He.__v),Ve=He.o.get(Ce);return Ve[0]++,function(ke){var Xe=function(){He.props.revealOrder?(Ve.push(ke),Ne(He,Ce,Ve)):ke()};me?me(Xe):Xe()}},ye.prototype.render=function(Ce){this.u=null,this.o=new Map;var He=Object(l.k)(Ce.children);Ce.revealOrder&&Ce.revealOrder[0]==="b"&&He.reverse();for(var me=He.length;me--;)this.o.set(He[me],this.u=[1,0,this.u]);return Ce.children},ye.prototype.componentDidUpdate=ye.prototype.componentDidMount=function(){var Ce=this;this.o.forEach(function(He,me){Ne(Ce,me,He)})};var be=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,pe=/^(?: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]/,Me=typeof document!="undefined",Ze=function(Ce){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(Ce)};l.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(Ce){Object.defineProperty(l.a.prototype,Ce,{configurable:!0,get:function(){return this["UNSAFE_"+Ce]},set:function(He){Object.defineProperty(this,Ce,{configurable:!0,writable:!0,value:He})}})});var Be=l.i.event;function $e(){}function Je(){return this.cancelBubble}function Oe(){return this.defaultPrevented}l.i.event=function(Ce){return Be&&(Ce=Be(Ce)),Ce.persist=$e,Ce.isPropagationStopped=Je,Ce.isDefaultPrevented=Oe,Ce.nativeEvent=Ce};var Ye,ut={configurable:!0,get:function(){return this.class}},qe=l.i.vnode;l.i.vnode=function(Ce){var He=Ce.type,me=Ce.props,Ve=me;if(typeof He=="string"){var ke=He.indexOf("-")===-1;for(var Xe in Ve={},me){var nt=me[Xe];Me&&Xe==="children"&&He==="noscript"||Xe==="value"&&"defaultValue"in me&&nt==null||(Xe==="defaultValue"&&"value"in me&&me.value==null?Xe="value":Xe==="download"&&nt===!0?nt="":/ondoubleclick/i.test(Xe)?Xe="ondblclick":/^onchange(textarea|input)/i.test(Xe+He)&&!Ze(me.type)?Xe="oninput":/^onfocus$/i.test(Xe)?Xe="onfocusin":/^onblur$/i.test(Xe)?Xe="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(Xe)?Xe=Xe.toLowerCase():ke&&pe.test(Xe)?Xe=Xe.replace(/[A-Z0-9]/,"-$&").toLowerCase():nt===null&&(nt=void 0),Ve[Xe]=nt)}He=="select"&&Ve.multiple&&Array.isArray(Ve.value)&&(Ve.value=Object(l.k)(me.children).forEach(function(Ft){Ft.props.selected=Ve.value.indexOf(Ft.props.value)!=-1})),He=="select"&&Ve.defaultValue!=null&&(Ve.value=Object(l.k)(me.children).forEach(function(Ft){Ft.props.selected=Ve.multiple?Ve.defaultValue.indexOf(Ft.props.value)!=-1:Ve.defaultValue==Ft.props.value})),Ce.props=Ve,me.class!=me.className&&(ut.enumerable="className"in me,me.className!=null&&(Ve.class=me.className),Object.defineProperty(Ve,"className",ut))}Ce.$$typeof=be,qe&&qe(Ce)};var ot=l.i.__r;l.i.__r=function(Ce){ot&&ot(Ce),Ye=Ce.__c};var ft={ReactCurrentDispatcher:{current:{readContext:function(Ce){return Ye.__n[Ce.__c].props.value}}}};function kt(Ce){return!!Ce&&Ce.$$typeof===be}var Wt=function(Ce,He){return Ce(He)},Ct=l.b,ln={useState:C,useReducer:P,useEffect:$,useLayoutEffect:T,useRef:function(Ce){return u=5,A(function(){return{current:Ce}},[])},useImperativeHandle:function(Ce,He,me){u=6,T(function(){typeof Ce=="function"?Ce(He()):Ce&&(Ce.current=He())},me==null?me:me.concat(Ce))},useMemo:A,useCallback:R,useContext:function(Ce){var He=a.context[Ce.__c],me=k(i++,9);return me.c=Ce,He?(me.__==null&&(me.__=!0,He.sub(a)),He.props.value):Ce.__},useDebugValue:function(Ce,He){l.i.useDebugValue&&l.i.useDebugValue(He?He(Ce):Ce)},version:"17.0.2",Children:he,render:function(Ce,He,me){return He.__k==null&&(He.textContent=""),Object(l.j)(Ce,He),typeof me=="function"&&me(),Ce?Ce.__c:null},hydrate:function(Ce,He,me){return Object(l.h)(Ce,He),typeof me=="function"&&me(),Ce?Ce.__c:null},unmountComponentAtNode:function(Ce){return!!Ce.__k&&(Object(l.j)(null,Ce),!0)},createPortal:function(Ce,He){return Object(l.e)(ce,{__v:Ce,i:He})},createElement:l.e,createContext:l.d,createFactory:function(Ce){return l.e.bind(null,Ce)},cloneElement:function(Ce){return kt(Ce)?l.c.apply(null,arguments):Ce},createRef:l.f,Fragment:l.b,isValidElement:kt,findDOMNode:function(Ce){return Ce&&(Ce.base||Ce.nodeType===1&&Ce)||null},Component:l.a,PureComponent:H,memo:oe,forwardRef:X,flushSync:function(Ce,He){return Ce(He)},unstable_batchedUpdates:Wt,StrictMode:Ct,Suspense:Ae,SuspenseList:ye,lazy:function(Ce){var He,me,Ve;function ke(Xe){if(He||(He=Ce()).then(function(nt){me=nt.default||nt},function(nt){Ve=nt}),Ve)throw Ve;if(!me)throw He;return Object(l.e)(me,Xe)}return ke.displayName="Lazy",ke.__f=!0,ke},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ft};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 T(){}return!(w(function(){},[],T)instanceof T)}),P=!y(function(){w(function(){})}),$=C||P;i({target:"Reflect",stat:!0,forced:$,sham:$},{construct:function(T,A){u(T),d(A);var R=arguments.length<3?T:u(arguments[2]);if(P&&!C)return w(T,A,R);if(T==R){switch(A.length){case 0:return new T;case 1:return new T(A[0]);case 2:return new T(A[0],A[1]);case 3:return new T(A[0],A[1],A[2]);case 4:return new T(A[0],A[1],A[2],A[3])}var B=[null];return s(k,B,A),new(s(l,T,B))}var N=R.prototype,I=v(p(N)?N:b),D=s(T,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,P,$=v.target,T=v.global,A=v.stat;if(w=T?i:A?i[$]||u($,{}):(i[$]||{}).prototype)for(b in y){if(C=y[b],k=v.noTargetGet?(P=a(w,b))&&P.value:w[b],!p(T?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"),P=w("species"),$=a.Array,T=Math.max;i({target:"Array",proto:!0,forced:!C},{slice:function(A,R){var B,N,I,D=v(this),j=p(D),F=d(A,j),G=d(R===void 0?j:R,j);if(s(D)&&(B=D.constructor,(l(B)&&(B===$||s(B.prototype))||u(B)&&(B=B[P])===null)&&(B=void 0),B===$||B===void 0))return k(D,F,G);for(N=new(B===void 0?$:B)(T(G-F,0)),I=0;F<G;F++,I++)F in D&&y(N,I,D[F]);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={},P=0;k.length>P;)(y=b(w,v=k[P++]))!==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"),P=9007199254740991,$="Maximum allowed index exceeded",T=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,j,F,G,ae=d(this),K=y(ae,0),H=0;for(I=-1,j=arguments.length;I<j;I++)if(B(G=I===-1?ae:arguments[I])){if(H+(F=p(G))>P)throw T($);for(D=0;D<F;D++,H++)D in G&&v(K,H,G[D])}else{if(H>=P)throw T($);v(K,H++,G)}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,P,$){var T,A=!!$&&!!$.unsafe,R=!!$&&!!$.enumerable,B=!!$&&!!$.noTargetGet,N=$&&$.name!==void 0?$.name:C;a(P)&&(String(N).slice(0,7)==="Symbol("&&(N="["+String(N).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!s(P,"name")||v&&P.name!==N)&&l(P,"name",N),(T=w(P)).source||(T.source=b.join(typeof N=="string"?N:""))),k!==i?(A?!B&&k[C]&&(R=!0):delete k[C],R?k[C]=P:l(k,C,P)):R?k[C]=P:u(C,P)})(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,P=b.call(y),$=[];try{for(;(w===void 0||w-- >0)&&!(k=P.next()).done;)$.push(k.value)}catch(T){C={error:T}}finally{try{k&&!k.done&&(b=P.return)&&b.call(P)}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",P=u.TypeError,$=u.WeakMap;if(l||w.state){var T=w.state||(w.state=new $),A=d(T.get),R=d(T.has),B=d(T.set);i=function(I,D){if(R(T,I))throw new P(C);return D.facade=I,B(T,I,D),D},a=function(I){return A(T,I)||{}},s=function(I){return R(T,I)}}else{var N=b("state");k[N]=!0,i=function(I,D){if(y(I,N))throw new P(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 j;if(!p(D)||(j=a(D)).type!==I)throw P("Incompatible receiver, "+I+" required");return j}}}},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(P){return"<script>"+P+"<\/script>"},k=function(P){P.write(b("")),P.close();var $=P.parentWindow.Object;return P=null,$},C=function(){try{i=new ActiveXObject("htmlfile")}catch{}var P,$;C=typeof document!="undefined"?document.domain&&i?k(i):(($=p("iframe")).style.display="none",d.appendChild($),$.src=String("javascript:"),(P=$.contentWindow.document).open(),P.write(b("document.F=Object")),P.close(),P.F):k(i);for(var T=l.length;T--;)delete C.prototype[l[T]];return C()};u[y]=!0,n.exports=Object.create||function(P,$){var T;return P!==null?(w.prototype=a(P),T=new w,w.prototype=null,T[y]=P):T=C(),$===void 0?T:s(T,$)}},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,P=o(38).f,$=o(160),T=o(161).trim,A="Number",R=a.Number,B=R.prototype,N=a.TypeError,I=s("".slice),D=s("".charCodeAt),j=function(oe){var J=w(oe,"number");return typeof J=="bigint"?J:F(J)},F=function(oe){var J,z,X,ee,he,fe,Le,Ie,ze=w(oe,"number");if(y(ze))throw N("Cannot convert a Symbol value to a number");if(typeof ze=="string"&&ze.length>2){if(ze=T(ze),(J=D(ze,0))===43||J===45){if((z=D(ze,2))===88||z===120)return NaN}else if(J===48){switch(D(ze,1)){case 66:case 98:X=2,ee=49;break;case 79:case 111:X=8,ee=55;break;default:return+ze}for(fe=(he=I(ze,2)).length,Le=0;Le<fe;Le++)if((Ie=D(he,Le))<48||Ie>ee)return NaN;return parseInt(he,X)}}return+ze};if(l(A,!R(" 0o1")||!R("0b1")||R("+0x1"))){for(var G,ae=function(oe){var J=arguments.length<1?0:R(j(oe)),z=this;return v(B,z)&&b(function(){$(z)})?p(Object(J),z,ae):J},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,G=K[H])&&!d(ae,G)&&P(ae,G,C(R,G));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"}),P=a&&b.name!=y;(C||P)&&s(RegExp.prototype,y,function(){var $=l(this),T=d($.source),A=$.flags;return"/"+T+"/"+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,P=y==6,$=y==7,T=y==5||P;return function(A,R,B,N){for(var I,D,j=l(A),F=s(j),G=i(R,B),ae=u(F),K=0,H=N||d,oe=w?H(A,ae):b||$?H(A,0):void 0;ae>K;K++)if((T||K in F)&&(D=G(I=F[K],K,j),y))if(w)oe[K]=D;else if(D)switch(y){case 3:return!0;case 5:return I;case 6:return K;case 2:p(oe,I)}else switch(y){case 4:return!1;case 7:p(oe,I)}return P?-1:k||C?C:oe}};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),P=o(125),$=o(103),T=o(155),A=o(18),R=T.UNSUPPORTED_Y,B=4294967295,N=Math.min,I=[].push,D=s(/./.exec),j=s(I),F=s("".slice),G=!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 oe;return oe="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(J,z){var X=b(p(this)),ee=z===void 0?B:z>>>0;if(ee===0)return[];if(J===void 0)return[X];if(!u(J))return a(K,X,J,ee);for(var he,fe,Le,Ie=[],ze=(J.ignoreCase?"i":"")+(J.multiline?"m":"")+(J.unicode?"u":"")+(J.sticky?"y":""),Ae=0,_e=new RegExp(J.source,ze+"g");(he=a($,_e,X))&&!((fe=_e.lastIndex)>Ae&&(j(Ie,F(X,Ae,he.index)),he.length>1&&he.index<X.length&&i(I,Ie,C(he,1)),Le=he[0].length,Ae=fe,Ie.length>=ee));)_e.lastIndex===he.index&&_e.lastIndex++;return Ae===X.length?!Le&&D(_e,"")||j(Ie,""):j(Ie,F(X,Ae)),Ie.length>ee?C(Ie,0,ee):Ie}:"0".split(void 0,0).length?function(J,z){return J===void 0&&z===0?[]:a(K,this,J,z)}:K,[function(J,z){var X=p(this),ee=J==null?void 0:k(J,ae);return ee?a(ee,J,X,z):a(oe,b(X),J,z)},function(J,z){var X=d(this),ee=b(J),he=H(oe,X,ee,z,oe!==K);if(he.done)return he.value;var fe=v(X,RegExp),Le=X.unicode,Ie=(X.ignoreCase?"i":"")+(X.multiline?"m":"")+(X.unicode?"u":"")+(R?"g":"y"),ze=new fe(R?"^(?:"+X.source+")":X,Ie),Ae=z===void 0?B:z>>>0;if(Ae===0)return[];if(ee.length===0)return P(ze,ee)===null?[ee]:[];for(var _e=0,ye=0,Ne=[];ye<ee.length;){ze.lastIndex=R?0:ye;var Se,ce=P(ze,R?F(ee,ye):ee);if(ce===null||(Se=N(w(ze.lastIndex+(R?ye:0)),ee.length))===_e)ye=y(ee,ye,Le);else{if(j(Ne,F(ee,_e,ye)),Ne.length===Ae)return Ne;for(var be=1;be<=ce.length-1;be++)if(j(Ne,ce[be]),Ne.length===Ae)return Ne;ye=_e=Se}}return j(Ne,F(ee,_e)),Ne}]},!G,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(P){if(!s(P))return!1;try{return y(p,v,P),!0}catch{return!1}};n.exports=!y||a(function(){var P;return C(C.call)||!C(Object)||!C(function(){P=!0})||P})?function(P){if(!s(P))return!1;switch(l(P)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return k||!!b(w,d(P))}: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),P=RegExp.prototype.exec,$=P,T=l("".charAt),A=l("".indexOf),R=l("".replace),B=l("".slice),N=(a=/b*/g,s(P,i=/a/,"a"),s(P,a,"a"),i.lastIndex!==0||a.lastIndex!==0),I=p.BROKEN_CARET,D=/()??/.exec("")[1]!==void 0;(N||D||I||b||k)&&($=function(j){var F,G,ae,K,H,oe,J,z=this,X=w(z),ee=u(j),he=X.raw;if(he)return he.lastIndex=z.lastIndex,F=s($,he,ee),z.lastIndex=he.lastIndex,F;var fe=X.groups,Le=I&&z.sticky,Ie=s(d,z),ze=z.source,Ae=0,_e=ee;if(Le&&(Ie=R(Ie,"y",""),A(Ie,"g")===-1&&(Ie+="g"),_e=B(ee,z.lastIndex),z.lastIndex>0&&(!z.multiline||z.multiline&&T(ee,z.lastIndex-1)!==`
- `)&&(ze="(?: "+ze+")",_e=" "+_e,Ae++),G=new RegExp("^(?:"+ze+")",Ie)),D&&(G=new RegExp("^"+ze+"$(?!\\s)",Ie)),N&&(ae=z.lastIndex),K=s(P,Le?G:z,_e),Le?K?(K.input=B(K.input,Ae),K[0]=B(K[0],Ae),K.index=z.lastIndex,z.lastIndex+=K[0].length):z.lastIndex=0:N&&K&&(z.lastIndex=z.global?K.index+K[0].length:ae),D&&K&&K.length>1&&s(C,K[0],G,function(){for(H=1;H<arguments.length-2;H++)arguments[H]===void 0&&(K[H]=void 0)}),K&&fe)for(K.groups=oe=y(null),H=0;H<fe.length;H++)oe[(J=fe[H])[0]]=K[J[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,P="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!y},{splice:function($,T){var A,R,B,N,I,D,j=d(this),F=u(j),G=s($,F),ae=arguments.length;if(ae===0?A=R=0:ae===1?(A=0,R=F-G):(A=ae-2,R=k(b(l(T),0),F-G)),F+A-R>C)throw w(P);for(B=p(j,R),N=0;N<R;N++)(I=G+N)in j&&v(B,N,j[I]);if(B.length=R,A<R){for(N=G;N<F-R;N++)D=N+A,(I=N+R)in j?j[D]=j[I]:delete j[D];for(N=F;N>F-R+A;N--)delete j[N-1]}else if(A>R)for(N=F-R;N>G;N--)D=N+A-1,(I=N+R-1)in j?j[D]=j[I]:delete j[D];for(N=0;N<A;N++)j[N+G]=arguments[N+2];return j.length=F-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)),P=0;b<k;b++,P++)l(C,P,p[b]);return C.length=P,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),P=o(142),$=l.PROPER,T=l.CONFIGURABLE,A=P.IteratorPrototype,R=P.BUGGY_SAFARI_ITERATORS,B=k("iterator"),N="keys",I="values",D="entries",j=function(){return this};n.exports=function(F,G,ae,K,H,oe,J){d(ae,G,K);var z,X,ee,he=function(ye){if(ye===H&&Ae)return Ae;if(!R&&ye in Ie)return Ie[ye];switch(ye){case N:case I:case D:return function(){return new ae(this,ye)}}return function(){return new ae(this)}},fe=G+" Iterator",Le=!1,Ie=F.prototype,ze=Ie[B]||Ie["@@iterator"]||H&&Ie[H],Ae=!R&&ze||he(H),_e=G=="Array"&&Ie.entries||ze;if(_e&&(z=p(_e.call(new F)))!==Object.prototype&&z.next&&(s||p(z)===A||(v?v(z,A):u(z[B])||b(z,B,j)),y(z,fe,!0,!0),s&&(C[fe]=j)),$&&H==I&&ze&&ze.name!==I&&(!s&&T?w(Ie,"name",I):(Le=!0,Ae=function(){return a(ze,this)})),H)if(X={values:he(I),keys:oe?Ae:he(N),entries:he(D)},J)for(ee in X)(R||Le||!(ee in Ie))&&b(Ie,ee,X[ee]);else i({target:G,proto:!0,forced:R||Le},X);return s&&!J||Ie[B]===Ae||b(Ie,B,Ae,{name:H}),C[G]=Ae,X}},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($,T){this.stopped=$,this.result=T},P=C.prototype;n.exports=function($,T,A){var R,B,N,I,D,j,F,G=A&&A.that,ae=!(!A||!A.AS_ENTRIES),K=!(!A||!A.IS_ITERATOR),H=!(!A||!A.INTERRUPTED),oe=a(T,G),J=function(X){return R&&b(R,"normal",X),new C(!0,X)},z=function(X){return ae?(l(X),H?oe(X[0],X[1],J):oe(X[0],X[1])):H?oe(X,J):oe(X)};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=z($[N]))&&v(P,D))return D;return new C(!1)}R=y($,B)}for(j=R.next;!(F=s(j,R)).done;){try{D=z(F.value)}catch(X){b(R,"throw",X)}if(typeof D=="object"&&D&&v(P,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),P=!l(function(){var R={};return R[C]=function(){return 7},""[y](R)!=7}),$=P&&!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(!P||!$||b){var T=i(/./[C]),A=w(C,""[y],function(R,B,N,I,D){var j=i(R),F=B.exec;return F===s||F===v.exec?P&&!D?{done:!0,value:T(B,N,I)}:{done:!0,value:j(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),P=o(201),$=o(125),T=o(28)("replace"),A=Math.max,R=Math.min,B=s([].concat),N=s([].push),I=s("".indexOf),D=s("".slice),j="a".replace(/./,"$0")==="$0",F=!!/./[T]&&/./[T]("a","$0")==="";l("replace",function(G,ae,K){var H=F?"$":"$0";return[function(oe,J){var z=b(this),X=oe==null?void 0:C(oe,T);return X?a(X,oe,z,J):a(ae,w(z),oe,J)},function(oe,J){var z=d(this),X=w(oe);if(typeof J=="string"&&I(J,H)===-1&&I(J,"$<")===-1){var ee=K(ae,z,X,J);if(ee.done)return ee.value}var he=p(J);he||(J=w(J));var fe=z.global;if(fe){var Le=z.unicode;z.lastIndex=0}for(var Ie=[];;){var ze=$(z,X);if(ze===null||(N(Ie,ze),!fe))break;w(ze[0])===""&&(z.lastIndex=k(X,y(z.lastIndex),Le))}for(var Ae,_e="",ye=0,Ne=0;Ne<Ie.length;Ne++){for(var Se=w((ze=Ie[Ne])[0]),ce=A(R(v(ze.index),X.length),0),be=[],pe=1;pe<ze.length;pe++)N(be,(Ae=ze[pe])===void 0?Ae:String(Ae));var Me=ze.groups;if(he){var Ze=B([Se],be,ce,X);Me!==void 0&&N(Ze,Me);var Be=w(i(J,void 0,Ze))}else Be=P(Se,X,ce,be,Me,J);ce>=ye&&(_e+=D(X,ye,ce)+Be,ye=ce+Se.length)}return _e+D(X,ye)}]},!!u(function(){var G=/./;return G.exec=function(){var ae=[];return ae.groups={a:"7"},ae},"".replace(G,"$<a>")!=="7"})||!j||F)},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;/**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */(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,P=9007199254740991,$=NaN,T=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]",j="[object Function]",F="[object GeneratorFunction]",G="[object Map]",ae="[object Number]",K="[object Object]",H="[object Promise]",oe="[object RegExp]",J="[object Set]",z="[object String]",X="[object Symbol]",ee="[object WeakMap]",he="[object ArrayBuffer]",fe="[object DataView]",Le="[object Float32Array]",Ie="[object Float64Array]",ze="[object Int8Array]",Ae="[object Int16Array]",_e="[object Int32Array]",ye="[object Uint8Array]",Ne="[object Uint8ClampedArray]",Se="[object Uint16Array]",ce="[object Uint32Array]",be=/\b__p \+= '';/g,pe=/\b(__p \+=) '' \+/g,Me=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ze=/&(?:amp|lt|gt|quot|#39);/g,Be=/[&<>"']/g,$e=RegExp(Ze.source),Je=RegExp(Be.source),Oe=/<%-([\s\S]+?)%>/g,Ye=/<%([\s\S]+?)%>/g,ut=/<%=([\s\S]+?)%>/g,qe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ot=/^\w*$/,ft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kt=/[\\^$.*+?()[\]{}|]/g,Wt=RegExp(kt.source),Ct=/^\s+/,ln=/\s/,Ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,He=/\{\n\/\* \[wrapped with (.+)\] \*/,me=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ke=/[()=,{}\[\]\/\s]/,Xe=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ft=/\w*$/,Vn=/^[-+]0x[0-9a-f]+$/i,rt=/^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,jr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",to="\\u2700-\\u27bf",ya="a-z\\xdf-\\xf6\\xf8-\\xff",fi="A-Z\\xc0-\\xd6\\xd8-\\xde",Fa="\\ufe0e\\ufe0f",ba="\\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",Af="['\u2019]",Ql="[\\ud800-\\udfff]",Wi="["+ba+"]",ll="["+jr+"]",bn="\\d+",Sc="[\\u2700-\\u27bf]",wt="["+ya+"]",rn="[^\\ud800-\\udfff"+ba+bn+to+ya+fi+"]",Yn="\\ud83c[\\udffb-\\udfff]",dr="[^\\ud800-\\udfff]",Yi="(?:\\ud83c[\\udde6-\\uddff]){2}",ii="[\\ud800-\\udbff][\\udc00-\\udfff]",Xo="["+fi+"]",Go="(?:"+wt+"|"+rn+")",di="(?:"+Xo+"|"+rn+")",_t="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",cn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Bn="(?:"+ll+"|"+Yn+")?",_r="[\\ufe0e\\ufe0f]?",Ni=_r+Bn+("(?:\\u200d(?:"+[dr,Yi,ii].join("|")+")"+_r+Bn+")*"),cs="(?:"+[Sc,Yi,ii].join("|")+")"+Ni,Du="(?:"+[dr+ll+"?",ll,Yi,ii,Ql].join("|")+")",Tv=RegExp(Af,"g"),Wl=RegExp(ll,"g"),Tp=RegExp(Yn+"(?="+Yn+")|"+Du+Ni,"g"),Md=RegExp([Xo+"?"+wt+"+"+_t+"(?="+[Wi,Xo,"$"].join("|")+")",di+"+"+cn+"(?="+[Wi,Xo+Go,"$"].join("|")+")",Xo+"?"+Go+"+"+_t,Xo+"+"+cn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bn,cs].join("|"),"g"),Pp=RegExp("[\\u200d\\ud800-\\udfff"+jr+Fa+"]"),$p=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$0=["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"],Pv=-1,Gr={};Gr[Le]=Gr[Ie]=Gr[ze]=Gr[Ae]=Gr[_e]=Gr[ye]=Gr[Ne]=Gr[Se]=Gr[ce]=!0,Gr[R]=Gr[B]=Gr[he]=Gr[N]=Gr[fe]=Gr[I]=Gr[D]=Gr[j]=Gr[G]=Gr[ae]=Gr[K]=Gr[oe]=Gr[J]=Gr[z]=Gr[ee]=!1;var Xr={};Xr[R]=Xr[B]=Xr[he]=Xr[fe]=Xr[N]=Xr[I]=Xr[Le]=Xr[Ie]=Xr[ze]=Xr[Ae]=Xr[_e]=Xr[G]=Xr[ae]=Xr[K]=Xr[oe]=Xr[J]=Xr[z]=Xr[X]=Xr[ye]=Xr[Ne]=Xr[Se]=Xr[ce]=!0,Xr[D]=Xr[j]=Xr[ee]=!1;var $v={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xc=parseFloat,Yl=parseInt,Ap=typeof i=="object"&&i&&i.Object===Object&&i,Av=typeof self=="object"&&self&&self.Object===Object&&self,zo=Ap||Av||Function("return this")(),Mp=r&&!r.nodeType&&r,Mf=Mp&&typeof a=="object"&&a&&!a.nodeType&&a,Rp=Mf&&Mf.exports===Mp,Rd=Rp&&Ap.process,Ii=function(){try{var mt=Mf&&Mf.require&&Mf.require("util").types;return mt||Rd&&Rd.binding&&Rd.binding("util")}catch{}}(),Np=Ii&&Ii.isArrayBuffer,Mv=Ii&&Ii.isDate,Ip=Ii&&Ii.isMap,Nd=Ii&&Ii.isRegExp,kc=Ii&&Ii.isSet,ul=Ii&&Ii.isTypedArray;function uo(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 Rv(mt,At,It,sn){for(var sr=-1,Tr=mt==null?0:mt.length;++sr<Tr;){var go=mt[sr];At(sn,go,It(go),mt)}return sn}function _a(mt,At){for(var It=-1,sn=mt==null?0:mt.length;++It<sn&&At(mt[It],It,mt)!==!1;);return mt}function Nv(mt,At){for(var It=mt==null?0:mt.length;It--&&At(mt[It],It,mt)!==!1;);return mt}function Iv(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 ia(mt,At){for(var It=-1,sn=mt==null?0:mt.length,sr=0,Tr=[];++It<sn;){var go=mt[It];At(go,It,mt)&&(Tr[sr++]=go)}return Tr}function Oa(mt,At){return!!(mt!=null&&mt.length)&&Cc(mt,At,0)>-1}function Dp(mt,At,It){for(var sn=-1,sr=mt==null?0:mt.length;++sn<sr;)if(It(At,mt[sn]))return!0;return!1}function Lr(mt,At){for(var It=-1,sn=mt==null?0:mt.length,sr=Array(sn);++It<sn;)sr[It]=At(mt[It],It,mt);return sr}function hi(mt,At){for(var It=-1,sn=At.length,sr=mt.length;++It<sn;)mt[sr+It]=At[It];return mt}function Id(mt,At,It,sn){var sr=-1,Tr=mt==null?0:mt.length;for(sn&&Tr&&(It=mt[++sr]);++sr<Tr;)It=At(It,mt[sr],sr,mt);return It}function Dv(mt,At,It,sn){var sr=mt==null?0:mt.length;for(sn&&sr&&(It=mt[--sr]);sr--;)It=At(It,mt[sr],sr,mt);return It}function jp(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 Dd=Sa("length");function cl(mt,At,It){var sn;return It(mt,function(sr,Tr,go){if(At(sr,Tr,go))return sn=Tr,!1}),sn}function Zl(mt,At,It,sn){for(var sr=mt.length,Tr=It+(sn?1:-1);sn?Tr--:++Tr<sr;)if(At(mt[Tr],Tr,mt))return Tr;return-1}function Cc(mt,At,It){return At==At?function(sn,sr,Tr){for(var go=Tr-1,Q=sn.length;++go<Q;)if(sn[go]===sr)return go;return-1}(mt,At,It):Zl(mt,Ul,It)}function wa(mt,At,It,sn){for(var sr=It-1,Tr=mt.length;++sr<Tr;)if(sn(mt[sr],At))return sr;return-1}function Ul(mt){return mt!=mt}function Rr(mt,At){var It=mt==null?0:mt.length;return It?jd(mt,At)/It:$}function Sa(mt){return function(At){return At==null?l:At[mt]}}function fl(mt){return function(At){return mt==null?l:mt[At]}}function wi(mt,At,It,sn,sr){return sr(mt,function(Tr,go,Q){It=sn?(sn=!1,Tr):At(It,Tr,go,Q)}),It}function jd(mt,At){for(var It,sn=-1,sr=mt.length;++sn<sr;){var Tr=At(mt[sn]);Tr!==l&&(It=It===l?Tr:It+Tr)}return It}function Rf(mt,At){for(var It=-1,sn=Array(mt);++It<mt;)sn[It]=At(It);return sn}function Lp(mt){return mt&&mt.slice(0,xa(mt)+1).replace(Ct,"")}function Ro(mt){return function(At){return mt(At)}}function Ld(mt,At){return Lr(At,function(It){return mt[It]})}function Hl(mt,At){return mt.has(At)}function fs(mt,At){for(var It=-1,sn=mt.length;++It<sn&&Cc(At,mt[It],0)>-1;);return It}function Bp(mt,At){for(var It=mt.length;It--&&Cc(At,mt[It],0)>-1;);return It}function A0(mt,At){for(var It=mt.length,sn=0;It--;)mt[It]===At&&++sn;return sn}var Vp=fl({\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"}),ai=fl({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ec(mt){return"\\"+$v[mt]}function dl(mt){return Pp.test(mt)}function aa(mt){var At=-1,It=Array(mt.size);return mt.forEach(function(sn,sr){It[++At]=[sr,sn]}),It}function Fp(mt,At){return function(It){return mt(At(It))}}function za(mt,At){for(var It=-1,sn=mt.length,sr=0,Tr=[];++It<sn;){var go=mt[It];go!==At&&go!==p||(mt[It]=p,Tr[sr++]=It)}return Tr}function ju(mt){var At=-1,It=Array(mt.size);return mt.forEach(function(sn){It[++At]=sn}),It}function Bd(mt){var At=-1,It=Array(mt.size);return mt.forEach(function(sn){It[++At]=[sn,sn]}),It}function hl(mt){return dl(mt)?function(At){for(var It=Tp.lastIndex=0;Tp.test(At);)++It;return It}(mt):Dd(mt)}function Qa(mt){return dl(mt)?function(At){return At.match(Tp)||[]}(mt):function(At){return At.split("")}(mt)}function xa(mt){for(var At=mt.length;At--&&ln.test(mt.charAt(At)););return At}var ds=fl({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pl=function mt(At){var It,sn=(At=At==null?zo:pl.defaults(zo.Object(),At,pl.pick(zo,$0))).Array,sr=At.Date,Tr=At.Error,go=At.Function,Q=At.Math,Y=At.Object,se=At.RegExp,Ee=At.String,We=At.TypeError,st=sn.prototype,Ot=go.prototype,Yt=Y.prototype,mn=At["__core-js_shared__"],Or=Ot.toString,fn=Yt.hasOwnProperty,oo=0,ur=(It=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||""))?"Symbol(src)_1."+It:"",Qr=Yt.toString,hs=Or.call(Y),ko=zo._,ka=se("^"+Or.call(fn).replace(kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xl=Rp?At.Buffer:l,Gl=At.Symbol,Nf=At.Uint8Array,zp=Xl?Xl.allocUnsafe:l,Lu=Fp(Y.getPrototypeOf,Y),Vd=Y.create,sa=Yt.propertyIsEnumerable,If=st.splice,Tc=Gl?Gl.isConcatSpreadable:l,Bu=Gl?Gl.iterator:l,Vu=Gl?Gl.toStringTag:l,Qp=function(){try{var S=Ic(Y,"defineProperty");return S({},"",{}),S}catch{}}(),pE=At.clearTimeout!==zo.clearTimeout&&At.clearTimeout,gE=sr&&sr.now!==zo.Date.now&&sr.now,U1=At.setTimeout!==zo.setTimeout&&At.setTimeout,jv=Q.ceil,Fd=Q.floor,M0=Y.getOwnPropertySymbols,vE=Xl?Xl.isBuffer:l,H1=At.isFinite,mE=st.join,X1=Fp(Y.keys,Y),Si=Q.max,la=Q.min,Lv=sr.now,Bv=At.parseInt,Vv=Q.random,yE=st.reverse,zd=Ic(At,"DataView"),Kl=Ic(At,"Map"),R0=Ic(At,"Promise"),Df=Ic(At,"Set"),Qd=Ic(At,"WeakMap"),Wp=Ic(Y,"create"),Fv=Qd&&new Qd,Wd={},bE=Za(zd),G1=Za(Kl),_E=Za(R0),OE=Za(Df),K1=Za(Qd),zv=Gl?Gl.prototype:l,xi=zv?zv.valueOf:l,q1=zv?zv.toString:l;function Te(S){if(Do(S)&&!hr(S)&&!(S instanceof Dr)){if(S instanceof Ls)return S;if(fn.call(S,"__wrapped__"))return Aw(S)}return new Ls(S)}var Yd=function(){function S(){}return function(E){if(!Io(E))return{};if(Vd)return Vd(E);S.prototype=E;var V=new S;return S.prototype=l,V}}();function Yp(){}function Ls(S,E){this.__wrapped__=S,this.__actions__=[],this.__chain__=!!E,this.__index__=0,this.__values__=l}function Dr(S){this.__wrapped__=S,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=T,this.__views__=[]}function jf(S){var E=-1,V=S==null?0:S.length;for(this.clear();++E<V;){var ie=S[E];this.set(ie[0],ie[1])}}function io(S){var E=-1,V=S==null?0:S.length;for(this.clear();++E<V;){var ie=S[E];this.set(ie[0],ie[1])}}function ql(S){var E=-1,V=S==null?0:S.length;for(this.clear();++E<V;){var ie=S[E];this.set(ie[0],ie[1])}}function Pc(S){var E=-1,V=S==null?0:S.length;for(this.__data__=new ql;++E<V;)this.add(S[E])}function Bs(S){var E=this.__data__=new io(S);this.size=E.size}function N0(S,E){var V=hr(S),ie=!V&&Qf(S),ge=!V&&!ie&&Zu(S),Re=!V&&!ie&&!ge&&Dc(S),et=V||ie||ge||Re,it=et?Rf(S.length,Ee):[],pt=it.length;for(var Ue in S)!E&&!fn.call(S,Ue)||et&&(Ue=="length"||ge&&(Ue=="offset"||Ue=="parent")||Re&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||ru(Ue,pt))||it.push(Ue);return it}function I0(S){var E=S.length;return E?S[Q0(0,E-1)]:l}function J1(S,E){return Bf(Ya(S),$c(E,0,S.length))}function ew(S){return Bf(Ya(S))}function Qv(S,E,V){(V!==l&&!Po(S[E],V)||V===l&&!(E in S))&&Jl(S,E,V)}function Zd(S,E,V){var ie=S[E];fn.call(S,E)&&Po(ie,V)&&(V!==l||E in S)||Jl(S,E,V)}function Zp(S,E){for(var V=S.length;V--;)if(Po(S[V][0],E))return V;return-1}function tw(S,E,V,ie){return Co(S,function(ge,Re,et){E(ie,ge,V(ge),et)}),ie}function D0(S,E){return S&&eu(E,vi(E),S)}function Jl(S,E,V){E=="__proto__"&&Qp?Qp(S,E,{configurable:!0,enumerable:!0,value:V,writable:!0}):S[E]=V}function Wv(S,E){for(var V=-1,ie=E.length,ge=sn(ie),Re=S==null;++V<ie;)ge[V]=Re?l:ig(S,E[V]);return ge}function $c(S,E,V){return S==S&&(V!==l&&(S=S<=V?S:V),E!==l&&(S=S>=E?S:E)),S}function ps(S,E,V,ie,ge,Re){var et,it=1&E,pt=2&E,Ue=4&E;if(V&&(et=ge?V(S,ie,ge,Re):V(S)),et!==l)return et;if(!Io(S))return S;var Mt=hr(S);if(Mt){if(et=function(Bt){var qt=Bt.length,Kn=new Bt.constructor(qt);return qt&&typeof Bt[0]=="string"&&fn.call(Bt,"index")&&(Kn.index=Bt.index,Kn.input=Bt.input),Kn}(S),!it)return Ya(S,et)}else{var Ut=Zi(S),kn=Ut==j||Ut==F;if(Zu(S))return G0(S,it);if(Ut==K||Ut==R||kn&&!ge){if(et=pt||kn?{}:rb(S),!it)return pt?function(Bt,qt){return eu(Bt,$t(Bt),qt)}(S,function(Bt,qt){return Bt&&eu(qt,ji(qt),Bt)}(et,S)):function(Bt,qt){return eu(Bt,tb(Bt),qt)}(S,D0(et,S))}else{if(!Xr[Ut])return ge?S:{};et=function(Bt,qt,Kn){var On=Bt.constructor;switch(qt){case he:return K0(Bt);case N:case I:return new On(+Bt);case fe:return function(ir,$r){var jn=$r?K0(ir.buffer):ir.buffer;return new ir.constructor(jn,ir.byteOffset,ir.byteLength)}(Bt,Kn);case Le:case Ie:case ze:case Ae:case _e:case ye:case Ne:case Se:case ce:return mo(Bt,Kn);case G:return new On;case ae:case z:return new On(Bt);case oe:return function(ir){var $r=new ir.constructor(ir.source,Ft.exec(ir));return $r.lastIndex=ir.lastIndex,$r}(Bt);case J:return new On;case X:return qn=Bt,xi?Y(xi.call(qn)):{}}var qn}(S,Ut,it)}}Re||(Re=new Bs);var Nn=Re.get(S);if(Nn)return Nn;Re.set(S,et),ih(S)?S.forEach(function(Bt){et.add(ps(Bt,E,V,Bt,S,Re))}):Qw(S)&&S.forEach(function(Bt,qt){et.set(qt,ps(Bt,E,V,qt,S,Re))});var Un=Mt?l:(Ue?pt?eb:Kp:pt?ji:vi)(S);return _a(Un||S,function(Bt,qt){Un&&(Bt=S[qt=Bt]),Zd(et,qt,ps(Bt,E,V,qt,S,Re))}),et}function j0(S,E,V){var ie=V.length;if(S==null)return!ie;for(S=Y(S);ie--;){var ge=V[ie],Re=E[ge],et=S[ge];if(et===l&&!(ge in S)||!Re(et))return!1}return!0}function L0(S,E,V){if(typeof S!="function")throw new We(u);return nh(function(){S.apply(l,V)},E)}function Fu(S,E,V,ie){var ge=-1,Re=Oa,et=!0,it=S.length,pt=[],Ue=E.length;if(!it)return pt;V&&(E=Lr(E,Ro(V))),ie?(Re=Dp,et=!1):E.length>=200&&(Re=Hl,et=!1,E=new Pc(E));e:for(;++ge<it;){var Mt=S[ge],Ut=V==null?Mt:V(Mt);if(Mt=ie||Mt!==0?Mt:0,et&&Ut==Ut){for(var kn=Ue;kn--;)if(E[kn]===Ut)continue e;pt.push(Mt)}else Re(E,Ut,ie)||pt.push(Mt)}return pt}Te.templateSettings={escape:Oe,evaluate:Ye,interpolate:ut,variable:"",imports:{_:Te}},Te.prototype=Yp.prototype,Te.prototype.constructor=Te,Ls.prototype=Yd(Yp.prototype),Ls.prototype.constructor=Ls,Dr.prototype=Yd(Yp.prototype),Dr.prototype.constructor=Dr,jf.prototype.clear=function(){this.__data__=Wp?Wp(null):{},this.size=0},jf.prototype.delete=function(S){var E=this.has(S)&&delete this.__data__[S];return this.size-=E?1:0,E},jf.prototype.get=function(S){var E=this.__data__;if(Wp){var V=E[S];return V===d?l:V}return fn.call(E,S)?E[S]:l},jf.prototype.has=function(S){var E=this.__data__;return Wp?E[S]!==l:fn.call(E,S)},jf.prototype.set=function(S,E){var V=this.__data__;return this.size+=this.has(S)?0:1,V[S]=Wp&&E===l?d:E,this},io.prototype.clear=function(){this.__data__=[],this.size=0},io.prototype.delete=function(S){var E=this.__data__,V=Zp(E,S);return!(V<0)&&(V==E.length-1?E.pop():If.call(E,V,1),--this.size,!0)},io.prototype.get=function(S){var E=this.__data__,V=Zp(E,S);return V<0?l:E[V][1]},io.prototype.has=function(S){return Zp(this.__data__,S)>-1},io.prototype.set=function(S,E){var V=this.__data__,ie=Zp(V,S);return ie<0?(++this.size,V.push([S,E])):V[ie][1]=E,this},ql.prototype.clear=function(){this.size=0,this.__data__={hash:new jf,map:new(Kl||io),string:new jf}},ql.prototype.delete=function(S){var E=eh(this,S).delete(S);return this.size-=E?1:0,E},ql.prototype.get=function(S){return eh(this,S).get(S)},ql.prototype.has=function(S){return eh(this,S).has(S)},ql.prototype.set=function(S,E){var V=eh(this,S),ie=V.size;return V.set(S,E),this.size+=V.size==ie?0:1,this},Pc.prototype.add=Pc.prototype.push=function(S){return this.__data__.set(S,d),this},Pc.prototype.has=function(S){return this.__data__.has(S)},Bs.prototype.clear=function(){this.__data__=new io,this.size=0},Bs.prototype.delete=function(S){var E=this.__data__,V=E.delete(S);return this.size=E.size,V},Bs.prototype.get=function(S){return this.__data__.get(S)},Bs.prototype.has=function(S){return this.__data__.has(S)},Bs.prototype.set=function(S,E){var V=this.__data__;if(V instanceof io){var ie=V.__data__;if(!Kl||ie.length<199)return ie.push([S,E]),this.size=++V.size,this;V=this.__data__=new ql(ie)}return V.set(S,E),this.size=V.size,this};var Co=yw($n),nw=yw(vo,!0);function rw(S,E){var V=!0;return Co(S,function(ie,ge,Re){return V=!!E(ie,ge,Re)}),V}function Ko(S,E,V){for(var ie=-1,ge=S.length;++ie<ge;){var Re=S[ie],et=E(Re);if(et!=null&&(it===l?et==et&&!Ui(et):V(et,it)))var it=et,pt=Re}return pt}function Kr(S,E){var V=[];return Co(S,function(ie,ge,Re){E(ie,ge,Re)&&V.push(ie)}),V}function Di(S,E,V,ie,ge){var Re=-1,et=S.length;for(V||(V=Ew),ge||(ge=[]);++Re<et;){var it=S[Re];E>0&&V(it)?E>1?Di(it,E-1,V,ie,ge):hi(ge,it):ie||(ge[ge.length]=it)}return ge}var xr=bw(),si=bw(!0);function $n(S,E){return S&&xr(S,E,vi)}function vo(S,E){return S&&si(S,E,vi)}function Yv(S,E){return ia(E,function(V){return Uu(S[V])})}function zu(S,E){for(var V=0,ie=(E=Mc(E,S)).length;S!=null&&V<ie;)S=S[pi(E[V++])];return V&&V==ie?S:l}function B0(S,E,V){var ie=E(S);return hr(S)?ie:hi(ie,V(S))}function No(S){return S==null?S===l?"[object Undefined]":"[object Null]":Vu&&Vu in Y(S)?function(E){var V=fn.call(E,Vu),ie=E[Vu];try{E[Vu]=l;var ge=!0}catch{}var Re=Qr.call(E);return ge&&(V?E[Vu]=ie:delete E[Vu]),Re}(S):function(E){return Qr.call(E)}(S)}function Qo(S,E){return S>E}function ow(S,E){return S!=null&&fn.call(S,E)}function iw(S,E){return S!=null&&E in Y(S)}function Zv(S,E,V){for(var ie=V?Dp:Oa,ge=S[0].length,Re=S.length,et=Re,it=sn(Re),pt=1/0,Ue=[];et--;){var Mt=S[et];et&&E&&(Mt=Lr(Mt,Ro(E))),pt=la(Mt.length,pt),it[et]=!V&&(E||ge>=120&&Mt.length>=120)?new Pc(et&&Mt):l}Mt=S[0];var Ut=-1,kn=it[0];e:for(;++Ut<ge&&Ue.length<pt;){var Nn=Mt[Ut],Un=E?E(Nn):Nn;if(Nn=V||Nn!==0?Nn:0,!(kn?Hl(kn,Un):ie(Ue,Un,V))){for(et=Re;--et;){var Bt=it[et];if(!(Bt?Hl(Bt,Un):ie(S[et],Un,V)))continue e}kn&&kn.push(Un),Ue.push(Nn)}}return Ue}function Ud(S,E,V){var ie=(S=sb(S,E=Mc(E,S)))==null?S:S[pi(yo(E))];return ie==null?l:uo(ie,S,V)}function V0(S){return Do(S)&&No(S)==R}function Hd(S,E,V,ie,ge){return S===E||(S==null||E==null||!Do(S)&&!Do(E)?S!=S&&E!=E:function(Re,et,it,pt,Ue,Mt){var Ut=hr(Re),kn=hr(et),Nn=Ut?B:Zi(Re),Un=kn?B:Zi(et),Bt=(Nn=Nn==R?K:Nn)==K,qt=(Un=Un==R?K:Un)==K,Kn=Nn==Un;if(Kn&&Zu(Re)){if(!Zu(et))return!1;Ut=!0,Bt=!1}if(Kn&&!Bt)return Mt||(Mt=new Bs),Ut||Dc(Re)?Cw(Re,et,it,pt,Ue,Mt):function(jn,Hn,mi,Hi,ml,ki,iu){switch(mi){case fe:if(jn.byteLength!=Hn.byteLength||jn.byteOffset!=Hn.byteOffset)return!1;jn=jn.buffer,Hn=Hn.buffer;case he:return!(jn.byteLength!=Hn.byteLength||!ki(new Nf(jn),new Nf(Hn)));case N:case I:case ae:return Po(+jn,+Hn);case D:return jn.name==Hn.name&&jn.message==Hn.message;case oe:case z:return jn==Hn+"";case G:var yl=aa;case J:var Gu=1&Hi;if(yl||(yl=ju),jn.size!=Hn.size&&!Gu)return!1;var Ku=iu.get(jn);if(Ku)return Ku==Hn;Hi|=2,iu.set(jn,Hn);var Zf=Cw(yl(jn),yl(Hn),Hi,ml,ki,iu);return iu.delete(jn),Zf;case X:if(xi)return xi.call(jn)==xi.call(Hn)}return!1}(Re,et,Nn,it,pt,Ue,Mt);if(!(1&it)){var On=Bt&&fn.call(Re,"__wrapped__"),qn=qt&&fn.call(et,"__wrapped__");if(On||qn){var ir=On?Re.value():Re,$r=qn?et.value():et;return Mt||(Mt=new Bs),Ue(ir,$r,it,pt,Mt)}}return Kn?(Mt||(Mt=new Bs),function(jn,Hn,mi,Hi,ml,ki){var iu=1&mi,yl=Kp(jn),Gu=yl.length,Ku=Kp(Hn).length;if(Gu!=Ku&&!iu)return!1;for(var Zf=Gu;Zf--;){var qu=yl[Zf];if(!(iu?qu in Hn:fn.call(Hn,qu)))return!1}var dg=ki.get(jn),vs=ki.get(Hn);if(dg&&vs)return dg==Hn&&vs==jn;var km=!0;ki.set(jn,Hn),ki.set(Hn,jn);for(var ms=iu;++Zf<Gu;){var Ln=jn[qu=yl[Zf]],hg=Hn[qu];if(Hi)var qb=iu?Hi(hg,Ln,qu,Hn,jn,ki):Hi(Ln,hg,qu,jn,Hn,ki);if(!(qb===l?Ln===hg||ml(Ln,hg,mi,Hi,ki):qb)){km=!1;break}ms||(ms=qu=="constructor")}if(km&&!ms){var pg=jn.constructor,Cm=Hn.constructor;pg==Cm||!("constructor"in jn)||!("constructor"in Hn)||typeof pg=="function"&&pg instanceof pg&&typeof Cm=="function"&&Cm instanceof Cm||(km=!1)}return ki.delete(jn),ki.delete(Hn),km}(Re,et,it,pt,Ue,Mt)):!1}(S,E,V,ie,Hd,ge))}function Uv(S,E,V,ie){var ge=V.length,Re=ge,et=!ie;if(S==null)return!Re;for(S=Y(S);ge--;){var it=V[ge];if(et&&it[2]?it[1]!==S[it[0]]:!(it[0]in S))return!1}for(;++ge<Re;){var pt=(it=V[ge])[0],Ue=S[pt],Mt=it[1];if(et&&it[2]){if(Ue===l&&!(pt in S))return!1}else{var Ut=new Bs;if(ie)var kn=ie(Ue,Mt,pt,S,E,Ut);if(!(kn===l?Hd(Mt,Ue,3,ie,Ut):kn))return!1}}return!0}function Xd(S){return!(!Io(S)||(E=S,ur&&ur in E))&&(Uu(S)?ka:Lt).test(Za(S));var E}function F0(S){return typeof S=="function"?S:S==null?ca:typeof S=="object"?hr(S)?sw(S[0],S[1]):aw(S):Xb(S)}function Qu(S){if(!th(S))return X1(S);var E=[];for(var V in Y(S))fn.call(S,V)&&V!="constructor"&&E.push(V);return E}function wE(S){if(!Io(S))return function(ge){var Re=[];if(ge!=null)for(var et in Y(ge))Re.push(et);return Re}(S);var E=th(S),V=[];for(var ie in S)(ie!="constructor"||!E&&fn.call(S,ie))&&V.push(ie);return V}function Wu(S,E){return S<E}function Vs(S,E){var V=-1,ie=Ca(S)?sn(S.length):[];return Co(S,function(ge,Re,et){ie[++V]=E(ge,Re,et)}),ie}function aw(S){var E=am(S);return E.length==1&&E[0][2]?ib(E[0][0],E[0][1]):function(V){return V===S||Uv(V,S,E)}}function sw(S,E){return sm(S)&&ob(E)?ib(pi(S),E):function(V){var ie=ig(V,S);return ie===l&&ie===E?ag(V,S):Hd(E,ie,3)}}function Hv(S,E,V,ie,ge){S!==E&&xr(E,function(Re,et){if(ge||(ge=new Bs),Io(Re))(function(pt,Ue,Mt,Ut,kn,Nn,Un){var Bt=um(pt,Mt),qt=um(Ue,Mt),Kn=Un.get(qt);if(Kn)return void Qv(pt,Mt,Kn);var On=Nn?Nn(Bt,qt,Mt+"",pt,Ue,Un):l,qn=On===l;if(qn){var ir=hr(qt),$r=!ir&&Zu(qt),jn=!ir&&!$r&&Dc(qt);On=qt,ir||$r||jn?hr(Bt)?On=Bt:qo(Bt)?On=Ya(Bt):$r?(qn=!1,On=G0(qt,!0)):jn?(qn=!1,On=mo(qt,!0)):On=[]:Hu(qt)||Qf(qt)?(On=Bt,Qf(Bt)?On=Ab(Bt):Io(Bt)&&!Uu(Bt)||(On=rb(qt))):qn=!1}qn&&(Un.set(qt,On),kn(On,qt,Ut,Nn,Un),Un.delete(qt)),Qv(pt,Mt,On)})(S,E,et,V,Hv,ie,ge);else{var it=ie?ie(um(S,et),Re,et+"",S,E,ge):l;it===l&&(it=Re),Qv(S,et,it)}},ji)}function lw(S,E){var V=S.length;if(V)return ru(E+=E<0?V:0,V)?S[E]:l}function uw(S,E,V){E=E.length?Lr(E,function(Re){return hr(Re)?function(et){return zu(et,Re.length===1?Re[0]:Re)}:Re}):[ca];var ie=-1;E=Lr(E,Ro(Qn()));var ge=Vs(S,function(Re,et,it){var pt=Lr(E,function(Ue){return Ue(Re)});return{criteria:pt,index:++ie,value:Re}});return function(Re,et){var it=Re.length;for(Re.sort(et);it--;)Re[it]=Re[it].value;return Re}(ge,function(Re,et){return function(it,pt,Ue){for(var Mt=-1,Ut=it.criteria,kn=pt.criteria,Nn=Ut.length,Un=Ue.length;++Mt<Nn;){var Bt=mw(Ut[Mt],kn[Mt]);if(Bt)return Mt>=Un?Bt:Bt*(Ue[Mt]=="desc"?-1:1)}return it.index-pt.index}(Re,et,V)})}function cw(S,E,V){for(var ie=-1,ge=E.length,Re={};++ie<ge;){var et=E[ie],it=zu(S,et);V(it,et)&&Kd(Re,Mc(et,S),it)}return Re}function z0(S,E,V,ie){var ge=ie?wa:Cc,Re=-1,et=E.length,it=S;for(S===E&&(E=Ya(E)),V&&(it=Lr(S,Ro(V)));++Re<et;)for(var pt=0,Ue=E[Re],Mt=V?V(Ue):Ue;(pt=ge(it,Mt,pt,ie))>-1;)it!==S&&If.call(it,pt,1),If.call(S,pt,1);return S}function Gd(S,E){for(var V=S?E.length:0,ie=V-1;V--;){var ge=E[V];if(V==ie||ge!==Re){var Re=ge;ru(ge)?If.call(S,ge,1):Kv(S,ge)}}return S}function Q0(S,E){return S+Fd(Vv()*(E-S+1))}function Xv(S,E){var V="";if(!S||E<1||E>P)return V;do E%2&&(V+=S),(E=Fd(E/2))&&(S+=S);while(E);return V}function kr(S,E){return cm(ab(S,E,ca),S+"")}function SE(S){return I0(Lc(S))}function W0(S,E){var V=Lc(S);return Bf(V,$c(E,0,V.length))}function Kd(S,E,V,ie){if(!Io(S))return S;for(var ge=-1,Re=(E=Mc(E,S)).length,et=Re-1,it=S;it!=null&&++ge<Re;){var pt=pi(E[ge]),Ue=V;if(pt==="__proto__"||pt==="constructor"||pt==="prototype")return S;if(ge!=et){var Mt=it[pt];(Ue=ie?ie(Mt,pt,it):l)===l&&(Ue=Io(Mt)?Mt:ru(E[ge+1])?[]:{})}Zd(it,pt,Ue),it=it[pt]}return S}var fw=Fv?function(S,E){return Fv.set(S,E),S}:ca,xE=Qp?function(S,E){return Qp(S,"toString",{configurable:!0,enumerable:!1,value:Om(E),writable:!0})}:ca;function kE(S){return Bf(Lc(S))}function Fs(S,E,V){var ie=-1,ge=S.length;E<0&&(E=-E>ge?0:ge+E),(V=V>ge?ge:V)<0&&(V+=ge),ge=E>V?0:V-E>>>0,E>>>=0;for(var Re=sn(ge);++ie<ge;)Re[ie]=S[ie+E];return Re}function Y0(S,E){var V;return Co(S,function(ie,ge,Re){return!(V=E(ie,ge,Re))}),!!V}function Gv(S,E,V){var ie=0,ge=S==null?ie:S.length;if(typeof E=="number"&&E==E&&ge<=2147483647){for(;ie<ge;){var Re=ie+ge>>>1,et=S[Re];et!==null&&!Ui(et)&&(V?et<=E:et<E)?ie=Re+1:ge=Re}return ge}return Z0(S,E,ca,V)}function Z0(S,E,V,ie){var ge=0,Re=S==null?0:S.length;if(Re===0)return 0;for(var et=(E=V(E))!=E,it=E===null,pt=Ui(E),Ue=E===l;ge<Re;){var Mt=Fd((ge+Re)/2),Ut=V(S[Mt]),kn=Ut!==l,Nn=Ut===null,Un=Ut==Ut,Bt=Ui(Ut);if(et)var qt=ie||Un;else qt=Ue?Un&&(ie||kn):it?Un&&kn&&(ie||!Nn):pt?Un&&kn&&!Nn&&(ie||!Bt):!Nn&&!Bt&&(ie?Ut<=E:Ut<E);qt?ge=Mt+1:Re=Mt}return la(Re,4294967294)}function dw(S,E){for(var V=-1,ie=S.length,ge=0,Re=[];++V<ie;){var et=S[V],it=E?E(et):et;if(!V||!Po(it,pt)){var pt=it;Re[ge++]=et===0?0:et}}return Re}function U0(S){return typeof S=="number"?S:Ui(S)?$:+S}function Wa(S){if(typeof S=="string")return S;if(hr(S))return Lr(S,Wa)+"";if(Ui(S))return q1?q1.call(S):"";var E=S+"";return E=="0"&&1/S==-1/0?"-0":E}function Ac(S,E,V){var ie=-1,ge=Oa,Re=S.length,et=!0,it=[],pt=it;if(V)et=!1,ge=Dp;else if(Re>=200){var Ue=E?null:J0(S);if(Ue)return ju(Ue);et=!1,ge=Hl,pt=new Pc}else pt=E?[]:it;e:for(;++ie<Re;){var Mt=S[ie],Ut=E?E(Mt):Mt;if(Mt=V||Mt!==0?Mt:0,et&&Ut==Ut){for(var kn=pt.length;kn--;)if(pt[kn]===Ut)continue e;E&&pt.push(Ut),it.push(Mt)}else ge(pt,Ut,V)||(pt!==it&&pt.push(Ut),it.push(Mt))}return it}function Kv(S,E){return(S=sb(S,E=Mc(E,S)))==null||delete S[pi(yo(E))]}function hw(S,E,V,ie){return Kd(S,E,V(zu(S,E)),ie)}function Up(S,E,V,ie){for(var ge=S.length,Re=ie?ge:-1;(ie?Re--:++Re<ge)&&E(S[Re],Re,S););return V?Fs(S,ie?0:Re,ie?Re+1:ge):Fs(S,ie?Re+1:0,ie?ge:Re)}function pw(S,E){var V=S;return V instanceof Dr&&(V=V.value()),Id(E,function(ie,ge){return ge.func.apply(ge.thisArg,hi([ie],ge.args))},V)}function qv(S,E,V){var ie=S.length;if(ie<2)return ie?Ac(S[0]):[];for(var ge=-1,Re=sn(ie);++ge<ie;)for(var et=S[ge],it=-1;++it<ie;)it!=ge&&(Re[ge]=Fu(Re[ge]||et,S[it],E,V));return Ac(Di(Re,1),E,V)}function gw(S,E,V){for(var ie=-1,ge=S.length,Re=E.length,et={};++ie<ge;){var it=ie<Re?E[ie]:l;V(et,S[ie],it)}return et}function Jv(S){return qo(S)?S:[]}function H0(S){return typeof S=="function"?S:ca}function Mc(S,E){return hr(S)?S:sm(S,E)?[S]:$w(qr(S))}var vw=kr;function Rc(S,E,V){var ie=S.length;return V=V===l?ie:V,!E&&V>=ie?S:Fs(S,E,V)}var X0=pE||function(S){return zo.clearTimeout(S)};function G0(S,E){if(E)return S.slice();var V=S.length,ie=zp?zp(V):new S.constructor(V);return S.copy(ie),ie}function K0(S){var E=new S.constructor(S.byteLength);return new Nf(E).set(new Nf(S)),E}function mo(S,E){var V=E?K0(S.buffer):S.buffer;return new S.constructor(V,S.byteOffset,S.length)}function mw(S,E){if(S!==E){var V=S!==l,ie=S===null,ge=S==S,Re=Ui(S),et=E!==l,it=E===null,pt=E==E,Ue=Ui(E);if(!it&&!Ue&&!Re&&S>E||Re&&et&&pt&&!it&&!Ue||ie&&et&&pt||!V&&pt||!ge)return 1;if(!ie&&!Re&&!Ue&&S<E||Ue&&V&&ge&&!ie&&!Re||it&&V&&ge||!et&&ge||!pt)return-1}return 0}function Eo(S,E,V,ie){for(var ge=-1,Re=S.length,et=V.length,it=-1,pt=E.length,Ue=Si(Re-et,0),Mt=sn(pt+Ue),Ut=!ie;++it<pt;)Mt[it]=E[it];for(;++ge<et;)(Ut||ge<Re)&&(Mt[V[ge]]=S[ge]);for(;Ue--;)Mt[it++]=S[ge++];return Mt}function em(S,E,V,ie){for(var ge=-1,Re=S.length,et=-1,it=V.length,pt=-1,Ue=E.length,Mt=Si(Re-it,0),Ut=sn(Mt+Ue),kn=!ie;++ge<Mt;)Ut[ge]=S[ge];for(var Nn=ge;++pt<Ue;)Ut[Nn+pt]=E[pt];for(;++et<it;)(kn||ge<Re)&&(Ut[Nn+V[et]]=S[ge++]);return Ut}function Ya(S,E){var V=-1,ie=S.length;for(E||(E=sn(ie));++V<ie;)E[V]=S[V];return E}function eu(S,E,V,ie){var ge=!V;V||(V={});for(var Re=-1,et=E.length;++Re<et;){var it=E[Re],pt=ie?ie(V[it],S[it],it,V,S):l;pt===l&&(pt=S[it]),ge?Jl(V,it,pt):Zd(V,it,pt)}return V}function tm(S,E){return function(V,ie){var ge=hr(V)?Rv:tw,Re=E?E():{};return ge(V,S,Qn(ie,2),Re)}}function Lf(S){return kr(function(E,V){var ie=-1,ge=V.length,Re=ge>1?V[ge-1]:l,et=ge>2?V[2]:l;for(Re=S.length>3&&typeof Re=="function"?(ge--,Re):l,et&&ua(V[0],V[1],et)&&(Re=ge<3?l:Re,ge=1),E=Y(E);++ie<ge;){var it=V[ie];it&&S(E,it,ie,Re)}return E})}function yw(S,E){return function(V,ie){if(V==null)return V;if(!Ca(V))return S(V,ie);for(var ge=V.length,Re=E?ge:-1,et=Y(V);(E?Re--:++Re<ge)&&ie(et[Re],Re,et)!==!1;);return V}}function bw(S){return function(E,V,ie){for(var ge=-1,Re=Y(E),et=ie(E),it=et.length;it--;){var pt=et[S?it:++ge];if(V(Re[pt],pt,Re)===!1)break}return E}}function _w(S){return function(E){var V=dl(E=qr(E))?Qa(E):l,ie=V?V[0]:E.charAt(0),ge=V?Rc(V,1).join(""):E.slice(1);return ie[S]()+ge}}function Nc(S){return function(E){return Id(vl(bm(E).replace(Tv,"")),S,"")}}function Hp(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 V=Yd(S.prototype),ie=S.apply(V,E);return Io(ie)?ie:V}}function Ow(S){return function(E,V,ie){var ge=Y(E);if(!Ca(E)){var Re=Qn(V,3);E=vi(E),V=function(it){return Re(ge[it],it,ge)}}var et=S(E,V,ie);return et>-1?ge[Re?E[et]:et]:l}}function ww(S){return To(function(E){var V=E.length,ie=V,ge=Ls.prototype.thru;for(S&&E.reverse();ie--;){var Re=E[ie];if(typeof Re!="function")throw new We(u);if(ge&&!et&&gl(Re)=="wrapper")var et=new Ls([],!0)}for(ie=et?ie:V;++ie<V;){var it=gl(Re=E[ie]),pt=it=="wrapper"?qp(Re):l;et=pt&&lm(pt[0])&&pt[1]==424&&!pt[4].length&&pt[9]==1?et[gl(pt[0])].apply(et,pt[3]):Re.length==1&&lm(Re)?et[it]():et.thru(Re)}return function(){var Ue=arguments,Mt=Ue[0];if(et&&Ue.length==1&&hr(Mt))return et.plant(Mt).value();for(var Ut=0,kn=V?E[Ut].apply(this,Ue):Mt;++Ut<V;)kn=E[Ut].call(this,kn);return kn}})}function Xp(S,E,V,ie,ge,Re,et,it,pt,Ue){var Mt=E&b,Ut=1&E,kn=2&E,Nn=24&E,Un=512&E,Bt=kn?l:Hp(S);return function qt(){for(var Kn=arguments.length,On=sn(Kn),qn=Kn;qn--;)On[qn]=arguments[qn];if(Nn)var ir=Jd(qt),$r=A0(On,ir);if(ie&&(On=Eo(On,ie,ge,Nn)),Re&&(On=em(On,Re,et,Nn)),Kn-=$r,Nn&&Kn<Ue){var jn=za(On,ir);return rm(S,E,Xp,qt.placeholder,V,On,jn,it,pt,Ue-Kn)}var Hn=Ut?V:this,mi=kn?Hn[S]:S;return Kn=On.length,it?On=Pw(On,it):Un&&Kn>1&&On.reverse(),Mt&&pt<Kn&&(On.length=pt),this&&this!==zo&&this instanceof qt&&(mi=Bt||Hp(mi)),mi.apply(Hn,On)}}function Sw(S,E){return function(V,ie){return function(ge,Re,et,it){return $n(ge,function(pt,Ue,Mt){Re(it,et(pt),Ue,Mt)}),it}(V,S,E(ie),{})}}function Gp(S,E){return function(V,ie){var ge;if(V===l&&ie===l)return E;if(V!==l&&(ge=V),ie!==l){if(ge===l)return ie;typeof V=="string"||typeof ie=="string"?(V=Wa(V),ie=Wa(ie)):(V=U0(V),ie=U0(ie)),ge=S(V,ie)}return ge}}function q0(S){return To(function(E){return E=Lr(E,Ro(Qn())),kr(function(V){var ie=this;return S(E,function(ge){return uo(ge,ie,V)})})})}function nm(S,E){var V=(E=E===l?" ":Wa(E)).length;if(V<2)return V?Xv(E,S):E;var ie=Xv(E,jv(S/hl(E)));return dl(E)?Rc(Qa(ie),0,S).join(""):ie.slice(0,S)}function tu(S){return function(E,V,ie){return ie&&typeof ie!="number"&&ua(E,V,ie)&&(V=ie=l),E=ou(E),V===l?(V=E,E=0):V=ou(V),function(ge,Re,et,it){for(var pt=-1,Ue=Si(jv((Re-ge)/(et||1)),0),Mt=sn(Ue);Ue--;)Mt[it?Ue:++pt]=ge,ge+=et;return Mt}(E,V,ie=ie===l?E<V?1:-1:ou(ie),S)}}function qd(S){return function(E,V){return typeof E=="string"&&typeof V=="string"||(E=Ea(E),V=Ea(V)),S(E,V)}}function rm(S,E,V,ie,ge,Re,et,it,pt,Ue){var Mt=8&E;E|=Mt?y:w,4&(E&=~(Mt?w:y))||(E&=-4);var Ut=[S,E,ge,Mt?Re:l,Mt?et:l,Mt?l:Re,Mt?l:et,it,pt,Ue],kn=V.apply(l,Ut);return lm(S)&&lb(kn,Ut),kn.placeholder=ie,ub(kn,S,E)}function om(S){var E=Q[S];return function(V,ie){if(V=Ea(V),(ie=ie==null?0:la(mr(ie),292))&&H1(V)){var ge=(qr(V)+"e").split("e");return+((ge=(qr(E(ge[0]+"e"+(+ge[1]+ie)))+"e").split("e"))[0]+"e"+(+ge[1]-ie))}return E(V)}}var J0=Df&&1/ju(new Df([,-0]))[1]==C?function(S){return new Df(S)}:wm;function im(S){return function(E){var V=Zi(E);return V==G?aa(E):V==J?Bd(E):function(ie,ge){return Lr(ge,function(Re){return[Re,ie[Re]]})}(E,S(E))}}function nu(S,E,V,ie,ge,Re,et,it){var pt=2&E;if(!pt&&typeof S!="function")throw new We(u);var Ue=ie?ie.length:0;if(Ue||(E&=-97,ie=ge=l),et=et===l?et:Si(mr(et),0),it=it===l?it:mr(it),Ue-=ge?ge.length:0,E&w){var Mt=ie,Ut=ge;ie=ge=l}var kn=pt?l:qp(S),Nn=[S,E,V,ie,ge,Mt,Ut,Re,et,it];if(kn&&function(Bt,qt){var Kn=Bt[1],On=qt[1],qn=Kn|On,ir=qn<131,$r=On==b&&Kn==8||On==b&&Kn==k&&Bt[7].length<=qt[8]||On==384&&qt[7].length<=qt[8]&&Kn==8;if(!ir&&!$r)return Bt;1&On&&(Bt[2]=qt[2],qn|=1&Kn?0:4);var jn=qt[3];if(jn){var Hn=Bt[3];Bt[3]=Hn?Eo(Hn,jn,qt[4]):jn,Bt[4]=Hn?za(Bt[3],p):qt[4]}(jn=qt[5])&&(Hn=Bt[5],Bt[5]=Hn?em(Hn,jn,qt[6]):jn,Bt[6]=Hn?za(Bt[5],p):qt[6]),(jn=qt[7])&&(Bt[7]=jn),On&b&&(Bt[8]=Bt[8]==null?qt[8]:la(Bt[8],qt[8])),Bt[9]==null&&(Bt[9]=qt[9]),Bt[0]=qt[0],Bt[1]=qn}(Nn,kn),S=Nn[0],E=Nn[1],V=Nn[2],ie=Nn[3],ge=Nn[4],!(it=Nn[9]=Nn[9]===l?pt?0:S.length:Si(Nn[9]-Ue,0))&&24&E&&(E&=-25),E&&E!=1)Un=E==8||E==v?function(Bt,qt,Kn){var On=Hp(Bt);return function qn(){for(var ir=arguments.length,$r=sn(ir),jn=ir,Hn=Jd(qn);jn--;)$r[jn]=arguments[jn];var mi=ir<3&&$r[0]!==Hn&&$r[ir-1]!==Hn?[]:za($r,Hn);return(ir-=mi.length)<Kn?rm(Bt,qt,Xp,qn.placeholder,l,$r,mi,l,l,Kn-ir):uo(this&&this!==zo&&this instanceof qn?On:Bt,this,$r)}}(S,E,it):E!=y&&E!=33||ge.length?Xp.apply(l,Nn):function(Bt,qt,Kn,On){var qn=1&qt,ir=Hp(Bt);return function $r(){for(var jn=-1,Hn=arguments.length,mi=-1,Hi=On.length,ml=sn(Hi+Hn),ki=this&&this!==zo&&this instanceof $r?ir:Bt;++mi<Hi;)ml[mi]=On[mi];for(;Hn--;)ml[mi++]=arguments[++jn];return uo(ki,qn?Kn:this,ml)}}(S,E,V,ie);else var Un=function(Bt,qt,Kn){var On=1&qt,qn=Hp(Bt);return function ir(){return(this&&this!==zo&&this instanceof ir?qn:Bt).apply(On?Kn:this,arguments)}}(S,E,V);return ub((kn?fw:lb)(Un,Nn),S,E)}function xw(S,E,V,ie){return S===l||Po(S,Yt[V])&&!fn.call(ie,V)?E:S}function kw(S,E,V,ie,ge,Re){return Io(S)&&Io(E)&&(Re.set(E,S),Hv(S,E,l,kw,Re),Re.delete(E)),S}function CE(S){return Hu(S)?l:S}function Cw(S,E,V,ie,ge,Re){var et=1&V,it=S.length,pt=E.length;if(it!=pt&&!(et&&pt>it))return!1;var Ue=Re.get(S),Mt=Re.get(E);if(Ue&&Mt)return Ue==E&&Mt==S;var Ut=-1,kn=!0,Nn=2&V?new Pc:l;for(Re.set(S,E),Re.set(E,S);++Ut<it;){var Un=S[Ut],Bt=E[Ut];if(ie)var qt=et?ie(Bt,Un,Ut,E,S,Re):ie(Un,Bt,Ut,S,E,Re);if(qt!==l){if(qt)continue;kn=!1;break}if(Nn){if(!jp(E,function(Kn,On){if(!Hl(Nn,On)&&(Un===Kn||ge(Un,Kn,V,ie,Re)))return Nn.push(On)})){kn=!1;break}}else if(Un!==Bt&&!ge(Un,Bt,V,ie,Re)){kn=!1;break}}return Re.delete(S),Re.delete(E),kn}function To(S){return cm(ab(S,l,hb),S+"")}function Kp(S){return B0(S,vi,tb)}function eb(S){return B0(S,ji,$t)}var qp=Fv?function(S){return Fv.get(S)}:wm;function gl(S){for(var E=S.name+"",V=Wd[E],ie=fn.call(Wd,E)?V.length:0;ie--;){var ge=V[ie],Re=ge.func;if(Re==null||Re==S)return ge.name}return E}function Jd(S){return(fn.call(Te,"placeholder")?Te:S).placeholder}function Qn(){var S=Te.iteratee||Zb;return S=S===Zb?F0:S,arguments.length?S(arguments[0],arguments[1]):S}function eh(S,E){var V,ie,ge=S.__data__;return((ie=typeof(V=E))=="string"||ie=="number"||ie=="symbol"||ie=="boolean"?V!=="__proto__":V===null)?ge[typeof E=="string"?"string":"hash"]:ge.map}function am(S){for(var E=vi(S),V=E.length;V--;){var ie=E[V],ge=S[ie];E[V]=[ie,ge,ob(ge)]}return E}function Ic(S,E){var V=function(ie,ge){return ie==null?l:ie[ge]}(S,E);return Xd(V)?V:l}var tb=M0?function(S){return S==null?[]:(S=Y(S),ia(M0(S),function(E){return sa.call(S,E)}))}:lh,$t=M0?function(S){for(var E=[];S;)hi(E,tb(S)),S=Lu(S);return E}:lh,Zi=No;function nb(S,E,V){for(var ie=-1,ge=(E=Mc(E,S)).length,Re=!1;++ie<ge;){var et=pi(E[ie]);if(!(Re=S!=null&&V(S,et)))break;S=S[et]}return Re||++ie!=ge?Re:!!(ge=S==null?0:S.length)&&Wf(ge)&&ru(et,ge)&&(hr(S)||Qf(S))}function rb(S){return typeof S.constructor!="function"||th(S)?{}:Yd(Lu(S))}function Ew(S){return hr(S)||Qf(S)||!!(Tc&&S&&S[Tc])}function ru(S,E){var V=typeof S;return!!(E=E==null?P:E)&&(V=="number"||V!="symbol"&&Nt.test(S))&&S>-1&&S%1==0&&S<E}function ua(S,E,V){if(!Io(V))return!1;var ie=typeof E;return!!(ie=="number"?Ca(V)&&ru(E,V.length):ie=="string"&&E in V)&&Po(V[E],S)}function sm(S,E){if(hr(S))return!1;var V=typeof S;return!(V!="number"&&V!="symbol"&&V!="boolean"&&S!=null&&!Ui(S))||ot.test(S)||!qe.test(S)||E!=null&&S in Y(E)}function lm(S){var E=gl(S),V=Te[E];if(typeof V!="function"||!(E in Dr.prototype))return!1;if(S===V)return!0;var ie=qp(V);return!!ie&&S===ie[0]}(zd&&Zi(new zd(new ArrayBuffer(1)))!=fe||Kl&&Zi(new Kl)!=G||R0&&Zi(R0.resolve())!=H||Df&&Zi(new Df)!=J||Qd&&Zi(new Qd)!=ee)&&(Zi=function(S){var E=No(S),V=E==K?S.constructor:l,ie=V?Za(V):"";if(ie)switch(ie){case bE:return fe;case G1:return G;case _E:return H;case OE:return J;case K1:return ee}return E});var Tw=mn?Uu:fg;function th(S){var E=S&&S.constructor;return S===(typeof E=="function"&&E.prototype||Yt)}function ob(S){return S==S&&!Io(S)}function ib(S,E){return function(V){return V!=null&&V[S]===E&&(E!==l||S in Y(V))}}function ab(S,E,V){return E=Si(E===l?S.length-1:E,0),function(){for(var ie=arguments,ge=-1,Re=Si(ie.length-E,0),et=sn(Re);++ge<Re;)et[ge]=ie[E+ge];ge=-1;for(var it=sn(E+1);++ge<E;)it[ge]=ie[ge];return it[E]=V(et),uo(S,this,it)}}function sb(S,E){return E.length<2?S:zu(S,Fs(E,0,-1))}function Pw(S,E){for(var V=S.length,ie=la(E.length,V),ge=Ya(S);ie--;){var Re=E[ie];S[ie]=ru(Re,V)?ge[Re]:l}return S}function um(S,E){if((E!=="constructor"||typeof S[E]!="function")&&E!="__proto__")return S[E]}var lb=fm(fw),nh=U1||function(S,E){return zo.setTimeout(S,E)},cm=fm(xE);function ub(S,E,V){var ie=E+"";return cm(S,function(ge,Re){var et=Re.length;if(!et)return ge;var it=et-1;return Re[it]=(et>1?"& ":"")+Re[it],Re=Re.join(et>2?", ":" "),ge.replace(Ce,`{
- /* [wrapped with `+Re+`] */
- `)}(ie,function(ge,Re){return _a(A,function(et){var it="_."+et[0];Re&et[1]&&!Oa(ge,it)&&ge.push(it)}),ge.sort()}(function(ge){var Re=ge.match(He);return Re?Re[1].split(me):[]}(ie),V)))}function fm(S){var E=0,V=0;return function(){var ie=Lv(),ge=16-(ie-V);if(V=ie,ge>0){if(++E>=800)return arguments[0]}else E=0;return S.apply(l,arguments)}}function Bf(S,E){var V=-1,ie=S.length,ge=ie-1;for(E=E===l?ie:E;++V<E;){var Re=Q0(V,ge),et=S[Re];S[Re]=S[V],S[V]=et}return S.length=E,S}var $w=function(S){var E=oh(S,function(ie){return V.size===500&&V.clear(),ie}),V=E.cache;return E}(function(S){var E=[];return S.charCodeAt(0)===46&&E.push(""),S.replace(ft,function(V,ie,ge,Re){E.push(ge?Re.replace(Xe,"$1"):ie||V)}),E});function pi(S){if(typeof S=="string"||Ui(S))return S;var E=S+"";return E=="0"&&1/S==-1/0?"-0":E}function Za(S){if(S!=null){try{return Or.call(S)}catch{}try{return S+""}catch{}}return""}function Aw(S){if(S instanceof Dr)return S.clone();var E=new Ls(S.__wrapped__,S.__chain__);return E.__actions__=Ya(S.__actions__),E.__index__=S.__index__,E.__values__=S.__values__,E}var gs=kr(function(S,E){return qo(S)?Fu(S,Di(E,1,qo,!0)):[]}),Mw=kr(function(S,E){var V=yo(E);return qo(V)&&(V=l),qo(S)?Fu(S,Di(E,1,qo,!0),Qn(V,2)):[]}),cb=kr(function(S,E){var V=yo(E);return qo(V)&&(V=l),qo(S)?Fu(S,Di(E,1,qo,!0),l,V):[]});function fb(S,E,V){var ie=S==null?0:S.length;if(!ie)return-1;var ge=V==null?0:mr(V);return ge<0&&(ge=Si(ie+ge,0)),Zl(S,Qn(E,3),ge)}function db(S,E,V){var ie=S==null?0:S.length;if(!ie)return-1;var ge=ie-1;return V!==l&&(ge=mr(V),ge=V<0?Si(ie+ge,0):la(ge,ie-1)),Zl(S,Qn(E,3),ge,!0)}function hb(S){return S!=null&&S.length?Di(S,1):[]}function pb(S){return S&&S.length?S[0]:l}var Rw=kr(function(S){var E=Lr(S,Jv);return E.length&&E[0]===S[0]?Zv(E):[]}),gb=kr(function(S){var E=yo(S),V=Lr(S,Jv);return E===yo(V)?E=l:V.pop(),V.length&&V[0]===S[0]?Zv(V,Qn(E,2)):[]}),Jp=kr(function(S){var E=yo(S),V=Lr(S,Jv);return(E=typeof E=="function"?E:l)&&V.pop(),V.length&&V[0]===S[0]?Zv(V,l,E):[]});function yo(S){var E=S==null?0:S.length;return E?S[E-1]:l}var EE=kr(Nw);function Nw(S,E){return S&&S.length&&E&&E.length?z0(S,E):S}var vb=To(function(S,E){var V=S==null?0:S.length,ie=Wv(S,E);return Gd(S,Lr(E,function(ge){return ru(ge,V)?+ge:ge}).sort(mw)),ie});function dm(S){return S==null?S:yE.call(S)}var Ua=kr(function(S){return Ac(Di(S,1,qo,!0))}),gi=kr(function(S){var E=yo(S);return qo(E)&&(E=l),Ac(Di(S,1,qo,!0),Qn(E,2))}),TE=kr(function(S){var E=yo(S);return E=typeof E=="function"?E:l,Ac(Di(S,1,qo,!0),l,E)});function Ha(S){if(!S||!S.length)return[];var E=0;return S=ia(S,function(V){if(qo(V))return E=Si(V.length,E),!0}),Rf(E,function(V){return Lr(S,Sa(V))})}function Zn(S,E){if(!S||!S.length)return[];var V=Ha(S);return E==null?V:Lr(V,function(ie){return uo(E,l,ie)})}var mb=kr(function(S,E){return qo(S)?Fu(S,E):[]}),yb=kr(function(S){return qv(ia(S,qo))}),bb=kr(function(S){var E=yo(S);return qo(E)&&(E=l),qv(ia(S,qo),Qn(E,2))}),Iw=kr(function(S){var E=yo(S);return E=typeof E=="function"?E:l,qv(ia(S,qo),l,E)}),Dw=kr(Ha),PE=kr(function(S){var E=S.length,V=E>1?S[E-1]:l;return V=typeof V=="function"?(S.pop(),V):l,Zn(S,V)});function jw(S){var E=Te(S);return E.__chain__=!0,E}function rh(S,E){return E(S)}var $E=To(function(S){var E=S.length,V=E?S[0]:0,ie=this.__wrapped__,ge=function(Re){return Wv(Re,S)};return!(E>1||this.__actions__.length)&&ie instanceof Dr&&ru(V)?((ie=ie.slice(V,+V+(E?1:0))).__actions__.push({func:rh,args:[ge],thisArg:l}),new Ls(ie,this.__chain__).thru(function(Re){return E&&!Re.length&&Re.push(l),Re})):this.thru(ge)}),_b=tm(function(S,E,V){fn.call(S,V)?++S[V]:Jl(S,V,1)}),AE=Ow(fb),ME=Ow(db);function Ob(S,E){return(hr(S)?_a:Co)(S,Qn(E,3))}function Vf(S,E){return(hr(S)?Nv:nw)(S,Qn(E,3))}var Lw=tm(function(S,E,V){fn.call(S,V)?S[V].push(E):Jl(S,V,[E])}),cr=kr(function(S,E,V){var ie=-1,ge=typeof E=="function",Re=Ca(S)?sn(S.length):[];return Co(S,function(et){Re[++ie]=ge?uo(E,et,V):Ud(et,E,V)}),Re}),Bw=tm(function(S,E,V){Jl(S,V,E)});function Ff(S,E){return(hr(S)?Lr:Vs)(S,Qn(E,3))}var wb=tm(function(S,E,V){S[V?0:1].push(E)},function(){return[[],[]]}),RE=kr(function(S,E){if(S==null)return[];var V=E.length;return V>1&&ua(S,E[0],E[1])?E=[]:V>2&&ua(E[0],E[1],E[2])&&(E=[E[0]]),uw(S,Di(E,1),[])}),eg=gE||function(){return zo.Date.now()};function Sb(S,E,V){return E=V?l:E,E=S&&E==null?S.length:E,nu(S,b,l,l,l,l,E)}function xb(S,E){var V;if(typeof E!="function")throw new We(u);return S=mr(S),function(){return--S>0&&(V=E.apply(this,arguments)),S<=1&&(E=l),V}}var kb=kr(function(S,E,V){var ie=1;if(V.length){var ge=za(V,Jd(kb));ie|=y}return nu(S,ie,E,V,ge)}),Vw=kr(function(S,E,V){var ie=3;if(V.length){var ge=za(V,Jd(Vw));ie|=y}return nu(E,ie,S,V,ge)});function Fw(S,E,V){var ie,ge,Re,et,it,pt,Ue=0,Mt=!1,Ut=!1,kn=!0;if(typeof S!="function")throw new We(u);function Nn(qn){var ir=ie,$r=ge;return ie=ge=l,Ue=qn,et=S.apply($r,ir)}function Un(qn){return Ue=qn,it=nh(qt,E),Mt?Nn(qn):et}function Bt(qn){var ir=qn-pt;return pt===l||ir>=E||ir<0||Ut&&qn-Ue>=Re}function qt(){var qn=eg();if(Bt(qn))return Kn(qn);it=nh(qt,function(ir){var $r=E-(ir-pt);return Ut?la($r,Re-(ir-Ue)):$r}(qn))}function Kn(qn){return it=l,kn&&ie?Nn(qn):(ie=ge=l,et)}function On(){var qn=eg(),ir=Bt(qn);if(ie=arguments,ge=this,pt=qn,ir){if(it===l)return Un(pt);if(Ut)return X0(it),it=nh(qt,E),Nn(pt)}return it===l&&(it=nh(qt,E)),et}return E=Ea(E)||0,Io(V)&&(Mt=!!V.leading,Re=(Ut="maxWait"in V)?Si(Ea(V.maxWait)||0,E):Re,kn="trailing"in V?!!V.trailing:kn),On.cancel=function(){it!==l&&X0(it),Ue=0,ie=pt=ge=it=l},On.flush=function(){return it===l?et:Kn(eg())},On}var tg=kr(function(S,E){return L0(S,1,E)}),NE=kr(function(S,E,V){return L0(S,Ea(E)||0,V)});function oh(S,E){if(typeof S!="function"||E!=null&&typeof E!="function")throw new We(u);var V=function(){var ie=arguments,ge=E?E.apply(this,ie):ie[0],Re=V.cache;if(Re.has(ge))return Re.get(ge);var et=S.apply(this,ie);return V.cache=Re.set(ge,et)||Re,et};return V.cache=new(oh.Cache||ql),V}function hm(S){if(typeof S!="function")throw new We(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)}}oh.Cache=ql;var IE=vw(function(S,E){var V=(E=E.length==1&&hr(E[0])?Lr(E[0],Ro(Qn())):Lr(Di(E,1),Ro(Qn()))).length;return kr(function(ie){for(var ge=-1,Re=la(ie.length,V);++ge<Re;)ie[ge]=E[ge].call(this,ie[ge]);return uo(S,this,ie)})}),zf=kr(function(S,E){var V=za(E,Jd(zf));return nu(S,y,l,E,V)}),Yu=kr(function(S,E){var V=za(E,Jd(Yu));return nu(S,w,l,E,V)}),Cb=To(function(S,E){return nu(S,k,l,l,l,E)});function Po(S,E){return S===E||S!=S&&E!=E}var pm=qd(Qo),ng=qd(function(S,E){return S>=E}),Qf=V0(function(){return arguments}())?V0:function(S){return Do(S)&&fn.call(S,"callee")&&!sa.call(S,"callee")},hr=sn.isArray,zw=Np?Ro(Np):function(S){return Do(S)&&No(S)==he};function Ca(S){return S!=null&&Wf(S.length)&&!Uu(S)}function qo(S){return Do(S)&&Ca(S)}var Zu=vE||fg,gm=Mv?Ro(Mv):function(S){return Do(S)&&No(S)==I};function Eb(S){if(!Do(S))return!1;var E=No(S);return E==D||E=="[object DOMException]"||typeof S.message=="string"&&typeof S.name=="string"&&!Hu(S)}function Uu(S){if(!Io(S))return!1;var E=No(S);return E==j||E==F||E=="[object AsyncFunction]"||E=="[object Proxy]"}function vm(S){return typeof S=="number"&&S==mr(S)}function Wf(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=P}function Io(S){var E=typeof S;return S!=null&&(E=="object"||E=="function")}function Do(S){return S!=null&&typeof S=="object"}var Qw=Ip?Ro(Ip):function(S){return Do(S)&&Zi(S)==G};function Tb(S){return typeof S=="number"||Do(S)&&No(S)==ae}function Hu(S){if(!Do(S)||No(S)!=K)return!1;var E=Lu(S);if(E===null)return!0;var V=fn.call(E,"constructor")&&E.constructor;return typeof V=="function"&&V instanceof V&&Or.call(V)==hs}var Pb=Nd?Ro(Nd):function(S){return Do(S)&&No(S)==oe},ih=kc?Ro(kc):function(S){return Do(S)&&Zi(S)==J};function rg(S){return typeof S=="string"||!hr(S)&&Do(S)&&No(S)==z}function Ui(S){return typeof S=="symbol"||Do(S)&&No(S)==X}var Dc=ul?Ro(ul):function(S){return Do(S)&&Wf(S.length)&&!!Gr[No(S)]},ah=qd(Wu),og=qd(function(S,E){return S<=E});function sh(S){if(!S)return[];if(Ca(S))return rg(S)?Qa(S):Ya(S);if(Bu&&S[Bu])return function(V){for(var ie,ge=[];!(ie=V.next()).done;)ge.push(ie.value);return ge}(S[Bu]());var E=Zi(S);return(E==G?aa:E==J?ju:Lc)(S)}function ou(S){return S?(S=Ea(S))===C||S===-1/0?17976931348623157e292*(S<0?-1:1):S==S?S:0:S===0?S:0}function mr(S){var E=ou(S),V=E%1;return E==E?V?E-V:E:0}function $b(S){return S?$c(mr(S),0,T):0}function Ea(S){if(typeof S=="number")return S;if(Ui(S))return $;if(Io(S)){var E=typeof S.valueOf=="function"?S.valueOf():S;S=Io(E)?E+"":E}if(typeof S!="string")return S===0?S:+S;S=Lp(S);var V=rt.test(S);return V||wn.test(S)?Yl(S.slice(2),V?2:8):Vn.test(S)?$:+S}function Ab(S){return eu(S,ji(S))}function qr(S){return S==null?"":Wa(S)}var Ww=Lf(function(S,E){if(th(E)||Ca(E))eu(E,vi(E),S);else for(var V in E)fn.call(E,V)&&Zd(S,V,E[V])}),Mb=Lf(function(S,E){eu(E,ji(E),S)}),Xu=Lf(function(S,E,V,ie){eu(E,ji(E),S,ie)}),Rb=Lf(function(S,E,V,ie){eu(E,vi(E),S,ie)}),Yw=To(Wv),Zw=kr(function(S,E){S=Y(S);var V=-1,ie=E.length,ge=ie>2?E[2]:l;for(ge&&ua(E[0],E[1],ge)&&(ie=1);++V<ie;)for(var Re=E[V],et=ji(Re),it=-1,pt=et.length;++it<pt;){var Ue=et[it],Mt=S[Ue];(Mt===l||Po(Mt,Yt[Ue])&&!fn.call(S,Ue))&&(S[Ue]=Re[Ue])}return S}),Nb=kr(function(S){return S.push(l,kw),uo(jb,l,S)});function ig(S,E,V){var ie=S==null?l:zu(S,E);return ie===l?V:ie}function ag(S,E){return S!=null&&nb(S,E,iw)}var Uw=Sw(function(S,E,V){E!=null&&typeof E.toString!="function"&&(E=Qr.call(E)),S[E]=V},Om(ca)),Ib=Sw(function(S,E,V){E!=null&&typeof E.toString!="function"&&(E=Qr.call(E)),fn.call(S,E)?S[E].push(V):S[E]=[V]},Qn),Db=kr(Ud);function vi(S){return Ca(S)?N0(S):Qu(S)}function ji(S){return Ca(S)?N0(S,!0):wE(S)}var jc=Lf(function(S,E,V){Hv(S,E,V)}),jb=Lf(function(S,E,V,ie){Hv(S,E,V,ie)}),Hw=To(function(S,E){var V={};if(S==null)return V;var ie=!1;E=Lr(E,function(Re){return Re=Mc(Re,S),ie||(ie=Re.length>1),Re}),eu(S,eb(S),V),ie&&(V=ps(V,7,CE));for(var ge=E.length;ge--;)Kv(V,E[ge]);return V}),Lb=To(function(S,E){return S==null?{}:function(V,ie){return cw(V,ie,function(ge,Re){return ag(V,Re)})}(S,E)});function mm(S,E){if(S==null)return{};var V=Lr(eb(S),function(ie){return[ie]});return E=Qn(E),cw(S,V,function(ie,ge){return E(ie,ge[0])})}var Xw=im(vi),Bb=im(ji);function Lc(S){return S==null?[]:Ld(S,vi(S))}var ym=Nc(function(S,E,V){return E=E.toLowerCase(),S+(V?sg(E):E)});function sg(S){return Jo(qr(S).toLowerCase())}function bm(S){return(S=qr(S))&&S.replace(Xt,Vp).replace(Wl,"")}var Vb=Nc(function(S,E,V){return S+(V?"-":"")+E.toLowerCase()}),Gw=Nc(function(S,E,V){return S+(V?" ":"")+E.toLowerCase()}),Fb=_w("toLowerCase"),Kw=Nc(function(S,E,V){return S+(V?"_":"")+E.toLowerCase()}),zb=Nc(function(S,E,V){return S+(V?" ":"")+Jo(E)}),DE=Nc(function(S,E,V){return S+(V?" ":"")+E.toUpperCase()}),Jo=_w("toUpperCase");function vl(S,E,V){return S=qr(S),(E=V?l:E)===l?function(ie){return $p.test(ie)}(S)?function(ie){return ie.match(Md)||[]}(S):function(ie){return ie.match(Ve)||[]}(S):S.match(E)||[]}var _m=kr(function(S,E){try{return uo(S,l,E)}catch(V){return Eb(V)?V:new Tr(V)}}),Qb=To(function(S,E){return _a(E,function(V){V=pi(V),Jl(S,V,kb(S[V],S))}),S});function Om(S){return function(){return S}}var Wb=ww(),Yb=ww(!0);function ca(S){return S}function Zb(S){return F0(typeof S=="function"?S:ps(S,1))}var Yf=kr(function(S,E){return function(V){return Ud(V,S,E)}}),Ub=kr(function(S,E){return function(V){return Ud(S,V,E)}});function lg(S,E,V){var ie=vi(E),ge=Yv(E,ie);V!=null||Io(E)&&(ge.length||!ie.length)||(V=E,E=S,S=this,ge=Yv(E,vi(E)));var Re=!(Io(V)&&"chain"in V&&!V.chain),et=Uu(S);return _a(ge,function(it){var pt=E[it];S[it]=pt,et&&(S.prototype[it]=function(){var Ue=this.__chain__;if(Re||Ue){var Mt=S(this.__wrapped__),Ut=Mt.__actions__=Ya(this.__actions__);return Ut.push({func:pt,args:arguments,thisArg:S}),Mt.__chain__=Ue,Mt}return pt.apply(S,hi([this.value()],arguments))})}),S}function wm(){}var ug=q0(Lr),cg=q0(Iv),Hb=q0(jp);function Xb(S){return sm(S)?Sa(pi(S)):function(E){return function(V){return zu(V,E)}}(S)}var qw=tu(),Li=tu(!0);function lh(){return[]}function fg(){return!1}var Gb=Gp(function(S,E){return S+E},0),Jw=om("ceil"),eS=Gp(function(S,E){return S/E},1),Kb=om("floor"),uh,tS=Gp(function(S,E){return S*E},1),Sm=om("round"),xm=Gp(function(S,E){return S-E},0);return Te.after=function(S,E){if(typeof E!="function")throw new We(u);return S=mr(S),function(){if(--S<1)return E.apply(this,arguments)}},Te.ary=Sb,Te.assign=Ww,Te.assignIn=Mb,Te.assignInWith=Xu,Te.assignWith=Rb,Te.at=Yw,Te.before=xb,Te.bind=kb,Te.bindAll=Qb,Te.bindKey=Vw,Te.castArray=function(){if(!arguments.length)return[];var S=arguments[0];return hr(S)?S:[S]},Te.chain=jw,Te.chunk=function(S,E,V){E=(V?ua(S,E,V):E===l)?1:Si(mr(E),0);var ie=S==null?0:S.length;if(!ie||E<1)return[];for(var ge=0,Re=0,et=sn(jv(ie/E));ge<ie;)et[Re++]=Fs(S,ge,ge+=E);return et},Te.compact=function(S){for(var E=-1,V=S==null?0:S.length,ie=0,ge=[];++E<V;){var Re=S[E];Re&&(ge[ie++]=Re)}return ge},Te.concat=function(){var S=arguments.length;if(!S)return[];for(var E=sn(S-1),V=arguments[0],ie=S;ie--;)E[ie-1]=arguments[ie];return hi(hr(V)?Ya(V):[V],Di(E,1))},Te.cond=function(S){var E=S==null?0:S.length,V=Qn();return S=E?Lr(S,function(ie){if(typeof ie[1]!="function")throw new We(u);return[V(ie[0]),ie[1]]}):[],kr(function(ie){for(var ge=-1;++ge<E;){var Re=S[ge];if(uo(Re[0],this,ie))return uo(Re[1],this,ie)}})},Te.conforms=function(S){return function(E){var V=vi(E);return function(ie){return j0(ie,E,V)}}(ps(S,1))},Te.constant=Om,Te.countBy=_b,Te.create=function(S,E){var V=Yd(S);return E==null?V:D0(V,E)},Te.curry=function S(E,V,ie){var ge=nu(E,8,l,l,l,l,l,V=ie?l:V);return ge.placeholder=S.placeholder,ge},Te.curryRight=function S(E,V,ie){var ge=nu(E,v,l,l,l,l,l,V=ie?l:V);return ge.placeholder=S.placeholder,ge},Te.debounce=Fw,Te.defaults=Zw,Te.defaultsDeep=Nb,Te.defer=tg,Te.delay=NE,Te.difference=gs,Te.differenceBy=Mw,Te.differenceWith=cb,Te.drop=function(S,E,V){var ie=S==null?0:S.length;return ie?Fs(S,(E=V||E===l?1:mr(E))<0?0:E,ie):[]},Te.dropRight=function(S,E,V){var ie=S==null?0:S.length;return ie?Fs(S,0,(E=ie-(E=V||E===l?1:mr(E)))<0?0:E):[]},Te.dropRightWhile=function(S,E){return S&&S.length?Up(S,Qn(E,3),!0,!0):[]},Te.dropWhile=function(S,E){return S&&S.length?Up(S,Qn(E,3),!0):[]},Te.fill=function(S,E,V,ie){var ge=S==null?0:S.length;return ge?(V&&typeof V!="number"&&ua(S,E,V)&&(V=0,ie=ge),function(Re,et,it,pt){var Ue=Re.length;for((it=mr(it))<0&&(it=-it>Ue?0:Ue+it),(pt=pt===l||pt>Ue?Ue:mr(pt))<0&&(pt+=Ue),pt=it>pt?0:$b(pt);it<pt;)Re[it++]=et;return Re}(S,E,V,ie)):[]},Te.filter=function(S,E){return(hr(S)?ia:Kr)(S,Qn(E,3))},Te.flatMap=function(S,E){return Di(Ff(S,E),1)},Te.flatMapDeep=function(S,E){return Di(Ff(S,E),C)},Te.flatMapDepth=function(S,E,V){return V=V===l?1:mr(V),Di(Ff(S,E),V)},Te.flatten=hb,Te.flattenDeep=function(S){return S!=null&&S.length?Di(S,C):[]},Te.flattenDepth=function(S,E){return S!=null&&S.length?Di(S,E=E===l?1:mr(E)):[]},Te.flip=function(S){return nu(S,512)},Te.flow=Wb,Te.flowRight=Yb,Te.fromPairs=function(S){for(var E=-1,V=S==null?0:S.length,ie={};++E<V;){var ge=S[E];ie[ge[0]]=ge[1]}return ie},Te.functions=function(S){return S==null?[]:Yv(S,vi(S))},Te.functionsIn=function(S){return S==null?[]:Yv(S,ji(S))},Te.groupBy=Lw,Te.initial=function(S){return S!=null&&S.length?Fs(S,0,-1):[]},Te.intersection=Rw,Te.intersectionBy=gb,Te.intersectionWith=Jp,Te.invert=Uw,Te.invertBy=Ib,Te.invokeMap=cr,Te.iteratee=Zb,Te.keyBy=Bw,Te.keys=vi,Te.keysIn=ji,Te.map=Ff,Te.mapKeys=function(S,E){var V={};return E=Qn(E,3),$n(S,function(ie,ge,Re){Jl(V,E(ie,ge,Re),ie)}),V},Te.mapValues=function(S,E){var V={};return E=Qn(E,3),$n(S,function(ie,ge,Re){Jl(V,ge,E(ie,ge,Re))}),V},Te.matches=function(S){return aw(ps(S,1))},Te.matchesProperty=function(S,E){return sw(S,ps(E,1))},Te.memoize=oh,Te.merge=jc,Te.mergeWith=jb,Te.method=Yf,Te.methodOf=Ub,Te.mixin=lg,Te.negate=hm,Te.nthArg=function(S){return S=mr(S),kr(function(E){return lw(E,S)})},Te.omit=Hw,Te.omitBy=function(S,E){return mm(S,hm(Qn(E)))},Te.once=function(S){return xb(2,S)},Te.orderBy=function(S,E,V,ie){return S==null?[]:(hr(E)||(E=E==null?[]:[E]),hr(V=ie?l:V)||(V=V==null?[]:[V]),uw(S,E,V))},Te.over=ug,Te.overArgs=IE,Te.overEvery=cg,Te.overSome=Hb,Te.partial=zf,Te.partialRight=Yu,Te.partition=wb,Te.pick=Lb,Te.pickBy=mm,Te.property=Xb,Te.propertyOf=function(S){return function(E){return S==null?l:zu(S,E)}},Te.pull=EE,Te.pullAll=Nw,Te.pullAllBy=function(S,E,V){return S&&S.length&&E&&E.length?z0(S,E,Qn(V,2)):S},Te.pullAllWith=function(S,E,V){return S&&S.length&&E&&E.length?z0(S,E,l,V):S},Te.pullAt=vb,Te.range=qw,Te.rangeRight=Li,Te.rearg=Cb,Te.reject=function(S,E){return(hr(S)?ia:Kr)(S,hm(Qn(E,3)))},Te.remove=function(S,E){var V=[];if(!S||!S.length)return V;var ie=-1,ge=[],Re=S.length;for(E=Qn(E,3);++ie<Re;){var et=S[ie];E(et,ie,S)&&(V.push(et),ge.push(ie))}return Gd(S,ge),V},Te.rest=function(S,E){if(typeof S!="function")throw new We(u);return kr(S,E=E===l?E:mr(E))},Te.reverse=dm,Te.sampleSize=function(S,E,V){return E=(V?ua(S,E,V):E===l)?1:mr(E),(hr(S)?J1:W0)(S,E)},Te.set=function(S,E,V){return S==null?S:Kd(S,E,V)},Te.setWith=function(S,E,V,ie){return ie=typeof ie=="function"?ie:l,S==null?S:Kd(S,E,V,ie)},Te.shuffle=function(S){return(hr(S)?ew:kE)(S)},Te.slice=function(S,E,V){var ie=S==null?0:S.length;return ie?(V&&typeof V!="number"&&ua(S,E,V)?(E=0,V=ie):(E=E==null?0:mr(E),V=V===l?ie:mr(V)),Fs(S,E,V)):[]},Te.sortBy=RE,Te.sortedUniq=function(S){return S&&S.length?dw(S):[]},Te.sortedUniqBy=function(S,E){return S&&S.length?dw(S,Qn(E,2)):[]},Te.split=function(S,E,V){return V&&typeof V!="number"&&ua(S,E,V)&&(E=V=l),(V=V===l?T:V>>>0)?(S=qr(S))&&(typeof E=="string"||E!=null&&!Pb(E))&&!(E=Wa(E))&&dl(S)?Rc(Qa(S),0,V):S.split(E,V):[]},Te.spread=function(S,E){if(typeof S!="function")throw new We(u);return E=E==null?0:Si(mr(E),0),kr(function(V){var ie=V[E],ge=Rc(V,0,E);return ie&&hi(ge,ie),uo(S,this,ge)})},Te.tail=function(S){var E=S==null?0:S.length;return E?Fs(S,1,E):[]},Te.take=function(S,E,V){return S&&S.length?Fs(S,0,(E=V||E===l?1:mr(E))<0?0:E):[]},Te.takeRight=function(S,E,V){var ie=S==null?0:S.length;return ie?Fs(S,(E=ie-(E=V||E===l?1:mr(E)))<0?0:E,ie):[]},Te.takeRightWhile=function(S,E){return S&&S.length?Up(S,Qn(E,3),!1,!0):[]},Te.takeWhile=function(S,E){return S&&S.length?Up(S,Qn(E,3)):[]},Te.tap=function(S,E){return E(S),S},Te.throttle=function(S,E,V){var ie=!0,ge=!0;if(typeof S!="function")throw new We(u);return Io(V)&&(ie="leading"in V?!!V.leading:ie,ge="trailing"in V?!!V.trailing:ge),Fw(S,E,{leading:ie,maxWait:E,trailing:ge})},Te.thru=rh,Te.toArray=sh,Te.toPairs=Xw,Te.toPairsIn=Bb,Te.toPath=function(S){return hr(S)?Lr(S,pi):Ui(S)?[S]:Ya($w(qr(S)))},Te.toPlainObject=Ab,Te.transform=function(S,E,V){var ie=hr(S),ge=ie||Zu(S)||Dc(S);if(E=Qn(E,4),V==null){var Re=S&&S.constructor;V=ge?ie?new Re:[]:Io(S)&&Uu(Re)?Yd(Lu(S)):{}}return(ge?_a:$n)(S,function(et,it,pt){return E(V,et,it,pt)}),V},Te.unary=function(S){return Sb(S,1)},Te.union=Ua,Te.unionBy=gi,Te.unionWith=TE,Te.uniq=function(S){return S&&S.length?Ac(S):[]},Te.uniqBy=function(S,E){return S&&S.length?Ac(S,Qn(E,2)):[]},Te.uniqWith=function(S,E){return E=typeof E=="function"?E:l,S&&S.length?Ac(S,l,E):[]},Te.unset=function(S,E){return S==null||Kv(S,E)},Te.unzip=Ha,Te.unzipWith=Zn,Te.update=function(S,E,V){return S==null?S:hw(S,E,H0(V))},Te.updateWith=function(S,E,V,ie){return ie=typeof ie=="function"?ie:l,S==null?S:hw(S,E,H0(V),ie)},Te.values=Lc,Te.valuesIn=function(S){return S==null?[]:Ld(S,ji(S))},Te.without=mb,Te.words=vl,Te.wrap=function(S,E){return zf(H0(E),S)},Te.xor=yb,Te.xorBy=bb,Te.xorWith=Iw,Te.zip=Dw,Te.zipObject=function(S,E){return gw(S||[],E||[],Zd)},Te.zipObjectDeep=function(S,E){return gw(S||[],E||[],Kd)},Te.zipWith=PE,Te.entries=Xw,Te.entriesIn=Bb,Te.extend=Mb,Te.extendWith=Xu,lg(Te,Te),Te.add=Gb,Te.attempt=_m,Te.camelCase=ym,Te.capitalize=sg,Te.ceil=Jw,Te.clamp=function(S,E,V){return V===l&&(V=E,E=l),V!==l&&(V=(V=Ea(V))==V?V:0),E!==l&&(E=(E=Ea(E))==E?E:0),$c(Ea(S),E,V)},Te.clone=function(S){return ps(S,4)},Te.cloneDeep=function(S){return ps(S,5)},Te.cloneDeepWith=function(S,E){return ps(S,5,E=typeof E=="function"?E:l)},Te.cloneWith=function(S,E){return ps(S,4,E=typeof E=="function"?E:l)},Te.conformsTo=function(S,E){return E==null||j0(S,E,vi(E))},Te.deburr=bm,Te.defaultTo=function(S,E){return S==null||S!=S?E:S},Te.divide=eS,Te.endsWith=function(S,E,V){S=qr(S),E=Wa(E);var ie=S.length,ge=V=V===l?ie:$c(mr(V),0,ie);return(V-=E.length)>=0&&S.slice(V,ge)==E},Te.eq=Po,Te.escape=function(S){return(S=qr(S))&&Je.test(S)?S.replace(Be,ai):S},Te.escapeRegExp=function(S){return(S=qr(S))&&Wt.test(S)?S.replace(kt,"\\$&"):S},Te.every=function(S,E,V){var ie=hr(S)?Iv:rw;return V&&ua(S,E,V)&&(E=l),ie(S,Qn(E,3))},Te.find=AE,Te.findIndex=fb,Te.findKey=function(S,E){return cl(S,Qn(E,3),$n)},Te.findLast=ME,Te.findLastIndex=db,Te.findLastKey=function(S,E){return cl(S,Qn(E,3),vo)},Te.floor=Kb,Te.forEach=Ob,Te.forEachRight=Vf,Te.forIn=function(S,E){return S==null?S:xr(S,Qn(E,3),ji)},Te.forInRight=function(S,E){return S==null?S:si(S,Qn(E,3),ji)},Te.forOwn=function(S,E){return S&&$n(S,Qn(E,3))},Te.forOwnRight=function(S,E){return S&&vo(S,Qn(E,3))},Te.get=ig,Te.gt=pm,Te.gte=ng,Te.has=function(S,E){return S!=null&&nb(S,E,ow)},Te.hasIn=ag,Te.head=pb,Te.identity=ca,Te.includes=function(S,E,V,ie){S=Ca(S)?S:Lc(S),V=V&&!ie?mr(V):0;var ge=S.length;return V<0&&(V=Si(ge+V,0)),rg(S)?V<=ge&&S.indexOf(E,V)>-1:!!ge&&Cc(S,E,V)>-1},Te.indexOf=function(S,E,V){var ie=S==null?0:S.length;if(!ie)return-1;var ge=V==null?0:mr(V);return ge<0&&(ge=Si(ie+ge,0)),Cc(S,E,ge)},Te.inRange=function(S,E,V){return E=ou(E),V===l?(V=E,E=0):V=ou(V),function(ie,ge,Re){return ie>=la(ge,Re)&&ie<Si(ge,Re)}(S=Ea(S),E,V)},Te.invoke=Db,Te.isArguments=Qf,Te.isArray=hr,Te.isArrayBuffer=zw,Te.isArrayLike=Ca,Te.isArrayLikeObject=qo,Te.isBoolean=function(S){return S===!0||S===!1||Do(S)&&No(S)==N},Te.isBuffer=Zu,Te.isDate=gm,Te.isElement=function(S){return Do(S)&&S.nodeType===1&&!Hu(S)},Te.isEmpty=function(S){if(S==null)return!0;if(Ca(S)&&(hr(S)||typeof S=="string"||typeof S.splice=="function"||Zu(S)||Dc(S)||Qf(S)))return!S.length;var E=Zi(S);if(E==G||E==J)return!S.size;if(th(S))return!Qu(S).length;for(var V in S)if(fn.call(S,V))return!1;return!0},Te.isEqual=function(S,E){return Hd(S,E)},Te.isEqualWith=function(S,E,V){var ie=(V=typeof V=="function"?V:l)?V(S,E):l;return ie===l?Hd(S,E,l,V):!!ie},Te.isError=Eb,Te.isFinite=function(S){return typeof S=="number"&&H1(S)},Te.isFunction=Uu,Te.isInteger=vm,Te.isLength=Wf,Te.isMap=Qw,Te.isMatch=function(S,E){return S===E||Uv(S,E,am(E))},Te.isMatchWith=function(S,E,V){return V=typeof V=="function"?V:l,Uv(S,E,am(E),V)},Te.isNaN=function(S){return Tb(S)&&S!=+S},Te.isNative=function(S){if(Tw(S))throw new Tr("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Xd(S)},Te.isNil=function(S){return S==null},Te.isNull=function(S){return S===null},Te.isNumber=Tb,Te.isObject=Io,Te.isObjectLike=Do,Te.isPlainObject=Hu,Te.isRegExp=Pb,Te.isSafeInteger=function(S){return vm(S)&&S>=-9007199254740991&&S<=P},Te.isSet=ih,Te.isString=rg,Te.isSymbol=Ui,Te.isTypedArray=Dc,Te.isUndefined=function(S){return S===l},Te.isWeakMap=function(S){return Do(S)&&Zi(S)==ee},Te.isWeakSet=function(S){return Do(S)&&No(S)=="[object WeakSet]"},Te.join=function(S,E){return S==null?"":mE.call(S,E)},Te.kebabCase=Vb,Te.last=yo,Te.lastIndexOf=function(S,E,V){var ie=S==null?0:S.length;if(!ie)return-1;var ge=ie;return V!==l&&(ge=(ge=mr(V))<0?Si(ie+ge,0):la(ge,ie-1)),E==E?function(Re,et,it){for(var pt=it+1;pt--;)if(Re[pt]===et)return pt;return pt}(S,E,ge):Zl(S,Ul,ge,!0)},Te.lowerCase=Gw,Te.lowerFirst=Fb,Te.lt=ah,Te.lte=og,Te.max=function(S){return S&&S.length?Ko(S,ca,Qo):l},Te.maxBy=function(S,E){return S&&S.length?Ko(S,Qn(E,2),Qo):l},Te.mean=function(S){return Rr(S,ca)},Te.meanBy=function(S,E){return Rr(S,Qn(E,2))},Te.min=function(S){return S&&S.length?Ko(S,ca,Wu):l},Te.minBy=function(S,E){return S&&S.length?Ko(S,Qn(E,2),Wu):l},Te.stubArray=lh,Te.stubFalse=fg,Te.stubObject=function(){return{}},Te.stubString=function(){return""},Te.stubTrue=function(){return!0},Te.multiply=tS,Te.nth=function(S,E){return S&&S.length?lw(S,mr(E)):l},Te.noConflict=function(){return zo._===this&&(zo._=ko),this},Te.noop=wm,Te.now=eg,Te.pad=function(S,E,V){S=qr(S);var ie=(E=mr(E))?hl(S):0;if(!E||ie>=E)return S;var ge=(E-ie)/2;return nm(Fd(ge),V)+S+nm(jv(ge),V)},Te.padEnd=function(S,E,V){S=qr(S);var ie=(E=mr(E))?hl(S):0;return E&&ie<E?S+nm(E-ie,V):S},Te.padStart=function(S,E,V){S=qr(S);var ie=(E=mr(E))?hl(S):0;return E&&ie<E?nm(E-ie,V)+S:S},Te.parseInt=function(S,E,V){return V||E==null?E=0:E&&(E=+E),Bv(qr(S).replace(Ct,""),E||0)},Te.random=function(S,E,V){if(V&&typeof V!="boolean"&&ua(S,E,V)&&(E=V=l),V===l&&(typeof E=="boolean"?(V=E,E=l):typeof S=="boolean"&&(V=S,S=l)),S===l&&E===l?(S=0,E=1):(S=ou(S),E===l?(E=S,S=0):E=ou(E)),S>E){var ie=S;S=E,E=ie}if(V||S%1||E%1){var ge=Vv();return la(S+ge*(E-S+xc("1e-"+((ge+"").length-1))),E)}return Q0(S,E)},Te.reduce=function(S,E,V){var ie=hr(S)?Id:wi,ge=arguments.length<3;return ie(S,Qn(E,4),V,ge,Co)},Te.reduceRight=function(S,E,V){var ie=hr(S)?Dv:wi,ge=arguments.length<3;return ie(S,Qn(E,4),V,ge,nw)},Te.repeat=function(S,E,V){return E=(V?ua(S,E,V):E===l)?1:mr(E),Xv(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,V){var ie=-1,ge=(E=Mc(E,S)).length;for(ge||(ge=1,S=l);++ie<ge;){var Re=S==null?l:S[pi(E[ie])];Re===l&&(ie=ge,Re=V),S=Uu(Re)?Re.call(S):Re}return S},Te.round=Sm,Te.runInContext=mt,Te.sample=function(S){return(hr(S)?I0:SE)(S)},Te.size=function(S){if(S==null)return 0;if(Ca(S))return rg(S)?hl(S):S.length;var E=Zi(S);return E==G||E==J?S.size:Qu(S).length},Te.snakeCase=Kw,Te.some=function(S,E,V){var ie=hr(S)?jp:Y0;return V&&ua(S,E,V)&&(E=l),ie(S,Qn(E,3))},Te.sortedIndex=function(S,E){return Gv(S,E)},Te.sortedIndexBy=function(S,E,V){return Z0(S,E,Qn(V,2))},Te.sortedIndexOf=function(S,E){var V=S==null?0:S.length;if(V){var ie=Gv(S,E);if(ie<V&&Po(S[ie],E))return ie}return-1},Te.sortedLastIndex=function(S,E){return Gv(S,E,!0)},Te.sortedLastIndexBy=function(S,E,V){return Z0(S,E,Qn(V,2),!0)},Te.sortedLastIndexOf=function(S,E){if(S!=null&&S.length){var V=Gv(S,E,!0)-1;if(Po(S[V],E))return V}return-1},Te.startCase=zb,Te.startsWith=function(S,E,V){return S=qr(S),V=V==null?0:$c(mr(V),0,S.length),E=Wa(E),S.slice(V,V+E.length)==E},Te.subtract=xm,Te.sum=function(S){return S&&S.length?jd(S,ca):0},Te.sumBy=function(S,E){return S&&S.length?jd(S,Qn(E,2)):0},Te.template=function(S,E,V){var ie=Te.templateSettings;V&&ua(S,E,V)&&(E=l),S=qr(S),E=Xu({},E,ie,xw);var ge,Re,et=Xu({},E.imports,ie.imports,xw),it=vi(et),pt=Ld(et,it),Ue=0,Mt=E.interpolate||Ht,Ut="__p += '",kn=se((E.escape||Ht).source+"|"+Mt.source+"|"+(Mt===ut?nt:Ht).source+"|"+(E.evaluate||Ht).source+"|$","g"),Nn="//# sourceURL="+(fn.call(E,"sourceURL")?(E.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pv+"]")+`
- `;S.replace(kn,function(qt,Kn,On,qn,ir,$r){return On||(On=qn),Ut+=S.slice(Ue,$r).replace(Sn,Ec),Kn&&(ge=!0,Ut+=`' +
- __e(`+Kn+`) +
- '`),ir&&(Re=!0,Ut+=`';
- `+ir+`;
- __p += '`),On&&(Ut+=`' +
- ((__t = (`+On+`)) == null ? '' : __t) +
- '`),Ue=$r+qt.length,qt}),Ut+=`';
- `;var Un=fn.call(E,"variable")&&E.variable;if(Un){if(ke.test(Un))throw new Tr("Invalid `variable` option passed into `_.template`")}else Ut=`with (obj) {
- `+Ut+`
- }
- `;Ut=(Re?Ut.replace(be,""):Ut).replace(pe,"$1").replace(Me,"$1;"),Ut="function("+(Un||"obj")+`) {
- `+(Un?"":`obj || (obj = {});
- `)+"var __t, __p = ''"+(ge?", __e = _.escape":"")+(Re?`, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- `:`;
- `)+Ut+`return __p
- }`;var Bt=_m(function(){return go(it,Nn+"return "+Ut).apply(l,pt)});if(Bt.source=Ut,Eb(Bt))throw Bt;return Bt},Te.times=function(S,E){if((S=mr(S))<1||S>P)return[];var V=T,ie=la(S,T);E=Qn(E),S-=T;for(var ge=Rf(ie,E);++V<S;)E(V);return ge},Te.toFinite=ou,Te.toInteger=mr,Te.toLength=$b,Te.toLower=function(S){return qr(S).toLowerCase()},Te.toNumber=Ea,Te.toSafeInteger=function(S){return S?$c(mr(S),-9007199254740991,P):S===0?S:0},Te.toString=qr,Te.toUpper=function(S){return qr(S).toUpperCase()},Te.trim=function(S,E,V){if((S=qr(S))&&(V||E===l))return Lp(S);if(!S||!(E=Wa(E)))return S;var ie=Qa(S),ge=Qa(E);return Rc(ie,fs(ie,ge),Bp(ie,ge)+1).join("")},Te.trimEnd=function(S,E,V){if((S=qr(S))&&(V||E===l))return S.slice(0,xa(S)+1);if(!S||!(E=Wa(E)))return S;var ie=Qa(S);return Rc(ie,0,Bp(ie,Qa(E))+1).join("")},Te.trimStart=function(S,E,V){if((S=qr(S))&&(V||E===l))return S.replace(Ct,"");if(!S||!(E=Wa(E)))return S;var ie=Qa(S);return Rc(ie,fs(ie,Qa(E))).join("")},Te.truncate=function(S,E){var V=30,ie="...";if(Io(E)){var ge="separator"in E?E.separator:ge;V="length"in E?mr(E.length):V,ie="omission"in E?Wa(E.omission):ie}var Re=(S=qr(S)).length;if(dl(S)){var et=Qa(S);Re=et.length}if(V>=Re)return S;var it=V-hl(ie);if(it<1)return ie;var pt=et?Rc(et,0,it).join(""):S.slice(0,it);if(ge===l)return pt+ie;if(et&&(it+=pt.length-it),Pb(ge)){if(S.slice(it).search(ge)){var Ue,Mt=pt;for(ge.global||(ge=se(ge.source,qr(Ft.exec(ge))+"g")),ge.lastIndex=0;Ue=ge.exec(Mt);)var Ut=Ue.index;pt=pt.slice(0,Ut===l?it:Ut)}}else if(S.indexOf(Wa(ge),it)!=it){var kn=pt.lastIndexOf(ge);kn>-1&&(pt=pt.slice(0,kn))}return pt+ie},Te.unescape=function(S){return(S=qr(S))&&$e.test(S)?S.replace(Ze,ds):S},Te.uniqueId=function(S){var E=++oo;return qr(S)+E},Te.upperCase=DE,Te.upperFirst=Jo,Te.each=Ob,Te.eachRight=Vf,Te.first=pb,lg(Te,(uh={},$n(Te,function(S,E){fn.call(Te.prototype,E)||(uh[E]=S)}),uh),{chain:!1}),Te.VERSION="4.17.21",_a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(S){Te[S].placeholder=Te}),_a(["drop","take"],function(S,E){Dr.prototype[S]=function(V){V=V===l?1:Si(mr(V),0);var ie=this.__filtered__&&!E?new Dr(this):this.clone();return ie.__filtered__?ie.__takeCount__=la(V,ie.__takeCount__):ie.__views__.push({size:la(V,T),type:S+(ie.__dir__<0?"Right":"")}),ie},Dr.prototype[S+"Right"]=function(V){return this.reverse()[S](V).reverse()}}),_a(["filter","map","takeWhile"],function(S,E){var V=E+1,ie=V==1||V==3;Dr.prototype[S]=function(ge){var Re=this.clone();return Re.__iteratees__.push({iteratee:Qn(ge,3),type:V}),Re.__filtered__=Re.__filtered__||ie,Re}}),_a(["head","last"],function(S,E){var V="take"+(E?"Right":"");Dr.prototype[S]=function(){return this[V](1).value()[0]}}),_a(["initial","tail"],function(S,E){var V="drop"+(E?"":"Right");Dr.prototype[S]=function(){return this.__filtered__?new Dr(this):this[V](1)}}),Dr.prototype.compact=function(){return this.filter(ca)},Dr.prototype.find=function(S){return this.filter(S).head()},Dr.prototype.findLast=function(S){return this.reverse().find(S)},Dr.prototype.invokeMap=kr(function(S,E){return typeof S=="function"?new Dr(this):this.map(function(V){return Ud(V,S,E)})}),Dr.prototype.reject=function(S){return this.filter(hm(Qn(S)))},Dr.prototype.slice=function(S,E){S=mr(S);var V=this;return V.__filtered__&&(S>0||E<0)?new Dr(V):(S<0?V=V.takeRight(-S):S&&(V=V.drop(S)),E!==l&&(V=(E=mr(E))<0?V.dropRight(-E):V.take(E-S)),V)},Dr.prototype.takeRightWhile=function(S){return this.reverse().takeWhile(S).reverse()},Dr.prototype.toArray=function(){return this.take(T)},$n(Dr.prototype,function(S,E){var V=/^(?:filter|find|map|reject)|While$/.test(E),ie=/^(?:head|last)$/.test(E),ge=Te[ie?"take"+(E=="last"?"Right":""):E],Re=ie||/^find/.test(E);ge&&(Te.prototype[E]=function(){var et=this.__wrapped__,it=ie?[1]:arguments,pt=et instanceof Dr,Ue=it[0],Mt=pt||hr(et),Ut=function(Kn){var On=ge.apply(Te,hi([Kn],it));return ie&&kn?On[0]:On};Mt&&V&&typeof Ue=="function"&&Ue.length!=1&&(pt=Mt=!1);var kn=this.__chain__,Nn=!!this.__actions__.length,Un=Re&&!kn,Bt=pt&&!Nn;if(!Re&&Mt){et=Bt?et:new Dr(this);var qt=S.apply(et,it);return qt.__actions__.push({func:rh,args:[Ut],thisArg:l}),new Ls(qt,kn)}return Un&&Bt?S.apply(this,it):(qt=this.thru(Ut),Un?ie?qt.value()[0]:qt.value():qt)})}),_a(["pop","push","shift","sort","splice","unshift"],function(S){var E=st[S],V=/^(?:push|sort|unshift)$/.test(S)?"tap":"thru",ie=/^(?:pop|shift)$/.test(S);Te.prototype[S]=function(){var ge=arguments;if(ie&&!this.__chain__){var Re=this.value();return E.apply(hr(Re)?Re:[],ge)}return this[V](function(et){return E.apply(hr(et)?et:[],ge)})}}),$n(Dr.prototype,function(S,E){var V=Te[E];if(V){var ie=V.name+"";fn.call(Wd,ie)||(Wd[ie]=[]),Wd[ie].push({name:E,func:V})}}),Wd[Xp(l,2).name]=[{name:"wrapper",func:l}],Dr.prototype.clone=function(){var S=new Dr(this.__wrapped__);return S.__actions__=Ya(this.__actions__),S.__dir__=this.__dir__,S.__filtered__=this.__filtered__,S.__iteratees__=Ya(this.__iteratees__),S.__takeCount__=this.__takeCount__,S.__views__=Ya(this.__views__),S},Dr.prototype.reverse=function(){if(this.__filtered__){var S=new Dr(this);S.__dir__=-1,S.__filtered__=!0}else(S=this.clone()).__dir__*=-1;return S},Dr.prototype.value=function(){var S=this.__wrapped__.value(),E=this.__dir__,V=hr(S),ie=E<0,ge=V?S.length:0,Re=function($r,jn,Hn){for(var mi=-1,Hi=Hn.length;++mi<Hi;){var ml=Hn[mi],ki=ml.size;switch(ml.type){case"drop":$r+=ki;break;case"dropRight":jn-=ki;break;case"take":jn=la(jn,$r+ki);break;case"takeRight":$r=Si($r,jn-ki)}}return{start:$r,end:jn}}(0,ge,this.__views__),et=Re.start,it=Re.end,pt=it-et,Ue=ie?it:et-1,Mt=this.__iteratees__,Ut=Mt.length,kn=0,Nn=la(pt,this.__takeCount__);if(!V||!ie&&ge==pt&&Nn==pt)return pw(S,this.__actions__);var Un=[];e:for(;pt--&&kn<Nn;){for(var Bt=-1,qt=S[Ue+=E];++Bt<Ut;){var Kn=Mt[Bt],On=Kn.iteratee,qn=Kn.type,ir=On(qt);if(qn==2)qt=ir;else if(!ir){if(qn==1)continue e;break e}}Un[kn++]=qt}return Un},Te.prototype.at=$E,Te.prototype.chain=function(){return jw(this)},Te.prototype.commit=function(){return new Ls(this.value(),this.__chain__)},Te.prototype.next=function(){this.__values__===l&&(this.__values__=sh(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,V=this;V instanceof Yp;){var ie=Aw(V);ie.__index__=0,ie.__values__=l,E?ge.__wrapped__=ie:E=ie;var ge=ie;V=V.__wrapped__}return ge.__wrapped__=S,E},Te.prototype.reverse=function(){var S=this.__wrapped__;if(S instanceof Dr){var E=S;return this.__actions__.length&&(E=new Dr(this)),(E=E.reverse()).__actions__.push({func:rh,args:[dm],thisArg:l}),new Ls(E,this.__chain__)}return this.thru(dm)},Te.prototype.toJSON=Te.prototype.valueOf=Te.prototype.value=function(){return pw(this.__wrapped__,this.__actions__)},Te.prototype.first=Te.prototype.head,Bu&&(Te.prototype[Bu]=function(){return this}),Te}();zo._=pl,(s=function(){return pl}.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"),P=0,$=function(A){d(A,C,{value:{objectID:"O"+P++,weakData:{}}})},T=n.exports={enable:function(){T.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,j=I.length;D<j;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,P=s(l(w)),$=a(b),T=P.length;return $<0||$>=T?y?"":void 0:(k=d(P,$))<55296||k>56319||$+1===T||(C=d(P,$+1))<56320||C>57343?y?u(P,$):k:y?p(P,$,$+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=`
- \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(P){if(o===setTimeout)return setTimeout(P,0);if((o===s||!o)&&setTimeout)return o=setTimeout,setTimeout(P,0);try{return o(P,0)}catch{try{return o.call(null,P,0)}catch{return o.call(this,P,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 P=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(T){if(i===clearTimeout)return clearTimeout(T);if((i===l||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(T);try{i(T)}catch{try{return i.call(null,T)}catch{return i.call(this,T)}}}(P)}}function k(P,$){this.fun=P,this.array=$}function C(){}a.nextTick=function(P){var $=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)$[T-1]=arguments[T];p.push(new k(P,$)),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(P){return[]},a.binding=function(P){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(P){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 P=d(this),$=C==null?void 0:p(C,w);return $?i($,C,P):new RegExp(C)[w](u(P))},function(C){var P=s(this),$=u(C),T=k(b,P,$);if(T.done)return T.value;if(!P.global)return y(P,$);var A=P.unicode;P.lastIndex=0;for(var R,B=[],N=0;(R=y(P,$))!==null;){var I=u(R[0]);B[N]=I,I===""&&(P.lastIndex=v($,l(P.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),P=o(169),$=o(128),T=u.setImmediate,A=u.clearImmediate,R=u.process,B=u.Dispatch,N=u.Function,I=u.MessageChannel,D=u.String,j=0,F={},G="onreadystatechange";try{i=u.location}catch{}var ae=function(J){if(y(F,J)){var z=F[J];delete F[J],z()}},K=function(J){return function(){ae(J)}},H=function(J){ae(J.data)},oe=function(J){u.postMessage(D(J),i.protocol+"//"+i.host)};T&&A||(T=function(J){var z=k(arguments,1);return F[++j]=function(){d(v(J)?J:N(J),void 0,z)},a(j),j},A=function(J){delete F[J]},$?a=function(J){R.nextTick(K(J))}:B&&B.now?a=function(J){B.now(K(J))}:I&&!P?(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(oe)?(a=oe,u.addEventListener("message",H,!1)):a=G in C("script")?function(J){b.appendChild(C("script")).onreadystatechange=function(){b.removeChild(this),ae(J)}}:function(J){setTimeout(K(J),0)}),n.exports={set:T,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 j=u(D);return j.filter(function(F,G){return j.indexOf(F)===G})}(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 j=I;I.then(Object(a.k)("observableFromPromise-resolve",function(G){j.value=G,j.state=v}),Object(a.k)("observableFromPromise-reject",function(G){j.value=G,j.state=y})),j.isPromiseBasedObservable=!0,j.case=w;var F=D&&D.state===v?D.value:void 0;return Object(a.q)(j,{value:F,state:p},{},{deep:!1}),j}(function(I){I.reject=Object(a.k)("fromPromise.reject",function(D){var j=I(Promise.reject(D));return j.state=y,j.value=D,j}),I.resolve=Object(a.k)("fromPromise.resolve",function(D){D===void 0&&(D=void 0);var j=I(Promise.resolve(D));return j.state=v,j.value=D,j})})(b||(b={}));var k=function(I,D,j,F){var G,ae=arguments.length,K=ae<3?D:F===null?F=Object.getOwnPropertyDescriptor(D,j):F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(I,D,j,F);else for(var H=I.length-1;H>=0;H--)(G=I[H])&&(K=(ae<3?G(K):ae>3?G(D,j,K):G(D,j))||K);return ae>3&&K&&Object.defineProperty(D,j,K),K};(function(){function I(D,j){var F=this;Object(a.G)(function(){F.current=j,F.subscription=D.subscribe(F)})}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,j=1,F=arguments.length;j<F;j++)for(var G in D=arguments[j])Object.prototype.hasOwnProperty.call(D,G)&&(I[G]=D[G]);return I},C.apply(this,arguments)},P=function(I,D,j,F){var G,ae=arguments.length,K=ae<3?D:F===null?F=Object.getOwnPropertyDescriptor(D,j):F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(I,D,j,F);else for(var H=I.length-1;H>=0;H--)(G=I[H])&&(K=(ae<3?G(K):ae>3?G(D,j,K):G(D,j))||K);return ae>3&&K&&Object.defineProperty(D,j,K),K},$=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function I(D){var j=this;this.model=D,this.localValues=a.C.map({}),this.localComputedValues=a.C.map({}),this.isPropertyDirty=function(F){return j.localValues.has(F)},l(Object(a.A)(D),"createViewModel expects an observable object"),d(D).forEach(function(F){if(F!==a.a&&F!=="__mobxDidRunLazyInitializers"){if(l($.indexOf(F)===-1,"The propertyname "+F+" is reserved and cannot be used with viewModels"),Object(a.w)(D,F)){var G=Object(a.h)(D,F).derivation;j.localComputedValues.set(F,Object(a.m)(G.bind(j)))}var ae=Object.getOwnPropertyDescriptor(D,F),K=ae?{enumerable:ae.enumerable}:{};Object.defineProperty(j,F,C(C({},K),{configurable:!0,get:function(){return Object(a.w)(D,F)?j.localComputedValues.get(F).get():j.isPropertyDirty(F)?j.localValues.get(F):j.model[F]},set:Object(a.k)(function(H){H!==j.model[F]?j.localValues.set(F,H):j.localValues.delete(F)})}))}})}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(j){var F=D.localValues.get(j),G=D.model[j];Object(a.y)(G)?G.replace(F):Object(a.z)(G)?(G.clear(),G.merge(F)):Object(a.v)(F)||(D.model[j]=F)}),this.localValues.clear()},I.prototype.reset=function(){this.localValues.clear()},I.prototype.resetProperty=function(D){this.localValues.delete(D)},P([a.m],I.prototype,"isDirty",null),P([a.m],I.prototype,"changedValues",null),P([a.k.bound],I.prototype,"submit",null),P([a.k.bound],I.prototype,"reset",null),P([a.k.bound],I.prototype,"resetProperty",null)})();function T(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 j=new WeakMap;function F(K){var H=j.get(K.object);(function(oe,J){switch(oe.type){case"add":G(oe.newValue,J,oe.name);break;case"update":ae(oe.oldValue),G(oe.newValue,J,oe.name||""+oe.index);break;case"remove":case"delete":ae(oe.oldValue);break;case"splice":oe.removed.map(ae),oe.added.forEach(function(ee,he){return G(ee,J,""+(oe.index+he))});for(var z=oe.index+oe.addedCount;z<oe.object.length;z++)if(A(oe.object[z])){var X=j.get(oe.object[z]);X&&(X.path=""+z)}}})(K,H),D(K,T(H),I)}function G(K,H,oe){if(A(K)){var J=j.get(K);if(J){if(J.parent!==H||J.path!==oe)throw new Error("The same observable object cannot appear twice in the same tree, trying to assign it to '"+T(H)+"/"+oe+"', but it already exists at '"+T(J.parent)+"/"+J.path+"'")}else{var z={parent:H,path:oe,dispose:Object(a.D)(K,F)};j.set(K,z),Object(a.p)(K).forEach(function(X){var ee=X[0];return G(X[1],z,ee)})}}}function ae(K){if(A(K)){var H=j.get(K);if(!H)return;j.delete(K),H.dispose(),Object(a.L)(K).forEach(ae)}}return G(I,void 0,""),function(){ae(I)}}var B,N=(B=function(I,D){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,F){j.__proto__=F}||function(j,F){for(var G in F)F.hasOwnProperty(G)&&(j[G]=F[G])},B(I,D)},function(I,D){function j(){this.constructor=I}B(I,D),I.prototype=D===null?Object.create(D):(j.prototype=D.prototype,new j)});(function(I){function D(j,F,G){var ae=G===void 0?{}:G,K=ae.name,H=K===void 0?"ogm"+(1e3*Math.random()|0):K,oe=ae.keyToName,J=oe===void 0?function(ee){return""+ee}:oe,z=I.call(this)||this;z._keyToName=J,z._groupBy=F,z._ogmInfoKey=Symbol("ogmInfo"+H),z._base=j;for(var X=0;X<j.length;X++)z._addItem(j[X]);return z._disposeBaseObserver=Object(a.D)(z._base,function(ee){if(ee.type==="splice")Object(a.J)(function(){for(var he=0,fe=ee.removed;he<fe.length;he++){var Le=fe[he];z._removeItem(Le)}for(var Ie=0,ze=ee.added;Ie<ze.length;Ie++){var Ae=ze[Ie];z._addItem(Ae)}});else{if(ee.type!=="update")throw new Error("illegal state");Object(a.J)(function(){z._removeItem(ee.oldValue),z._addItem(ee.newValue)})}}),z}N(D,I),D.prototype.clear=function(){throw new Error("not supported")},D.prototype.delete=function(j){throw new Error("not supported")},D.prototype.set=function(j,F){throw new Error("not supported")},D.prototype.dispose=function(){this._disposeBaseObserver();for(var j=0;j<this._base.length;j++){var F=this._base[j];F[this._ogmInfoKey].reaction(),delete F[this._ogmInfoKey]}},D.prototype._getGroupArr=function(j){var F=I.prototype.get.call(this,j);return F===void 0&&(F=Object(a.C)([],{name:"GroupArray["+this._keyToName(j)+"]",deep:!1}),I.prototype.set.call(this,j,F)),F},D.prototype._removeFromGroupArr=function(j,F){var G=I.prototype.get.call(this,j);G.length===1?I.prototype.delete.call(this,j):(F===G.length-1||(G[F]=G[G.length-1],G[F][this._ogmInfoKey].groupArrIndex=F),G.length--)},D.prototype._addItem=function(j){var F=this,G=this._groupBy(j),ae=this._getGroupArr(G),K={groupByValue:G,groupArrIndex:ae.length,reaction:Object(a.F)(function(){return F._groupBy(j)},function(H,oe){var J=j[F._ogmInfoKey];F._removeFromGroupArr(J.groupByValue,J.groupArrIndex);var z=F._getGroupArr(H),X=z.length;z.push(j),J.groupByValue=H,J.groupArrIndex=X})};Object.defineProperty(j,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:K}),ae.push(j)},D.prototype._removeItem=function(j){var F=j[this._ogmInfoKey];this._removeFromGroupArr(F.groupByValue,F.groupArrIndex),F.reaction(),delete j[this._ogmInfoKey]}})(a.b),function(){function I(D,j){this.base=D,this.args=j,this.closestIdx=0,this.isDisposed=!1;for(var F=this.closest=this.root=D,G=0;G<this.args.length-1&&(F=F.get(j[G]));G++)this.closest=F;this.closestIdx=G}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 j=this.args.length,F=this.closest,G=this.closestIdx;G<j-1;G++){var ae=new Map;F.set(this.args[G],ae),F=ae}this.closestIdx=j-1,this.closest=F,F.set(this.args[j-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 j=this.root,F=[j],G=0;G<D-1;G++)j=j.get(this.args[G]),F.push(j);for(G=F.length-1;G>0;G--)F[G].size===0&&F[G-1].delete(this.args[G-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||T(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 P(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,j=[];for(N=function(F){return F==="+"?["+"]:(F=F.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],j.push("shift")),C(I)&&j.push(I);return{key:I,modifiers:j,action:B=P(I,j,B)}}function T(R,B){return R!==null&&R!==s&&(R===B||T(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,j=!1,F=!1;function G(z){z=z||{};var X,ee=!1;for(X in I)z[X]?ee=!0:I[X]=0;ee||(F=!1)}function ae(z,X,ee,he,fe,Le){var Ie,ze,Ae,_e,ye=[],Ne=ee.type;if(!B._callbacks[z])return[];for(Ne=="keyup"&&C(z)&&(X=[z]),Ie=0;Ie<B._callbacks[z].length;++Ie)if(ze=B._callbacks[z][Ie],(he||!ze.seq||I[ze.seq]==ze.level)&&Ne==ze.action&&(Ne=="keypress"&&!ee.metaKey&&!ee.ctrlKey||(Ae=X,_e=ze.modifiers,Ae.sort().join(",")===_e.sort().join(",")))){var Se=!he&&ze.combo==fe,ce=he&&ze.seq==he&&ze.level==Le;(Se||ce)&&B._callbacks[z].splice(Ie,1),ye.push(ze)}return ye}function K(z,X,ee,he){B.stopCallback(X,X.target||X.srcElement,ee,he)||z(X,ee)===!1&&(function(fe){fe.preventDefault?fe.preventDefault():fe.returnValue=!1}(X),function(fe){fe.stopPropagation?fe.stopPropagation():fe.cancelBubble=!0}(X))}function H(z){typeof z.which!="number"&&(z.which=z.keyCode);var X=k(z);X&&(z.type!="keyup"||D!==X?B.handleKey(X,function(ee){var he=[];return ee.shiftKey&&he.push("shift"),ee.altKey&&he.push("alt"),ee.ctrlKey&&he.push("ctrl"),ee.metaKey&&he.push("meta"),he}(z),z):D=!1)}function oe(z,X,ee,he){function fe(Ae){return function(){F=Ae,++I[z],clearTimeout(N),N=setTimeout(G,1e3)}}function Le(Ae){K(ee,Ae,z),he!=="keyup"&&(D=k(Ae)),setTimeout(G,10)}I[z]=0;for(var Ie=0;Ie<X.length;++Ie){var ze=Ie+1===X.length?Le:fe(he||$(X[Ie+1]).action);J(X[Ie],ze,he,z,Ie)}}function J(z,X,ee,he,fe){B._directMap[z+":"+ee]=X;var Le,Ie=(z=z.replace(/\s+/g," ")).split(" ");Ie.length>1?oe(z,Ie,X,ee):(Le=$(z,ee),B._callbacks[Le.key]=B._callbacks[Le.key]||[],ae(Le.key,Le.modifiers,{type:Le.action},he,z,fe),B._callbacks[Le.key][he?"unshift":"push"]({callback:X,modifiers:Le.modifiers,action:Le.action,seq:he,level:fe,combo:z}))}B._handleKey=function(z,X,ee){var he,fe=ae(z,X,ee),Le={},Ie=0,ze=!1;for(he=0;he<fe.length;++he)fe[he].seq&&(Ie=Math.max(Ie,fe[he].level));for(he=0;he<fe.length;++he)if(fe[he].seq){if(fe[he].level!=Ie)continue;ze=!0,Le[fe[he].seq]=1,K(fe[he].callback,ee,fe[he].combo,fe[he].seq)}else ze||K(fe[he].callback,ee,fe[he].combo);var Ae=ee.type=="keypress"&&j;ee.type!=F||C(z)||Ae||G(Le),j=ze&&ee.type=="keydown"},B._bindMultiple=function(z,X,ee){for(var he=0;he<z.length;++he)J(z[he],X,ee)},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),P=o(148);n.exports=function($,T,A){var R=$.indexOf("Map")!==-1,B=$.indexOf("Weak")!==-1,N=R?"set":"add",I=a[$],D=I&&I.prototype,j=I,F={},G=function(z){var X=s(D[z]);u(D,z,z=="add"?function(ee){return X(this,ee===0?0:ee),this}:z=="delete"?function(ee){return!(B&&!w(ee))&&X(this,ee===0?0:ee)}:z=="get"?function(ee){return B&&!w(ee)?void 0:X(this,ee===0?0:ee)}:z=="has"?function(ee){return!(B&&!w(ee))&&X(this,ee===0?0:ee)}:function(ee,he){return X(this,ee===0?0:ee,he),this})};if(l($,!y(I)||!(B||D.forEach&&!b(function(){new I().entries().next()}))))j=A.getConstructor(T,$,R,N),d.enable();else if(l($,!0)){var ae=new j,K=ae[N](B?{}:-0,1)!=ae,H=b(function(){ae.has(1)}),oe=k(function(z){new I(z)}),J=!B&&b(function(){for(var z=new I,X=5;X--;)z[N](X,X);return!z.has(-0)});oe||((j=T(function(z,X){v(z,D);var ee=P(new I,z,j);return X!=null&&p(X,ee[N],{that:ee,AS_ENTRIES:R}),ee})).prototype=D,D.constructor=j),(H||J)&&(G("delete"),G("has"),R&&G("get")),(J||K)&&G(N),B&&D.clear&&delete D.clear}return F[$]=j,i({global:!0,forced:j!=I},F),C(j,$),B||A.setStrong(j,$,R),j}},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(P,$,T,A){var R=P(function(j,F){u(j,B),k(j,{type:$,index:a(null),first:void 0,last:void 0,size:0}),y||(j.size=0),F!=null&&d(F,j[A],{that:j,AS_ENTRIES:T})}),B=R.prototype,N=C($),I=function(j,F,G){var ae,K,H=N(j),oe=D(j,F);return oe?oe.value=G:(H.last=oe={index:K=w(F,!0),key:F,value:G,previous:ae=H.last,next:void 0,removed:!1},H.first||(H.first=oe),ae&&(ae.next=oe),y?H.size++:j.size++,K!=="F"&&(H.index[K]=oe)),j},D=function(j,F){var G,ae=N(j),K=w(F);if(K!=="F")return ae.index[K];for(G=ae.first;G;G=G.next)if(G.key==F)return G};return s(B,{clear:function(){for(var j=N(this),F=j.index,G=j.first;G;)G.removed=!0,G.previous&&(G.previous=G.previous.next=void 0),delete F[G.index],G=G.next;j.first=j.last=void 0,y?j.size=0:this.size=0},delete:function(j){var F=this,G=N(F),ae=D(F,j);if(ae){var K=ae.next,H=ae.previous;delete G.index[ae.index],ae.removed=!0,H&&(H.next=K),K&&(K.previous=H),G.first==ae&&(G.first=K),G.last==ae&&(G.last=H),y?G.size--:F.size--}return!!ae},forEach:function(j){for(var F,G=N(this),ae=l(j,arguments.length>1?arguments[1]:void 0);F=F?F.next:G.first;)for(ae(F.value,F.key,this);F&&F.removed;)F=F.previous},has:function(j){return!!D(this,j)}}),s(B,T?{get:function(j){var F=D(this,j);return F&&F.value},set:function(j,F){return I(this,j===0?0:j,F)}}:{add:function(j){return I(this,j=j===0?0:j,j)}}),y&&i(B,"size",{get:function(){return N(this).size}}),R},setStrong:function(P,$,T){var A=$+" Iterator",R=C($),B=C(A);p(P,$,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})},T?"entries":"values",!T,!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 P=l(C),$=p(this),T=arguments.length,A=T>1?arguments[1]:void 0,R=A!==void 0;R&&(A=a(A,T>2?arguments[2]:void 0));var B,N,I,D,j,F,G=b(P),ae=0;if(!G||this==k&&d(G))for(B=v(P),N=$?new this(B):k(B);B>ae;ae++)F=R?A(P[ae],ae):P[ae],y(N,ae,F);else for(j=(D=w(P,G)).next,N=$?new this:[];!(I=s(j,D)).done;ae++)F=R?u(D,A,[I.value,ae],!0):I.value,y(N,ae,F);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(`
- `)&&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),P=[],$=a(P.sort),T=a(P.push),A=p(function(){P.sort(void 0)}),R=p(function(){P.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,j,F,G="";for(I=65;I<76;I++){switch(D=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:j=3;break;case 68:case 71:j=4;break;default:j=2}for(F=0;F<47;F++)P.push({k:D+F,v:j})}for(P.sort(function(ae,K){return K.v-ae.v}),F=0;F<P.length;F++)D=P[F].k.charAt(0),G.charAt(G.length-1)!==D&&(G+=D);return G!=="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 j,F,G=[],ae=u(D);for(F=0;F<ae;F++)F in D&&T(G,D[F]);for(v(G,function(K){return function(H,oe){return oe===void 0?-1:H===void 0?1:K!==void 0?+K(H,oe)||0:d(H)>d(oe)?1:-1}}(I)),j=G.length,F=0;F<j;)D[F]=G[F++];for(;F<ae;)delete D[F++];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,P){var $=b+y.length,T=k.length,A=v;return C!==void 0&&(C=a(C),A=p),u(P,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>T){var D=s(I/10);return D===0?R:D<=T?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={},P={},$=Symbol(),T="abcdefghijklmnopqrst";return C[$]=7,T.split("").forEach(function(A){P[A]=A}),w({},C)[$]!=7||u(w({},P)).join("")!=T})?function(C,P){for(var $=v(C),T=arguments.length,A=1,R=d.f,B=p.f;T>A;)for(var N,I=y(arguments[A++]),D=R?k(u(I),R(I)):u(I),j=D.length,F=0;j>F;)N=D[F++],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,P){if(!u(w,C)){for(var $=[],T=0;T<C;T++)$[T]="a["+T+"]";w[C]=p("C,a","return new C("+y($,",")+")")}return w[C](k,P)};n.exports=p.bind||function(k){var C=s(this),P=C.prototype,$=d(arguments,1),T=function(){var A=v($,d(arguments));return this instanceof T?b(C,A.length,A):C.apply(k,A)};return l(P)&&(T.prototype=P),T}},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,""")+'"'),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),P=o(78),$=o(150),T=o(56),A=o(30),R=o(33),B=o(119),N=o(92),I=o(117),D=o(120),j=o(164),F=o(168).set,G=o(209),ae=o(212),K=o(213),H=o(170),oe=o(214),J=o(58),z=o(95),X=o(28),ee=o(215),he=o(128),fe=o(70),Le=X("species"),Ie="Promise",ze=J.getterFor(Ie),Ae=J.set,_e=J.getterFor(Ie),ye=w&&w.prototype,Ne=w,Se=ye,ce=p.TypeError,be=p.document,pe=p.process,Me=H.f,Ze=Me,Be=!!(be&&be.createEvent&&p.dispatchEvent),$e=A(p.PromiseRejectionEvent),Je="unhandledrejection",Oe=!1,Ye=z(Ie,function(){var me=N(Ne),Ve=me!==String(Ne);if(!Ve&&fe===66||d&&!Se.finally)return!0;if(fe>=51&&/native code/.test(me))return!1;var ke=new Ne(function(nt){nt(1)}),Xe=function(nt){nt(function(){},function(){})};return(ke.constructor={})[Le]=Xe,!(Oe=ke.then(function(){})instanceof Xe)||!Ve&&ee&&!$e}),ut=Ye||!D(function(me){Ne.all(me).catch(function(){})}),qe=function(me){var Ve;return!(!R(me)||!A(Ve=me.then))&&Ve},ot=function(me,Ve){if(!me.notified){me.notified=!0;var ke=me.reactions;G(function(){for(var Xe=me.value,nt=me.state==1,Ft=0;ke.length>Ft;){var Vn,rt,Lt,wn=ke[Ft++],Nt=nt?wn.ok:wn.fail,Xt=wn.resolve,Ht=wn.reject,Sn=wn.domain;try{Nt?(nt||(me.rejection===2&&Ct(me),me.rejection=1),Nt===!0?Vn=Xe:(Sn&&Sn.enter(),Vn=Nt(Xe),Sn&&(Sn.exit(),Lt=!0)),Vn===wn.promise?Ht(ce("Promise-chain cycle")):(rt=qe(Vn))?y(rt,Vn,Xt,Ht):Xt(Vn)):Ht(Xe)}catch(jr){Sn&&!Lt&&Sn.exit(),Ht(jr)}}me.reactions=[],me.notified=!1,Ve&&!me.rejection&&kt(me)})}},ft=function(me,Ve,ke){var Xe,nt;Be?((Xe=be.createEvent("Event")).promise=Ve,Xe.reason=ke,Xe.initEvent(me,!1,!0),p.dispatchEvent(Xe)):Xe={promise:Ve,reason:ke},!$e&&(nt=p["on"+me])?nt(Xe):me===Je&&K("Unhandled promise rejection",ke)},kt=function(me){y(F,p,function(){var Ve,ke=me.facade,Xe=me.value;if(Wt(me)&&(Ve=oe(function(){he?pe.emit("unhandledRejection",Xe,ke):ft(Je,ke,Xe)}),me.rejection=he||Wt(me)?2:1,Ve.error))throw Ve.value})},Wt=function(me){return me.rejection!==1&&!me.parent},Ct=function(me){y(F,p,function(){var Ve=me.facade;he?pe.emit("rejectionHandled",Ve):ft("rejectionhandled",Ve,me.value)})},ln=function(me,Ve,ke){return function(Xe){me(Ve,Xe,ke)}},Ce=function(me,Ve,ke){me.done||(me.done=!0,ke&&(me=ke),me.value=Ve,me.state=2,ot(me,!0))},He=function(me,Ve,ke){if(!me.done){me.done=!0,ke&&(me=ke);try{if(me.facade===Ve)throw ce("Promise can't be resolved itself");var Xe=qe(Ve);Xe?G(function(){var nt={done:!1};try{y(Xe,Ve,ln(He,nt,me),ln(Ce,nt,me))}catch(Ft){Ce(nt,Ft,me)}}):(me.value=Ve,me.state=1,ot(me,!1))}catch(nt){Ce({done:!1},nt,me)}}};if(Ye&&(Se=(Ne=function(me){B(this,Se),T(me),y(i,this);var Ve=ze(this);try{me(ln(He,Ve),ln(Ce,Ve))}catch(ke){Ce(Ve,ke)}}).prototype,(i=function(me){Ae(this,{type:Ie,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=k(Se,{then:function(me,Ve){var ke=_e(this),Xe=ke.reactions,nt=Me(j(this,Ne));return nt.ok=!A(me)||me,nt.fail=A(Ve)&&Ve,nt.domain=he?pe.domain:void 0,ke.parent=!0,Xe[Xe.length]=nt,ke.state!=0&&ot(ke,!1),nt.promise},catch:function(me){return this.then(void 0,me)}}),a=function(){var me=new i,Ve=ze(me);this.promise=me,this.resolve=ln(He,Ve),this.reject=ln(Ce,Ve)},H.f=Me=function(me){return me===Ne||me===s?new a(me):Ze(me)},!d&&A(w)&&ye!==Object.prototype)){l=ye.then,Oe||(b(ye,"then",function(me,Ve){var ke=this;return new Ne(function(Xe,nt){y(l,ke,Xe,nt)}).then(me,Ve)},{unsafe:!0}),b(ye,"catch",Se.catch,{unsafe:!0}));try{delete ye.constructor}catch{}C&&C(ye,Se)}u({global:!0,wrap:!0,forced:Ye},{Promise:Ne}),P(Ne,Ie,!1,!0),$(Ie),s=v(Ie),u({target:Ie,stat:!0,forced:Ye},{reject:function(me){var Ve=Me(this);return y(Ve.reject,void 0,me),Ve.promise}}),u({target:Ie,stat:!0,forced:d||Ye},{resolve:function(me){return ae(d&&this===s?Ne:this,me)}}),u({target:Ie,stat:!0,forced:ut},{all:function(me){var Ve=this,ke=Me(Ve),Xe=ke.resolve,nt=ke.reject,Ft=oe(function(){var Vn=T(Ve.resolve),rt=[],Lt=0,wn=1;I(me,function(Nt){var Xt=Lt++,Ht=!1;wn++,y(Vn,Ve,Nt).then(function(Sn){Ht||(Ht=!0,rt[Xt]=Sn,--wn||Xe(rt))},nt)}),--wn||Xe(rt)});return Ft.error&&nt(Ft.value),ke.promise},race:function(me){var Ve=this,ke=Me(Ve),Xe=ke.reject,nt=oe(function(){var Ft=T(Ve.resolve);I(me,function(Vn){y(Ft,Ve,Vn).then(ke.resolve,Xe)})});return nt.error&&Xe(nt.value),ke.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),P=o(210),$=o(211),T=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 j,F;for(T&&(j=B.domain)&&j.exit();a;){F=a.fn,a=a.next;try{F()}catch(G){throw a?l():s=void 0,G}}s=void 0,j&&j.enter()},C||T||$||!A||!R?!P&&N&&N.resolve?((p=N.resolve(void 0)).constructor=N,v=w(p.then,p),l=function(){v(i)}):T?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(j){var F={fn:j,next:void 0};s&&(s.next=F),a||(a=F,l()),s=F}},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),P=function(R,B,N){return B===0?N:B%2==1?P(R,B-1,N*R):P(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)},T=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,j=u(this),F=l(R),G=[0,0,0,0,0,0],ae="",K="0";if(F<0||F>20)throw v("Incorrect fraction digits");if(j!=j)return"NaN";if(j<=-1e21||j>=1e21)return y(j);if(j<0&&(ae="-",j=-j),j>1e-21)if(N=(B=function(H){for(var oe=0,J=H;J>=4096;)oe+=12,J/=4096;for(;J>=2;)oe+=1,J/=2;return oe}(j*P(2,69,1))-69)<0?j*P(2,-B,1):j/P(2,B,1),N*=4503599627370496,(B=52-B)>0){for($(G,0,N),I=F;I>=7;)$(G,1e7,0),I-=7;for($(G,P(10,I,1),0),I=B-1;I>=23;)T(G,1<<23),I-=23;T(G,1<<I),$(G,1,1),T(G,2),K=A(G)}else $(G,0,N),$(G,1<<-B,0),K=A(G)+b("0",F);return K=F>0?ae+((D=K.length)<=F?"0."+b("0",F-D)+K:k(K,0,D-F)+"."+k(K,D-F)):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,P=0,$=[];C>P;)w=k[P++],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 nc}),o.d(r,"LogicFlow",function(){return h$}),o.d(r,"h",function(){return Oe.g}),o.d(r,"LogicFlowUtil",function(){return i}),o.d(r,"BaseNode",function(){return Kf}),o.d(r,"RectNode",function(){return oP}),o.d(r,"CircleNode",function(){return lP}),o.d(r,"PolygonNode",function(){return hP}),o.d(r,"DiamondNode",function(){return mP}),o.d(r,"EllipseNode",function(){return wP}),o.d(r,"TextNode",function(){return kP}),o.d(r,"HtmlNode",function(){return PP}),o.d(r,"BaseEdge",function(){return l_}),o.d(r,"LineEdge",function(){return QP}),o.d(r,"PolylineEdge",function(){return HP}),o.d(r,"BezierEdge",function(){return qP}),o.d(r,"Arrow",function(){return bne}),o.d(r,"BaseEdgeModel",function(){return mb}),o.d(r,"BezierEdgeModel",function(){return cT}),o.d(r,"LineEdgeModel",function(){return Ff}),o.d(r,"PolylineEdgeModel",function(){return pm}),o.d(r,"BaseNodeModel",function(){return Gf}),o.d(r,"CircleNodeModel",function(){return vT}),o.d(r,"DiamondNodeModel",function(){return OT}),o.d(r,"EllipseNodeModel",function(){return kT}),o.d(r,"PolygonNodeModel",function(){return AT}),o.d(r,"RectNodeModel",function(){return IT}),o.d(r,"TextNodeModel",function(){return BT}),o.d(r,"HtmlNodeModel",function(){return zT}),o.d(r,"EditConfigModel",function(){return B0}),o.d(r,"GraphModel",function(){return pg}),o.d(r,"SnaplineModel",function(){return Q4}),o.d(r,"Keyboard",function(){return $8}),o.d(r,"get",function(){return Pj}),o.d(r,"defaults",function(){return Aj}),o.d(r,"ElementState",function(){return Kr}),o.d(r,"ModelType",function(){return xr}),o.d(r,"ElementType",function(){return si}),o.d(r,"EventType",function(){return $n}),o.d(r,"formateAnchorConnectValidateData",function(){return Jp});var i={};o.r(i),o.d(i,"createUuid",function(){return gl}),o.d(i,"refreshGraphId",function(){return Jd}),o.d(i,"StepDrag",function(){return vl}),o.d(i,"setupEdgeModel",function(){return Qw}),o.d(i,"isBboxOverLapping",function(){return Tb}),o.d(i,"filterRepeatPoints",function(){return Hu}),o.d(i,"getSimplePolyline",function(){return Pb}),o.d(i,"getExpandedBBox",function(){return ih}),o.d(i,"pointDirection",function(){return rg}),o.d(i,"getExpandedBBoxPoint",function(){return Ui}),o.d(i,"mergeBBox",function(){return Dc}),o.d(i,"getBBoxOfPoints",function(){return ah}),o.d(i,"getPointsFromBBox",function(){return og}),o.d(i,"isPointOutsideBBox",function(){return sh}),o.d(i,"getBBoxXCrossPoints",function(){return ou}),o.d(i,"getBBoxYCrossPoints",function(){return mr}),o.d(i,"getBBoxCrossPointsByPoint",function(){return $b}),o.d(i,"estimateDistance",function(){return Ea}),o.d(i,"costByPoints",function(){return Ab}),o.d(i,"heuristicCostEstimate",function(){return qr}),o.d(i,"rebuildPath",function(){return Ww}),o.d(i,"removeClosePointFromOpenList",function(){return Mb}),o.d(i,"isSegmentsIntersected",function(){return Xu}),o.d(i,"isSegmentCrossingBBox",function(){return Rb}),o.d(i,"getNextNeighborPoints",function(){return Yw}),o.d(i,"pathFinder",function(){return Zw}),o.d(i,"getBoxByOriginNode",function(){return Nb}),o.d(i,"pointFilter",function(){return ig}),o.d(i,"getPolylinePoints",function(){return ag}),o.d(i,"getLongestEdge",function(){return Uw}),o.d(i,"isSegmentsInNode",function(){return Ib}),o.d(i,"isSegmentsCrossNode",function(){return Db}),o.d(i,"getCrossPointInRect",function(){return vi}),o.d(i,"segmentDirection",function(){return ji}),o.d(i,"points2PointsList",function(){return jc}),o.d(i,"getSimplePoints",function(){return jb}),o.d(i,"getBytesLength",function(){return Lb}),o.d(i,"getTextWidth",function(){return Xw}),o.d(i,"getAppendAttributes",function(){return Bb}),o.d(i,"getBezierControlPoints",function(){return Lc}),o.d(i,"getBezierPoints",function(){return ym}),o.d(i,"getEndTangent",function(){return bm}),o.d(i,"getClosestPointOfPolyline",function(){return Vb}),o.d(i,"pickEdgeConfig",function(){return Gw}),o.d(i,"twoPointDistance",function(){return Fb}),o.d(i,"createEdgeGenerator",function(){return Kw}),o.d(i,"snapToGrid",function(){return tu}),o.d(i,"getGridOffset",function(){return qd}),o.d(i,"sampleCubic",function(){return hr}),o.d(i,"getThetaOfVector",function(){return Ca}),o.d(i,"degrees",function(){return qo}),o.d(i,"Vector",function(){return Li}),o.d(i,"Point",function(){return lh}),o.d(i,"Matrix",function(){return jn}),o.d(i,"RotateMatrix",function(){return Hn}),o.d(i,"ScaleMatrix",function(){return mi}),o.d(i,"TranslateMatrix",function(){return Hi});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(P,1e4))}function P(){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,T=[],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(){$?T.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 L=_.current.reaction;return s.d.useDebugValue(L,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,T=[];try{var ne=U();$=!1;var de=T.length>0?T:void 0;return s.d.useLayoutEffect(function(){de&&de.forEach(function(we){return we()})},[de]),ne}finally{$=!1}}(function(){var U,ne;if(L.track(function(){try{U=f()}catch(de){ne=de}}),ne)throw ne;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(L,U){return B(function(){return f(L,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(L){D[L]||Object.defineProperty(O,L,Object.getOwnPropertyDescriptor(g,L))}),h.displayName=x,h}var D={$$typeof:!0,render:!0,compare:!0,type:!0};function j(f){var c=f.children,h=f.render,g=c||h;return typeof g!="function"?null:B(g)}function F(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`.")}j.propTypes={children:F,render:F},j.displayName="Observer";var G;(G=s.g)||(G=d),Object(a.n)({reactionScheduler:G}),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 oe(f,c){if(J(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])||!J(f[h[O]],c[h[O]]))return!1;return!0}function J(f,c){return f===c?f!==0||1/f==1/c:f!=f&&c!=c}function z(f,c,h){Object.hasOwnProperty.call(f,c)?f[c]=h:Object.defineProperty(f,c,{enumerable:!1,configurable:!0,writable:!0,value:h})}var X=H("patchMixins"),ee=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 fe(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 Le(f,c,h){var g=function(M,L){var U=M[X]=M[X]||{},ne=U[L]=U[L]||{};return ne.locks=ne.locks||0,ne.methods=ne.methods||[],ne}(f,c);g.methods.indexOf(h)<0&&g.methods.push(h);var O=Object.getOwnPropertyDescriptor(f,c);if(!O||!O[ee]){var _=f[c],x=Ie(f,c,O?O.enumerable:void 0,g,_);Object.defineProperty(f,c,x)}}function Ie(f,c,h,g,O){var _,x=fe(O,g);return(_={})[ee]=!0,_.get=function(){return x},_.set=function(M){if(this===f)x=fe(M,g);else{var L=Ie(this,c,h,g,M);Object.defineProperty(this,c,L)}},_.configurable=!0,_.enumerable=h,_}var ze=a.a||"$mobx",Ae=H("isMobXReactObserver"),_e=H("isUnmounted"),ye=H("skipRender"),Ne=H("isForcingUpdate");function Se(f){var c=f.prototype;if(f[Ae]?ce(c):f[Ae]=!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!==pe)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else c.shouldComponentUpdate=pe;Me(c,"props"),Me(c,"state");var h=c.render;return c.render=function(){return be.call(this,h)},Le(c,"componentWillUnmount",function(){var g;(g=this.render[ze])===null||g===void 0||g.dispose(),this[_e]=!0,!this.render[ze]&&ce(this)}),f}function ce(f){return f.displayName||f.name||f.constructor&&(f.constructor.displayName||f.constructor.name)||"<component>"}function be(f){var c=this;z(this,ye,!1),z(this,Ne,!1);var h=ce(this),g=f.bind(this),O=!1,_=new a.c(h+".render()",function(){if(!O&&(O=!0,c[_e]!==!0)){var M=!0;try{z(c,Ne,!0),c[ye]||s.a.prototype.forceUpdate.call(c),M=!1}finally{z(c,Ne,!1),M&&_.dispose()}}});function x(){O=!1;var M=void 0,L=void 0;if(_.track(function(){try{L=Object(a.d)(!1,g)}catch(U){M=U}}),M)throw M;return L}return _.reactComponent=this,x[ze]=_,this.render=x,x.call(this)}function pe(f,c){return this.state!==c||!oe(this.props,f)}function Me(f,c){var h=H("reactProp_"+c+"_valueHolder"),g=H("reactProp_"+c+"_atomHolder");function O(){return this[g]||z(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[Ne]||oe(this[h],_)?z(this,h,_):(z(this,h,_),z(this,ye,!0),O.call(this).reportChanged(),z(this,ye,!1))}})}var Ze=typeof Symbol=="function"&&Symbol.for,Be=Ze?Symbol.for("react.forward_ref"):typeof s.e=="function"&&Object(s.e)(function(f){return null}).$$typeof,$e=Ze?Symbol.for("react.memo"):typeof s.f=="function"&&Object(s.f)(function(f){return null}).$$typeof;function Je(f){if(f.isMobxInjector,$e&&f.$$typeof===$e)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(Be&&f.$$typeof===Be){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)(j,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)?Se(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 Oe=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 Ye=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},ut=function(){this.__data__=[],this.size=0},qe=function(f,c){return f===c||f!=f&&c!=c},ot=function(f,c){for(var h=f.length;h--;)if(qe(f[h][0],c))return h;return-1},ft=Array.prototype.splice,kt=function(f){var c=this.__data__,h=ot(c,f);return!(h<0)&&(h==c.length-1?c.pop():ft.call(c,h,1),--this.size,!0)},Wt=function(f){var c=this.__data__,h=ot(c,f);return h<0?void 0:c[h][1]},Ct=function(f){return ot(this.__data__,f)>-1},ln=function(f,c){var h=this.__data__,g=ot(h,f);return g<0?(++this.size,h.push([f,c])):h[g][1]=c,this};function Ce(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])}}Ce.prototype.clear=ut,Ce.prototype.delete=kt,Ce.prototype.get=Wt,Ce.prototype.has=Ct,Ce.prototype.set=ln;var He=Ce,me=function(){this.__data__=new He,this.size=0},Ve=function(f){var c=this.__data__,h=c.delete(f);return this.size=c.size,h},ke=function(f){return this.__data__.get(f)},Xe=function(f){return this.__data__.has(f)},nt=o(31),Ft=nt.a.Symbol,Vn=Object.prototype,rt=Vn.hasOwnProperty,Lt=Vn.toString,wn=Ft?Ft.toStringTag:void 0,Nt=function(f){var c=rt.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,jr=function(f){return f==null?f===void 0?"[object Undefined]":"[object Null]":Sn&&Sn in Object(f)?Nt(f):Ht(f)},to=function(f){var c=typeof f;return f!=null&&(c=="object"||c=="function")},ya,fi=function(f){if(!to(f))return!1;var c=jr(f);return c=="[object Function]"||c=="[object GeneratorFunction]"||c=="[object AsyncFunction]"||c=="[object Proxy]"},Fa=nt.a["__core-js_shared__"],ba=(ya=/[^.]+$/.exec(Fa&&Fa.keys&&Fa.keys.IE_PROTO||""))?"Symbol(src)_1."+ya:"",Af=function(f){return!!ba&&ba in f},Ql=Function.prototype.toString,Wi=function(f){if(f!=null){try{return Ql.call(f)}catch{}try{return f+""}catch{}}return""},ll=/^\[object .+?Constructor\]$/,bn=Function.prototype,Sc=Object.prototype,wt=bn.toString,rn=Sc.hasOwnProperty,Yn=RegExp("^"+wt.call(rn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dr=function(f){return!(!to(f)||Af(f))&&(fi(f)?Yn:ll).test(Wi(f))},Yi=function(f,c){return f==null?void 0:f[c]},ii=function(f,c){var h=Yi(f,c);return dr(h)?h:void 0},Xo=ii(nt.a,"Map"),Go=ii(Object,"create"),di=function(){this.__data__=Go?Go(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(Go){var h=c[f];return h==="__lodash_hash_undefined__"?void 0:h}return cn.call(c,f)?c[f]:void 0},_r=Object.prototype.hasOwnProperty,Ni=function(f){var c=this.__data__;return Go?c[f]!==void 0:_r.call(c,f)},cs=function(f,c){var h=this.__data__;return this.size+=this.has(f)?0:1,h[f]=Go&&c===void 0?"__lodash_hash_undefined__":c,this};function Du(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])}}Du.prototype.clear=di,Du.prototype.delete=_t,Du.prototype.get=Bn,Du.prototype.has=Ni,Du.prototype.set=cs;var Tv=Du,Wl=function(){this.size=0,this.__data__={hash:new Tv,map:new(Xo||He),string:new Tv}},Tp=function(f){var c=typeof f;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?f!=="__proto__":f===null},Md=function(f,c){var h=f.__data__;return Tp(c)?h[typeof c=="string"?"string":"hash"]:h.map},Pp=function(f){var c=Md(this,f).delete(f);return this.size-=c?1:0,c},$p=function(f){return Md(this,f).get(f)},$0=function(f){return Md(this,f).has(f)},Pv=function(f,c){var h=Md(this,f),g=h.size;return h.set(f,c),this.size+=h.size==g?0:1,this};function Gr(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])}}Gr.prototype.clear=Wl,Gr.prototype.delete=Pp,Gr.prototype.get=$p,Gr.prototype.has=$0,Gr.prototype.set=Pv;var Xr=Gr,$v=function(f,c){var h=this.__data__;if(h instanceof He){var g=h.__data__;if(!Xo||g.length<199)return g.push([f,c]),this.size=++h.size,this;h=this.__data__=new Xr(g)}return h.set(f,c),this.size=h.size,this};function xc(f){var c=this.__data__=new He(f);this.size=c.size}xc.prototype.clear=me,xc.prototype.delete=Ve,xc.prototype.get=ke,xc.prototype.has=Xe,xc.prototype.set=$v;var Yl=xc,Ap=function(f){return this.__data__.set(f,"__lodash_hash_undefined__"),this},Av=function(f){return this.__data__.has(f)};function zo(f){var c=-1,h=f==null?0:f.length;for(this.__data__=new Xr;++c<h;)this.add(f[c])}zo.prototype.add=zo.prototype.push=Ap,zo.prototype.has=Av;var Mp=zo,Mf=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},Rp=function(f,c){return f.has(c)},Rd=function(f,c,h,g,O,_){var x=1&h,M=f.length,L=c.length;if(M!=L&&!(x&&L>M))return!1;var U=_.get(f),ne=_.get(c);if(U&&ne)return U==c&&ne==f;var de=-1,we=!0,De=2&h?new Mp:void 0;for(_.set(f,c),_.set(c,f);++de<M;){var Ke=f[de],tt=c[de];if(g)var dt=x?g(tt,Ke,de,c,f,_):g(Ke,tt,de,f,c,_);if(dt!==void 0){if(dt)continue;we=!1;break}if(De){if(!Mf(c,function(ht,yt){if(!Rp(De,yt)&&(Ke===ht||O(Ke,ht,h,g,_)))return De.push(yt)})){we=!1;break}}else if(Ke!==tt&&!O(Ke,tt,h,g,_)){we=!1;break}}return _.delete(f),_.delete(c),we},Ii=nt.a.Uint8Array,Np=function(f){var c=-1,h=Array(f.size);return f.forEach(function(g,O){h[++c]=[O,g]}),h},Mv=function(f){var c=-1,h=Array(f.size);return f.forEach(function(g){h[++c]=g}),h},Ip=Ft?Ft.prototype:void 0,Nd=Ip?Ip.valueOf:void 0,kc=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 Ii(f),new Ii(c)));case"[object Boolean]":case"[object Date]":case"[object Number]":return qe(+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=Np;case"[object Set]":var L=1&g;if(M||(M=Mv),f.size!=c.size&&!L)return!1;var U=x.get(f);if(U)return U==c;g|=2,x.set(f,c);var ne=Rd(M(f),M(c),g,O,_,x);return x.delete(f),ne;case"[object Symbol]":if(Nd)return Nd.call(f)==Nd.call(c)}return!1},ul=function(f,c){for(var h=-1,g=c.length,O=f.length;++h<g;)f[O+h]=c[h];return f},uo=Array.isArray,Rv=function(f,c,h){var g=c(f);return uo(f)?g:ul(g,h(f))},_a=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 _},Nv=function(){return[]},Iv=Object.prototype.propertyIsEnumerable,ia=Object.getOwnPropertySymbols,Oa=ia?function(f){return f==null?[]:(f=Object(f),_a(ia(f),function(c){return Iv.call(f,c)}))}:Nv,Dp=function(f,c){for(var h=-1,g=Array(f);++h<f;)g[h]=c(h);return g},Lr=function(f){return f!=null&&typeof f=="object"},hi=function(f){return Lr(f)&&jr(f)=="[object Arguments]"},Id=Object.prototype,Dv=Id.hasOwnProperty,jp=Id.propertyIsEnumerable,Dd=hi(function(){return arguments}())?hi:function(f){return Lr(f)&&Dv.call(f,"callee")&&!jp.call(f,"callee")},cl=Dd,Zl=o(48),Cc=/^(?:0|[1-9]\d*)$/,wa=function(f,c){var h=typeof f;return!!(c=c==null?9007199254740991:c)&&(h=="number"||h!="symbol"&&Cc.test(f))&&f>-1&&f%1==0&&f<c},Ul=function(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=9007199254740991},Rr={};Rr["[object Float32Array]"]=Rr["[object Float64Array]"]=Rr["[object Int8Array]"]=Rr["[object Int16Array]"]=Rr["[object Int32Array]"]=Rr["[object Uint8Array]"]=Rr["[object Uint8ClampedArray]"]=Rr["[object Uint16Array]"]=Rr["[object Uint32Array]"]=!0,Rr["[object Arguments]"]=Rr["[object Array]"]=Rr["[object ArrayBuffer]"]=Rr["[object Boolean]"]=Rr["[object DataView]"]=Rr["[object Date]"]=Rr["[object Error]"]=Rr["[object Function]"]=Rr["[object Map]"]=Rr["[object Number]"]=Rr["[object Object]"]=Rr["[object RegExp]"]=Rr["[object Set]"]=Rr["[object String]"]=Rr["[object WeakMap]"]=!1;var Sa=function(f){return Lr(f)&&Ul(f.length)&&!!Rr[jr(f)]},fl=function(f){return function(c){return f(c)}},wi=o(49),jd=wi.a&&wi.a.isTypedArray,Rf=jd?fl(jd):Sa,Lp=Object.prototype.hasOwnProperty,Ro=function(f,c){var h=uo(f),g=!h&&cl(f),O=!h&&!g&&Object(Zl.a)(f),_=!h&&!g&&!O&&Rf(f),x=h||g||O||_,M=x?Dp(f.length,String):[],L=M.length;for(var U in f)!c&&!Lp.call(f,U)||x&&(U=="length"||O&&(U=="offset"||U=="parent")||_&&(U=="buffer"||U=="byteLength"||U=="byteOffset")||wa(U,L))||M.push(U);return M},Ld=Object.prototype,Hl=function(f){var c=f&&f.constructor;return f===(typeof c=="function"&&c.prototype||Ld)},fs=function(f,c){return function(h){return f(c(h))}},Bp=fs(Object.keys,Object),A0=Object.prototype.hasOwnProperty,Vp=function(f){if(!Hl(f))return Bp(f);var c=[];for(var h in Object(f))A0.call(f,h)&&h!="constructor"&&c.push(h);return c},ai=function(f){return f!=null&&Ul(f.length)&&!fi(f)},Ec=function(f){return ai(f)?Ro(f):Vp(f)},dl=function(f){return Rv(f,Ec,Oa)},aa=Object.prototype.hasOwnProperty,Fp=function(f,c,h,g,O,_){var x=1&h,M=dl(f),L=M.length;if(L!=dl(c).length&&!x)return!1;for(var U=L;U--;){var ne=M[U];if(!(x?ne in c:aa.call(c,ne)))return!1}var de=_.get(f),we=_.get(c);if(de&&we)return de==c&&we==f;var De=!0;_.set(f,c),_.set(c,f);for(var Ke=x;++U<L;){var tt=f[ne=M[U]],dt=c[ne];if(g)var ht=x?g(dt,tt,ne,c,f,_):g(tt,dt,ne,f,c,_);if(!(ht===void 0?tt===dt||O(tt,dt,h,g,_):ht)){De=!1;break}Ke||(Ke=ne=="constructor")}if(De&&!Ke){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||(De=!1)}return _.delete(f),_.delete(c),De},za=ii(nt.a,"DataView"),ju=ii(nt.a,"Promise"),Bd=ii(nt.a,"Set"),hl=ii(nt.a,"WeakMap"),Qa="[object Map]",xa="[object Promise]",ds="[object Set]",pl="[object WeakMap]",mt="[object DataView]",At=Wi(za),It=Wi(Xo),sn=Wi(ju),sr=Wi(Bd),Tr=Wi(hl),go=jr;(za&&go(new za(new ArrayBuffer(1)))!=mt||Xo&&go(new Xo)!=Qa||ju&&go(ju.resolve())!=xa||Bd&&go(new Bd)!=ds||hl&&go(new hl)!=pl)&&(go=function(f){var c=jr(f),h=c=="[object Object]"?f.constructor:void 0,g=h?Wi(h):"";if(g)switch(g){case At:return mt;case It:return Qa;case sn:return xa;case sr:return ds;case Tr:return pl}return c});var Q=go,Y="[object Arguments]",se="[object Array]",Ee="[object Object]",We=Object.prototype.hasOwnProperty,st=function(f,c,h,g,O,_){var x=uo(f),M=uo(c),L=x?se:Q(f),U=M?se:Q(c),ne=(L=L==Y?Ee:L)==Ee,de=(U=U==Y?Ee:U)==Ee,we=L==U;if(we&&Object(Zl.a)(f)){if(!Object(Zl.a)(c))return!1;x=!0,ne=!1}if(we&&!ne)return _||(_=new Yl),x||Rf(f)?Rd(f,c,h,g,O,_):kc(f,c,L,h,g,O,_);if(!(1&h)){var De=ne&&We.call(f,"__wrapped__"),Ke=de&&We.call(c,"__wrapped__");if(De||Ke){var tt=De?f.value():f,dt=Ke?c.value():c;return _||(_=new Yl),O(tt,dt,h,g,_)}}return!!we&&(_||(_=new Yl),Fp(f,c,h,g,O,_))},Ot=function f(c,h,g,O,_){return c===h||(c==null||h==null||!Lr(c)&&!Lr(h)?c!=c&&h!=h:st(c,h,g,O,f,_))},Yt=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 L=(M=h[O])[0],U=f[L],ne=M[1];if(x&&M[2]){if(U===void 0&&!(L in f))return!1}else{var de=new Yl;if(g)var we=g(U,ne,L,f,c,de);if(!(we===void 0?Ot(ne,U,3,g,de):we))return!1}}return!0},mn=function(f){return f==f&&!to(f)},Or=function(f){for(var c=Ec(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))}},oo=function(f){var c=Or(f);return c.length==1&&c[0][2]?fn(c[0][0],c[0][1]):function(h){return h===f||Yt(h,f,c)}},ur=function(f){return typeof f=="symbol"||Lr(f)&&jr(f)=="[object Symbol]"},Qr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hs=/^\w*$/,ko=function(f,c){if(uo(f))return!1;var h=typeof f;return!(h!="number"&&h!="symbol"&&h!="boolean"&&f!=null&&!ur(f))||hs.test(f)||!Qr.test(f)||c!=null&&f in Object(c)};function ka(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(ka.Cache||Xr),h}ka.Cache=Xr;var Xl=ka,Gl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nf=/\\(\\)?/g,zp=function(f){var c=Xl(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(Gl,function(h,g,O,_){c.push(O?_.replace(Nf,"$1"):g||h)}),c}),Lu=Ft?Ft.prototype:void 0,Vd=Lu?Lu.toString:void 0,sa=function f(c){if(typeof c=="string")return c;if(uo(c))return Ye(c,f)+"";if(ur(c))return Vd?Vd.call(c):"";var h=c+"";return h=="0"&&1/c==-1/0?"-0":h},If=function(f){return f==null?"":sa(f)},Tc=function(f,c){return uo(f)?f:ko(f,c)?[f]:zp(If(f))},Bu=function(f){if(typeof f=="string"||ur(f))return f;var c=f+"";return c=="0"&&1/f==-1/0?"-0":c},Vu=function(f,c){for(var h=0,g=(c=Tc(c,f)).length;f!=null&&h<g;)f=f[Bu(c[h++])];return h&&h==g?f:void 0},Qp=function(f,c,h){var g=f==null?void 0:Vu(f,c);return g===void 0?h:g},pE=function(f,c){return f!=null&&c in Object(f)},gE=function(f,c,h){for(var g=-1,O=(c=Tc(c,f)).length,_=!1;++g<O;){var x=Bu(c[g]);if(!(_=f!=null&&h(f,x)))break;f=f[x]}return _||++g!=O?_:!!(O=f==null?0:f.length)&&Ul(O)&&wa(x,O)&&(uo(f)||cl(f))},U1=function(f,c){return f!=null&&gE(f,c,pE)},jv=function(f,c){return ko(f)&&mn(c)?fn(Bu(f),c):function(h){var g=Qp(h,f);return g===void 0&&g===c?U1(h,f):Ot(c,g,3)}},Fd=function(f){return f},M0=function(f){return function(c){return c==null?void 0:c[f]}},vE=function(f){return function(c){return Vu(c,f)}},H1=function(f){return ko(f)?M0(Bu(f)):vE(f)},mE=function(f){return typeof f=="function"?f:f==null?Fd:typeof f=="object"?uo(f)?jv(f[0],f[1]):oo(f):H1(f)},X1=function(f){return function(c,h,g){for(var O=-1,_=Object(c),x=g(c),M=x.length;M--;){var L=x[f?M:++O];if(h(_[L],L,_)===!1)break}return c}}(),Si=function(f,c){return function(h,g){if(h==null)return h;if(!ai(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&&X1(f,c,Ec)}),la=function(f,c){var h=-1,g=ai(f)?Array(f.length):[];return Si(f,function(O,_,x){g[++h]=c(O,_,x)}),g},Lv=function(f,c){return(uo(f)?Ye:la)(f,mE(c))};Object(a.n)({isolateGlobalState:!0});var Bv=function(){try{var f=ii(Object,"defineProperty");return f({},"",{}),f}catch{}}(),Vv=function(f,c,h){c=="__proto__"&&Bv?Bv(f,c,{configurable:!0,enumerable:!0,value:h,writable:!0}):f[c]=h},yE=Object.prototype.hasOwnProperty,zd=function(f,c,h){var g=f[c];yE.call(f,c)&&qe(g,h)&&(h!==void 0||c in f)||Vv(f,c,h)},Kl=function(f,c,h,g){var O=!h;h||(h={});for(var _=-1,x=c.length;++_<x;){var M=c[_],L=g?g(h[M],f[M],M,h,f):void 0;L===void 0&&(L=f[M]),O?Vv(h,M,L):zd(h,M,L)}return h},R0=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)},Df=Math.max,Qd=function(f,c,h){return c=Df(c===void 0?f.length-1:c,0),function(){for(var g=arguments,O=-1,_=Df(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),R0(f,this,M)}},Wp=function(f){return function(){return f}},Fv=Bv?function(f,c){return Bv(f,"toString",{configurable:!0,enumerable:!1,value:Wp(c),writable:!0})}:Fd,Wd=Date.now,bE=function(f){var c=0,h=0;return function(){var g=Wd(),O=16-(g-h);if(h=g,O>0){if(++c>=800)return arguments[0]}else c=0;return f.apply(void 0,arguments)}},G1=bE(Fv),_E=function(f,c){return G1(Qd(f,c,Fd),f+"")},OE=function(f,c,h){if(!to(h))return!1;var g=typeof c;return!!(g=="number"?ai(h)&&wa(c,h.length):g=="string"&&c in h)&&qe(h[c],f)},K1=function(f){return _E(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&&OE(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})},zv=Object.prototype.hasOwnProperty,xi=K1(function(f,c){if(Hl(c)||ai(c))Kl(c,Ec(c),f);else for(var h in c)zv.call(c,h)&&zd(f,h,c[h])}),q1=function(f,c,h,g){if(!to(f))return f;for(var O=-1,_=(c=Tc(c,f)).length,x=_-1,M=f;M!=null&&++O<_;){var L=Bu(c[O]),U=h;if(L==="__proto__"||L==="constructor"||L==="prototype")return f;if(O!=x){var ne=M[L];(U=g?g(ne,L,M):void 0)===void 0&&(U=to(ne)?ne:wa(c[O+1])?[]:{})}zd(M,L,U),M=M[L]}return f},Te=function(f,c,h){for(var g=-1,O=c.length,_={};++g<O;){var x=c[g],M=Vu(f,x);h(M,x)&&q1(_,Tc(x,f),M)}return _},Yd=function(f,c){return Te(f,c,function(h,g){return U1(f,g)})},Yp=Ft?Ft.isConcatSpreadable:void 0,Ls=function(f){return uo(f)||cl(f)||!!(Yp&&f&&f[Yp])},Dr=function f(c,h,g,O,_){var x=-1,M=c.length;for(g||(g=Ls),_||(_=[]);++x<M;){var L=c[x];h>0&&g(L)?h>1?f(L,h-1,g,O,_):ul(_,L):O||(_[_.length]=L)}return _},jf=function(f){return f!=null&&f.length?Dr(f,1):[]},io,ql,Pc,Bs,N0,I0,J1,ew,Qv,Zd,Zp,tw,D0,Jl,Wv,$c,ps,j0,L0,Fu=function(f){return G1(Qd(f,void 0,jf),f+"")}(function(f,c){return f==null?{}:Yd(f,c)});function Co(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 nw(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 rw(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Ko(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 Kr,Di,xr,si,$n,vo,Yv={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},zu=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustNodePosition","hideAnchors","allowRotation","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","nodeTextEdit","edgeTextEdit","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","autoExpand"],B0=(ql=Ko((io=function(){function f(g){(function(O,_){if(!(O instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),Co(this,"isSilentMode",ql,this),Co(this,"stopZoomGraph",Pc,this),Co(this,"stopScrollGraph",Bs,this),Co(this,"stopMoveGraph",N0,this),Co(this,"adjustEdge",I0,this),Co(this,"adjustEdgeMiddle",J1,this),Co(this,"adjustEdgeStartAndEnd",ew,this),Co(this,"adjustNodePosition",Qv,this),Co(this,"hideAnchors",Zd,this),Co(this,"allowRotation",Zp,this),Co(this,"hoverOutline",tw,this),Co(this,"nodeSelectedOutline",D0,this),Co(this,"edgeSelectedOutline",Jl,this),Co(this,"nodeTextEdit",Wv,this),Co(this,"edgeTextEdit",$c,this),Co(this,"nodeTextDraggable",ps,this),Co(this,"edgeTextDraggable",j0,this),Co(this,"autoExpand",L0,this),rw(this,"multipleSelectKey",""),rw(this,"defaultConfig",{}),xi(this,this.getConfigDetail(g))}var c,h;return c=f,(h=[{key:"updateEditConfig",value:function(g){var O=this.getConfigDetail(g);xi(this,O)}},{key:"getConfigDetail",value:function(g){var O=g.isSilentMode,_=g.textEdit,x={};if(O===!1&&xi(x,this.defaultConfig),O===!0&&O!==this.isSilentMode){var M=Fu(Yv,zu);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},xi(x,M)}_===!1&&xi(x,{nodeTextEdit:!1,edgeTextEdit:!1});var L=Fu(g,zu);return xi(x,L)}},{key:"getConfig",value:function(){return Fu(this,zu)}}])&&nw(c.prototype,h),f}()).prototype,"isSilentMode",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pc=Ko(io.prototype,"stopZoomGraph",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bs=Ko(io.prototype,"stopScrollGraph",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),N0=Ko(io.prototype,"stopMoveGraph",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),I0=Ko(io.prototype,"adjustEdge",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),J1=Ko(io.prototype,"adjustEdgeMiddle",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ew=Ko(io.prototype,"adjustEdgeStartAndEnd",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qv=Ko(io.prototype,"adjustNodePosition",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Zd=Ko(io.prototype,"hideAnchors",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zp=Ko(io.prototype,"allowRotation",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tw=Ko(io.prototype,"hoverOutline",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),D0=Ko(io.prototype,"nodeSelectedOutline",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Jl=Ko(io.prototype,"edgeSelectedOutline",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Wv=Ko(io.prototype,"nodeTextEdit",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),$c=Ko(io.prototype,"edgeTextEdit",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ps=Ko(io.prototype,"nodeTextDraggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),j0=Ko(io.prototype,"edgeTextDraggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),L0=Ko(io.prototype,"autoExpand",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ko(io.prototype,"updateEditConfig",[a.k],Object.getOwnPropertyDescriptor(io.prototype,"updateEditConfig"),io.prototype),io);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"}(Kr||(Kr={})),function(f){f.KEY="logic-flow",f.NODE_NAME="lf-node",f.EDGE_NAME="lf-edge"}(Di||(Di={})),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"}(xr||(xr={})),function(f){f.NODE="node",f.EDGE="edge",f.GRAPH="graph"}(si||(si={})),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"}(vo||(vo={}));var No,Qo,ow,iw,Zv,Ud,V0,Hd,Uv;function Xd(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return F0(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 F0(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function F0(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 Qu(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 wE(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 Wu(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),_}(function(f){f[f.DEFAULT=0]="DEFAULT",f[f.INCREASE=1]="INCREASE"})(No||(No={}));var aw={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]},sw=(Qo=function(){function f(g,O){(function(M,L){if(!(M instanceof L))throw new TypeError("Cannot call a class as a function")})(this,f),Wu(this,"MINI_SCALE_SIZE",.2),Wu(this,"MAX_SCALE_SIZE",16),Qu(this,"SCALE_X",ow,this),Qu(this,"SKEW_Y",iw,this),Qu(this,"SKEW_X",Zv,this),Qu(this,"SCALE_Y",Ud,this),Qu(this,"TRANSLATE_X",V0,this),Qu(this,"TRANSLATE_Y",Hd,this),Qu(this,"ZOOM_SIZE",Uv,this),Wu(this,"eventCenter",void 0),Wu(this,"translateLimitMinX",void 0),Wu(this,"translateLimitMinY",void 0),Wu(this,"translateLimitMaxX",void 0),Wu(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=Xd(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=Xd(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=Xd(g,2),M=x[0],L=x[1];return[M+O/this.SCALE_X,L+_/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=Xd(this.CanvasPointToHtmlPoint([g,O]),2),L=_/2-M[0],U=x/2-M[1];this.TRANSLATE_X+=L,this.TRANSLATE_Y+=U,this.emitGraphTransform("focusOn")}},{key:"updateTranslateLimits",value:function(g){var O=Xd(Array.isArray(g)&&g.length===4?g:aw[g.toString()],4);this.translateLimitMinX=O[0],this.translateLimitMinY=O[1],this.translateLimitMaxX=O[2],this.translateLimitMaxY=O[3]}}],h&&wE(c.prototype,h),f}(),ow=Vs(Qo.prototype,"SCALE_X",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),iw=Vs(Qo.prototype,"SKEW_Y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Zv=Vs(Qo.prototype,"SKEW_X",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ud=Vs(Qo.prototype,"SCALE_Y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),V0=Vs(Qo.prototype,"TRANSLATE_X",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Hd=Vs(Qo.prototype,"TRANSLATE_Y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Uv=Vs(Qo.prototype,"ZOOM_SIZE",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return .04}}),Vs(Qo.prototype,"zoom",[a.k],Object.getOwnPropertyDescriptor(Qo.prototype,"zoom"),Qo.prototype),Vs(Qo.prototype,"resetZoom",[a.k],Object.getOwnPropertyDescriptor(Qo.prototype,"resetZoom"),Qo.prototype),Vs(Qo.prototype,"translate",[a.k],Object.getOwnPropertyDescriptor(Qo.prototype,"translate"),Qo.prototype),Vs(Qo.prototype,"focusOn",[a.k],Object.getOwnPropertyDescriptor(Qo.prototype,"focusOn"),Qo.prototype),Qo),Hv=function(f,c){for(var h=-1,g=f==null?0:f.length;++h<g&&c(f[h],h,f)!==!1;);return f},lw=function(f,c){return f&&Kl(c,Ec(c),f)},uw=function(f){var c=[];if(f!=null)for(var h in Object(f))c.push(h);return c},cw=Object.prototype.hasOwnProperty,z0=function(f){if(!to(f))return uw(f);var c=Hl(f),h=[];for(var g in f)(g!="constructor"||!c&&cw.call(f,g))&&h.push(g);return h},Gd=function(f){return ai(f)?Ro(f,!0):z0(f)},Q0=function(f,c){return f&&Kl(c,Gd(c),f)},Xv=o(107),kr=function(f,c){var h=-1,g=f.length;for(c||(c=Array(g));++h<g;)c[h]=f[h];return c},SE=function(f,c){return Kl(f,Oa(f),c)},W0=fs(Object.getPrototypeOf,Object),Kd=Object.getOwnPropertySymbols?function(f){for(var c=[];f;)ul(c,Oa(f)),f=W0(f);return c}:Nv,fw=function(f,c){return Kl(f,Kd(f),c)},xE=function(f){return Rv(f,Gd,Kd)},kE=Object.prototype.hasOwnProperty,Fs=function(f){var c=f.length,h=new f.constructor(c);return c&&typeof f[0]=="string"&&kE.call(f,"index")&&(h.index=f.index,h.input=f.input),h},Y0=function(f){var c=new f.constructor(f.byteLength);return new Ii(c).set(new Ii(f)),c},Gv=function(f,c){var h=c?Y0(f.buffer):f.buffer;return new f.constructor(h,f.byteOffset,f.byteLength)},Z0=/\w*$/,dw=function(f){var c=new f.constructor(f.source,Z0.exec(f));return c.lastIndex=f.lastIndex,c},U0=Ft?Ft.prototype:void 0,Wa=U0?U0.valueOf:void 0,Ac=function(f){return Wa?Object(Wa.call(f)):{}},Kv=function(f,c){var h=c?Y0(f.buffer):f.buffer;return new f.constructor(h,f.byteOffset,f.length)},hw=function(f,c,h){var g=f.constructor;switch(c){case"[object ArrayBuffer]":return Y0(f);case"[object Boolean]":case"[object Date]":return new g(+f);case"[object DataView]":return Gv(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 Kv(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 dw(f);case"[object Symbol]":return Ac(f)}},Up=Object.create,pw=function(){function f(){}return function(c){if(!to(c))return{};if(Up)return Up(c);f.prototype=c;var h=new f;return f.prototype=void 0,h}}(),qv=function(f){return typeof f.constructor!="function"||Hl(f)?{}:pw(W0(f))},gw=function(f){return Lr(f)&&Q(f)=="[object Map]"},Jv=wi.a&&wi.a.isMap,H0=Jv?fl(Jv):gw,Mc=function(f){return Lr(f)&&Q(f)=="[object Set]"},vw=wi.a&&wi.a.isSet,Rc=vw?fl(vw):Mc,X0="[object Arguments]",G0="[object Function]",K0="[object Object]",mo={};mo[X0]=mo["[object Array]"]=mo["[object ArrayBuffer]"]=mo["[object DataView]"]=mo["[object Boolean]"]=mo["[object Date]"]=mo["[object Float32Array]"]=mo["[object Float64Array]"]=mo["[object Int8Array]"]=mo["[object Int16Array]"]=mo["[object Int32Array]"]=mo["[object Map]"]=mo["[object Number]"]=mo["[object Object]"]=mo["[object RegExp]"]=mo["[object Set]"]=mo["[object String]"]=mo["[object Symbol]"]=mo["[object Uint8Array]"]=mo["[object Uint8ClampedArray]"]=mo["[object Uint16Array]"]=mo["[object Uint32Array]"]=!0,mo["[object Error]"]=mo[G0]=mo["[object WeakMap]"]=!1;var mw=function f(c,h,g,O,_,x){var M,L=1&h,U=2&h,ne=4&h;if(g&&(M=_?g(c,O,_,x):g(c)),M!==void 0)return M;if(!to(c))return c;var de=uo(c);if(de){if(M=Fs(c),!L)return kr(c,M)}else{var we=Q(c),De=we==G0||we=="[object GeneratorFunction]";if(Object(Zl.a)(c))return Object(Xv.a)(c,L);if(we==K0||we==X0||De&&!_){if(M=U||De?{}:qv(c),!L)return U?fw(c,Q0(M,c)):SE(c,lw(M,c))}else{if(!mo[we])return _?c:{};M=hw(c,we,L)}}x||(x=new Yl);var Ke=x.get(c);if(Ke)return Ke;x.set(c,M),Rc(c)?c.forEach(function(dt){M.add(f(dt,h,g,dt,c,x))}):H0(c)&&c.forEach(function(dt,ht){M.set(ht,f(dt,h,g,ht,c,x))});var tt=de?void 0:(ne?U?xE:dl:U?Gd:Ec)(c);return Hv(tt||c,function(dt,ht){tt&&(dt=c[ht=dt]),zd(M,ht,f(dt,h,g,ht,c,x))}),M},Eo=function(f){return mw(f,5)},em=function(f,c,h){(h!==void 0&&!qe(f[c],h)||h===void 0&&!(c in f))&&Vv(f,c,h)},Ya=function(f){return Lr(f)&&ai(f)},eu=Function.prototype,tm=Object.prototype,Lf=eu.toString,yw=tm.hasOwnProperty,bw=Lf.call(Object),_w=function(f){if(!Lr(f)||jr(f)!="[object Object]")return!1;var c=W0(f);if(c===null)return!0;var h=yw.call(c,"constructor")&&c.constructor;return typeof h=="function"&&h instanceof h&&Lf.call(h)==bw},Nc=function(f,c){if((c!=="constructor"||typeof f[c]!="function")&&c!="__proto__")return f[c]},Hp=function(f){return Kl(f,Gd(f))},Ow=function(f,c,h,g,O,_,x){var M=Nc(f,h),L=Nc(c,h),U=x.get(L);if(U)em(f,h,U);else{var ne=_?_(M,L,h+"",f,c,x):void 0,de=ne===void 0;if(de){var we=uo(L),De=!we&&Object(Zl.a)(L),Ke=!we&&!De&&Rf(L);ne=L,we||De||Ke?uo(M)?ne=M:Ya(M)?ne=kr(M):De?(de=!1,ne=Object(Xv.a)(L,!0)):Ke?(de=!1,ne=Kv(L,!0)):ne=[]:_w(L)||cl(L)?(ne=M,cl(M)?ne=Hp(M):to(M)&&!fi(M)||(ne=qv(L))):de=!1}de&&(x.set(L,ne),O(ne,L,g,_,x),x.delete(L)),em(f,h,ne)}},ww=function f(c,h,g,O,_){c!==h&&X1(h,function(x,M){if(_||(_=new Yl),to(x))Ow(c,h,M,g,f,O,_);else{var L=O?O(Nc(c,M),x,M+"",c,h,_):void 0;L===void 0&&(L=x),em(c,M,L)}},Gd)},Xp=K1(function(f,c,h){ww(f,c,h)}),Sw={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}},Gp=function(f){var c=Eo(Sw);return f&&(c=Xp(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 nm=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]||[],L=_._events["*"]||[],U=function(ne){for(var de=ne.length,we=0;we<de;we++)if(ne[we]){var De=ne[we],Ke=De.callback;De.once&&(ne.splice(we,1),ne.length===0&&delete _._events[x],de--,we--),Ke.apply(_,[O])}};U(M),U(L)})}},{key:"off",value:function(g,O){var _=this;return g||(this._events={}),g.split(",").forEach(function(x){if(O){for(var M=_._events[x]||[],L=M.length,U=0;U<L;U++)M[U].callback===O&&(M.splice(U,1),L--,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 tu(f,c){return c*Math.round(f/c)||f}function qd(f,c){return f%c}function rm(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return om(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 om(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function om(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 J0,im=function(f,c,h){var g=rm(f,2),O=g[0],_=g[1],x=rm(c,2),M=x[0],L=x[1],U=rm(h,2),ne=U[0],de=U[1];return O>M&&O<ne&&_>L&&_<de},nu=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},xw=(o(167),o(126),o(83),o(29),o(12),o(13),o(14),o(47),new Uint8Array(16));function kw(){if(!J0&&!(J0=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 J0(xw)}for(var CE=/^(?:[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,Cw=function(f){return typeof f=="string"&&CE.test(f)},To=[],Kp=0;Kp<256;++Kp)To.push((Kp+256).toString(16).substr(1));var eb=function(f){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h=(To[f[c+0]]+To[f[c+1]]+To[f[c+2]]+To[f[c+3]]+"-"+To[f[c+4]]+To[f[c+5]]+"-"+To[f[c+6]]+To[f[c+7]]+"-"+To[f[c+8]]+To[f[c+9]]+"-"+To[f[c+10]]+To[f[c+11]]+To[f[c+12]]+To[f[c+13]]+To[f[c+14]]+To[f[c+15]]).toLowerCase();if(!Cw(h))throw TypeError("Stringified UUID is invalid");return h},qp=function(f,c,h){var g=(f=f||{}).random||(f.rng||kw)();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 eb(g)},gl=function(){return qp()},Jd=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 eh(f){return eh=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},eh(f)}function am(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 Ic(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?am(Object(h),!0).forEach(function(g){tb(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):am(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function tb(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,Zi,nb,rb,Ew,ru,ua,sm,lm,Tw,th,ob,ib,ab,sb,Pw,um,lb,nh,cm,ub,fm=function(f){return f.anchors},Bf=function(f,c){for(var h,g=c.nodes,O=g.length-1;O>=0;O--){var _=g[O];if(Aw(f,_)){var x=_.getTargetAnchor(f);if(x){var M={node:_,anchorIndex:x.index,anchor:x.anchor};h&&!$w(_,h.node,c)||(h=M)}}}return h},$w=function(f,c,h){return f.zIndex>c.zIndex||h.nodesMap[f.id].index>h.nodesMap[c.id].index},pi=function(f,c,h,g){return Math.hypot(f-h,c-g)},Za=function(f,c){var h=!1,g=gs(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},Aw=function(f,c){var h=!1,g=gs(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},gs=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}},Mw=function(f,c,h){var g,O=function(x){var M=x,L=M.x,U=M.y,ne=M.width,de=M.height,we=M.radius;return[{x:L-ne/2+we,y:U-de/2+we,r:we},{x:L+ne/2-we,y:U-de/2+we,r:we},{x:L-ne/2+we,y:U+de/2-we,r:we},{x:L+ne/2-we,y:U+de/2-we,r:we}]}(h),_=Number.MAX_SAFE_INTEGER;return O.forEach(function(x){var M=pi(f.x,f.y,x.x,x.y);M<_&&(_=M,g=x)}),cb(f,c,g)},cb=function(f,c,h){var g,O=h,_=O.x,x=O.y,M=O.r;if(c===vo.HORIZONTAL){var L=_-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(L-f.x)<Math.abs(U-f.x)?L:U,y:f.y}}else if(c===vo.VERTICAL){var ne=x-Math.sqrt(M*M-(f.x-_)*(f.x-_)),de=x+Math.sqrt(M*M-(f.x-_)*(f.x-_)),we=Math.abs(ne-f.y)<Math.abs(de-f.y)?ne:de;g={x:f.x,y:we}}return g},fb=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,L=h.x,U=h.y,ne=h.width,de=h.height;return f.y===U+de/2||f.y===U-de/2?g=f.x>O&&f.x<_:f.x!==L+ne/2&&f.x!==L-ne/2||(g=f.y>x&&f.y<M),g},db=function(f,c,h){var g,O=h,_=O.x,x=O.y,M=O.rx,L=O.ry;if(c===vo.HORIZONTAL){var U=_-Math.sqrt(M*M-(f.y-x)*(f.y-x)*M*M/(L*L)),ne=_+Math.sqrt(M*M-(f.y-x)*(f.y-x)*M*M/(L*L));g={x:Math.abs(U-f.x)<Math.abs(ne-f.x)?U:ne,y:f.y}}else if(c===vo.VERTICAL){var de=x-Math.sqrt(L*L-(f.x-_)*(f.x-_)*L*L/(M*M)),we=x+Math.sqrt(L*L-(f.x-_)*(f.x-_)*L*L/(M*M)),De=Math.abs(de-f.y)<Math.abs(we-f.y)?de:we;g={x:f.x,y:De}}return g},hb=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(L){var U=L.start,ne=L.end,de=U,we=ne;U.x>ne.x&&(de=ne,we=U);var De={x:f.x,y:f.y};if(de.x===we.x&&c===vo.HORIZONTAL&&(De={x:de.x,y:f.y}),de.y===we.y&&c===vo.VERTICAL&&(De={x:f.x,y:de.y}),de.x!==we.x&&de.y!==we.y){var Ke=(we.y-de.y)/(we.x-de.x),tt=(de.x*we.y-we.x*de.y)/(de.x-we.x);c===vo.HORIZONTAL?De={x:(f.y-tt)/Ke,y:f.y}:c===vo.VERTICAL&&(De={x:f.x,y:Ke*f.x+tt})}if(Qn(De,U,ne)){var dt=pi(De.x,De.y,f.x,f.y);dt<_&&(_=dt,g=De)}}),g},pb=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:_}},Rw=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 L=document.createElement("div");L.textContent=M,_.appendChild(L)}):_.textContent=c,document.body.appendChild(_);var x=_.clientHeight;return document.body.removeChild(_),x},gb=function(f){var c=f.rows,h=f.rowsLength,g=f.fontSize,O=0;return c&&c.forEach(function(_){var x=Lb(_);O=x>O?x:O}),{width:Math.ceil(O/2)*g+g/4,height:h*(g+2)+g/4}},Jp=function(f){return eh(f)!=="object"?{isAllPass:!!f,msg:f?"":"\u4E0D\u5141\u8BB8\u8FDE\u63A5"}:f},yo=function(f){try{return JSON.parse(JSON.stringify(f))}catch{return f}},EE=1e3,Nw=999,vb=function(){return++EE};function dm(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 Ua(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?dm(Object(h),!0).forEach(function(g){Ha(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):dm(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function gi(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 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 Ha(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 mb=($t=function(){function f(g,O){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,f),Ha(this,"id",""),gi(this,"type",Zi,this),gi(this,"sourceNodeId",nb,this),gi(this,"targetNodeId",rb,this),gi(this,"startPoint",Ew,this),gi(this,"endPoint",ru,this),gi(this,"text",ua,this),gi(this,"properties",sm,this),gi(this,"points",lm,this),gi(this,"pointsList",Tw,this),gi(this,"isSelected",th,this),gi(this,"isHovered",ob,this),gi(this,"isHitable",ib,this),gi(this,"draggable",ab,this),gi(this,"visible",sb,this),Ha(this,"virtual",!1),gi(this,"isAnimation",Pw,this),gi(this,"isShowAdjustPoint",um,this),Ha(this,"graphModel",void 0),gi(this,"zIndex",lb,this),Ha(this,"BaseType",si.EDGE),Ha(this,"modelType",xr.EDGE),gi(this,"state",nh,this),Ha(this,"additionStateData",void 0),Ha(this,"sourceAnchorId",""),Ha(this,"targetAnchorId",""),Ha(this,"menu",void 0),Ha(this,"customTextPosition",!1),gi(this,"style",cm,this),gi(this,"arrowConfig",ub,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||_||gl()}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,xi(this,Gw(g)),this.graphModel.overlapMode===No.INCREASE&&(this.zIndex=g.zIndex||vb()),this.setAnchors(),this.initPoints(),this.formatText(g)}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"getEdgeStyle",value:function(){return Ua(Ua({},this.graphModel.theme.baseEdge),this.style)}},{key:"getAdjustPointStyle",value:function(){return Ua({},this.graphModel.theme.edgeAdjust)}},{key:"getTextStyle",value:function(){var g=this.graphModel.theme.edgeText;return Eo(g)}},{key:"getEdgeAnimationStyle",value:function(){var g=this.graphModel.theme.edgeAnimation;return Eo(g)}},{key:"getArrowStyle",value:function(){var g=this.getEdgeStyle(),O=this.getEdgeAnimationStyle(),_=this.graphModel.theme.arrow,x=this.isAnimation?O.stroke:g.stroke;return Ua(Ua({},g),{},{fill:x,stroke:x},_)}},{key:"getOutlineStyle",value:function(){var g=this.graphModel.theme.outline;return Eo(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 fm(g).forEach(function(M){var L=Fb(M,O);(x===void 0||L<x)&&(x=L,_=M)}),_}},{key:"getEndAnchor",value:function(g){var O,_,x=this;return fm(g).forEach(function(M){var L=Fb(M,x.startPoint);(_===void 0||L<_)&&(_=L,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===No.INCREASE&&(M.zIndex=this.zIndex),M}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"setProperty",value:function(g,O){this.properties[g]=yo(O),this.setAttributes()}},{key:"deleteProperty",value:function(g){delete this.properties[g],this.setAttributes()}},{key:"setProperties",value:function(g){this.properties=Ua(Ua({},Object(a.I)(this.properties)),yo(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=Ua(Ua({},this.style),{},Ha({},g,yo(O)))}},{key:"setStyles",value:function(g){this.style=Ua(Ua({},this.style),yo(g))}},{key:"updateStyles",value:function(g){this.style=Ua({},yo(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,L=_.value,U=_.draggable,ne=_.editable;this.text={value:L,draggable:U,x:x+g,y:M+O,editable:ne}}}},{key:"setText",value:function(g){g&&xi(this.text,g)}},{key:"updateText",value:function(g){this.text=Ua(Ua({},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){xi(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&&TE(c.prototype,h),f}(),Zi=Zn($t.prototype,"type",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),nb=Zn($t.prototype,"sourceNodeId",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),rb=Zn($t.prototype,"targetNodeId",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ew=Zn($t.prototype,"startPoint",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ru=Zn($t.prototype,"endPoint",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ua=Zn($t.prototype,"text",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),sm=Zn($t.prototype,"properties",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),lm=Zn($t.prototype,"points",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Tw=Zn($t.prototype,"pointsList",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),th=Zn($t.prototype,"isSelected",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ob=Zn($t.prototype,"isHovered",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ib=Zn($t.prototype,"isHitable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ab=Zn($t.prototype,"draggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),sb=Zn($t.prototype,"visible",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Pw=Zn($t.prototype,"isAnimation",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),um=Zn($t.prototype,"isShowAdjustPoint",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lb=Zn($t.prototype,"zIndex",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),nh=Zn($t.prototype,"state",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),cm=Zn($t.prototype,"style",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ub=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),yb=mb;function bb(f){return bb=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},bb(f)}function Iw(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 Dw(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?Iw(Object(h),!0).forEach(function(g){Lw(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Iw(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function PE(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function jw(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 rh(){return rh=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=$E(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},rh.apply(this,arguments)}function $E(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Vf(f))!==null;);return f}function _b(f,c){return _b=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},_b(f,c)}function AE(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=Vf(f);if(c){var O=Vf(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return ME(this,h)}}function ME(f,c){if(c&&(bb(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ob(f)}function Ob(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Vf(f){return Vf=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Vf(f)}function Lw(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var cr,Bw,Ff=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&&_b(_,x)})(O,f);var c,h,g=AE(O);function O(){var _;PE(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return Lw(Ob(_=g.call.apply(g,[this].concat(M))),"modelType",xr.LINE_EDGE),_}return c=O,(h=[{key:"getEdgeStyle",value:function(){var _=this.graphModel.theme.line;return Dw(Dw({},rh(Vf(O.prototype),"getEdgeStyle",this).call(this)),Eo(_))}},{key:"getTextPosition",value:function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}}])&&jw(c.prototype,h),O}(yb);function wb(f){return wb=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},wb(f)}function RE(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return eg(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 eg(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function eg(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 Sb(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 xb(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?Sb(Object(h),!0).forEach(function(g){Cb(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Sb(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function kb(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 Vw(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function Fw(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 tg(){return tg=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(f,c,h){var g=NE(f,c);if(g){var O=Object.getOwnPropertyDescriptor(g,c);return O.get?O.get.call(arguments.length<3?f:h):O.value}},tg.apply(this,arguments)}function NE(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Yu(f))!==null;);return f}function oh(f,c){return oh=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},oh(f,c)}function hm(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=Yu(f);if(c){var O=Yu(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return IE(this,h)}}function IE(f,c){if(c&&(wb(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zf(f)}function zf(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Yu(f){return Yu=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Yu(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 Po(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 pm=(cr=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&&oh(_,x)})(O,f);var c,h,g=hm(O);function O(){var _;Vw(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return Cb(zf(_=g.call.apply(g,[this].concat(M))),"modelType",xr.POLYLINE_EDGE),Cb(zf(_),"draggingPointList",void 0),kb(zf(_),"dbClickPosition",Bw,zf(_)),_}return c=O,(h=[{key:"initEdgeData",value:function(_){this.offset=30,tg(Yu(O.prototype),"initEdgeData",this).call(this,_)}},{key:"getEdgeStyle",value:function(){var _=this.graphModel.theme.polyline;return xb(xb({},tg(Yu(O.prototype),"getEdgeStyle",this).call(this)),Eo(_))}},{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 L=jc(this.points),U=RE(Uw(L),2),ne=U[0],de=U[1];return{x:(ne.x+de.x)/2,y:(ne.y+de.y)/2}}},{key:"getAfterAnchor",value:function(_,x,M){var L,U;return M.forEach(function(ne){var de;_===vo.HORIZONTAL?de=Math.abs(x.y-ne.y):_===vo.VERTICAL&&(de=Math.abs(x.x-ne.x)),(!U||U>de)&&(U=de,L=ne)}),L}},{key:"getCrossPoint",value:function(_,x,M){var L;return _===vo.HORIZONTAL?L={x:M.x,y:x.y}:_===vo.VERTICAL&&(L={x:x.x,y:M.y}),L}},{key:"removeCrossPoints",value:function(_,x,M){var L=M.map(function(ht){return ht});if(_===1){var U=L[_],ne=L[x],de=L[_-1];if(Ib(de,U,this.sourceNode)){if(Db(U,ne,this.sourceNode)){var we=vi(U,ne,this.sourceNode);we&&(L[_]=we,L.splice(_-1,1),_--,x--)}}else this.sourceNode.anchors.forEach(function(ht){(ht.x===de.x&&ht.x===U.x||ht.y===de.y&&ht.y===U.y)&&pi(ht.x,ht.y,U.x,U.y)<pi(de.x,de.y,U.x,U.y)&&(L[_-1]=ht)})}if(x===M.length-2){var De=L[_],Ke=L[x],tt=L[x+1];if(Ib(Ke,tt,this.targetNode)){if(Db(De,Ke,this.targetNode)){var dt=vi(De,Ke,this.targetNode);dt&&(L[x]=dt,L.splice(x+1,1))}}else this.targetNode.anchors.forEach(function(ht){(ht.x===tt.x&&ht.x===Ke.x||ht.y===tt.y&&ht.y===Ke.y)&&pi(ht.x,ht.y,Ke.x,Ke.y)<pi(tt.x,tt.y,Ke.x,Ke.y)&&(L[x+1]=ht)})}return L}},{key:"getDraggingPoints",value:function(_,x,M,L,U){var ne=U.map(function(De){return De}),de=this.getAfterAnchor(_,M,L),we=this.getCrossPoint(_,M,de);return x==="start"?(ne.unshift(we),ne.unshift(de)):(ne.push(we),ne.push(de)),ne}},{key:"updateCrossPoints",value:function(_){var x=_.map(function(Rt){return Rt}),M=_[0],L=_[1],U=_[x.length-2],ne=_[x.length-1],de=this.sourceNode,we=this.targetNode,De=de.modelType,Ke=we.modelType,tt=ji(M,L),dt=x[0];switch(De){case xr.RECT_NODE:de.radius!==0&&(fb(M,de)||(dt=Mw(M,tt,de)));break;case xr.CIRCLE_NODE:dt=cb(M,tt,de);break;case xr.ELLIPSE_NODE:dt=db(M,tt,de);break;case xr.DIAMOND_NODE:case xr.POLYGON_NODE:dt=hb(M,tt,de)}x[0]=dt;var ht=ji(U,ne),yt=x[x.length-1];switch(Ke){case xr.RECT_NODE:we.radius!==0&&(fb(ne,we)||(yt=Mw(ne,ht,we)));break;case xr.CIRCLE_NODE:yt=cb(ne,ht,we);break;case xr.ELLIPSE_NODE:yt=db(ne,ht,we);break;case xr.DIAMOND_NODE:case xr.POLYGON_NODE:yt=hb(ne,ht,we)}return x[x.length-1]=yt,x}},{key:"getData",value:function(){var _=tg(Yu(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 _=ag({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,L=_.end,U=_.startIndex,ne=_.endIndex,de=_.direction,we=this.pointsList,De=we;return de===vo.HORIZONTAL?(we[U]={x:M.x,y:M.y+x.y},we[ne]={x:L.x,y:L.y+x.y},De=this.pointsList.map(function(Ke){return Ke})):de===vo.VERTICAL&&(we[U]={x:M.x+x.x,y:M.y},we[ne]={x:L.x+x.x,y:L.y},De=this.pointsList.map(function(Ke){return Ke})),this.updatePointsAfterDrag(De),this.draggingPointList=De,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},we[U]),end:Object.assign({},we[ne]),startIndex:U,endIndex:ne,direction:de}}},{key:"dragAppend",value:function(_,x){this.isDragging=!0;var M=_.start,L=_.end,U=_.startIndex,ne=_.endIndex,de=_.direction,we=this.pointsList;if(de===vo.HORIZONTAL){we[U]={x:M.x,y:M.y+x.y},we[ne]={x:L.x,y:L.y+x.y};var De=this.pointsList.map(function(an){return an});if(U!==0&&ne!==this.pointsList.length-1&&(De=this.removeCrossPoints(U,ne,De)),U===0){var Ke={x:M.x,y:M.y+x.y};if(!Za(Ke,this.sourceNode)){var tt=this.sourceNode.anchors;De=this.getDraggingPoints(de,"start",Ke,tt,De)}}if(ne===this.pointsList.length-1){var dt={x:L.x,y:L.y+x.y};if(!Za(dt,this.targetNode)){var ht=this.targetNode.anchors;De=this.getDraggingPoints(de,"end",dt,ht,De)}}this.updatePointsAfterDrag(De),this.draggingPointList=De}else if(de===vo.VERTICAL){we[U]={x:M.x+x.x,y:M.y},we[ne]={x:L.x+x.x,y:L.y};var yt=this.pointsList.map(function(an){return an});if(U!==0&&ne!==this.pointsList.length-1&&(yt=this.removeCrossPoints(U,ne,yt)),U===0){var Rt={x:M.x+x.x,y:M.y};if(!Za(Rt,this.sourceNode)){var on=this.sourceNode.anchors;yt=this.getDraggingPoints(de,"start",Rt,on,yt)}}if(ne===this.pointsList.length-1){var dn={x:L.x+x.x,y:L.y};if(!Za(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({},we[U]),end:Object.assign({},we[ne]),startIndex:U,endIndex:ne,direction:de}}},{key:"dragAppendEnd",value:function(){if(this.draggingPointList){var _=ig(jc(this.points));this.pointsList=_.map(function(L){return L}),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,L=_.sourceNode,U=_.targetNode,ne=ag({x:x.x,y:x.y},{x:M.x,y:M.y},L,U,this.offset||0);this.pointsList=ne,this.initPoints()}}])&&Fw(c.prototype,h),O}(yb),Bw=Po(cr.prototype,"dbClickPosition",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Po(cr.prototype,"initPoints",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"initPoints"),cr.prototype),Po(cr.prototype,"updatePoints",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"updatePoints"),cr.prototype),Po(cr.prototype,"updateStartPoint",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"updateStartPoint"),cr.prototype),Po(cr.prototype,"moveStartPoint",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"moveStartPoint"),cr.prototype),Po(cr.prototype,"updateEndPoint",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"updateEndPoint"),cr.prototype),Po(cr.prototype,"moveEndPoint",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"moveEndPoint"),cr.prototype),Po(cr.prototype,"dragAppendStart",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"dragAppendStart"),cr.prototype),Po(cr.prototype,"dragAppendSimple",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"dragAppendSimple"),cr.prototype),Po(cr.prototype,"dragAppend",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"dragAppend"),cr.prototype),Po(cr.prototype,"dragAppendEnd",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"dragAppendEnd"),cr.prototype),Po(cr.prototype,"updatePointsAfterDrag",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"updatePointsAfterDrag"),cr.prototype),Po(cr.prototype,"getAdjustStart",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"getAdjustStart"),cr.prototype),Po(cr.prototype,"getAdjustEnd",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"getAdjustEnd"),cr.prototype),Po(cr.prototype,"updateAfterAdjustStartAndEnd",[a.k],Object.getOwnPropertyDescriptor(cr.prototype,"updateAfterAdjustStartAndEnd"),cr.prototype),cr),ng=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)),L=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+L),x.leftY=c.y-U*Math.cos(M+L),x.rightX=c.x-U*Math.sin(M-L),x.rightY=c.y+U*Math.cos(M-L)):(x.leftX=c.x-U*Math.sin(M+L),x.leftY=c.y+U*Math.cos(M+L),x.rightX=c.x+U*Math.sin(M-L),x.rightY=c.y-U*Math.cos(M-L)):_==="end"&&(h.x>=c.x?(x.leftX=h.x+U*Math.sin(M-L),x.leftY=h.y-U*Math.cos(M-L),x.rightX=h.x-U*Math.sin(M+L),x.rightY=h.y+U*Math.cos(M+L)):(x.leftX=h.x-U*Math.sin(M-L),x.leftY=h.y+U*Math.cos(M-L),x.rightX=h.x+U*Math.sin(M+L),x.rightY=h.y-U*Math.cos(M+L))),x},Qf={x:1,y:0,z:0};function hr(f,c,h,g,O){for(var _=function(Ke){if(Ke<0||Ke>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:f.x*Math.pow(1-Ke,3)+3*c.x*Ke*Math.pow(1-Ke,2)+3*h.x*Math.pow(Ke,2)*(1-Ke)+g.x*Math.pow(Ke,3),y:f.y*Math.pow(1-Ke,3)+3*c.y*Ke*Math.pow(1-Ke,2)+3*h.y*Math.pow(Ke,2)*(1-Ke)+g.y*Math.pow(Ke,3)}},x=0,M=2,L=g.x,U=g.y,ne=g;x<O&&M<50;){var de=ne=_(1-M/100),we=de.x,De=de.y;x=pi(L,U,we,De),M++}return ne}function zw(f){var c=Math.hypot(f.x,f.y);return{x:f.x/c,y:f.y/c,z:0}}function Ca(f){return g=function(_,x){return _.x*x.y-_.y*x.x}(c=Qf,h=f),O=Math.acos(function(_,x){var M=[_.x,_.y,_.z];return[x.x,x.y,x.z].reduce(function(L,U,ne){return L+U*M[ne]})}(zw(c),zw(h))),g>=0?O:-O;var c,h,g,O}function qo(f){return f*(180/Math.PI)}function Zu(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 gm(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?Zu(Object(h),!0).forEach(function(g){Eb(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Zu(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}function Uu(f){return function(c){if(Array.isArray(c))return Do(c)}(f)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(f)||Io(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function vm(f){return vm=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},vm(f)}function Wf(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||Io(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Io(f,c){if(f){if(typeof f=="string")return Do(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)?Do(f,c):void 0}}function Do(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 Qw=function(f,c){var h;switch(f.type){case"line":default:h=new Ff(f,c);break;case"polyline":h=new pm(f,c)}return h},Tb=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},Hu=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},Pb=function(f,c){var h=[f,{x:f.x,y:c.y},c];return Hu(h)},ih=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}},rg=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?vo.HORIZONTAL:vo.VERTICAL},Ui=function(f,c,h){return rg(h,c)===vo.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}},Dc=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}},ah=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(ne){h.push(ne.x),g.push(ne.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),L=_-O,U=M-x;return c&&(L+=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:L}},og=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}]},sh=function(f,c){var h=f.x,g=f.y;return h<c.minX||h>c.maxX||g<c.minY||g>c.maxY},ou=function(f,c){return c<f.minX||c>f.maxX?[]:[{x:c,y:f.minY},{x:c,y:f.maxY}]},mr=function(f,c){return c<f.minY||c>f.maxY?[]:[{x:f.minX,y:c},{x:f.maxX,y:c}]},$b=function(f,c){return ou(f,c.x).concat(mr(f,c.y))},Ea=function(f,c){return Math.abs(f.x-c.x)+Math.abs(f.y-c.y)},Ab=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 Ea(f,c)+Ea(f,h)+Ab(f,[c,h,g,O])},Ww=function f(c,h,g,O,_){_||(_=0),c.unshift(h[O]),g[O]&&g[O]!==O&&_<=100&&f(c,h,g,g[O],_+1)},Mb=function(f,c){var h=f.indexOf(c);h>-1&&f.splice(h,1)},Xu=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,L=(-_*(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 L>=0&&L<=1&&U>=0&&U<=1},Rb=function(f,c,h){if(h.width===0&&h.height===0)return!1;var g=Wf(og(h),4),O=g[0],_=g[1],x=g[2],M=g[3];return Xu(f,c,O,_)||Xu(f,c,O,M)||Xu(f,c,_,x)||Xu(f,c,x,M)},Yw=function(f,c,h,g){var O=[];return f.forEach(function(_){_!==c&&(_.x!==c.x&&_.y!==c.y||Rb(_,c,h)||Rb(_,c,g)||O.push(_))}),Hu(O)},Zw=function(f,c,h,g,O,_,x){var M=[],L=[c],U={},ne={},de={};ne[c.id]=0,de[c.id]=qr(c,h,c);var we={};f.forEach(function(tt){we[tt.id]=tt});for(var De=function(){var tt=void 0,dt=1/0;if(L.forEach(function(yt){de[yt.id]<dt&&(dt=de[yt.id],tt=yt)}),tt===h){var ht=[];return Ww(ht,we,U,h.id),{v:ht}}Mb(L,tt),M.push(tt),Yw(f,tt,g,O).forEach(function(yt){if(M.indexOf(yt)===-1){L.indexOf(yt)===-1&&L.push(yt);var Rt=de[tt.id]+Ea(tt,yt);ne[yt.id]&&Rt>=ne[yt.id]||(U[yt.id]=tt.id,ne[yt.id]=Rt,de[yt.id]=ne[yt.id]+qr(yt,h,c,_,x))}})};L.length;){var Ke=De();if(vm(Ke)==="object")return Ke.v}return[c,h]},Nb=function(f){return gs(f)},ig=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},ag=function(f,c,h,g,O){var _=Nb(h),x=Nb(g),M=ih(_,O),L=ih(x,O),U=Ui(M,_,f),ne=Ui(L,x,c);if(Tb(M,L)){var de=jb(f,c,U,ne);return[f,U].concat(Uu(de),[ne,c])}var we=ah([U,ne]),De=Dc(M,we),Ke=Dc(L,we),tt=[];tt=(tt=tt.concat(og(De))).concat(og(Ke));var dt={x:(f.x+c.x)/2,y:(f.y+c.y)/2};[we,De,Ke].forEach(function(yt){tt=tt.concat($b(yt,dt).filter(function(Rt){return sh(Rt,M)&&sh(Rt,L)}))}),[{x:U.x,y:ne.y},{x:ne.x,y:U.y}].forEach(function(yt){sh(yt,M)&&sh(yt,L)&&tt.push(yt)}),tt.unshift(U),tt.push(ne),tt=Hu(tt);var ht=Zw(tt,U,ne,_,x,f,c);return ht.unshift(f),ht.push(c),ht.length>2&&(ht=ig(ht)),Hu(ht)},Uw=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=pi(h.x,h.y,g.x,g.y),_=1;_<f.length-1;_++){var x=f[_],M=f[_+1],L=pi(x.x,x.y,M.x,M.y);L>O&&(O=L,h=x,g=M)}c=[h,g]}return c},Ib=function(f,c,h){var g=Za(f,h),O=Za(c,h);return g&&O},Db=function(f,c,h){var g=Za(f,h),O=Za(c,h);return!(g&&O)&&(g||O)},vi=function(f,c,h){for(var g,O,_=gs(h),x=og(_),M=0;M<x.length;M++)Xu(f,c,x[M],x[(M+1)%x.length])&&(O=[x[M],x[(M+1)%x.length]]);return O&&(g=function(L,U,ne,de){var we=(U.y-L.y)*(de.x-ne.x)-(L.x-U.x)*(ne.y-de.y);if(we===0)return!1;var De=((U.x-L.x)*(de.x-ne.x)*(ne.y-L.y)+(U.y-L.y)*(de.x-ne.x)*L.x-(de.y-ne.y)*(U.x-L.x)*ne.x)/we,Ke=-((U.y-L.y)*(de.y-ne.y)*(ne.x-L.x)+(U.x-L.x)*(de.y-ne.y)*L.y-(de.x-ne.x)*(U.y-L.y)*ne.y)/we;return(De-L.x)*(De-U.x)<=0&&(Ke-L.y)*(Ke-U.y)<=0&&(De-ne.x)*(De-de.x)<=0&&(Ke-ne.y)*(Ke-de.y)<=0&&{x:De,y:Ke}}(f,c,O[0],O[1])),g},ji=function(f,c){var h;return f.x===c.x?h=vo.VERTICAL:f.y===c.y&&(h=vo.HORIZONTAL),h},jc=function(f){var c=f.split(" "),h=[];return c&&c.forEach(function(g){var O=Wf(g.split(","),2),_=O[0],x=O[1];h.push({x:Number(_),y:Number(x)})}),h},jb=function(f,c,h,g){var O=[];if(ji(f,h)===ji(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 L=Hw(_,f,h),U=Hw(_,c,g);L&&U&&(_={x:g.x,y:h.y})}O.push(_)}return O},Hw=function(f,c,h){return f.x===c.x&&f.x===h.x||f.y===c.y&&f.y===h.y},Lb=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},mm=null,Xw=function(f,c){mm||(mm=document.createElement("canvas"));var h=mm.getContext("2d");return h.font=c,h.measureText(f).width},Bb=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},_=ng(gm(gm({},O),{},{type:"start"})),x=ng(gm(gm({},O),{},{type:"end"}));c="M".concat(_.leftX," ").concat(_.leftY,`
- L`).concat(_.rightX," ").concat(_.rightY,`
- L`).concat(x.rightX," ").concat(x.rightY,`
- L`).concat(x.leftX," ").concat(x.leftY," z")}return{d:c,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},Lc=function(f){var c=f.start,h=f.end,g=f.sourceNode,O=f.targetNode,_=f.offset,x=gs(g),M=gs(O),L=ih(x,_),U=ih(M,_);return{sNext:Ui(L,x,c),ePre:Ui(U,M,h)}},ym=function(f){var c=f.replace(/M/g,"").replace(/C/g,",").split(",");return[sg(c[0]),sg(c[1]),sg(c[2]),sg(c[3])]},sg=function(f){var c=Wf(f.replace(/(^\s*)/g,"").split(" "),2);return{x:+c[0],y:+c[1]}},bm=function(f,c){var h=Wf(f,4);return[hr(h[0],h[1],h[2],h[3],c),f[3]]},Vb=function(f,c){for(var h,g=f.x,O=f.y,_=jc(c),x=Number.MAX_SAFE_INTEGER,M=[],L=0;L<_.length;L++)M.push({start:_[L],end:_[(L+1)%_.length]});if(M.forEach(function(we){var De=we.start,Ke=we.end;if(De.x===Ke.x){var tt={x:De.x,y:O};if(Qn(tt,De,Ke)){var dt=Math.abs(De.x-g);dt<x&&(x=dt,h=tt)}}else if(De.y===Ke.y){var ht={x:g,y:De.y};if(Qn(ht,De,Ke)){var yt=Math.abs(De.y-O);yt<x&&(x=yt,h=ht)}}}),!h){var U=M[0],ne=U.start,de=U.end;h={x:ne.x+(de.x-ne.x)/2,y:ne.y+(de.y-ne.y)/2}}return h},Gw=function(f){return Fu(f,["id","type","sourceNodeId","sourceAnchorId","targetNodeId","targetAnchorId","pointsList","startPoint","endPoint","properties"])},Fb=function(f,c){return Math.sqrt(Math.pow(f.x-c.x,2)+Math.pow(f.y-c.y,2))};function Kw(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 zb=function(){};function DE(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 vl=function(){function f(g){var O=this,_=g.onDragStart,x=_===void 0?zb:_,M=g.onDragging,L=M===void 0?zb:M,U=g.onDragEnd,ne=U===void 0?zb:U,de=g.eventType,we=de===void 0?"":de,De=g.eventCenter,Ke=De===void 0?null:De,tt=g.step,dt=tt===void 0?1:tt,ht=g.isStopPropagation,yt=ht===void 0||ht,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),Jo(this,"onDragStart",void 0),Jo(this,"onDragging",void 0),Jo(this,"onDragEnd",void 0),Jo(this,"step",void 0),Jo(this,"isStopPropagation",void 0),Jo(this,"isDragging",!1),Jo(this,"isStartDragging",!1),Jo(this,"startX",0),Jo(this,"startY",0),Jo(this,"sumDeltaX",0),Jo(this,"sumDeltaY",0),Jo(this,"eventType",void 0),Jo(this,"eventCenter",void 0),Jo(this,"model",void 0),Jo(this,"data",void 0),Jo(this,"startTime",void 0),Jo(this,"handleMouseDown",function(an){var An,gn,Pr,Nr=(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,Nr.addEventListener("mousemove",O.handleMouseMove,!1),Nr.addEventListener("mouseup",O.handleMouseUp,!1);var Jn=(gn=O.model)===null||gn===void 0?void 0:gn.getData();(Pr=O.eventCenter)===null||Pr===void 0||Pr.emit($n["".concat(O.eventType,"_MOUSEDOWN")],{e:an,data:O.data||Jn}),O.startTime=new Date().getTime()}}),Jo(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,Pr=O.sumDeltaY%O.step,Nr=O.sumDeltaX-gn,Jn=O.sumDeltaY-Pr;O.sumDeltaX=gn,O.sumDeltaY=Pr;var Wr,li=(An=O.model)===null||An===void 0?void 0:An.getData();O.isDragging||((Wr=O.eventCenter)===null||Wr===void 0||Wr.emit($n["".concat(O.eventType,"_DRAGSTART")],{e:an,data:O.data||li}),O.onDragStart({event:an})),O.isDragging=!0,Promise.resolve().then(function(){var ui,Pa;O.onDragging({deltaX:Nr,deltaY:Jn,event:an}),(ui=O.eventCenter)===null||ui===void 0||ui.emit($n["".concat(O.eventType,"_MOUSEMOVE")],{e:an,data:O.data||li}),(Pa=O.eventCenter)===null||Pa===void 0||Pa.emit($n["".concat(O.eventType,"_DRAG")],{e:an,data:O.data||li})})}}),Jo(this,"handleMouseUp",function(an){var An=window.document;O.isStartDragging=!1,O.isStopPropagation&&an.stopPropagation(),Promise.resolve().then(function(){var gn,Pr,Nr;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();(Pr=O.eventCenter)===null||Pr===void 0||Pr.emit($n["".concat(O.eventType,"_MOUSEUP")],{e:an,data:O.data||Jn}),O.isDragging&&(O.isDragging=!1,O.onDragEnd({event:an}),(Nr=O.eventCenter)===null||Nr===void 0||Nr.emit($n["".concat(O.eventType,"_DROP")],{e:an,data:O.data||Jn}))})}),Jo(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=L,this.onDragEnd=ne,this.step=dt,this.isStopPropagation=yt,this.eventType=we,this.eventCenter=Ke,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}}])&&DE(c.prototype,h),f}();function _m(f){return _m=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},_m(f)}function Qb(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function Om(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 Wb(f,c,h){return c&&Om(f.prototype,c),h&&Om(f,h),f}function Yb(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&&ug(f,c)}function ca(f){var c=wm();return function(){var h,g=cg(f);if(c){var O=cg(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Zb(this,h)}}function Zb(f,c){if(c&&(_m(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yf(f)}function Yf(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Ub(f){var c=typeof Map=="function"?new Map:void 0;return Ub=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 lg(h,arguments,cg(this).constructor)}return O.prototype=Object.create(h.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),ug(O,h)},Ub(f)}function lg(f,c,h){return lg=wm()?Reflect.construct:function(g,O,_){var x=[null];x.push.apply(x,O);var M=new(Function.bind.apply(g,x));return _&&ug(M,_.prototype),M},lg.apply(null,arguments)}function wm(){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 ug(f,c){return ug=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},ug(f,c)}function cg(f){return cg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},cg(f)}function Hb(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Xb(f,c){return f instanceof Li&&c instanceof Li}var qw=function(f){Yb(h,f);var c=ca(h);function h(g,O,_){var x;return Qb(this,h),Hb(Yf(x=c.call(this,3)),"x",void 0),Hb(Yf(x),"y",void 0),Hb(Yf(x),"z",void 0),x[0]=g,x[1]=O,x[2]=_,x.x=g,x.y=O,x.z=_,Object.setPrototypeOf(Yf(x),h.prototype),x}return Wb(h,[{key:"add",value:function(g){if(Xb(this,g))return new Li(this.x+g.x,this.y+g.y);var O=this.z+g.z;return new lh((this.x+g.x)/O,(this.y+g.y)/O)}},{key:"subtract",value:function(g){if(Xb(this,g))return new Li(this.x-g.x,this.y-g.y);var O=this.z-g.z;return O===0?new Li(this.x-g.x,this.y-g.y):new lh((this.x-g.x)/O,(this.y-g.y)/O)}}]),h}(Ub(Array)),Li=function(f){Yb(h,f);var c=ca(h);function h(g,O,_){var x;return Qb(this,h),x=c.call(this,g,O,_!=null?_:0),Object.setPrototypeOf(Yf(x),h.prototype),x}return Wb(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),lh=function(f){Yb(h,f);var c=ca(h);function h(g,O){var _;return Qb(this,h),_=c.call(this,g,O,1),Object.setPrototypeOf(Yf(_),h.prototype),_}return Wb(h,[{key:"toString",value:function(){return"Point"}}]),h}(qw);o(67),o(217);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 Gb(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||eS(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Jw(f){return function(c){if(Array.isArray(c))return Kb(c)}(f)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(f)||eS(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function eS(f,c){if(f){if(typeof f=="string")return Kb(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)?Kb(f,c):void 0}}function Kb(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,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function tS(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 Sm(f,c,h){return c&&tS(f.prototype,c),h&&tS(f,h),f}function xm(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&&et(f,c)}function S(f){var c=Re();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&&(fg(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(f)}function V(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}}),et(O,h)},ie(f)}function ge(f,c,h){return ge=Re()?Reflect.construct:function(g,O,_){var x=[null];x.push.apply(x,O);var M=new(Function.bind.apply(g,x));return _&&et(M,_.prototype),M},ge.apply(null,arguments)}function Re(){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 et(f,c){return et=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},et(f,c)}function it(f){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},it(f)}function pt(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var Ue,Mt,Ut,kn,Nn,Un,Bt,qt,Kn,On,qn,ir,$r,jn=function(f){xm(h,f);var c=S(h);function h(){var g;uh(this,h);for(var O=arguments.length,_=new Array(O),x=0;x<O;x++)_[x]=arguments[x];return pt(V(g=c.call(this,_.length)),"rows",void 0),pt(V(g),"columns",void 0),g.fill(new Array(3)),_.forEach(function(M,L){g[L]=M}),g.columns=_[0].length,g.rows=_.length,Object.setPrototypeOf(V(g),h.prototype),g}return Sm(h,[{key:"getRow",value:function(g){return this[g]}},{key:"getColumn",value:function(g){return Jw(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 ne=g.getColumn(U);O[_][U]=x.reduce(function(de,we,De){return de+we*ne[De]},0)},L=0;L<g.columns;L++)M(L);return ge(h,Jw(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 lh(g[0],g[1])})}},{key:"toString",value:function(){var g=Gb(this[0],2),O=g[0],_=g[1],x=Gb(this[1],2),M=x[0],L=x[1],U=Gb(this[2],2),ne=U[0],de=U[1];return"matrix(".concat(O," ").concat(_," ").concat(M," ").concat(L," ").concat(ne," ").concat(de,")")}},{key:"translate",value:function(g,O){return this.cross(new Hi(g,O))}},{key:"rotate",value:function(g){return this.cross(new Hn(g))}},{key:"scale",value:function(g,O){return this.cross(new mi(g,O))}}]),h}(ie(Array)),Hn=function(f){xm(h,f);var c=S(h);function h(g){var O;return uh(this,h),O=c.call(this,new Li(+Math.cos(g).toFixed(2),+Math.sin(g).toFixed(2),0),new Li(-Math.sin(g).toFixed(2),+Math.cos(g).toFixed(2),0),new Li(0,0,1)),Object.setPrototypeOf(V(O),h.prototype),O}return Sm(h,[{key:"inverse",value:function(){return this.transpose()}}]),h}(jn),mi=function(f){xm(h,f);var c=S(h);function h(g,O){var _;return uh(this,h),pt(V(_=c.call(this,new Li(g,0,0),new Li(0,O,0),new Li(0,0,1))),"sx",void 0),pt(V(_),"sy",void 0),_.sx=g,_.sy=O,Object.setPrototypeOf(V(_),h.prototype),_}return Sm(h,[{key:"inverse",value:function(){return new h(1/this.sx,1/this.sy)}}]),h}(jn),Hi=function(f){xm(h,f);var c=S(h);function h(g,O){var _;return uh(this,h),pt(V(_=c.call(this,new Li(1,0,0),new Li(0,1,0),new Li(g,O,1))),"tx",void 0),pt(V(_),"ty",void 0),_.tx=g,_.ty=O,Object.setPrototypeOf(V(_),h.prototype),_}return Sm(h,[{key:"inverse",value:function(){return new h(-this.tx,-this.ty)}}]),h}(jn),ml={node:!1,edge:!1},ki={node:!0,edge:!0};function iu(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 yl(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?iu(Object(h),!0).forEach(function(g){ms(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):iu(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function Gu(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||Zf(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ku(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)||Zf(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Zf(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 dg(f){return dg=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},dg(f)}function vs(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 km(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 ms(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 hg,qb=200,pg=(Ue=function(){function f(g){(function(De,Ke){if(!(De instanceof Ke))throw new TypeError("Cannot call a class as a function")})(this,f),ms(this,"rootEl",void 0),vs(this,"width",Mt,this),vs(this,"height",Ut,this),ms(this,"theme",void 0),ms(this,"eventCenter",void 0),ms(this,"modelMap",new Map),ms(this,"topElement",void 0),ms(this,"animation",void 0),ms(this,"idGenerator",void 0),ms(this,"edgeGenerator",void 0),ms(this,"nodeMoveRules",[]),ms(this,"customTrajectory",void 0),vs(this,"edgeType",kn,this),vs(this,"nodes",Nn,this),vs(this,"edges",Un,this),vs(this,"overlapMode",Bt,this),vs(this,"background",qt,this),vs(this,"transformModel",Kn,this),vs(this,"editConfigModel",On,this),vs(this,"gridSize",qn,this),vs(this,"partial",ir,this),vs(this,"fakerNode",$r,this);var O,_=g.container,x=g.background,M=x===void 0?{}:x,L=g.grid,U=g.idGenerator,ne=g.edgeGenerator,de=g.animation,we=g.customTrajectory;this.background=M,dg(L)==="object"&&(this.gridSize=L.size),this.rootEl=_,this.editConfigModel=new B0(g),this.eventCenter=new nm,this.transformModel=new sw(this.eventCenter,g),this.theme=Gp(g.style),this.edgeType=g.edgeType||"polyline",this.width=g.width,this.height=g.height,this.animation=(O=de)&&typeof O!="boolean"?Xp(Eo(ml),O):Eo(O===!0?ki:ml),this.partial=g.partial,this.overlapMode=g.overlapMode||0,this.idGenerator=U,this.customTrajectory=we,this.edgeGenerator=Kw(this,ne),this.width=g.width||this.rootEl.getBoundingClientRect().width,this.height=g.height||this.rootEl.getBoundingClientRect().height,this.flowId=gl()}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(Ku(this.nodes),Ku(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,ne){return U.zIndex-ne.zIndex});for(var O=[],_=[-200,-200],x=[this.width+qb,this.height+qb],M=0;M<g.length;M++){var L=g[M];L.visible&&(!this.partial||L.isSelected||this.isElementInArea(L,_,x,!1,!1))&&O.push(L)}return O}},{key:"textEditElement",get:function(){var g=this.nodes.find(function(_){return _.state===Kr.TEXT_EDIT}),O=this.edges.find(function(_){return _.state===Kr.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],L=[],U=[];this.nodes.forEach(function(we){return U.push(we)}),this.edges.forEach(function(we){return U.push(we)});for(var ne=0;ne<U.length;ne++){var de=U[ne];M&&!de.visible||!this.isElementInArea(de,g,O,_,x)||L.push(de)}return L}},{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},L=Gu(this.transformModel.HtmlPointToCanvasPoint([M.x,M.y]),2);return{domOverlayPosition:M,canvasOverlayPosition:{x:L[0],y:L[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===si.NODE){for(var L=gs(g=g),U=L.minX,ne=L.minY,de=L.maxX,we=L.maxY,De=[{x:U,y:ne},{x:de,y:ne},{x:de,y:we},{x:U,y:we}],Ke=M,tt=0;tt<De.length;tt++){var dt=De[tt],ht=dt.x,yt=dt.y,Rt=this.transformModel.CanvasPointToHtmlPoint([ht,yt]),on=Gu(Rt,2);if(ht=on[0],yt=on[1],im([ht,yt],O,_)!==M){Ke=!M;break}}return Ke}if(g.BaseType===si.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]),Pr=im(An,O,_),Nr=im(gn,O,_);return x?Pr&&Nr:Pr||Nr}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=Lv(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,L=_.y;return M&&L&&(_.x=tu(M,O.gridSize),_.y=tu(L,O.gridSize),dg(_.text)==="object"&&(_.text.x-=qd(M,O.gridSize),_.text.y-=qd(L,O.gridSize))),new x(_,O)}):this.nodes=[],g.edges?this.edges=Lv(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,L=[],U=0;U<this.edges.length;U++){var ne=this.edges[U];if(ne.isDragging){M=!0;break}L.push(ne.getHistoryData())}return!M&&{nodes:O,edges:L}}},{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,L=this.edges[_].targetNodeId===g;(M||L)&&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===si.NODE&&_.nodes.push(x.getData()),x.BaseType===si.EDGE){var M=x.getData(),L=O.get(M.sourceNodeId)&&O.get(M.targetNodeId);(g||L)&&_.edges.push(M)}}),_}},{key:"updateAttributes",value:function(g,O){this.getElement(g).updateAttributes(O)}},{key:"changeNodeId",value:function(g,O){return O||(O=gl()),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=gl()),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===No.DEFAULT&&((x=this.topElement)===null||x===void 0||x.setZIndex(),M.setZIndex(9999),this.topElement=M),this.overlapMode===No.INCREASE&&this.setElementZIndex(g,"top"))}},{key:"setElementZIndex",value:function(g,O){var _,x,M,L=((_=this.nodesMap[g])===null||_===void 0?void 0:_.model)||((x=this.edgesMap[g])===null||x===void 0?void 0:x.model);L&&(typeof O=="number"&&(M=O),O==="top"&&(M=vb()),O==="bottom"&&(M=--Nw),L.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=yo(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=tu(x.x,this.gridSize),x.y=tu(x.y,this.gridSize);var L=new M(x,this);this.nodes.push(L);var U=L.getData(),ne={data:U};return _&&(ne.e=_),this.eventCenter.emit(O,ne),L}},{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 L=M.model,U=L.getMoveDistance(O,_,x),ne=Gu(U,2);O=ne[0],_=ne[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 L=M.model,U=L.x,ne=L.y,de=O-U,we=_-ne;this.moveNode(g,de,we,x)}}},{key:"editText",value:function(g){this.setElementStateById(g,Kr.TEXT_EDIT)}},{key:"addEdge",value:function(g){var O=yo(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(yl(yl({},O),{},{type:_}),this),L=M.getData();return this.edges.push(M),this.eventCenter.emit($n.EDGE_ADD,{data:L}),M}},{key:"moveEdge",value:function(g,O,_){for(var x=0;x<this.edges.length;x++){var M=this.edges[x],L=M.textPosition,U=L.x,ne=L.y,de=this.edges[x].sourceNodeId===g,we=this.edges[x].targetNodeId===g;de&&M.moveStartPoint(O,_),we&&M.moveEndPoint(O,_),(de||we)&&this.handleEdgeTextMove(M,U,ne)}}},{key:"handleEdgeTextMove",value:function(g,O,_){var x;if(g.customTextPosition===!0)g.resetTextPosition();else if(g.modelType===xr.POLYLINE_EDGE&&(x=g.text)!==null&&x!==void 0&&x.value){var M=g.text,L=Vb(M,g.points);g.moveText(L.x-M.x,L.y-M.y)}else{var U=g.textPosition,ne=U.x,de=U.y;g.moveText(ne-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(Kr.DEFAULT)}),this.edges.forEach(function(x){x.id===g?x.setElementState(O,_):x.setElementState(Kr.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===No.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],L=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 ne=this.edges[U],de=ne.textPosition,we=de.x,De=de.y,Ke=L[ne.sourceNodeId],tt=void 0,dt=void 0;if(Ke){var ht=Gu(Ke,2);tt=ht[0],dt=ht[1],ne.moveStartPoint(tt,dt)}var yt=L[ne.targetNodeId];if(yt){var Rt=Gu(yt,2);tt=Rt[0],dt=Rt[1],ne.moveEndPoint(tt,dt)}(Ke||yt)&&this.handleEdgeTextMove(ne,we,De)}}},{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 L=new M(x,this);this.nodes.splice(this.nodesMap[g].index,1,L),this.getNodeEdges(g).forEach(function(U){if(U.sourceNodeId===g){var ne=pb(L,U.startPoint,L.width,L.height);U.updateStartPoint(ne)}if(U.targetNodeId===g){var de=pb(L,U.endPoint,L.width,L.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 L=new M(x,this);this.edges.splice(this.edgesMap[g].index,1,L)}}},{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=Gp(yl(yl({},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 we=de.x,De=de.y,Ke=de.width,tt=de.height,dt=de.getNodeStyle().strokeWidth,ht=dt===void 0?0:dt,yt=we+Ke/2+ht,Rt=we-Ke/2-ht,on=De+tt/2+ht,dn=De-tt/2-ht;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,Ku(O)),M=Math.max.apply(Math,Ku(O)),L=Math.min.apply(Math,Ku(_)),U=M-x||0,ne=Math.max.apply(Math,Ku(_))-L||0;return{virtualRectWidth:U,virtualRectHeight:ne,virtualRectCenterPositionX:x+U/2,virtualRectCenterPositionY:L+ne/2}}},{key:"translateCenter",value:function(){var g=this.nodes,O=this.width,_=this.height,x=this.rootEl,M=this.transformModel;if(g.length){var L=O||x.clientWidth,U=_||x.clientHeight,ne=this.getVirtualRectSize(),de=ne.virtualRectCenterPositionX,we=ne.virtualRectCenterPositionY;M.focusOn(de,we,L,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,L=this.rootEl,U=this.transformModel;if(_.length){var ne=x||L.clientWidth,de=M||L.clientHeight,we=this.getVirtualRectSize(),De=we.virtualRectWidth,Ke=we.virtualRectHeight,tt=we.virtualRectCenterPositionX,dt=we.virtualRectCenterPositionY,ht=(De+O)/ne,yt=(Ke+g)/de,Rt=0;Rt=1/Math.max(ht,yt);var on=[ne/2,de/2];U.zoom(Rt,on),U.focusOn(tt,dt,ne,de)}}},{key:"openEdgeAnimation",value:function(g){this.getEdgeModelById(g).openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(g){this.getEdgeModelById(g).closeEdgeAnimation()}}],h&&km(c.prototype,h),f}(),Mt=Ln(Ue.prototype,"width",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ut=Ln(Ue.prototype,"height",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kn=Ln(Ue.prototype,"edgeType",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nn=Ln(Ue.prototype,"nodes",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Un=Ln(Ue.prototype,"edges",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Bt=Ln(Ue.prototype,"overlapMode",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return No.DEFAULT}}),qt=Ln(Ue.prototype,"background",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kn=Ln(Ue.prototype,"transformModel",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),On=Ln(Ue.prototype,"editConfigModel",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qn=Ln(Ue.prototype,"gridSize",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),ir=Ln(Ue.prototype,"partial",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$r=Ln(Ue.prototype,"fakerNode",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ln(Ue.prototype,"nodesMap",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"nodesMap"),Ue.prototype),Ln(Ue.prototype,"edgesMap",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"edgesMap"),Ue.prototype),Ln(Ue.prototype,"modelsMap",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"modelsMap"),Ue.prototype),Ln(Ue.prototype,"sortElements",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"sortElements"),Ue.prototype),Ln(Ue.prototype,"textEditElement",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"textEditElement"),Ue.prototype),Ln(Ue.prototype,"selectElements",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"selectElements"),Ue.prototype),Ln(Ue.prototype,"selectNodes",[a.m],Object.getOwnPropertyDescriptor(Ue.prototype,"selectNodes"),Ue.prototype),Ln(Ue.prototype,"setFakerNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setFakerNode"),Ue.prototype),Ln(Ue.prototype,"removeFakerNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"removeFakerNode"),Ue.prototype),Ln(Ue.prototype,"setModel",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setModel"),Ue.prototype),Ln(Ue.prototype,"toFront",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"toFront"),Ue.prototype),Ln(Ue.prototype,"setElementZIndex",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setElementZIndex"),Ue.prototype),Ln(Ue.prototype,"deleteNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"deleteNode"),Ue.prototype),Ln(Ue.prototype,"addNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"addNode"),Ue.prototype),Ln(Ue.prototype,"cloneNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"cloneNode"),Ue.prototype),Ln(Ue.prototype,"moveNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"moveNode"),Ue.prototype),Ln(Ue.prototype,"moveNode2Coordinate",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"moveNode2Coordinate"),Ue.prototype),Ln(Ue.prototype,"editText",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"editText"),Ue.prototype),Ln(Ue.prototype,"addEdge",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"addEdge"),Ue.prototype),Ln(Ue.prototype,"moveEdge",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"moveEdge"),Ue.prototype),Ln(Ue.prototype,"deleteEdgeBySourceAndTarget",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"deleteEdgeBySourceAndTarget"),Ue.prototype),Ln(Ue.prototype,"deleteEdgeById",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"deleteEdgeById"),Ue.prototype),Ln(Ue.prototype,"deleteEdgeBySource",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"deleteEdgeBySource"),Ue.prototype),Ln(Ue.prototype,"deleteEdgeByTarget",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"deleteEdgeByTarget"),Ue.prototype),Ln(Ue.prototype,"setElementStateById",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setElementStateById"),Ue.prototype),Ln(Ue.prototype,"updateText",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"updateText"),Ue.prototype),Ln(Ue.prototype,"selectNodeById",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"selectNodeById"),Ue.prototype),Ln(Ue.prototype,"selectEdgeById",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"selectEdgeById"),Ue.prototype),Ln(Ue.prototype,"selectElementById",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"selectElementById"),Ue.prototype),Ln(Ue.prototype,"clearSelectElements",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"clearSelectElements"),Ue.prototype),Ln(Ue.prototype,"moveNodes",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"moveNodes"),Ue.prototype),Ln(Ue.prototype,"setDefaultEdgeType",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setDefaultEdgeType"),Ue.prototype),Ln(Ue.prototype,"changeNodeType",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"changeNodeType"),Ue.prototype),Ln(Ue.prototype,"changeEdgeType",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"changeEdgeType"),Ue.prototype),Ln(Ue.prototype,"getNodeIncomingEdge",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"getNodeIncomingEdge"),Ue.prototype),Ln(Ue.prototype,"getNodeOutgoingEdge",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"getNodeOutgoingEdge"),Ue.prototype),Ln(Ue.prototype,"getNodeIncomingNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"getNodeIncomingNode"),Ue.prototype),Ln(Ue.prototype,"getNodeOutgoingNode",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"getNodeOutgoingNode"),Ue.prototype),Ln(Ue.prototype,"setTheme",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"setTheme"),Ue.prototype),Ln(Ue.prototype,"resize",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"resize"),Ue.prototype),Ln(Ue.prototype,"clearData",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"clearData"),Ue.prototype),Ln(Ue.prototype,"translateCenter",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"translateCenter"),Ue.prototype),Ln(Ue.prototype,"fitView",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"fitView"),Ue.prototype),Ln(Ue.prototype,"openEdgeAnimation",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"openEdgeAnimation"),Ue.prototype),Ln(Ue.prototype,"closeEdgeAnimation",[a.k],Object.getOwnPropertyDescriptor(Ue.prototype,"closeEdgeAnimation"),Ue.prototype),Ue),Cm=pg;function jE(f){return jE=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},jE(f)}function LE(){return LE=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},LE.apply(this,arguments)}function Hq(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 BE(f,c){return BE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},BE(f,c)}function Xq(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 Gq(this,h)}}function Gq(f,c){if(c&&(jE(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bc(f)}function Bc(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 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 aj,Kq=nc(hg=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&&BE(_,x)})(O,f);var c,h,g=Xq(O);function O(_){var x;(function(ne,de){if(!(ne instanceof de))throw new TypeError("Cannot call a class as a function")})(this,O),Uf(Bc(x=g.call(this)),"stepDrag",void 0),Uf(Bc(x),"stepScrollX",0),Uf(Bc(x),"stepScrollY",0),Uf(Bc(x),"onDragging",function(ne){var de=ne.deltaX,we=ne.deltaY;x.setState({isDragging:!0});var De=x.props.graphModel,Ke=De.transformModel;De.editConfigModel.stopMoveGraph!==!0&&Ke.translate(de,we)}),Uf(Bc(x),"onDragEnd",function(){x.setState({isDragging:!1})}),Uf(Bc(x),"zoomHandler",function(ne){var de=x.props,we=de.graphModel,De=we.editConfigModel,Ke=we.transformModel,tt=we.gridSize,dt=de.graphModel,ht=ne.deltaX,yt=ne.deltaY;if(De.stopScrollGraph||ne.ctrlKey===!0){if(!De.stopZoomGraph){ne.preventDefault();var Rt=dt.getPointByClient({x:ne.clientX,y:ne.clientY}).canvasOverlayPosition,on=Rt.x,dn=Rt.y;Ke.zoom(ne.deltaY<0,[on,dn])}}else{if(ne.preventDefault(),x.stepScrollX+=ht,x.stepScrollY+=yt,Math.abs(x.stepScrollX)>=tt){var zn=x.stepScrollX%tt,an=x.stepScrollX-zn;Ke.translate(-an*Ke.SCALE_X,0),x.stepScrollX=zn}if(Math.abs(x.stepScrollY)>=tt){var An=x.stepScrollY%tt,gn=x.stepScrollY-An;Ke.translate(0,-gn*Ke.SCALE_Y),x.stepScrollY=An}}}),Uf(Bc(x),"clickHandler",function(ne){if(ne.target.getAttribute("name")==="canvas-overlay"){var de=x.props.graphModel;de.selectElements.size>0&&de.clearSelectElements(),de.eventCenter.emit($n.BLANK_CLICK,{e:ne})}}),Uf(Bc(x),"handleContextMenu",function(ne){if(ne.target.getAttribute("name")==="canvas-overlay"){ne.preventDefault();var de=x.props.graphModel,we=de.getPointByClient({x:ne.clientX,y:ne.clientY});de.eventCenter.emit($n.BLANK_CONTEXTMENU,{e:ne,position:we})}}),Uf(Bc(x),"mouseDownHandler",function(ne){var de=x.props.graphModel,we=de.eventCenter,De=de.editConfigModel,Ke=de.transformModel.SCALE_X,tt=de.gridSize,dt=ne.target,ht=!De.adjustEdge&&!De.adjustNodePosition;(dt.getAttribute("name")==="canvas-overlay"||ht)&&(De.stopMoveGraph!==!0?(x.stepDrag.setStep(tt*Ke),x.stepDrag.handleMouseDown(ne)):we.emit($n.BLANK_MOUSEDOWN,{e:ne}),x.clickHandler(ne))});var M=_.graphModel,L=M.gridSize,U=M.eventCenter;return x.stepDrag=new vl({onDragging:x.onDragging,onDragEnd:x.onDragEnd,step:L,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,L=x.dnd,U=this.state.isDragging;return Object(Oe.g)("svg",LE({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"},L.eventMap()),Object(Oe.g)("g",{transform:_},M))}}])&&Hq(c.prototype,h),O}(Oe.a))||hg;function VE(f){return VE=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},VE(f)}function qq(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function Jq(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 FE(f,c){return FE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},FE(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=rS(f);if(c){var O=rS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return tJ(this,h)}}function tJ(f,c){if(c&&(VE(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 nJ=nc(aj=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&&FE(_,x)})(O,f);var c,h,g=eJ(O);function O(){return qq(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,L=x.getTools().map(function(U){return Object(Oe.g)(U,{graphModel:M,logicFlow:x.instance})});return x.components=L,L}},{key:"triggerToolRender",value:function(){var _=this.props,x=_.tool,M=_.graphModel,L=document.querySelector("#ToolOverlay_".concat(M.flowId)),U=x.getInstance();U.components.forEach(function(ne){return ne(U,L)}),U.components=[]}},{key:"render",value:function(){var _=this.props.graphModel;return Object(Oe.g)("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(_.flowId)},this.getTools())}}])&&Jq(c.prototype,h),O}(Oe.a))||aj;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 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 QE(f,c){return QE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},QE(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=oS(f);if(c){var O=oS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return aJ(this,h)}}function aJ(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 oS(f){return oS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},oS(f)}var sj,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&&QE(_,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(Oe.g)("div",{className:"lf-background"},Object(Oe.g)("div",{style:_,className:"lf-background-area"}))}}])&&oJ(c.prototype,h),O}(Oe.a);function WE(f){return WE=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},WE(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 YE(f,c){return YE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},YE(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=iS(f);if(c){var O=iS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return fJ(this,h)}}function fJ(f,c){if(c&&(WE(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lj(f)}function lj(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function iS(f){return iS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},iS(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 uj=nc(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&&YE(_,x)})(O,f);var c,h,g=cJ(O);function O(){var _;lJ(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return dJ(lj(_=g.call.apply(g,[this].concat(M))),"id",gl()),_}return c=O,(h=[{key:"renderDot",value:function(){var _=this.props,x=_.config,M=x.color,L=x.thickness,U=L===void 0?2:L,ne=_.size,de=_.visible,we=Math.min(Math.max(2,U),ne/2),De=1;return de||(De=0),Object(Oe.g)("rect",{width:we,height:we,rx:we/2,ry:we/2,fill:M,opacity:De})}},{key:"renderMesh",value:function(){var _=this.props,x=_.config,M=x.color,L=x.thickness,U=L===void 0?1:L,ne=_.size,de=_.visible,we=Math.min(Math.max(1,U),ne/2),De="M ".concat(ne," 0 H0 M0 0 V0 ").concat(ne),Ke=1;return de||(Ke=0),Object(Oe.g)("path",{d:De,stroke:M,strokeWidth:we,opacity:Ke})}},{key:"render",value:function(){var _=this.props,x=_.type,M=_.size,L=_.graphModel.transformModel,U=[L.SCALE_X,L.SKEW_Y,L.SKEW_X,L.SCALE_Y,L.TRANSLATE_X,L.TRANSLATE_Y].join(","),ne="matrix(".concat(U,")");return Object(Oe.g)("div",{className:"lf-grid"},Object(Oe.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},Object(Oe.g)("defs",null,Object(Oe.g)("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:ne,x:"0",y:"0",width:M,height:M},x==="dot"&&this.renderDot(),x==="mesh"&&this.renderMesh())),Object(Oe.g)("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})))}}])&&uJ(c.prototype,h),O}(Oe.a))||sj;uj.defaultProps={size:20,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}},o(53);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 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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||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.
- 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}var fj,Em=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"||ZE(_)!=="object")&&(c[O]=_)}),Object(Oe.g)("line",c)};function UE(f){return UE=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},UE(f)}function dj(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 aS(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?dj(Object(h),!0).forEach(function(g){pJ(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):dj(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 HE(f,c){return HE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},HE(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=sS(f);if(c){var O=sS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return yJ(this,h)}}function yJ(f,c){if(c&&(UE(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)}var hj,bJ=nc(fj=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&&HE(_,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,L=_.isShowVertical,U=_.getStyle(),ne=x.x,de=ne===void 0?0:ne,we=x.y,De=we===void 0?0:we,Ke=aS(aS({x1:-1e5,y1:De,x2:1e5,y2:De},U),{},{stroke:M?U.stroke:"none"}),tt=aS(aS({x1:de,y1:-1e5,x2:de,y2:1e5},U),{},{stroke:L?U.stroke:"none"});return Object(Oe.g)("g",{className:"lf-snapline"},Object(Oe.g)(Em,Ke),Object(Oe.g)(Em,tt))}}])&&vJ(c.prototype,h),O}(Oe.a))||fj;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 _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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return pj(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 pj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function pj(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 ch(f){var c=f.x,h=f.y,g=f.width,O=f.height,_=f.className,x=f.radius,M=c-g/2,L=h-O/2,U={};return Object.entries(f).forEach(function(ne){var de=_J(ne,2),we=de[0],De=de[1];XE(De)!=="object"&&(U[we]=De)}),U.className=_?"lf-basic-shape ".concat(_):"lf-basic-shape",x&&(U.rx=x,U.ry=x),U.x=M,U.y=L,Object(Oe.g)("rect",U)}function GE(f){return GE=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},GE(f)}function Tm(){return Tm=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},Tm.apply(this,arguments)}function gj(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 vj(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?gj(Object(h),!0).forEach(function(g){OJ(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):gj(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 KE(f,c){return KE=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},KE(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=lS(f);if(c){var O=lS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return kJ(this,h)}}function kJ(f,c){if(c&&(GE(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 lS(f){return lS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},lS(f)}ch.defaultProps={className:"",radius:""};var mj,CJ=nc(hj=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&&KE(_,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,L=M.hoverOutline,U=M.nodeSelectedOutline,ne=[];return x.forEach(function(de){if(de.isHovered||de.isSelected){var we=de.isHovered,De=de.isSelected,Ke=de.x,tt=de.y,dt=de.width,ht=de.height;if(U&&De||L&&we){var yt=de.getOutlineStyle(),Rt={};if(Object.keys(yt).forEach(function(dn){dn!=="hover"&&(Rt[dn]=yt[dn])}),we){var on=yt.hover;Rt=vj(vj({},Rt),on)}ne.push(Object(Oe.g)(ch,Tm({transform:de.transform,className:"lf-outline-node",x:Ke,y:tt,width:dt+10,height:ht+10},Rt)))}}}),ne}},{key:"getEdgeOutline",value:function(){for(var _=this.props.graphModel,x=_.edges,M=_.editConfigModel,L=M.edgeSelectedOutline,U=M.hoverOutline,ne=[],de=0;de<x.length;de++){var we=x[de];(L&&we.isSelected||U&&we.isHovered)&&(we.modelType===xr.LINE_EDGE?ne.push(this.getLineOutline(we)):we.modelType===xr.POLYLINE_EDGE?ne.push(this.getPolylineOutline(we)):we.modelType===xr.BEZIER_EDGE&&ne.push(this.getBezierOutline(we)))}return ne}},{key:"getLineOutline",value:function(_){var x=_.startPoint,M=_.endPoint,L=(x.x+M.x)/2,U=(x.y+M.y)/2,ne=Math.abs(x.x-M.x)+10,de=Math.abs(x.y-M.y)+10,we=_.getOutlineStyle();return Object(Oe.g)(ch,Tm({className:"lf-outline-edge",x:L,y:U,width:ne,height:de},we))}},{key:"getPolylineOutline",value:function(_){var x=_.points,M=jc(x),L=ah(M,8),U=L.x,ne=L.y,de=L.width,we=L.height,De=_.getOutlineStyle();return Object(Oe.g)(ch,Tm({className:"lf-outline",x:U,y:ne,width:de,height:we},De))}},{key:"getBezierOutline",value:function(_){var x=_.path,M=ym(x),L=ah(M,8),U=L.x,ne=L.y,de=L.width,we=L.height,De=_.getOutlineStyle();return Object(Oe.g)(ch,Tm({className:"lf-outline",x:U,y:ne,width:de,height:we},De))}},{key:"render",value:function(){return Object(Oe.g)("g",{className:"lf-outline"},this.getNodesOutline(),this.getEdgeOutline())}}])&&SJ(c.prototype,h),O}(Oe.a))||hj;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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return yj(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 yj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function yj(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 Pm(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,L={cx:h,cy:O,r:x,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(f).forEach(function(U){var ne=EJ(U,2),de=ne[0],we=ne[1];qE(we)!=="object"&&(L[de]=we)}),L.className=M?"lf-basic-shape ".concat(M):"lf-basic-shape",Object(Oe.g)("circle",L)}function JE(f){return JE=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},JE(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return bj(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 bj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function bj(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 Jb(){return Jb=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},Jb.apply(this,arguments)}function _j(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 wj(f,c,h){return c&&Oj(f.prototype,c),h&&Oj(f,h),f}function Sj(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&&eT(f,c)}function eT(f,c){return eT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},eT(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=cS(f);if(c){var O=cS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return PJ(this,h)}}function PJ(f,c){if(c&&(JE(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uS(f)}function uS(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function cS(f){return cS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},cS(f)}function tT(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var kj,Cj=function(f){Sj(h,f);var c=xj(h);function h(){var g;return _j(this,h),tT(uS(g=c.call(this)),"dragHandler",void 0),tT(uS(g),"onDragging",function(O){var _=O.event,x=g.props,M=x.graphModel,L=x.bezierModel,U=x.type,ne=M.getPointByClient({x:_.clientX,y:_.clientY}).canvasOverlayPosition,de=ne.x,we=ne.y;L.updateAdjustAnchor({x:de,y:we},U),M.eventCenter.emit($n.EDGE_ADJUST,{data:L.getData()})}),tT(uS(g),"onDragEnd",function(){g.props.bezierModel.isDragging=!1}),g.dragHandler=new vl({onDragging:g.onDragging,onDragEnd:g.onDragEnd}),g}return wj(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(Oe.g)(Pm,Jb({className:"lf-bezier-adjust-anchor",x:_,y:x},M,{onMouseDown:function(L){g.dragHandler.handleMouseDown(L)}}))}}]),h}(Oe.a),$J=nc(mj=function(f){Sj(h,f);var c=xj(h);function h(){return _j(this,h),c.apply(this,arguments)}return wj(h,[{key:"getBezierAdjust",value:function(g,O){var _=g.path,x=g.id,M=TJ(ym(_),4),L=M[0],U=M[1],ne=M[2],de=M[3],we=g.getEdgeStyle().adjustLine,De=[];return De.push(Object(Oe.g)(Em,Jb({x1:L.x,y1:L.y,x2:U.x,y2:U.y},we))),De.push(Object(Oe.g)(Cj,{position:U,bezierModel:g,graphModel:O,key:"".concat(x,"_ePre"),type:"sNext"})),De.push(Object(Oe.g)(Em,Jb({x1:de.x,y1:de.y,x2:ne.x,y2:ne.y},we))),De.push(Object(Oe.g)(Cj,{position:ne,bezierModel:g,graphModel:O,key:"".concat(x,"_sNext"),type:"ePre"})),De}},{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===xr.BEZIER_EDGE&&M.draggable&&_.push(this.getBezierAdjust(M,g))}return _}},{key:"render",value:function(){return Object(Oe.g)("g",{className:"lf-bezier-adjust"},this.selectedBezierEdge())}}]),h}(Oe.a))||mj;function nT(f){return nT=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},nT(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 rT(f,c){return rT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},rT(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=fS(f);if(c){var O=fS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return NJ(this,h)}}function NJ(f,c){if(c&&(nT(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 Ej,IJ=nc(kj=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=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(Oe.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay"},Object(Oe.g)("g",{transform:_},x))}}])&&MJ(c.prototype,h),O}(Oe.a))||kj;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 iT(){return iT=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},iT.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 aT(f,c){return aT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},aT(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=dS(f);if(c){var O=dS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return BJ(this,h)}}function BJ(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 function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(f)}function dS(f){return dS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},dS(f)}var VJ=nc(Ej=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&&aT(_,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",L=this.props.getView,U=L(_.type);return Object(Oe.g)(U,{key:_.id,model:_,graphModel:x,overlay:M})}},{key:"render",value:function(){var _=this,x=this.props,M=x.graphModel,L=x.tool,U=x.options,ne=x.dnd,de=x.snaplineModel,we={};U.width&&(we.width="".concat(M.width,"px")),U.height&&(we.height="".concat(M.height,"px"));var De=U.grid,Ke=M.fakerNode,tt=M.editConfigModel.adjustEdge;return Object(Oe.g)("div",{className:"lf-graph","flow-id":M.flowId,style:we},Object(Oe.g)(Kq,{graphModel:M,dnd:ne},Object(Oe.g)("g",{className:"lf-base"},Lv(M.sortElements,function(dt){return _.getComponent(dt,M)})),Ke?this.getComponent(Ke,M):""),Object(Oe.g)(IJ,{graphModel:M},Object(Oe.g)(CJ,{graphModel:M}),tt?Object(Oe.g)($J,{graphModel:M}):"",U.snapline!==!1?Object(Oe.g)(bJ,{snaplineModel:de}):""),Object(Oe.g)(nJ,{graphModel:M,tool:L}),U.background&&Object(Oe.g)(sJ,{background:U.background}),U.grid&&Object(Oe.g)(uj,iT({},De,{graphModel:M})))}}],h&&jJ(c.prototype,h),O}(Oe.a))||Ej,FJ=VJ;function Tj(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?Tj(Object(h),!0).forEach(function(g){Hf(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Tj(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 Hf(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),Hf(this,"nodeConfig",void 0),Hf(this,"lf",void 0),Hf(this,"fakerNode",void 0),Hf(this,"stopDrag",function(){O.nodeConfig=null,window.document.removeEventListener("mouseup",O.stopDrag)}),Hf(this,"dragEnter",function(x){O.nodeConfig&&!O.fakerNode&&(O.fakerNode=O.lf.createFakerNode(hS(hS({},O.nodeConfig),O.clientToLocalPoint({x:x.clientX,y:x.clientY}))))}),Hf(this,"onDragOver",function(x){if(x.preventDefault(),O.fakerNode){var M=O.clientToLocalPoint({x:x.clientX,y:x.clientY}),L=M.x,U=M.y;O.fakerNode.moveTo(L,U);var ne=O.fakerNode.getData();O.lf.setNodeSnapLine(ne),O.lf.graphModel.eventCenter.emit($n.NODE_DND_DRAG,{data:ne})}return!1}),Hf(this,"onDragLeave",function(){O.fakerNode&&(O.lf.removeNodeSnapLine(),O.lf.graphModel.removeFakerNode(),O.fakerNode=null)}),Hf(this,"onDrop",function(x){O.lf.graphModel&&x&&O.nodeConfig&&(O.lf.addNode(hS(hS({},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=Qp(this.lf.options,["grid","size"]),M=this.lf.graphModel.getPointByClient({x:O,y:_}).canvasOverlayPosition,L=M.x,U=M.y;return{x:tu(L,x),y:tu(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 Pj(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=xi({size:20,type:"dot",visible:!0,config:{color:"#ababab",thickness:1}},h)),xi({},Aj,f)}var no,$j,Aj={background:!1,grid:!1,textEdit:!0,disabledTools:[]};function sT(f){return sT=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},sT(f)}function lT(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return Mj(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 Mj(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Mj(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 pS(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){Nj(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 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 e_(){return e_=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}},e_.apply(this,arguments)}function UJ(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=fh(f))!==null;);return f}function uT(f,c){return uT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},uT(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=fh(f);if(c){var O=fh(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return XJ(this,h)}}function XJ(f,c){if(c&&(sT(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 fh(f){return fh=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},fh(f)}function Nj(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Ju(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 cT=(no=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&&uT(_,x)})(O,f);var c,h,g=HJ(O);function O(){var _;YJ(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return Nj(gS(_=g.call.apply(g,[this].concat(M))),"modelType",xr.BEZIER_EDGE),WJ(gS(_),"path",$j,gS(_)),_}return c=O,(h=[{key:"initEdgeData",value:function(_){this.offset=100,e_(fh(O.prototype),"initEdgeData",this).call(this,_)}},{key:"getEdgeStyle",value:function(){var _=this.graphModel.theme.bezier;return pS(pS({},e_(fh(O.prototype),"getEdgeStyle",this).call(this)),Eo(_))}},{key:"getTextPosition",value:function(){if(this.pointsList&&this.pointsList.length>0){var _=0,x=0;return this.pointsList.forEach(function(M){var L=M.x,U=M.y;_+=L,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 _=e_(fh(O.prototype),"getData",this).call(this),x=this.pointsList.map(function(M){return{x:M.x,y:M.y}});return pS(pS({},_),{},{pointsList:x})}},{key:"getControls",value:function(){var _=this.startPoint,x=this.endPoint;return Lc({start:_,end:x,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})}},{key:"getPath",value:function(_){var x=lT(_,4),M=x[0],L=x[1],U=x[2],ne=x[3];return"M ".concat(M.x," ").concat(M.y,`
- C `).concat(L.x," ").concat(L.y,`,
- `).concat(U.x," ").concat(U.y,`,
- `).concat(ne.x," ").concat(ne.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){_=Eo(_),x=Eo(x);var M={x:this.startPoint.x,y:this.startPoint.y},L={x:this.endPoint.x,y:this.endPoint.y};if(!_||!x){var U=this.getControls();_=U.sNext,x=U.ePre}this.pointsList=[M,_,x,L],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=lT(this.pointsList,3),L=M[1],U=M[2];L.x+=_,L.y+=x,this.updatePath(L,U)}},{key:"moveEndPoint",value:function(_,x){this.endPoint.x+=_,this.endPoint.y+=x;var M=lT(this.pointsList,3),L=M[1],U=M[2];U.x+=_,U.y+=x,this.updatePath(L,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,L=_.sourceNode,U=_.targetNode,ne=Lc({start:x,end:M,sourceNode:L,targetNode:U,offset:this.offset}),de=ne.sNext,we=ne.ePre;this.pointsList=[x,de,we,M],this.initPoints()}}])&&ZJ(c.prototype,h),O}(yb),$j=Ju(no.prototype,"path",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ju(no.prototype,"initPoints",[a.k],Object.getOwnPropertyDescriptor(no.prototype,"initPoints"),no.prototype),Ju(no.prototype,"updatePoints",[a.k],Object.getOwnPropertyDescriptor(no.prototype,"updatePoints"),no.prototype),Ju(no.prototype,"updateStartPoint",[a.k],Object.getOwnPropertyDescriptor(no.prototype,"updateStartPoint"),no.prototype),Ju(no.prototype,"updateEndPoint",[a.k],Object.getOwnPropertyDescriptor(no.prototype,"updateEndPoint"),no.prototype),Ju(no.prototype,"moveStartPoint",[a.k],Object.getOwnPropertyDescriptor(no.prototype,"moveStartPoint"),no.prototype),Ju(no.prototype,"moveEndPoint",[a.k],Object.getOwnPropertyDescriptor(no.prototype,"moveEndPoint"),no.prototype),Ju(no.prototype,"updateAdjustAnchor",[a.k],Object.getOwnPropertyDescriptor(no.prototype,"updateAdjustAnchor"),no.prototype),Ju(no.prototype,"getAdjustStart",[a.k],Object.getOwnPropertyDescriptor(no.prototype,"getAdjustStart"),no.prototype),Ju(no.prototype,"getAdjustEnd",[a.k],Object.getOwnPropertyDescriptor(no.prototype,"getAdjustEnd"),no.prototype),Ju(no.prototype,"updateAfterAdjustStartAndEnd",[a.k],Object.getOwnPropertyDescriptor(no.prototype,"updateAfterAdjustStartAndEnd"),no.prototype),no),Jt,Ij,Dj,jj,Lj,Bj,Vj,Fj,zj,Qj,Wj,Yj,Zj,Uj,Hj,Xj,Gj,Kj,qj,Jj,e4,t4,n4,GJ=function(f){return f==null};function KJ(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||r4(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}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 r4(f,c){if(f){if(typeof f=="string")return o4(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)?o4(f,c):void 0}}function o4(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 i4(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 ys(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?i4(Object(h),!0).forEach(function(g){zs(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):i4(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function yi(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 qJ(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}function yr(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 Xf,a4,Gf=(Jt=function(){function f(g,O){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,f),zs(this,"id",""),yi(this,"type",Ij,this),yi(this,"x",Dj,this),yi(this,"y",jj,this),yi(this,"text",Lj,this),yi(this,"properties",Bj,this),yi(this,"_width",Vj,this),yi(this,"_height",Fj,this),yi(this,"anchorsOffset",zj,this),yi(this,"isSelected",Qj,this),yi(this,"isHovered",Wj,this),yi(this,"isShowAnchor",Yj,this),yi(this,"isDragging",Zj,this),yi(this,"isHitable",Uj,this),yi(this,"draggable",Hj,this),yi(this,"visible",Xj,this),yi(this,"enableRotate",Gj,this),zs(this,"virtual",!1),zs(this,"graphModel",void 0),yi(this,"zIndex",Kj,this),yi(this,"state",qj,this),yi(this,"autoToFront",Jj,this),yi(this,"style",e4,this),yi(this,"transform",t4,this),yi(this,"_rotate",n4,this),zs(this,"BaseType",si.NODE),zs(this,"modelType",xr.NODE),zs(this,"additionStateData",void 0),zs(this,"targetRules",[]),zs(this,"sourceRules",[]),zs(this,"moveRules",[]),zs(this,"hasSetTargetRules",!1),zs(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 Hi(-_,-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||_||gl()}this.formatText(g),xi(this,function(M){return Fu(M,["id","type","x","y","text","properties","virtual","rotate"])}(g)),this.graphModel.overlapMode===No.INCREASE&&(this.zIndex=g.zIndex||vb())}},{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 L={id:this.id,type:this.type,x:this.x,y:this.y,properties:M};return this.rotate&&(L.rotate=this.rotate),this.graphModel.overlapMode===No.INCREASE&&(L.zIndex=this.zIndex),x&&(L.text={x:O,y:_,value:x}),L}},{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 ys(ys({},this.graphModel.theme.baseNode),this.style)}},{key:"getTextStyle",value:function(){var g=this.graphModel.theme.nodeText;return Eo(g)}},{key:"getRotateControlStyle",value:function(){var g=this.graphModel.theme.rotateControl;return Eo(g)}},{key:"getAnchorStyle",value:function(g){var O=this.graphModel.theme.anchor;return Eo(O)}},{key:"getAnchorLineStyle",value:function(g){var O=this.graphModel.theme.anchorLine;return Eo(O)}},{key:"getOutlineStyle",value:function(){var g=this.graphModel.theme.outline;return Eo(g)}},{key:"isAllowConnectedAsSource",value:function(g,O,_,x){var M=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var L,U=!0,ne=0;ne<M.length;ne++){var de=M[ne];if(!de.validate.call(this,this,g,O,_,x)){U=!1,L=de.message;break}}return{isAllPass:U,msg:L}}},{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 L,U=!0,ne=0;ne<M.length;ne++){var de=M[ne];if(!de.validate.call(this,g,this,O,_,x)){U=!1,L=de.message;break}}return{isAllPass:U,msg:L}}},{key:"isAllowMoveNode",value:function(g,O){var _,x=!0,M=!0,L=function(de,we){var De=typeof Symbol!="undefined"&&de[Symbol.iterator]||de["@@iterator"];if(!De){if(Array.isArray(de)||(De=r4(de))||we&&de&&typeof de.length=="number"){De&&(de=De);var Ke=0,tt=function(){};return{s:tt,n:function(){return Ke>=de.length?{done:!0}:{done:!1,value:de[Ke++]}},e:function(Rt){throw Rt},f:tt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dt,ht=!0,yt=!1;return{s:function(){De=De.call(de)},n:function(){var Rt=De.next();return ht=Rt.done,Rt},e:function(Rt){yt=!0,dt=Rt},f:function(){try{ht||De.return==null||De.return()}finally{if(yt)throw dt}}}}(this.moveRules.concat(this.graphModel.nodeMoveRules));try{for(L.s();!(_=L.n()).done;){var U=(0,_.value)(this,g,O);if(!U)return!1;if(fT(U)==="object"){var ne=U;if(ne.x===!1&&ne.y===!1)return!1;x=x&&ne.x,M=M&&ne.y}}}catch(de){L.e(de)}finally{L.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,L){return M.length?(M=M,{id:"".concat(O,"_").concat(L),x:_+M[0],y:x+M[1]}):ys(ys({},M=M),{},{x:_+M.x,y:x+M.y,id:M.id||"".concat(O,"_").concat(L)})}):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getTargetAnchor",value:function(g){return function(O,_){for(var x,M=fm(_),L=Number.MAX_SAFE_INTEGER,U=0;U<M.length;U++){var ne=pi(O.x,O.y,M[U].x,M[U].y);ne<L&&(L=ne,x={index:U,anchor:Ic(Ic({},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 L=M.x,U=M.y,ne=KJ(new jn([L,U,1]).translate(-O,-_).rotate(x).translate(O,_)[0],2),de=ne[0],we=ne[1];M.x=de,M.y=we}),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 L=this.isAllowMoveNode(g,O);typeof L=="boolean"?(x=L,M=L):(x=L.x,M=L.y)}if(x){var U=this.x+g;this.x=U,this.text&&this.moveText(g,0)}if(M){var ne=this.y+O;this.y=ne,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,L=0,U=0;if(_)x=!0,M=!0;else{var ne=this.isAllowMoveNode(g,O);typeof ne=="boolean"?(x=ne,M=ne):(x=ne.x,M=ne.y)}if(x&&g){var de=this.x+g;this.x=de,this.text&&this.moveText(g,0),L=g}if(M&&O){var we=this.y+O;this.y=we,this.text&&this.moveText(0,O),U=O}return[L,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,L=_.value,U=_.draggable,ne=_.editable;this.text={value:L,editable:ne,draggable:U,x:x+g,y:M+O}}},{key:"updateText",value:function(g){this.text=ys(ys({},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=ys(ys({},Object(a.I)(this.properties)),{},zs({},g,yo(O))),this.setAttributes()}},{key:"setProperties",value:function(g){this.properties=ys(ys({},Object(a.I)(this.properties)),yo(g)),this.setAttributes()}},{key:"deleteProperty",value:function(g){delete this.properties[g],this.setAttributes()}},{key:"setStyle",value:function(g,O){this.style=ys(ys({},this.style),{},zs({},g,yo(O)))}},{key:"setStyles",value:function(g){this.style=ys(ys({},this.style),yo(g))}},{key:"updateStyles",value:function(g){this.style=ys({},yo(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){xi(this,g)}}],h&&qJ(c.prototype,h),f}(),Ij=yr(Jt.prototype,"type",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Dj=yr(Jt.prototype,"x",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),jj=yr(Jt.prototype,"y",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Lj=yr(Jt.prototype,"text",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),Bj=yr(Jt.prototype,"properties",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Vj=yr(Jt.prototype,"_width",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),Fj=yr(Jt.prototype,"_height",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),zj=yr(Jt.prototype,"anchorsOffset",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Qj=yr(Jt.prototype,"isSelected",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wj=yr(Jt.prototype,"isHovered",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yj=yr(Jt.prototype,"isShowAnchor",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zj=yr(Jt.prototype,"isDragging",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Uj=yr(Jt.prototype,"isHitable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Hj=yr(Jt.prototype,"draggable",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Xj=yr(Jt.prototype,"visible",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Gj=yr(Jt.prototype,"enableRotate",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Kj=yr(Jt.prototype,"zIndex",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),qj=yr(Jt.prototype,"state",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Jj=yr(Jt.prototype,"autoToFront",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),e4=yr(Jt.prototype,"style",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),t4=yr(Jt.prototype,"transform",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n4=yr(Jt.prototype,"_rotate",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),yr(Jt.prototype,"incoming",[a.m],Object.getOwnPropertyDescriptor(Jt.prototype,"incoming"),Jt.prototype),yr(Jt.prototype,"outgoing",[a.m],Object.getOwnPropertyDescriptor(Jt.prototype,"outgoing"),Jt.prototype),yr(Jt.prototype,"addNodeMoveRules",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"addNodeMoveRules"),Jt.prototype),yr(Jt.prototype,"move",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"move"),Jt.prototype),yr(Jt.prototype,"getMoveDistance",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"getMoveDistance"),Jt.prototype),yr(Jt.prototype,"moveTo",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"moveTo"),Jt.prototype),yr(Jt.prototype,"moveText",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"moveText"),Jt.prototype),yr(Jt.prototype,"updateText",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"updateText"),Jt.prototype),yr(Jt.prototype,"setSelected",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setSelected"),Jt.prototype),yr(Jt.prototype,"setHovered",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setHovered"),Jt.prototype),yr(Jt.prototype,"setIsShowAnchor",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setIsShowAnchor"),Jt.prototype),yr(Jt.prototype,"setEnableRotate",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setEnableRotate"),Jt.prototype),yr(Jt.prototype,"setHitable",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setHitable"),Jt.prototype),yr(Jt.prototype,"setElementState",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setElementState"),Jt.prototype),yr(Jt.prototype,"setProperty",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setProperty"),Jt.prototype),yr(Jt.prototype,"setProperties",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setProperties"),Jt.prototype),yr(Jt.prototype,"deleteProperty",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"deleteProperty"),Jt.prototype),yr(Jt.prototype,"setStyle",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setStyle"),Jt.prototype),yr(Jt.prototype,"setStyles",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setStyles"),Jt.prototype),yr(Jt.prototype,"updateStyles",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"updateStyles"),Jt.prototype),yr(Jt.prototype,"setZIndex",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"setZIndex"),Jt.prototype),yr(Jt.prototype,"updateAttributes",[a.k],Object.getOwnPropertyDescriptor(Jt.prototype,"updateAttributes"),Jt.prototype),Jt);function dT(f){return dT=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},dT(f)}function s4(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 l4(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?s4(Object(h),!0).forEach(function(g){u4(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):s4(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 hT(){return hT=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}},hT.apply(this,arguments)}function nee(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=$m(f))!==null;);return f}function pT(f,c){return pT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},pT(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=$m(f);if(c){var O=$m(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return oee(this,h)}}function oee(f,c){if(c&&(dT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vS(f)}function vS(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function $m(f){return $m=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},$m(f)}function u4(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function gT(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 Xa,c4,f4,vT=(Xf=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&&pT(_,x)})(O,f);var c,h,g=ree(O);function O(){var _;eee(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return u4(vS(_=g.call.apply(g,[this].concat(M))),"modelType",xr.CIRCLE_NODE),JJ(vS(_),"r",a4,vS(_)),_}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 _=hT($m(O.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.circle;return l4(l4({},_),Eo(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}(Gf),a4=gT(Xf.prototype,"r",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),gT(Xf.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(Xf.prototype,"width"),Xf.prototype),gT(Xf.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(Xf.prototype,"height"),Xf.prototype),Xf);o(129);function mT(f){return mT=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},mT(f)}function yT(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||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.
- 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 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){v4(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 g4(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 bT(){return bT=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}},bT.apply(this,arguments)}function see(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Mm(f))!==null;);return f}function _T(f,c){return _T=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},_T(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=Mm(f);if(c){var O=Mm(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return uee(this,h)}}function uee(f,c){if(c&&(mT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Am(f)}function Am(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Mm(f){return Mm=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Mm(f)}function v4(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function Rm(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 Vc,m4,y4,OT=(Xa=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&&_T(_,x)})(O,f);var c,h,g=lee(O);function O(){var _;iee(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return v4(Am(_=g.call.apply(g,[this].concat(M))),"modelType",xr.DIAMOND_NODE),g4(Am(_),"rx",c4,Am(_)),g4(Am(_),"ry",f4,Am(_)),_}return c=O,(h=[{key:"getNodeStyle",value:function(){var _=bT(Mm(O.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.diamond;return p4(p4({},_),Eo(x))}},{key:"points",get:function(){var _=this.x,x=this.y,M=this.rx,L=this.ry;return[[_,x-L],[_+M,x],[_,x+L],[_-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 L=yT(M,1)[0];L<_&&(_=L),L>x&&(x=L)}),x-_}},{key:"height",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var L=yT(M,2)[1];L<_&&(_=L),L>x&&(x=L)}),x-_}},{key:"getDefaultAnchor",value:function(){var _=this;return this.points.map(function(x,M){var L=yT(x,2);return{x:L[0],y:L[1],id:"".concat(_.id,"_").concat(M)}})}}])&&aee(c.prototype,h),O}(Gf),c4=Rm(Xa.prototype,"rx",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),f4=Rm(Xa.prototype,"ry",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),Rm(Xa.prototype,"points",[a.m],Object.getOwnPropertyDescriptor(Xa.prototype,"points"),Xa.prototype),Rm(Xa.prototype,"pointsPosition",[a.m],Object.getOwnPropertyDescriptor(Xa.prototype,"pointsPosition"),Xa.prototype),Rm(Xa.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(Xa.prototype,"width"),Xa.prototype),Rm(Xa.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(Xa.prototype,"height"),Xa.prototype),Xa);function wT(f){return wT=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},wT(f)}function b4(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 _4(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?b4(Object(h),!0).forEach(function(g){w4(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):b4(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function O4(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 ST(){return ST=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}},ST.apply(this,arguments)}function dee(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Im(f))!==null;);return f}function xT(f,c){return xT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},xT(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=Im(f);if(c){var O=Im(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return pee(this,h)}}function pee(f,c){if(c&&(wT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nm(f)}function Nm(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 w4(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function mS(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 au,S4,kT=(Vc=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&&xT(_,x)})(O,f);var c,h,g=hee(O);function O(){var _;cee(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return w4(Nm(_=g.call.apply(g,[this].concat(M))),"modelType",xr.ELLIPSE_NODE),O4(Nm(_),"rx",m4,Nm(_)),O4(Nm(_),"ry",y4,Nm(_)),_}return c=O,(h=[{key:"getNodeStyle",value:function(){var _=ST(Im(O.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.ellipse;return _4(_4({},_),Eo(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,L=this.ry;return[{x:_,y:x-L,id:"".concat(this.id,"_0")},{x:_+M,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+L,id:"".concat(this.id,"_2")},{x:_-M,y:x,id:"".concat(this.id,"_3")}]}}])&&fee(c.prototype,h),O}(Gf),m4=mS(Vc.prototype,"rx",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),y4=mS(Vc.prototype,"ry",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),mS(Vc.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(Vc.prototype,"width"),Vc.prototype),mS(Vc.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(Vc.prototype,"height"),Vc.prototype),Vc);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 ET(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return x4(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 x4(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function x4(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 k4(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 C4(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?k4(Object(h),!0).forEach(function(g){E4(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):k4(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 TT(){return TT=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}},TT.apply(this,arguments)}function yee(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Dm(f))!==null;);return f}function PT(f,c){return PT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},PT(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=Dm(f);if(c){var O=Dm(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return _ee(this,h)}}function _ee(f,c){if(c&&(CT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yS(f)}function yS(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 E4(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function bS(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 $T,T4,AT=(au=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&&PT(_,x)})(O,f);var c,h,g=bee(O);function O(){var _;vee(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return E4(yS(_=g.call.apply(g,[this].concat(M))),"modelType",xr.POLYGON_NODE),gee(yS(_),"points",S4,yS(_)),_}return c=O,(h=[{key:"getNodeStyle",value:function(){var _=TT(Dm(O.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.polygon;return C4(C4({},_),Eo(x))}},{key:"pointsPosition",get:function(){var _=this.x,x=this.y,M=this.width,L=this.height;return this.points.map(function(U){return{x:U[0]+_-M/2,y:U[1]+x-L/2}})}},{key:"width",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var L=ET(M,1)[0];L<_&&(_=L),L>x&&(x=L)}),x-_}},{key:"height",get:function(){var _=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(M){var L=ET(M,2)[1];L<_&&(_=L),L>x&&(x=L)}),x-_}},{key:"getDefaultAnchor",value:function(){var _=this,x=this.x,M=this.y,L=this.width,U=this.height;return this.points.map(function(ne,de){var we=ET(ne,2),De=we[0],Ke=we[1];return{x:x+De-L/2,y:M+Ke-U/2,id:"".concat(_.id,"_").concat(de)}})}}])&&mee(c.prototype,h),O}(Gf),S4=bS(au.prototype,"points",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),bS(au.prototype,"pointsPosition",[a.m],Object.getOwnPropertyDescriptor(au.prototype,"pointsPosition"),au.prototype),bS(au.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(au.prototype,"width"),au.prototype),bS(au.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(au.prototype,"height"),au.prototype),au);function MT(f){return MT=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},MT(f)}function P4(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 $4(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?P4(Object(h),!0).forEach(function(g){A4(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):P4(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 RT(){return RT=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}},RT.apply(this,arguments)}function xee(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=jm(f))!==null;);return f}function NT(f,c){return NT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},NT(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=jm(f);if(c){var O=jm(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Cee(this,h)}}function Cee(f,c){if(c&&(MT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _S(f)}function _S(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 A4(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var dh,IT=($T=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=kee(O);function O(){var _;wee(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return A4(_S(_=g.call.apply(g,[this].concat(M))),"modelType",xr.RECT_NODE),Oee(_S(_),"radius",T4,_S(_)),_}return c=O,(h=[{key:"getDefaultAnchor",value:function(){var _=this.x,x=this.y,M=this.width,L=this.height;return[{x:_,y:x-L/2,id:"".concat(this.id,"_0")},{x:_+M/2,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+L/2,id:"".concat(this.id,"_2")},{x:_-M/2,y:x,id:"".concat(this.id,"_3")}]}},{key:"getNodeStyle",value:function(){var _=RT(jm(O.prototype),"getNodeStyle",this).call(this),x=this.graphModel.theme.rect;return $4($4({},_),Eo(x))}}])&&See(c.prototype,h),O}(Gf),T4=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),_}($T.prototype,"radius",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),$T);function DT(f){return DT=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},DT(f)}function M4(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 R4(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?M4(Object(h),!0).forEach(function(g){I4(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):M4(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 jT(){return jT=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}},jT.apply(this,arguments)}function Pee(f,c){for(;!Object.prototype.hasOwnProperty.call(f,c)&&(f=Lm(f))!==null;);return f}function LT(f,c){return LT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},LT(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=Lm(f);if(c){var O=Lm(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Aee(this,h)}}function Aee(f,c){if(c&&(DT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N4(f)}function N4(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Lm(f){return Lm=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Lm(f)}function I4(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function D4(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 BT=(dh=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&<(_,x)})(O,f);var c,h,g=$ee(O);function O(){var _;Eee(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return I4(N4(_=g.call.apply(g,[this].concat(M))),"modelType",xr.TEXT_NODE),_}return c=O,(h=[{key:"getTextStyle",value:function(){var _=jT(Lm(O.prototype),"getTextStyle",this).call(this),x=this.graphModel.theme.text;return R4(R4({},_),Eo(x))}},{key:"width",get:function(){var _=String(this.text.value).split(/[\r\n]/g),x=this.getTextStyle().fontSize;return gb({rows:_,fontSize:x,rowsLength:_.length}).width}},{key:"height",get:function(){var _=String(this.text.value).split(/[\r\n]/g),x=this.getTextStyle().fontSize;return gb({rows:_,fontSize:x,rowsLength:_.length}).height}}])&&Tee(c.prototype,h),O}(Gf),D4(dh.prototype,"width",[a.m],Object.getOwnPropertyDescriptor(dh.prototype,"width"),dh.prototype),D4(dh.prototype,"height",[a.m],Object.getOwnPropertyDescriptor(dh.prototype,"height"),dh.prototype),dh);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 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 FT(f,c){return FT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},FT(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=OS(f);if(c){var O=OS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Iee(this,h)}}function Iee(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 j4(f)}function j4(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 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 ec,L4,B4,V4,zT=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&&FT(_,x)})(O,f);var c,h,g=Nee(O);function O(){var _;Mee(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return Dee(j4(_=g.call.apply(g,[this].concat(M))),"modelType",xr.HTML_NODE),_}return c=O,(h=[{key:"getDefaultAnchor",value:function(){var _=this.x,x=this.y,M=this.width,L=this.height;return[{x:_,y:x-L/2,id:"".concat(this.id,"_0")},{x:_+M/2,y:x,id:"".concat(this.id,"_1")},{x:_,y:x+L/2,id:"".concat(this.id,"_2")},{x:_-M/2,y:x,id:"".concat(this.id,"_3")}]}}])&&Ree(c.prototype,h),O}(Gf);function F4(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 QT(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 z4(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function t_(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 Q4=(ec=function(){function f(g){(function(O,_){if(!(O instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),z4(this,"graphModel",void 0),QT(this,"isShowHorizontal",L4,this),QT(this,"isShowVertical",B4,this),QT(this,"position",V4,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?F4(Object(_),!0).forEach(function(x){z4(g,x,_[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(_)):F4(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,L=!1,U=0;U<O.length;U++){var ne=O[U];if(ne.id!==g.id&&(_===ne.x&&(M=!0),x===ne.y&&(L=!0),M&&L))break}return{isShowVertical:M,isShowHorizontal:L,position:{x:_,y:x}}}},{key:"getHorizontalSnapline",value:function(g,O){var _,x,M=!1,L=g.id;if(L){var U=this.graphModel.fakerNode;if(U&&U.id===L)x=gs(U);else{var ne=this.graphModel.getNodeModelById(L);x=gs(ne)}}for(var de=0;de<O.length;de++){var we=O[de];if(we.id!==g.id){var De=gs(we);if(De.minY===x.minY||De.maxY===x.minY){M=!0,_=x.minY;break}if(De.minY===x.maxY||De.maxY===x.maxY){M=!0,_=x.maxY;break}}}return xi({isShowHorizontal:M,position:{y:_}})}},{key:"getVerticalSnapline",value:function(g,O){var _,x,M=!1,L=g.id;if(L){var U=this.graphModel.fakerNode;if(U&&U.id===L)x=gs(U);else{var ne=this.graphModel.getNodeModelById(L);x=gs(ne)}}for(var de=0;de<O.length;de++){var we=O[de];if(we.id!==g.id){var De=gs(we);if(De.minX===x.minX||De.maxX===x.minX){M=!0,_=x.minX;break}if(De.minX===x.maxX||De.maxX===x.maxX){M=!0,_=x.maxX;break}}}return xi({isShowVertical:M,position:{x:_}})}},{key:"getSnapLinePosition",value:function(g,O){var _=this.getCenterSnapLine(g,O),x=_.isShowHorizontal,M=_.isShowVertical;if(!x){var L=this.getHorizontalSnapline(g,O);L.isShowHorizontal&&(_.isShowHorizontal=L.isShowHorizontal,_.position.y=L.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}(),L4=t_(ec.prototype,"isShowHorizontal",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B4=t_(ec.prototype,"isShowVertical",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V4=t_(ec.prototype,"position",[a.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),t_(ec.prototype,"clearSnapline",[a.k],Object.getOwnPropertyDescriptor(ec.prototype,"clearSnapline"),ec.prototype),t_(ec.prototype,"setNodeSnapLine",[a.k],Object.getOwnPropertyDescriptor(ec.prototype,"setNodeSnapLine"),ec.prototype),ec),n_=new Map,W4=function(f){var c=gl(),h=window.requestAnimationFrame(function g(){if(f(),n_.get(c)){var O=window.requestAnimationFrame(g);n_.set(c,O)}});return n_.set(c,h),c},wS=function(f){var c=n_.get(f);c&&(window.cancelAnimationFrame(c),n_.delete(f))};function WT(f){return WT=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},WT(f)}function r_(){return r_=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},r_.apply(this,arguments)}function Y4(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 o_(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?Y4(Object(h),!0).forEach(function(g){zc(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):Y4(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return Z4(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 Z4(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Z4(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 YT(f,c){return YT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},YT(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=SS(f);if(c){var O=SS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Fee(this,h)}}function Fee(f,c){if(c&&(WT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fc(f)}function Fc(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 zc(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&&YT(_,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),zc(Fc(_=g.call(this)),"preTargetNode",void 0),zc(Fc(_),"sourceRuleResults",void 0),zc(Fc(_),"targetRuleResults",void 0),zc(Fc(_),"dragHandler",void 0),zc(Fc(_),"t",void 0),zc(Fc(_),"onDragStart",function(x){var M=x.event,L=_.props,U=L.anchorData,ne=L.nodeModel,de=L.graphModel;de.overlapMode,de.selectNodeById(ne.id),ne.autoToFront&&de.toFront(ne.id),de.eventCenter.emit($n.ANCHOR_DRAGSTART,{data:U,e:M,nodeModel:ne}),_.setState({startX:U.x,startY:U.y,endX:U.x,endY:U.y})}),zc(Fc(_),"onDragging",function(x){var M=x.event,L=_.props,U=L.graphModel,ne=L.nodeModel,de=L.anchorData,we=U.transformModel,De=U.eventCenter,Ke=U.width,tt=U.height,dt=U.editConfigModel,ht=dt.autoExpand,yt=dt.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,Pr=gn.x,Nr=gn.y;_.t&&wS(_.t);var Jn=[];an<10?Jn=[10,0]:an+10>Ke?Jn=[-10,0]:An<10?Jn=[0,10]:An+10>tt&&(Jn=[0,-10]),_.setState({endX:Pr,endY:Nr,dragging:!0}),_.moveAnchorEnd(Pr,Nr),Jn.length>0&&!yt&&ht&&(_.t=W4(function(){var Wr=Lee(Jn,2),li=Wr[0],ui=Wr[1];we.translate(li,ui);var Pa=_.state,Ol=Pa.endX,wl=Pa.endY;_.setState({endX:Ol-li,endY:wl-ui}),_.moveAnchorEnd(Ol-li,wl-ui)})),De.emit($n.ANCHOR_DRAG,{data:de,e:M,nodeModel:ne})}),zc(Fc(_),"onDragEnd",function(x){var M=x.event;_.t&&wS(_.t);var L=_.checkEnd(M);_.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),_.sourceRuleResults.clear(),_.targetRuleResults.clear();var U=_.props,ne=U.graphModel,de=U.nodeModel,we=U.anchorData;ne.eventCenter.emit($n.ANCHOR_DRAGEND,{data:we,e:M,nodeModel:de,edgeModel:L})}),zc(Fc(_),"checkEnd",function(x){var M=_.props,L=M.graphModel,U=M.nodeModel,ne=M.anchorData,de=ne.x,we=ne.y,De=ne.id,Ke=(L.edgeType,_.state),tt=Ke.endX,dt=Ke.endY,ht=Ke.dragging,yt=Bf({x:tt,y:dt},L);if(_.preTargetNode&&_.preTargetNode.state!==Kr.DEFAULT&&_.preTargetNode.setElementState(Kr.DEFAULT),ht&&yt&&yt.node){var Rt=yt.node,on=yt.anchor.id,dn="".concat(U.id,"_").concat(Rt.id,"_").concat(on,"_").concat(De),zn=_.sourceRuleResults.get(dn)||{},an=zn.isAllPass,An=zn.msg,gn=_.targetRuleResults.get(dn)||{},Pr=gn.isAllPass,Nr=gn.msg;if(an&&Pr){Rt.setElementState(Kr.DEFAULT);var Jn=L.edgeGenerator(U.getData(),L.getNodeModelById(yt.node.id).getData()),Wr=L.addEdge(o_(o_({},Jn),{},{sourceNodeId:U.id,sourceAnchorId:De,startPoint:{x:de,y:we},targetNodeId:yt.node.id,targetAnchorId:yt.anchor.id,endPoint:{x:yt.anchor.x,y:yt.anchor.y}})),li=_.props.anchorData;return L.eventCenter.emit($n.ANCHOR_DROP,{data:li,e:x,nodeModel:U,edgeModel:Wr}),Wr}var ui=Rt.getData();return L.eventCenter.emit($n.CONNECTION_NOT_ALLOWED,{data:ui,msg:Nr||An}),null}}),_.sourceRuleResults=new Map,_.targetRuleResults=new Map,_.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},_.dragHandler=new vl({onDragStart:_.onDragStart,onDragging:_.onDragging,onDragEnd:_.onDragEnd}),_}return c=O,(h=[{key:"getAnchorShape",value:function(){var _=this.props,x=_.anchorData,M=_.style,L=_.node.getAnchorShape(x);if(L)return L;var U=x.x,ne=x.y,de=o_(o_({},M),M.hover);return Object(Oe.g)("g",null,Object(Oe.g)(Pm,r_({className:"lf-node-anchor-hover"},de,{x:U,y:ne})),Object(Oe.g)(Pm,r_({className:"lf-node-anchor"},M,{x:U,y:ne})))}},{key:"customTrajectory",get:function(){return this.props.graphModel.customTrajectory}},{key:"moveAnchorEnd",value:function(_,x){var M=this.props,L=M.graphModel,U=M.nodeModel,ne=M.anchorData,de=Bf({x:_,y:x},L);if(de){var we=de.node,De=de.anchor.id;if(this.preTargetNode&&this.preTargetNode!==de.node&&this.preTargetNode.setElementState(Kr.DEFAULT),ne.id===De)return;this.preTargetNode=we;var Ke="".concat(U.id,"_").concat(we.id,"_").concat(De,"_").concat(ne.id);if(!this.targetRuleResults.has(Ke)){var tt=de.anchor,dt=U.isAllowConnectedAsSource(we,ne,tt),ht=we.isAllowConnectedAsTarget(U,ne,tt);this.sourceRuleResults.set(Ke,Jp(dt)),this.targetRuleResults.set(Ke,Jp(ht))}var yt=this.sourceRuleResults.get(Ke).isAllPass,Rt=this.targetRuleResults.get(Ke).isAllPass;yt&&Rt?we.setElementState(Kr.ALLOW_CONNECT):we.setElementState(Kr.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==Kr.DEFAULT&&this.preTargetNode.setElementState(Kr.DEFAULT)}},{key:"isShowLine",value:function(){var _=this.state,x=_.startX,M=_.startY,L=_.endX,U=_.endY;return pi(x,M,L,U)>10}},{key:"render",value:function(){var _=this,x=this.state,M=x.startX,L=x.startY,U=x.endX,ne=x.endY,de=this.props,we=de.anchorData.edgeAddable,De=de.edgeStyle;return Object(Oe.g)("g",{className:"lf-anchor"},Object(Oe.g)("g",{onMouseDown:function(Ke){we!==!1&&_.dragHandler.handleMouseDown(Ke)}},this.getAnchorShape()),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(o_({sourcePoint:{x:M,y:L},targetPoint:{x:U,y:ne}},De)):Object(Oe.g)(Em,r_({x1:M,y1:L,x2:U,y2:ne},De,{"pointer-events":"none"}))))}}])&&Bee(c.prototype,h),O}(Oe.a);function U4(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?U4(Object(h),!0).forEach(function(g){Wee(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):U4(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 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 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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return H4(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 H4(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function H4(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 X4(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,L=M===void 0?"currentColor":M,U=f.overflowMode,ne=U===void 0?"default":U,de=f.textWidth,we=de===void 0?"":de,De=f.model,Ke={textAnchor:"middle","dominant-baseline":"middle",x:h,y:O,fill:L};if(Object.entries(f).forEach(function(on){var dn=Yee(on,2),zn=dn[0],an=dn[1];ZT(an)!=="object"&&(Ke[zn]=an)}),_){var tt=String(_).split(/[\r\n]/g),dt=tt.length;if(ne!=="default"){var ht=De.BaseType,yt=De.modelType;if(ht===si.NODE&&yt!==xr.TEXT_NODE||ht===si.EDGE&&we)return function(on){var dn=on.value,zn=on.fontSize,an=on.model,An=on.fontFamily,gn=An===void 0?"":An,Pr=on.lineHeight,Nr=on.wrapPadding,Jn=Nr===void 0?"0, 0":Nr,Wr=on.overflowMode,li=on.x,ui=on.y,Pa=an.width,Ol=an.textHeight,wl=on.textWidth||Pa,Yc=String(dn).split(/[\r\n]/g),bg=Yc.length,HS=Rw({rows:Yc,style:{fontSize:"".concat(zn,"px"),width:"".concat(wl,"px"),fontFamily:gn,lineHeight:Pr,padding:Jn},rowsLength:bg,className:"lf-get-text-height"}),_g=an.height>HS?an.height:HS;Ol&&(_g=Ol);var gh=Wr==="ellipsis";return gh&&(_g=zn+2),Object(Oe.g)("g",null,Object(Oe.g)("foreignObject",{width:wl,height:_g,x:li-wl/2,y:ui-_g/2},Object(Oe.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:_g,width:wl,padding:Jn}},Object(Oe.g)("div",{className:gh?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:gh?Yc.join(""):"",style:Qee({},on)},Yc.map(function(vh){return Object(Oe.g)("div",{className:"lf-node-text--auto-wrap-inner"},vh)})))))}(f)}if(dt>1){var Rt=tt.map(function(on,dn){var zn=(dn-(dt-1)/2)*(x+2);return Object(Oe.g)("tspan",{className:"lf-text-tspan",x:h,y:O+zn},on)});return Object(Oe.g)("text",Ke,Rt)}return Object(Oe.g)("text",Ke,_)}}function UT(f){return UT=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},UT(f)}function HT(){return HT=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},HT.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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return G4(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 G4(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function G4(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 XT(f,c){return XT=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},XT(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=xS(f);if(c){var O=xS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Xee(this,h)}}function Xee(f,c){if(c&&(UT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hh(f)}function hh(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 gg(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var 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&&XT(_,x)})(O,f);var c,h,g=Hee(O);function O(_){var x;(function(L,U){if(!(L instanceof U))throw new TypeError("Cannot call a class as a function")})(this,O),gg(hh(x=g.call(this)),"dragHandler",void 0),gg(hh(x),"sumDeltaX",0),gg(hh(x),"sumDeltaY",0),gg(hh(x),"stepDrag",void 0),gg(hh(x),"onDragging",function(L){var U=L.deltaX,ne=L.deltaY,de=x.props,we=de.model,De=Zee(de.graphModel.transformModel.fixDeltaXY(U,ne),2),Ke=De[0],tt=De[1];we.moveText(Ke,tt)}),gg(hh(x),"dblClickHandler",function(){x.props.editable&&x.props.model.setElementState(Kr.TEXT_EDIT)}),gg(hh(x),"mouseDownHandle",function(L){var U=x.props,ne=U.draggable,de=U.model,we=U.graphModel.editConfigModel.nodeTextDraggable;(ne||we)&&(x.stepDrag.model=de,x.stepDrag.handleMouseDown(L))}),_.model;var M=_.draggable;return x.stepDrag=new vl({onDragging:x.onDragging,step:1,isStopPropagation:M}),x}return c=O,(h=[{key:"getShape",value:function(){var _=this.props,x=_.model,M=_.graphModel,L=x.text,U=M.editConfigModel,ne=L.value,de=L.x,we=L.y,De=L.editable,Ke=L.draggable,tt={x:de,y:we,className:"",value:ne};De?tt.className="lf-element-text":Ke||U.nodeTextDraggable?tt.className="lf-text-draggable":tt.className="lf-text-disabled";var dt=x.getTextStyle();return Object(Oe.g)(X4,HT({},tt,dt,{model:x}))}},{key:"render",value:function(){if(this.props.model.text)return Object(Oe.g)("g",{onMouseDown:this.mouseDownHandle,onDblClick:this.dblClickHandler},this.getShape())}}])&&Uee(c.prototype,h),O}(Oe.a),Gee=window.navigator.userAgent.match(/MSIE|Trident/)!==null,q4=o(130);function GT(f){return GT=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},GT(f)}function KT(){return KT=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},KT.apply(this,arguments)}function Kee(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 qee(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=kS(f);if(c){var O=kS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Jee(this,h)}}function Jee(f,c){if(c&&(GT(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 kS(f){return kS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},kS(f)}function i_(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=qee(O);function O(_){var x;return function(M,L){if(!(M instanceof L))throw new TypeError("Cannot call a class as a function")}(this,O),i_(Bm(x=g.call(this,_)),"style",{}),i_(Bm(x),"defaultAngle",void 0),i_(Bm(x),"normal",void 0),i_(Bm(x),"stepperDrag",void 0),i_(Bm(x),"onDragging",function(M){var L,U=M.event,ne=x.props,de=ne.graphModel,we=ne.nodeModel,De=ne.eventCenter,Ke=de.selectNodes,tt=we.x,dt=we.y,ht=U.clientX,yt=U.clientY,Rt=de.getPointByClient({x:ht,y:yt}).canvasOverlayPosition,on=Rt.x,dn=Rt.y,zn=new Li(on-tt,dn-dt),an=((L=x.normal)===null||L===void 0?void 0:L.angle(zn))-x.defaultAngle,An=new Hi(-tt,-dt).rotate(an).translate(tt,dt).toString();we.transform=An,we.rotate=an;var gn=Object(q4.map)(Ke,function(Nr){return Nr.id});gn.indexOf(we.id)===-1&&(gn=[we.id]);var Pr=Object(q4.reduce)(gn,function(Nr,Jn){var Wr=de.getNodeModelById(Jn);return Nr[Jn]=Wr==null?void 0:Wr.getMoveDistance(0,0,!1),Nr},{});gn.forEach(function(Nr){de.getNodeEdges(Nr).forEach(function(Jn){if(Pr[Jn.sourceNodeId]){var Wr=de.getNodeModelById(Jn.sourceNodeId).anchors.find(function(ui){return ui.id===Jn.sourceAnchorId});Jn.updateStartPoint(Wr)}if(Pr[Jn.targetNodeId]){var li=de.getNodeModelById(Jn.targetNodeId).anchors.find(function(ui){return ui.id===Jn.targetAnchorId});Jn.updateEndPoint(li)}})}),De.emit($n.NODE_ROTATE,{e:U,nodeModel:we})}),x.style=_.style,x.stepperDrag=new vl({onDragging:x.onDragging}),x}return c=O,(h=[{key:"render",value:function(){var _=this,x=this.props.nodeModel,M=x.x,L=x.y,U=M+x.width/2+20,ne=L-x.height/2-20;return this.normal=new Li(1,0),this.defaultAngle=this.normal.angle(new Li(U-M,ne-L)),x.defaultAngle=this.defaultAngle,Object(Oe.g)("g",{className:"lf-rotate-control"},Object(Oe.g)("g",{onMouseDown:function(de){_.stepperDrag.handleMouseDown(de)}},Object(Oe.g)(Pm,KT({},this.style,{cx:U,cy:ne}))))}}])&&Kee(c.prototype,h),O}(Oe.a);function JT(f){return JT=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},JT(f)}var tte=["className"];function CS(){return CS=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},CS.apply(this,arguments)}function nte(f,c){if(f==null)return{};var h,g,O=function(x,M){if(x==null)return{};var L,U,ne={},de=Object.keys(x);for(U=0;U<de.length;U++)L=de[U],M.indexOf(L)>=0||(ne[L]=x[L]);return ne}(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 ES(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return J4(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 J4(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function J4(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,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 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=TS(f);if(c){var O=TS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return ote(this,h)}}function ote(f,c){if(c&&(JT(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ta(f)}function Ta(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 Ga(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var Kf=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&&eP(x,M)})(_,f);var c,h,g,O=rte(_);function _(x){var M;(function(we,De){if(!(we instanceof De))throw new TypeError("Cannot call a class as a function")})(this,_),Ga(Ta(M=O.call(this)),"t",void 0),Ga(Ta(M),"moveOffset",void 0),Ga(Ta(M),"stepDrag",void 0),Ga(Ta(M),"contextMenuTime",void 0),Ga(Ta(M),"startTime",void 0),Ga(Ta(M),"clickTimer",void 0),Ga(Ta(M),"modelDisposer",void 0),Ga(Ta(M),"onDragStart",function(we){var De=we.event,Ke=De.clientX,tt=De.clientY,dt=M.props,ht=dt.model,yt=dt.graphModel.getPointByClient({x:Ke,y:tt}).canvasOverlayPosition,Rt=yt.x,on=yt.y;M.moveOffset={x:ht.x-Rt,y:ht.y-on}}),Ga(Ta(M),"onDragging",function(we){var De=we.event,Ke=M.props,tt=Ke.model,dt=Ke.graphModel,ht=dt.editConfigModel,yt=ht.stopMoveGraph,Rt=ht.autoExpand,on=dt.transformModel,dn=dt.selectNodes,zn=dt.width,an=dt.height,An=dt.gridSize;tt.isDragging=!0;var gn=De.clientX,Pr=De.clientY,Nr=dt.getPointByClient({x:gn,y:Pr}).canvasOverlayPosition,Jn=Nr.x,Wr=Nr.y,li=ES(on.CanvasPointToHtmlPoint([Jn,Wr]),2),ui=li[0],Pa=li[1];if(Jn+=M.moveOffset.x,Wr+=M.moveOffset.y,Jn=tu(Jn,An),Wr=tu(Wr,An),zn&&an){if(!Rt||yt||!(ui<0||Pa<0||ui>zn||Pa>an)){var Ol=ES(on.CanvasPointToHtmlPoint([Jn-tt.width/2,Wr-tt.height/2]),2),wl=Ol[0],Yc=Ol[1],bg=ES(on.CanvasPointToHtmlPoint([Jn+tt.width/2,Wr+tt.height/2]),2),HS=bg[0],_g=bg[1],gh=Math.max(An,20),vh=[];wl<0?vh=[gh,0]:HS>dt.width?vh=[-gh,0]:Yc<0?vh=[0,gh]:_g>dt.height&&(vh=[0,-gh]),M.t&&wS(M.t);var Xne=new Hi(-Jn,-Wr).rotate(tt.rotate).translate(Jn,Wr).toString();tt.transform=Xne;var XS=dn.map(function(GS){return GS.id});XS.indexOf(tt.id)===-1&&(XS=[tt.id]),vh.length>0&&!yt&&Rt?M.t=W4(function(){var GS=ES(vh,2),I8=GS[0],D8=GS[1];on.translate(I8,D8);var Gne=-I8/on.SCALE_X,Kne=-D8/on.SCALE_X;dt.moveNodes(XS,Gne,Kne)}):dt.moveNodes(XS,Jn-tt.x,Wr-tt.y)}}else dt.moveNode2Coordinate(tt.id,Jn,Wr)}),Ga(Ta(M),"onDragEnd",function(){M.t&&wS(M.t),M.props.model.isDragging=!1}),Ga(Ta(M),"handleClick",function(we){if(M.startTime&&!(new Date().getTime()-M.startTime>200)){var De=M.props,Ke=De.model,tt=De.graphModel,dt={data:Ke.getData(),e:we,position:tt.getPointByClient({x:we.clientX,y:we.clientY}),isSelected:!1,isMultiple:!1},ht=we.button===2,yt=we.detail===2;if(!ht){var Rt=tt.editConfigModel,on=nu(we,Rt);dt.isMultiple=on,Ke.isSelected&&!yt&&on?(dt.isSelected=!1,Ke.setSelected(!1)):(tt.selectNodeById(Ke.id,on),dt.isSelected=!0,M.toFront()),yt?(Rt.nodeTextEdit&&Ke.text.editable&&(Ke.setSelected(!1),tt.setElementStateById(Ke.id,Kr.TEXT_EDIT)),tt.eventCenter.emit($n.NODE_DBCLICK,dt)):(tt.eventCenter.emit($n.ELEMENT_CLICK,dt),tt.eventCenter.emit($n.NODE_CLICK,dt))}}}),Ga(Ta(M),"handleContextMenu",function(we){we.preventDefault();var De=M.props,Ke=De.model,tt=De.graphModel,dt=Ke.getData(),ht=tt.getPointByClient({x:we.clientX,y:we.clientY});tt.setElementStateById(Ke.id,Kr.SHOW_MENU,ht.domOverlayPosition),Ke.isSelected||tt.selectNodeById(Ke.id),tt.eventCenter.emit($n.NODE_CONTEXTMENU,{data:dt,e:we,position:ht}),M.toFront()}),Ga(Ta(M),"handleMouseDown",function(we){var De=M.props,Ke=De.model,tt=De.graphModel;M.startTime=new Date().getTime(),tt.editConfigModel.adjustNodePosition&&Ke.draggable&&M.stepDrag&&M.stepDrag.handleMouseDown(we)}),Ga(Ta(M),"setHoverON",function(we){var De=M.props,Ke=De.model,tt=De.graphModel;if(!Ke.isHovered){var dt=Ke.getData();Ke.setHovered(!0),tt.eventCenter.emit($n.NODE_MOUSEENTER,{data:dt,e:we})}}),Ga(Ta(M),"setHoverOFF",function(we){var De=M.props,Ke=De.model,tt=De.graphModel,dt=Ke.getData();Ke.isHovered&&(Ke.setHovered(!1),tt.eventCenter.emit($n.NODE_MOUSELEAVE,{data:dt,e:we}))}),Ga(Ta(M),"onMouseOut",function(we){Gee&&M.setHoverOFF(we)});var L=x.graphModel,U=L.gridSize,ne=L.eventCenter,de=x.model;return M.stepDrag=new vl({onDragStart:M.onDragStart,onDragging:M.onDragging,onDragEnd:M.onDragEnd,step:U,eventType:"NODE",isStopPropagation:!1,eventCenter:ne,model:de}),M.modelDisposer=Object(a.F)(function(){return M.props},function(we){we&&we.model&&M.stepDrag.setModel(we.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,L=M.model,U=M.graphModel,ne=L.isSelected,de=L.isHitable,we=L.isDragging,De=L.isShowAnchor;return de&&(ne||De)&&!we?Lv(L.anchors,function(Ke,tt){var dt=L.getAnchorLineStyle(Ke),ht=L.getAnchorStyle(Ke);return Object(Oe.g)(zee,{anchorData:Ke,node:x,style:ht,edgeStyle:dt,anchorIndex:tt,nodeModel:L,graphModel:U,setHoverOFF:x.setHoverOFF})}):[]}},{key:"getRotateControl",value:function(){var x=this.props,M=x.model,L=x.graphModel,U=M.isSelected,ne=M.isHitable,de=M.enableRotate,we=M.isHovered,De=M.getRotateControlStyle().style;if(ne&&(U||we)&&de)return Object(Oe.g)(ete,{graphModel:L,nodeModel:M,eventCenter:L.eventCenter,style:De})}},{key:"getText",value:function(){var x=this.props,M=x.model,L=x.graphModel;if(M.state===Kr.TEXT_EDIT)return"";if(M.text){var U=L.editConfigModel,ne=!1;return(M.text.draggable||U.nodeTextDraggable)&&(ne=!0),Object(Oe.g)(K4,{editable:U.nodeTextEdit&&M.text.editable,model:M,graphModel:L,draggable:ne})}}},{key:"getStateClassName",value:function(){var x=this.props.model,M=x.state,L=x.isDragging,U=x.isSelected,ne="lf-node";switch(M){case Kr.ALLOW_CONNECT:ne+=" lf-node-allow";break;case Kr.NOT_ALLOW_CONNECT:ne+=" lf-node-not-allow";break;default:ne+=" lf-node-default"}return L&&(ne+=" lf-isDragging"),U&&(ne+=" lf-node-selected"),ne}},{key:"toFront",value:function(){var x=this.props,M=x.model,L=x.graphModel;M.autoToFront&&L.toFront(M.id)}},{key:"render",value:function(){var x,M=this.props,L=M.model,U=M.graphModel,ne=U.editConfigModel,de=ne.hideAnchors,we=ne.adjustNodePosition,De=ne.allowRotation,Ke=U.gridSize,tt=U.transformModel.SCALE_X,dt=L.isHitable,ht=L.draggable,yt=L.transform,Rt=L.getOuterGAttributes(),on=Rt.className,dn=on===void 0?"":on,zn=nte(Rt,tte),an=Object(Oe.g)("g",{className:"lf-node-content"},Object(Oe.g)("g",{transform:yt},this.getShape(),this.getText(),De&&this.getRotateControl()),!de&&this.getAnchors());return dt?(we&&ht&&this.stepDrag.setStep(Ke*tt),x=Object(Oe.g)("g",CS({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(Oe.g)("g",CS({className:"".concat(this.getStateClassName()," ").concat(dn)},zn),an),x}}])&&e8(c.prototype,h),g&&e8(c,g),_}(Oe.a);function tP(f){return tP=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},tP(f)}function nP(){return nP=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},nP.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 rP(f,c){return rP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},rP(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=PS(f);if(c){var O=PS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return lte(this,h)}}function lte(f,c){if(c&&(tP(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 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&&rP(_,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(Oe.g)(ch,nP({},x,{x:_.x,y:_.y,width:_.width,height:_.height,radius:_.radius}))}}])&&ate(c.prototype,h),O}(Kf);function iP(f){return iP=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},iP(f)}function aP(){return aP=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},aP.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 sP(f,c){return sP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},sP(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=$S(f);if(c){var O=$S(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return dte(this,h)}}function dte(f,c){if(c&&(iP(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 lP=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=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,L=_.r,U=_.getNodeStyle();return Object(Oe.g)(Pm,aP({},U,{x,y:M,r:L}))}}])&&cte(c.prototype,h),O}(Kf);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 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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||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.
- 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 n8(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];uP(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(Oe.g)("polygon",g)}function cP(f){return cP=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},cP(f)}function fP(){return fP=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},fP.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 dP(f,c){return dP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},dP(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=AS(f);if(c){var O=AS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return mte(this,h)}}function mte(f,c){if(c&&(cP(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 hP=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&&dP(_,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,L=_.width,U=_.height,ne=_.points,de=_.getNodeStyle(),we={transform:"matrix(1 0 0 1 ".concat(x-L/2," ").concat(M-U/2,")")};return Object(Oe.g)("g",we,Object(Oe.g)(n8,fP({},de,{points:ne,x,y:M})))}}])&>e(c.prototype,h),O}(Kf);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 gP(){return gP=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},gP.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 vP(f,c){return vP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},vP(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=MS(f);if(c){var O=MS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Ote(this,h)}}function Ote(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 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 mP=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&&vP(_,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(Oe.g)("g",null,Object(Oe.g)(n8,gP({},x,{points:_.points,x:_.x,y:_.y})))}}])&&bte(c.prototype,h),O}(Kf);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 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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return r8(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 r8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function r8(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,L=M===void 0?4:M,U=f.className,ne={cx:h,cy:O,rx:x,ry:L,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(f).forEach(function(de){var we=wte(de,2),De=we[0],Ke=we[1];yP(Ke)!=="object"&&(ne[De]=Ke)}),ne.className=U?"lf-basic-shape ".concat(U):"lf-basic-shape",Object(Oe.g)("ellipse",ne)}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 _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 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 OP(f,c){return OP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},OP(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=RS(f);if(c){var O=RS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Ete(this,h)}}function Ete(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 RS(f){return RS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},RS(f)}var wP=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&&OP(_,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(Oe.g)(Ste,_P({},x,{x:_.x,y:_.y,rx:_.rx,ry:_.ry}))}}])&&kte(c.prototype,h),O}(Kf);function SP(f){return SP=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},SP(f)}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 i8(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){Tte(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 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 xP(f,c){return xP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},xP(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=NS(f);if(c){var O=NS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Mte(this,h)}}function Mte(f,c){if(c&&(SP(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 kP=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&&xP(_,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,L=_.height,U=_.x,ne=_.y,de=i8(i8({},x.background),{},{x:U,y:ne-1,width:M,height:L});return Object(Oe.g)(ch,de)}},{key:"getShape",value:function(){return Object(Oe.g)("g",null,this.getBackground())}}])&&$te(c.prototype,h),O}(Kf);function CP(f){return CP=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},CP(f)}function EP(){return EP=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},EP.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 TP(f,c){return TP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},TP(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=IS(f);if(c){var O=IS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Dte(this,h)}}function Dte(f,c){if(c&&(CP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a_(f)}function a_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function IS(f){return IS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},IS(f)}function DS(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var PP=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&&TP(_,x)})(O,f);var c,h,g=Ite(O);function O(){var _;Rte(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return DS(a_(_=g.call.apply(g,[this].concat(M))),"ref",void 0),DS(a_(_),"currentProperties",void 0),DS(a_(_),"preProperties",void 0),DS(a_(_),"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,L=_.height,U=_.width,ne=_.getNodeStyle();return this.currentProperties=JSON.stringify(_.properties),Object(Oe.g)("foreignObject",EP({},ne,{x:x-U/2,y:M-L/2,width:U,height:L,ref:this.setRef}))}}])&&Nte(c.prototype,h),O}(Kf);function $P(f){return $P=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},$P(f)}function AP(){return AP=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},AP.apply(this,arguments)}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 vg(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){NP(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 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 MP(f,c){return MP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},MP(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=jS(f);if(c){var O=jS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Bte(this,h)}}function Bte(f,c){if(c&&($P(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RP(f)}function RP(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 NP(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&&MP(_,x)})(O,f);var c,h,g=Lte(O);function O(_){var x;return function(M,L){if(!(M instanceof L))throw new TypeError("Cannot call a class as a function")}(this,O),NP(RP(x=g.call(this,_)),"setHoverON",function(){x.setState({isHovered:!0})}),NP(RP(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,L=_.width,U=x.background||{};if(this.state.isHovered&&x.hover&&x.hover.background&&(U=vg(vg({},U),x.hover.background)),M&&M.value&&U.fill!=="transparent"){var ne,de=x.fontSize,we=x.overflowMode,De=x.lineHeight,Ke=x.wrapPadding,tt=x.textWidth,dt=M.value,ht=M.x,yt=M.y,Rt=String(dt).split(/[\r\n]/g),on=Rt.length;if(we==="autoWrap"&&tt){var dn=Rw({rows:Rt,style:{fontSize:"".concat(de,"px"),width:"".concat(tt,"px"),lineHeight:De,padding:Ke},rowsLength:on,className:"lf-get-text-height"});ne=vg(vg({},U),{},{x:ht-1,y:yt-1,width:tt,height:dn})}else{Rt&&Rt.forEach(function(Pr){Lb(Pr)});var zn=gb({rows:Rt,fontSize:de,rowsLength:on}),an=zn.width,An=zn.height;if(we==="ellipsis"&&(an=tt||L,An=de+2),typeof U.wrapPadding=="string"){var gn=U.wrapPadding.split(",").filter(function(Pr){return Pr.trim()}).map(function(Pr){return parseFloat(Pr.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],ht+=(gn[1]-gn[3])/2,yt+=(gn[2]-gn[0])/2)}ne=vg(vg({},U),{},{x:ht-1,y:yt-1,width:an,height:An})}return Object(Oe.g)(ch,ne)}}},{key:"getShape",value:function(){var _=this.props.model,x=_.text,M=x.value,L=x.x,U=x.y;if(M){var ne=vg({x:L,y:U,className:"lf-element-text",value:M},_.getTextStyle());return Object(Oe.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackground(),Object(Oe.g)(X4,AP({},ne,{model:_})))}}}])&&jte(c.prototype,h),O}(K4);function IP(f){return IP=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},IP(f)}var Qc,Fte=["text","sourceAnchorId","targetAnchorId"];function s8(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?s8(Object(h),!0).forEach(function(g){_l(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):s8(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 L,U,ne={},de=Object.keys(x);for(U=0;U<de.length;U++)L=de[U],M.indexOf(L)>=0||(ne[L]=x[L]);return ne}(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||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.
- 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 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 DP(f,c){return DP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},DP(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=LS(f);if(c){var O=LS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Zte(this,h)}}function Zte(f,c){if(c&&(IP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bl(f)}function bl(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 _l(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"})(Qc||(Qc={}));var u8=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&&DP(_,x)})(O,f);var c,h,g=Yte(O);function O(_){var x;(function(ne,de){if(!(ne instanceof de))throw new TypeError("Cannot call a class as a function")})(this,O),_l(bl(x=g.call(this)),"stepDragData",void 0),_l(bl(x),"stepDrag",void 0),_l(bl(x),"oldEdge",void 0),_l(bl(x),"preTargetNode",void 0),_l(bl(x),"targetRuleResults",void 0),_l(bl(x),"sourceRuleResults",void 0),_l(bl(x),"handleMouseDown",function(ne){x.stepDrag&&x.stepDrag.handleMouseDown(ne)}),_l(bl(x),"onDragStart",function(){var ne=x.props,de=ne.x,we=ne.y,De=ne.edgeModel,Ke=De.startPoint,tt=De.endPoint,dt=De.pointsList;x.oldEdge={startPoint:Ke,endPoint:tt,pointsList:dt},x.setState({endX:de,endY:we,dragging:!0})}),_l(bl(x),"onDragging",function(ne){var de=ne.deltaX,we=ne.deltaY,De=x.state,Ke=De.endX,tt=De.endY,dt=x.props,ht=dt.graphModel,yt=dt.type,Rt=ht.transformModel,on=ht.editConfigModel,dn=Qte(Rt.moveCanvasPointByHtml([Ke,tt],de,we),2),zn=dn[0],an=dn[1];x.setState({endX:zn,endY:an,dragging:!0});var An=x.props.edgeModel,gn=Bf({x:Ke,y:tt},ht);if(gn&&gn.node&&x.isAllowAdjust(gn).pass){var Pr,Nr=An.startPoint,Jn=An.endPoint,Wr=An.sourceNode,li=An.targetNode;yt===Qc.SOURCE?Pr={startPoint:{x:gn.anchor.x,y:gn.anchor.y},endPoint:{x:Jn.x,y:Jn.y},sourceNode:gn.node,targetNode:li}:yt===Qc.TARGET&&(Pr={startPoint:{x:Nr.x,y:Nr.y},endPoint:{x:gn.anchor.x,y:gn.anchor.y},sourceNode:Wr,targetNode:gn.node}),An.updateAfterAdjustStartAndEnd(Pr)}else yt===Qc.SOURCE?An.updateStartPoint({x:zn,y:an}):yt===Qc.TARGET&&An.updateEndPoint({x:zn,y:an});An.text.value&&on.adjustEdge&&An.setText(Object.assign({},An.text,An.textPosition))}),_l(bl(x),"onDragEnd",function(ne){var de=ne.event;try{var we;x.setState({dragging:!1});var De=x.props,Ke=De.graphModel,tt=De.edgeModel,dt=De.type,ht=x.state,yt=ht.endX,Rt=ht.endY,on=ht.dragging,dn=Bf({x:yt,y:Rt},Ke);if(!on)return;var zn,an=!1;if(dn&&dn.node){var An=x.isAllowAdjust(dn),gn=An.pass,Pr=An.msg,Nr=An.newTargetNode;if(gn){var Jn=tt.getData(),Wr=Jn.text,li=Jn.sourceAnchorId,ui=li===void 0?"":li,Pa=Jn.targetAnchorId;zn=qf(qf({sourceAnchorId:ui,targetAnchorId:Pa===void 0?"":Pa},zte(Jn,Fte)),{},{text:(Wr==null?void 0:Wr.value)||""}),dt===Qc.SOURCE?(zn=qf(qf({},Ke.edgeGenerator(Ke.getNodeModelById(dn.node.id).getData(),Ke.getNodeModelById(tt.targetNodeId).getData(),zn)),{},{sourceNodeId:dn.node.id,sourceAnchorId:dn.anchor.id,startPoint:{x:dn.anchor.x,y:dn.anchor.y},targetNodeId:tt.targetNodeId,endPoint:qf({},tt.endPoint)}),tt.sourceNodeId===dn.node.id&&tt.sourceAnchorId===dn.anchor.id&&(an=!0)):dt===Qc.TARGET&&(zn=qf(qf({},Ke.edgeGenerator(Ke.getNodeModelById(tt.sourceNodeId).getData(),Ke.getNodeModelById(dn.node.id).getData(),zn)),{},{sourceNodeId:tt.sourceNodeId,startPoint:qf({},tt.startPoint),targetNodeId:dn.node.id,targetAnchorId:dn.anchor.id,endPoint:{x:dn.anchor.x,y:dn.anchor.y}}),tt.targetNodeId===dn.node.id&&tt.targetAnchorId===dn.anchor.id&&(an=!0))}else{an=!0;var Ol=Nr.getData();Ke.eventCenter.emit($n.CONNECTION_NOT_ALLOWED,{data:Ol,msg:Pr})}}else an=!0;if(an)x.recoveryEdge();else{var wl=tt.getData();Ke.deleteEdgeById(tt.id);var Yc=Ke.addEdge(qf({},zn));Ke.eventCenter.emit($n.EDGE_EXCHANGE_NODE,{data:{newEdge:Yc.getData(),oldEdge:wl}})}(we=x.preTargetNode)===null||we===void 0||we.setElementState(Kr.DEFAULT)}finally{x.props.graphModel.eventCenter.emit($n.ADJUST_POINT_DRAGEND,{e:de,data:x.stepDragData})}}),_l(bl(x),"recoveryEdge",function(){var ne=x.props.edgeModel,de=x.oldEdge,we=de.startPoint,De=de.endPoint,Ke=de.pointsList;ne.updateStartPoint(we),ne.updateEndPoint(De),ne.modelType!==xr.LINE_EDGE&&(ne.pointsList=Ke,ne.initPoints())}),_l(bl(x),"getAdjustPointStyle",function(){var ne=x.props,de=ne.graphModel.theme;return ne.edgeModel,de.edgeAdjust}),x.state={dragging:!1,endX:0,endY:0},x.targetRuleResults=new Map,x.sourceRuleResults=new Map;var M=_.type,L=_.edgeModel,U=_.graphModel.eventCenter;return x.stepDragData={type:M,edgeData:L.getData()},x.stepDrag=new vl({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,L=M.id,U=M.sourceNode,ne=M.targetNode,de=M.sourceAnchorId,we=M.targetAnchorId,De=x.type,Ke=null,tt=null,dt=null,ht=null;if(De===Qc.SOURCE?(Ke=_.node,tt=ne,dt=_.anchor,ht=ne.getAnchorInfo(we)):(Ke=U,tt=_.node,ht=_.anchor,dt=U.getAnchorInfo(de)),this.preTargetNode&&this.preTargetNode!==_.node&&this.preTargetNode.setElementState(Kr.DEFAULT),this.preTargetNode=_.node,ht.id===dt.id)return{pass:!1,msg:"",newTargetNode:tt};var yt="".concat(Ke.id,"_").concat(tt.id,"_").concat(dt.id,"_").concat(ht.id);if(!this.targetRuleResults.has(yt)){var Rt=Ke.isAllowConnectedAsSource(tt,dt,ht,L),on=tt.isAllowConnectedAsTarget(Ke,dt,ht,L);this.sourceRuleResults.set(yt,Jp(Rt)),this.targetRuleResults.set(yt,Jp(on))}var dn=this.sourceRuleResults.get(yt),zn=dn.isAllPass,an=dn.msg,An=this.targetRuleResults.get(yt),gn=An.isAllPass,Pr=An.msg,Nr=zn&&gn?Kr.ALLOW_CONNECT:Kr.NOT_ALLOW_CONNECT;return De===Qc.SOURCE?Ke.setElementState(Nr):tt.setElementState(Nr),{pass:zn&&gn,msg:Pr||an,newTargetNode:tt}}},{key:"render",value:function(){var _=this.props,x=_.x,M=_.y,L=_.getAdjustPointShape,U=_.edgeModel,ne=this.state.dragging;return Object(Oe.g)("g",{pointerEvents:ne?"none":"",onMouseDown:this.handleMouseDown},ne?"":L(x,M,U))}}])&&Wte(c.prototype,h),O}(Oe.a);function jP(f){return jP=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},jP(f)}function s_(){return s_=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},s_.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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||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.
- 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}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 LP(f,c){return LP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},LP(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=BS(f);if(c){var O=BS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return Kte(this,h)}}function Kte(f,c){if(c&&(jP(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tc(f)}function tc(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function BS(f){return BS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},BS(f)}function Wc(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var l_=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&&LP(_,x)})(O,f);var c,h,g=Gte(O);function O(){var _;Hte(this,O);for(var x=arguments.length,M=new Array(x),L=0;L<x;L++)M[L]=arguments[L];return Wc(tc(_=g.call.apply(g,[this].concat(M))),"startTime",void 0),Wc(tc(_),"contextMenuTime",void 0),Wc(tc(_),"clickTimer",void 0),Wc(tc(_),"textRef",Object(Oe.f)()),Wc(tc(_),"handleHover",function(U,ne){var de=_.props,we=de.model,De=de.graphModel.eventCenter;we.setHovered(U);var Ke=U?$n.EDGE_MOUSEENTER:$n.EDGE_MOUSELEAVE,tt=we.getData();De.emit(Ke,{data:tt,e:ne})}),Wc(tc(_),"setHoverON",function(U){_.props.model.isHovered||(_.textRef&&_.textRef.current&&_.textRef.current.setHoverON(),_.handleHover(!0,U))}),Wc(tc(_),"setHoverOFF",function(U){_.props.model.isHovered&&(_.textRef&&_.textRef.current&&_.textRef.current.setHoverOFF(),_.handleHover(!1,U))}),Wc(tc(_),"handleContextMenu",function(U){U.preventDefault(),_.contextMenuTime=new Date().getTime(),_.clickTimer&&clearTimeout(_.clickTimer);var ne=_.props,de=ne.model,we=ne.graphModel,De=we.getPointByClient({x:U.clientX,y:U.clientY});we.setElementStateById(de.id,Kr.SHOW_MENU,De.domOverlayPosition),_.toFront(),de.isSelected||we.selectEdgeById(de.id);var Ke=de==null?void 0:de.getData();we.eventCenter.emit($n.EDGE_CONTEXTMENU,{data:Ke,e:U,position:De})}),Wc(tc(_),"handleMouseDown",function(U){U.stopPropagation(),_.startTime=new Date().getTime()}),Wc(tc(_),"handleMouseUp",function(U){if(_.startTime&&!(new Date().getTime()-_.startTime>200||U.button===2)){var ne=U.detail===2,de=_.props,we=de.model,De=de.graphModel,Ke=we==null?void 0:we.getData(),tt=De.getPointByClient({x:U.clientX,y:U.clientY});if(ne){var dt=De.editConfigModel,ht=De.textEditElement;if(ht&&ht.id===we.id&&De.setElementStateById(we.id,Kr.DEFAULT),dt.edgeTextEdit&&we.text.editable&&De.setElementStateById(we.id,Kr.TEXT_EDIT),we.modelType===xr.POLYLINE_EDGE){var yt=we,Rt=De.getPointByClient({x:U.x,y:U.y}).canvasOverlayPosition,on=Rt.x,dn=Rt.y,zn=Vb({x:on,y:dn},yt.points);yt.dbClickPosition=zn}De.eventCenter.emit($n.EDGE_DBCLICK,{data:Ke,e:U,position:tt})}else De.eventCenter.emit($n.ELEMENT_CLICK,{data:Ke,e:U,position:tt}),De.eventCenter.emit($n.EDGE_CLICK,{data:Ke,e:U,position:tt});var an=De.editConfigModel;De.selectEdgeById(we.id,nu(U,an)),_.toFront()}}),_}return c=O,(h=[{key:"getShape",value:function(){return Object(Oe.g)("g",null,this.getEdge())}},{key:"getTextStyle",value:function(){}},{key:"getText",value:function(){var _=this.props,x=_.model,M=_.graphModel;if(x.state===Kr.TEXT_EDIT)return null;var L=!1,U=M.editConfigModel;return(x.text.draggable||U.edgeTextDraggable)&&(L=!0),Object(Oe.g)(Vte,{ref:this.textRef,editable:U.edgeTextEdit&&x.text.editable,model:x,graphModel:M,draggable:L})}},{key:"getArrowInfo",value:function(){var _=this.props.model,x=_.startPoint,M=_.endPoint,L=_.isSelected;return{start:x,end:M,hover:this.state.hover,isSelected:L}}},{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(),L=M.refY,U=L===void 0?0:L,ne=M.refX,de=ne===void 0?2:ne,we=Ute(this.getLastTwoPoints(),2),De=we[0],Ke=we[1],tt="auto";return De!==null&&Ke!==null&&(tt=qo(Ca({x:Ke.x-De.x,y:Ke.y-De.y,z:0}))),Object(Oe.g)("g",null,Object(Oe.g)("defs",null,Object(Oe.g)("marker",{id:"marker-start-".concat(x),refX:-de,refY:U,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},this.getStartArrow()),Object(Oe.g)("marker",{id:"marker-end-".concat(x),refX:de,refY:U,overflow:"visible",orient:tt,markerUnits:"userSpaceOnUse"},this.getEndArrow())))}},{key:"getStartArrow",value:function(){var _=this.props.model.getArrowStyle();return _.stroke,_.strokeWidth,_.offset,_.verticalLength,Object(Oe.g)("path",null)}},{key:"getEndArrow",value:function(){var _=this.props.model.getArrowStyle(),x=_.stroke,M=_.strokeWidth,L=_.offset,U=_.verticalLength;return Object(Oe.g)("path",{stroke:x,fill:x,strokeWidth:M,transform:"rotate(180)",d:"M 0 0 L ".concat(L," -").concat(U," L ").concat(L," ").concat(U," Z")})}},{key:"getAdjustPointShape",value:function(_,x,M){var L=M.getAdjustPointStyle();return Object(Oe.g)(Pm,s_({className:"lf-edge-adjust-point"},L,{x:_,y:x}))}},{key:"getAdjustPoints",value:function(){var _=this.props,x=_.model,M=_.graphModel,L=x.getAdjustStart(),U=x.getAdjustEnd();return Object(Oe.g)("g",null,Object(Oe.g)(u8,s_({type:"SOURCE"},L,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:x,graphModel:M})),Object(Oe.g)(u8,s_({type:"TARGET"},U,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:x,graphModel:M})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(Oe.g)("g",null)}},{key:"getAppend",value:function(){return Object(Oe.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,L=x.isHitable,U=x.isShowAdjustPoint;return _.graphModel.animation,Object(Oe.g)("g",null,Object(Oe.g)("g",{className:["lf-edge",!L&&"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}(Oe.a);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 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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return f8(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 f8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function f8(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 u_=function(f){var c={d:""};return Object.entries(f).forEach(function(h){var g=qte(h,2),O=g[0],_=g[1],x=BP(_);O!=="style"&&x==="object"||(c[O]=_)}),Object(Oe.g)("path",c)};function VP(f){return VP=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},VP(f)}function FP(){return FP=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},FP.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 zP(f,c){return zP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},zP(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=VS(f);if(c){var O=VS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return nne(this,h)}}function nne(f,c){if(c&&(VP(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 VS(f){return VS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},VS(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&&zP(_,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,L=_.isAnimation,U=_.arrowConfig,ne=_.getEdgeStyle(),de=_.getEdgeAnimationStyle(),we=de.strokeDasharray,De=de.stroke,Ke=de.strokeDashoffset,tt=de.animationName,dt=de.animationDuration,ht=de.animationIterationCount,yt=de.animationTimingFunction,Rt=de.animationDirection;return Object(Oe.g)(Em,FP({},ne,{x1:x.x,y1:x.y,x2:M.x,y2:M.y},U,L?{strokeDasharray:we,stroke:De,style:{strokeDashoffset:Ke,animationName:tt,animationDuration:dt,animationIterationCount:ht,animationTimingFunction:yt,animationDirection:Rt}}:{}))}},{key:"getAppendWidth",value:function(){var _=this.props.model,x=_.startPoint,M=_.endPoint,L=Bb({start:x,end:M}),U=L.d,ne=L.strokeWidth,de=L.fill,we=L.strokeDasharray,De=L.stroke;return Object(Oe.g)(u_,{d:U,fill:de,strokeWidth:ne,stroke:De,strokeDasharray:we})}}])&&ene(c.prototype,h),O}(l_);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 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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||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.
- 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}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"||WP(_)!=="object")&&(c[O]=_)}),Object(Oe.g)("polyline",c)};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 h8(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 FS(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?h8(Object(h),!0).forEach(function(g){ed(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):h8(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function ZP(){return ZP=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},ZP.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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return p8(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 p8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function p8(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 UP(f,c){return UP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},UP(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=zS(f);if(c){var O=zS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return lne(this,h)}}function lne(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 Jf(f)}function Jf(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function zS(f){return zS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},zS(f)}function ed(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var HP=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&&UP(_,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),ed(Jf(_=g.call(this)),"drag",void 0),ed(Jf(_),"isDragging",void 0),ed(Jf(_),"isShowAdjustPointTemp",void 0),ed(Jf(_),"appendInfo",void 0),ed(Jf(_),"onDragStart",function(){var x=_.props.model;x.dragAppendStart(),_.isShowAdjustPointTemp=x.isShowAdjustPoint,x.isShowAdjustPoint=!1}),ed(Jf(_),"onDragging",function(x){var M=x.deltaX,L=x.deltaY,U=_.props,ne=U.model,de=U.graphModel;_.isDragging=!0;var we=de.transformModel,De=de.editConfigModel,Ke=ine(we.fixDeltaXY(M,L),2),tt=Ke[0],dt=Ke[1],ht=ne,yt=De.adjustEdgeMiddle;_.appendInfo=yt?ht.dragAppendSimple(_.appendInfo,{x:tt,y:dt}):ht.dragAppend(_.appendInfo,{x:tt,y:dt})}),ed(Jf(_),"onDragEnd",function(){var x=_.props,M=x.model,L=x.graphModel.eventCenter,U=M;U.dragAppendEnd(),_.isDragging=!1,U.isShowAdjustPoint=_.isShowAdjustPointTemp,_.appendInfo=void 0,L.emit($n.EDGE_ADJUST,{data:U.getData()})}),ed(Jf(_),"beforeDragStart",function(x,M){M.dragAble&&_.drag.handleMouseDown(x),_.appendInfo=M}),_.drag=new vl({onDragStart:_.onDragStart,onDragging:_.onDragging,onDragEnd:_.onDragEnd,isStopPropagation:!1}),_}return c=O,(h=[{key:"getEdge",value:function(){var _=this.props.model,x=_.points,M=_.isAnimation,L=_.arrowConfig,U=_.getEdgeStyle(),ne=_.getEdgeAnimationStyle(),de=ne.strokeDasharray,we=ne.stroke,De=ne.strokeDashoffset,Ke=ne.animationName,tt=ne.animationDuration,dt=ne.animationIterationCount,ht=ne.animationTimingFunction,yt=ne.animationDirection;return Object(Oe.g)(one,ZP({points:x},U,L,M?{strokeDasharray:de,stroke:we,style:{strokeDashoffset:De,animationName:Ke,animationDuration:tt,animationIterationCount:dt,animationTimingFunction:ht,animationDirection:yt}}:{}))}},{key:"getArrowInfo",value:function(){var _=this.props.model,x=_.points,M=_.isSelected,L={start:null,end:null,hover:this.state.hover,isSelected:M},U=jc(x);return U.length>=2&&(L.start=U[U.length-2],L.end=U[U.length-1]),L}},{key:"getLastTwoPoints",value:function(){var _=this.props.model.points,x=jc(_);return x.length>=2?[x[x.length-2],x[x.length-1]]:[null,null]}},{key:"getAppendAttributes",value:function(_){var x,M=_.start,L=_.end;if(M.x===L.x&&M.y===L.y)x="";else{var U={start:M,end:L,offset:10,verticalLength:5},ne=ng(FS(FS({},U),{},{type:"start"})),de=ng(FS(FS({},U),{},{type:"end"}));x="M".concat(ne.leftX," ").concat(ne.leftY,`
- L`).concat(ne.rightX," ").concat(ne.rightY,`
- L`).concat(de.rightX," ").concat(de.rightY,`
- 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,L=x.strokeWidth,U=x.fill,ne=x.strokeDasharray,de=x.stroke;return Object(Oe.g)(u_,{d:M,fill:U,strokeWidth:L,stroke:de,strokeDasharray:ne})}},{key:"getAppendWidth",value:function(){for(var _=this,x=this.props,M=x.model,L=x.graphModel,U=M.pointsList,ne=M.draggable,de=[],we=U.length,De=function(tt){var dt="lf-polyline-append",ht={start:{x:U[tt].x,y:U[tt].y},end:{x:U[tt+1].x,y:U[tt+1].y},startIndex:tt,endIndex:tt+1,direction:"",dragAble:!0},yt=Object(Oe.g)("g",{className:dt},_.getAppendShape(ht)),Rt=L.editConfigModel,on=Rt.adjustEdge,dn=Rt.adjustEdgeMiddle;if(on&&ne){var zn=ht.startIndex,an=ht.endIndex,An=dn&&(zn===0||an===we-1);ht.dragAble=!An,ht.start.x===ht.end.x?(ht.dragAble&&(dt+="-ew-resize"),ht.direction=vo.VERTICAL):ht.start.y===ht.end.y&&(ht.dragAble&&(dt+="-ns-resize"),ht.direction=vo.HORIZONTAL),yt=Object(Oe.g)("g",{className:_.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(gn){return _.beforeDragStart(gn,ht)}},Object(Oe.g)("g",{className:dt},_.getAppendShape(ht)))}de.push(yt)},Ke=0;Ke<we-1;Ke++)De(Ke);return Object(Oe.g)("g",null,de)}}])&&ane(c.prototype,h),O}(l_);function XP(f){return XP=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},XP(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return g8(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 g8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function g8(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 GP(){return GP=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},GP.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 KP(f,c){return KP=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},KP(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=QS(f);if(c){var O=QS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return hne(this,h)}}function hne(f,c){if(c&&(XP(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 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&&KP(_,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,L=_.isAnimation,U=_.arrowConfig,ne=_.getEdgeAnimationStyle(),de=ne.strokeDasharray,we=ne.stroke,De=ne.strokeDashoffset,Ke=ne.animationName,tt=ne.animationDuration,dt=ne.animationIterationCount,ht=ne.animationTimingFunction,yt=ne.animationDirection;return Object(Oe.g)(u_,GP({d:M},x,U,L?{strokeDasharray:de,stroke:we,style:{strokeDashoffset:De,animationName:Ke,animationDuration:tt,animationIterationCount:dt,animationTimingFunction:ht,animationDirection:yt}}:{}))}},{key:"getAppendWidth",value:function(){var _=this.props.model.path;return Object(Oe.g)(u_,{d:_,strokeWidth:10,stroke:"transparent",fill:"none"})}},{key:"getArrowInfo",value:function(){var _=this.props.model,x=this.state.hover,M=_.isSelected,L=_.getArrowStyle().offset,U=_.pointsList.map(function(de){return{x:de.x,y:de.y}}),ne=une(bm(U,L),2);return{start:ne[0],end:ne[1],hover:x,isSelected:M}}},{key:"getLastTwoPoints",value:function(){var _=this.props.model,x=_.getArrowStyle().offset,M=_.pointsList.map(function(L){return{x:L.x,y:L.y}});return bm(M,x)}}])&&fne(c.prototype,h),O}(l_);function JP(f){return JP=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},JP(f)}function v8(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 e$(f,c){return e$=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},e$(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=WS(f);if(c){var O=WS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return yne(this,h)}}function yne(f,c){if(c&&(JP(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 WS(f){return WS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},WS(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&&e$(_,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,L=x.start,U=x.end,ne={start:L,end:U,offset:M.offset,verticalLength:M.verticalLength,type:"end"},de=ng(ne),we=de.leftX,De=de.leftY,Ke=de.rightX,tt=de.rightY;return function(dt){for(var ht=1;ht<arguments.length;ht++){var yt=arguments[ht]!=null?arguments[ht]:{};ht%2?v8(Object(yt),!0).forEach(function(Rt){pne(dt,Rt,yt[Rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(dt,Object.getOwnPropertyDescriptors(yt)):v8(Object(yt)).forEach(function(Rt){Object.defineProperty(dt,Rt,Object.getOwnPropertyDescriptor(yt,Rt))})}return dt}({d:"M".concat(we," ").concat(De," L").concat(U.x," ").concat(U.y," L").concat(Ke," ").concat(tt," z")},M)}},{key:"getShape",value:function(){var _=this.getArrowAttributes(),x=_.d,M=_.strokeWidth,L=_.stroke,U=_.fill;return Object(Oe.g)(u_,{d:x,fill:U,strokeWidth:M,stroke:L})}},{key:"render",value:function(){return Object(Oe.g)("g",{className:"lf-arrow"},this.getShape())}}],h&&vne(c.prototype,h),O}(Oe.a),m8=function(f,c){return Ot(f,c)},_ne=function(f){var c=f==null?0:f.length;return c?f[c-1]:void 0},t$=function(){return nt.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,y8=function(f){if(typeof f=="number")return f;if(ur(f))return NaN;if(to(f)){var c=typeof f.valueOf=="function"?f.valueOf():f;f=to(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,L,U=0,ne=!1,de=!1,we=!0;if(typeof f!="function")throw new TypeError("Expected a function");function De(Rt){var on=g,dn=O;return g=O=void 0,U=Rt,x=f.apply(dn,on)}function Ke(Rt){return U=Rt,M=setTimeout(dt,c),ne?De(Rt):x}function tt(Rt){var on=Rt-L;return L===void 0||on>=c||on<0||de&&Rt-U>=_}function dt(){var Rt=t$();if(tt(Rt))return ht(Rt);M=setTimeout(dt,function(on){var dn=c-(on-L);return de?$ne(dn,_-(on-U)):dn}(Rt))}function ht(Rt){return M=void 0,we&&g?De(Rt):(g=O=void 0,x)}function yt(){var Rt=t$(),on=tt(Rt);if(g=arguments,O=this,L=Rt,on){if(M===void 0)return Ke(L);if(de)return clearTimeout(M),M=setTimeout(dt,c),De(L)}return M===void 0&&(M=setTimeout(dt,c)),x}return c=y8(c)||0,to(h)&&(ne=!!h.leading,_=(de="maxWait"in h)?Pne(y8(h.maxWait)||0,c):_,we="trailing"in h?!!h.trailing:we),yt.cancel=function(){M!==void 0&&clearTimeout(M),U=0,g=L=O=M=void 0},yt.flush=function(){return M===void 0?x:ht(t$())},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 ph(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var b8,_8,O8,Nne=function(){function f(g){(function(O,_){if(!(O instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),ph(this,"undos",[]),ph(this,"redos",[]),ph(this,"callbacks",[]),ph(this,"stopWatch",null),ph(this,"curData",null),ph(this,"maxSize",50),ph(this,"waitTime",100),ph(this,"eventCenter",void 0),this.eventCenter=g}var c,h;return c=f,(h=[{key:"add",value:function(g){m8(_ne(this.undos),g)||(this.undos.push(g),m8(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=Eo(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=Eo(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 n$(f){return n$=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},n$(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||function(h,g){if(!!h){if(typeof h=="string")return w8(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 w8(h,g)}}(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function w8(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 S8(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 mg(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?S8(Object(h),!0).forEach(function(g){yg(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):S8(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function x8(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 r$(f,c){return r$=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},r$(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=YS(f);if(c){var O=YS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return jne(this,h)}}function jne(f,c){if(c&&(n$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vm(f)}function Vm(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 yg(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var k8,C8,E8,o$=nc((O8=_8=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&&r$(x,M)})(_,f);var c,h,g,O=Dne(_);function _(){var x;return function(M,L){if(!(M instanceof L))throw new TypeError("Cannot call a class as a function")}(this,_),yg(Vm(x=O.call(this)),"ref",Object(Oe.f)()),yg(Vm(x),"__prevText",{type:"",text:"",id:""}),yg(Vm(x),"keyupHandler",function(M){var L=x.props.graphModel.textEditElement;M.key==="Enter"&&M.altKey&&L.setElementState(0)}),yg(Vm(x),"inputHandler",function(M){var L=M.target.innerText,U=x.props.graphModel.textEditElement;x.__prevText={type:U.type,text:L.replace(/(\r\n)+$|(\n)+$/,""),id:U.id}}),yg(Vm(x),"keydownHandler",function(M){M.stopPropagation()}),x.state={style:{left:0,top:0}},x}return c=_,g=[{key:"getDerivedStateFromProps",value:function(x){var M,L=x.graphModel,U=L.transformModel,ne=L.theme,de=ne.inputText,we=L.textEditElement;if(we){var De;if((De=we.text)===null||De===void 0||!De.value)if(we.BaseType===si.EDGE){var Ke=(we=we).text,tt=we.textPosition,dt=tt.x,ht=tt.y;Ke.x=dt,Ke.y=ht,we.setText(Ke)}else we=we;var yt={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(we.BaseType===si.EDGE){var Rt=ne.edgeText,on=Rt.overflowMode,dn=Rt.lineHeight,zn=Rt.wrapPadding,an=Rt.textWidth;an&&on==="autoWrap"&&(M=mg(mg({},yt),{},{width:an,minWidth:an,lineHeight:dn,padding:zn}))}else if(we.BaseType===si.NODE){var An=ne.nodeText,gn=An.overflowMode,Pr=An.lineHeight,Nr=An.wrapPadding,Jn=An.textWidth,Wr=we,li=Wr.width,ui=Wr.modelType,Pa=Wr.textWidth||Jn||li;(ui!==xr.TEXT_NODE&&gn==="autoWrap"||ui===xr.TEXT_NODE&&Jn)&&(M=mg(mg({},yt),{},{width:Pa,minWidth:Pa,lineHeight:Pr,padding:Nr}))}var Ol=we.text,wl=Ol.x,Yc=Ol.y,bg=Ine(U.CanvasPointToHtmlPoint([wl,Yc]),2);return{style:mg(mg({left:bg[0],top:bg[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,L=M.text,U=M.id;x.updateText(U,L),x.eventCenter.emit($n.TEXT_UPDATE,mg({},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 L=window.getSelection();L.removeAllRanges(),L.addRange(M)}}},{key:"render",value:function(){var x,M=this.props.graphModel.textEditElement,L=this.state.style;return M?Object(Oe.g)("div",{contentEditable:!0,className:"lf-text-input",style:L,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}}])&&x8(c.prototype,h),g&&x8(c,g),_}(Oe.a),yg(_8,"toolName","textEdit"),b8=O8))||b8,Lne=function(f){return f.modelType===xr.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===xr.POLYLINE_EDGE?function(c){var h=c.points,g=jc(h),O=ah(g,8),_=O.x,x=O.y,M=O.width,L=O.height;return{x:_-M/2,y:x-L/2,x1:_+M/2,y1:x+L/2}}(f):f.modelType===xr.BEZIER_EDGE?function(c){var h=c.path,g=ym(h),O=ah(g,8),_=O.x,x=O.y,M=O.width,L=O.height;return{x:_-M/2,y:x-L/2,x1:_+M/2,y1:x+L/2}}(f):void 0};function i$(f){return i$=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},i$(f)}function T8(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=[],L=!0,U=!1;try{for(O=O.call(h);!(L=(_=O.next()).done)&&(M.push(_.value),!g||M.length!==g);L=!0);}catch(ne){U=!0,x=ne}finally{try{L||O.return==null||O.return()}finally{if(U)throw x}}return M}}(f,c)||P8(f,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- 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 a$(c)}(f)||function(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(f)||P8(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P8(f,c){if(f){if(typeof f=="string")return a$(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)?a$(f,c):void 0}}function a$(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 s$(f,c){return s$=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},s$(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=ZS(f);if(c){var O=ZS(this).constructor;h=Reflect.construct(g,arguments,O)}else h=g.apply(this,arguments);return zne(this,h)}}function zne(f,c){if(c&&(i$(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c_(f)}function c_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ZS(f){return ZS=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ZS(f)}function f_(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var l$=nc((E8=C8=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&&s$(_,x)})(O,f);var c,h,g=Fne(O);function O(_){var x;(function(ne,de){if(!(ne instanceof de))throw new TypeError("Cannot call a class as a function")})(this,O),f_(c_(x=g.call(this)),"stepDrag",void 0),f_(c_(x),"handleMouseDown",function(ne){x.stepDrag.handleMouseDown(ne)}),f_(c_(x),"onDragging",function(ne){var de=ne.deltaX,we=ne.deltaY,De=x.props.graphModel,Ke=De.getSelectElements(!0);De.moveNodes(Ke.nodes.map(function(tt){return tt.id}),de,we)}),f_(c_(x),"handleContextMenu",function(ne){ne.preventDefault();var de=x.props,we=de.graphModel,De=de.graphModel,Ke=De.eventCenter,tt=De.selectElements,dt=we.getPointByClient({x:ne.clientX,y:ne.clientY}),ht={nodes:[],edges:[]};Bne(tt.values()).forEach(function(yt){yt.BaseType===si.NODE&&ht.nodes.push(yt.getData()),yt.BaseType===si.EDGE&&ht.edges.push(yt.getData())}),Ke.emit($n.SELECTION_CONTEXTMENU,{data:ht,e:ne,position:dt})});var M=_.graphModel,L=M.gridSize,U=M.eventCenter;return x.stepDrag=new vl({onDragging:x.onDragging,step:L,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 L=Number.MAX_SAFE_INTEGER,U=Number.MAX_SAFE_INTEGER,ne=Number.MIN_SAFE_INTEGER,de=Number.MIN_SAFE_INTEGER;x.forEach(function(tt){var dt={x:0,y:0,x1:0,y1:0};tt.BaseType===si.NODE&&(dt=function(ht){var yt=ht.x,Rt=ht.y,on=ht.width,dn=ht.height;return{x:yt-on/2,y:Rt-dn/2,x1:yt+on/2,y1:Rt+dn/2}}(tt)),tt.BaseType===si.EDGE&&(dt=Lne(tt)),L=Math.min(L,dt.x),U=Math.min(U,dt.y),ne=Math.max(ne,dt.x1),de=Math.max(de,dt.y1)});var we=T8(M.CanvasPointToHtmlPoint([L,U]),2);L=we[0],U=we[1];var De=T8(M.CanvasPointToHtmlPoint([ne,de]),2);ne=De[0],de=De[1];var Ke={left:"".concat(L-10,"px"),top:"".concat(U-10,"px"),width:"".concat(ne-L+20,"px"),height:"".concat(de-U+20,"px")};return Object(Oe.g)("div",{className:"lf-multiple-select",style:Ke,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu})}}}])&&Vne(c.prototype,h),O}(Oe.a),f_(C8,"toolName","multipleSelect"),k8=E8))||k8;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 US(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),US(this,"tools",void 0),US(this,"components",void 0),US(this,"toolMap",new Map),US(this,"instance",void 0),this.instance=g,this.isDisabledTool(o$.toolName)||this.registerTool(o$.toolName,o$),this.isDisabledTool(l$.toolName)||this.registerTool(l$.toolName,l$);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,L=x.nodeTextEdit;(M||L)&&_&&O.textEditElement.setElementState(Kr.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 u$(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var $8=function(){function f(g){(function(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")})(this,f),u$(this,"mousetrap",void 0),u$(this,"options",void 0),u$(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(uo(O))O.forEach(function(L){var U=L.keys,ne=L.callback,de=L.action;return g.on(U,ne,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=$8,td=null;function A8(f,c){return f.x+=c,f.y+=c,f.text&&(f.text.x+=c,f.text.y+=c),f}function M8(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 Fm=40,c$=40;function f$(f){return f$=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},f$(f)}function R8(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 d_(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?R8(Object(h),!0).forEach(function(g){ei(f,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):R8(Object(h)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(h,g))})}return f}function N8(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 ei(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}var d$=Symbol("plugin register by Logicflow.use"),h$=function(){function f(O){var _,x,M=this;(function(L,U){if(!(L instanceof U))throw new TypeError("Cannot call a class as a function")})(this,f),ei(this,"container",void 0),ei(this,"width",void 0),ei(this,"height",void 0),ei(this,"graphModel",void 0),ei(this,"history",void 0),ei(this,"viewMap",new Map),ei(this,"tool",void 0),ei(this,"keyboard",void 0),ei(this,"dnd",void 0),ei(this,"options",void 0),ei(this,"snaplineModel",void 0),ei(this,"components",[]),ei(this,"plugins",void 0),ei(this,"extension",{}),ei(this,"adapterIn",void 0),ei(this,"adapterOut",void 0),ei(this,"getView",function(L){return M.viewMap.get(L)}),O=Pj(O),this.options=O,this.container=this.initContainer(O.container),this.plugins=O.plugins,this.graphModel=new Cm(d_({},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 Q4(this.graphModel),_=this.graphModel.eventCenter,x=this.snaplineModel,_.on("node:mousemove",function(L){var U=L.data;x.setNodeSnapLine(U)}),_.on("node:mouseup",function(){x.clearSnapline()})),this.options.isSilentMode||(function(L,U){var ne=L.keyboard,de=ne.options.keyboard;ne.on(["cmd + c","ctrl + c"],function(){if(c$=Fm,!de.enabled||U.textEditElement)return!0;var we=L.options.guards,De=U.getSelectElements(!1);return we&&we.beforeClone&&!we.beforeClone(De)||De.nodes.length===0&&De.edges.length===0?(td=null,!0):((td=De).nodes.forEach(function(Ke){return A8(Ke,Fm)}),td.edges.forEach(function(Ke){return M8(Ke,Fm)}),!1)}),ne.on(["cmd + v","ctrl + v"],function(){if(!de.enabled||U.textEditElement)return!0;if(td&&(td.nodes||td.edges)){L.clearSelectElements();var we=L.addElements(td,c$);if(!we)return!0;we.nodes.forEach(function(De){return L.selectElementById(De.id,!0)}),we.edges.forEach(function(De){return L.selectElementById(De.id,!0)}),td.nodes.forEach(function(De){return A8(De,Fm)}),td.edges.forEach(function(De){return M8(De,Fm)}),c$+=Fm}return!1}),ne.on(["cmd + z","ctrl + z"],function(){return!de.enabled||!!U.textEditElement||(L.undo(),!1)}),ne.on(["cmd + y","ctrl + y"],function(){return!de.enabled||!!U.textEditElement||(L.redo(),!1)}),ne.on(["backspace"],function(){if(!de.enabled||U.textEditElement)return!0;var we=U.getSelectElements(!0);return L.clearSelectElements(),we.edges.forEach(function(De){return L.deleteEdge(De.id)}),we.nodes.forEach(function(De){return L.deleteNode(De.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:l_,BaseEdgeModel:mb,BaseNode:Kf,BaseNodeModel:Gf,RectNode:oP,RectNodeModel:IT,CircleNode:lP,CircleNodeModel:vT,PolygonNode:hP,PolygonNodeModel:AT,TextNode:kP,TextNodeModel:BT,LineEdge:QP,LineEdgeModel:Ff,DiamondNode:mP,DiamondNodeModel:OT,PolylineEdge:HP,PolylineEdgeModel:pm,BezierEdge:qP,BezierEdgeModel:cT,EllipseNode:wP,EllipseNodeModel:kT,HtmlNode:PP,HtmlNodeModel:zT,h:Oe.g,type:O};this.viewMap.forEach(function(we){var De=we.extendKey;De&&(M[De]=we)}),this.graphModel.modelMap.forEach(function(we){var De=we.extendKey;De&&(M[De]=we)});var L=_(M),U=L.view,ne=L.model,de=U;x&&!de.isObervered&&(de.isObervered=!0,de=Je(de)),this.setView(O,de),this.graphModel.setModel(O,ne)}else this.registerElement(O)}},{key:"registerElement",value:function(O){var _=O.view;O.isObserverView===!1||_.isObervered||(_.isObervered=!0,_=Je(_)),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:oP,model:IT,type:"rect"}),this.registerElement({type:"circle",view:lP,model:vT}),this.registerElement({type:"polygon",view:hP,model:AT}),this.registerElement({type:"line",view:QP,model:Ff}),this.registerElement({type:"polyline",view:HP,model:pm}),this.registerElement({type:"bezier",view:qP,model:cT}),this.registerElement({type:"text",view:kP,model:BT}),this.registerElement({type:"ellipse",view:wP,model:kT}),this.registerElement({type:"diamond",view:mP,model:OT}),this.registerElement({type:"html",view:PP,model:zT})}},{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 L=this.getNodeModelById(M);L&&(x=L.getData());var U=this.getEdgeModelById(M);U&&(x=U.textPosition)}var ne=x,de=ne.x,we=ne.y;_.focusOn(de,we,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,L=this.getModelById(O);return!!L&&(x=(M=(ei(_={},si.NODE,this.deleteNode),ei(_,si.EDGE,this.deleteEdge),_)[L.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,L=!M||!M.beforeDelete||M.beforeDelete(x);return L&&this.graphModel.deleteNode(O),L}},{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(),L=!_||!_.beforeDelete||_.beforeDelete(M);return L&&this.graphModel.deleteEdgeById(O),L}},{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 L=[];return _.forEach(function(de){de.sourceNodeId===x&&de.targetNodeId===M&&L.push(de)}),L}if(x){var U=[];return _.forEach(function(de){de.sourceNodeId===x&&U.push(de)}),U}if(M){var ne=[];return _.forEach(function(de){de.targetNodeId===M&&ne.push(de)}),ne}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(yo(_))}},{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,L={},U={nodes:[],edges:[]},ne=0;ne<x.length;ne++){var de=x[ne],we=de.id,De=this.addNode(de);if(!De)return;we&&(L[we]=De.id),U.nodes.push(De)}return M.forEach(function(Ke){var tt=Ke.sourceNodeId,dt=Ke.targetNodeId;L[tt]&&(tt=L[tt]),L[dt]&&(dt=L[dt]);var ht=_.graphModel.addEdge(d_(d_({},Ke),{},{sourceNodeId:tt,targetNodeId:dt}));U.edges.push(ht)}),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],L=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return this.graphModel.getAreaElement(O,_,x,M,L).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=yo(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(O)}}},{key:"redo",value:function(){if(this.history.redoAble()){var O=yo(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(L){var U=null,ne=null;L[d$]?(U=L.extension,ne=L.props):U=L;var de=U.pluginName||U.name;x.indexOf(de)===-1&&_.installPlugin(U,ne)})}},{key:"installPlugin",value:function(O,_){if(f$(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 L=O,U=new L({lf:this,LogicFlow:f,options:this.options.pluginsOptions,props:_});U.render&&this.components.push(U.render.bind(U)),this.extension[L.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 _(d_(d_({},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(yo(O)),this.options.history!==!1&&this.history.watch(this.graphModel),Object(Oe.j)(Object(Oe.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,L=O.pluginName;L||(L=O.name);var U=(x=this.extensions.get(L))===null||x===void 0?void 0:x.extension;U&&U.destroy&&U.destroy(),this.extensions.set(L,(ei(M={},d$,d$),ei(M,"extension",O),ei(M,"props",_),M))}}],h&&N8(c.prototype,h),g&&N8(c,g),f}();function nc(f){return Je(f)}ei(h$,"extensions",new Map),r.default=h$}])})})(Kt,Kt.exports);var CH=nEe(Kt.exports),o6e=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}(),i6e=(globalThis==null?void 0:globalThis._ids)||new o6e;function O0(){return i6e.next()}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)}}();(function(e){EH(t,e);function t(n,r){var o=this;return n.id||(n.id="Event_"+O0()),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})(Kt.exports.CircleNodeModel);(function(e){EH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.extendKey="StartEventNode",t})(Kt.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)}}(),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){TH(t,e);function t(n,r){var o=this;return n.id||(n.id="Event_"+O0()),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})(Kt.exports.CircleNodeModel);(function(e){TH(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 Kt.exports.h("g",{},s,Kt.exports.h("circle",o2(o2({},r),{cx:o,cy:i,r:a-5})))},t.extendKey="EndEventView",t})(Kt.exports.CircleNode);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)}}(),J_=globalThis&&globalThis.__assign||function(){return J_=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},J_.apply(this,arguments)};(function(e){PH(t,e);function t(n,r){var o=this;return n.id||(n.id="Gateway_"+O0()),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})(Kt.exports.PolygonNodeModel);(function(e){PH(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 Kt.exports.h("g",{transform:"matrix(1 0 0 1 "+(r-i/2)+" "+(o-a/2)+")"},Kt.exports.h("polygon",J_(J_({},l),{x:r,y:o,points:s})),Kt.exports.h("path",J_({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})(Kt.exports.PolygonNode);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)}}(),i2=globalThis&&globalThis.__assign||function(){return i2=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},i2.apply(this,arguments)};(function(e){$H(t,e);function t(n,r){var o=this;return n.id||(n.id="Activity_"+O0()),o=e.call(this,n,r)||this,o}return t.extendKey="UserTaskModel",t})(Kt.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 Kt.exports.h("svg",{x:r-i/2+5,y:o-a/2+5,width:25,height:25,viewBox:"0 0 1274 1024"},Kt.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 Kt.exports.h("g",{},[Kt.exports.h("rect",i2(i2({},l),{x:r-i/2,y:o-a/2,rx:s,ry:s,width:i,height:a})),this.getLabelShape()])},t.extendKey="UserTaskNode",t})(Kt.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)}}(),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)};(function(e){AH(t,e);function t(n,r){var o=this;return n.id||(n.id="Activity_"+O0()),o=e.call(this,n,r)||this,o}return t.extendKey="ServiceTaskModel",t})(Kt.exports.RectNodeModel);(function(e){AH(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 Kt.exports.h("svg",{x:r-i/2+5,y:o-a/2+5,width:30,height:30,viewBox:"0 0 1274 1024"},Kt.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 Kt.exports.h("g",{},[Kt.exports.h("rect",iR({x:r-i/2,y:o-a/2,rx:s,ry:s,width:i,height:a},l)),this.getLabelShape()])},t.extendKey="ServiceTaskNode",t})(Kt.exports.RectNode);var MH=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){MH(t,e);function t(n,r){var o=this;return n.id||(n.id="Flow_"+O0()),o=e.call(this,n,r)||this,o}return t.extendKey="SequenceFlowModel",t})(Kt.exports.PolylineEdgeModel);(function(e){MH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.extendKey="SequenceFlowEdge",t})(Kt.exports.PolylineEdge);var IB={width:40,height:40},DB={width:40,height:40},jB={width:40,height:40},LB={width:100,height:80},BB={width:100,height:80},a6e=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}(),s6e=(globalThis==null?void 0:globalThis._ids)||new a6e;function VB(){return s6e.next()}function RH(e){return Object.prototype.toString.call(e)}function l6e(e){return" ".repeat(e)}function a2(e){var t=e;return RH(e)==="[object Object]"?(t={},Object.keys(e).forEach(function(n){var r=n;n.charAt(0)==="-"&&(r=n.substring(1)),t[r]=a2(e[n])})):Array.isArray(e)&&(t=[],e.forEach(function(n,r){t[r]=a2(n)})),t}function u6e(e){var t=e;try{typeof t!="string"&&(t=JSON.parse(e))}catch{t=JSON.stringify(a2(e)).replace(/"/g,"'")}return t}var Um=`
- `;function pk(e,t,n){var r=l6e(n),o="";if(t==="#text")return Um+r+e;if(t==="#cdata-section")return Um+r+"<![CDATA["+e+"]]>";if(t==="#comment")return Um+r+"<!--"+e+"-->";if((""+t).charAt(0)==="-")return" "+t.substring(1)+'="'+u6e(e)+'"';if(Array.isArray(e))e.forEach(function(l){o+=pk(l,t,n+1)});else if(RH(e)==="[object Object]"){var i=Object.keys(e),a="",s="";o+=(n===0?"":Um+r)+"<"+t,i.forEach(function(l){l.charAt(0)==="-"?a+=pk(e[l],l,n+1):s+=pk(e[l],l,n+1)}),o+=a+(s!==""?">"+s+(Um+r)+"</"+t+">":" />")}else o+=Um+r+("<"+t+">"+e.toString()+"</"+t+">");return o}function c6e(e){var t="";for(var n in e)t+=pk(e[n],n,0);return t}var Ds=function(){};Ds.ObjTree=function(){return this};Ds.ObjTree.VERSION="0.23";Ds.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
- `;Ds.ObjTree.prototype.attr_prefix="-";Ds.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)};Ds.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)};Ds.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}};Ds.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}};Ds.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};Ds.ObjTree.prototype.writeXML=function(e){var t=this.hash_to_xml(null,e);return this.xmlDecl+t};Ds.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+`>
- `+s+"</"+e+`>
- `:s="<"+e+a+">"+s+"</"+e+`>
- `:s="<"+e+a+` />
- `),s};Ds.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("")};Ds.ObjTree.prototype.scalar_to_xml=function(e,t){return e=="#text"?this.xml_escape(t):"<"+e+">"+this.xml_escape(t)+"</"+e+`>
- `};Ds.ObjTree.prototype.xml_escape=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var f6e=function(e){return new Ds.ObjTree().parseXML(e)},d6e=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)}}(),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)},UC=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},gf;(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"})(gf||(gf={}));var NH=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"],FB=["properties","startPoint","endPoint","pointsList"];function zB(e){var t=e?FB.concat(e):FB;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=UC(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 s2(e){var t={};return Object.entries(e).forEach(function(n){var r=UC(n,2),o=r[0],i=r[1];o.indexOf("-")===0?t[o.substring(1)]=a2(i):typeof i=="string"?t[o]=i:Object.prototype.toString.call(i)==="[object Object]"?t[o]=s2(i):Array.isArray(i)?t[o]=i.map(function(a){return s2(a)}):t[o]=i}),t}function h6e(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=zB(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=zB(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[gf.FLOW]=o}function p6e(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=Sp.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 g6e(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===gf.FLOW){var s=r["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];n=m6e(a,s)}else{var l=r["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];t=t.concat(v6e(a,l,i))}}})}return{nodes:t,edges:n}}function v6e(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=QB(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=QB(o,n,e);r.push(i)}return r}function QB(e,t,n){var r=Number(e["dc:Bounds"]["-x"]),o=Number(e["dc:Bounds"]["-y"]),i=n["-name"],a=Sp.shapeConfigMap.get(t);a&&(r+=a.width/2,o+=a.height/2);var s;Object.entries(n).forEach(function(p){var v=UC(p,2),y=v[0],w=v[1];NH.indexOf(y)===-1&&(s||(s={}),s[y]=w)}),s&&(s=s2(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 m6e(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(WB(i,o))});else{var r=void 0;Array.isArray(t)?r=t.find(function(o){return o["-bpmnElement"]===e["-id"]}):r=t,n.push(WB(r,e))}return n}function WB(e,t){var n,r=t["-name"];if(r){var o=e["bpmndi:BPMNLabel"]["dc:Bounds"],i=0;r.split(`
- `).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=UC(l,2),d=u[0],p=u[1];NH.indexOf(d)===-1&&(a||(a={}),a[d]=p)}),a&&(a=s2(a));var s={id:t["-id"],type:gf.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 Sp=function(){function e(t){var n=this,r=t.lf;this.adapterOut=function(o,i){var a=aR({},n.processAttributes);h6e(a,o,i);var s={"-id":"BPMNPlane_1","-bpmnElement":a["-id"]};p6e(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 g6e(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_"+VB()},this.definitionAttributes={"-id":"Definitions_"+VB(),"-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}();Sp.shapeConfigMap.set(gf.START,{width:IB.width,height:IB.height});Sp.shapeConfigMap.set(gf.END,{width:DB.width,height:DB.height});Sp.shapeConfigMap.set(gf.GATEWAY,{width:jB.width,height:jB.height});Sp.shapeConfigMap.set(gf.SYSTEM,{width:LB.width,height:LB.height});Sp.shapeConfigMap.set(gf.USER,{width:BB.width,height:BB.height});(function(e){d6e(t,e);function t(n){var r=e.call(this,n)||this;r.adapterXmlIn=function(i){var a=f6e(i);return r.adapterIn(a)},r.adapterXmlOut=function(i,a){var s=r.adapterOut(i,a);return c6e(s)};var o=n.lf;return o.adapterIn=r.adapterXmlIn,o.adapterOut=r.adapterXmlOut,r}return t.pluginName="bpmnXmlAdapter",t})(Sp);var y6e=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}(),b6e=(globalThis==null?void 0:globalThis._ids)||new y6e;function _6e(){return b6e.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 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)},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 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)},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 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)},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 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)},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;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;Kt.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"}),Kt.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;"}),Kt.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;"}),Kt.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;"}),Kt.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;"}),Kt.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;"}),Kt.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;"}),Kt.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;"}),Kt.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;"}),Kt.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;"}),Kt.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;"}),Kt.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;"}),Kt.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;"}),Kt.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;"});Kt.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);"});Kt.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 GB=globalThis&&globalThis.__assign||function(){return GB=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},GB.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 KB=globalThis&&globalThis.__assign||function(){return KB=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},KB.apply(this,arguments)},C6e=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 l3,Vi,IH,eO,qB,DH={},jH=[],E6e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Mh(e,t){for(var n in t)e[n]=t[n];return e}function LH(e){var t=e.parentNode;t&&t.removeChild(e)}function tO(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?l3.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 gk(e,a,r,o,null)}function gk(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?++IH:o};return o==null&&Vi.vnode!=null&&Vi.vnode(i),i}function u3(e){return e.children}function Oy(e,t){this.props=e,this.context=t}function Xy(e,t){if(t==null)return e.__?Xy(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"?Xy(e):null}function BH(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 BH(e)}}function JB(e){(!e.__d&&(e.__d=!0)&&eO.push(e)&&!l2.__r++||qB!==Vi.debounceRendering)&&((qB=Vi.debounceRendering)||setTimeout)(l2)}function l2(){for(var e;l2.__r=eO.length;)e=eO.sort(function(t,n){return t.__v.__b-n.__v.__b}),eO=[],e.some(function(t){var n,r,o,i,a,s;t.__d&&(a=(i=(n=t).__v).__e,(s=n.__P)&&(r=[],(o=Mh({},i)).__v=i.__v+1,QH(s,i,o,n.__n,s.ownerSVGElement!==void 0,i.__h!=null?[a]:null,r,a==null?Xy(i):a,i.__h),P6e(r,i),i.__e!=a&&BH(i)))})}function VH(e,t,n,r,o,i,a,s,l,u){var d,p,v,y,w,b,k,C=r&&r.__k||jH,P=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"?gk(null,y,null,null,y):Array.isArray(y)?gk(u3,{children:y},null,null,null):y.__b>0?gk(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<P;p++){if((v=C[p])&&y.key==v.key&&y.type===v.type){C[p]=void 0;break}v=null}QH(e,y,v=v||DH,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=FH(y,l,e):l=zH(e,y,v,C,w,l),typeof n.type=="function"&&(n.__d=l)):l&&v.__e==l&&l.parentNode!=e&&(l=Xy(v))}for(n.__e=b,d=P;d--;)C[d]!=null&&(typeof n.type=="function"&&C[d].__e!=null&&C[d].__e==n.__d&&(n.__d=Xy(r,d+1)),YH(C[d],C[d]));if(k)for(d=0;d<k.length;d++)WH(k[d],k[++d],k[++d])}function FH(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"?FH(r,t,n):zH(n,r,r,o,r.__e,t));return t}function zH(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 T6e(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||u2(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]||u2(e,i,t[i],n[i],r)}function eV(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||E6e.test(t)?n:n+"px"}function u2(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||eV(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||eV(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?nV:tV,i):e.removeEventListener(t,i?nV:tV,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 tV(e){this.l[e.type+!1](Vi.event?Vi.event(e):e)}function nV(e){this.l[e.type+!0](Vi.event?Vi.event(e):e)}function QH(e,t,n,r,o,i,a,s,l){var u,d,p,v,y,w,b,k,C,P,$,T,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=Vi.__b)&&u(t);try{e:if(typeof R=="function"){if(k=t.props,C=(u=R.contextType)&&r[u.__c],P=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,P):(t.__c=d=new Oy(k,P),d.constructor=R,d.render=A6e),C&&C.sub(d),d.props=k,d.state||(d.state={}),d.context=P,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=Mh({},d.__s)),Mh(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,P),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(k,d.__s,P)===!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,P),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(v,y,w)})}if(d.context=P,d.props=k,d.__v=t,d.__P=e,$=Vi.__r,T=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&&++T<25);d.state=d.__s,d.getChildContext!=null&&(r=Mh(Mh({},r),d.getChildContext())),p||d.getSnapshotBeforeUpdate==null||(w=d.getSnapshotBeforeUpdate(v,y)),A=u!=null&&u.type===u3&&u.key==null?u.props.children:u,VH(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=$6e(n.__e,t,n,r,o,i,a,l);(u=Vi.diffed)&&u(t)}catch(B){t.__v=null,(l||i!=null)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),Vi.__e(B,t,n)}}function P6e(e,t){Vi.__c&&Vi.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){Vi.__e(r,n.__v)}})}function $6e(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&&l3.call(e.childNodes),u=(p=n.props||DH).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(T6e(e,v,p,o,s),d)t.__k=[];else if(w=t.props.children,VH(e,Array.isArray(w)?w:[w],t,n,r,o&&y!=="foreignObject",i,a,i?i[0]:n.__k&&Xy(n,0),s),i!=null)for(w=i.length;w--;)i[w]!=null&&LH(i[w]);s||("value"in v&&(w=v.value)!==void 0&&(w!==e.value||y==="progress"&&!w||y==="option"&&w!==p.value)&&u2(e,"value",w,p.value,!1),"checked"in v&&(w=v.checked)!==void 0&&w!==e.checked&&u2(e,"checked",w,p.checked,!1))}return e}function WH(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){Vi.__e(r,n)}}function YH(e,t,n){var r,o;if(Vi.unmount&&Vi.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||WH(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){Vi.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&YH(r[o],t,typeof e.type!="function");n||e.__e==null||LH(e.__e),e.__e=e.__d=void 0}function A6e(e,t,n){return this.constructor(e,n)}l3=jH.slice,Vi={__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}},IH=0,Oy.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Mh({},this.state),typeof e=="function"&&(e=e(Mh({},n),this.props)),e&&Mh(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),JB(this))},Oy.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),JB(this))},Oy.prototype.render=u3,eO=[],l2.__r=0;var 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 c3(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=nO(nO({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 Kt.exports.h("rect",nO({},u))}c3.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""};var ay;(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"})(ay||(ay={}));var M6e=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)}}(),Ng=globalThis&&globalThis.__assign||function(){return Ng=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},Ng.apply(this,arguments)},R6e=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},N6e=Kt.exports.LogicFlowUtil.StepDrag,I6e=function(e){M6e(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),P=Math.round(d.ResizePCT.hightPCT*d.ResizeBasis.basisHeight/100);switch(i){case 0:a=l-C,s=u-P;break;case 1:a=C-l,s=u-P;break;case 2:a=C-l,s=P-u;break;case 3:a=l-C,s=P-u;break}return y.width=C,y.height=P,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,P=C.minWidth,$=C.minHeight,T=C.maxWidth,A=C.maxHeight;if(k.width<P||k.width>T||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}),P=r.nodeModel,$=P.minWidth,T=P.minHeight,A=P.maxWidth,R=P.maxHeight;if(C.width<$/2||C.width>A/2||C.height<T/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:Ng(Ng({},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,P=C.minWidth,$=C.minHeight,T=C.maxWidth,A=C.maxHeight;if(k.width<P/2||k.width>T/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=Ng({id:l,modelType:u,type:d},i),v=Ng({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=R6e(l.fixDeltaXY(a,s),2),a=i[0],s=i[1],u===ay.RECT_NODE||u===ay.HTML_NODE?r.updateRect({deltaX:a,deltaY:s}):u===ay.ELLIPSE_NODE?r.updateEllipse({deltaX:a,deltaY:s}):u===ay.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 N6e({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 tO("g",{className:"lf-resize-control-"+i},tO(c3,Ng({className:"lf-node-control"},{x:r,y:o},s,{onMouseDown:this.dragHandler.handleMouseDown})))},t}(Oy),D6e=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)},HC=function(e){D6e(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 tO(I6e,c2({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 tO(c3,c2({fill:"none"},s,{x:r,y:o,width:i,height:a}))},t.prototype.render=function(){return tO("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())},t}(Oy),ZH=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)}}(),j6e=function(e){ZH(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}(Kt.exports.RectNodeModel),L6e=function(e){ZH(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 Kt.exports.h(HC,{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 Kt.exports.h("g",null,this.getResizeShape(),r&&!o?this.getControlGroup():"")},t}(Kt.exports.RectNode),UH={type:"rect",view:L6e,model:j6e},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)}}();(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},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})(Kt.exports.EllipseNodeModel);(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 Kt.exports.h(HC,{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 Kt.exports.h("g",null,this.getResizeShape(),r.isSelected&&!o?this.getControlGroup():"")},t})(Kt.exports.EllipseNode);var 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 B6e(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(" "),Kt.exports.h("polygon",sR({},w))}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)}}(),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)};(function(e){XH(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})(Kt.exports.DiamondNodeModel);(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 Kt.exports.h(HC,{model:r,graphModel:o})},t.prototype.getResizeShape=function(){var n=this.props.model,r=n.points,o=n.getNodeStyle();return Kt.exports.h("g",null,Kt.exports.h(B6e,lR({},o,{points:r})))},t.prototype.getShape=function(){var n=this.props,r=n.model.isSelected,o=n.graphModel.editConfigModel.isSilentMode;return Kt.exports.h("g",null,this.getResizeShape(),r&&!o?this.getControlGroup():"")},t})(Kt.exports.DiamondNode);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)}}();(function(e){GH(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})(Kt.exports.HtmlNodeModel);(function(e){GH(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 Kt.exports.h(HC,{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 Kt.exports.h("g",null,this.getResizeShape(),r&&!o?this.getControlGroup():"")},t})(Kt.exports.HtmlNode);var KH=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)}}(),f2=globalThis&&globalThis.__assign||function(){return f2=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},f2.apply(this,arguments)},V6e=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},F6e=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(V6e(arguments[t]));return e},rV=500,oV=300,z6e=-1e4;(function(e){KH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isGroup=!0,n.unfoldedWidth=rV,n.unfoldedHight=oV,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=rV,this.height=oV,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=z6e,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=F6e(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})(UH.model);(function(e){KH(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 Kt.exports.h("rect",f2(f2({},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=Kt.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 Kt.exports.h("g",{},[Kt.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 Kt.exports.h("g",{},[this.getAddableShape(),e.prototype.getResizeShape.call(this),this.getFoldIcon()])},t})(UH.view);var iV=globalThis&&globalThis.__assign||function(){return iV=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},iV.apply(this,arguments)};globalThis&&globalThis.__rest;var Q6e=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 aV=globalThis&&globalThis.__assign||function(){return aV=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},aV.apply(this,arguments)};globalThis&&globalThis.__values;var sV=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)}}(),rO=globalThis&&globalThis.__assign||function(){return rO=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},rO.apply(this,arguments)};function W6e(e){var t=function(r){sV(o,r);function o(i,a){var s=this;i.id||(i.id="Flow_"+_6e());var l=rO(rO(rO({},e||{}),i.properties),{isDefaultFlow:!1});return i.properties=l,s=r.call(this,i,a)||this,s}return o.extendKey="SequenceFlowModel",o}(Kt.exports.PolylineEdgeModel),n=function(r){sV(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?Kt.exports.h("path",{refX:15,stroke:"#000000",strokeWidth:2,d:"M 20 5 10 -5 z"}):Kt.exports.h("path",{d:""})},o.extendKey="SequenceFlowEdge",o}(Kt.exports.PolylineEdge);return{type:"bpmn:sequenceFlow",view:n,model:t}}W6e();globalThis&&globalThis.__read;var lV={width:40,height:40},uV={width:40,height:40},cV={width:100,height:80},d2={width:100,height:80},fV={width:100,height:80},dV={width:100,height:80},hV={width:100,height:80},pV={width:100,height:80},gV={width:100,height:80},vV={width:100,height:80},js=function(){};js.ObjTree=function(){return this};js.ObjTree.VERSION="0.23";js.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
- `;js.ObjTree.prototype.attr_prefix="-";js.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}};js.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)};js.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}};js.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}};js.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};js.ObjTree.prototype.writeXML=function(e){var t=this.hash_to_xml(null,e);return this.xmlDecl+t};js.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+`>
- `+s+"</"+e+`>
- `:s="<"+e+a+">"+s+"</"+e+`>
- `:s="<"+e+a+` />
- `),s};js.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("")};js.ObjTree.prototype.scalar_to_xml=function(e,t){return e==="#text"?this.xml_escape(t):"<"+e+">"+this.xml_escape(t)+"</"+e+`>
- `};js.ObjTree.prototype.xml_escape=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var Y6e=function(e){return new js.ObjTree().parseXML(e)};function qH(e){return Object.prototype.toString.call(e)}function mV(e){return" ".repeat(e)}function h2(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]=h2(e[n]),t},{}):Array.isArray(e)?e.map(function(t){return h2(t)}):e}function Z6e(e){var t=e;try{typeof t!="string"&&(t=JSON.parse(e))}catch{t=JSON.stringify(h2(e)).replace(/"/g,"'")}return t}var yV=`
- `;function vk(e,t,n){var r=mV(n),o="",i=yV+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)+'="'+Z6e(e)+'"';if(Array.isArray(e))o+=e.map(function(u){return vk(u,t,n+1)}).join("");else if(qH(e)==="[object Object]"){var a=Object.keys(e),s="",l=e["-json"]?yV+mV(n+1)+e["-json"]:"";o+=(n===0?"":i)+"<"+t,a.forEach(function(u){u.charAt(0)==="-"?s+=vk(e[u],u,n+1):l+=vk(e[u],u,n+1)}),o+=s+(l!==""?">"+l+i+"</"+t+">":" />")}else o+=i+"<"+t+">"+e.toString()+"</"+t+">";return o}function U6e(e){var t="";for(var n in e)t+=vk(e[n],n,0);return t}var H6e=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)}}(),uR=globalThis&&globalThis.__assign||function(){return uR=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},uR.apply(this,arguments)},bV=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},f3=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.")},w0=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},wy=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w0(arguments[t]));return e},As;(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"})(As||(As={}));var JH=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef","-children"],X6e=["properties","startPoint","endPoint","pointsList"],p2={in:[],out:["properties.panels","properties.nodeSize","properties.definitionId","properties.timerValue","properties.timerType","properties.definitionType","properties.parent","properties.isBoundaryEventTouchingTask"]},eX=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},hu={"bpmn:startEvent":{out:function(e){var t,n,r=e.properties;return((n=(t=hu[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=hu[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=hu[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=hu[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=f3(Object.keys(t)),p=d.next();!p.done;p=d.next()){var v=p.value;v.includes("bpmn:")&&(o=w0(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 G6e(e){var t=e!=null?e:{},n=t.retainedAttrsFields,r=t.excludeFields,o=t.transformer,i=new Set(wy(X6e,n||[])),a={in:new Set(wy(p2.in,(r==null?void 0:r.in)||[])),out:new Set(wy(p2.out,(r==null?void 0:r.out)||[]))};return hu=eX(hu,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=hu[p.type])&&k.out){var C=k.out(p),P=Object.keys(C);P.length>0&&P.forEach(function(D){p[D]=C[D]})}p!=null&&p.children&&(p.children=p.children.map(function(D){var j=l.find(function(F){return F.id===D})||u.find(function(F){return F.id===D});return j||{}}));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 T=f3(Object.entries(p)),A=T.next();!A.done;A=T.next()){var R=w0(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=T.return)&&w.call(T)}finally{if(y)throw y.error}}return $}}return d(s,"")}}function g2(e){var t,n,r={};try{for(var o=f3(Object.entries(e)),i=o.next();!i.done;i=o.next()){var a=w0(i.value,2),s=a[0],l=a[1];s.indexOf("-")===0?r[s.substring(1)]=h2(l):typeof l=="string"?r[s]=l:Object.prototype.toString.call(l)==="[object Object]"?r[s]=g2(l):Array.isArray(l)?r[s]=l.map(function(u){return g2(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 K6e(e,t,n){var r,o=new Map,i=G6e(n)(t);i.nodes.forEach(function(s){var l=s["-id"],u=s["-type"],d=s.text,p=s.children,v=bV(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=bV(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(T){l[$].add(T)})});var P=(k=e[b["-type"]])===null||k===void 0?void 0:k.findIndex(function($){return $["-id"]===b["-id"]});P>=0&&e[b["-type"]].splice(P,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[As.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=sl.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 J6e=["bpmn:incoming","bpmn:outgoing"];function eBe(e,t){var n=[],r=[],o=new Map,i=t!=null?t:{},a=i.transformer,s=i.excludeFields,l={in:new Set(wy(p2.in,(s==null?void 0:s.in)||[])),out:new Set(wy(p2.out,(s==null?void 0:s.out)||[]))};hu=eX(hu,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&&!J6e.includes(k)&&(d[k]||(d[k]=[]),!Array.isArray(d[k])&&(d[k]=[d[k]]),Array.isArray(b[k])?(C=d[k]).push.apply(C,wy(b[k])):d[k].push(b[k]),Array.isArray(b[k])?b[k].forEach(function(P){!k.includes("Flow")&&b["-children"].push(P["-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,P;if(k.includes("bpmn:")){var $={};hu[k]&&hu[k].in?($=(P=(C=hu[k]).in)===null||P===void 0?void 0:P.call(C,k,Pe.cloneDeep(b[k])),delete b[k]):w(b[k]);var T=void 0;(T=Reflect.ownKeys($)).length>0&&T.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=nBe(y,w)}else{var b=u["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];if(v==="bpmn:boundaryEvent"){var k=d[v],C=function(P){var $=P["-attachedToRef"],T=o.get($);T["-boundaryEvents"]||(T["-boundaryEvents"]=[]),T["-boundaryEvents"].push(P["-id"])};Array.isArray(k)?k.forEach(function(P){C(P)}):C(k)}n=n.concat(tBe(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 tBe(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=_V(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=_V(o,n,e);r.push(i)}return r}function _V(e,t,n){var r=Number(e["dc:Bounds"]["-x"]),o=Number(e["dc:Bounds"]["-y"]),i=n["-children"],a=n["-name"],s=sl.shapeConfigMap.get(t);s&&(r+=s.width/2,o+=s.height/2);var l={};Object.entries(n).forEach(function(v){var y=w0(v,2),w=y[0],b=y[1];JH.includes(w)||(l[w]=b)}),l=g2(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 nBe(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(OV(i,o))});else{var r=void 0;Array.isArray(t)?r=t.find(function(o){return o["-bpmnElement"]===e["-id"]}):r=t,n.push(OV(r,e))}return n}function OV(e,t){var n,r=t["-name"];if(r){var o=e["bpmndi:BPMNLabel"]["dc:Bounds"],i=0;r.split(`
- `).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=w0(u,2),p=d[0],v=d[1];JH.includes(p)||(a[p]=v)}),a=g2(a);var s=e["di:waypoint"].map(function(u){return{x:Number(u["-x"]),y:Number(u["-y"])}}),l={id:t["-id"],type:As.FLOW,pointsList:s,sourceNodeId:t["-sourceRef"],targetNodeId:t["-targetRef"],properties:a};return n&&(l.text=n),l}var sl=function(){function e(t){var n=this,r=t.lf;this.adapterOut=function(o,i){var a,s,l=uR({},n.processAttributes);K6e(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 eBe(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}();sl.shapeConfigMap.set(As.START,{width:lV.width,height:lV.height});sl.shapeConfigMap.set(As.END,{width:uV.width,height:uV.height});sl.shapeConfigMap.set(As.INTERMEDIATE_CATCH,{width:d2.width,height:d2.height});sl.shapeConfigMap.set(As.INTERMEDIATE_THROW,{width:d2.width,height:d2.height});sl.shapeConfigMap.set(As.BOUNDARY,{width:cV.width,height:cV.height});sl.shapeConfigMap.set(As.PARALLEL_GATEWAY,{width:fV.width,height:fV.height});sl.shapeConfigMap.set(As.INCLUSIVE_GATEWAY,{width:dV.width,height:dV.height});sl.shapeConfigMap.set(As.EXCLUSIVE_GATEWAY,{width:hV.width,height:hV.height});sl.shapeConfigMap.set(As.SYSTEM,{width:pV.width,height:pV.height});sl.shapeConfigMap.set(As.USER,{width:gV.width,height:gV.height});sl.shapeConfigMap.set(As.SUBPROCESS,{width:vV.width,height:vV.height});(function(e){H6e(t,e);function t(n){var r=e.call(this,n)||this;r.adapterXmlIn=function(a){var s=Y6e(a);return r.adapterIn(s,r.props)},r.adapterXmlOut=function(a){var s=r.adapterOut(a,r.props);return U6e(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})(sl);var rBe=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,P=this.lf.graphModel,$=P.transformModel,T=$.SCALE_X,A=$.SCALE_Y,R=$.TRANSLATE_X,B=$.TRANSLATE_Y;o.lastChild.style.transform="matrix(1, 0, 0, 1, "+((-k+R)*(1/T)+10)+", "+((-C+B)*(1/A)+10)+")";var N=Math.ceil(w.width/T),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 j=new Image,F=document.createElement("style");F.innerHTML=this.getClassRules();var G=document.createElement("foreignObject");return G.appendChild(F),o.appendChild(G),new Promise(function(ae){j.onload=function(){var oe=navigator.userAgent.indexOf("Firefox")>-1;try{oe?createImageBitmap(j,{resizeWidth:v.width,resizeHeight:v.height}).then(function(J){D.drawImage(J,0,0),ae(v)}):(D.drawImage(j,0,0),ae(v))}catch{D.drawImage(j,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");j.src=H})},e.pluginName="snapshot",e}(),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)};globalThis&&globalThis.__read;var SV;(function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"})(SV||(SV={}));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;var aBe=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 sBe=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 tX=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)}}(),sy=globalThis&&globalThis.__assign||function(){return sy=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},sy.apply(this,arguments)},oO=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},lBe={tr:"tl",lb:"tl",tl:"tr",rb:"tr",br:"bl",lt:"bl",bl:"br",rt:"br"};function uBe(e){for(var t=e,n=1;n<t.length-1;){var r=oO(t[n-1],2),o=r[0],i=r[1],a=oO(t[n],2),s=a[0],l=a[1],u=oO(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 cBe(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 fBe(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=lBe[l]||"-",d="L "+e[0]+" "+e[1];if(u==="-")d+="L "+t[0]+" "+t[1]+" L "+n[0]+" "+n[1];else{var p=oO(cBe(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=oO(y,2),t[0]=o[0],t[1]=o[1])}return d}function dBe(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+=fBe(o,i,a,t)}r+="L "+e[n][0]+" "+e[n][1]}return r}(function(e){tX(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=uBe(r.split(" ").map(function(y){return y.split(",").map(function(w){return+w})})),p=dBe(d,s),v=sy(sy(sy({style:o?u:{}},l),i),{fill:"none"});return Kt.exports.h("path",sy({d:p},v))},t})(Kt.exports.PolylineEdge);(function(e){tX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Kt.exports.PolylineEdgeModel);var 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;var xV=globalThis&&globalThis.__assign||function(){return xV=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},xV.apply(this,arguments)},kV=globalThis&&globalThis.__assign||function(){return kV=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},kV.apply(this,arguments)},pBe=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 er="/plugin/rule",gBe={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"}},CV={Input:"\u8F93\u5165",relationTypes:{Success:"\u6210\u529F",Failure:"\u5931\u8D25",True:"\u771F",False:"\u5047"}},EV={endpoints:{"endpoint/mqtt":{notInput:!0,label:"MQTT",icon:er+"/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:er+"/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>',protocol:{label:"\u534F\u8BAE",desc:"tcp/udp",rules:[{required:!0,message:"\u534F\u8BAE\u662F\u5FC5\u987B\u7684"}]},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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:""}}}},"endpoint/sagoo/devicein":{notInput:!0,label:"\u8BBE\u5907\u6570\u636E",icon:er+"/images/devicein.svg",desc:"\u7528\u4E8E\u83B7\u53D6\u8BBE\u5907\u6570\u636E\u3002",productKey:{label:"\u9009\u62E9\u4EA7\u54C1",desc:""},deviceKey:{label:"\u9009\u62E9\u8BBE\u5907",desc:""},triggerType:{label:"\u89E6\u53D1\u7C7B\u578B",desc:"",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1,options:[{label:"\u8BBE\u5907\u4E0A\u7EBF",value:"online"},{label:"\u8BBE\u5907\u79BB\u7EBF",value:"offline"},{label:"\u5C5E\u6027\u4E0A\u62A5",value:"reportAttribute"},{label:"\u4E8B\u4EF6\u4E0A\u62A5",value:"reportEvent"}],placeholder:"\u8BF7\u9009\u62E9\u89E6\u53D1\u7C7B\u578B"}},antiShake:{label:"\u542F\u7528\u9632\u6296",desc:""},antiShakeMs:{label:"\u9632\u6296\u65F6\u95F4",desc:"\u5355\u4F4D\uFF1A\u79D2"},antiShakeNum:{label:"\u9632\u6296\u6B21\u6570",desc:""}}},nodes:{delay:{label:"\u5EF6\u8FDF",icon:er+"/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:er+"/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:er+"/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"},mode:{label:"\u7ED3\u679C\u5408\u5E76\u6A21\u5F0F",desc:"0 - \u5FFD\u7565\uFF0C1 - \u8FFD\u52A0\uFF0C2 - \u8986\u76D6"}},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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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>50\uFF0C\u8FD4\u56DE\u503C\u5FC5\u987B\u662F\u5E03\u5C14\u7C7B\u578B",rules:[{required:!0,message:"\u8FC7\u6EE4\u8868\u8FBE\u5F0F\u662F\u5FC5\u987B\u7684"}]}},switch:{label:"\u6761\u4EF6\u5206\u652F",icon:er+"/images/msgTypeSwitch.svg",desc:'<a href="https://rulego.cc/pages/switch/" target="_blank">\u5E2E\u52A9\u6587\u6863</a>',cases:{label:"\u6761\u4EF6\u5217\u8868",desc:"\u4F9D\u6B21\u5339\u914D\u6761\u4EF6\u5217\u8868\uFF0C\u5982\u679C\u5339\u914D\u5230\u6839\u636E\u8DEF\u7531\u6267\u884C\u540E\u7EED\u8282\u70B9\uFF0C\u5982\u679C\u6CA1\u6709\u5339\u914D\u5230\u5219\u6267\u884CDefault\u94FE",component:{type:"switchNode"}},relationTypeDynamics:!0},exprTransform:{label:"\u8868\u8FBE\u5F0F\u8F6C\u6362",icon:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/images/fork.svg"},"text/template":{label:"\u6A21\u677F\u8F6C\u6362",icon:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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:er+"/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"}}},"action/sagoo/deviceaction":{label:"\u8BBE\u5907\u52A8\u4F5C",icon:er+"/images/deviceaction.svg",desc:"\u7528\u4E8E\u6267\u884C\u8BBE\u5907\u7684\u64CD\u4F5C",productKey:{label:"\u9009\u62E9\u4EA7\u54C1",desc:""},deviceKey:{label:"\u9009\u62E9\u8BBE\u5907",desc:""},triggerType:{label:"\u64CD\u4F5C\u7C7B\u578B",desc:"",component:{type:"select",filterable:!0,allowCreate:!0,multiple:!1,options:[{label:"\u8BBE\u5907\u529F\u80FD\u8C03\u7528",value:"functionCall"},{label:"\u83B7\u53D6\u8BBE\u5907\u5C5E\u6027",value:"getProperties"},{label:"\u8BBE\u5907\u8BBE\u5907\u5C5E\u6027",value:"setProperties"}],placeholder:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"}}}}},vBe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let TV=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+=vBe[n[e]&63];return t};const Sy=(e,t)=>{if(e&&t){let n=CV[t];if(n)return n[e]||e}else if(e)return CV[e]||e;return e},mBe=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},yBe=e=>{let t=JSON.parse(JSON.stringify(gBe));e.endpoints&&e.endpoints.forEach(n=>{PV(e.builtins,t,n,!0)}),e.nodes||(e.nodes=e),e.nodes.forEach(n=>{PV(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},PV=(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,bBe(n,r),$Be(e,n,o),_Be(n),n.nodeType=n.nodeType||i&&i.nodeType||"simple-node"},bBe=(e,t)=>{let n={};t?n=EV.endpoints[e.type]:n=EV.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||$V(e.relationTypes),e.relationTypeAllowCreate=n.relationTypeAllowCreate||e.relationTypeAllowCreate,e.relationTypeDynamics=n.relationTypeDynamics||e.relationTypeDynamics,nX(e,n),t&&(e.router=n.router||e.router)):e.relationTypes=$V(e.relationTypes),t&&(e.router=e.router||{})},$V=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:Sy(o,"relationTypes")})}),t}return e},nX=(e,t)=>{e.fields&&e.fields.forEach(n=>{let r=t[n.name];r&&rX(n,r),n.fields&&r&&nX(n,r)})},_Be=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"}])})},cR=(e,t)=>{let n={};return e&&e.forEach(r=>{r.id===t&&(n=r)}),n},OBe=(e,t,n)=>{let r=null;return e&&e.forEach(o=>{o.sourceNodeId===t&&o.targetNodeId===n&&(r=o)}),r},wBe=(e,t,n)=>{let r={id:"edge_"+e.edgeCount,type:"flow-link",sourceNodeId:n.fromId,targetNodeId:n.toId,startPoint:{},endPoint:{},text:Sy(n.type,"relationTypes")||"",properties:{model:{...n}}},o=cR(t,r.sourceNodeId),i=cR(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},SBe=e=>{let t=e.split("_");if(t.length>0){let n=parseInt(t[t.length-1]);return isNaN(n)?0:n}},xBe=(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=N1(i);o.push({label:a,value:i.id||a})}}),o},kBe=(e,t)=>{let n=[];return e.type==="switch"&&(t.configuration&&t.configuration.cases&&t.configuration.cases.forEach(r=>{n.push({label:r.then,value:r.then})}),n.push({label:"Default",value:"Default"}),n.push({label:"\u5931\u8D25",value:"Failure"})),n},CBe=(e,t)=>{let n=[];return e.routers&&e.routers.forEach(r=>{if(r.id===t){let o=N1(r);n.push({label:o,value:t})}}),n},EBe=(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=N1(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):[]},TBe=(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=N1(o);(o.id===r.type||i===r.type)&&(o.to.path=o.to.path+":"+r.toId)})})},N1=e=>e.from?(e.params?e.params.join(" "):"")+" "+(e.from&&e.from.path):"",PBe=e=>TV(e||12),$Be=(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=ABe(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 ABe(e){let t=[];return e&&e.forEach(n=>{t.push({label:n.name,value:`ref://${n.id}`})}),t}function rX(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])?rX(e[o],r[o]):e[o]=r[o];return e}const MBe=(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:Sy(r,n)}).filter(r=>r!==void 0),RBe=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)}}}),NBe=()=>new Promise((e,t)=>{navigator.clipboard&&window.isSecureContext?navigator.clipboard.readText().then(n=>e(n)).catch(n=>{AV().then(e,t)}):AV().then(e,t)});function AV(){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 wr={};wr.getNodeSeq=SBe;wr.adapterComponents=yBe;wr.getNodeByID=cR;wr.getEdgeBySourceNodeIdAndTargetNodeId=OBe;wr.createEdge=wBe;wr.getRelationTypeOptionsFromRouters=xBe;wr.getEndpointConnections=EBe;wr.updateEndpointRouterToPath=TBe;wr.toFromPath=N1;wr.getRouterRelationTypeLabel=CBe;wr.genId=PBe;wr.getSelectedLabels=MBe;wr.copyToClipboard=RBe;wr.readFromClipboard=NBe;wr.getRelationTypeOptionsFromNode=kBe;class IBe extends Kt.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+mBe(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||"/plugin/rule/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 DBe extends Kt.exports.RectNode{getAnchorShape(t){const{x:n,y:r,type:o}=t;return Kt.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 Kt.exports.h("g",{className:"lf-red-node"},[Kt.exports.h("rect",{...s,x:n-o/2,y:r-i/2,width:o,height:i,rx:a,ry:a}),Kt.exports.h("g",{style:"pointer-events: none;",transform:`translate(${n}, ${r})`},[Kt.exports.h("rect",{x:-o/2,y:-i/2,width:30,height:30,fill:"#000",fillOpacity:.05,stroke:"none"}),this.getIcon(),Kt.exports.h("path",{d:`M ${30-o/2} ${1-i/2} l 0 28`,stroke:"#000",strokeOpacity:.1,strokeWidth:1})])])}}var xp={type:"red-node",model:IBe,view:DBe};class jBe extends xp.view{getIcon(){const{width:t,height:n,icon:r}=this.props.model;let o=r||"/plugin/rule/images/start.svg";return Kt.exports.h("image",{width:30,height:30,x:-t/2,y:-n/2,href:o})}}class LBe extends xp.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 BBe={type:"endpoint-node",model:LBe,view:jBe};class VBe extends xp.view{getIcon(){const{width:t,height:n,icon:r}=this.props.model;let o=r||"/plugin/rule/images/fetch.svg";return Kt.exports.h("image",{width:30,height:30,x:-t/2,y:-n/2,href:o})}}class FBe extends xp.model{initNodeData(t){super.initNodeData(t)}}var zBe={type:"simple-node",model:FBe,view:VBe};class QBe extends xp.view{getIcon(){const{model:t,graphModel:n}=this.props,{width:r,height:o,icon:i}=t;let a=i||"/plugin/rule/images/fetch.svg";return Kt.exports.h("image",{width:30,height:30,x:-r/2,y:-o/2,href:a})}}class WBe extends xp.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 YBe={type:"chain-node",model:WBe,view:QBe};class ZBe extends xp.view{getIcon(){const{model:t,graphModel:n}=this.props,{width:r,height:o}=t;return Kt.exports.h("image",{width:30,height:30,x:-r/2,y:-o/2,className:"node-red-start",href:"/plugin/rule/images/start.svg",onClick:()=>{n.eventCenter.emit("node-red:start")}})}}class UBe extends xp.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 HBe={type:"start-node",model:UBe,view:ZBe};class XBe extends Kt.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 GBe extends Kt.exports.BezierEdge{}var KBe={type:"flow-link",view:GBe,model:XBe},S0=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const qBe={class:"demo-collapse"},JBe={class:"classify-title"},eVe=["onMousedown"],tVe={class:"red-ui-palette-label"},nVe={class:"red-ui-palette-icon-container"},rVe={key:0,class:"red-ui-palette-port red-ui-palette-port-input"},oVe={key:1,class:"red-ui-palette-port red-ui-palette-port-output"},iVe=xe({__name:"Sidebar",props:{lf:{type:CH,required:!0}},setup(e){const t=e,n="/plugin/rule",r=te(""),o=te(["endpoints","action","filter","transform","external","flow","ai","ci","iot"]),i=d=>{const{lf:p}=t;p.dnd.startDrag({type:d.nodeType,text:d.label||d.type,properties:{model:{type:d.type,debugMode:!1},view:d}})},a=te(null),s=te(null),{lf:l}=t;l.on("rulego-editor:componentOk",d=>{s.value=d,a.value=d}),vn(()=>{const{lf:d}=t;d.graphModel.eventCenter.emit("rulego-editor:sidebarOk")});const u=()=>{let d=r.value.toLowerCase(),p={};if(d=="")p=s.value;else for(let v in s.value)p[v]||(p[v]=[]),p[v]=JSON.parse(JSON.stringify(s.value[v])),p[v].components&&(p[v].components=p[v].components.filter(y=>y.label.toLowerCase().indexOf(d)>-1||y.type.toLowerCase().indexOf(d)>-1));a.value=p};return(d,p)=>{const v=ti,y=al,w=il,b=na,k=wD,C=OD,P=Oc;return Z(),ue("div",qBe,[re(v,{modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=$=>r.value=$),"prefix-icon":m(kW),onInput:u,placeholder:"\u641C\u7D22\u7EC4\u4EF6"},null,8,["modelValue","prefix-icon"]),re(P,{height:"calc(100vh - 82px)"},{default:le(()=>[(Z(!0),ue(Tt,null,_n(a.value,($,T,A)=>(Z(),Qe(C,{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=R=>o.value=R)},{default:le(()=>[re(k,{name:T},{title:le(()=>[re(w,null,{default:le(()=>[re(y,{span:3},{default:le(()=>[ve("span",{class:"red-ui-palette-icon",style:Vt({backgroundImage:`url(${m(n)+"/images/"+T+"-dark.svg"})`})},null,4)]),_:2},1024),re(y,{span:18,offset:2},{default:le(()=>[ve("span",JBe,ct($.label),1)]),_:2},1024)]),_:2},1024)]),default:le(()=>[(Z(!0),ue(Tt,null,_n($.components,(R,B)=>(Z(),ue("div",{class:"red-ui-palette-node ui-draggable ui-draggable-handle",onMousedown:N=>i(R),key:B,style:Vt({backgroundColor:R.background||"#a6bbcf"})},[re(b,{class:"box-item","popper-class":"help-box",effect:"light","show-after":1e3,content:R.desc,placement:"right-start","raw-content":""},{default:le(()=>[ve("div",tVe,ct(R.label||R.type),1)]),_:2},1032,["content"]),ve("div",nVe,[R.icon?(Z(),ue("div",{key:0,class:"red-ui-palette-icon",style:Vt({backgroundImage:`url(${R.icon})`})},null,4)):(Z(),ue("div",{key:1,class:"red-ui-palette-icon",style:Vt({backgroundImage:`url(${m(n)+"/images/"+T+".svg"})`})},null,4))]),R.notInput?Fe("",!0):(Z(),ue("div",rVe)),R.notOutput?Fe("",!0):(Z(),ue("div",oVe))],44,eVe))),128))]),_:2},1032,["name"])]),_:2},1032,["modelValue"]))),256))]),_:1})])}}});var aVe=S0(iVe,[["__scopeId","data-v-d6e678de"]]);let MV=!1;class oX{constructor({lf:t}){t.register(HBe),t.register(BBe),t.register(zBe),t.register(YBe),t.register(KBe),t.setDefaultEdgeType("flow-link")}render(t,n){if(MV){this.app=nC(aVe,{lf:t});const r=document.createElement("div");r.className="node-red-palette",document.body.appendChild(r),this.app.mount(r)}MV=!0}getNodeList(){let t={};for(let n in this.nodeGroups)this.nodeGroups[n].components.forEach(r=>{t[r.type]=r});return t}}p$(oX,"pluginName","NodeRedExtension");var sVe="/plugin/rule/assets/logo.c4629d28.png",d3={exports:{}};(function(e,t){(function(n,r){r()})(Us,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 Us=="object"&&Us.global===Us?Us: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,P=C.createObjectURL(u);v?v.location=P:location.href=P,v=null,setTimeout(function(){C.revokeObjectURL(P)},4e4)}});a.saveAs=l.saveAs=l,e.exports=l})})(d3);class ao{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),tf.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),tf.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 iO(this),i=new iO(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 iO(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]?ao.empty:t.length<=32?new Ci(t):tf.from(Ci.split(t,[]))}}class Ci extends ao{constructor(t,n=lVe(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 uVe(o,s,r,a);o=s+1,r++}}decompose(t,n,r,o){let i=t<=0&&n>=this.length?this:new Ci(RV(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(o&1){let a=r.pop(),s=mk(i.text,a.text.slice(),0,i.length);if(s.length<=32)r.push(new Ci(s,a.length+i.length));else{let l=s.length>>1;r.push(new Ci(s.slice(0,l)),new Ci(s.slice(l)))}}else r.push(i)}replace(t,n,r){if(!(r instanceof Ci))return super.replace(t,n,r);let o=mk(this.text,mk(r.text,RV(this.text,0,t)),n),i=this.length+r.length-(n-t);return o.length<=32?new Ci(o,i):tf.from(Ci.split(o,[]),i)}sliceString(t,n=this.length,r=`
- `){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 Ci(r,o)),r=[],o=-1);return o>-1&&n.push(new Ci(r,o)),n}}class tf extends ao{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 tf(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=`
- `){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 tf))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 Ci(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 tf)for(let b of y.children)p(b);else y.lines>a&&(l>a||!l)?(v(),s.push(y)):y instanceof Ci&&l&&(w=d[d.length-1])instanceof Ci&&y.lines+w.lines<=32?(l+=y.lines,u+=y.length+1,d[d.length-1]=new Ci(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]:tf.from(d,u)),u=-1,l=d.length=0)}for(let y of t)p(y);return v(),s.length==1?s[0]:new tf(s,n)}}ao.empty=new Ci([""],0);function lVe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function mk(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 RV(e,t,n){return mk(e,[""],t,n)}class iO{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 Ci?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 Ci?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=`
- `,this;t--}else if(o instanceof Ci){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 Ci?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 iO(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"&&(ao.prototype[Symbol.iterator]=function(){return this.iter()},iO.prototype[Symbol.iterator]=iX.prototype[Symbol.iterator]=aX.prototype[Symbol.iterator]=function(){return this});class uVe{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 xy="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<xy.length;e++)xy[e]+=xy[e-1];function cVe(e){for(let t=1;t<xy.length;t+=2)if(xy[t]>e)return xy[t-1]<=e;return!1}function NV(e){return e>=127462&&e<=127487}const IV=8205;function rs(e,t,n=!0,r=!0){return(n?sX:fVe)(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=Aa(e,t);for(t+=pu(r);t<e.length;){let o=Aa(e,t);if(r==IV||o==IV||n&&cVe(o))t+=pu(o),r=o;else if(NV(o)){let i=0,a=t-2;for(;a>=0&&NV(Aa(e,a));)i++,a-=2;if(i%2==0)break;t+=2}else break}return t}function fVe(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 Aa(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 h3(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function pu(e){return e<65536?1:2}const fR=/\r\n?|\n/;var Na=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Na||(Na={}));class uf{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){dR(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 uf(t)}composeDesc(t){return this.empty?t:t.empty?this:cX(this,t)}mapDesc(t,n=!1){return t.empty?this:hR(this,t,n)}mapPos(t,n=-1,r=Na.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!=Na.Simple&&u>=t&&(r==Na.TrackDel&&o<t&&u>t||r==Na.TrackBefore&&o<t||r==Na.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 uf(t)}static create(t){return new uf(t)}}class Ki extends uf{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 dR(this,(n,r,o,i,a)=>t=t.replace(o,o+(r-n),a),!1),t}mapDesc(t,n=!1){return hR(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(ao.empty);r.push(a?t.slice(i,i+a):ao.empty)}i+=a}return new Ki(n,r)}compose(t){return this.empty?t:t.empty?this:cX(this,t,!0)}map(t,n=!1){return t.empty?this:hR(this,t,n,!0)}iterChanges(t,n=!1){dR(this,t,n)}get desc(){return uf.create(this.sections)}filter(t){let n=[],r=[],o=[],i=new zO(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&&Rh(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 Ki(n,r),filtered:uf.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 Ki(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 Ki){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"?ao.of(y.split(r||fR)):y:ao.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),Rh(i,o,w),a=v}}return u(t),l(!s),s}static empty(t){return new Ki(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(ao.empty);r[o]=ao.of(i.slice(1)),n.push(i[0],r[o].length)}}}return new Ki(n,r)}static createSet(t,n){return new Ki(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 Rh(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(ao.empty);e.push(n)}}function dR(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=ao.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 hR(e,t,n,r=!1){let o=[],i=r?[]:null,a=new zO(e),s=new zO(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&&Rh(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&&Rh(i,o,a.text),l=a.i,a.forward(a.len-d)}else{if(a.done&&s.done)return i?Ki.createSet(o,i):uf.create(o);throw new Error("Mismatched change set lengths")}}function cX(e,t,n=!1){let r=[],o=n?[]:null,i=new zO(e),a=new zO(t);for(let s=!1;;){if(i.done&&a.done)return o?Ki.createSet(r,o):uf.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&&Rh(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&&Rh(o,r,a.text)}else a.ins==-1?(qa(r,i.off?0:i.len,l,s),o&&Rh(o,r,i.textBit(l))):(qa(r,i.off?0:i.len,a.off?0:a.ins,s),o&&!a.off&&Rh(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 zO{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?ao.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?ao.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 Yg{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 Yg(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 Yg(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=>Yg.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 Yg.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?Yg.create(n,t,48|i):Yg.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 p3=0;class Rn{constructor(t,n,r,o,i){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=o,this.id=p3++,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:g3),!!t.static,t.enables)}of(t){return new yk([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new yk(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new yk(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function g3(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class yk{constructor(t,n,r,o){this.dependencies=t,this.facet=n,this.type=r,this.value=o,this.id=p3++}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)||pR(p,d)){let y=r(p);if(s?!DV(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=m2(v,w);if(this.dependencies.every(k=>k instanceof Rn?v.facet(k)===p.facet(k):k instanceof ga?v.field(k,!1)==p.field(k,!1):!0)||(s?DV(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 DV(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 pR(e,t){let n=!1;for(let r of t)aO(e,r)&1&&(n=!0);return n}function dVe(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=m2(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)aO(l,u);return l.values[a]=s(l),1},update(l,u){if(!pR(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=pR(l,r),p=u.config.facets[t.id],v=u.facet(t);if(p&&!d&&g3(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 jV=Rn.define({static:!0});class ga{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 ga(p3++,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(jV).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,jV.of({field:this,create:t})]}get extension(){return this}}const Ig={lowest:4,low:3,default:2,high:1,highest:0};function w_(e){return t=>new dX(t,e)}const xv={highest:w_(Ig.highest),high:w_(Ig.high),default:w_(Ig.default),low:w_(Ig.low),lowest:w_(Ig.lowest)};class dX{constructor(t,n){this.inner=t,this.prec=n}}class I1{of(t){return new gR(this,t)}reconfigure(t){return I1.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class gR{constructor(t,n){this.compartment=t,this.inner=n}}class v2{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 hVe(t,n,a))v instanceof ga?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,g3(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=>dVe(k,w,y))}}let p=u.map(v=>v(s));return new v2(t,a,p,s,l,i)}}function hVe(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 gR&&n.delete(a.compartment)}if(o.set(a,s),Array.isArray(a))for(let u of a)i(u,s);else if(a instanceof gR){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 ga)r[s].push(a),a.provides&&i(a.provides,s);else if(a instanceof yk)r[s].push(a),a.facet.extensions&&i(a.facet.extensions,Ig.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,Ig.default),r.reduce((a,s)=>a.concat(s))}function aO(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 m2(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 $d{constructor(t,n){this.type=t,this.value=n}static define(){return new pVe}}class pVe{of(t){return new $d(this,t)}}class gVe{constructor(t){this.map=t}of(t){return new Sr(this,t)}}class Sr{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 Sr(this.type,n)}is(t){return this.type==t}static define(t={}){return new gVe(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}}Sr.reconfigure=Sr.define();Sr.appendConfig=Sr.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=$d.define();Ji.userEvent=$d.define();Ji.addToHistory=$d.define();Ji.remote=$d.define();function vVe(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=Ki.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:Sr.mapEffects(e.effects,o).concat(Sr.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function vR(e,t,n){let r=t.selection,o=ky(t.annotations);return t.userEvent&&(o=o.concat(Ji.userEvent.of(t.userEvent))),{changes:t.changes instanceof Ki?t.changes:Ki.of(t.changes||[],n,e.facet(gX)),selection:r&&(r instanceof Dt?r:Dt.single(r.anchor,r.head)),effects:ky(t.effects),annotations:o,scrollIntoView:!!t.scrollIntoView}}function OX(e,t,n){let r=vR(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,vR(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 yVe(n?mVe(o):o)}function mVe(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:vVe(n,i))}if(n!==!0){let o,i;if(n===!1)i=e.changes.invertedDesc,o=Ki.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),Sr.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,ky(i),!1)}return e}function yVe(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,vR(t,i,e.changes.newLength),!0))}return r==e?e:Ji.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const bVe=[];function ky(e){return e==null?bVe:Array.isArray(e)?e:[e]}var ni=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ni||(ni={}));const _Ve=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let mR;try{mR=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function OVe(e){if(mR)return mR.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||_Ve.test(n)))return!0}return!1}function wVe(e){return t=>{if(!/\S/.test(t))return ni.Space;if(OVe(t))return ni.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return ni.Word;return ni.Other}}class Br{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++)aO(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 aO(this,r),m2(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(I1.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(Sr.reconfigure)?(n=null,r=a.value):a.is(Sr.appendConfig)&&(n=null,r=ky(r).concat(a.value));let i;n?i=t.startState.values.slice():(n=v2.resolve(r,o,this),i=new Br(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(s,l)=>l.reconfigure(s,this),null).values),new Br(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=ky(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=Sr.mapEffects(a,d).concat(Sr.mapEffects(ky(l.effects),p))}return{changes:o,selection:Dt.create(i,n.mainIndex),effects:a}}changes(t=[]){return t instanceof Ki?t:Ki.of(t,this.doc.length,this.facet(Br.lineSeparator))}toText(t){return ao.of(t.split(this.facet(Br.lineSeparator)||fR))}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:(aO(this,n),m2(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 ga&&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 Br.create({doc:t.doc,selection:Dt.fromJSON(t.selection),extensions:n.extensions?o.concat([n.extensions]):o})}static create(t={}){let n=v2.resolve(t.extensions||[],new Map),r=t.doc instanceof ao?t.doc:ao.of((t.doc||"").split(n.staticFacet(Br.lineSeparator)||fR)),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 Br(n,r,o,n.dynamicSlots.map(()=>null),(i,a)=>a.create(i),null)}get tabSize(){return this.facet(Br.tabSize)}get lineBreak(){return this.facet(Br.lineSeparator)||`
- `}get readOnly(){return this.facet(bX)}phrase(t,...n){for(let r of this.facet(Br.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 wVe(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=rs(n,a,!1);if(i(n.slice(l,a))!=ni.Word)break;a=l}for(;s<o;){let l=rs(n,s);if(i(n.slice(s,l))!=ni.Word)break;s=l}return a==s?null:Dt.range(a+r,s+r)}}Br.allowMultipleSelections=pX;Br.tabSize=Rn.define({combine:e=>e.length?e[0]:4});Br.lineSeparator=gX;Br.readOnly=bX;Br.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])}});Br.languageData=hX;Br.changeFilter=vX;Br.transactionFilter=mX;Br.transactionExtender=yX;I1.reconfigure=Sr.define();function Ef(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 hv{eq(t){return this==t}range(t,n=t){return QO.create(t,n,this)}}hv.prototype.startSide=hv.prototype.endSide=0;hv.prototype.point=!1;hv.prototype.mapMode=Na.TrackDel;class QO{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new QO(t,n,r)}}function yR(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class v3{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 v3(o,i,r,s):null,pos:a}}}class fo{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 fo(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(yR)),this.isEmpty)return n.length?fo.of(n):this;let s=new wX(this,null,-1).goto(0),l=0,u=[],d=new ap;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(QO.create(s.from,s.to,s.value))),s.next());return d.finishInner(this.nextLayer.isEmpty&&!u.length?fo.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 fo(r,n,i||fo.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 WO.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return WO.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=LV(a,s,r),u=new S_(a,l,i),d=new S_(s,l,i);r.iterGaps((p,v,y)=>BV(u,p,d,v,y,o)),r.empty&&r.length==0&&BV(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=LV(i,a),l=new S_(i,s,0).goto(r),u=new S_(a,s,0).goto(r);for(;;){if(l.to!=u.to||!bR(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 S_(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 ap;for(let o of t instanceof QO?[t]:n?SVe(t):t)r.add(o.from,o.to,o.value);return r.finish()}}fo.empty=new fo([],[],null,-1);function SVe(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(yR(t,r)>0)return e.slice().sort(yR);t=r}return e}fo.empty.nextLayer=fo.empty;class ap{finishChunk(t){this.chunks.push(new v3(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 ap)).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(fo.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=fo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function LV(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 WO{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 WO(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--)nA(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--)nA(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(),nA(this.heap,0)}}}function nA(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 S_{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=WO.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){Sx(this.active,t),Sx(this.activeTo,t),Sx(this.activeRank,t),this.minActive=VV(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++;xx(this.active,n,r),xx(this.activeTo,n,o),xx(this.activeRank,n,i),t&&xx(t,n,this.cursor.from),this.minActive=VV(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&&Sx(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 BV(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))&&bR(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,p,e.point,n.point):p>s&&!bR(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 bR(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 Sx(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function xx(e,t,n){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function VV(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 x0(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=rs(e,o));return r}function _R(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=rs(e,o)}return r===!0?-1:e.length}const OR="\u037C",FV=typeof Symbol=="undefined"?"__"+OR:Symbol.for(OR),wR=typeof Symbol=="undefined"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),zV=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:{};class sp{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(`
- `)}static newName(){let t=zV[FV]||1;return zV[FV]=t+1,OR+t.toString(36)}static mount(t,n,r){let o=t[wR],i=r&&r.nonce;o?i&&o.setNonce(i):o=new xVe(t,i),o.mount(Array.isArray(n)?n:[n])}}let QV=new Map;class xVe{constructor(t,n){let r=t.ownerDocument||t,o=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&o.CSSStyleSheet){let i=QV.get(r);if(i)return t.adoptedStyleSheets=[i.sheet,...t.adoptedStyleSheets],t[wR]=i;this.sheet=new o.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],QV.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[wR]=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()+`
- `;this.styleTag.textContent=i}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}var lp={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:"'"},YO={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},kVe=typeof navigator!="undefined"&&/Mac/.test(navigator.platform),CVe=typeof navigator!="undefined"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ma=0;Ma<10;Ma++)lp[48+Ma]=lp[96+Ma]=String(Ma);for(var Ma=1;Ma<=24;Ma++)lp[Ma+111]="F"+Ma;for(var Ma=65;Ma<=90;Ma++)lp[Ma]=String.fromCharCode(Ma+32),YO[Ma]=String.fromCharCode(Ma);for(var rA in lp)YO.hasOwnProperty(rA)||(YO[rA]=lp[rA]);function EVe(e){var t=kVe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||CVe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?YO:lp)[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 y2(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function SR(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function TVe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function bk(e,t){if(!t.anchorNode)return!1;try{return SR(e,t.anchorNode)}catch{return!1}}function Gy(e){return e.nodeType==3?pv(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function b2(e,t,n,r){return n?WV(e,t,n,r,-1)||WV(e,t,n,r,1):!1}function ZO(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function WV(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:gd(e))){if(e.nodeName=="DIV")return!1;let i=e.parentNode;if(!i||i.nodeType!=1)return!1;t=ZO(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?gd(e):0}else return!1}}function gd(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function XC(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function PVe(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function $Ve(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=PVe(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 P=d.getBoundingClientRect();w=P.width/d.offsetWidth,b=P.height/d.offsetHeight,v={left:P.left,right:P.left+d.clientWidth*w,top:P.top,bottom:P.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 P=t.bottom-t.top,$=v.bottom-v.top;C=(o=="center"&&P<=$?t.top+P/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 P=0,$=0;if(C){let T=d.scrollTop;d.scrollTop+=C/b,$=(d.scrollTop-T)*b}if(k){let T=d.scrollLeft;d.scrollLeft+=k/w,P=(d.scrollLeft-T)*w}t={left:t.left-P,top:t.top-$,right:t.right-P,bottom:t.bottom-$},P&&Math.abs(P-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 AVe(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 MVe{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?gd(n):0),r,Math.min(t.focusOffset,r?gd(r):0))}set(t,n,r,o){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=o}}let Hm=null;function SX(e){if(e.setActive)return e.setActive();if(Hm)return e.focus(Hm);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Hm==null?{get preventScroll(){return Hm={preventScroll:!0},!0}}:void 0),!Hm){Hm=!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 YV;function pv(e,t,n=t){let r=YV||(YV=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function Cy(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 RVe(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 NVe(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,gd(n));;)if(r){if(n.nodeType!=1)return!1;let o=n.childNodes[r-1];o.contentEditable=="false"?r--:(n=o,r=gd(n))}else{if(n==e)return!0;r=ZO(n),n=n.parentNode}}function kX(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class ts{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new ts(t.parentNode,ZO(t),n)}static after(t,n){return new ts(t.parentNode,ZO(t)+1,n)}}const m3=[];class Uo{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=Uo.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=ZV(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=ZV(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=gd(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&&!Uo.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=m3){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}}Uo.prototype.breakAfter=0;function ZV(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 Pl=typeof navigator!="undefined"?navigator:{userAgent:"",vendor:"",platform:""},xR=typeof document!="undefined"?document:{documentElement:{style:{}}};const kR=/Edge\/(\d+)/.exec(Pl.userAgent),PX=/MSIE \d/.test(Pl.userAgent),CR=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Pl.userAgent),GC=!!(PX||CR||kR),UV=!GC&&/gecko\/(\d+)/i.test(Pl.userAgent),oA=!GC&&/Chrome\/(\d+)/.exec(Pl.userAgent),HV="webkitFontSmoothing"in xR.documentElement.style,$X=!GC&&/Apple Computer/.test(Pl.vendor),XV=$X&&(/Mobile\/\w+/.test(Pl.userAgent)||Pl.maxTouchPoints>2);var Fn={mac:XV||/Mac/.test(Pl.platform),windows:/Win/.test(Pl.platform),linux:/Linux|X11/.test(Pl.platform),ie:GC,ie_version:PX?xR.documentMode||6:CR?+CR[1]:kR?+kR[1]:0,gecko:UV,gecko_version:UV?+(/Firefox\/(\d+)/.exec(Pl.userAgent)||[0,0])[1]:0,chrome:!!oA,chrome_version:oA?+oA[1]:0,ios:XV,android:/Android\b/.test(Pl.userAgent),webkit:HV,safari:$X,webkit_version:HV?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:xR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const IVe=256;class vd extends Uo{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 vd)||this.length-(n-t)+r.length>IVe||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 vd(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 ts(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 DVe(this.dom,t,n)}}class md extends Uo{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 md&&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 md(this.mark,n,a)}domAtPos(t){return AX(this,t)}coordsAt(t,n){return RX(this,t,n)}}function DVe(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=pv(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?XC(l,a<0):l||null}class Nh extends Uo{static create(t,n,r){return new Nh(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=Nh.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 Nh)||!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 Nh&&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 ao.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):ao.empty}domAtPos(t){return(this.length?t==0:this.side>0)?ts.before(this.dom):ts.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 XC(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 Ky extends Uo{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof Ky&&t.side==this.side}split(){return new Ky(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?ts.before(this.dom):ts.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ao.empty}get isHidden(){return!0}}vd.prototype.children=Nh.prototype.children=Ky.prototype.children=m3;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 ts(n,0)}function MX(e,t,n){let r,{children:o}=e;n>0&&t instanceof md&&o.length&&(r=o[o.length-1])instanceof md&&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):jVe(e)}function jVe(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=Gy(t);return n[n.length-1]||null}function ER(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 GV=Object.create(null);function y3(e,t,n){if(e==t)return!0;e||(e=GV),t||(t=GV);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 TR(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 LVe(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 Xi extends Uo{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 Xi))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 Xi;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){y3(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=ER(n,this.attrs||{})),r&&(this.attrs=ER({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&&(TR(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&&Uo.get(o)instanceof md;)o=o.lastChild;if(!o||!this.length||o.nodeName!="BR"&&((r=Uo.get(o))===null||r===void 0?void 0:r.isEditable)==!1&&(!Fn.ios||!this.children.some(i=>i instanceof vd))){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 vd)||/[^ -~]/.test(r.text))return null;let o=Gy(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 Xi)return i;if(a>n)break}o=a+i.breakAfter}return null}}class zh extends Uo{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 zh)||!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?ts.before(this.dom):ts.after(this.dom,t==this.length)}split(t){let n=this.length-t;this.length=t;let r=new zh(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return m3}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):ao.empty}domBoundsAround(){return null}become(t){return t instanceof zh&&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 Tf{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 Es=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Es||(Es={}));class Xn extends hv{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 D1(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 up(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 up(t,r,o,n,t.widget||null,!0)}static line(t){return new j1(t)}static set(t,n=!1){return fo.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Xn.none=fo.empty;class D1 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 D1&&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))&&y3(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)}}D1.prototype.point=!1;class j1 extends Xn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof j1&&this.spec.class==t.spec.class&&y3(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)}}j1.prototype.mapMode=Na.TrackBefore;j1.prototype.point=!0;class up 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?Na.TrackBefore:Na.TrackAfter:Na.TrackDel}get type(){return this.startSide!=this.endSide?Es.WidgetRange:this.startSide<=0?Es.WidgetBefore:Es.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof up&&BVe(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)}}up.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 BVe(e,t){return e==t||!!(e&&t&&e.compare(t))}function PR(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 sO{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 zh&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Xi),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(kx(new Ky(-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 zh)&&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(kx(new vd(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 up){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 up)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new zh(r.widget||new KV("div"),s,r));else{let l=Nh.create(r.widget||new KV("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(kx(new Ky(1),o),i),i=o.length+Math.max(0,i-o.length)),p.append(kx(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 sO(t,n,r,i);return a.openEnd=fo.spans(o,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function kx(e,t){for(let n of t)e=new md(n,[e],e.length);return e}class KV extends Tf{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(),$R=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 _2{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 _2(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}const qV=Sr.define({map:(e,t)=>e.map(t)});function fc(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 KC=Rn.define({combine:e=>e.length?e[0]:!0});let VVe=0;const M_=Rn.define();class Ri{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 Ri(VVe++,t,r,o,s=>{let l=[M_.of(s)];return a&&l.push(UO.of(u=>{let d=u.plugin(s);return d?a(d):Xn.none})),i&&l.push(i(s)),l})}static fromClass(t,n){return Ri.define(r=>new t(r),n)}}class iA{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(fc(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){fc(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){fc(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const QX=Rn.define(),b3=Rn.define(),UO=Rn.define(),_3=Rn.define(),WX=Rn.define();function JV(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 fo.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 R_=Rn.define();class xu{constructor(t,n,r,o){this.fromA=t,this.toA=n,this.fromB=r,this.toB=o}join(t){return new xu(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 xu(y+u,w+u,y,w).addToSet(r),v>d)break;i+=2}if(!l)return r;new xu(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),a=l.toA,s=l.toB}}}class O2{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=Ki.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 xu(i,a,s,l))),this.changedRanges=o}static create(t,n,r){return new O2(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 ci=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(ci||(ci={}));const HO=ci.LTR,UX=ci.RTL;function HX(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const FVe=HX("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),zVe=HX("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),AR=Object.create(null),Uc=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);AR[t]=n,AR[n]=-t}function QVe(e){return e<=247?FVe[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?zVe[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8203?256:64336<=e&&e<=65023?4:e==8204?256:1}const WVe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Ih{get dir(){return this.level%2?UX:HO}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 Ao=[];function YVe(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=QVe(e.charCodeAt(u));v==512?v=d:v==8&&p==4&&(v=16),Ao[u]=v==4?2:v,v&7&&(p=v),d=v}for(let u=a,d=l,p=l;u<s;u++){let v=Ao[u];if(v==128)u<s-1&&d==Ao[u+1]&&d&24?v=Ao[u]=d:Ao[u]=256;else if(v==64){let y=u+1;for(;y<s&&Ao[y]==64;)y++;let w=u&&d==8||y<n&&Ao[y]==8?p==1?1:8:256;for(let b=u;b<y;b++)Ao[b]=w;u=y-1}else v==8&&p==1&&(Ao[u]=1);d=v,v&7&&(p=v)}}}function ZVe(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=AR[v=e.charCodeAt(p)])if(y<0){for(let b=s-3;b>=0;b-=3)if(Uc[b+1]==-y){let k=Uc[b+2],C=k&2?o:k&4?k&1?i:o:0;C&&(Ao[p]=Ao[Uc[b]]=C),s=b;break}}else{if(Uc.length==189)break;Uc[s++]=p,Uc[s++]=v,Uc[s++]=l}else if((w=Ao[p])==2||w==1){let b=w==o;l=b?0:1;for(let k=s-3;k>=0;k-=3){let C=Uc[k+2];if(C&2)break;if(b)Uc[k+2]|=2;else{if(C&4)break;Uc[k+2]|=4}}}}}function UVe(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=Ao[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(Ao[d]==256)d++;else break;let p=i==1,v=(d<t?Ao[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),Ao[--w]=y;l=d}else i=u,l++}}}function MR(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=Ao[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(Ao[k]==s)break e;break}}if(u++,v)v.push(b);else{b.from>l&&a.push(new Ih(l,b.from,y));let k=b.direction==HO!=!(y%2);RR(e,k?r+1:r,o,b.inner,b.from,b.to,a),l=b.to}w=b.to}else{if(w==n||(d?Ao[w]!=s:Ao[w]==s))break;w++}v?MR(e,l,w,r+1,o,v,a):l<w&&a.push(new Ih(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=Ao[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(Ao[k-1]==s)break e;break}}if(v)v.push(b);else{b.to<l&&a.push(new Ih(b.to,l,y));let k=b.direction==HO!=!(y%2);RR(e,k?r+1:r,o,b.inner,b.from,b.to,a),l=b.from}w=b.from}else{if(w==t||(d?Ao[w-1]!=s:Ao[w-1]==s))break;w--}v?MR(e,w,l,r+1,o,v,a):w<l&&a.push(new Ih(w,l,y)),l=w}}function RR(e,t,n,r,o,i,a){let s=t%2?2:1;YVe(e,o,i,r,s),ZVe(e,o,i,r,s),UVe(o,i,r,s),MR(e,o,i,t,n,r,a)}function HVe(e,t,n){if(!e)return[new Ih(0,0,t==UX?1:0)];if(t==HO&&!n.length&&!WVe.test(e))return GX(e.length);if(n.length)for(;e.length>Ao.length;)Ao[Ao.length]=256;let r=[],o=t==HO?0:1;return RR(e,o,o,n,0,e.length,r),r}function GX(e){return[new Ih(0,e,0)]}let KX="";function XVe(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=Ih.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=rs(e.text,a,u);if(KX=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 e9 extends Uo{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 Xi],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new xu(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:!n9e(t.changes,this.hasComposition)&&!t.selectionSet&&(o=t.state.selection.main.head));let i=o>-1?KVe(this.view,t.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:d}=this.hasComposition;r=new xu(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=e9e(a,s,t.changes);return r=xu.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 zh&&a.widget instanceof t9&&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 T=sO.build(this.view.state.doc,d,r.range.fromB,this.decorations,this.dynamicDecorationMap),A=sO.build(this.view.state.doc,r.range.toB,p,this.decorations,this.dynamicDecorationMap);y=T.breakAtStart,w=T.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()),T.content.length&&R.merge(0,0,T.content[T.content.length-1],!0,0,T.openEnd)&&T.content.pop(),v=T.content.concat(R).concat(A.content)}else({content:v,breakAtStart:y,openStart:w,openEnd:b}=sO.build(this.view.state.doc,d,p,this.decorations,this.dynamicDecorationMap));let{i:k,off:C}=i.findPos(u,1),{i:P,off:$}=i.findPos(l,-1);EX(this,P,$,k,C,v,y,w,b)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new vd(t.text.nodeValue);n.flags|=8;for(let{deco:o}of t.marks)n=new md(o,[n],n.length);let r=new Xi;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=Uo.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&&bk(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&&GVe(l)){let p=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(p,l.node.childNodes[l.offset]||null)),l=u=new ts(p,0),a=!0}let d=this.view.observer.selectionRange;(a||!d.focusNode||!b2(l.node,l.offset,d.anchorNode,d.anchorOffset)||!b2(u.node,u.offset,d.focusNode,d.focusOffset))&&(this.view.observer.ignore(()=>{Fn.android&&Fn.chrome&&this.dom.contains(d.focusNode)&&t9e(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=y2(this.view.root);if(p)if(s.empty){if(Fn.gecko){let v=qVe(l.node,l.offset);if(v&&v!=3){let y=JX(l.node,l.offset,v==1?1:-1);y&&(l=new ts(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 ts(d.anchorNode,d.anchorOffset),this.impreciseHead=u.precise?null:new ts(d.focusNode,d.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=y2(t.root),{anchorNode:o,anchorOffset:i}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=Xi.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=Uo.get(n.childNodes[o]);i instanceof Xi&&(r=i.domAtPos(0))}for(let o=t.offset-1;!r&&o>=0;o--){let i=Uo.get(n.childNodes[o]);i instanceof Xi&&(r=i.domAtPos(i.length))}return r?new ts(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Uo.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 Xi)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 Xi&&!(r instanceof Xi&&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 Xi))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 vd))return null;let i=rs(o.text,r);if(i==r)return null;let a=pv(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==ci.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?Gy(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"?ci.RTL:ci.LTR}measureTextSize(){for(let i of this.children)if(i instanceof Xi){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=Gy(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 t9(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(UO).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};$Ve(this.view.scrollDOM,a,n.head<n.anchor?-1:1,t.x,t.y,t.xMargin,t.yMargin,this.view.textDirection==ci.LTR)}}function GVe(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 t9 extends Tf{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 qX(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 KVe(e,t,n){let r=qX(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 xu(l.mapPos(i),l.mapPos(a),i,a),d=[];for(let p=o.parentNode;;p=p.parentNode){let v=Uo.get(p);if(v instanceof md)d.push({node:p,deco:v.mark});else{if(v instanceof Xi||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 D1({inclusive:!0,attributes:LVe(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=gd(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 qVe(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 JVe=class{constructor(){this.changes=[]}compareRange(t,n){PR(t,n,this.changes)}comparePoint(t,n){PR(t,n,this.changes)}};function e9e(e,t,n){let r=new JVe;return fo.compare(e,t,n,r),r.changes}function t9e(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 n9e(e,t){let n=!1;return t&&e.iterChangedRanges((r,o)=>{r<t.to&&o>t.from&&(n=!0)}),n}function r9e(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=rs(o.text,i,!1):s=rs(o.text,i);let l=r(o.text.slice(a,s));for(;a>0;){let u=rs(o.text,a,!1);if(r(o.text.slice(u,a))!=l)break;a=u}for(;s<o.length;){let u=rs(o.text,s);if(r(o.text.slice(s,u))!=l)break;s=u}return Dt.range(a+o.from,s+o.from)}function o9e(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function i9e(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function aA(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function n9(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function r9(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function NR(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=Gy(w);for(let k=0;k<b.length;k++){let C=b[k];o&&aA(o,C)&&(C=n9(r9(C,o.bottom),o.top));let P=o9e(t,C),$=i9e(n,C);if(P==0&&$==0)return w.nodeType==3?o9(w,t,n):NR(w,t,n);if(!r||a>$||a==$&&i>P){r=w,o=C,i=P,a=$;let T=$?n<C.top?-1:1:P?t<C.left?-1:1:0;s=!T||(T>0?k<b.length-1:k>0)}P==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&&aA(d,C)?d=r9(d,C.bottom):p&&aA(p,C)&&(p=n9(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 o9(r,v,n);if(s&&r.contentEditable!="false")return NR(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 o9(e,t,n){let r=e.nodeValue.length,o=-1,i=1e9,a=0;for(let s=0;s<r;s++){let l=pv(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)&&pv(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 T=e.viewState.heightOracle.textHeight/2,A=!1;l=e.elementAtHeight(v),l.type!=Es.Text;)for(;v=r>0?l.bottom+T:l.top-T,!(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:i9(e,a,l,d,p);if(y>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:i9(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,P=-1;if(k&&((o=e.docView.nearest(k))===null||o===void 0?void 0:o.isEditable)!=!1){if(w.caretPositionFromPoint){let T=w.caretPositionFromPoint(d,p);T&&({offsetNode:C,offset:P}=T)}else if(w.caretRangeFromPoint){let T=w.caretRangeFromPoint(d,p);T&&({startContainer:C,startOffset:P}=T,(!e.contentDOM.contains(C)||Fn.safari&&a9e(C,P,d)||Fn.chrome&&s9e(C,P,d))&&(C=void 0))}}if(!C||!e.docView.dom.contains(C)){let T=Xi.find(e.docView,y);if(!T)return v>l.top+l.height/2?l.to:l.from;({node:C,offset:P}=NR(T.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 T=$.dom.getBoundingClientRect();return t.y<T.top||t.y<=T.bottom&&t.x<=(T.left+T.right)/2?$.posAtStart:$.posAtEnd}else return $.localPosFromDOM(C,P)+$.posAtStart}function i9(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+_R(a,i,e.state.tabSize)}function a9e(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 pv(e,r-1,r).getBoundingClientRect().left>n}function s9e(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():pv(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function IR(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==Es.Text))return r}return n}function l9e(e,t,n,r){let o=IR(e,t.head),i=!r||o.type!=Es.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==ci.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 a9(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=XVe(o,i,a,s,n),d=KX;if(!u){if(o.number==(n?e.state.doc.lines:1))return s;d=`
- `,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 u9e(e,t,n){let r=e.state.charCategorizer(t),o=r(n);return i=>{let a=r(i);return o==ni.Space&&(o=a),o==a}}function c9e(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 _k(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 sA(e,t,n){let r=_k(e.state.facet(_3).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 f9e{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&&E9e(t.contentDOM.ownerDocument)}handleEvent(t){!b9e(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=d9e(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||h9e.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,Cy(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 s9(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(o){fc(n.state,o)}}}function d9e(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(s9(r.value,a))}if(o&&o.domEventObservers)for(let i in o.domEventObservers){let a=o.domEventObservers[i];a&&n(i).observers.push(s9(r.value,a))}}for(let r in vf)n(r).handlers.push(vf[r]);for(let r in pc)n(r).observers.push(pc[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"}],h9e="dthko",nG=[16,17,18,20,91,92,224,225],Cx=6;function Ex(e){return Math.max(0,e)*.7+8}function p9e(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class g9e{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=AVe(t.contentDOM),this.atoms=t.state.facet(_3).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(Br.allowMultipleSelections)&&v9e(t,n),this.dragging=y9e(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&&p9e(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+Cx?r=-Ex(i.left-t.clientX):t.clientX+a.right>=i.right-Cx&&(r=Ex(t.clientX-i.right)),t.clientY-a.top<=i.top+Cx?o=-Ex(i.top-t.clientY):t.clientY+a.bottom>=i.bottom-Cx&&(o=Ex(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=_k(this.atoms,o.from,0);a!=o.from&&(i=Dt.cursor(a,-1))}else{let a=_k(this.atoms,o.from,-1),s=_k(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 v9e(e,t){let n=e.state.facet(IX);return n.length?n[0](t):Fn.mac?t.metaKey:t.ctrlKey}function m9e(e,t){let n=e.state.facet(DX);return n.length?n[0](t):Fn.mac?!t.altKey:!t.ctrlKey}function y9e(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=y2(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 b9e(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=Uo.get(n))&&r.ignoreEvent(t))return!1;return!0}const vf=Object.create(null),pc=Object.create(null),rG=Fn.ie&&Fn.ie_version<15||Fn.ios&&Fn.webkit_version<604;function _9e(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(DR!=null&&n.selection.ranges.every(l=>l.empty)&&DR==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})}pc.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};vf.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);pc.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};pc.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};vf.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=S9e(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new g9e(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 l9(e,t,n,r){if(r==1)return Dt.cursor(t,n);if(r==2)return r9e(e.state,t,n);{let o=Xi.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,u9=(e,t,n)=>iG(t,n)&&e>=n.left&&e<=n.right;function O9e(e,t,n,r){let o=Xi.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&&u9(n,r,a))return-1;let s=o.coordsAt(i,1);return s&&u9(n,r,s)?1:a&&iG(r,a)?-1:1}function c9(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:O9e(e,n,t.clientX,t.clientY)}}const w9e=Fn.ie&&Fn.ie_version<=11;let f9=null,d9=0,h9=0;function aG(e){if(!w9e)return e.detail;let t=f9,n=h9;return f9=e,h9=Date.now(),d9=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(d9+1)%3:1}function S9e(e,t){let n=c9(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=c9(e,i),u,d=l9(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let p=l9(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=x9e(o,l.pos))?u:s?o.addRange(d):Dt.create([d])}}}function x9e(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}vf.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 p9(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&&m9e(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"})}vf.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&&p9(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 p9(e,t,r,!0),!0}return!1};vf.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):(_9e(e),!1)};function k9e(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 C9e(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 DR=null;vf.copy=vf.cut=(e,t)=>{let{text:n,ranges:r,linewise:o}=C9e(e.state);if(!n&&!o)return!1;DR=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):(k9e(e,n),!1)};const sG=$d.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)}pc.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)};pc.blur=e=>{e.observer.clearSelectionRange(),uG(e)};pc.compositionstart=pc.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};pc.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)};pc.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};vf.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 g9=new Set;function E9e(e){g9.has(e)||(g9.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const v9=["pre-wrap","normal","pre-line","break-spaces"];class T9e{constructor(t){this.lineWrapping=t,this.doc=ao.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 v9.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=v9.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 P9e{constructor(t,n){this.from=t,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class nf{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"?Es.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 up?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 nf(this.from,this.length+t.length,this.top,this.height+t.height,n)}}var Yo=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Yo||(Yo={}));const Ok=.001;class Ts{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)>Ok&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return Ts.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,Yo.ByPosNoHeight,r.setDoc(n),0,0),y=v.to>=u?v:i.lineAt(u,Yo.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,Yo.ByPosNoHeight,r,0,0));d+=v.from-l,l=v.from;let w=O3.build(r.setDoc(a),t,d,p);i=i.replace(l,u,w)}return i.updateHeight(r,0)}static empty(){return new El(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 $9e(Ts.of(t.slice(0,n)),a,Ts.of(t.slice(r)))}}Ts.prototype.size=1;class cG extends Ts{constructor(t,n,r){super(t,n),this.deco=r}blockAt(t,n,r,o){return new nf(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 El 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 nf(o,this.length,r,this.height,this.breaks)}replace(t,n,r){let o=r[0];return r.length==1&&(o instanceof El||o instanceof $a&&o.flags&4)&&Math.abs(this.length-o.length)<10?(o instanceof $a?o=new El(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):Ts.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 $a extends Ts{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 nf(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 nf(d,p,r+s*u,s,0)}}lineAt(t,n,r,o,i){if(n==Yo.ByHeight)return this.blockAt(t,r,o,i);if(n==Yo.ByPosNoHeight){let{from:y,to:w}=r.doc.lineAt(t);return new nf(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 nf(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 nf(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 $a?r[r.length-1]=new $a(i.length+o):r.push(null,new $a(o-1))}if(t>0){let i=r[0];i instanceof $a?r[0]=new $a(t+i.length):r.unshift(new $a(t-1),null)}return Ts.of(r)}decomposeLeft(t,n){n.push(new $a(t-1),null)}decomposeRight(t,n){n.push(null,new $a(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 $a(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)>=Ok&&(l=-2);let v=new El(d,p);v.outdated=!1,a.push(v),s+=d+1}s<=i&&a.push(null,new $a(i-s).updateHeight(t,s));let u=Ts.of(a);return(l<0||Math.abs(u.height-this.height)>=Ok||Math.abs(l-this.heightMetrics(t,n).perLine)>=Ok)&&(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 $9e extends Ts{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==Yo.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==Yo.ByPosNoHeight?Yo.ByPosNoHeight:Yo.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,Yo.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&&m9(i,a-1),n<this.length){let s=i.length;this.decomposeRight(n,i),m9(i,s)}return Ts.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?Ts.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 m9(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof $a&&(r=e[t+1])instanceof $a&&e.splice(t-1,3,new $a(n.length+1+r.length))}const A9e=5;class O3{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 El?o.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new El(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>=A9e)&&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 El(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new $a(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 El)return t;let n=new El(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 El)&&!this.isCovered?this.nodes.push(new El(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 El&&o.updateHeight(this.oracle,r),r+=o?o.length:1;return this.nodes}static build(t,n,r,o){let i=new O3(r,t);return fo.spans(n,r,o,i,0),i.finish(r)}}function M9e(e,t,n){let r=new R9e;return fo.compare(e,t,n,r,0),r.changes}class R9e{constructor(){this.changes=[]}compareRange(){}comparePoint(t,n,r,o){(t<n||r&&r.heightRelevant||o&&o.heightRelevant)&&PR(t,n,this.changes,5)}}function N9e(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 I9e(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class lA{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 D9e(this.size*(n?t.scaleY:t.scaleX),n)}).range(this.from,this.to)}}class D9e extends Tf{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 y9{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=b9,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=ci.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(b3).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new T9e(n),this.stateDeco=t.facet(UO).filter(r=>typeof r!="function"),this.heightMap=Ts.empty().applyChanges(this.stateDeco,ao.empty,this.heightOracle.setDoc(t.doc),[new xu(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 Tx(i,a))}}this.viewports=t.sort((r,o)=>r.from-o.from),this.scaler=this.heightMap.height<=7e6?b9:new B9e(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:N_(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(UO).filter(d=>typeof d!="function");let o=t.changedRanges,i=xu.extendWithRanges(o,M9e(r,this.stateDeco,t?t.changes:Ki.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"?ci.RTL:ci.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 T=s.width/n.offsetWidth,A=s.height/n.offsetHeight;(T>.995&&T<1.005||!isFinite(T)||Math.abs(s.width-n.offsetWidth)<1)&&(T=1),(A>.995&&A<1.005||!isFinite(A)||Math.abs(s.height-n.offsetHeight)<1)&&(A=1),(this.scaleX!=T||this.scaleY!=A)&&(this.scaleX=T,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?I9e:N9e)(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 P=s.width;if((this.contentDOMWidth!=P||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let T=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(T)&&(a=!0),a||o.lineWrapping&&Math.abs(P-this.contentDOMWidth)>o.charWidth){let{lineHeight:A,charWidth:R,textHeight:B}=t.docView.measureTextSize();a=A>0&&o.refresh(i,A,R,B,P/R,T),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?T:t.docView.measureVisibleLineHeights(A);this.heightMap=(a?Ts.empty().applyChanges(this.stateDeco,ao.empty,this.heightOracle,[new xu(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,a,new P9e(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 Tx(o.lineAt(a-r*1e3,Yo.ByHeight,i,0,0).from,o.lineAt(s+(1-r)*1e3,Yo.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,Yo.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 Tx(o.lineAt(v-1e3/2,Yo.ByHeight,i,0,0).from,o.lineAt(v+d+1e3/2,Yo.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 Tx(this.heightMap.lineAt(r,Yo.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(o,Yo.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,Yo.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(n,Yo.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 lA(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!=ci.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=L9e(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 lA(u,d,this.gapSize(p,u,d,v))}s.push(b)};for(let u of this.viewportLines){if(u.length<a)continue;let d=j9e(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=$x(d,p),P=((this.visibleBottom-this.visibleTop)/2+w)/u.height;b=C-P,k=C+P}else b=(this.visibleTop-u.top-w)/u.height,k=(this.visibleBottom-u.top+w)/u.height;v=Px(d,b),y=Px(d,k)}else{let w=d.total*this.heightOracle.charWidth,b=o*this.heightOracle.charWidth,k,C;if(p!=null){let P=$x(d,p),$=((this.pixelViewport.right-this.pixelViewport.left)/2+b)/w;k=P-$,C=P+$}else k=(this.pixelViewport.left-b)/w,C=(this.pixelViewport.right+b)/w;v=Px(d,k),y=Px(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=$x(o,r)-$x(o,n);return this.heightOracle.lineWrapping?t.height*i:o.total*this.heightOracle.charWidth*i}updateLineGaps(t){lA.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=[];fo.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)||N_(this.heightMap.lineAt(t,Yo.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return N_(this.heightMap.lineAt(this.scaler.fromDOM(t),Yo.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 N_(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 Tx{constructor(t,n){this.from=t,this.to=n}}function j9e(e,t,n){let r=[],o=e,i=0;return fo.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 Px({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 $x(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 L9e(e,t){for(let n of e)if(t(n))return n}const b9={toDOM(e){return e},fromDOM(e){return e},scale:1};class B9e{constructor(t,n,r){let o=0,i=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,Yo.ByPos,t,0,0).top,d=n.lineAt(l,Yo.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 N_(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new nf(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(o=>N_(o,t)):e._content)}const Ax=Rn.define({combine:e=>e.join(" ")}),jR=Rn.define({combine:e=>e.indexOf(!0)>-1}),LR=sp.newName(),fG=sp.newName(),dG=sp.newName(),hG={"&light":"."+fG,"&dark":"."+dG};function BR(e,t,n){return new sp(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 V9e=BR("."+LR,{"&":{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),I_="\uFFFF";class F9e{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Br.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=I_}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=Uo.get(o),l=Uo.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:_9(o))||_9(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=Uo.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+(z9e(t,r.node,r.offset)?n:0))}}function z9e(e,t,n){for(;;){if(!t||n<gd(t))return!1;if(t==e)return!0;n=ZO(t)+1,t=t.parentNode}}function _9(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class O9{constructor(t,n){this.node=t,this.offset=n,this.pos=-1}}class Q9e{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?[]:Z9e(t),l=new F9e(s,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=U9e(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=i&&i.node==s.focusNode&&i.offset==s.focusOffset||!SR(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||!SR(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=Y9e(e.state.doc.sliceString(a,s,I_),t.text,l-a,u);d&&(Fn.chrome&&i==13&&d.toB==d.from+2&&t.text.slice(d.from,d.toB)==I_+I_&&d.toB--,n={from:a+d.from,to:a+d.toA,insert:ao.of(t.text.slice(d.from,d.toB).split(I_))})}else r&&(!e.hasFocus&&e.state.facet(KC)||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:ao.of([" "])}):Fn.chrome&&n&&n.from==n.to&&n.from==o.head&&n.insert.toString()==`
- `&&e.lineWrapping&&(r&&(r=Dt.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:ao.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&&Cy(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)&&Cy(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&n.insert.length==0&&Cy(e.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,l=()=>s||(s=W9e(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 W9e(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&&qX(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}),P=w.to-i.to;return{changes:C,range:l?Dt.range(Math.max(0,l.anchor+P),Math.max(0,l.head+P)):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 Y9e(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 Z9e(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 O9(n,r)),(o!=n||i!=r)&&t.push(new O9(o,i))),t}function U9e(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 H9e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},uA=Fn.ie&&Fn.ie_version<=11;class X9e{constructor(t){this.view=t,this.active=!1,this.selectionRange=new MVe,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()}),uA&&(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(KC)?r.root.activeElement!=this.dom:!bk(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&&b2(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&&TVe(this.dom.ownerDocument)==this.dom&&G9e(this.view)||y2(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=bk(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&NVe(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,H9e),uA&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){!this.active||(this.active=!1,this.observer.disconnect(),uA&&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&&Cy(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&&bk(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 Q9e(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=w9(n,t.previousSibling||t.target.previousSibling,-1),o=w9(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 w9(e,t,n){for(;t;){let r=Uo.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 G9e(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 b2(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||RVe(t.parent)||document,this.viewState=new y9(t.state||Br.create(t)),this.plugins=this.state.facet(M_).map(r=>new iA(r));for(let r of this.plugins)r.update(this);this.observer=new X9e(this),this.inputState=new f9e(this),this.inputState.ensureHandlers(this.plugins),this.docView=new e9(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(Br.phrases)!=this.state.facet(Br.phrases))return this.setState(i);o=O2.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 _2(y.empty?y:Dt.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of v.effects)y.is(qV)&&(p=y.value)}this.viewState.update(o,p),this.bidiCache=w2.update(this.bidiCache,o.changes),o.empty||(this.updatePlugins(o),this.inputState.update(o)),n=this.docView.update(o),this.state.facet(R_)!=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(Ax)!=o.state.facet(Ax)&&(this.viewState.mustMeasureContent=!0),(n||r||p||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!o.empty)for(let v of this.state.facet($R))v(o);(l||d)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),d&&!pG(this,d)&&u.force&&Cy(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 y9(t),this.plugins=t.facet(M_).map(r=>new iA(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView=new e9(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(M_),r=t.state.facet(M_);if(n!=r){let o=[];for(let i of r){let a=n.indexOf(i);if(a<0)o.push(new iA(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 fc(this.state,w),S9}}),p=O2.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]!=S9)try{let w=u[y];w.write&&w.write(d[y],this)}catch(w){fc(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($R))s(n)}get themeClasses(){return LR+" "+(this.state.facet(jR)?dG:fG)+" "+this.state.facet(Ax)}updateAttrs(){let t=x9(this,QX,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(KC)?"true":"false",class:"cm-content",style:`${Fn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),x9(this,b3,n);let r=this.observer.ignore(()=>{let o=TR(this.contentDOM,this.contentAttrs,n),i=TR(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(R_);let t=this.state.facet(xn.cspNonce);sp.mount(this.root,this.styleModules.concat(V9e).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 sA(this,t,a9(this,t,n,r))}moveByGroup(t,n){return sA(this,t,a9(this,t,n,r=>u9e(this,t.head,r)))}moveToLineBoundary(t,n,r=!0){return l9e(this,t,n,r)}moveVertically(t,n,r){return sA(this,t,c9e(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[Ih.find(i,t-o.from,-1,n)];return XC(r,a.dir==ci.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>K9e)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=JV(this,t.from,t.to))))return i.order;r||(r=JV(this,t.from,t.to));let o=HVe(t.text,n,r);return this.bidiCache.push(new w2(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 qV.of(new _2(typeof t=="number"?Dt.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}static domEventHandlers(t){return Ri.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Ri.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=sp.newName(),o=[Ax.of(r),R_.of(BR(`.${r}`,t))];return n&&n.dark&&o.push(jR.of(!0)),o}static baseTheme(t){return xv.lowest(R_.of(BR("."+LR,t,hG)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),o=r&&Uo.get(r)||Uo.get(t);return((n=o==null?void 0:o.rootView)===null||n===void 0?void 0:n.view)||null}}xn.styleModule=R_;xn.inputHandler=BX;xn.focusChangeEffect=VX;xn.perLineTextDirection=FX;xn.exceptionSink=LX;xn.updateListener=$R;xn.editable=KC;xn.mouseSelectionStyle=jX;xn.dragMovesSelection=DX;xn.clickAddsSelectionRange=IX;xn.decorations=UO;xn.atomicRanges=_3;xn.bidiIsolatedRanges=WX;xn.scrollMargins=YX;xn.darkTheme=jR;xn.cspNonce=Rn.define({combine:e=>e.length?e[0]:""});xn.contentAttributes=b3;xn.editorAttributes=QX;xn.lineWrapping=xn.contentAttributes.of({class:"cm-lineWrapping"});xn.announce=Sr.define();const K9e=4096,S9={};class w2{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:ci.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 w2(n.mapPos(a.from,1),n.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return r}}function x9(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&&ER(a,n)}return n}const q9e=Fn.mac?"mac":Fn.windows?"win":Fn.linux?"linux":"key";function J9e(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 Mx(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 eFe=xv.default(xn.domEventHandlers({keydown(e,t){return vG(gG(t.state),e,t,"editor")}})),L1=Rn.define({enables:eFe}),k9=new WeakMap;function gG(e){let t=e.facet(L1),n=k9.get(t);return n||k9.set(t,n=rFe(t.reduce((r,o)=>r.concat(o),[]))),n}function tFe(e,t,n){return vG(gG(e.state),t,e,n)}let Ph=null;const nFe=4e3;function rFe(e,t=q9e){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=>J9e(C,t));for(let C=1;C<w.length;C++){let P=w.slice(0,C).join(" ");o(P,!0),y[P]||(y[P]={preventDefault:!0,stopPropagation:!1,run:[$=>{let T=Ph={view:$,prefix:P,scope:a};return setTimeout(()=>{Ph==T&&(Ph=null)},nFe),!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=EVe(t),i=Aa(o,0),a=pu(i)==o.length&&o!=" ",s="",l=!1,u=!1,d=!1;Ph&&Ph.view==n&&Ph.scope==r&&(s=Ph.prefix+" ",nG.indexOf(t.keyCode)<0&&(u=!0,Ph=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+Mx(o,t,!a)])?l=!0:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Fn.windows&&t.ctrlKey&&t.altKey)&&(w=lp[t.keyCode])&&w!=o?(v(y[s+Mx(w,t,!0)])||t.shiftKey&&(b=YO[t.keyCode])!=o&&b!=w&&v(y[s+Mx(b,t,!1)]))&&(l=!0):a&&t.shiftKey&&v(y[s+Mx(o,t,!0)])&&(l=!0),!l&&v(y._any)&&(l=!0)),u&&(l=!0),l&&d&&t.stopPropagation(),l}class B1{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 B1(n,o.left-i.left,o.top-i.top,null,o.bottom-o.top)]}else return oFe(t,n,r)}}function mG(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==ci.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function C9(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:Es.Text}}function oFe(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==ci.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=IR(e,r),w=IR(e,o),b=y.type==Es.Text?y:null,k=w.type==Es.Text?w:null;if(b&&(e.lineWrapping||y.widgetLineBreaks)&&(b=C9(e,r,b)),k&&(e.lineWrapping||w.widgetLineBreaks)&&(k=C9(e,o,k)),b&&k&&b.from==k.from)return P($(n.from,n.to,b));{let A=b?$(n.from,null,b):T(y,!1),R=k?$(null,n.to,k):T(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==Es.Text&&(A.bottom=R.top=(A.bottom+R.top)/2),P(A).concat(B).concat(P(R))}function C(A,R,B,N){return new B1(t,A-l.left,R-l.top-.01,B-A,N-R+.01)}function P({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 j(ae,K,H,oe,J){let z=e.coordsAtPos(ae,ae==B.to?-2:2),X=e.coordsAtPos(H,H==B.from?2:-2);!z||!X||(N=Math.min(z.top,X.top,N),I=Math.max(z.bottom,X.bottom,I),J==ci.LTR?D.push(i&&K?p:z.left,i&&oe?v:X.right):D.push(!i&&oe?p:X.left,!i&&K?v:z.right))}let F=A!=null?A:B.from,G=R!=null?R:B.to;for(let ae of e.visibleRanges)if(ae.to>F&&ae.from<G)for(let K=Math.max(ae.from,F),H=Math.min(ae.to,G);;){let oe=e.state.doc.lineAt(K);for(let J of e.bidiSpans(oe)){let z=J.from+oe.from,X=J.to+oe.from;if(z>=H)break;X>K&&j(Math.max(z,K),A==null&&z<=F,Math.min(X,H),R==null&&X>=G,J.dir)}if(K=oe.to+1,K>=H)break}return D.length==0&&j(F,A==null,G,R==null,e.textDirection),{top:N,bottom:I,horizontal:D}}function T(A,R){let B=s.top+(R?A.top:A.bottom);return{top:B,bottom:B,horizontal:[]}}}function iFe(e,t){return e.constructor==t.constructor&&e.eq(t)}class aFe{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(wk)!=t.state.facet(wk)&&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(wk);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)=>!iFe(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 wk=Rn.define();function yG(e){return[Ri.define(t=>new aFe(t,e)),wk.of(e)]}const bG=!Fn.ios,XO=Rn.define({combine(e){return Ef(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function sFe(e={}){return[XO.of(e),lFe,uFe,cFe,zX.of(!0)]}function _G(e){return e.startState.facet(XO)!=e.state.facet(XO)}const lFe=yG({above:!0,markers(e){let{state:t}=e,n=t.facet(XO),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 B1.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&&E9(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){E9(t.state,e)},class:"cm-cursorLayer"});function E9(e,t){t.style.animationDuration=e.facet(XO).cursorBlinkRate+"ms"}const uFe=yG({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:B1.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 cFe=xv.highest(xn.theme(OG)),wG=Sr.define({map(e,t){return e==null?null:t.mapPos(e)}}),D_=ga.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)}}),fFe=Ri.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(D_);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(D_)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(D_),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(D_)!=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 dFe(){return[D_,fFe]}function T9(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 hFe(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 pFe{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 ap,r=n.add.bind(n);for(let{from:o,to:i}of hFe(t,this.maxLength))T9(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 T9(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 VR=/x/.unicode!=null?"gu":"g",gFe=new RegExp(`[\0-\b
- -\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,VR),vFe={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 cA=null;function mFe(){var e;if(cA==null&&typeof document!="undefined"&&document.body){let t=document.body.style;cA=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return cA||!1}const Sk=Rn.define({combine(e){let t=Ef(e,{render:null,specialChars:gFe,addSpecialChars:null});return(t.replaceTabs=!mFe())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,VR)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,VR)),t}});function yFe(e={}){return[Sk.of(e),bFe()]}let P9=null;function bFe(){return P9||(P9=Ri.fromClass(class{constructor(e){this.view=e,this.decorations=Xn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Sk)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new pFe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:o}=n.state,i=Aa(t[0],0);if(i==9){let a=o.lineAt(r),s=n.state.tabSize,l=x0(a.text,s,r-a.from);return Xn.replace({widget:new SFe((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=Xn.replace({widget:new wFe(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Sk);e.startState.facet(Sk)!=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 _Fe="\u2022";function OFe(e){return e>=32?_Fe:e==10?"\u2424":String.fromCharCode(9216+e)}class wFe extends Tf{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=OFe(this.code),r=t.state.phrase("Control character")+" "+(vFe[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 SFe extends Tf{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 xFe(){return CFe}const kFe=Xn.line({class:"cm-activeLine"}),CFe=Ri.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(kFe.range(o.from)),t=o.from)}return Xn.set(n)}},{decorations:e=>e.decorations});class EFe extends Tf{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?Gy(t.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(t.parentNode),o=XC(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 TFe(e){return Ri.fromClass(class{constructor(t){this.view=t,this.placeholder=e?Xn.set([Xn.widget({widget:new EFe(e),side:1}).range(0)]):Xn.none}get decorations(){return this.view.state.doc.length?Xn.none:this.placeholder}},{decorations:t=>t.decorations})}const FR=2e3;function PFe(e,t,n){let r=Math.min(t.line,n.line),o=Math.max(t.line,n.line),i=[];if(t.off>FR||n.off>FR||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=_R(u.text,a,e.tabSize,!0);if(d<0)i.push(Dt.cursor(u.to));else{let p=_R(u.text,s,e.tabSize);i.push(Dt.range(u.from+d,u.from+p))}}}return i}function $Fe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function $9(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>FR?-1:o==r.length?$Fe(e,t.clientX):x0(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:i,off:o}}function AFe(e,t){let n=$9(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=$9(e,o);if(!s)return r;let l=PFe(e.state,n,s);return l.length?a?Dt.create(l.concat(r.ranges)):Dt.create(l):r}}:null}function MFe(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return xn.mouseSelectionStyle.of((n,r)=>t(r)?AFe(n,r):null)}const RFe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},NFe={style:"cursor: crosshair"};function IFe(e={}){let[t,n]=RFe[e.key||"Alt"],r=Ri.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?NFe:null})]}const Rx="-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 DFe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const fA=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)||DFe}}}),A9=new WeakMap,xG=Ri.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(fA);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,w3,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(fA);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=Rx,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(fA).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=Rx;continue}let y=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,w=y?7:0,b=v.right-v.left,k=(t=A9.get(u))!==null&&t!==void 0?t:v.bottom-v.top,C=u.offset||LFe,P=this.view.textDirection==ci.LTR,$=v.width>r.right-r.left?P?r.left:r.right-v.width:P?Math.min(p.left-(y?14:0)+C.x,r.right-b):Math.max(r.left,p.left-b+(y?14:0)-C.x),T=this.above[s];!l.strictSide&&(T?p.top-(v.bottom-v.top)-C.y<r.top:p.bottom+(v.bottom-v.top)+C.y>r.bottom)&&T==r.bottom-p.bottom>p.top-r.top&&(T=this.above[s]=!T);let A=(T?p.top-r.top:r.bottom-p.bottom)-w;if(A<k&&u.resize!==!1){if(A<this.view.defaultLineHeight){d.style.top=Rx;continue}A9.set(u,k),d.style.height=(k=A)/i+"px"}else d.style.height&&(d.style.height="");let R=T?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=T?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+(P?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",T),d.classList.toggle("cm-tooltip-below",!T),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=Rx}},{eventObservers:{scroll(){this.maybeMeasure()}}}),jFe=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"}}}),LFe={x:0,y:0},w3=Rn.define({enables:[xG,jFe]}),S2=Rn.define();class S3{static create(t){return new S3(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,S2,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 BFe=w3.compute([S2],e=>{let t=e.facet(S2).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:S3.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class VFe{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 Nh)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==ci.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=>fc(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&&!M9(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:!FFe(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&&!M9(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 M9(e){for(let t=e;t;t=t.parentNode)if(t.nodeType==1&&t.classList.contains("cm-tooltip"))return!0;return!1}function FFe(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 zFe(e,t={}){let n=Sr.define(),r=ga.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,Na.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(QFe)&&(o=null);return o},provide:o=>S2.from(o)});return[r,Ri.define(o=>new VFe(o,e,r,n,t.hoverTime||300)),BFe]}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 QFe=Sr.define(),R9=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 GO(e,t){let n=e.plugin(CG),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const CG=Ri.fromClass(class{constructor(e){this.input=e.state.facet(KO),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(R9);this.top=new Nx(e,!0,t.topContainer),this.bottom=new Nx(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(R9);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Nx(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Nx(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(KO);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 Nx{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=N9(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=N9(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 N9(e){let t=e.nextSibling;return e.remove(),t}const KO=Rn.define({enables:CG});class yd extends hv{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}yd.prototype.elementClass="";yd.prototype.toDOM=void 0;yd.prototype.mapMode=Na.TrackBefore;yd.prototype.startSide=yd.prototype.endSide=-1;yd.prototype.point=!0;const xk=Rn.define(),WFe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>fo.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},lO=Rn.define();function YFe(e){return[EG(),lO.of(Object.assign(Object.assign({},WFe),e))]}const zR=Rn.define({combine:e=>e.some(t=>t)});function EG(e){let t=[ZFe];return e&&e.fixed===!1&&t.push(zR.of(!0)),t}const ZFe=Ri.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(lO).map(t=>new D9(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(zR),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(zR)!=!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=fo.iter(this.view.state.facet(xk),this.view.viewport.from),r=[],o=this.gutters.map(i=>new UFe(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==Es.Text&&a){QR(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==Es.Text){QR(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(lO),n=e.state.facet(lO),r=e.docChanged||e.heightChanged||e.viewportChanged||!fo.eq(e.startState.facet(xk),e.state.facet(xk),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 D9(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==ci.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function I9(e){return Array.isArray(e)?e:[e]}function QR(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class UFe{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=fo.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=[];QR(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 D9{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=I9(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=I9(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!fo.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":""),HFe(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 HFe(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 XFe=Rn.define(),ly=Rn.define({combine(e){return Ef(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 dA extends yd{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function hA(e,t){return e.state.facet(ly).formatNumber(t,e.state)}const GFe=lO.compute([ly],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(XFe)},lineMarker(t,n,r){return r.some(o=>o.toDOM)?null:new dA(hA(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(ly)!=t.state.facet(ly),initialSpacer(t){return new dA(hA(t,j9(t.state.doc.lines)))},updateSpacer(t,n){let r=hA(n.view,j9(n.view.state.doc.lines));return r==t.number?t:new dA(r)},domEventHandlers:e.facet(ly).domEventHandlers}));function KFe(e={}){return[ly.of(e),EG(),GFe]}function j9(e){let t=9;for(;t<e;)t=t*10+9;return t}const qFe=new class extends yd{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},JFe=xk.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(qFe.range(o)))}return fo.of(t)});function eze(){return JFe}const PG=1024;let tze=0;class pA{constructor(t,n){this.from=t,this.to=n}}class Ur{constructor(t={}){this.id=tze++,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=nl.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Ur.closedBy=new Ur({deserialize:e=>e.split(" ")});Ur.openedBy=new Ur({deserialize:e=>e.split(" ")});Ur.group=new Ur({deserialize:e=>e.split(" ")});Ur.contextHash=new Ur({perNode:!0});Ur.lookAhead=new Ur({perNode:!0});Ur.mounted=new Ur({perNode:!0});class x2{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Ur.mounted.id]}}const nze=Object.create(null);class nl{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):nze,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),o=new nl(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(Ur.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(Ur.group),i=-1;i<(o?o.length:0);i++){let a=n[i<0?r.name:o[i]];if(a)return a}}}}nl.none=new nl("",Object.create(null),0,8);class x3{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 nl(r.name,o,r.id,r.flags):r)}return new x3(n)}}const Ix=new WeakMap,L9=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 Fi{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=x2.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 YR(this.topNode,t)}cursorAt(t,n=0,r=0){let o=Ix.get(this)||this.topNode,i=new YR(o);return i.moveTo(t,n),Ix.set(this,i._tree),i}get topNode(){return new el(this,0,0,null)}resolve(t,n=0){let r=qO(Ix.get(this)||this.topNode,t,n,!1);return Ix.set(this,r),r}resolveInner(t,n=0){let r=qO(L9.get(this)||this.topNode,t,n,!0);return L9.set(this,r),r}resolveStack(t,n=0){return ize(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:E3(nl.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,o)=>new Fi(this.type,n,r,o,this.propValues),t.makeTree||((n,r,o)=>new Fi(nl.none,n,r,o)))}static build(t){return aze(t)}}Fi.empty=new Fi(nl.none,[],[],0);class k3{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 k3(this.buffer,this.index)}}class kv{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return nl.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 kv(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 el&&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 el&&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 YR(this,t)}getChild(t,n=null,r=null){let o=B9(this,t,n,r);return o.length?o[0]:null}getChildren(t,n=null,r=null){return B9(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 WR(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 el 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 kv){if(i&qi.ExcludeBuffers)continue;let v=d.findChild(0,d.buffer.length,n,r-p,o);if(v>-1)return new of(new rze(a,d,t,p),null,v)}else if(i&qi.IncludeAnonymous||!d.type.isAnonymous||C3(d)){let v;if(!(i&qi.IgnoreMounts)&&(v=x2.get(d))&&!v.overlay)return new el(v.tree,p,t,a);let y=new el(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=x2.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 el(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 B9(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 WR(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 rze{constructor(t,n,r,o){this.parent=t,this.buffer=n,this.index=r,this.start=o}}class of 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 of(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 of(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 of(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 of(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 Fi(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 el&&n.index<0?null:n.parent,o=e.slice();return r?o[t]=r:o.splice(t,1),new oze(o,n)}class oze{constructor(t,n){this.heads=t,this.node=n}get next(){return MG(this.heads)}}function ize(e,t,n){let r=e.resolveInner(t,n),o=null;for(let i=r instanceof el?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=x2.get(i.tree);if(a&&a.overlay&&a.overlay[0].from<=t&&a.overlay[a.overlay.length-1].to>=t){let s=new el(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 YR{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 el)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 el?(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 kv||!s.type.isAnonymous||C3(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 of(this.buffer,n,this.stack[o]);return this.bufferNode=new of(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 WR(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 WR(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 C3(e){return e.children.some(t=>t instanceof kv||!t.type.isAnonymous||C3(t))}function aze(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:o=PG,reused:i=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new k3(n,n.length):n,l=r.types,u=0,d=0;function p(T,A,R,B,N){let{id:I,start:D,end:j,size:F}=s,G=d;for(;F<0;)if(s.next(),F==-1){let J=i[I];R.push(J),B.push(D-T);return}else if(F==-3){u=I;return}else if(F==-4){d=I;return}else throw new RangeError(`Unrecognized record size: ${F}`);let ae=l[I],K,H,oe=D-T;if(j-D<=o&&(H=b(s.pos-A,N))){let J=new Uint16Array(H.size-H.skip),z=s.pos-H.size,X=J.length;for(;s.pos>z;)X=k(H.start,J,X);K=new kv(J,j-H.start,r),oe=H.start-T}else{let J=s.pos-F;s.next();let z=[],X=[],ee=I>=a?I:-1,he=0,fe=j;for(;s.pos>J;)ee>=0&&s.id==ee&&s.size>=0?(s.end<=fe-o&&(y(z,X,D,he,s.end,fe,ee,G),he=z.length,fe=s.end),s.next()):p(D,J,z,X,ee);if(ee>=0&&he>0&&he<z.length&&y(z,X,D,he,D,fe,ee,G),z.reverse(),X.reverse(),ee>-1&&he>0){let Le=v(ae);K=E3(ae,z,X,0,z.length,0,j-D,Le,Le)}else K=w(ae,z,X,j-D,G-j)}R.push(K),B.push(oe)}function v(T){return(A,R,B)=>{let N=0,I=A.length-1,D,j;if(I>=0&&(D=A[I])instanceof Fi){if(!I&&D.type==T&&D.length==B)return D;(j=D.prop(Ur.lookAhead))&&(N=R[I]+D.length+j)}return w(T,A,R,B,N)}}function y(T,A,R,B,N,I,D,j){let F=[],G=[];for(;T.length>B;)F.push(T.pop()),G.push(A.pop()+R-N);T.push(w(r.types[D],F,G,I-N,j-I)),A.push(N-R)}function w(T,A,R,B,N=0,I){if(u){let D=[Ur.contextHash,u];I=I?[D].concat(I):[D]}if(N>25){let D=[Ur.lookAhead,N];I=I?[D].concat(I):[D]}return new Fi(T,A,R,B,I)}function b(T,A){let R=s.fork(),B=0,N=0,I=0,D=R.end-o,j={size:0,start:0,skip:0};e:for(let F=R.pos-T;R.pos>F;){let G=R.size;if(R.id==A&&G>=0){j.size=B,j.start=N,j.skip=I,I+=4,B+=4,R.next();continue}let ae=R.pos-G;if(G<0||ae<F||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+=G,I+=K}return(A<0||B==T)&&(j.size=B,j.start=N,j.skip=I),j.size>4?j:void 0}function k(T,A,R){let{id:B,start:N,end:I,size:D}=s;if(s.next(),D>=0&&B<a){let j=R;if(D>4){let F=s.pos-(D-4);for(;s.pos>F;)R=k(T,A,R)}A[--R]=j,A[--R]=I-T,A[--R]=N-T,A[--R]=B}else D==-3?u=B:D==-4&&(d=B);return R}let C=[],P=[];for(;s.pos>0;)p(e.start||0,e.bufferStart||0,C,P,-1);let $=(t=e.length)!==null&&t!==void 0?t:C.length?P[0]+C[0].length:0;return new Fi(l[e.topID],C.reverse(),P.reverse(),$)}const V9=new WeakMap;function kk(e,t){if(!e.isAnonymous||t instanceof kv||t.type!=e)return 1;let n=V9.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Fi)){n=1;break}n+=kk(e,r)}V9.set(t,n)}return n}function E3(e,t,n,r,o,i,a,s,l){let u=0;for(let w=r;w<o;w++)u+=kk(e,t[w]);let d=Math.ceil(u*1.5/8),p=[],v=[];function y(w,b,k,C,P){for(let $=k;$<C;){let T=$,A=b[$],R=kk(e,w[$]);for($++;$<C;$++){let B=kk(e,w[$]);if(R+B>=d)break;R+=B}if($==T+1){if(R>d){let B=w[T];y(B.children,B.positions,0,B.children.length,b[T]+P);continue}p.push(w[T])}else{let B=b[$-1]+w[$-1].length-A;p.push(E3(e,w,b,T,$,A,B,null,l))}v.push(A+P-i)}}return y(t,n,r,o,0),(s||l)(p,v,a)}class sze{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 of?this.setBuffer(t.context.buffer,t.index,n):t instanceof el&&this.map.set(t.tree,n)}get(t){return t instanceof of?this.getBuffer(t.context.buffer,t.index):t instanceof el?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 Jg{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 Jg(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 Jg(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 lze(t)),r=r?r.length?r.map(o=>new pA(o.from,o.to)):[new pA(0,0)]:[new pA(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 lze{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 Ur({perNode:!0});let uze=0;class qc{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=uze++}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 k2;return n=>n.modified.indexOf(t)>-1?n:k2.get(n.base||n,n.modified.concat(t).sort((r,o)=>r.id-o.id))}}let cze=0;class k2{constructor(){this.instances=[],this.id=cze++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&fze(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=dze(n);for(let s of t.set)if(!s.modified.length)for(let l of a)o.push(k2.get(s,l));return i}}function fze(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function dze(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 T3(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 C2(r,a,l>0?i.slice(0,l):null);t[u]=d.sort(t[u])}}return NG.add(t)}const NG=new Ur;class C2{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}}C2.empty=new C2([],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 hze(e,t){let n=null;for(let r of e){let o=r.style(t);o&&(n=n?n+" "+o:o)}return n}function pze(e,t,n,r=0,o=e.length){let i=new gze(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,o,"",i.highlighters),i.flush(o)}class gze{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=vze(t)||C2.empty,p=hze(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(Ur.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 P=k<v.overlay.length?v.overlay[k]:null,$=P?P.from+s:l,T=Math.max(n,C),A=Math.min(r,$);if(T<A&&b)for(;t.from<A&&(this.highlightRange(t,T,A,o,i),this.startSpan(Math.min(A,t.to),u),!(t.to>=$||!t.nextSibling())););if(!P||$>r)break;C=P.to+s,C>n&&(this.highlightRange(y.cursor(),Math.max(n,P.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 vze(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,Dx=hn(),kh=hn(),F9=hn(kh),z9=hn(kh),Ch=hn(),jx=hn(Ch),gA=hn(Ch),Gc=hn(),Cg=hn(Gc),Hc=hn(),Xc=hn(),ZR=hn(),x_=hn(ZR),Lx=hn(),bt={comment:Dx,lineComment:hn(Dx),blockComment:hn(Dx),docComment:hn(Dx),name:kh,variableName:hn(kh),typeName:F9,tagName:hn(F9),propertyName:z9,attributeName:hn(z9),className:hn(kh),labelName:hn(kh),namespace:hn(kh),macroName:hn(kh),literal:Ch,string:jx,docString:hn(jx),character:hn(jx),attributeValue:hn(jx),number:gA,integer:hn(gA),float:hn(gA),bool:hn(Ch),regexp:hn(Ch),escape:hn(Ch),color:hn(Ch),url:hn(Ch),keyword:Hc,self:hn(Hc),null:hn(Hc),atom:hn(Hc),unit:hn(Hc),modifier:hn(Hc),operatorKeyword:hn(Hc),controlKeyword:hn(Hc),definitionKeyword:hn(Hc),moduleKeyword:hn(Hc),operator:Xc,derefOperator:hn(Xc),arithmeticOperator:hn(Xc),logicOperator:hn(Xc),bitwiseOperator:hn(Xc),compareOperator:hn(Xc),updateOperator:hn(Xc),definitionOperator:hn(Xc),typeOperator:hn(Xc),controlOperator:hn(Xc),punctuation:ZR,separator:hn(ZR),bracket:x_,angleBracket:hn(x_),squareBracket:hn(x_),paren:hn(x_),brace:hn(x_),content:Gc,heading:Cg,heading1:hn(Cg),heading2:hn(Cg),heading3:hn(Cg),heading4:hn(Cg),heading5:hn(Cg),heading6:hn(Cg),contentSeparator:hn(Gc),list:hn(Gc),quote:hn(Gc),emphasis:hn(Gc),strong:hn(Gc),link:hn(Gc),monospace:hn(Gc),strikethrough:hn(Gc),inserted:hn(),deleted:hn(),changed:hn(),invalid:hn(),meta:Lx,documentMeta:hn(Lx),annotation:hn(Lx),processingInstruction:hn(Lx),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 vA;const uy=new Ur;function DG(e){return Rn.define({combine:e?t=>t.concat(e):void 0})}const P3=new Ur;class uc{constructor(t,n,r=[],o=""){this.data=t,this.name=o,Br.prototype.hasOwnProperty("tree")||Object.defineProperty(Br.prototype,"tree",{get(){return ra(this)}}),this.parser=n,this.extension=[cp.of(this),Br.languageData.of((i,a,s)=>{let l=Q9(i,a,s),u=l.type.prop(uy);if(!u)return[];let d=i.facet(u),p=l.type.prop(P3);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 Q9(t,n,r).type.prop(uy)==this.data}findRegions(t){let n=t.facet(cp);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(uy)==this.data){r.push({from:a,to:a+i.length});return}let s=i.prop(Ur.mounted);if(s){if(s.tree.prop(uy)==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 Fi&&o(u,i.positions[l]+a)}};return o(ra(t),0),r}get allowsNesting(){return!0}}uc.setState=Sr.define();function Q9(e,t,n){let r=e.facet(cp),o=ra(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 JO extends uc{constructor(t,n,r){super(t,n,[],r),this.parser=n}static define(t){let n=DG(t.languageData);return new JO(n,t.parser.configure({props:[uy.add(r=>r.isTop?n:void 0)]}),t.name)}configure(t,n){return new JO(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function ra(e){let t=e.field(uc.state,!1);return t?t.tree:Fi.empty}class mze{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 k_=null;class E2{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 E2(t,n,[],Fi.empty,0,r,[],null)}startParse(){return this.parser.startParse(new mze(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Fi.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(Jg.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(Jg.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=k_;k_=this;try{return t()}finally{k_=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=W9(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=Jg.applyChanges(r,l),o=Fi.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 E2(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=W9(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=k_;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 Fi(nl.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 k_}}function W9(e,t,n){return Jg.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=E2.create(t.facet(cp).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new qy(r)}}uc.state=ga.define({create:qy.init,update(e,t){for(let n of t.effects)if(n.is(uc.setState))return n.value;return t.startState.facet(cp)!=t.state.facet(cp)?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 mA=typeof navigator!="undefined"&&((vA=navigator.scheduling)===null||vA===void 0?void 0:vA.isInputPending)?()=>navigator.scheduling.isInputPending():null,yze=Ri.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(uc.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(uc.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(uc.state);if(i.tree==i.context.tree&&i.context.isDone(o+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,t&&!mA?Math.max(25,t.timeRemaining()-5):1e9),s=i.context.treeLen<o&&r.doc.length>o+1e3,l=i.context.work(()=>mA&&mA()||Date.now()>a,o+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:uc.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=>fc(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()}}}),cp=Rn.define({combine(e){return e.length?e[0]:null},enables:e=>[uc.state,yze,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 bze=Rn.define(),V1=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 T2(e){let t=e.facet(V1);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function e1(e,t){let n="",r=e.tabSize,o=e.facet(V1)[0];if(o==" "){for(;t>=r;)n+=" ",t-=r;o=" "}for(let i=0;i<t;i++)n+=o;return n}function $3(e,t){e instanceof Br&&(e=new qC(e));for(let r of e.state.facet(bze)){let o=r(e,t);if(o!==void 0)return o}let n=ra(e.state);return n.length>=t?_ze(e,n,t):null}class qC{constructor(t,n={}){this.state=t,this.options=n,this.unit=T2(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 x0(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 A3=new Ur;function _ze(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=wze(r.node);if(o)return o(M3.create(t,n,r))}return 0}function Oze(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function wze(e){let t=e.type.prop(A3);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Ur.closedBy))){let o=e.lastChild,i=o&&r.indexOf(o.name)>-1;return a=>VG(a,!0,1,void 0,i&&!Oze(a)?o.from:void 0)}return e.parent==null?Sze:null}function Sze(){return 0}class M3 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 M3(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(xze(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 xze(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function kze(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 Cze({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?kze(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const Eze=e=>e.baseIndent;function uO({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const Tze=200;function Pze(){return Br.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+Tze)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=$3(a,d.from);if(p==null)continue;let v=/^\s*/.exec(d.text)[0],y=e1(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 $ze=Rn.define(),R3=new Ur;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 Aze(e,t,n){let r=ra(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(R3);if(l&&(s.to<r.length-50||r.length==e.doc.length||!Mze(s))){let u=l(s,e);u&&u.from<=n&&u.from>=t&&u.to>n&&(i=u)}}return i}function Mze(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function P2(e,t,n){for(let r of e.facet($ze)){let o=r(e,t,n);if(o)return o}return Aze(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 JC=Sr.define({map:zG}),F1=Sr.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 gv=ga.define({create(){return Xn.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(JC)&&!Rze(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(N3),o=r?Xn.replace({widget:new Vze(r(t.state,n.value))}):Y9;e=e.update({add:[o.range(n.value.from,n.value.to)]})}else n.is(F1)&&(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(Y9.range(r,o))}return Xn.set(t,!0)}});function $2(e,t,n){var r;let o=null;return(r=e.field(gv,!1))===null||r===void 0||r.between(t,n,(i,a)=>{(!o||o.from>i)&&(o={from:i,to:a})}),o}function Rze(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(gv,!1)?t:t.concat(Sr.appendConfig.of(ZG()))}const Nze=e=>{for(let t of QG(e)){let n=P2(e.state,t.from,t.to);if(n)return e.dispatch({effects:WG(e.state,[JC.of(n),YG(e,n)])}),!0}return!1},Ize=e=>{if(!e.state.field(gv,!1))return!1;let t=[];for(let n of QG(e)){let r=$2(e.state,n.from,n.to);r&&t.push(F1.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 Dze=e=>{let{state:t}=e,n=[];for(let r=0;r<t.doc.length;){let o=e.lineBlockAt(r),i=P2(t,o.from,o.to);i&&n.push(JC.of(i)),r=(i?e.lineBlockAt(i.to):o).to+1}return n.length&&e.dispatch({effects:WG(e.state,n)}),!!n.length},jze=e=>{let t=e.state.field(gv,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,o)=>{n.push(F1.of({from:r,to:o}))}),e.dispatch({effects:n}),!0},Lze=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Nze},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Ize},{key:"Ctrl-Alt-[",run:Dze},{key:"Ctrl-Alt-]",run:jze}],Bze={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},N3=Rn.define({combine(e){return Ef(e,Bze)}});function ZG(e){let t=[gv,Qze];return e&&t.push(N3.of(e)),t}function UG(e,t){let{state:n}=e,r=n.facet(N3),o=a=>{let s=e.lineBlockAt(e.posAtDOM(a.target)),l=$2(e.state,s.from,s.to);l&&e.dispatch({effects:F1.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 Y9=Xn.replace({widget:new class extends Tf{toDOM(e){return UG(e,null)}}});class Vze extends Tf{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return UG(t,this.value)}}const Fze={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class yA extends yd{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 zze(e={}){let t=Object.assign(Object.assign({},Fze),e),n=new yA(t,!0),r=new yA(t,!1),o=Ri.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(cp)!=a.state.facet(cp)||a.startState.field(gv,!1)!=a.state.field(gv,!1)||ra(a.startState)!=ra(a.state)||t.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let s=new ap;for(let l of a.viewportLineBlocks){let u=$2(a.state,l.from,l.to)?r:P2(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:i}=t;return[o,YFe({class:"cm-foldGutter",markers(a){var s;return((s=a.plugin(o))===null||s===void 0?void 0:s.markers)||fo.empty},initialSpacer(){return new yA(t,!1)},domEventHandlers:Object.assign(Object.assign({},i),{click:(a,s,l)=>{if(i.click&&i.click(a,s,l))return!0;let u=$2(a.state,s.from,s.to);if(u)return a.dispatch({effects:F1.of(u)}),!0;let d=P2(a.state,s.from,s.to);return d?(a.dispatch({effects:JC.of(d)}),!0):!1}})}),ZG()]}const Qze=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 eE{constructor(t,n){this.specs=t;let r;function o(s){let l=sp.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 uc?s=>s.prop(uy)==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 sp(r):null,this.themeType=n.themeType}static define(t,n){return new eE(t,n||{})}}const UR=Rn.define(),HG=Rn.define({combine(e){return e.length?[e[0]]:null}});function bA(e){let t=e.facet(UR);return t.length?t:e.facet(HG)}function Wze(e,t){let n=[Zze],r;return e instanceof eE&&(e.module&&n.push(xn.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(HG.of(e)):r?n.push(UR.computeN([xn.darkTheme],o=>o.facet(xn.darkTheme)==(r=="dark")?[e]:[])):n.push(UR.of(e)),n}class Yze{constructor(t){this.markCache=Object.create(null),this.tree=ra(t.state),this.decorations=this.buildDeco(t,bA(t.state))}update(t){let n=ra(t.state),r=bA(t.state),o=r!=bA(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 ap;for(let{from:o,to:i}of t.visibleRanges)pze(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 Zze=xv.high(Ri.fromClass(Yze,{decorations:e=>e.decorations})),Uze=eE.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"}]),Hze=xn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),XG=1e4,GG="()[]{}",KG=Rn.define({combine(e){return Ef(e,{afterCursor:!0,brackets:GG,maxScanDistance:XG,renderMatch:Kze})}}),Xze=Xn.mark({class:"cm-matchingBracket"}),Gze=Xn.mark({class:"cm-nonmatchingBracket"});function Kze(e){let t=[],n=e.matched?Xze:Gze;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 qze=ga.define({create(){return Xn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(KG);for(let o of t.state.selection.ranges){if(!o.empty)continue;let i=af(t.state,o.head,-1,r)||o.head>0&&af(t.state,o.head-1,1,r)||r.afterCursor&&(af(t.state,o.head,1,r)||o.head<t.state.doc.length&&af(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)}),Jze=[qze,Hze];function e7e(e={}){return[KG.of(e),Jze]}const t7e=new Ur;function HR(e,t,n){let r=e.prop(t<0?Ur.openedBy:Ur.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 XR(e){let t=e.type.prop(t7e);return t?t(e.node):e}function af(e,t,n,r={}){let o=r.maxScanDistance||XG,i=r.brackets||GG,a=ra(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let u=HR(l.type,n,i);if(u&&l.from<l.to){let d=XR(l);if(d&&(n>0?t>=d.from&&t<d.to:t>d.from&&t<=d.to))return n7e(e,t,n,l,d,u,i)}}return r7e(e,t,n,a,s.type,o,i)}function n7e(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=XR(d);return{start:l,end:p?{from:p.from,to:p.to}:void 0,matched:!0}}else if(HR(d.type,n,a))u++;else if(HR(d.type,-n,a)){if(u==0){let p=XR(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 r7e(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 o7e=Object.create(null),Z9=[nl.none],U9=[],i7e=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"]])i7e[e]=a7e(o7e,t);function _A(e,t){U9.indexOf(e)>-1||(U9.push(e),console.warn(t))}function a7e(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):_A(i,`Modifier ${i} used at start of tag`):n?_A(i,`Tag ${i} used as modifier`):n=a:_A(i,`Unknown highlighting tag ${i}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),o=nl.define({id:Z9.length,name:r,props:[T3({[r]:n})]});return Z9.push(o),o.id}const s7e=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=D3(e.state,n.from);return r.line?l7e(e):r.block?c7e(e):!1};function I3(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 l7e=I3(h7e,0),u7e=I3(qG,0),c7e=I3((e,t)=>qG(e,t,d7e(t)),0);function D3(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const C_=50;function f7e(e,{open:t,close:n},r,o){let i=e.sliceDoc(r-C_,r),a=e.sliceDoc(o,o+C_),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*C_?d=p=e.sliceDoc(r,o):(d=e.sliceDoc(r,r+C_),p=e.sliceDoc(o-C_,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 d7e(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 qG(e,t,n=t.selection.ranges){let r=n.map(i=>D3(t,i.from).block);if(!r.every(i=>i))return null;let o=n.map((i,a)=>f7e(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 h7e(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=D3(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 GR=$d.define(),p7e=$d.define(),g7e=Rn.define(),JG=Rn.define({combine(e){return Ef(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 v7e(e){let t=0;return e.iterChangedRanges((n,r)=>t=r),t}const eK=ga.define({create(){return sf.empty},update(e,t){let n=t.state.facet(JG),r=t.annotation(GR);if(r){let l=t.docChanged?Dt.single(v7e(t.changes)):void 0,u=Gs.fromTransaction(t,l),d=r.side,p=d==0?e.undone:e.done;return u?p=A2(p,p.length,n.minDepth,u):p=rK(p,t.startState.selection),new sf(d==0?r.rest:p,d==0?p:r.rest)}let o=t.annotation(p7e);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=Gs.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 sf(e.done.map(Gs.fromJSON),e.undone.map(Gs.fromJSON))}});function m7e(e={}){return[eK,JG.of(e),xn.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?tK:t.inputType=="historyRedo"?KR:null;return r?(t.preventDefault(),r(n)):!1}})]}function tE(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let o=n.field(eK,!1);if(!o)return!1;let i=o.pop(e,n,t);return i?(r(i),!0):!1}}const tK=tE(0,!1),KR=tE(1,!1),y7e=tE(0,!0),b7e=tE(1,!0);class Gs{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 Gs(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 Gs(t.changes&&Ki.fromJSON(t.changes),[],t.mapped&&uf.fromJSON(t.mapped),t.startSelection&&Dt.fromJSON(t.startSelection),t.selectionsAfter.map(Dt.fromJSON))}static fromTransaction(t,n){let r=yu;for(let o of t.startState.facet(g7e)){let i=o(t);i.length&&(r=r.concat(i))}return!r.length&&t.changes.empty?null:new Gs(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,yu)}static selection(t){return new Gs(void 0,yu,void 0,void 0,t)}}function A2(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 _7e(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 O7e(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function nK(e,t){return e.length?t.length?e.concat(t):e:t}const yu=[],w7e=200;function rK(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-w7e));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),A2(e,e.length-1,1e9,n.setSelAfter(r)))}else return[Gs.selection([t])]}function S7e(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 OA(e,t){if(!e.length)return e;let n=e.length,r=yu;for(;n;){let o=x7e(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?[Gs.selection(r)]:yu}function x7e(e,t,n){let r=nK(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):yu,n);if(!e.changes)return Gs.selection(r);let o=e.changes.map(t),i=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(i):i;return new Gs(o,Sr.mapEffects(e.effects,t),a,e.startSelection.map(i),r)}const k7e=/^(input\.type|delete)($|\.)/;class sf{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 sf(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||k7e.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<o.newGroupDelay&&o.joinToEvent(i,_7e(s.changes,t.changes))||r=="input.type.compose")?a=A2(a,a.length-1,o.minDepth,new Gs(t.changes.compose(s.changes),nK(t.effects,s.effects),s.mapped,s.startSelection,yu)):a=A2(a,a.length,o.minDepth,t),new sf(a,yu,n,r)}addSelection(t,n,r,o){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:yu;return i.length>0&&n-this.prevTime<o&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&O7e(i[i.length-1],t)?this:new sf(rK(this.done,t),this.undone,n,r)}addMapping(t){return new sf(OA(this.done,t),OA(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:GR.of({side:t,rest:S7e(o)}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let a=o.length==1?yu:o.slice(0,o.length-1);return i.mapped&&(a=OA(a,i.mapped)),n.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:GR.of({side:t,rest:a}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}else return null}}sf.empty=new sf(yu,yu);const C7e=[{key:"Mod-z",run:tK,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:KR,preventDefault:!0},{linux:"Ctrl-Shift-z",run:KR,preventDefault:!0},{key:"Mod-u",run:y7e,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:b7e,preventDefault:!0}];function k0(e,t){return Dt.create(e.ranges.map(t),e.mainIndex)}function Pf(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function wc({state:e,dispatch:t},n){let r=k0(e.selection,n);return r.eq(e.selection)?!1:(t(Pf(e,r)),!0)}function nE(e,t){return Dt.cursor(t?e.to:e.from)}function oK(e,t){return wc(e,n=>n.empty?e.moveByChar(n,t):nE(n,t))}function ls(e){return e.textDirectionAt(e.state.selection.main.head)==ci.LTR}const iK=e=>oK(e,!ls(e)),aK=e=>oK(e,ls(e));function sK(e,t){return wc(e,n=>n.empty?e.moveByGroup(n,t):nE(n,t))}const E7e=e=>sK(e,!ls(e)),T7e=e=>sK(e,ls(e));function P7e(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 rE(e,t,n){let r=ra(e).resolveInner(t.head),o=n?Ur.closedBy:Ur.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;P7e(e,u,o)?r=u:l=n?u.to:u.from}let i=r.type.prop(o),a,s;return i&&(a=n?af(e,r.from,1):af(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 $7e=e=>wc(e,t=>rE(e.state,t,!ls(e))),A7e=e=>wc(e,t=>rE(e.state,t,ls(e)));function lK(e,t){return wc(e,n=>{if(!n.empty)return nE(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const uK=e=>lK(e,!1),cK=e=>lK(e,!0);function fK(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 dK(e,t){let n=fK(e),{state:r}=e,o=k0(r.selection,a=>a.empty?e.moveVertically(a,t,n.height):nE(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(Pf(r,o),{effects:i}),!0}const H9=e=>dK(e,!1),qR=e=>dK(e,!0);function kp(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 M7e=e=>wc(e,t=>kp(e,t,!0)),R7e=e=>wc(e,t=>kp(e,t,!1)),N7e=e=>wc(e,t=>kp(e,t,!ls(e))),I7e=e=>wc(e,t=>kp(e,t,ls(e))),D7e=e=>wc(e,t=>Dt.cursor(e.lineBlockAt(t.head).from,1)),j7e=e=>wc(e,t=>Dt.cursor(e.lineBlockAt(t.head).to,-1));function L7e(e,t,n){let r=!1,o=k0(e.selection,i=>{let a=af(e,i.head,-1)||af(e,i.head,1)||i.head>0&&af(e,i.head-1,1)||i.head<e.doc.length&&af(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(Pf(e,o)),!0):!1}const B7e=({state:e,dispatch:t})=>L7e(e,t,!1);function Nu(e,t){let n=k0(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(Pf(e.state,n)),!0)}function hK(e,t){return Nu(e,n=>e.moveByChar(n,t))}const pK=e=>hK(e,!ls(e)),gK=e=>hK(e,ls(e));function vK(e,t){return Nu(e,n=>e.moveByGroup(n,t))}const V7e=e=>vK(e,!ls(e)),F7e=e=>vK(e,ls(e)),z7e=e=>Nu(e,t=>rE(e.state,t,!ls(e))),Q7e=e=>Nu(e,t=>rE(e.state,t,ls(e)));function mK(e,t){return Nu(e,n=>e.moveVertically(n,t))}const yK=e=>mK(e,!1),bK=e=>mK(e,!0);function _K(e,t){return Nu(e,n=>e.moveVertically(n,t,fK(e).height))}const X9=e=>_K(e,!1),G9=e=>_K(e,!0),W7e=e=>Nu(e,t=>kp(e,t,!0)),Y7e=e=>Nu(e,t=>kp(e,t,!1)),Z7e=e=>Nu(e,t=>kp(e,t,!ls(e))),U7e=e=>Nu(e,t=>kp(e,t,ls(e))),H7e=e=>Nu(e,t=>Dt.cursor(e.lineBlockAt(t.head).from)),X7e=e=>Nu(e,t=>Dt.cursor(e.lineBlockAt(t.head).to)),K9=({state:e,dispatch:t})=>(t(Pf(e,{anchor:0})),!0),q9=({state:e,dispatch:t})=>(t(Pf(e,{anchor:e.doc.length})),!0),J9=({state:e,dispatch:t})=>(t(Pf(e,{anchor:e.selection.main.anchor,head:0})),!0),eF=({state:e,dispatch:t})=>(t(Pf(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),G7e=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),K7e=({state:e,dispatch:t})=>{let n=oE(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},q7e=({state:e,dispatch:t})=>{let n=k0(e.selection,r=>{var o;let i=ra(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(Pf(e,n)),!0},J7e=({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(Pf(e,r)),!0):!1};function z1(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=Bx(e,l,!1)):l>a&&(n="delete.forward",l=Bx(e,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=Bx(e,a,!1),s=Bx(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 Bx(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 OK=(e,t)=>z1(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=x0(a,o.tabSize),u=l%T2(o)||T2(o);for(let d=0;d<u&&a[a.length-1-d]==" ";d++)r--;s=r}else s=rs(i.text,r-i.from,t,t)+i.from,s==r&&i.number!=(t?o.doc.lines:1)&&(s+=t?1:-1);return s}),JR=e=>OK(e,!1),wK=e=>OK(e,!0),SK=(e,t)=>z1(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=rs(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}),xK=e=>SK(e,!1),eQe=e=>SK(e,!0),tQe=e=>z1(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),nQe=e=>z1(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),rQe=e=>z1(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),oQe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:ao.of(["",""])},range:Dt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},iQe=({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:rs(i.text,o-i.from,!1)+i.from,s=o==i.to?o+1:rs(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 oE(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 kK(e,t,n){if(e.readOnly)return!1;let r=[],o=[];for(let i of oE(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 aQe=({state:e,dispatch:t})=>kK(e,t,!1),sQe=({state:e,dispatch:t})=>kK(e,t,!0);function CK(e,t,n){if(e.readOnly)return!1;let r=[];for(let o of oE(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 lQe=({state:e,dispatch:t})=>CK(e,t,!1),uQe=({state:e,dispatch:t})=>CK(e,t,!0),cQe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(oE(t).map(({from:o,to:i})=>(o>0?o--:i<t.doc.length&&i++,{from:o,to:i}))),r=k0(t.selection,o=>e.moveVertically(o,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function fQe(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=ra(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(Ur.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 dQe=EK(!1),hQe=EK(!0);function EK(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&&fQe(t,i);e&&(i=a=(a<=s.to?s:t.doc.lineAt(a)).to);let u=new qC(t,{simulateBreak:i,simulateDoubleBreak:!!l}),d=$3(u,i);for(d==null&&(d=x0(/^\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=["",e1(t,d)];return l&&p.push(e1(t,u.lineIndent(s.from,-1))),{changes:{from:i,to:a,insert:ao.of(p)},range:Dt.cursor(i+1+p[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function j3(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 pQe=({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=j3(e,(i,a,s)=>{let l=$3(r,i.from);if(l==null)return;/\S/.test(i.text)||(l=0);let u=/^\s*/.exec(i.text)[0],d=e1(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},TK=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(j3(e,(n,r)=>{r.push({from:n.from,insert:e.facet(V1)})}),{userEvent:"input.indent"})),!0),PK=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(j3(e,(n,r)=>{let o=/^\s*/.exec(n.text)[0];if(!o)return;let i=x0(o,e.tabSize),a=0,s=e1(e,Math.max(0,i-T2(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),gQe=[{key:"Ctrl-b",run:iK,shift:pK,preventDefault:!0},{key:"Ctrl-f",run:aK,shift:gK},{key:"Ctrl-p",run:uK,shift:yK},{key:"Ctrl-n",run:cK,shift:bK},{key:"Ctrl-a",run:D7e,shift:H7e},{key:"Ctrl-e",run:j7e,shift:X7e},{key:"Ctrl-d",run:wK},{key:"Ctrl-h",run:JR},{key:"Ctrl-k",run:tQe},{key:"Ctrl-Alt-h",run:xK},{key:"Ctrl-o",run:oQe},{key:"Ctrl-t",run:iQe},{key:"Ctrl-v",run:qR}],vQe=[{key:"ArrowLeft",run:iK,shift:pK,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:E7e,shift:V7e,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:N7e,shift:Z7e,preventDefault:!0},{key:"ArrowRight",run:aK,shift:gK,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:T7e,shift:F7e,preventDefault:!0},{mac:"Cmd-ArrowRight",run:I7e,shift:U7e,preventDefault:!0},{key:"ArrowUp",run:uK,shift:yK,preventDefault:!0},{mac:"Cmd-ArrowUp",run:K9,shift:J9},{mac:"Ctrl-ArrowUp",run:H9,shift:X9},{key:"ArrowDown",run:cK,shift:bK,preventDefault:!0},{mac:"Cmd-ArrowDown",run:q9,shift:eF},{mac:"Ctrl-ArrowDown",run:qR,shift:G9},{key:"PageUp",run:H9,shift:X9},{key:"PageDown",run:qR,shift:G9},{key:"Home",run:R7e,shift:Y7e,preventDefault:!0},{key:"Mod-Home",run:K9,shift:J9},{key:"End",run:M7e,shift:W7e,preventDefault:!0},{key:"Mod-End",run:q9,shift:eF},{key:"Enter",run:dQe},{key:"Mod-a",run:G7e},{key:"Backspace",run:JR,shift:JR},{key:"Delete",run:wK},{key:"Mod-Backspace",mac:"Alt-Backspace",run:xK},{key:"Mod-Delete",mac:"Alt-Delete",run:eQe},{mac:"Mod-Backspace",run:nQe},{mac:"Mod-Delete",run:rQe}].concat(gQe.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),mQe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:$7e,shift:z7e},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:A7e,shift:Q7e},{key:"Alt-ArrowUp",run:aQe},{key:"Shift-Alt-ArrowUp",run:lQe},{key:"Alt-ArrowDown",run:sQe},{key:"Shift-Alt-ArrowDown",run:uQe},{key:"Escape",run:J7e},{key:"Mod-Enter",run:hQe},{key:"Alt-l",mac:"Ctrl-l",run:K7e},{key:"Mod-i",run:q7e,preventDefault:!0},{key:"Mod-[",run:PK},{key:"Mod-]",run:TK},{key:"Mod-Alt-\\",run:pQe},{key:"Shift-Mod-k",run:cQe},{key:"Shift-Mod-\\",run:B7e},{key:"Mod-/",run:s7e},{key:"Alt-A",run:u7e}].concat(vQe),yQe={key:"Tab",run:TK,shift:PK};function Lo(){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++)$K(e,arguments[t]);return e}function $K(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++)$K(e,t[n]);else throw new RangeError("Unsupported child node: "+t)}const tF=typeof String.prototype.normalize=="function"?e=>e.normalize("NFKD"):e=>e;class Jy{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(tF(s)):tF,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 Aa(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=h3(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=pu(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"&&(Jy.prototype[Symbol.iterator]=function(){return this});const AK={from:-1,to:-1,match:/.*/.exec("")},L3="gm"+(/x/.unicode==null?"":"u");class MK{constructor(t,n,r,o=0,i=t.length){if(this.text=t,this.to=i,this.curLine="",this.done=!1,this.value=AK,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new RK(t,n,r,o,i);this.re=new RegExp(n,L3+(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=M2(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=M2(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 wA=new WeakMap;class Ey{constructor(t,n){this.from=t,this.text=n}get to(){return this.from+this.text.length}static get(t,n,r){let o=wA.get(t);if(!o||o.from>=r||o.to<=n){let s=new Ey(n,t.sliceString(n,r));return wA.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)),wA.set(t,new Ey(a,i)),new Ey(n,i.slice(n-a,r-a))}}class RK{constructor(t,n,r,o,i){this.text=t,this.to=i,this.done=!1,this.value=AK,this.matchPos=M2(t,o),this.re=new RegExp(n,L3+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=Ey.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=M2(this.text,o+(r==o?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Ey.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol!="undefined"&&(MK.prototype[Symbol.iterator]=RK.prototype[Symbol.iterator]=function(){return this});function bQe(e){try{return new RegExp(e,L3),!0}catch{return!1}}function M2(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 eN(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=Lo("input",{class:"cm-textfield",name:"line",value:t}),r=Lo("form",{class:"cm-gotoLine",onkeydown:i=>{i.keyCode==27?(i.preventDefault(),e.dispatch({effects:R2.of(!1)}),e.focus()):i.keyCode==13&&(i.preventDefault(),o())},onsubmit:i=>{i.preventDefault(),o()}},Lo("label",e.state.phrase("Go to line"),": ",n)," ",Lo("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:[R2.of(!1),xn.scrollIntoView(b.from,{y:"center"})],selection:b}),e.focus()}return{dom:r}}const R2=Sr.define(),nF=ga.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(R2)&&(e=n.value);return e},provide:e=>KO.from(e,t=>t?eN:null)}),_Qe=e=>{let t=GO(e,eN);if(!t){let n=[R2.of(!0)];e.state.field(nF,!1)==null&&n.push(Sr.appendConfig.of([nF,OQe])),e.dispatch({effects:n}),t=GO(e,eN)}return t&&t.dom.querySelector("input").select(),!0},OQe=xn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),wQe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},NK=Rn.define({combine(e){return Ef(e,wQe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function SQe(e){let t=[TQe,EQe];return e&&t.push(NK.of(e)),t}const xQe=Xn.mark({class:"cm-selectionMatch"}),kQe=Xn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function rF(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=ni.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=ni.Word)}function CQe(e,t,n,r){return e(t.sliceDoc(n,n+1))==ni.Word&&e(t.sliceDoc(r-1,r))==ni.Word}const EQe=Ri.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(NK),{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),!(rF(a,n,o.from,o.to)&&CQe(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 Jy(n.doc,i,l.from,l.to);for(;!u.next().done;){let{from:d,to:p}=u.value;if((!a||rF(a,n,d,p))&&(o.empty&&d<=o.from&&p>=o.to?s.push(kQe.range(d,p)):(d>=o.to||p<=o.from)&&s.push(xQe.range(d,p)),s.length>t.maxMatches))return Xn.none}}return Xn.set(s)}},{decorations:e=>e.decorations}),TQe=xn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),PQe=({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 $Qe(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 Jy(e.doc,t,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new Jy(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 AQe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(i=>i.from===i.to))return PQe({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=$Qe(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},C0=Rn.define({combine(e){return Ef(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new QQe(t),scrollToMatch:t=>xn.scrollIntoView(t)})}});class IK{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||bQe(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"?`
- `: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 IQe(this):new RQe(this)}getCursor(t,n=0,r){let o=t.doc?t:Br.create({doc:t});return r==null&&(r=o.doc.length),this.regexp?ty(this,o,n,r):ey(this,o,n,r)}}class DK{constructor(t){this.spec=t}}function ey(e,t,n,r){return new Jy(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:o=>o.toLowerCase(),e.wholeWord?MQe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function MQe(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(N2(o,n-i))!=ni.Word||t(I2(o,n-i))!=ni.Word)&&(t(I2(o,r-i))!=ni.Word||t(N2(o,r-i))!=ni.Word))}class RQe extends DK{constructor(t){super(t)}nextMatch(t,n,r){let o=ey(this.spec,t,r,t.doc.length).nextOverlapping();return o.done&&(o=ey(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=ey(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=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-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 ty(e,t,n,r){return new MK(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?NQe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function N2(e,t){return e.slice(rs(e,t,!1),t)}function I2(e,t){return e.slice(t,rs(e,t))}function NQe(e){return(t,n,r)=>!r[0].length||(e(N2(r.input,r.index))!=ni.Word||e(I2(r.input,r.index))!=ni.Word)&&(e(I2(r.input,r.index+r[0].length))!=ni.Word||e(N2(r.input,r.index+r[0].length))!=ni.Word)}class IQe extends DK{nextMatch(t,n,r){let o=ty(this.spec,t,r,t.doc.length).next();return o.done&&(o=ty(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=ty(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=ty(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=ty(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 t1=Sr.define(),B3=Sr.define(),Qh=ga.define({create(e){return new SA(tN(e).create(),null)},update(e,t){for(let n of t.effects)n.is(t1)?e=new SA(n.value.create(),e.panel):n.is(B3)&&(e=new SA(e.query,n.value?V3:null));return e},provide:e=>KO.from(e,t=>t.panel)});class SA{constructor(t,n){this.query=t,this.panel=n}}const DQe=Xn.mark({class:"cm-searchMatch"}),jQe=Xn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),LQe=Ri.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Qh))}update(e){let t=e.state.field(Qh);(t!=e.startState.field(Qh)||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 ap;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?jQe:DQe)})}return r.finish()}},{decorations:e=>e.decorations});function Q1(e){return t=>{let n=t.state.field(Qh,!1);return n&&n.query.spec.valid?e(t,n):BK(t)}}const D2=Q1((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(C0);return e.dispatch({selection:o,effects:[F3(e,r),i.scrollToMatch(o.main,e)],userEvent:"select.search"}),LK(e),!0}),j2=Q1((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(C0);return e.dispatch({selection:i,effects:[F3(e,o),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),LK(e),!0}),BQe=Q1((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)}),VQe=({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 Jy(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},oF=Q1((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(F3(e,i)),u.push(n.facet(C0).scrollToMatch(s.main,e))}return e.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),FQe=Q1((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 V3(e){return e.state.facet(C0).createPanel(e)}function tN(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(C0);return new IK({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 jK(e){let t=GO(e,V3);return t&&t.dom.querySelector("[main-field]")}function LK(e){let t=jK(e);t&&t==e.root.activeElement&&t.select()}const BK=e=>{let t=e.state.field(Qh,!1);if(t&&t.panel){let n=jK(e);if(n&&n!=e.root.activeElement){let r=tN(e.state,t.query.spec);r.valid&&e.dispatch({effects:t1.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[B3.of(!0),t?t1.of(tN(e.state,t.query.spec)):Sr.appendConfig.of(YQe)]});return!0},VK=e=>{let t=e.state.field(Qh,!1);if(!t||!t.panel)return!1;let n=GO(e,V3);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:B3.of(!1)}),!0},zQe=[{key:"Mod-f",run:BK,scope:"editor search-panel"},{key:"F3",run:D2,shift:j2,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:D2,shift:j2,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:VK,scope:"editor search-panel"},{key:"Mod-Shift-l",run:VQe},{key:"Alt-g",run:_Qe},{key:"Mod-d",run:AQe,preventDefault:!0}];class QQe{constructor(t){this.view=t;let n=this.query=t.state.field(Qh).query.spec;this.commit=this.commit.bind(this),this.searchField=Lo("input",{value:n.search,placeholder:Sl(t,"Find"),"aria-label":Sl(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Lo("input",{value:n.replace,placeholder:Sl(t,"Replace"),"aria-label":Sl(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Lo("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Lo("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Lo("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(o,i,a){return Lo("button",{class:"cm-button",name:o,onclick:i,type:"button"},a)}this.dom=Lo("div",{onkeydown:o=>this.keydown(o),class:"cm-search"},[this.searchField,r("next",()=>D2(t),[Sl(t,"next")]),r("prev",()=>j2(t),[Sl(t,"previous")]),r("select",()=>BQe(t),[Sl(t,"all")]),Lo("label",null,[this.caseField,Sl(t,"match case")]),Lo("label",null,[this.reField,Sl(t,"regexp")]),Lo("label",null,[this.wordField,Sl(t,"by word")]),...t.state.readOnly?[]:[Lo("br"),this.replaceField,r("replace",()=>oF(t),[Sl(t,"replace")]),r("replaceAll",()=>FQe(t),[Sl(t,"replace all")])],Lo("button",{name:"close",onclick:()=>VK(t),"aria-label":Sl(t,"close"),type:"button"},["\xD7"])])}commit(){let t=new IK({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:t1.of(t)}))}keydown(t){tFe(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?j2:D2)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),oF(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(t1)&&!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(C0).top}}function Sl(e,t){return e.state.phrase(t)}const Vx=30,Fx=/[\s\.,:;?!]/;function F3(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-Vx),a=Math.min(o,n+Vx),s=e.state.sliceDoc(i,a);if(i!=r.from){for(let l=0;l<Vx;l++)if(!Fx.test(s[l+1])&&Fx.test(s[l])){s=s.slice(l);break}}if(a!=o){for(let l=s.length-1;l>s.length-Vx;l--)if(!Fx.test(s[l-1])&&Fx.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 WQe=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"}}),YQe=[Qh,xv.low(LQe),WQe];class FK{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=ra(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(QK(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 iF(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 ZQe(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=iF(t)+iF(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function zK(e){let t=e.map(o=>typeof o=="string"?{label:o}:o),[n,r]=t.every(o=>/^\w+$/.test(o.label))?[/\w*$/,/\w+$/]:ZQe(t);return o=>{let i=o.matchBefore(r);return i||o.explicit?{from:i?i.from:o.pos,options:t,validFor:n}:null}}function UQe(e,t){return n=>{for(let r=ra(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 aF{constructor(t,n,r,o){this.completion=t,this.source=n,this.match=r,this.score=o}}function Wh(e){return e.selection.main.from}function QK(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 WK=$d.define();function HQe(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 sF=new WeakMap;function XQe(e){if(!Array.isArray(e))return e;let t=sF.get(e);return t||sF.set(e,t=zK(e)),t}const z3=Sr.define(),n1=Sr.define();class GQe{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=Aa(t,n),o=pu(r);this.chars.push(r);let i=t.slice(n,n+o),a=i.toUpperCase();this.folded.push(Aa(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 P=Aa(t,0),$=pu(P),T=$==t.length?0:-100;if(P!=n[0])if(P==r[0])T+=-200;else return!1;return this.ret(T,[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 P=0,$=Math.min(t.length,200);P<$&&u<l;){let T=Aa(t,P);(T==n[u]||T==r[u])&&(o[u++]=P),P+=pu(T)}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 P=0,$=Math.min(t.length,200),T=0;P<$&&p<l;){let A=Aa(t,P);s<0&&(d<l&&A==n[d]&&(i[d++]=P),y<l&&(A==n[y]||A==r[y]?(y==0&&(w=P),b=P+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=h3(A))!=R.toLowerCase()?1:R!=R.toUpperCase()?2:0;(!P||B==1&&k||T==0&&B!=0)&&(n[p]==A||r[p]==A&&(v=!0)?a[p++]=P:a.length&&(C=!1)),T=B,P+=pu(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?pu(Aa(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 ns=Rn.define({combine(e){return Ef(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:KQe,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=>lF(t(r),n(r)),optionClass:(t,n)=>r=>lF(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function lF(e,t){return e?t?e+" "+t:e:t}function KQe(e,t,n,r,o,i){let a=e.textDirection==ci.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 P=o.bottom-t.bottom;P>=b||P>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 qQe(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 xA(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 JQe{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(ns);this.optionContent=qQe(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=xA(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(ns).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:n1.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=xA(i.length,a,t.state.facet(ns).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=xA(n.options.length,n.selected,this.view.state.facet(ns).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=>fc(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&&tWe(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(ns).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 eWe(e,t){return n=>new JQe(n,e,t)}function tWe(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 uF(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function nWe(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 aF(d,l.source,u?u(d):[],1e9-n.length));else{let d=new GQe(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 aF(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(ns).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):uF(l.completion)>uF(a)&&(i[i.length-1]=l),a=l.completion}return i}class cy{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 cy(this.options,cF(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,o,i){let a=nWe(t,n);if(!a.length)return o&&t.some(l=>l.state==1)?new cy(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let s=n.facet(ns).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 cy(a,cF(r,s),{pos:t.reduce((l,u)=>u.hasResult()?Math.min(l,u.from):l,1e8),create:sWe,above:i.aboveCursor},o?o.timestamp:Date.now(),s,!1)}map(t){return new cy(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class L2{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new L2(iWe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(ns),i=(r.override||n.languageDataAt("autocomplete",Wh(n)).map(XQe)).map(s=>(this.active.find(u=>u.source==s)||new Zs(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))||!rWe(i,this.active)?a=cy.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 Zs(s.source,0):s));for(let s of t.effects)s.is(ZK)&&(a=a&&a.setSelected(s.value,this.id));return i==this.active&&a==this.open?this:new L2(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:oWe}}function rWe(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 oWe={"aria-autocomplete":"list"};function cF(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const iWe=[];function nN(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class Zs{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=nN(t),o=this;r?o=o.handleUserEvent(t,r,n):t.docChanged?o=o.handleChange(t):t.selection&&o.state!=0&&(o=new Zs(o.source,0));for(let i of t.effects)if(i.is(z3))o=new Zs(o.source,1,i.value?Wh(t.state):-1);else if(i.is(n1))o=new Zs(o.source,0);else if(i.is(YK))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 Zs(this.source,1)}handleChange(t){return t.changes.touchesRange(Wh(t.startState))?new Zs(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Zs(this.source,this.state,t.mapPos(this.explicitPos))}}class Ty extends Zs{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=Wh(t.state);if((this.explicitPos<0?s<=i:s<this.from)||s>a||n=="delete"&&Wh(t.startState)==this.from)return new Zs(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return aWe(this.result.validFor,t.state,i,a)?new Ty(this.source,l,this.result,i,a):this.result.update&&(u=this.result.update(this.result,i,a,new FK(t.state,s,l>=0)))?new Ty(this.source,l,u,u.from,(o=u.to)!==null&&o!==void 0?o:Wh(t.state)):new Zs(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Zs(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new Ty(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function aWe(e,t,n,r){if(!e)return!1;let o=t.sliceDoc(n,r);return typeof e=="function"?e(o,n,r,t):QK(e,!0).test(o)}const YK=Sr.define({map(e,t){return e.map(n=>n.map(t))}}),ZK=Sr.define(),Tl=ga.define({create(){return L2.start()},update(e,t){return e.update(t)},provide:e=>[w3.from(e,t=>t.tooltip),xn.contentAttributes.from(e,t=>t.attrs)]});function UK(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Tl).active.find(o=>o.source==t.source);return r instanceof Ty?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},HQe(e.state,n,r.from,r.to)),{annotations:WK.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const sWe=eWe(Tl,UK);function zx(e,t="option"){return n=>{let r=n.state.field(Tl,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(ns).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:ZK.of(s)}),!0}}const lWe=e=>{let t=e.state.field(Tl,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(ns).interactionDelay?!1:UK(e,t.open.options[t.open.selected])},uWe=e=>e.state.field(Tl,!1)?(e.dispatch({effects:z3.of(!0)}),!0):!1,cWe=e=>{let t=e.state.field(Tl,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:n1.of(null)}),!0)};class fWe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const dWe=50,hWe=1e3,pWe=Ri.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(Tl).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(Tl);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Tl)==t)return;let n=e.transactions.some(r=>(r.selection||r.docChanged)&&!nN(r));for(let r=0;r<this.running.length;r++){let o=this.running[r];if(n||o.updates.length+e.transactions.length>dWe&&Date.now()-o.time>hWe){for(let i of o.context.abortListeners)try{i()}catch(a){fc(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)nN(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(Tl);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=Wh(t),r=new FK(t,n,e.explicitPos==n),o=new fWe(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:n1.of(null)}),fc(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(ns).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(ns);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 Ty(o.active.source,o.active.explicitPos,o.done,o.done.from,(e=o.done.to)!==null&&e!==void 0?e:Wh(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(Tl).active.find(a=>a.source==o.active.source);if(i&&i.state==1)if(o.done==null){let a=new Zs(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:YK.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Tl,!1);if(t&&t.tooltip&&this.view.state.facet(ns).closeOnBlur){let n=t.open&&kG(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&this.view.dispatch({effects:n1.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:z3.of(!1)}),20),this.composing=0}}}),HK=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 gWe{constructor(t,n,r,o){this.field=t,this.line=n,this.from=r,this.to=o}}class Q3{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Na.TrackDel),r=t.mapPos(this.to,1,Na.TrackDel);return n==null||r==null?null:new Q3(this.field,n,r)}}class W3{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(V1);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 Q3(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 gWe(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 W3(r,o)}}let vWe=Xn.widget({widget:new class extends Tf{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),mWe=Xn.mark({class:"cm-snippetField"});class E0{constructor(t,n){this.ranges=t,this.active=n,this.deco=Xn.set(t.map(r=>(r.from==r.to?vWe:mWe).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 E0(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 W1=Sr.define({map(e,t){return e&&e.map(t)}}),yWe=Sr.define(),r1=ga.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(W1))return n.value;if(n.is(yWe)&&e)return new E0(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 Y3(e,t){return Dt.create(e.filter(n=>n.field==t).map(n=>Dt.range(n.from,n.to)))}function bWe(e){let t=W3.parse(e);return(n,r,o,i)=>{let{text:a,ranges:s}=t.instantiate(n.state,o),l={changes:{from:o,to:i,insert:ao.of(a)},scrollIntoView:!0,annotations:r?WK.of(r):void 0};if(s.length&&(l.selection=Y3(s,0)),s.length>1){let u=new E0(s,0),d=l.effects=[W1.of(u)];n.state.field(r1,!1)===void 0&&d.push(Sr.appendConfig.of([r1,xWe,kWe,HK]))}n.dispatch(n.state.update(l))}}function XK(e){return({state:t,dispatch:n})=>{let r=t.field(r1,!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:Y3(r.ranges,o),effects:W1.of(i?null:new E0(r.ranges,o)),scrollIntoView:!0})),!0}}const _We=({state:e,dispatch:t})=>e.field(r1,!1)?(t(e.update({effects:W1.of(null)})),!0):!1,OWe=XK(1),wWe=XK(-1),SWe=[{key:"Tab",run:OWe,shift:wWe},{key:"Escape",run:_We}],fF=Rn.define({combine(e){return e.length?e[0]:SWe}}),xWe=xv.highest(L1.compute([fF],e=>e.facet(fF)));function Ys(e,t){return Object.assign(Object.assign({},t),{apply:bWe(e)})}const kWe=xn.domEventHandlers({mousedown(e,t){let n=t.state.field(r1,!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:Y3(n.ranges,o.field),effects:W1.of(n.ranges.some(i=>i.field>o.field)?new E0(n.ranges,o.field):null),scrollIntoView:!0}),!0)}}),o1={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Zg=Sr.define({map(e,t){let n=t.mapPos(e,-1,Na.TrackAfter);return n==null?void 0:n}}),Z3=new class extends hv{};Z3.startSide=1;Z3.endSide=-1;const GK=ga.define({create(){return fo.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=fo.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(Zg)&&(e=e.update({add:[Z3.range(n.value,n.value+1)]}));return e}});function CWe(){return[TWe,GK]}const kA="()[]{}<>";function KK(e){for(let t=0;t<kA.length;t+=2)if(kA.charCodeAt(t)==e)return kA.charAt(t+1);return h3(e<128?e:e+1)}function qK(e,t){return e.languageDataAt("closeBrackets",t)[0]||o1}const EWe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),TWe=xn.inputHandler.of((e,t,n,r)=>{if((EWe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(r.length>2||r.length==2&&pu(Aa(r,0))==1||t!=o.from||n!=o.to)return!1;let i=AWe(e.state,r);return i?(e.dispatch(i),!0):!1}),PWe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=qK(e,e.selection.main.head).brackets||o1.brackets,o=null,i=e.changeByRange(a=>{if(a.empty){let s=MWe(e.doc,a.head);for(let l of r)if(l==s&&iE(e.doc,a.head)==KK(Aa(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},$We=[{key:"Backspace",run:PWe}];function AWe(e,t){let n=qK(e,e.selection.main.head),r=n.brackets||o1.brackets;for(let o of r){let i=KK(Aa(o,0));if(t==o)return i==o?IWe(e,o,r.indexOf(o+o+o)>-1,n):RWe(e,o,i,n.before||o1.before);if(t==i&&JK(e,e.selection.main.from))return NWe(e,o,i)}return null}function JK(e,t){let n=!1;return e.field(GK).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function iE(e,t){let n=e.sliceString(t,t+2);return n.slice(0,pu(Aa(n,0)))}function MWe(e,t){let n=e.sliceString(t-2,t);return pu(Aa(n,0))==n.length?n:n.slice(1)}function RWe(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:Zg.of(a.to+t.length),range:Dt.range(a.anchor+t.length,a.head+t.length)};let s=iE(e.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:Zg.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 NWe(e,t,n){let r=null,o=e.changeByRange(i=>i.empty&&iE(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 IWe(e,t,n,r){let o=r.stringPrefixes||o1.stringPrefixes,i=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:Zg.of(s.to+t.length),range:Dt.range(s.anchor+t.length,s.head+t.length)};let l=s.head,u=iE(e.doc,l),d;if(u==t){if(dF(e,l))return{changes:{insert:t+t,from:l},effects:Zg.of(l+t.length),range:Dt.cursor(l+t.length)};if(JK(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=hF(e,l-2*t.length,o))>-1&&dF(e,d))return{changes:{insert:t+t+t+t,from:l},effects:Zg.of(l+t.length),range:Dt.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=ni.Word&&hF(e,l,o)>-1&&!DWe(e,l,t,o))return{changes:{insert:t+t,from:l},effects:Zg.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 dF(e,t){let n=ra(e).resolveInner(t+1);return n.parent&&n.from==t}function DWe(e,t,n,r){let o=ra(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 hF(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=ni.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))!=ni.Word)return i}return-1}function jWe(e={}){return[Tl,ns.of(e),pWe,LWe,HK]}const eq=[{key:"Ctrl-Space",run:uWe},{key:"Escape",run:cWe},{key:"ArrowDown",run:zx(!0)},{key:"ArrowUp",run:zx(!1)},{key:"PageDown",run:zx(!0,"page")},{key:"PageUp",run:zx(!1,"page")},{key:"Enter",run:lWe}],LWe=xv.highest(L1.computeN([ns],e=>e.facet(ns).defaultKeymap?[eq]:[]));class BWe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Dg{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let o=t,i=r.facet(rq).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 HWe(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 Dg(a,n,e0(a))}}function e0(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 BWe(o,i,a.diagnostic),!1}),r}function VWe(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(tq))||e.changes.touchesRange(n.from,n.to))}function FWe(e,t){return e.field(Al,!1)?t:t.concat(Sr.appendConfig.of(KWe))}const tq=Sr.define(),U3=Sr.define(),nq=Sr.define(),Al=ga.define({create(){return new Dg(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=e0(n,e.selected.diagnostic,o)||e0(n,null,o)}e=new Dg(n,e.panel,r)}for(let n of t.effects)n.is(tq)?e=Dg.init(n.value,e.panel,t.state):n.is(U3)?e=new Dg(e.diagnostics,n.value?aE.open:null,e.selected):n.is(nq)&&(e=new Dg(e.diagnostics,e.panel,n.value));return e},provide:e=>[KO.from(e,t=>t.panel),xn.decorations.from(e,t=>t.diagnostics)]}),zWe=Xn.mark({class:"cm-lintRange cm-lintRange-active"});function QWe(e,t,n){let{diagnostics:r}=e.state.field(Al),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(rq).tooltipFilter;return s&&(o=s(o)),o.length?{pos:i,end:a,above:e.state.doc.lineAt(i).to<a,create(){return{dom:WWe(e,o)}}}:null}function WWe(e,t){return Lo("ul",{class:"cm-tooltip-lint"},t.map(n=>iq(e,n,!1)))}const YWe=e=>{let t=e.state.field(Al,!1);(!t||!t.panel)&&e.dispatch({effects:FWe(e.state,[U3.of(!0)])});let n=GO(e,aE.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},pF=e=>{let t=e.state.field(Al,!1);return!t||!t.panel?!1:(e.dispatch({effects:U3.of(!1)}),!0)},ZWe=e=>{let t=e.state.field(Al,!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)},UWe=[{key:"Mod-Shift-m",run:YWe,preventDefault:!0},{key:"F8",run:ZWe}],rq=Rn.define({combine(e){return Object.assign({sources:e.map(t=>t.source)},Ef(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 oq(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 iq(e,t,n){var r;let o=n?oq(t.actions):[];return Lo("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Lo("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=e0(e.state.field(Al).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),Lo("u",u.slice(d,d+1)),u.slice(d+1)];return Lo("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${d<0?"":` (access key "${o[a]})"`}.`},p)}),t.source&&Lo("div",{class:"cm-diagnosticSource"},t.source))}class HWe extends Tf{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Lo("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class gF{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=iq(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class aE{constructor(t){this.view=t,this.items=[];let n=o=>{if(o.keyCode==27)pF(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=oq(i.actions);for(let s=0;s<a.length;s++)if(a[s].toUpperCase().charCodeAt(0)==o.keyCode){let l=e0(this.view.state.field(Al).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=Lo("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=Lo("div",{class:"cm-panel-lint"},this.list,Lo("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>pF(this.view)},"\xD7")),this.update()}get selectedIndex(){let t=this.view.state.field(Al).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(Al),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 gF(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 gF(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(Al),r=e0(n.diagnostics,this.items[t].diagnostic);!r||this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:nq.of(r)})}static open(t){return new aE(t)}}function XWe(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 Qx(e){return XWe(`<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 GWe=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:Qx("#d11")},".cm-lintRange-warning":{backgroundImage:Qx("orange")},".cm-lintRange-info":{backgroundImage:Qx("#999")},".cm-lintRange-hint":{backgroundImage:Qx("#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}}}),KWe=[Al,xn.decorations.compute([Al],e=>{let{selected:t,panel:n}=e.field(Al);return!t||!n||t.from==t.to?Xn.none:Xn.set([zWe.range(t.from,t.to)])}),zFe(QWe,{hideOn:VWe}),GWe],qWe=(()=>[KFe(),eze(),yFe(),m7e(),zze(),sFe(),dFe(),Br.allowMultipleSelections.of(!0),Pze(),Wze(Uze,{fallback:!0}),e7e(),CWe(),jWe(),MFe(),IFe(),xFe(),SQe(),L1.of([...$We,...mQe,...zQe,...C7e,...Lze,...eq,...UWe])])();/*!
- * VueCodemirror v6.1.1
- * Copyright (c) Surmon. All rights reserved.
- * Released under the MIT License.
- * Surmon
- */var JWe=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[qWe]}),eYe=Symbol("vue-codemirror-global-config"),Os,tYe=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 Br.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))})])})},ny=function(e){var t=new I1;return{compartment:t,run:function(n){t.get(e.state)?e.dispatch({effects:t.reconfigure(n)}):e.dispatch({effects:Sr.appendConfig.of(t.of(n))})}}},vF=function(e,t){var n=ny(e),r=n.compartment,o=n.run;return function(i){var a=r.get(e.state);o((i!=null?i:a!==t)?t:[])}},Wx={type:Boolean,default:void 0},nYe={autofocus:Wx,disabled:Wx,indentWithTab:Wx,tabSize:Number,placeholder:String,style:Object,autoDestroy:Wx,phrases:Object,root:Object,extensions:Array,selection:Object},rYe={modelValue:{type:String,default:""}},oYe=Object.assign(Object.assign({},nYe),rYe);(function(e){e.Change="change",e.Update="update",e.Focus="focus",e.Blur="blur",e.Ready="ready",e.ModelUpdate="update:modelValue"})(Os||(Os={}));var jg={};jg[Os.Change]=function(e,t){return!0},jg[Os.Update]=function(e){return!0},jg[Os.Focus]=function(e){return!0},jg[Os.Blur]=function(e){return!0},jg[Os.Ready]=function(e){return!0};var aq={};aq[Os.ModelUpdate]=jg[Os.Change];var iYe=Object.assign(Object.assign({},jg),aq),aYe=xe({name:"VueCodemirror",props:Object.assign({},oYe),emits:Object.assign({},iYe),setup:function(e,t){var n=Jr(),r=Jr(),o=Jr(),i=Object.assign(Object.assign({},JWe),Pt(eYe,{})),a=W(function(){var s={};return Object.keys(fr(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=tYe({doc:e.modelValue,selection:a.value.selection,extensions:(s=i.extensions)!==null&&s!==void 0?s:[],onFocus:function(u){return t.emit(Os.Focus,u)},onBlur:function(u){return t.emit(Os.Blur,u)},onUpdate:function(u){return t.emit(Os.Update,u)},onChange:function(u,d){u!==e.modelValue&&(t.emit(Os.Change,u,d),t.emit(Os.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=ny(u).run,v=vF(u,[xn.editable.of(!1),Br.readOnly.of(!0)]),y=vF(u,L1.of([yQe])),w=ny(u).run,b=ny(u).run,k=ny(u).run,C=ny(u).run;return{focus:function(){return u.focus()},getDoc:d,setDoc:function(P){P!==d()&&u.dispatch({changes:{from:0,to:u.state.doc.length,insert:P}})},reExtensions:p,toggleDisabled:v,toggleIndentWithTab:y,setTabSize:function(P){w([Br.tabSize.of(P),V1.of(" ".repeat(P))])},setPhrases:function(P){b([Br.phrases.of(P)])},setPlaceholder:function(P){k(TFe(P))},setStyle:function(P){P===void 0&&(P={}),C(xn.theme({"&":Object.assign({},P)}))}}}(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(Os.Ready,{state:r.value,view:o.value,container:n.value})}),Hr(function(){a.value.autoDestroy&&o.value&&function(s){s.destroy()}(o.value)}),function(){return Zt("div",{class:"v-codemirror",style:{display:"contents"},ref:n})}}}),t0=aYe;class B2{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 B2(t,[],n,r,r,0,[],0,o?new mF(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 B2(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 sYe(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 mF(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 mF{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class sYe{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 V2{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 V2(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 V2(this.stack,this.pos,this.index)}}function j_(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 Ck{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const yF=new Ck;class lYe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=yF,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=yF,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 Py{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;sq(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}Py.prototype.contextual=Py.prototype.fallback=Py.prototype.extend=!1;class rN{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?j_(t):t}token(t,n){let r=t.pos,o=0;for(;;){let i=t.next<0,a=t.resolveOffset(1,1);if(sq(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))}}rN.prototype.contextual=Py.prototype.fallback=Py.prototype.extend=!1;class H3{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function sq(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||uYe(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 bF(e,t,n){for(let r=t,o;(o=e[r])!=65535;r++)if(o==n)return r-t;return-1}function uYe(e,t,n,r){let o=bF(n,r,t);return o<0||bF(n,r,e)<o}const xl=typeof process!="undefined"&&process.env&&/\bparse\b/.test({}.LOG);let CA=null;function _F(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 cYe{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?_F(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?_F(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 Fi){if(a==t){if(a<this.safeFrom)return null;let s=a+i.length;if(s<=this.safeTo){let l=i.prop(Ur.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 fYe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new Ck)}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 Ck,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 Ck,{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=ad(s,u+2);else{o==0&&s[u+1]==2&&(o=this.putAction(ad(s,u+2),n,r,o));break}s[u]==n&&(o=this.putAction(ad(s,u+1),n,r,o))}return o}}class dYe{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 lYe(n,o),this.tokens=new fYe(t,this.stream),this.topTerm=t.top[1];let{from:i}=o[0];this.stacks=[B2.start(this,t.top[0],i)],this.fragments=r.length&&this.stream.end-i>t.bufferLength*4?new cYe(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&&gYe(o);if(a)return xl&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw xl&&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 xl&&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=xl?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(Ur.contextHash)||0)==d))return t.useNode(p,v),xl&&console.log(a+this.stackID(t)+` (via reuse of ${i.getName(p.type.id)})`),!0;if(!(p instanceof Fi)||p.children.length==0||p.positions[0]>0)break;let y=p.children[0];if(y instanceof Fi&&p.positions[0]==0)p=y;else break}}let s=i.stateSlot(t.state,4);if(s>0)return t.reduce(s),xl&&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),xl&&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 OF(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=xl?this.stackID(s)+" -> ":"";if(s.deadEnd&&(i||(i=!0,s.restart(),xl&&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&&(xl&&console.log(v+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,r));y++)xl&&(v=this.stackID(p)+" -> ");for(let y of s.recoverByInsert(l))xl&&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),xl&&console.log(d+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),OF(s,r)):(!o||o.score<s.score)&&(o=s)}return o}stackToTree(t){return t.close(),Fi.build({buffer:V2.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=(CA||(CA=new WeakMap)).get(t);return n||CA.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}function OF(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 hYe{constructor(t,n,r){this.source=t,this.flags=n,this.disabled=r}allows(t){return!this.disabled||this.disabled[t]==0}}const EA=e=>e;class pYe{constructor(t){this.start=t.start,this.shift=t.shift||EA,this.reduce=t.reduce||EA,this.reuse=t.reuse||EA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class i1 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=Ur[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 x3(n.map((s,l)=>nl.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=j_(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(wF),this.states=j_(t.states,Uint32Array),this.data=j_(t.stateData),this.goto=j_(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(s=>typeof s=="number"?new Py(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 dYe(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=ad(r,i+2)];else{if(r[i+1]==2)return ad(r,i+2);break}if(a==n||a==0)return ad(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=ad(this.data,i+2);else break;o=n(ad(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=ad(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(i1.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]=wF(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 hYe(t,r,o)}static deserialize(t){return new i1(t)}}function ad(e,t){return e[t]|e[t+1]<<16}function gYe(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 wF(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}const vYe=T3({String:bt.string,Number:bt.number,"True False":bt.bool,PropertyName:bt.propertyName,Null:bt.null,",":bt.separator,"[ ]":bt.squareBracket,"{ }":bt.brace}),mYe=i1.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:[vYe],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}),yYe=JO.define({name:"json",parser:mYe.configure({props:[A3.add({Object:uO({except:/^\s*\}/}),Array:uO({except:/^\s*\]/})}),R3.add({"Object Array":FG})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function sE(){return new LG(yYe)}const bYe={style:{flex:"auto"}},_Ye={__name:"DataDialog",props:["show","data","ruleChainId","lf"],emits:["submit","close"],setup(e,{emit:t}){const n=e,r=[sE()],{show:o,data:i,ruleChainId:a}=ea(n),s=()=>{let d=new Blob([i.value],{type:"text/plain;charset=utf-8"});d3.exports.saveAs(d,a.value+".json")},l=()=>{n.lf.getSnapshot(a.value+".png","#FFF")},u=()=>{t("close")};return(d,p)=>{const v=al,y=il,w=ro,b=Pd;return Z(),Qe(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:le(()=>[re(y,null,{default:le(()=>[re(v,{span:12},{default:le(()=>[St("\u751F\u6210\u7684\u89C4\u5219\u94FE\u6587\u4EF6\u53EF\u4EE5\u76F4\u63A5\u7ED9SagooRule\u8C03\u7528")]),_:1})]),_:1})]),footer:le(()=>[ve("div",bYe,[re(w,{type:"primary",onClick:l},{default:le(()=>[St("\u4E0B\u8F7D\u56FE\u7247")]),_:1}),re(w,{type:"primary",onClick:s},{default:le(()=>[St("\u4E0B\u8F7D\u6570\u636E")]),_:1}),re(w,{onClick:u},{default:le(()=>[St("\u53D6\u6D88")]),_:1})])]),default:le(()=>[re(m(t0),{modelValue:m(i),"onUpdate:modelValue":p[0]||(p[0]=k=>eo(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"])}}},OYe=ve("a",{href:"https://github.com/rulego/rulego/tree/main/examples/server",target:"_blank"},"examples/server",-1),wYe=ve("br",null,null,-1),SYe=ve("br",null,null,-1),xYe={style:{flex:"auto"}},kYe={__name:"SettingDialog",props:["show","lf"],emits:["submit","close"],setup(e,{emit:t}){const{show:n,lf:r}=e,o=te(),i=rr({url:r.getEditorSetting().url,toolbar:r.getEditorSetting().toolbar});vc(()=>{i.url=r.getEditorSetting().url,i.toolbar=r.getEditorSetting().toolbar});const a=()=>{t("submit",fr(i))},s=()=>{t("close")};return(l,u)=>{const d=al,p=il,v=hY,y=M1,w=ti,b=kf,k=zl,C=xf,P=ro,$=Pd;return Z(),Qe($,{"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:le(()=>[re(p,null,{default:le(()=>[re(d,{span:12},{default:le(()=>[St("RuleGo-Editor\u8BBE\u7F6E")]),_:1})]),_:1})]),footer:le(()=>[ve("div",xYe,[re(P,{type:"primary",onClick:a},{default:le(()=>[St("\u786E\u8BA4")]),_:1}),re(P,{onClick:s},{default:le(()=>[St("\u53D6\u6D88")]),_:1})])]),default:le(()=>[re(v,{title:"",type:"info",style:{"margin-bottom":"10px","margin-top":"-10px"},center:""},{default:le(()=>[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"),OYe,St("\u3002 ")]),_:1}),re(y,{size:"small",type:"info"},{default:le(()=>[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}),wYe,SYe,re(C,{model:i,ref_key:"formRef",ref:o,"label-position":"top","label-width":"auto"},{default:le(()=>[re(b,{label:"RuleGo\u540E\u53F0URL",prop:"url"},{default:le(()=>[re(w,{modelValue:i.url,"onUpdate:modelValue":u[0]||(u[0]=T=>i.url=T),placeholder:"\u7528\u4E8E\u4FDD\u5B58\u548C\u8C03\u8BD5\u89C4\u5219\u94FE"},null,8,["modelValue"])]),_:1}),re(b,{label:"Toolbar\u7BA1\u7406"},{default:le(()=>[re(k,{modelValue:i.toolbar.showTest,"onUpdate:modelValue":u[1]||(u[1]=T=>i.toolbar.showTest=T)},{default:le(()=>[St("\u8C03\u8BD5\u89C4\u5219\u94FE")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showNewOrOpen,"onUpdate:modelValue":u[2]||(u[2]=T=>i.toolbar.showNewOrOpen=T)},{default:le(()=>[St("\u65B0\u5EFA/\u6253\u5F00")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showData,"onUpdate:modelValue":u[3]||(u[3]=T=>i.toolbar.showData=T)},{default:le(()=>[St("\u67E5\u770B\u6570\u636E")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showSetting,"onUpdate:modelValue":u[4]||(u[4]=T=>i.toolbar.showSetting=T)},{default:le(()=>[St("\u8BBE\u7F6E")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showFullScreen,"onUpdate:modelValue":u[5]||(u[5]=T=>i.toolbar.showFullScreen=T)},{default:le(()=>[St("\u5168\u5C4F")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showDelete,"onUpdate:modelValue":u[6]||(u[6]=T=>i.toolbar.showDelete=T)},{default:le(()=>[St("\u5220\u9664\u5168\u9009")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showSave,"onUpdate:modelValue":u[7]||(u[7]=T=>i.toolbar.showSave=T)},{default:le(()=>[St("\u4FDD\u5B58")]),_:1},8,["modelValue"]),re(k,{modelValue:i.toolbar.showReset,"onUpdate:modelValue":u[8]||(u[8]=T=>i.toolbar.showReset=T)},{default:le(()=>[St("\u91CD\u7F6E")]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},CYe={__name:"NodeOperate",props:["currentElementPosition"],emits:["edit","delete"],setup(e,{emit:t}){const n=()=>{t("edit")},r=()=>{t("delete")};return(o,i)=>{const a=ro;return Z(),ue("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(wW),onClick:r,circle:"",style:{"margin-left":"3px"}},null,8,["icon"])],4)}}},EYe={style:{flex:"auto","text-align":"right"}},TYe={__name:"NewFlowForm",props:["show"],emits:["submit","close"],setup(e,{emit:t}){const n=te(),r=rr({id:"default",name:"",root:!0,additionalInfo:{description:""}}),o=()=>{t("submit",fr(r))},i=()=>{t("close")};return(a,s)=>{const l=ti,u=kf,d=$1,p=ro,v=xf;return Z(),Qe(v,{model:r,ref_key:"formRef",ref:n,"label-position":"top","label-width":"auto"},{default:le(()=>[re(u,{label:"ID",prop:"id"},{default:le(()=>[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:le(()=>[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:le(()=>[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:le(()=>[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",EYe,[re(p,{type:"primary",onClick:o},{default:le(()=>[St("\u786E\u8BA4")]),_:1}),re(p,{onClick:i},{default:le(()=>[St("\u53D6\u6D88")]),_:1})])]),_:1},8,["model"])}}},PYe={style:{flex:"auto","text-align":"right"}},$Ye={__name:"OpenFlowForm",props:["show","lf"],emits:["submit","close"],setup(e,{emit:t}){const{show:n,lf:r}=e,o=[sE()],i=te(),a=rr({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=>{Bi.error(d.message)})},l=()=>{t("submit",fr(a).data)},u=()=>{t("close")};return(d,p)=>{const v=ti,y=al,w=ro,b=il,k=kf,C=xf;return Z(),Qe(C,{model:a,ref_key:"formRef",ref:i,"label-position":"top","label-width":"auto"},{default:le(()=>[re(k,{label:"\u89C4\u5219\u94FE\u5730\u5740",prop:"url"},{default:le(()=>[re(b,{style:{width:"100%"}},{default:le(()=>[re(y,{span:18},{default:le(()=>[re(v,{modelValue:a.url,"onUpdate:modelValue":p[0]||(p[0]=P=>a.url=P),placeholder:"\u8BF7\u8F93\u5165\u52A0\u8F7D\u89C4\u5219\u94FE\u5730\u5740:/api/v1/rule/:id"},{prepend:le(()=>[St(" GET "+ct(e.lf.getEditorSetting().url),1)]),_:1},8,["modelValue"])]),_:1}),re(y,{span:4,offset:1,class:"el-form-item__label"},{default:le(()=>[re(w,{onClick:s,type:"primary"},{default:le(()=>[St("\u52A0\u8F7D")]),_:1})]),_:1})]),_:1})]),_:1}),re(k,{label:"\u89C4\u5219\u94FE\u5B9A\u4E49\u6570\u636E",prop:"data"},{default:le(()=>[re(m(t0),{modelValue:a.data,"onUpdate:modelValue":p[1]||(p[1]=P=>a.data=P),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",PYe,[re(w,{type:"primary",size:"large",onClick:l},{default:le(()=>[St("\u786E\u8BA4")]),_:1}),re(w,{size:"large",onClick:u},{default:le(()=>[St("\u53D6\u6D88")]),_:1})])]),_:1},8,["model"])}}},AYe={__name:"NewOrOpenFlowDialog",props:["show","lf"],emits:["new","open","close"],setup(e,{emit:t}){const n=te("new"),r=a=>{t("new",a)},o=a=>{t("open",a)},i=()=>{t("close")};return(a,s)=>{const l=al,u=il,d=WC,p=QC,v=Pd;return Z(),Qe(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:le(()=>[re(u,null,{default:le(()=>[re(l,{span:12},{default:le(()=>[St("\u65B0\u5EFA/\u6253\u5F00\u89C4\u5219\u94FE")]),_:1})]),_:1})]),default:le(()=>[re(p,{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=y=>n.value=y)},{default:le(()=>[re(d,{label:"\u65B0\u5EFA\u89C4\u5219\u94FE",name:"new"},{default:le(()=>[re(TYe,{onSubmit:r,onClose:i})]),_:1}),re(d,{label:"\u6253\u5F00\u89C4\u5219\u94FE",name:"open"},{default:le(()=>[re($Ye,{lf:e.lf,onSubmit:o,onClose:i},null,8,["lf"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}}},MYe={style:{flex:"auto"}},RYe={__name:"PostMsgDialog",props:["show","lf"],emits:["submit","close"],setup(e,{emit:t}){const{show:n,lf:r}=e,o=[sE()],i=te(),a=rr({url:r.getEditorSetting().msgApi.replace(":chainId",r.getRuleChain().id),headers:`
- {
- "Content-Type": "application/json"
- }
- `,body:`
- {
- "temperature":28
- }
- `});let s=":msgTye";vc(()=>{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){Bi.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=>{Bi({showClose:!0,message:"\u53D1\u9001\u6210\u529F",type:"success"})}).catch(y=>{Bi.error(y.message)})}catch(v){Bi.error(v.message)}else return!1})},u=()=>{t("close")};return(d,p)=>{const v=ti,y=kf,w=xf,b=ro,k=Pd;return Z(),Qe(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:le(()=>[St(" \u8C03\u8BD5 ")]),footer:le(()=>[ve("div",MYe,[re(b,{type:"primary",size:"large",onClick:p[3]||(p[3]=C=>l(i.value))},{default:le(()=>[St("\u53D1\u9001")]),_:1}),re(b,{size:"large",onClick:u},{default:le(()=>[St("\u53D6\u6D88")]),_:1})])]),default:le(()=>[re(w,{model:a,ref_key:"formRef",ref:i,"label-position":"top","label-width":"auto"},{default:le(()=>[re(y,{label:"\u4E0A\u62A5\u6570\u636EURL",rules:[{required:!0,message:"url\u662F\u5FC5\u987B\u7684"}],prop:"url"},{default:le(()=>[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:le(()=>[St(" POST "+ct(e.lf.getEditorSetting().url),1)]),_:1},8,["modelValue"])]),_:1}),re(y,{label:"\u8BF7\u6C42\u5934",prop:"headers"},{default:le(()=>[re(m(t0),{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:le(()=>[re(m(t0),{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"])}}},NYe=e=>(ioe("data-v-71184d66"),e=e(),aoe(),e),IYe={class:"up-toolbar"},DYe=NYe(()=>ve("div",{class:"logo"},[ve("img",{class:"logoimg",src:sVe,alt:"logo"}),St("Sagoo Rule Editor ")],-1)),jYe={class:"title"},LYe={__name:"Toolbar",props:["lf"],setup(e){const{lf:t}=e,n=te(null),r=te(null),o=te(!1),i=te(!1),a=te(!1),s=te(),l=te(),u=te(!1),d=te(!1),p=te(!1),v=te(!1),y=te(!1),w=te("");let b=te({x:0,y:0}),k=te({x:0,y:0,targetNodeId:""});const C=te(!0),P=te({toolbar:t.getEditorSetting().toolbar});let $=null,T=null,A=null;vn(()=>{$=window.location.search.split("?id=")[1],$&&fetch(t.getEditorSetting().url+"/api/v1/rule/"+$).then(z=>{if(!z.ok)Bi.closeAll(),Bi.error("\u89C4\u5219\u94FE\u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u66F4\u6362 ID \u518D\u6B21\u5C1D\u8BD5");else return z.text()}).then(z=>{var X;if(z){ae(z);const ee=JSON.parse(z);T=ee.ruleChain.name,A=(X=ee.ruleChain.additionalInfo)==null?void 0:X.description}}).catch(z=>{Bi.error(z.message)})}),t.on("history:change",()=>{i.value=!0}),t.on("selection:selected,node:click,edge:click,blank:click",()=>{const{nodes:z,edges:X}=t.getSelectElements();z.filter(he=>he.type!=="start-node").length>0||X.length>0?o.value=!0:o.value=!1}),t.on("node:drag",({data:z,e:X})=>{if(z.type!=="start-node"&&n.value&&z.id===n.value.id){let ee=t.getPointByClient(X.clientX,X.clientY);b.value.x=ee.domOverlayPosition.x+40,b.value.y=ee.domOverlayPosition.y-45}else if(r.value){let ee=t.getEdgeDataById(r.value.id);if(z.id!==ee.sourceNodeId&&z.id!==ee.targetNodeId)return;let he=t.getPointByClient(X.clientX,X.clientY);k.value.x!==0&&k.value.y!==0&&k.value.targetNodeId===z.id&&(b.value.x=b.value.x-(k.value.x-he.domOverlayPosition.x),b.value.y=b.value.y-(k.value.y-he.domOverlayPosition.y)),k.value.x=he.domOverlayPosition.x,k.value.y=he.domOverlayPosition.y,k.value.targetNodeId=z.id}}),t.on("node:click",({data:z,position:X})=>{z.type!=="start-node"?(n.value=z,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=z.id,v.value=!0):v.value=!1}),t.on("edge:click",({data:z,position:X})=>{n.value=null,r.value=z,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",z=>{n.value=null,r.value=null,v.value=!1,o.value=!1}),t.on("rulego-editor:setting",z=>{P.value=z,C.value=z.showTest});const R=()=>{y.value=!0},B=()=>{if(!($&&T))return Bi.info("\u8BF7\u5148\u4ECE sagoo-iot \u4E2D\u9009\u62E9\u4E00\u4E2A\u89C4\u5219\u94FE\u518D\u8FDB\u884C\u5BFC\u5165\u64CD\u4F5C");const z=document.createElement("input");z.type="file",z.accept=".json",z.onchange=()=>{const X=z.files[0],ee=new FileReader;ee.readAsText(X),ee.onload=()=>{const he=JSON.parse(ee.result);he.ruleChain.id=$,he.ruleChain.name=T,he.ruleChain.additionalInfo.description=A,w.value=he.ruleChain.name,t.graphModel.eventCenter.emit("rulego-editor:open",JSON.stringify(he)),i.value=!0}},z.click()},N=()=>{const z=t.getGraphData(),X=z.ruleChain.id,ee=new Blob([JSON.stringify(z,null,2)],{type:"text/plain;charset=utf-8"});d3.exports.saveAs(ee,X+".json")},I=()=>{a.value=!1},D=()=>{u.value=!1},j=()=>{u.value=!1,d.value=!1,p.value=!1,y.value=!1},F=()=>{window.close()},G=z=>{t.graphModel.eventCenter.emit("rulego-editor:new",z),j()},ae=z=>{w.value=JSON.parse(z).ruleChain.name,t.graphModel.eventCenter.emit("rulego-editor:open",z),j()},K=z=>{t.graphModel.eventCenter.emit("rulego-editor:setting",z),j()},H=()=>{t.graphModel.eventCenter.emit("rulego-editor:save")},oe=()=>{t.graphModel.eventCenter.emit("rulego-editor:deleteSelects"),v.value=!1},J=()=>{t.graphModel.eventCenter.emit("rulego-editor:showEditPanel")};return(z,X)=>{const ee=ro,he=al,fe=il;return Z(),ue(Tt,null,[ve("div",IYe,[DYe,ve("div",jYe,ct(w.value),1),re(fe,null,{default:le(()=>[re(he,{span:24},{default:le(()=>[re(ee,{onClick:H,type:"primary",icon:m(p0),size:"small",disabled:!i.value},{default:le(()=>[St("\u4FDD\u5B58")]),_:1},8,["icon","disabled"]),re(ee,{onClick:R,type:"success",icon:m(LI),size:"small"},{default:le(()=>[St("\u8FD0\u884C")]),_:1},8,["icon"]),re(ee,{onClick:B,type:"info",plain:"",icon:m(w1e),size:"small"},{default:le(()=>[St("\u5BFC\u5165")]),_:1},8,["icon"]),re(ee,{onClick:N,type:"info",icon:m(twe),size:"small"},{default:le(()=>[St("\u5BFC\u51FA")]),_:1},8,["icon"]),re(ee,{onClick:F,type:"warning",icon:m(ks),size:"small"},{default:le(()=>[St("\u5173\u95ED")]),_:1},8,["icon"])]),_:1})]),_:1})]),Fe("",!0),re(AYe,{lf:e.lf,show:d.value,onNew:G,onOpen:ae,onClose:j},null,8,["lf","show"]),re(_Ye,{lf:e.lf,show:a.value,data:s.value,ruleChainId:l.value,onClose:I},null,8,["lf","show","data","ruleChainId"]),re(kYe,{lf:e.lf,show:u.value,onSubmit:K,onClose:D},null,8,["lf","show"]),v.value?(Z(),Qe(CYe,{key:1,onDelete:oe,onEdit:J,currentElementPosition:m(b)},null,8,["currentElementPosition"])):Fe("",!0),re(RYe,{lf:e.lf,show:y.value,onClose:j},null,8,["lf","show"])],64)}}};var BYe=S0(LYe,[["__scopeId","data-v-71184d66"]]);class lq{constructor({lf:t}){this.app=nC(BYe,{lf:t})}render(t,n){const r=document.createElement("div");n.appendChild(r),this.app.mount(r)}}p$(lq,"pluginName","ControlExtension");const VYe={style:{flex:"auto","text-align":"left"}},FYe={__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=te(),l=rr({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=wr.getSelectedLabels(l.relationTypeOptions,u.relationTypes,"relationTypes"),t("submit",fr(u));else return!1})},p=()=>{t("cancel")},v=()=>{p()};return(y,w)=>{const b=al,k=il,C=ip,P=hc,$=kf,T=xf,A=ro,R=$D;return Z(),Qe(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:le(()=>[re(k,{class:"setter-title"},{default:le(()=>[re(b,{span:12},{default:le(()=>[St("\u89C4\u5219\u8282\u70B9\u94FE\u63A5\u8BE6\u60C5")]),_:1})]),_:1})]),footer:le(()=>[ve("div",VYe,[re(A,{type:"primary",size:"large",onClick:w[1]||(w[1]=B=>d(s.value))},{default:le(()=>[St("\u786E\u8BA4")]),_:1}),re(A,{size:"large",onClick:p},{default:le(()=>[St("\u53D6\u6D88")]),_:1})])]),default:le(()=>[re(T,{model:l,ref_key:"formRef",ref:s,"label-position":"right","label-width":"auto"},{default:le(()=>[re($,{label:"\u94FE\u63A5\u6807\u7B7E",rules:[{required:!0,message:"\u94FE\u63A5\u6807\u7B7E\u662F\u5FC5\u987B\u7684"}],prop:"relationTypeValues"},{default:le(()=>[re(P,{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:le(()=>[(Z(!0),ue(Tt,null,_n(l.relationTypeOptions,B=>(Z(),Qe(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"])}}},zYe={style:{flex:"auto"}},QYe={__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=te(),l=rr({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=wr.getSelectedLabels(l.relationTypeOptions,u.relationTypes,"relationTypes"),t("submit",fr(u));else return!1})},p=()=>{t("cancel")},v=()=>{p()};return(y,w)=>{const b=ip,k=hc,C=kf,P=xf,$=ro,T=Pd;return Z(),Qe(T,{"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:le(()=>[St(" \u6DFB\u52A0\u94FE\u63A5 ")]),footer:le(()=>[ve("div",zYe,[re($,{type:"primary",size:"large",onClick:w[1]||(w[1]=A=>d(s.value))},{default:le(()=>[St("\u786E\u8BA4")]),_:1}),re($,{size:"large",onClick:p},{default:le(()=>[St("\u53D6\u6D88")]),_:1})])]),default:le(()=>[re(P,{model:l,ref_key:"formRef",ref:s,"label-position":"right","label-width":"auto"},{default:le(()=>[re(C,{label:"\u94FE\u63A5\u6807\u7B7E",rules:[{required:!0,message:"\u94FE\u63A5\u6807\u7B7E\u662F\u5FC5\u987B\u7684"}],prop:"relationTypeValues"},{default:le(()=>[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:le(()=>[(Z(!0),ue(Tt,null,_n(l.relationTypeOptions,A=>(Z(),Qe(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"])}}},WYe=304,SF=1,YYe=2,ZYe=305,UYe=307,HYe=308,XYe=3,GYe=4,KYe=[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],uq=125,qYe=59,xF=47,JYe=42,eZe=43,tZe=45,nZe=new pYe({start:!1,shift(e,t){return t==XYe||t==GYe||t==UYe?e:t==HYe},strict:!1}),rZe=new H3((e,t)=>{let{next:n}=e;(n==uq||n==-1||t.context)&&e.acceptToken(ZYe)},{contextual:!0,fallback:!0}),oZe=new H3((e,t)=>{let{next:n}=e,r;KYe.indexOf(n)>-1||n==xF&&((r=e.peek(1))==xF||r==JYe)||n!=uq&&n!=qYe&&n!=-1&&!t.context&&e.acceptToken(WYe)},{contextual:!0}),iZe=new H3((e,t)=>{let{next:n}=e;if((n==eZe||n==tZe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(SF);e.acceptToken(r?SF:YYe)}},{contextual:!0}),aZe=T3({"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)}),sZe={__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},lZe={__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},uZe={__proto__:null,"<":139},cZe=i1.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:nZe,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:[aZe],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:[oZe,iZe,2,3,4,5,6,7,8,9,10,11,12,13,rZe,new rN("$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 rN("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=>sZe[e]||-1},{term:330,get:e=>lZe[e]||-1},{term:68,get:e=>uZe[e]||-1}],tokenPrec:12827}),cq=[Ys("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Ys("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Ys("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Ys("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Ys("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Ys(`try {
- \${}
- } catch (\${error}) {
- \${}
- }`,{label:"try",detail:"/ catch block",type:"keyword"}),Ys("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Ys(`if (\${}) {
- \${}
- } else {
- \${}
- }`,{label:"if",detail:"/ else block",type:"keyword"}),Ys(`class \${name} {
- constructor(\${params}) {
- \${}
- }
- }`,{label:"class",detail:"definition",type:"keyword"}),Ys('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Ys('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],fZe=cq.concat([Ys("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Ys("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Ys("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),kF=new sze,fq=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function E_(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const dZe=["FunctionDeclaration"],hZe={FunctionDeclaration:E_("function"),ClassDeclaration:E_("class"),ClassExpression:()=>!0,EnumDeclaration:E_("constant"),TypeAliasDeclaration:E_("type"),NamespaceDeclaration:E_("namespace"),VariableDefinition(e,t){e.matchContext(dZe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function dq(e,t){let n=kF.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=hZe[a.name];if(s&&s(a,i)||fq.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of dq(e,a.node))r.push(s);return!1}}),kF.set(t,r),r}const CF=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,hq=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function pZe(e){let t=ra(e.state).resolveInner(e.pos,-1);if(hq.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&CF.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let o=t;o;o=o.parent)fq.has(o.name)&&(r=r.concat(dq(e.state.doc,o)));return{options:r,from:n?t.from:e.pos,validFor:CF}}const ev=JO.define({name:"javascript",parser:cZe.configure({props:[A3.add({IfStatement:uO({except:/^\s*({|else\b)/}),TryStatement:uO({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Eze,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:Cze({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":uO({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}}),R3.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:"$"}}),pq={test:e=>/^JSX/.test(e.name),facet:DG({commentTokens:{block:{open:"{/*",close:"*/}"}}})},gZe=ev.configure({dialect:"ts"},"typescript"),vZe=ev.configure({dialect:"jsx",props:[P3.add(e=>e.isTop?[pq]:void 0)]}),mZe=ev.configure({dialect:"jsx ts",props:[P3.add(e=>e.isTop?[pq]:void 0)]},"typescript");let gq=e=>({label:e,type:"keyword"});const vq="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(gq),yZe=vq.concat(["declare","implements","private","protected","public"].map(gq));function mq(e={}){let t=e.jsx?e.typescript?mZe:vZe:e.typescript?gZe:ev,n=e.typescript?fZe.concat(yZe):cq.concat(vq);return new LG(t,[ev.data.of({autocomplete:UQe(hq,zK(n))}),ev.data.of({autocomplete:pZe}),e.jsx?OZe:[]])}function bZe(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 EF(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 _Ze=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),OZe=xn.inputHandler.of((e,t,n,r,o)=>{if((_Ze?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!ev.isActiveAt(e.state,t,-1))return!1;let i=o(),{state:a}=i,s=a.changeByRange(l=>{var u;let{head:d}=l,p=ra(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=EF(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=bZe(p);if(y&&!/^\/?>|^<\//.test(a.doc.sliceString(d,d+2))&&(v=EF(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 yq={exports:{}},lE={},X3={exports:{}},bq={},uE={};function da(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=[]}da.prototype.clone_empty=function(){var e=new da(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e};da.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]};da.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};da.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))};da.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)};da.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};da.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};da.prototype.is_empty=function(){return this.__items.length===0};da.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]};da.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf(`
- `);t!==-1?this.__character_count=e.length-t:this.__character_count+=e.length};da.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e};da.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)};da.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)};da.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1};da.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 Y1(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}Y1.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};Y1.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};Y1.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()};Y1.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 va(e,t){this.__indent_cache=new Y1(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 da(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}va.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)};va.prototype.get_line_number=function(){return this.__lines.length};va.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)};va.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)};va.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()};va.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)};va.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&(t[t.length-1]===`
- `&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
- `);return e!==`
- `&&(n=n.replace(/[\n]/g,e)),n};va.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()};va.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)};va.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};va.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()};va.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(" "))};va.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()};va.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};va.prototype.just_added_newline=function(){return this.current_line.is_empty()};va.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()};va.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 da(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}};uE.Output=va;var G3={};function wZe(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}G3.Token=wZe;var K3={};(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
- |`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")})(K3);var q3={},T0={};function Cp(e,t){this.raw_options=_q(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"])}Cp.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};Cp.prototype._get_boolean=function(e,t){var n=this.raw_options[e],r=n===void 0?!!t:!!n;return r};Cp.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/,`
- `).replace(/\\t/," ")),r};Cp.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};Cp.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:
- `+t+`
- You passed in: '`+this.raw_options[e]+"'");return r[0]};Cp.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:
- `+t+`
- You passed in: '`+this.raw_options[e]+"'");return r};Cp.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(n){return t.indexOf(n)===-1})};function _q(e,t){var n={};e=Oq(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 Oq(e){var t={},n;for(n in e){var r=n.replace(/-/g,"_");t[r]=e[n]}return t}T0.Options=Cp;T0.normalizeOpts=Oq;T0.mergeOpts=_q;var wq=T0.Options,SZe=["before-newline","after-newline","preserve-newline"];function Sq(e){wq.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",SZe),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}Sq.prototype=new wq;q3.Options=Sq;var Ep={},cE={},xq=RegExp.prototype.hasOwnProperty("sticky");function Va(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}Va.prototype.restart=function(){this.__position=0};Va.prototype.back=function(){this.__position>0&&(this.__position-=1)};Va.prototype.hasNext=function(){return this.__position<this.__input_length};Va.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e};Va.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};Va.prototype.__match=function(e,t){e.lastIndex=t;var n=e.exec(this.__input);return n&&!(xq&&e.sticky)&&n.index!==t&&(n=null),n};Va.prototype.test=function(e,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(e,t):!1};Va.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,n!==null&&e.test(n)};Va.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t};Va.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};Va.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};Va.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)};Va.prototype.get_regexp=function(e,t){var n=null,r="g";return t&&xq&&(r="y"),typeof e=="string"&&e!==""?n=new RegExp(e,r):e&&(n=new RegExp(e.source,r)),n};Va.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))};Va.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n};Va.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e};cE.InputScanner=Va;var P0={},kq={};function Cv(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}Cv.prototype.restart=function(){this.__position=0};Cv.prototype.isEmpty=function(){return this.__tokens_length===0};Cv.prototype.hasNext=function(){return this.__position<this.__tokens_length};Cv.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e};Cv.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};Cv.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1};kq.TokenStream=Cv;var Cq={},Z1={};function mf(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)}mf.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};mf.prototype.read_match=function(){return this._input.match(this._match_pattern)};mf.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};mf.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t};mf.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t};mf.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t};mf.prototype._create=function(){return new mf(this._input,this)};mf.prototype._update=function(){};Z1.Pattern=mf;var Eq=Z1.Pattern;function fp(e,t){Eq.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=""}fp.prototype=new Eq;fp.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+"]")};fp.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};fp.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n};fp.prototype._create=function(){return new fp(this._input,this)};fp.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};Cq.WhitespacePattern=fp;var xZe=cE.InputScanner,Tq=G3.Token,TA=kq.TokenStream,kZe=Cq.WhitespacePattern,a1={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},$f=function(e,t){this._input=new xZe(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new kZe(this._input)};$f.prototype.tokenize=function(){this._input.restart(),this.__tokens=new TA,this._reset();for(var e,t=new Tq(a1.START,""),n=null,r=[],o=new TA;t.type!==a1.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 TA),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};$f.prototype._is_first_token=function(){return this.__tokens.isEmpty()};$f.prototype._reset=function(){};$f.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a1.RAW,n):this._create_token(a1.EOF,"")};$f.prototype._is_comment=function(e){return!1};$f.prototype._is_opening=function(e){return!1};$f.prototype._is_closing=function(e,t){return!1};$f.prototype._create_token=function(e,t){var n=new Tq(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n};$f.prototype._readWhitespace=function(){return this._patterns.whitespace.read()};P0.Tokenizer=$f;P0.TOKEN=a1;var fE={};function J3(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")}J3.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};J3.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)};fE.Directives=J3;var ej={},oN=Z1.Pattern,iN={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function gc(e,t){oN.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},iN),this._excluded=Object.assign({},iN),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 oN(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}/)}}gc.prototype=new oN;gc.prototype._create=function(){return new gc(this._input,this)};gc.prototype._update=function(){this.__set_templated_pattern()};gc.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t};gc.prototype.read_options=function(e){var t=this._create();for(var n in iN)t._disabled[n]=e.templating.indexOf(n)===-1;return t._update(),t};gc.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t};gc.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};gc.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("|")+")")};gc.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};ej.TemplatablePattern=gc;var CZe=cE.InputScanner,Pq=P0.Tokenizer,PA=P0.TOKEN,EZe=fE.Directives,bu=K3,TZe=Z1.Pattern,PZe=ej.TemplatablePattern;function $A(e,t){return t.indexOf(e)!==-1}var tr={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:PA.START,RAW:PA.RAW,EOF:PA.EOF},TF=new EZe(/\/\*/,/\*\//),$Ze=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,AZe=/[0-9]/,MZe=/[^\d\.]/,RZe=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),vv=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";vv=vv.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&");vv="\\?\\.(?!\\d) "+vv;vv=vv.replace(/ /g,"|");var NZe=new RegExp(vv),$q="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),IZe=$q.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),DZe=new RegExp("^(?:"+IZe.join("|")+")$"),Ek,ma=function(e,t){Pq.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 TZe(this._input),r=new PZe(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(bu.identifier).matching(bu.identifierMatch),number:n.matching($Ze),punct:n.matching(NZe),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(bu.lineBreak),shebang:n.starting_with(/#!/).until_after(bu.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(/[`}\\]/)}};ma.prototype=new Pq;ma.prototype._is_comment=function(e){return e.type===tr.COMMENT||e.type===tr.BLOCK_COMMENT||e.type===tr.UNKNOWN};ma.prototype._is_opening=function(e){return e.type===tr.START_BLOCK||e.type===tr.START_EXPR};ma.prototype._is_closing=function(e,t){return(e.type===tr.END_BLOCK||e.type===tr.END_EXPR)&&t&&(e.text==="]"&&t.text==="["||e.text===")"&&t.text==="("||e.text==="}"&&t.text==="{")};ma.prototype._reset=function(){Ek=!1};ma.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return r===null?this._create_token(tr.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(tr.UNKNOWN,this._input.next()),n)};ma.prototype._read_word=function(e){var t;if(t=this.__patterns.identifier.read(),t!=="")return t=t.replace(bu.allLineBreaks,`
- `),!(e.type===tr.DOT||e.type===tr.RESERVED&&(e.text==="set"||e.text==="get"))&&DZe.test(t)?(t==="in"||t==="of")&&(e.type===tr.WORD||e.type===tr.STRING)?this._create_token(tr.OPERATOR,t):this._create_token(tr.RESERVED,t):this._create_token(tr.WORD,t);if(t=this.__patterns.number.read(),t!=="")return this._create_token(tr.WORD,t)};ma.prototype._read_singles=function(e){var t=null;return e==="("||e==="["?t=this._create_token(tr.START_EXPR,e):e===")"||e==="]"?t=this._create_token(tr.END_EXPR,e):e==="{"?t=this._create_token(tr.START_BLOCK,e):e==="}"?t=this._create_token(tr.END_BLOCK,e):e===";"?t=this._create_token(tr.SEMICOLON,e):e==="."&&MZe.test(this._input.peek(1))?t=this._create_token(tr.DOT,e):e===","&&(t=this._create_token(tr.COMMA,e)),t&&this._input.next(),t};ma.prototype._read_pair=function(e,t){var n=null;return e==="#"&&t==="{"&&(n=this._create_token(tr.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n};ma.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(e!=="")return e==="="?this._create_token(tr.EQUALS,e):e==="?."?this._create_token(tr.DOT,e):this._create_token(tr.OPERATOR,e)};ma.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(tr.UNKNOWN,t.trim()+`
- `);if(t=this.__patterns.include.read(),t)return this._create_token(tr.UNKNOWN,t.trim()+`
- `);e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(AZe)){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(tr.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(bu.newline);)t+=this._input.next();return Ek=!0,this._create_token(tr.COMMENT,t)}}else if(Ek&&e==="-"&&(t=this.__patterns.html_comment_end.read(),t))return Ek=!1,this._create_token(tr.COMMENT,t);return null};ma.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=TF.get_directives(n);r&&r.ignore==="start"&&(n+=TF.readIgnored(this._input)),n=n.replace(bu.allLineBreaks,`
- `),t=this._create_token(tr.BLOCK_COMMENT,n),t.directives=r}else this._input.peek(1)==="/"&&(n=this.__patterns.comment.read(),t=this._create_token(tr.COMMENT,n))}return t};ma.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=jZe(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(bu.allLineBreaks,`
- `),this._create_token(tr.STRING,t)}return null};ma.prototype._allow_regexp_or_xml=function(e){return e.type===tr.RESERVED&&$A(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===tr.END_EXPR&&e.text===")"&&e.opened.previous.type===tr.RESERVED&&$A(e.opened.previous.text,["if","while","for"])||$A(e.type,[tr.COMMENT,tr.START_EXPR,tr.START_BLOCK,tr.START,tr.END_BLOCK,tr.OPERATOR,tr.EQUALS,tr.EOF,tr.SEMICOLON,tr.COMMA])};ma.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(bu.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(bu.identifier)),this._create_token(tr.STRING,n)}return null};ma.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(bu.allLineBreaks,`
- `),this._create_token(tr.STRING,n)}}return null};function jZe(e){for(var t="",n=0,r=new CZe(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}ma.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&&bu.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)===`
- `&&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};Ep.Tokenizer=ma;Ep.TOKEN=tr;Ep.positionable_operators=RZe.slice();Ep.line_starters=$q.slice();var LZe=uE.Output,BZe=G3.Token,F2=K3,VZe=q3.Options,FZe=Ep.Tokenizer,s1=Ep.line_starters,L_=Ep.positionable_operators,Et=Ep.TOKEN;function Ar(e,t){return t.indexOf(e)!==-1}function zZe(e){return e.replace(/^\s+/g,"")}function QZe(e){for(var t={},n=0;n<e.length;n++)t[e[n].replace(/-/g,"_")]=e[n];return t}function fu(e,t){return e&&e.type===Et.RESERVED&&e.text===t}function $o(e,t){return e&&e.type===Et.RESERVED&&Ar(e.text,t)}var dE=["case","return","do","if","throw","else","await","break","continue","async"],WZe=["before-newline","after-newline","preserve-newline"],cO=QZe(WZe),Aq=[cO.before_newline,cO.preserve_newline],lr={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Mq(e,t){t.multiline_frame||t.mode===lr.ForInitializer||t.mode===lr.Conditional||e.remove_indent(t.start_line_index)}function YZe(e){e=e.replace(F2.allLineBreaks,`
- `);for(var t=[],n=e.indexOf(`
- `);n!==-1;)t.push(e.substring(0,n)),e=e.substring(n+1),n=e.indexOf(`
- `);return e.length&&t.push(e),t}function dp(e){return e===lr.ArrayLiteral}function fO(e){return Ar(e,[lr.Expression,lr.ForInitializer,lr.Conditional])}function ZZe(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 UZe(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 lo(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 VZe(t)}lo.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 BZe(Et.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};lo.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new LZe(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(lr.BlockStatement);var n=new FZe(e,this._options);return this._tokens=n.tokenize(),e};lo.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=`
- `,t&&F2.lineBreak.test(t||"")&&(n=t.match(F2.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};lo.prototype.handle_token=function(e,t){e.type===Et.START_EXPR?this.handle_start_expr(e):e.type===Et.END_EXPR?this.handle_end_expr(e):e.type===Et.START_BLOCK?this.handle_start_block(e):e.type===Et.END_BLOCK?this.handle_end_block(e):e.type===Et.WORD?this.handle_word(e):e.type===Et.RESERVED?this.handle_word(e):e.type===Et.SEMICOLON?this.handle_semicolon(e):e.type===Et.STRING?this.handle_string(e):e.type===Et.EQUALS?this.handle_equals(e):e.type===Et.OPERATOR?this.handle_operator(e):e.type===Et.COMMA?this.handle_comma(e):e.type===Et.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===Et.COMMENT?this.handle_comment(e,t):e.type===Et.DOT?this.handle_dot(e):e.type===Et.EOF?this.handle_eof(e):e.type===Et.UNKNOWN?this.handle_unknown(e,t):this.handle_unknown(e,t)};lo.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,r=this._options.keep_array_indentation&&dp(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 tj=["async","break","continue","return","throw","yield"];lo.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=Ar(this._flags.last_token.text,L_)||Ar(e.text,L_);if(r){var o=Ar(this._flags.last_token.text,L_)&&Ar(this._options.operator_position,Aq)||Ar(e.text,L_);n=n&&o}if(n)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if($o(this._flags.last_token,tj))return;this._output.set_wrap_point()}}};lo.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!==Et.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var n=this._tokens.peek();this._flags.mode===lr.Statement&&!(this._flags.if_block&&fu(n,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)};lo.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&(e.text==="["||dp(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))};lo.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===Et.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)};lo.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};lo.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))};lo.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)};lo.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===lr.Statement&&Mq(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};lo.prototype.start_of_object_property=function(){return this._flags.parent.mode===lr.ObjectLiteral&&this._flags.mode===lr.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||$o(this._flags.last_token,["get","set"]))};lo.prototype.start_of_statement=function(e){var t=!1;return t=t||$o(this._flags.last_token,["var","let","const"])&&e.type===Et.WORD,t=t||fu(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===lr.ObjectLiteral&&this._flags.mode===lr.Statement)&&$o(this._flags.last_token,tj)&&!e.newlines,t=t||fu(this._flags.last_token,"else")&&!(fu(e,"if")&&!e.comments_before),t=t||this._flags.last_token.type===Et.END_EXPR&&(this._previous_flags.mode===lr.ForInitializer||this._previous_flags.mode===lr.Conditional),t=t||this._flags.last_token.type===Et.WORD&&this._flags.mode===lr.BlockStatement&&!this._flags.in_case&&!(e.text==="--"||e.text==="++")&&this._last_last_text!=="function"&&e.type!==Et.WORD&&e.type!==Et.RESERVED,t=t||this._flags.mode===lr.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||$o(this._flags.last_token,["get","set"])),t?(this.set_mode(lr.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,$o(e,["do","for","if","while"])),!0):!1};lo.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=lr.Expression;if(e.text==="["){if(this._flags.last_token.type===Et.WORD||this._flags.last_token.text===")"){$o(this._flags.last_token,s1)&&(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=lr.ArrayLiteral,dp(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()),Ar(this._flags.last_token.type,[Et.START_EXPR,Et.END_EXPR,Et.WORD,Et.OPERATOR,Et.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===Et.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,t=lr.ForInitializer):Ar(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=lr.Conditional):Ar(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:(Ar(this._flags.last_token.text,s1)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===Et.EQUALS||this._flags.last_token.type===Et.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===Et.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);$o(n,["async","function"])||n.text==="*"&&$o(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===lr.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===Et.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(Ar(this._last_last_text,["function","yield"])||this._flags.mode===lr.ObjectLiteral&&Ar(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===Et.START_BLOCK?this.print_newline():(this._flags.last_token.type===Et.END_EXPR||this._flags.last_token.type===Et.START_EXPR||this._flags.last_token.type===Et.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===Et.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()};lo.prototype.handle_end_expr=function(e){for(;this._flags.mode===lr.Statement;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,e.text==="]"&&dp(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===Et.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(),Mq(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===lr.Conditional&&(this._previous_flags.mode=lr.Expression,this._flags.do_block=!1,this._flags.do_while=!1)};lo.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===Et.END_EXPR?(this.set_mode(lr.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(lr.BlockStatement):n&&(Ar(n.text,[":",","])&&Ar(t.type,[Et.STRING,Et.WORD,Et.RESERVED])||Ar(t.text,["get","set","..."])&&Ar(n.type,[Et.WORD,Et.RESERVED]))?Ar(this._last_last_text,["class","interface"])&&!Ar(n.text,[":",","])?this.set_mode(lr.BlockStatement):this.set_mode(lr.ObjectLiteral):this._flags.last_token.type===Et.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(lr.BlockStatement):Ar(this._flags.last_token.type,[Et.EQUALS,Et.START_EXPR,Et.COMMA,Et.OPERATOR])||$o(this._flags.last_token,["return","throw","import","default"])?this.set_mode(lr.ObjectLiteral):this.set_mode(lr.BlockStatement),this._flags.last_token&&$o(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===Et.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!==Et.EOF&&!(a.type===Et.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!==Et.OPERATOR&&(o||this._flags.last_token.type===Et.EQUALS||$o(this._flags.last_token,dE)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(dp(this._previous_flags.mode)&&(this._flags.last_token.type===Et.START_EXPR||this._flags.last_token.type===Et.COMMA)&&((this._flags.last_token.type===Et.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===Et.COMMA||this._flags.last_token.type===Et.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!==Et.OPERATOR&&this._flags.last_token.type!==Et.START_EXPR&&(Ar(this._flags.last_token.type,[Et.START_BLOCK,Et.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()};lo.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===lr.Statement;)this.restore_mode();var t=this._flags.last_token.type===Et.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:this._options.brace_style==="expand"?t||this.print_newline():t||(dp(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)};lo.prototype.handle_word=function(e){if(e.type===Et.RESERVED){if(Ar(e.text,["set","get"])&&this._flags.mode!==lr.ObjectLiteral)e.type=Et.WORD;else if(e.text==="import"&&Ar(this._tokens.peek().text,["(","."]))e.type=Et.WORD;else if(Ar(e.text,["as","from"])&&!this._flags.import_block)e.type=Et.WORD;else if(this._flags.mode===lr.ObjectLiteral){var t=this._tokens.peek();t.text===":"&&(e.type=Et.WORD)}}if(this.start_of_statement(e)?$o(this._flags.last_token,["var","let","const"])&&e.type===Et.WORD&&(this._flags.declaration_statement=!0):e.newlines&&!fO(this._flags.mode)&&(this._flags.last_token.type!==Et.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==Et.EQUALS&&(this._options.preserve_newlines||!$o(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(fu(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&&fu(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===lr.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&$o(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===Et.COMMA||this._flags.last_token.type===Et.START_EXPR||this._flags.last_token.type===Et.EQUALS||this._flags.last_token.type===Et.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e)),fu(e,"function")){(Ar(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(Ar(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===Et.OPERATOR))&&!this._output.just_added_blankline()&&!e.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===Et.RESERVED||this._flags.last_token.type===Et.WORD?$o(this._flags.last_token,["get","set","new","export"])||$o(this._flags.last_token,tj)?this._output.space_before_token=!0:fu(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===Et.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(fO(this._flags.mode)||dp(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===Et.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":$o(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===Et.SEMICOLON&&this._flags.mode===lr.BlockStatement?n="NEWLINE":this._flags.last_token.type===Et.SEMICOLON&&fO(this._flags.mode)?n="SPACE":this._flags.last_token.type===Et.STRING?n="NEWLINE":this._flags.last_token.type===Et.RESERVED||this._flags.last_token.type===Et.WORD||this._flags.last_token.text==="*"&&(Ar(this._last_last_text,["function","yield"])||this._flags.mode===lr.ObjectLiteral&&Ar(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===Et.START_BLOCK?this._flags.inline_frame?n="SPACE":n="NEWLINE":this._flags.last_token.type===Et.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),$o(e,s1)&&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"),$o(e,["else","catch","finally"]))if((!(this._flags.last_token.type===Et.END_BLOCK&&this._previous_flags.mode===lr.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"?$o(this._flags.last_token,dE)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&$o(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==Et.END_EXPR?(this._flags.last_token.type!==Et.START_EXPR||!$o(e,["var","let","const"]))&&this._flags.last_token.text!==":"&&(fu(e,"if")&&fu(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):$o(e,s1)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&dp(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===Et.WORD||e.previous.type===Et.RESERVED)&&(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===Et.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&&fu(e,"from")&&(this._flags.import_block=!1))};lo.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===lr.Statement&&!(this._flags.if_block&&fu(t,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)};lo.prototype.handle_string=function(e){e.text.startsWith("`")&&e.newlines===0&&e.whitespace_before===""&&(e.previous.text===")"||this._flags.last_token.type===Et.WORD)||(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===Et.RESERVED||this._flags.last_token.type===Et.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===Et.COMMA||this._flags.last_token.type===Et.START_EXPR||this._flags.last_token.type===Et.EQUALS||this._flags.last_token.type===Et.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):e.text.startsWith("`")&&this._flags.last_token.type===Et.END_EXPR&&(e.previous.text==="]"||e.previous.text===")")&&e.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(e)};lo.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};lo.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?(fO(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===lr.ObjectLiteral||this._flags.mode===lr.Statement&&this._flags.parent.mode===lr.ObjectLiteral?(this._flags.mode===lr.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)};lo.prototype.handle_operator=function(e){var t=e.text==="*"&&($o(this._flags.last_token,["function","yield"])||Ar(this._flags.last_token.type,[Et.START_BLOCK,Et.COMMA,Et.END_BLOCK,Et.SEMICOLON])),n=Ar(e.text,["-","+"])&&(Ar(this._flags.last_token.type,[Et.START_BLOCK,Et.START_EXPR,Et.EQUALS,Et.OPERATOR])||Ar(this._flags.last_token.text,s1)||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===Et.DOT){this.print_token(e);return}if(e.text==="::"){this.print_token(e);return}if(this._flags.last_token.type===Et.OPERATOR&&Ar(this._options.operator_position,Aq)&&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!==Et.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&&Ar(e.text,L_)){var s=e.text===":",l=s&&a,u=s&&!a;switch(this._options.operator_position){case cO.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 cO.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 cO.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&&Ar(d.type,[Et.WORD,Et.RESERVED])}else if(e.text==="...")this.allow_wrap_or_preserved_newline(e),o=this._flags.last_token.type===Et.START_BLOCK,i=!1;else if(Ar(e.text,["--","++","!","~"])||n){if((this._flags.last_token.type===Et.COMMA||this._flags.last_token.type===Et.START_EXPR)&&this.allow_wrap_or_preserved_newline(e),o=!1,i=!1,e.newlines&&(e.text==="--"||e.text==="++"||e.text==="~")){var p=$o(this._flags.last_token,dE)&&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===";"&&fO(this._flags.mode)&&(o=!0),this._flags.last_token.type===Et.RESERVED?o=!0:this._flags.last_token.type===Et.END_EXPR?o=!(this._flags.last_token.text==="]"&&(e.text==="--"||e.text==="++")):this._flags.last_token.type===Et.OPERATOR&&(o=Ar(e.text,["--","-","++","+"])&&Ar(this._flags.last_token.text,["--","-","++","+"]),Ar(e.text,["+","-"])&&Ar(this._flags.last_token.text,["--","++"])&&(i=!0)),(this._flags.mode===lr.BlockStatement&&!this._flags.inline_frame||this._flags.mode===lr.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};lo.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(!F2.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)};lo.prototype.print_block_commment=function(e,t){var n=YZe(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=ZZe(n,"*"),i=UZe(n,a),o&&(this._flags.alignment=1),r=0;r<n.length;r++)o?(this.print_token_line_indentation(e),this._output.add_token(zZe(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}};lo.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)};lo.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),$o(this._flags.last_token,dE)?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)};lo.prototype.handle_unknown=function(e,t){this.print_token(e),e.text[e.text.length-1]===`
- `&&this.print_newline(!1,t)};lo.prototype.handle_eof=function(e){for(;this._flags.mode===lr.Statement;)this.restore_mode();this.handle_whitespace_and_comments(e)};bq.Beautifier=lo;var HZe=bq.Beautifier,XZe=q3.Options;function GZe(e,t){var n=new HZe(e,t);return n.beautify()}X3.exports=GZe;X3.exports.defaultOptions=function(){return new XZe};var nj={exports:{}},Rq={},rj={},Nq=T0.Options;function Iq(e){Nq.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]}Iq.prototype=new Nq;rj.Options=Iq;var KZe=rj.Options,qZe=uE.Output,JZe=cE.InputScanner,eUe=fE.Directives,PF=new eUe(/\/\*/,/\*\//),$F=/\r\n|[\r\n]/,tUe=/\r\n|[\r\n]/g,z2=/\s/,nUe=/(?:\s|\n)+/g,rUe=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,oUe=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function Ad(e,t){this._source_text=e||"",this._options=new KZe(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"]}Ad.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===`
- `)break;this._ch=this._input.next()}return t};Ad.prototype.eatWhitespace=function(e){for(var t=z2.test(this._input.peek()),n=0;z2.test(this._input.peek());)this._ch=this._input.next(),e&&this._ch===`
- `&&(n===0||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t};Ad.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};Ad.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)};Ad.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)};Ad.prototype.indent=function(){this._indentLevel++};Ad.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--};Ad.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;t==="auto"&&(t=`
- `,e&&$F.test(e||"")&&(t=e.match($F)[0])),e=e.replace(tUe,`
- `);var n=e.match(/^[\t ]*/)[0];this._output=new qZe(this._options,n),this._input=new JZe(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(nUe),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(rUe),b=PF.get_directives(w);b&&b.ignore==="start"&&(w+=PF.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(oUe)),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 P=0;P<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;P++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[P])){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 T=!1;this._input.lookBack("with")&&(T=!0),this.preserveSingleSpace(v||T),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&&z2.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("="),z2.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()===`
- `&&d&&this._output.add_new_line()}var R=this._output.get_code(t);return R};Rq.Beautifier=Ad;var iUe=Rq.Beautifier,aUe=rj.Options;function sUe(e,t){var n=new iUe(e,t);return n.beautify()}nj.exports=sUe;nj.exports.defaultOptions=function(){return new aUe};var oj={exports:{}},Dq={},ij={},jq=T0.Options;function Lq(e){jq.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"])}Lq.prototype=new jq;ij.Options=Lq;var hE={},Bq=P0.Tokenizer,AA=P0.TOKEN,lUe=fE.Directives,uUe=ej.TemplatablePattern,cUe=Z1.Pattern,Ti={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:AA.START,RAW:AA.RAW,EOF:AA.EOF},AF=new lUe(/<\!--/,/-->/),us=function(e,t){Bq.call(this,e,t),this._current_tag_name="";var n=new uUe(this._input).read_options(this._options),r=new cUe(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)}};us.prototype=new Bq;us.prototype._is_comment=function(e){return!1};us.prototype._is_opening=function(e){return e.type===Ti.TAG_OPEN};us.prototype._is_closing=function(e,t){return e.type===Ti.TAG_CLOSE&&t&&((e.text===">"||e.text==="/>")&&t.text[0]==="<"||e.text==="}}"&&t.text[0]==="{"&&t.text[1]==="{")};us.prototype._reset=function(){this._current_tag_name=""};us.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return r===null?this._create_token(Ti.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(Ti.UNKNOWN,this._input.next()),n)};us.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=AF.get_directives(n),r&&r.ignore==="start"&&(n+=AF.readIgnored(this._input))):n=this.__patterns.cdata.read()),n&&(t=this._create_token(Ti.COMMENT,n),t.directives=r)}return t};us.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(Ti.COMMENT,n),t.directives=r)}return t};us.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(Ti.TAG_OPEN,n)),r};us.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(Ti.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),r=this._create_token(Ti.TAG_OPEN,n))),r};us.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(Ti.TAG_CLOSE,n)):t.text[0]==="{"&&e==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),r=this._create_token(Ti.TAG_CLOSE,"}}"))),r};us.prototype._read_attribute=function(e,t,n){var r=null,o="";if(n&&n.text[0]==="<")if(e==="=")r=this._create_token(Ti.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(Ti.VALUE,i)}else o=this.__patterns.attribute.read(),o&&(t.type===Ti.EQUALS?r=this._create_token(Ti.VALUE,o):r=this._create_token(Ti.ATTRIBUTE,o));return r};us.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)};us.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===Ti.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=Ti.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(Ti.TEXT,r):null};us.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(Ti.TEXT,t)};hE.Tokenizer=us;hE.TOKEN=Ti;var fUe=ij.Options,dUe=uE.Output,hUe=hE.Tokenizer,bo=hE.TOKEN,MF=/\r\n|[\r\n]/,pUe=/\r\n|[\r\n]/g,Iu=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 dUe(e,t)};Iu.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)};Iu.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t};Iu.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()};Iu.prototype.add_raw_token=function(e){this._output.add_raw_token(e)};Iu.prototype.print_preserved_newlines=function(e){var t=0;e.type!==bo.TEXT&&e.previous.type!==bo.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};Iu.prototype.traverse_whitespace=function(e){return e.whitespace_before||e.newlines?(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0):!1};Iu.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped};Iu.prototype.print_newline=function(e){this._output.add_new_line(e)};Iu.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))};Iu.prototype.indent=function(){this.indent_level++};Iu.prototype.get_full_indent=function(e){return e=this.indent_level+(e||0),e<1?"":this._output.get_indent_string(e)};var gUe=function(e){for(var t=null,n=e.next;n.type!==bo.EOF&&e.closed!==n;){if(n.type===bo.ATTRIBUTE&&n.text==="type"){n.next&&n.next.type===bo.EQUALS&&n.next.next&&n.next.next.type===bo.VALUE&&(t=n.next.next.text);break}n=n.next}return t},vUe=function(e,t){var n=null,r=null;return t.closed?(e==="script"?n="text/javascript":e==="style"&&(n="text/css"),n=gUe(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 B_(e,t){return t.indexOf(e)!==-1}function mUe(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function Ev(e){this._printer=e,this._current_frame=null}Ev.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null};Ev.prototype.record_tag=function(e){var t=new mUe(this._current_frame,e,this._printer.indent_level);this._current_frame=t};Ev.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};Ev.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};Ev.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)};Ev.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)};function Mu(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 fUe(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"}Mu.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=`
- `,e&&MF.test(e)&&(t=e.match(MF)[0])),e=e.replace(pUe,`
- `);var n=e.match(/^[\t ]*/)[0],r={text:"",type:""},o=new Vq,i=new Iu(this._options,n),a=new hUe(e,this._options).tokenize();this._tag_stack=new Ev(i);for(var s=null,l=a.next();l.type!==bo.EOF;)l.type===bo.TAG_OPEN||l.type===bo.COMMENT?(s=this._handle_tag_open(i,l,o,r,a),o=s):l.type===bo.ATTRIBUTE||l.type===bo.EQUALS||l.type===bo.VALUE||l.type===bo.TEXT&&!o.tag_complete?s=this._handle_inside_tag(i,l,o,r):l.type===bo.TAG_CLOSE?s=this._handle_tag_close(i,l,o):l.type===bo.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};Mu.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};Mu.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===bo.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===bo.ATTRIBUTE?e.set_space_before_token(!0):(t.type===bo.EQUALS||t.type===bo.VALUE&&t.previous.type===bo.EQUALS)&&e.set_space_before_token(!1),t.type===bo.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!==bo.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};Mu.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};Mu.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 Mu(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]+`
- `,o=d[4],d[5]&&(l=u+d[5]),o=o.replace(/\n[ \t]*$/,""),(d[2]||d[3].indexOf(`
- `)!==-1)&&(d=d[3].match(/[ \t]+$/),d&&(t.whitespace_before=d[0]))}if(o)if(i){var p=function(){this.eol=`
- `};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(`
- (`+y+")?","g"),`
- `)),o=u+o.replace(/\n/g,`
- `+u)}s&&(o?o=s+o+`
- `+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))}};Mu.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===bo.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===bo.ATTRIBUTE&&(i.attr_count+=1),a+=1;while(s.type!==bo.EOF&&s.type!==bo.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 Vq=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===bo.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)))}};Mu.prototype._get_tag_open_token=function(e){var t=new Vq(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||B_(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&&B_(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&B_(t.tag_check,this._options.content_unformatted),t.is_inline_element=B_(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||t.tag_start_char==="{",t};Mu.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=vUe(n.tag_check,t)))),B_(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===bo.TAG_CLOSE&&r.is_end_tag&&n.text.indexOf(`
- `)===-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===bo.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)};Mu.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 yUe=["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"],bUe=["a","audio","del","ins","map","noscript","video"];Mu.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"&&yUe.indexOf(e.tag_name)!==-1){var n=e.parent.parent;(!n||bUe.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}};Dq.Beautifier=Mu;var _Ue=Dq.Beautifier,OUe=ij.Options;function wUe(e,t,n,r){var o=new _Ue(e,t,n,r);return o.beautify()}oj.exports=wUe;oj.exports.defaultOptions=function(){return new OUe};var Fq=X3.exports,zq=nj.exports,Qq=oj.exports;function Wq(e,t,n,r){return n=n||Fq,r=r||zq,Qq(e,t,n,r)}Wq.defaultOptions=Qq.defaultOptions;lE.js=Fq;lE.css=zq;lE.html=Wq;(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=lE;r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,n.exports=t(r,r,r)})(e)})(yq);var aN=yq.exports;const SUe={class:"node-property-item"},xUe={key:0},kUe={key:1},CUe={class:"pair-content"},EUe={key:2},TUe={key:3},PUe={class:"pair-content"},$Ue={key:4},AUe={class:"pair-content"},MUe={key:5},RUe={class:"node-property-sub-item"},NUe={key:6},IUe={class:"el-form-item__label"},DUe={key:7},jUe={key:8},LUe={key:9},BUe={__name:"NodePropertyItem",props:["nodePropertyForm","configuration","fields","parentField","currentNodeModel"],setup(e,{expose:t}){const{nodePropertyForm:n,configuration:r,fields:o,parentField:i,currentNodeModel:a}=e;te("");const s=[mq()],l=te(),u=te(),d=te([]);te({}),te({});const p=function(B){r[B]=aN.js(r[B],{indent_size:2})},v=()=>{Bi.error("\u529F\u80FD\u6682\u672A\u5B9E\u73B0")};(function(){let B={};if(o&&o.forEach(N=>{B[N.name]=N}),r){let N={},I={};for(let D in r){let j=fr(r[D]),F=B[D];if(!(!F||F.component)){if(j&&j instanceof Array)N[D]=[],j.forEach(G=>{N[D].push({key:G})});else if(j&&typeof j=="object"&&F.type!=="struct"){I[D]=[];for(let G in j)I[D].push({key:G,value:j[G]})}}}r.arrayItemValues=N,r.mapItemValues=I}})();const w=B=>{r.mapItemValues[B]?r.mapItemValues[B].push({key:"",value:""}):r.mapItemValues[B]=[{key:"",value:""}]},b=(B,N)=>{r.mapItemValues[B]&&r.mapItemValues[B].splice(N,1)},k=B=>{r.arrayItemValues[B]?r.arrayItemValues[B].push({key:"",value:""}):r.arrayItemValues[B]=[{key:"",value:""}]},C=(B,N)=>{r.arrayItemValues[B]&&r.arrayItemValues[B].splice(N,1)},P=B=>{r[B]||(r[B]=[]),r[B].push({case:"",then:""})},$=(B,N)=>{r[B]&&r[B].length>N&&r[B].splice(N,1)},T=B=>B.indexOf("int")>-1,A=B=>B.indexOf("float")>-1;return t({submit:B=>{if(!l.value){B&&B(!1);return}return l.value.validate(N=>(B&&B(N),N))}}),(B,N)=>{const I=$1,D=M1,j=kf,F=al,G=il,ae=ti,K=ro,H=ip,oe=hc,J=wD,z=OD,X=xf;return Z(),Qe(X,{model:e.configuration,ref_key:"propertyItemFormRef",ref:l,"label-position":"top","label-width":"auto"},{default:le(()=>[(Z(!0),ue(Tt,null,_n(e.fields,(ee,he)=>(Z(),ue("div",SUe,[ee.type==="Boolean"||ee.type==="bool"?(Z(),ue("div",xUe,[re(j,{label:ee.label||ee.name,prop:ee.name},{default:le(()=>[re(I,{modelValue:e.configuration[ee.name],"onUpdate:modelValue":fe=>e.configuration[ee.name]=fe,class:"ml-2",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"}},null,8,["modelValue","onUpdate:modelValue"]),re(D,{size:"small",type:"info"},{default:le(()=>[St(ct(ee.desc),1)]),_:2},1024)]),_:2},1032,["label","prop"])])):ee.component&&ee.component.type==="switchNode"?(Z(),ue("div",kUe,[re(j,{label:ee.label||ee.name,rules:ee.rules,prop:ee.name},{default:le(()=>[ve("div",CUe,[re(G,{class:"pair-item-header"},{default:le(()=>[re(F,{span:12},{default:le(()=>[St(" \u6761\u4EF6 ")]),_:1}),re(F,{span:6,offset:1},{default:le(()=>[St(" \u8DEF\u7531 ")]),_:1})]),_:1}),(Z(!0),ue(Tt,null,_n(e.configuration[ee.name],(fe,Le)=>(Z(),Qe(G,{key:Le,class:"pair-item"},{default:le(()=>[re(F,{span:12},{default:le(()=>[re(ae,{modelValue:fe.case,"onUpdate:modelValue":Ie=>fe.case=Ie,rules:[{required:!0,message:"\u6761\u4EF6\u662F\u5FC5\u987B\u7684"}],prop:ee.name+"["+Le+"].case",placeholder:"\u8F93\u5165\u5224\u65AD\u6761\u4EF6\uFF0C\u5982\uFF1Amsg.temperature > 50"},null,8,["modelValue","onUpdate:modelValue","prop"])]),_:2},1024),re(F,{span:6,offset:1},{default:le(()=>[re(ae,{modelValue:fe.then,"onUpdate:modelValue":Ie=>fe.then=Ie,rules:[{required:!0,message:"\u8DEF\u7531\u662F\u5FC5\u987B\u7684"}],prop:ee.name+"["+Le+"].then",placeholder:"\u8F93\u5165\u8DEF\u7531\uFF1A\u5982\uFF1ACase1"},null,8,["modelValue","onUpdate:modelValue","prop"])]),_:2},1024),re(F,{span:2,offset:1},{default:le(()=>[re(K,{icon:m(ks),onClick:Ie=>$(ee.name,Le),circle:""},null,8,["icon","onClick"])]),_:2},1024)]),_:2},1024))),128)),re(G,null,{default:le(()=>[re(F,{span:24},{default:le(()=>[re(K,{type:"primary",onClick:fe=>P(ee.name),icon:"el-icon-plus"},{default:le(()=>[St("\u6DFB\u52A0\u5206\u652F")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),re(D,{size:"small",type:"info"},{default:le(()=>[St(ct(ee.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):ee.component&&ee.component.type==="select"?(Z(),ue("div",EUe,[re(j,{label:ee.label||ee.name,rules:ee.rules,prop:ee.name},{default:le(()=>[re(oe,{modelValue:e.configuration[ee.name],"onUpdate:modelValue":fe=>e.configuration[ee.name]=fe,multiple:ee.component&&ee.component.multiple,filterable:ee.component&&ee.component.filterable,"allow-create":ee.component&&ee.component.allowCreate,placeholder:ee.component&&ee.component.placeholder},{default:le(()=>[(Z(!0),ue(Tt,null,_n(ee.component.options,fe=>(Z(),Qe(H,{key:fe.value!==void 0&&fe.value!==null?fe.value:fe,label:fe.label||fe,value:fe.value!==void 0&&fe.value!==null?fe.value:fe},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","multiple","filterable","allow-create","placeholder"]),re(D,{size:"small",type:"info"},{default:le(()=>[St(ct(ee.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):ee.type==="map"?(Z(),ue("div",TUe,[re(j,{label:ee.label||ee.name,rules:ee.rules,prop:"mapItemValues["+ee.name+"]"},{default:le(()=>[ve("div",PUe,[re(G,{class:"pair-item-header"},{default:le(()=>[re(F,{span:8},{default:le(()=>[St(" \u952E ")]),_:1}),re(F,{span:8,offset:2},{default:le(()=>[St(" \u503C ")]),_:1})]),_:1}),(Z(!0),ue(Tt,null,_n(e.configuration.mapItemValues[ee.name],(fe,Le)=>(Z(),Qe(G,{key:Le,class:"pair-item"},{default:le(()=>[re(F,{span:8},{default:le(()=>[re(ae,{modelValue:fe.key,"onUpdate:modelValue":Ie=>fe.key=Ie,rules:[{required:!0,message:"key\u662F\u5FC5\u987B\u7684"}],prop:"mapItemValues["+ee.name+"]["+fe.key+"]",placeholder:"\u8BF7\u8F93\u5165\u952E"},null,8,["modelValue","onUpdate:modelValue","prop"])]),_:2},1024),re(F,{span:8,offset:2},{default:le(()=>[re(ae,{modelValue:fe.value,"onUpdate:modelValue":Ie=>fe.value=Ie,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(F,{span:4,offset:2},{default:le(()=>[re(K,{icon:m(ks),onClick:Ie=>b(ee.name,Le),circle:""},null,8,["icon","onClick"])]),_:2},1024)]),_:2},1024))),128)),re(G,null,{default:le(()=>[re(K,{type:"primary",icon:m(Vk),onClick:fe=>w(ee.name)},{default:le(()=>[St("\u6DFB\u52A0")]),_:2},1032,["icon","onClick"])]),_:2},1024),re(D,{size:"small",type:"info"},{default:le(()=>[St(ct(ee.desc),1)]),_:2},1024)])]),_:2},1032,["label","rules","prop"])])):ee.type==="array"?(Z(),ue("div",$Ue,[re(j,{label:ee.label||ee.name,rules:ee.rules,prop:"arrayItemValues["+ee.name+"].0.key"},{default:le(()=>[ve("div",AUe,[(Z(!0),ue(Tt,null,_n(e.configuration.arrayItemValues[ee.name],(fe,Le)=>(Z(),Qe(G,{key:Le,class:"pair-item"},{default:le(()=>[re(F,{span:12},{default:le(()=>[re(ae,{modelValue:fe.key,"onUpdate:modelValue":Ie=>fe.key=Ie,placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),re(F,{span:4,offset:2},{default:le(()=>[re(K,{icon:m(ks),onClick:Ie=>C(ee.name,Le),circle:""},null,8,["icon","onClick"])]),_:2},1024)]),_:2},1024))),128)),re(G,null,{default:le(()=>[re(K,{type:"primary",icon:m(Vk),onClick:fe=>k(ee.name)},{default:le(()=>[St("\u6DFB\u52A0")]),_:2},1032,["icon","onClick"])]),_:2},1024)]),re(D,{size:"small",type:"info"},{default:le(()=>[St(ct(ee.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):ee.type==="struct"?(Z(),ue("div",MUe,[re(z,{modelValue:d.value,"onUpdate:modelValue":N[0]||(N[0]=fe=>d.value=fe)},{default:le(()=>[re(J,{name:ee.name},{title:le(()=>[St(ct(ee.label||ee.name),1)]),default:le(()=>[ve("div",RUe,[re(Yq,{ref_for:!0,ref_key:"subPropertyItemFormRef",ref:u,configuration:e.configuration[ee.name],fields:ee.fields},null,8,["configuration","fields"])])]),_:2},1032,["name"])]),_:2},1032,["modelValue"])])):ee.name==="jsScript"||ee.name==="JsScript"||ee.name==="script"||ee.name==="template"?(Z(),ue("div",NUe,[re(j,{rules:ee.rules,prop:"item.name"},{label:le(()=>[re(G,null,{default:le(()=>[re(F,{span:12},{default:le(()=>[ve("label",IUe,ct(ee.label||ee.name),1)]),_:2},1024),re(F,{span:6,offset:6,class:"el-form-item__label"},{default:le(()=>[re(K,{type:"info",size:"small",round:"",onClick:fe=>p(ee.name)},{default:le(()=>[St("\u6574\u7406")]),_:2},1032,["onClick"]),re(K,{icon:m(SW),onClick:v,circle:""},null,8,["icon"])]),_:2},1024)]),_:2},1024)]),default:le(()=>[re(G,{style:{width:"100%"}},{default:le(()=>[re(F,{span:24},{default:le(()=>[re(m(t0),{modelValue:e.configuration[ee.name],"onUpdate:modelValue":fe=>e.configuration[ee.name]=fe,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(D,{size:"small",type:"info"},{default:le(()=>[St(ct(ee.desc),1)]),_:2},1024)]),_:2},1032,["rules"])])):T(ee.type)?(Z(),ue("div",DUe,[re(j,{label:ee.label||ee.name,rules:ee.rules,prop:ee.name},{default:le(()=>[re(ae,{modelValue:e.configuration[ee.name],"onUpdate:modelValue":fe=>e.configuration[ee.name]=fe,modelModifiers:{number:!0}},null,8,["modelValue","onUpdate:modelValue"]),re(D,{size:"small",type:"info"},{default:le(()=>[St(ct(ee.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):A(ee.type)?(Z(),ue("div",jUe,[re(j,{label:ee.label||ee.name,rules:ee.rules,prop:ee.name},{default:le(()=>[re(ae,{modelValue:e.configuration[ee.name],"onUpdate:modelValue":fe=>e.configuration[ee.name]=fe},null,8,["modelValue","onUpdate:modelValue"]),re(D,{size:"small",type:"info"},{default:le(()=>[St(ct(ee.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])])):(Z(),ue("div",LUe,[re(j,{label:ee.label||ee.name,rules:ee.rules,prop:ee.name},{default:le(()=>[ee.component&&ee.component.type==="select"?(Z(),Qe(oe,{key:0,modelValue:e.configuration[ee.name],"onUpdate:modelValue":fe=>e.configuration[ee.name]=fe,multiple:ee.component&&ee.component.multiple,filterable:ee.component&&ee.component.filterable,"allow-create":ee.component&&ee.component.allowCreate,placeholder:ee.component&&ee.component.placeholder},{default:le(()=>[(Z(!0),ue(Tt,null,_n(ee.component.options,fe=>(Z(),Qe(H,{key:fe.value!==void 0&&fe.value!==null?fe.value:fe,label:fe.label||fe,value:fe.value!==void 0&&fe.value!==null?fe.value:fe},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","multiple","filterable","allow-create","placeholder"])):(Z(),Qe(ae,{key:1,modelValue:e.configuration[ee.name],"onUpdate:modelValue":fe=>e.configuration[ee.name]=fe},null,8,["modelValue","onUpdate:modelValue"])),re(D,{size:"small",type:"info"},{default:le(()=>[St(ct(ee.desc),1)]),_:2},1024)]),_:2},1032,["label","rules","prop"])]))]))),256))]),_:1},8,["model"])}}};var Yq=S0(BUe,[["__scopeId","data-v-3730ec20"]]);const VUe={class:""},FUe={__name:"NodePropertyForm",props:["showDrawer","currentNodeModel","currentNodeView"],setup(e,{expose:t}){const{showDrawer:n,currentNodeModel:r,currentNodeView:o}=e;te(""),mq();const i=te(),a=te();te({}),te({});const s=rr({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=ti,b=al,k=$1,C=M1,P=il,$=kf,T=xf;return Z(),ue("div",VUe,[re(T,{model:s,ref_key:"nodePropertyFormRef",ref:i,"label-position":"top","label-width":"auto"},{default:le(()=>[re($,{label:"\u8282\u70B9ID",rules:[{required:!0,message:"ID\u662F\u5FC5\u987B\u7684"}],prop:"id"},{default:le(()=>[re(P,{style:{width:"100%"}},{default:le(()=>[re(b,{span:16},{default:le(()=>[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:le(()=>[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:le(()=>[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:le(()=>[re(P,{style:{width:"100%"}},{default:le(()=>[re(b,{span:24},{default:le(()=>[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(Yq,{ref_key:"nodePropertyItemFormRef",ref:a,configuration:rr(s.configuration),fields:e.currentNodeView.fields},null,8,["configuration","fields"]),re($,{label:"\u63CF\u8FF0",prop:"desc"},{default:le(()=>[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 sN=S0(FUe,[["__scopeId","data-v-991ff8fc"]]);const zUe={style:{flex:"auto"}},QUe={__name:"DebugDataPanel",props:["url","chainId","nodeId"],setup(e){const{url:t,chainId:n,nodeId:r}=e,o=[sE(),Br.readOnly.of(!0)],i=te([]),a=te(!1),s=te(""),l=te(""),u=te({current:1,pageSize:12,total:0}),d=P=>{u.value.pageSize=P,u.value.current=1,v()},p=P=>{u.value.current=P,v()},v=()=>{fetch(t+"?chainId="+n+"&nodeId="+r+"&pageSize="+u.value.pageSize+"¤t="+u.value.current).then(P=>P.json()).then(P=>{i.value=P.items||[],u.value={pageSize:P.pageSize||12,current:P.current,total:P.total}}).catch(P=>{Bi.error(P.message)})};vn(()=>{v()});const y=(P,$)=>un(P.ts).format("YYYY-MM-DD HH:mm:ss"),w=P=>{s.value="\u6570\u636E",l.value=aN.js(P.data,{indent_size:2}),a.value=!0},b=P=>{s.value="\u5143\u6570\u636E",l.value=aN.js(JSON.stringify(P.metadata),{indent_size:2}),a.value=!0},k=P=>{s.value="\u9519\u8BEF",l.value=P||"",a.value=!0},C=()=>{a.value=!1};return(P,$)=>{const T=ro,A=na,R=al,B=il,N=ZD,I=YD,D=jD,j=Pd;return Z(),ue(Tt,null,[re(B,null,{default:le(()=>[re(R,{span:4,offset:20},{default:le(()=>[re(A,{class:"box-item",effect:"dark",content:"\u5237\u65B0",placement:"top-start"},{default:le(()=>[re(T,{icon:m(xW),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:le(()=>[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:le(F=>[re(A,{class:"box-item",effect:"dark",content:F.row.msg.id,placement:"top-start"},{default:le(()=>[St(ct(F.row.msg.id.length>14?F.row.msg.id.substring(0,14)+"...":F.row.msg.id),1)]),_:2},1032,["content"])]),_:1}),re(N,{prop:"msg.type",label:"\u6D88\u606F\u7C7B\u578B",width:"130"},{default:le(F=>[re(A,{class:"box-item",effect:"dark",content:F.row.msg.type,placement:"top-start"},{default:le(()=>[St(ct(F.row.msg.type.length>10?F.row.msg.type.substring(0,10)+"...":F.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:le(F=>[re(A,{class:"box-item",effect:"dark",content:"\u67E5\u770B",placement:"top-start"},{default:le(()=>[re(T,{icon:m(Z_),onClick:G=>w(F.row.msg),link:""},null,8,["icon","onClick"])]),_:2},1024)]),_:1}),re(N,{prop:"msg.metadata",label:"\u5143\u6570\u636E",width:"80"},{default:le(F=>[re(A,{class:"box-item",effect:"dark",content:"\u67E5\u770B",placement:"top-start"},{default:le(()=>[re(T,{icon:m(Z_),onClick:G=>b(F.row.msg),link:""},null,8,["icon","onClick"])]),_:2},1024)]),_:1}),re(N,{prop:"err",label:"\u9519\u8BEF",width:"80"},{default:le(F=>[F.row.err?(Z(),Qe(A,{key:0,class:"box-item",effect:"dark",content:"\u67E5\u770B",placement:"top-start"},{default:le(()=>[F.row.err?(Z(),Qe(T,{key:0,icon:m(Z_),onClick:G=>k(F.row.err),link:""},null,8,["icon","onClick"])):Fe("",!0)]),_:2},1024)):Fe("",!0)]),_:1})]),_:1},8,["data"]),re(D,{currentPage:u.value.current,"onUpdate:currentPage":$[0]||($[0]=F=>u.value.current=F),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(j,{"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:le(()=>[re(B,null,{default:le(()=>[re(R,{span:12},{default:le(()=>[St(ct(s.value),1)]),_:1})]),_:1})]),footer:le(()=>[ve("div",zUe,[re(T,{onClick:C},{default:le(()=>[St("\u5173\u95ED")]),_:1})])]),default:le(()=>[re(m(t0),{modelValue:l.value,"onUpdate:modelValue":$[1]||($[1]=F=>l.value=F),placeholder:"\u65E0\u6570\u636E",style:{height:"400px",width:"100%"},autofocus:!0,tabSize:2,extensions:o},null,8,["modelValue"])]),_:1},8,["modelValue"])],64)}}},WUe={class:""},YUe={__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;te(["headersToMetadata"]),te(["responseToBody"]);const s=te(["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=rr(o),d=te(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=te();return rr({showPopover:!1,cronValue:""}),t({submit:()=>p.value.validate(w=>(w&&a.routers&&a.routers.forEach(b=>{if(wr.toFromPath(b)===wr.toFromPath(u)&&b.id!==u.id)return Bi.error(wr.toFromPath(u)+" \u5DF2\u7ECF\u5B58\u5728"),w=!1,!1}),w&&n("submit",fr(u)),w)),getRouterView:()=>d}),(w,b)=>{const k=ip,C=hc,P=ti,$=M1,T=al,A=il,R=kf,B=$1,N=xf;return Z(),ue("div",WUe,[re(N,{model:u,ref_key:"formRef",ref:p,"label-position":"top","label-width":"auto"},{default:le(()=>[re(R,{label:d.value.from.path.label,rules:d.value.from.path.rules,prop:"from.path"},{default:le(()=>[re(A,{style:{width:"100%"}},{default:le(()=>[re(T,{span:24},{default:le(()=>[re(P,{modelValue:u.from.path,"onUpdate:modelValue":b[1]||(b[1]=I=>u.from.path=I),placeholder:"\u8BF7\u8F93\u5165"+d.value.from.path.label},Dl({_:2},[e.currentNodeView.type==="endpoint/http"?{name:"prepend",fn:le(()=>[re(C,{modelValue:u.params[0],"onUpdate:modelValue":b[0]||(b[0]=I=>u.params[0]=I),filterable:"",style:{width:"150px"}},{default:le(()=>[(Z(!0),ue(Tt,null,_n(s.value,I=>(Z(),Qe(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:le(()=>[St(ct(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:le(()=>[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:le(()=>[(Z(!0),ue(Tt,null,_n(d.value.options.inProcessors,I=>(Z(),Qe(k,{key:I,label:I,value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),re($,{size:"small",type:"info"},{default:le(()=>[St(ct(d.value.from.processors.desc),1)]),_:1})]),_:1},8,["label"]),re(R,{label:d.value.to.processors.label,prop:"to.processors"},{default:le(()=>[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:le(()=>[(Z(!0),ue(Tt,null,_n(d.value.options.outProcessors,I=>(Z(),Qe(k,{key:I,label:I,value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),re($,{size:"small",type:"info"},{default:le(()=>[St(ct(d.value.to.processors.desc),1)]),_:1})]),_:1},8,["label"]),e.currentNodeView.type==="endpoint/http"?(Z(),Qe(R,{key:0,label:"\u7B49\u5F85\u6267\u884C\u7ED3\u679C",prop:"to.wait"},{default:le(()=>[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:le(()=>[St("\u5982\u679C\u5F00\u542F\u5219\u4F1A\u628A\u89C4\u5219\u94FE\u6267\u884C\u7ED3\u679C\u54CD\u5E94\u5230\u5BA2\u6237\u7AEF")]),_:1})]),_:1})):Fe("",!0)]),_:1},8,["model"])])}}},Zq={__name:"RouterPropertyTable",props:["showDrawer","currentNodeModel","currentNodeView"],emits:["submit","cancel"],setup(e,{expose:t,emit:n}){const{showDrawer:r,currentNodeModel:o,currentNodeView:i}=e,a=te({}),s=te(!1),l=te(!1),u=te(),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=te(d);if(i.router){let N={...d};N=Object.assign(N,i.router),p.value=N}const v=te({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||wr.toFromPath(D)===wr.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")},P=(N,I)=>wr.toFromPath(N),$=(N,I)=>N.to&&N.to.wait?"\u662F":"\u5426",T=()=>{a.value={id:wr.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&&wr.toFromPath(I)!==wr.toFromPath(N)))},B=()=>{u.value.submit()};return t({getFormModel:k}),(N,I)=>{const D=ro,j=ZD,F=op,G=YD,ae=jD,K=Pd;return Z(),ue(Tt,null,[re(D,{type:"primary",onClick:T},{default:le(()=>[St("\u65B0\u589E")]),_:1}),re(G,{data:e.currentNodeModel.routers,stripe:"","empty-text":"\u6CA1\u6570\u636E",style:{width:"100%","min-height":"50px"}},{default:le(()=>[re(j,{prop:"from.path",label:p.value.from.path.label,formatter:P},null,8,["label"]),re(j,{prop:"from.processors",label:"\u524D\u7F6E\u6570\u636E\u5904\u7406\u5668"},{default:le(H=>[(Z(!0),ue(Tt,null,_n(H.row.from.processors,oe=>(Z(),Qe(F,{key:oe,style:{"margin-right":"5px"}},{default:le(()=>[St(ct(oe),1)]),_:2},1024))),128))]),_:1}),re(j,{prop:"to.processors",label:"\u540E\u7F6E\u6570\u636E\u5904\u7406\u5668"},{default:le(H=>[(Z(!0),ue(Tt,null,_n(H.row.to.processors,oe=>(Z(),Qe(F,{key:oe,style:{"margin-right":"5px"}},{default:le(()=>[St(ct(oe),1)]),_:2},1024))),128))]),_:1}),e.currentNodeView.type==="endpoint/http"?(Z(),Qe(j,{key:0,prop:"to.wait",label:"\u7B49\u5F85\u6267\u884C\u7ED3\u679C",formatter:$})):Fe("",!0),re(j,{label:"\u64CD\u4F5C"},{default:le(({row:H})=>[re(D,{type:"primary",size:"small",onClick:oe=>A(H)},{default:le(()=>[St("\u7F16\u8F91")]),_:2},1032,["onClick"]),re(D,{type:"danger",size:"small",onClick:oe=>R(H)},{default:le(()=>[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:le(()=>[re(D,{onClick:I[1]||(I[1]=H=>s.value=!1)},{default:le(()=>[St("\u53D6\u6D88")]),_:1}),re(D,{type:"primary",onClick:B},{default:le(()=>[St("\u4FDD\u5B58")]),_:1})]),default:le(()=>[re(YUe,{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"}},UUe={__name:"NodePropertyDrawer",props:["show","currentNodeModel","currentNodeView","chainId","debugDataUrl"],emits:["submit","cancel"],setup(e,{emit:t}){const n=te(),r=te(),o=te("detail"),i=async()=>{let u;if(r.value&&(u=r.value.getFormModel().routers,!u||u.length===0)){o.value="router",Bi.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=op,v=al,y=il,w=WC,b=QC,k=ro,C=$D;return Z(),Qe(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},Dl({header:le(()=>[re(y,{class:"setter-title"},{default:le(()=>[re(v,{span:12},{default:le(()=>[St("\u8282\u70B9\u8BE6\u60C5 "),re(p,{class:"ml-2",type:"info"},{default:le(()=>[St(ct(e.currentNodeView.label||e.currentNodeView.type),1)]),_:1})]),_:1})]),_:1})]),default:le(()=>[re(b,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=P=>o.value=P),onTabClick:l},{default:le(()=>[re(w,{label:"\u8BE6\u60C5",name:"detail"},{default:le(()=>[re(sN,{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(),Qe(w,{key:0,label:"\u8DEF\u7531\u8BBE\u7F6E",name:"router"},{default:le(()=>[re(Zq,{ref_key:"routerPropertyFormRef",ref:r,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])]),_:1})):Fe("",!0),e.currentNodeView.nodeType!=="endpoint-node"?(Z(),Qe(w,{key:1,label:"\u8C03\u8BD5\u65E5\u5FD7",name:"debug"},{default:le(()=>[o.value==="debug"?(Z(),Qe(QUe,{key:0,url:e.debugDataUrl,chainId:e.chainId,nodeId:e.currentNodeModel.id},null,8,["url","chainId","nodeId"])):Fe("",!0)]),_:1})):Fe("",!0)]),_:1},8,["modelValue"])]),_:2},[o.value==="detail"||o.value==="router"?{name:"footer",fn:le(()=>[ve("div",ZUe,[re(k,{type:"primary",size:"large",onClick:i},{default:le(()=>[St("\u786E\u8BA4")]),_:1}),re(k,{size:"large",onClick:a},{default:le(()=>[St("\u53D6\u6D88")]),_:1})])]),key:"0"}:void 0]),1032,["modelValue"])}}};var HUe=S0(UUe,[["__scopeId","data-v-56654948"]]);const XUe={style:{flex:"auto"}},GUe={__name:"NodePropertyDialog",props:["show","currentNodeModel","currentNodeView"],emits:["submit","cancel"],setup(e,{emit:t}){const n=te(),r=te(),o=te("detail"),i=async()=>{let l;if(r.value&&(l=r.value.getFormModel().routers,!l||l.length===0)){o.value="router",Bi.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=op,p=al,v=il,y=WC,w=QC,b=ro,k=Pd;return Z(),Qe(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:le(()=>[re(v,{class:"setter-title"},{default:le(()=>[re(p,{span:12},{default:le(()=>[St("\u8282\u70B9\u8BE6\u60C5\u914D\u7F6E "),re(d,{class:"ml-2",type:"info"},{default:le(()=>[St(ct(e.currentNodeView.label||e.currentNodeView.type),1)]),_:1})]),_:1})]),_:1})]),footer:le(()=>[ve("div",XUe,[re(b,{type:"primary",size:"large",onClick:i},{default:le(()=>[St("\u786E\u8BA4")]),_:1}),re(b,{size:"large",onClick:a},{default:le(()=>[St("\u53D6\u6D88")]),_:1})])]),default:le(()=>[e.currentNodeView.nodeType!=="endpoint-node"?(Z(),Qe(sN,{key:0,ref_key:"nodePropertyFormRef",ref:n,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])):Fe("",!0),e.currentNodeView.nodeType==="endpoint-node"?(Z(),Qe(w,{key:1,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=C=>o.value=C)},{default:le(()=>[re(y,{label:"\u8BE6\u60C5",name:"detail"},{default:le(()=>[re(sN,{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:le(()=>[re(Zq,{ref_key:"routerPropertyFormRef",ref:r,currentNodeModel:e.currentNodeModel,currentNodeView:e.currentNodeView,onSubmit:i,onCancel:a},null,8,["currentNodeModel","currentNodeView"])]),_:1})]),_:1},8,["modelValue"])):Fe("",!0)]),_:1},8,["modelValue"])}}},KUe={builtins:{endpoints:{inProcessors:["headersToMetadata"],outProcessors:["responseToBody","metadataToHeaders"]},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/sagoo/devicein",category:"sagooiot/ruleserver/components/devicein",fields:null,label:"Devicein",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:"maxPendingMsgs",type:"int",defaultValue:1e3,label:"",desc:"",validate:"",fields:null},{name:"periodInSeconds",type:"int",defaultValue:60,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:"mode",type:"int",defaultValue:0,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:"switch",category:"filter",fields:[{name:"cases",type:"array",defaultValue:[{case:"msg.temperature>=20 && msg.temperature<=50",then:"Case1"},{case:"msg.temperature>50",then:"Case2"}],label:"",desc:"",validate:"",fields:null}],label:"SwitchNode",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}}"
- "ts": "{{ .ts}}"
- "type": "{{ .type}}"
- "msgType": "{{ .msgType}}"
- "data": "{{ .data | escape}}"
- "dataType": "{{ .dataType}}"
- `,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"]}]},qUe={class:"flow-chart"},JUe={__name:"RuleGoEditor",props:["options","data"],emits:["saveOk","saveError","reset"],setup(e,{expose:t,emit:n}){const r=e,o=te(),i=te(null),a=te(null),s=te({}),l=te({}),u=te({}),d=te(null),p=te(!1),v=te(!1),y=te(!1),w=te(!1),b=te(!1),k=te({url:"http://127.0.0.1:9090",toolbar:{}});let C={},P=te({}),$={},T={},A={},R=[],B=[];const N=r.data,I=r.options;let D={setting:{},relationTypeSplit:"/",endpointRelationTypeSplit:`
- `,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(pe){return D.loadEndpointComponents||(pe.endpoints=[]),wr.adapterComponents(pe)},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:pe=>{!pe.target||pe.target.tagName!=="DIV"&&pe.target.tagName!=="div"||fe()}},{keys:["cmd + c","ctrl + c"],callback:pe=>{if(!pe.target||pe.target.tagName!=="DIV"&&pe.target.tagName!=="div")return;if(!i.value){wr.copyToClipboard("");return}$.currentCloneNodeId=i.value.id;let Me=i.value.properties&&i.value.properties.model||{};wr.copyToClipboard(JSON.stringify(Me))}},{keys:["cmd + v","ctrl + v"],callback:pe=>{!pe.target||pe.target.tagName!=="DIV"&&pe.target.tagName!=="div"||X()}}]},idGenerator:function(pe){return pe==="flow-link"?($.edgeCount++,"edge_"+$.edgeCount):($.nodeCount++,"node_"+$.nodeCount)},plugins:[sBe,rBe,oX,lq]},j=null;vn(()=>{D.components&&D.components.nodes&&D.components.nodes.length>0?(D.components=D.adapterComponents(D.components),C=Se(D.components),F()):(D.components=D.adapterComponents(KUe),C=Se(D.components),F()),D.loadComponentsFromApi&&Ne().then(pe=>{D.components=pe,C=Se(D.components),F()})});const F=()=>{Ae(),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&&(P.value=P),D.container=o.value,j=new CH(D),j.getRuleChain=function(){return P.value},j.getEditorSetting=function(){return k.value},j.extension.selectionSelect.setSelectionSense(!0,!1),j.adapterIn=function(pe){eo(pe)&&(pe=pe.value);let Me={};pe.ruleChain&&(P.value=pe.ruleChain,Me=pe.ruleChain.additionalInfo||{});let Ze=[],Be=[],$e=parseInt(Me.layoutX||D.startX)||D.startX,Je=parseInt(Me.layoutY||D.startY)||D.startY;Ze.push({id:$.startNodeId,type:"start-node",x:$e,y:Je,text:Sy("Input")});let Oe=null,Ye=0,ut=pe.metadata&&pe.metadata.firstNodeIndex||0;pe&&pe.metadata&&pe.metadata.nodes&&pe.metadata.nodes.forEach((ft,kt)=>{let Wt=wr.getNodeSeq(ft.id);Wt>Ye&&(Ye=Wt),$.nodeCount++,ut===kt&&(Oe=ft),$e=$e+150;let Ct=ft.additionalInfo||{},ln=Ct.layoutX||$e,Ce=Ct.layoutY||Je;Ze.push({id:ft.id,type:"simple-node",x:ln,y:Ce,text:ft.name,properties:{view:C[ft.type],model:ft}})}),pe&&pe.metadata&&pe.metadata.endpoints&&pe.metadata.endpoints.forEach((ft,kt)=>{let Wt=wr.getNodeSeq(ft.id);Wt>Ye&&(Ye=Wt),$.nodeCount++,$e=$e+150;let Ct=ft.additionalInfo||{},ln=Ct.layoutX||$e,Ce=Ct.layoutY||Je;Ze.push({id:ft.id,type:"endpoint-node",x:ln,y:Ce,text:ft.name,properties:{view:C[ft.type],model:ft}})}),$.nodeCount+=Ye;let qe=[];Oe&&(qe=[{fromId:$.startNodeId,toId:Oe.id}]),pe.metadata&&pe.metadata.endpoints&&pe.metadata.endpoints.forEach((ft,kt)=>{qe=qe.concat(wr.getEndpointConnections(ft.id,ft,Oe))});let ot=qe;return pe&&pe.metadata&&pe.metadata.connections&&(ot=ot.concat(pe.metadata.connections)),ot.forEach(ft=>{$.edgeCount++;let kt=wr.getEdgeBySourceNodeIdAndTargetNodeId(Be,ft.fromId,ft.toId);kt?(ft.nodeType==="endpoint-node"?kt.text=kt.text+D.endpointRelationTypeSplit+Sy(ft.type,"relationTypes"):kt.text=kt.text+D.relationTypeSplit+Sy(ft.type,"relationTypes"),kt.properties.model.relationTypes||(kt.properties.model.relationTypes=[]),kt.properties.model.relationTypes.push(ft.type),ft.routerId&&(kt.properties.model.routerId=ft.routerId)):(ft.relationTypes=[ft.type],kt=wr.createEdge($,Ze,ft),Be.push(kt))}),{edges:Be,nodes:Ze}},j.adapterOut=function(pe){P.value&&!P.value.id&&(P.value.id=wr.genId());let Me=[],Ze=[],Be=[],$e={},Je=[];pe&&pe.edges&&pe.edges.forEach(Ye=>{if(Ye.sourceNodeId!==$.startNodeId){let ut=ce(Ye.sourceNodeId),qe=ce(Ye.targetNodeId);ut===""&&Bi.error("\u627E\u4E0D\u5230\u8282\u70B9Id="+ut),qe===""&&Bi.error("\u627E\u4E0D\u5230\u8282\u70B9Id="+qe);let ot=j.getNodeDataById(Ye.sourceNodeId),ft=Ye.properties.model||{fromId:ut,toId:qe,type:""};ft.fromId=ut,ft.toId=qe,ft.relationTypes.forEach(kt=>{let Wt={};Object.assign(Wt,ft),Wt.type=kt,delete Wt.id,delete Wt.relationTypes,delete Wt.relationTypesLabel,ot.type==="endpoint-node"?Je.push(Wt):Be.push(Wt)})}else $e=Ye.targetNodeId}),pe&&pe.nodes&&pe.nodes.forEach(Ye=>{if(Ye.id===$.startNodeId)P.value.additionalInfo?(P.value.additionalInfo.layoutX=String(Ye.x),P.value.additionalInfo.layoutY=String(Ye.y)):P.value.additionalInfo={layoutX:String(Ye.x),layoutY:String(Ye.y)};else{let ut=Ye.properties.model;if(ut){let qe=ut.additionalInfo;qe?(qe.layoutX=Ye.x,qe.layoutY=Ye.y):ut.additionalInfo={layoutX:Ye.x,layoutY:Ye.y},delete ut.nodeId,Ye.type==="endpoint-node"?(wr.updateEndpointRouterToPath(ut,P.value.id,Je),Me.push(ut)):Ye.id===$e?Ze.unshift(ut):Ze.push(ut)}}});let Oe={endpoints:Me,nodes:Ze,connections:Be};return{ruleChain:P.value,metadata:Oe}},N?j.render(N):(P.value.id=wr.genId(),j.render()),j.graphModel.eventCenter.emit("rulego-editor:componentOk",D.components),j.on("blank:mousemove",({e:pe})=>{$.mouseX=pe.offsetX,$.mouseY=pe.offsetY}),j.on("blank:mousedown",({e:pe})=>{$.mouseX=pe.offsetX,$.mouseY=pe.offsetY}),j.on("node:click",({data:pe})=>{Ie(),zt(()=>{pe.type!=="start-node"?(i.value=pe,a.value=null,Le(),v.value=!0):(i.value=null,a.value=null)})}),j.on("node:dbclick",({data:pe})=>{Ie(),zt(()=>{pe.type!=="start-node"&&(i.value=pe,a.value=null,Le(),v.value=!0)})}),j.on("edge:click",({data:pe})=>{Ie(),zt(()=>{i.value=null,a.value=pe,v.value=!1,y.value=!1})}),j.on("edge:dbclick",({data:pe})=>{Ie(),zt(()=>{a.value=pe,i.value=null,Le()})}),j.on("node:dnd-add",({data:pe})=>{Ie(),zt(()=>{T=pe,i.value=pe,a.value=null,Le(!0)})}),j.on("node:add",({data:pe})=>{let Me=pe.properties.model;const Ze=j.getNodeModelById(pe.id);Me&&Ze&&(Me.id=pe.id,Ze.setProperty("model",Me))}),j.on("edge:add",({data:pe})=>{let Me=j.getNodeEdges(pe.sourceNodeId);Me&&Me.length>1&&j.getNodeDataById(pe.sourceNodeId).type==="start-node"&&j.deleteEdge(pe.id)}),j.on("edge:add",({data:pe})=>{A=pe,a.value=pe,i.value=null,pe.sourceNodeId!==$.startNodeId&&Le(!0)}),j.on("node:drop",({data:pe})=>{let Me=pe.properties.model;Me&&(Me.additionalInfo?(Me.layoutX=pe.x,Me.layoutY=pe.y):Me.additionalInfo={layoutX:pe.x,layoutY:pe.y})}),j.on("rulego-editor:new",pe=>{ye(),pe.id||(pe.id=wr.genId()),P.value=pe}),j.on("rulego-editor:open",pe=>{let Me=JSON.parse(pe);_e(Me)}),j.on("rulego-editor:setting",pe=>{pe.url&&pe.url!==k.value.url?(k.value.url=pe.url,k.value.toolbar=pe.toolbar,Ne().then(Me=>{D.components=Me,C=Se(D.components),F()})):(k.value.url=pe.url,k.value.toolbar=pe.toolbar)}),j.on("rulego-editor:fullScreen",()=>{console.info("rulego-editor:fullScreen")}),j.on("rulego-editor:save",()=>{he()}),j.on("rulego-editor:reset",()=>{console.info("rulego-editor:deleteSelects")}),j.on("rulego-editor:deleteSelects",()=>{fe()}),j.on("rulego-editor:showEditPanel",()=>{Le(!1)}),j.on("history:change",pe=>{R=pe.data.undos,B=pe.data.redos}),j.on("rulego-editor:loadComponents",pe=>{D.components=D.adapterComponents(pe),j.graphModel.eventCenter.emit("rulego-editor:componentOk",D.components)})},G=pe=>{i.value=pe;let Me=pe.properties.model;!Me.type&&pe.properties.view&&(Me.type=pe.properties.view.type),l.value=pe.properties.view||C[Me.type],Me.id=Me.id||pe.id,Me.nodeId=pe.id,Me.additionalInfo?(Me.layoutX=pe.x,Me.layoutY=pe.y):Me.additionalInfo={layoutX:pe.x,layoutY:pe.y},s.value=Me||{}},ae=pe=>{const Me=j.getNodeModelById(pe.nodeId);Me&&(i.value=Me,Me.setProperty("model",pe),Me.updateText(pe.name));let Ze=Me.getData();if(Ze.type==="endpoint-node")J(pe.nodeId,pe);else{let Be=Ze.properties||{};z(pe.nodeId,Be.view||{},pe)}T=null,p.value=!1,v.value=!1},K=()=>{T&&(j.deleteNode(T.id),T=null),ze()},H=pe=>{const Me=j.getEdgeModelById(pe.id);Me&&(a.value=Me,j.getNodeDataById(Me.sourceNodeId).type==="endpoint-node"?(pe.routerId=pe.relationTypes[0],Me.updateText(pe.relationTypesLabel.join(D.endpointRelationTypeSplit))):Me.updateText(pe.relationTypesLabel.join(D.relationTypeSplit)),Me.setProperty("model",pe)),A=null,b.value=!1,y.value=!1},oe=()=>{A&&(j.deleteEdge(A.id),A=null),ze()},J=(pe,Me)=>{j.getEdgeModels({sourceNodeId:pe}).forEach(Be=>{let $e=Be.properties.model||{},Je=wr.getRouterRelationTypeLabel(Me,$e.routerId||$e.relationTypes);if(Je.length===0)j.deleteEdge(Be.id);else{let Oe=Je.map(Ye=>Ye.label);Be.updateText(Oe.join(D.endpointRelationTypeSplit))}})},z=(pe,Me,Ze)=>{if(!Me.relationTypeDynamics)return;debugger;let Be=j.getEdgeModels({sourceNodeId:pe}),$e=wr.getRelationTypeOptionsFromNode(Me,Ze);Be.forEach(Je=>{(Je.properties.model||{}).relationTypes.every(ut=>$e.find(qe=>qe.value===ut))||j.deleteEdge(Je.id)})},X=()=>{wr.readFromClipboard().then(pe=>{!ee(pe)&&$.currentCloneNodeId&&j.cloneNode($.currentCloneNodeId)}).catch(pe=>{$.currentCloneNodeId&&j.cloneNode($.currentCloneNodeId)})},ee=pe=>{if(!pe)return!1;try{let Me=JSON.parse(pe);if(!Me.type)return!1;$.nodeCount++,Me.id="node_"+$.nodeCount;let Ze=$.mouseX,Be=$.mouseY,$e=C[Me.type];return $e?(j.addNode({id:Me.id,type:$e.nodeType||"simple-node",x:Ze,y:Be,text:Me.name,properties:{view:$e,model:Me}}),!0):!1}catch{return!1}},he=()=>{let pe=j.getGraphData(),Me=k.value.url+D.ruleApi;Me=Me.replace(":id",P.value.id),fetch(Me,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(pe)}).then(Ze=>Ze.ok?Ze:Ze.text().then(Be=>{throw new Error("\u4FDD\u5B58\u5931\u8D25: "+Be)})).then(Ze=>{Bi({showClose:!0,message:"\u4FDD\u5B58\u6210\u529F",type:"success"}),n("saveOk",Ze)}).catch(Ze=>{Bi.error(Ze.message),n("saveError",pe,Ze)})},fe=()=>{const{nodes:pe,edges:Me}=j.getSelectElements();Me&&Me.forEach(Ze=>{j.deleteEdge(Ze.id)}),pe&&pe.forEach(Ze=>{Ze.type!=="start-node"&&j.deleteNode(Ze.id)}),j.graphModel.eventCenter.emit("rulego-editor:deleted"),Ie()},Le=pe=>{if(i.value){let Me=i.value;Me.type!=="start-node"&&(G(Me),pe?p.value=!0:v.value=!0,y.value=!1)}else{let Me=a.value,Ze=j.getNodeDataById(Me.sourceNodeId);if(Ze.type==="start-node")return;let Be=Ze.properties.model||{},$e=Be.type;l.value=C[$e];let Je=j.getEdgeModels({sourceNodeId:Ze.id}),Oe=[];if(Ze.type==="endpoint-node"){if(Oe=wr.getRelationTypeOptionsFromRouters(Je,Be,Me.id),Ze.type==="endpoint-node"&&Oe.length===0){Bi.error("\u8F93\u5165\u7AEF\u6BCF\u4E2A\u8DEF\u7531\u53EA\u5141\u8BB8\u4E00\u6761\u8FB9"),j.deleteEdge(Me.id);return}}else Oe=wr.getRelationTypeOptionsFromNode(Ze.properties.view||{},Be);d.value=Oe.length>0?Oe:null,u.value=Me.properties.model||{id:Me.id,fromId:Me.sourceNodeId,toId:Me.targetNodeId,type:""},u.value.id=Me.id,p.value=!1,v.value=!1,pe?b.value=!0:y.value=!0}},Ie=()=>{i.value=null,a.value=null,T=null,A=null,ze()},ze=()=>{p.value=!1,v.value=!1,b.value=!1,y.value=!1},Ae=()=>{$={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,P.value={}},_e=pe=>{Ae(),j.render(pe),R.length=0,B.length=0},ye=()=>{j.clearData(),_e()},Ne=async()=>{let pe=k.value.url+D.componentsApi;const Ze=await(await fetch(pe)).json();return D.adapterComponents(Ze)},Se=pe=>{let Me={};for(let Ze in pe)pe[Ze].components&&pe[Ze].components.forEach(Be=>{Me[Be.type]=Be});return Me},ce=pe=>{let Me=j.getNodeModelById(pe);return Me&&Me.properties&&Me.properties.model?Me.properties.model.id:""};return t({render:_e,save:he,lf:j,getData:()=>j.getGraphData()}),(pe,Me)=>(Z(),ue("div",qUe,[ve("div",{ref_key:"container",ref:o,class:"container"},null,512),v.value?(Z(),Qe(HUe,{key:0,show:v.value,currentNodeModel:s.value,currentNodeView:l.value,debugDataUrl:k.value.url+m(D).debugDataApi,chainId:m(P).id,onSubmit:ae,onCancel:K},null,8,["show","currentNodeModel","currentNodeView","debugDataUrl","chainId"])):Fe("",!0),p.value?(Z(),Qe(GUe,{key:1,show:p.value,currentNodeModel:s.value,currentNodeView:l.value,onSubmit:ae,onCancel:K},null,8,["show","currentNodeModel","currentNodeView"])):Fe("",!0),y.value?(Z(),Qe(FYe,{key:2,show:y.value,currentEdgeModel:u.value,sourceNodeView:l.value,relationTypeSplit:m(D).relationTypeSplit,sourceNodeRelationTypeOptions:d.value,onSubmit:H,onCancel:oe},null,8,["show","currentEdgeModel","sourceNodeView","relationTypeSplit","sourceNodeRelationTypeOptions"])):Fe("",!0),b.value?(Z(),Qe(QYe,{key:3,show:b.value,currentEdgeModel:u.value,sourceNodeView:l.value,relationTypeSplit:m(D).relationTypeSplit,sourceNodeRelationTypeOptions:d.value,onSubmit:H,onCancel:oe},null,8,["show","currentEdgeModel","sourceNodeView","relationTypeSplit","sourceNodeRelationTypeOptions"])):Fe("",!0)]))}};var eHe=S0(JUe,[["__scopeId","data-v-7f162270"]]);const tHe={__name:"App",setup(e){const t=te(),n=te({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 te({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';
- metadata['index']=52;
- msgType='TEST_MSG_TYPE2';
- msg['aa']=66;
- 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) +
- '\\\\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(),Qe(eHe,{ref_key:"ruleGoEditorRef",ref:t,data:null,options:n.value},null,8,["options"]))}},Uq=nC(tHe);Uq.use(n6e,{locale:r6e});Uq.mount("#app")});export default nHe();
|