@vitest/browser 4.0.8 → 4.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,57 +0,0 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
2
- * @vue/shared v3.5.23
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/function kh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const mt={},Cs=[],Kr=()=>{},iy=()=>!1,Tu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Th=e=>e.startsWith("onUpdate:"),rn=Object.assign,Ch=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},a_=Object.prototype.hasOwnProperty,wt=(e,t)=>a_.call(e,t),We=Array.isArray,Es=e=>Ca(e)==="[object Map]",Cu=e=>Ca(e)==="[object Set]",kv=e=>Ca(e)==="[object Date]",Ke=e=>typeof e=="function",Dt=e=>typeof e=="string",Or=e=>typeof e=="symbol",xt=e=>e!==null&&typeof e=="object",oy=e=>(xt(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),sy=Object.prototype.toString,Ca=e=>sy.call(e),c_=e=>Ca(e).slice(8,-1),ly=e=>Ca(e)==="[object Object]",Eh=e=>Dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jl=kh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Eu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},u_=/-\w/g,or=Eu(e=>e.replace(u_,t=>t.slice(1).toUpperCase())),f_=/\B([A-Z])/g,ki=Eu(e=>e.replace(f_,"-$1").toLowerCase()),Au=Eu(e=>e.charAt(0).toUpperCase()+e.slice(1)),$c=Eu(e=>e?`on${Au(e)}`:""),Vn=(e,t)=>!Object.is(e,t),Ic=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},ay=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Ah=e=>{const t=parseFloat(e);return isNaN(t)?e:t},cy=e=>{const t=Dt(e)?Number(e):NaN;return isNaN(t)?e:t};let Tv;const Lu=()=>Tv||(Tv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tn(e){if(We(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Dt(o)?g_(o):tn(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Dt(e)||xt(e))return e}const d_=/;(?![^(]*\))/g,h_=/:([^]+)/,p_=/\/\*[^]*?\*\//g;function g_(e){const t={};return e.replace(p_,"").split(d_).forEach(r=>{if(r){const o=r.split(h_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function st(e){let t="";if(Dt(e))t=e;else if(We(e))for(let r=0;r<e.length;r++){const o=st(e[r]);o&&(t+=o+" ")}else if(xt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function v_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Dt(t)&&(e.class=st(t)),r&&(e.style=tn(r)),e}const m_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",y_=kh(m_);function uy(e){return!!e||e===""}function b_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=Mu(e[o],t[o]);return r}function Mu(e,t){if(e===t)return!0;let r=kv(e),o=kv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Or(e),o=Or(t),r||o)return e===t;if(r=We(e),o=We(t),r||o)return r&&o?b_(e,t):!1;if(r=xt(e),o=xt(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!Mu(e[f],t[f]))return!1}}return String(e)===String(t)}function fy(e,t){return e.findIndex(r=>Mu(r,t))}const dy=e=>!!(e&&e.__v_isRef===!0),Ie=e=>Dt(e)?e:e==null?"":We(e)||xt(e)&&(e.toString===sy||!Ke(e.toString))?dy(e)?Ie(e.value):JSON.stringify(e,hy,2):String(e),hy=(e,t)=>dy(t)?hy(e,t.value):Es(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Jf(o,c)+" =>"]=s,r),{})}:Cu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Jf(r))}:Or(t)?Jf(t):xt(t)&&!We(t)&&!ly(t)?String(t):t,Jf=(e,t="")=>{var r;return Or(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6
- * @vue/reactivity v3.5.23
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let yn;class w_{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=yn,!t&&yn&&(this.index=(yn.scopes||(yn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=yn;try{return yn=this,t()}finally{yn=r}}}on(){++this._on===1&&(this.prevScope=yn,yn=this)}off(){this._on>0&&--this._on===0&&(yn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function py(){return yn}function x_(e,t=!1){yn&&yn.cleanups.push(e)}let kt;const Qf=new WeakSet;class gy{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,yn&&yn.active&&yn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Qf.has(this)&&(Qf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||my(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Cv(this),yy(this);const t=kt,r=Mr;kt=this,Mr=!0;try{return this.fn()}finally{by(this),kt=t,Mr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Nh(t);this.deps=this.depsTail=void 0,Cv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Qf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Md(this)&&this.run()}get dirty(){return Md(this)}}let vy=0,Ul,Vl;function my(e,t=!1){if(e.flags|=8,t){e.next=Vl,Vl=e;return}e.next=Ul,Ul=e}function Lh(){vy++}function Mh(){if(--vy>0)return;if(Vl){let t=Vl;for(Vl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Ul;){let t=Ul;for(Ul=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function yy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function by(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Nh(o),S_(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function Md(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(wy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function wy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ra)||(e.globalVersion=ra,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Md(e))))return;e.flags|=2;const t=e.dep,r=kt,o=Mr;kt=e,Mr=!0;try{yy(e);const s=e.fn(e._value);(t.version===0||Vn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{kt=r,Mr=o,by(e),e.flags&=-3}}function Nh(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)Nh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function S_(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Mr=!0;const xy=[];function wi(){xy.push(Mr),Mr=!1}function xi(){const e=xy.pop();Mr=e===void 0?!0:e}function Cv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let ra=0;class __{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Nu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!kt||!Mr||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new __(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,Sy(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,ra++,this.notify(t)}notify(t){Lh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Mh()}}}function Sy(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)Sy(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Xc=new WeakMap,Do=Symbol(""),Nd=Symbol(""),ia=Symbol("");function bn(e,t,r){if(Mr&&kt){let o=Xc.get(e);o||Xc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Nu),s.map=o,s.key=r),s.track()}}function vi(e,t,r,o,s,c){const f=Xc.get(e);if(!f){ra++;return}const d=h=>{h&&h.trigger()};if(Lh(),t==="clear")f.forEach(d);else{const h=We(e),p=h&&Eh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===ia||!Or(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ia)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Do)),Es(e)&&d(f.get(Nd)));break;case"delete":h||(d(f.get(Do)),Es(e)&&d(f.get(Nd)));break;case"set":Es(e)&&d(f.get(Do));break}}Mh()}function k_(e,t){const r=Xc.get(e);return r&&r.get(t)}function ms(e){const t=vt(e);return t===e?t:(bn(t,"iterate",ia),dr(e)?t:t.map(dn))}function Ou(e){return bn(e=vt(e),"iterate",ia),e}const T_={__proto__:null,[Symbol.iterator](){return ed(this,Symbol.iterator,dn)},concat(...e){return ms(this).concat(...e.map(t=>We(t)?ms(t):t))},entries(){return ed(this,"entries",e=>(e[1]=dn(e[1]),e))},every(e,t){return ai(this,"every",e,t,void 0,arguments)},filter(e,t){return ai(this,"filter",e,t,r=>r.map(dn),arguments)},find(e,t){return ai(this,"find",e,t,dn,arguments)},findIndex(e,t){return ai(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ai(this,"findLast",e,t,dn,arguments)},findLastIndex(e,t){return ai(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ai(this,"forEach",e,t,void 0,arguments)},includes(...e){return td(this,"includes",e)},indexOf(...e){return td(this,"indexOf",e)},join(e){return ms(this).join(e)},lastIndexOf(...e){return td(this,"lastIndexOf",e)},map(e,t){return ai(this,"map",e,t,void 0,arguments)},pop(){return Ol(this,"pop")},push(...e){return Ol(this,"push",e)},reduce(e,...t){return Ev(this,"reduce",e,t)},reduceRight(e,...t){return Ev(this,"reduceRight",e,t)},shift(){return Ol(this,"shift")},some(e,t){return ai(this,"some",e,t,void 0,arguments)},splice(...e){return Ol(this,"splice",e)},toReversed(){return ms(this).toReversed()},toSorted(e){return ms(this).toSorted(e)},toSpliced(...e){return ms(this).toSpliced(...e)},unshift(...e){return Ol(this,"unshift",e)},values(){return ed(this,"values",dn)}};function ed(e,t,r){const o=Ou(e),s=o[t]();return o!==e&&!dr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const C_=Array.prototype;function ai(e,t,r,o,s,c){const f=Ou(e),d=f!==e&&!dr(e),h=f[t];if(h!==C_[t]){const m=h.apply(e,c);return d?dn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,dn(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function Ev(e,t,r,o){const s=Ou(e);let c=r;return s!==e&&(dr(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,dn(d),h,e)}),s[t](c,...o)}function td(e,t,r){const o=vt(e);bn(o,"iterate",ia);const s=o[t](...r);return(s===-1||s===!1)&&$h(r[0])?(r[0]=vt(r[0]),o[t](...r)):s}function Ol(e,t,r=[]){wi(),Lh();const o=vt(e)[t].apply(e,r);return Mh(),xi(),o}const E_=kh("__proto__,__v_isRef,__isVue"),_y=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Or));function A_(e){Or(e)||(e=String(e));const t=vt(this);return bn(t,"has",e),t.hasOwnProperty(e)}class ky{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?z_:Ay:c?Ey:Cy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=We(t);if(!s){let h;if(f&&(h=T_[r]))return h;if(r==="hasOwnProperty")return A_}const d=Reflect.get(t,r,Ot(t)?t:o);if((Or(r)?_y.has(r):E_(r))||(s||bn(t,"get",r),c))return d;if(Ot(d)){const h=f&&Eh(r)?d:d.value;return s&&xt(h)?Hs(h):h}return xt(d)?s?Hs(d):ir(d):d}}class Ty extends ky{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=io(c);if(!dr(o)&&!io(o)&&(c=vt(c),o=vt(o)),!We(t)&&Ot(c)&&!Ot(o))return h||(c.value=o),!0}const f=We(t)&&Eh(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,Ot(t)?t:s);return t===vt(s)&&(f?Vn(o,c)&&vi(t,"set",r,o):vi(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&vi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Or(r)||!_y.has(r))&&bn(t,"has",r),o}ownKeys(t){return bn(t,"iterate",We(t)?"length":Do),Reflect.ownKeys(t)}}class L_ extends ky{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const M_=new Ty,N_=new L_,O_=new Ty(!0);const Od=e=>e,yc=e=>Reflect.getPrototypeOf(e);function R_(e,t,r){return function(...o){const s=this.__v_raw,c=vt(s),f=Es(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?Od:t?Yc:dn;return!t&&bn(c,"iterate",h?Nd:Do),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function bc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function P_(e,t){const r={get(s){const c=this.__v_raw,f=vt(c),d=vt(s);e||(Vn(s,d)&&bn(f,"get",s),bn(f,"get",d));const{has:h}=yc(f),p=t?Od:e?Yc:dn;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&bn(vt(s),"iterate",Do),s.size},has(s){const c=this.__v_raw,f=vt(c),d=vt(s);return e||(Vn(s,d)&&bn(f,"has",s),bn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=vt(d),p=t?Od:e?Yc:dn;return!e&&bn(h,"iterate",Do),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return rn(r,e?{add:bc("add"),set:bc("set"),delete:bc("delete"),clear:bc("clear")}:{add(s){!t&&!dr(s)&&!io(s)&&(s=vt(s));const c=vt(this);return yc(c).has.call(c,s)||(c.add(s),vi(c,"add",s,s)),this},set(s,c){!t&&!dr(c)&&!io(c)&&(c=vt(c));const f=vt(this),{has:d,get:h}=yc(f);let p=d.call(f,s);p||(s=vt(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?Vn(c,v)&&vi(f,"set",s,c):vi(f,"add",s,c),this},delete(s){const c=vt(this),{has:f,get:d}=yc(c);let h=f.call(c,s);h||(s=vt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&vi(c,"delete",s,void 0),p},clear(){const s=vt(this),c=s.size!==0,f=s.clear();return c&&vi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=R_(s,e,t)}),r}function Oh(e,t){const r=P_(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const $_={get:Oh(!1,!1)},I_={get:Oh(!1,!0)},D_={get:Oh(!0,!1)};const Cy=new WeakMap,Ey=new WeakMap,Ay=new WeakMap,z_=new WeakMap;function F_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function H_(e){return e.__v_skip||!Object.isExtensible(e)?0:F_(c_(e))}function ir(e){return io(e)?e:Ph(e,!1,M_,$_,Cy)}function Rh(e){return Ph(e,!1,O_,I_,Ey)}function Hs(e){return Ph(e,!0,N_,D_,Ay)}function Ph(e,t,r,o,s){if(!xt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=H_(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function As(e){return io(e)?As(e.__v_raw):!!(e&&e.__v_isReactive)}function io(e){return!!(e&&e.__v_isReadonly)}function dr(e){return!!(e&&e.__v_isShallow)}function $h(e){return e?!!e.__v_raw:!1}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function Ih(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&ay(e,"__v_skip",!0),e}const dn=e=>xt(e)?ir(e):e,Yc=e=>xt(e)?Hs(e):e;function Ot(e){return e?e.__v_isRef===!0:!1}function Ve(e){return Ly(e,!1)}function nn(e){return Ly(e,!0)}function Ly(e,t){return Ot(e)?e:new B_(e,t)}class B_{constructor(t,r){this.dep=new Nu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:vt(t),this._value=r?t:dn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||dr(t)||io(t);t=o?t:vt(t),Vn(t,r)&&(this._rawValue=t,this._value=o?t:dn(t),this.dep.trigger())}}function Z(e){return Ot(e)?e.value:e}function Vt(e){return Ke(e)?e():Z(e)}const W_={get:(e,t,r)=>t==="__v_raw"?e:Z(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Ot(s)&&!Ot(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function My(e){return As(e)?e:new Proxy(e,W_)}class q_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Nu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ny(e){return new q_(e)}function j_(e){const t=We(e)?new Array(e.length):{};for(const r in e)t[r]=Oy(e,r);return t}class U_{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return k_(vt(this._object),this._key)}}class V_{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function G_(e,t,r){return Ot(e)?e:Ke(e)?new V_(e):xt(e)&&arguments.length>1?Oy(e,t,r):Ve(e)}function Oy(e,t,r){const o=e[t];return Ot(o)?o:new U_(e,t,r)}class K_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Nu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ra-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return my(this,!0),!0}get value(){const t=this.dep.track();return wy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function X_(e,t,r=!1){let o,s;return Ke(e)?o=e:(o=e.get,s=e.set),new K_(o,s,r)}const wc={},Zc=new WeakMap;let Mo;function Y_(e,t=!1,r=Mo){if(r){let o=Zc.get(r);o||Zc.set(r,o=[]),o.push(e)}}function Z_(e,t,r=mt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=E=>s?E:dr(E)||s===!1||s===0?mi(E,1):mi(E);let v,m,b,x,C=!1,L=!1;if(Ot(e)?(m=()=>e.value,C=dr(e)):As(e)?(m=()=>p(e),C=!0):We(e)?(L=!0,C=e.some(E=>As(E)||dr(E)),m=()=>e.map(E=>{if(Ot(E))return E.value;if(As(E))return p(E);if(Ke(E))return h?h(E,2):E()})):Ke(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){wi();try{b()}finally{xi()}}const E=Mo;Mo=v;try{return h?h(e,3,[x]):e(x)}finally{Mo=E}}:m=Kr,t&&s){const E=m,z=s===!0?1/0:s;m=()=>mi(E(),z)}const M=py(),A=()=>{v.stop(),M&&M.active&&Ch(M.effects,v)};if(c&&t){const E=t;t=(...z)=>{E(...z),A()}}let O=L?new Array(e.length).fill(wc):wc;const F=E=>{if(!(!(v.flags&1)||!v.dirty&&!E))if(t){const z=v.run();if(s||C||(L?z.some((U,re)=>Vn(U,O[re])):Vn(z,O))){b&&b();const U=Mo;Mo=v;try{const re=[z,O===wc?void 0:L&&O[0]===wc?[]:O,x];O=z,h?h(t,3,re):t(...re)}finally{Mo=U}}}else v.run()};return d&&d(F),v=new gy(m),v.scheduler=f?()=>f(F,!1):F,x=E=>Y_(E,!1,v),b=v.onStop=()=>{const E=Zc.get(v);if(E){if(h)h(E,4);else for(const z of E)z();Zc.delete(v)}},t?o?F(!0):O=v.run():f?f(F.bind(null,!0),!0):v.run(),A.pause=v.pause.bind(v),A.resume=v.resume.bind(v),A.stop=A,A}function mi(e,t=1/0,r){if(t<=0||!xt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Ot(e))mi(e.value,t,r);else if(We(e))for(let o=0;o<e.length;o++)mi(e[o],t,r);else if(Cu(e)||Es(e))e.forEach(o=>{mi(o,t,r)});else if(ly(e)){for(const o in e)mi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&mi(e[o],t,r)}return e}/**
10
- * @vue/runtime-core v3.5.23
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function Ea(e,t,r,o){try{return o?e(...o):e()}catch(s){Aa(s,t,r)}}function Rr(e,t,r,o){if(Ke(e)){const s=Ea(e,t,r,o);return s&&oy(s)&&s.catch(c=>{Aa(c,t,r)}),s}if(We(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Rr(e[c],t,r,o));return s}}function Aa(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||mt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){wi(),Ea(c,null,10,[e,h,p]),xi();return}}J_(e,r,s,o,f)}function J_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Pn=[];let Vr=-1;const Ls=[];let Vi=null,bs=0;const Ry=Promise.resolve();let Jc=null;function Ct(e){const t=Jc||Ry;return e?t.then(this?e.bind(this):e):t}function Q_(e){let t=Vr+1,r=Pn.length;for(;t<r;){const o=t+r>>>1,s=Pn[o],c=oa(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Dh(e){if(!(e.flags&1)){const t=oa(e),r=Pn[Pn.length-1];!r||!(e.flags&2)&&t>=oa(r)?Pn.push(e):Pn.splice(Q_(t),0,e),e.flags|=1,Py()}}function Py(){Jc||(Jc=Ry.then(Iy))}function Rd(e){We(e)?Ls.push(...e):Vi&&e.id===-1?Vi.splice(bs+1,0,e):e.flags&1||(Ls.push(e),e.flags|=1),Py()}function Av(e,t,r=Vr+1){for(;r<Pn.length;r++){const o=Pn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Pn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function $y(e){if(Ls.length){const t=[...new Set(Ls)].sort((r,o)=>oa(r)-oa(o));if(Ls.length=0,Vi){Vi.push(...t);return}for(Vi=t,bs=0;bs<Vi.length;bs++){const r=Vi[bs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Vi=null,bs=0}}const oa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Iy(e){try{for(Vr=0;Vr<Pn.length;Vr++){const t=Pn[Vr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ea(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Vr<Pn.length;Vr++){const t=Pn[Vr];t&&(t.flags&=-2)}Vr=-1,Pn.length=0,$y(),Jc=null,(Pn.length||Ls.length)&&Iy()}}let pn=null,Ru=null;function Qc(e){const t=pn;return pn=e,Ru=e&&e.type.__scopeId||null,t}function Dy(e){Ru=e}function zy(){Ru=null}const Fy=e=>it;function it(e,t=pn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ws(-1);const c=Qc(t);let f;try{f=e(...s)}finally{Qc(c),o._d&&Ws(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function ct(e,t){if(pn===null)return e;const r=Bu(pn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=mt]=t[s];c&&(Ke(c)&&(c={mounted:c,updated:c}),c.deep&&mi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function To(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(wi(),Rr(h,r,8,[e.el,d,e,t]),xi())}}const ek=Symbol("_vte"),Hy=e=>e.__isTeleport,gi=Symbol("_leaveCb"),xc=Symbol("_enterCb");function tk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fo(()=>{e.isMounted=!0}),La(()=>{e.isUnmounting=!0}),e}const cr=[Function,Array],By={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cr,onEnter:cr,onAfterEnter:cr,onEnterCancelled:cr,onBeforeLeave:cr,onLeave:cr,onAfterLeave:cr,onLeaveCancelled:cr,onBeforeAppear:cr,onAppear:cr,onAfterAppear:cr,onAppearCancelled:cr},Wy=e=>{const t=e.subTree;return t.component?Wy(t.component):t},nk={name:"BaseTransition",props:By,setup(e,{slots:t}){const r=Ci(),o=tk();return()=>{const s=t.default&&Uy(t.default(),!0);if(!s||!s.length)return;const c=qy(s),f=vt(e),{mode:d}=f;if(o.isLeaving)return nd(c);const h=Lv(c);if(!h)return nd(c);let p=Pd(h,f,o,r,m=>p=m);h.type!==sn&&sa(h,p);let v=r.subTree&&Lv(r.subTree);if(v&&v.type!==sn&&!Gr(v,h)&&Wy(r).type!==sn){let m=Pd(v,f,o,r);if(sa(v,m),d==="out-in"&&h.type!==sn)return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete m.afterLeave,v=void 0},nd(c);d==="in-out"&&h.type!==sn?m.delayLeave=(b,x,C)=>{const L=jy(o,v);L[String(v.key)]=v,b[gi]=()=>{x(),b[gi]=void 0,delete p.delayedLeave,v=void 0},p.delayedLeave=()=>{C(),delete p.delayedLeave,v=void 0}}:v=void 0}else v&&(v=void 0);return c}}};function qy(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==sn){t=r;break}}return t}const rk=nk;function jy(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Pd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:x,onAfterLeave:C,onLeaveCancelled:L,onBeforeAppear:M,onAppear:A,onAfterAppear:O,onAppearCancelled:F}=t,E=String(e.key),z=jy(r,e),U=(ne,K)=>{ne&&Rr(ne,o,9,K)},re=(ne,K)=>{const Y=K[1];U(ne,K),We(ne)?ne.every($=>$.length<=1)&&Y():ne.length<=1&&Y()},te={mode:f,persisted:d,beforeEnter(ne){let K=h;if(!r.isMounted)if(c)K=M||h;else return;ne[gi]&&ne[gi](!0);const Y=z[E];Y&&Gr(e,Y)&&Y.el[gi]&&Y.el[gi](),U(K,[ne])},enter(ne){let K=p,Y=v,$=m;if(!r.isMounted)if(c)K=A||p,Y=O||v,$=F||m;else return;let R=!1;const N=ne[xc]=_=>{R||(R=!0,_?U($,[ne]):U(Y,[ne]),te.delayedLeave&&te.delayedLeave(),ne[xc]=void 0)};K?re(K,[ne,N]):N()},leave(ne,K){const Y=String(e.key);if(ne[xc]&&ne[xc](!0),r.isUnmounting)return K();U(b,[ne]);let $=!1;const R=ne[gi]=N=>{$||($=!0,K(),N?U(L,[ne]):U(C,[ne]),ne[gi]=void 0,z[Y]===e&&delete z[Y])};z[Y]=e,x?re(x,[ne,R]):R()},clone(ne){const K=Pd(ne,t,r,o,s);return s&&s(K),K}};return te}function nd(e){if(Pu(e))return e=oo(e),e.children=null,e}function Lv(e){if(!Pu(e))return Hy(e.type)&&e.children?qy(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ke(r.default))return r.default()}}function sa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sa(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 Uy(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===nt?(f.patchFlag&128&&s++,o=o.concat(Uy(f.children,t,d))):(t||f.type!==sn)&&o.push(d!=null?oo(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function ot(e,t){return Ke(e)?rn({name:e.name},t,{setup:e}):e}function Vy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const eu=new WeakMap;function Gl(e,t,r,o,s=!1){if(We(e)){e.forEach((C,L)=>Gl(C,t&&(We(t)?t[L]:t),r,o,s));return}if(Ms(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Gl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Bu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===mt?d.refs={}:d.refs,m=d.setupState,b=vt(m),x=m===mt?iy:C=>wt(b,C);if(p!=null&&p!==h){if(Mv(t),Dt(p))v[p]=null,x(p)&&(m[p]=null);else if(Ot(p)){p.value=null;const C=t;C.k&&(v[C.k]=null)}}if(Ke(h))Ea(h,d,12,[f,v]);else{const C=Dt(h),L=Ot(h);if(C||L){const M=()=>{if(e.f){const A=C?x(h)?m[h]:v[h]:h.value;if(s)We(A)&&Ch(A,c);else if(We(A))A.includes(c)||A.push(c);else if(C)v[h]=[c],x(h)&&(m[h]=v[h]);else{const O=[c];h.value=O,e.k&&(v[e.k]=O)}}else C?(v[h]=f,x(h)&&(m[h]=f)):L&&(h.value=f,e.k&&(v[e.k]=f))};if(f){const A=()=>{M(),eu.delete(e)};A.id=-1,eu.set(e,A),er(A,r)}else Mv(e),M()}}}function Mv(e){const t=eu.get(e);t&&(t.flags|=8,eu.delete(e))}Lu().requestIdleCallback;Lu().cancelIdleCallback;const Ms=e=>!!e.type.__asyncLoader,Pu=e=>e.type.__isKeepAlive;function ik(e,t){Gy(e,"a",t)}function ok(e,t){Gy(e,"da",t)}function Gy(e,t,r=xn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if($u(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Pu(s.parent.vnode)&&sk(o,t,r,s),s=s.parent}}function sk(e,t,r,o){const s=$u(t,e,o,!0);Iu(()=>{Ch(o[t],s)},r)}function $u(e,t,r=xn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{wi();const d=Ma(r),h=Rr(t,r,e,f);return d(),xi(),h});return o?s.unshift(c):s.push(c),c}}const Ti=e=>(t,r=xn)=>{(!ca||e==="sp")&&$u(e,(...o)=>t(...o),r)},lk=Ti("bm"),fo=Ti("m"),ak=Ti("bu"),ck=Ti("u"),La=Ti("bum"),Iu=Ti("um"),uk=Ti("sp"),fk=Ti("rtg"),dk=Ti("rtc");function hk(e,t=xn){$u("ec",e,t)}const zh="components",pk="directives";function Ho(e,t){return Fh(zh,e,!0,t)||e}const Ky=Symbol.for("v-ndc");function $d(e){return Dt(e)?Fh(zh,e,!1)||e:e||Ky}function Dr(e){return Fh(pk,e)}function Fh(e,t,r=!0,o=!1){const s=pn||xn;if(s){const c=s.type;if(e===zh){const d=lT(c,!1);if(d&&(d===t||d===or(t)||d===Au(or(t))))return c}const f=Nv(s[e]||c[e],t)||Nv(s.appContext[e],t);return!f&&o?c:f}}function Nv(e,t){return e&&(e[t]||e[or(t)]||e[Au(or(t))])}function hr(e,t,r,o){let s;const c=r,f=We(e);if(f||Dt(e)){const d=f&&As(e);let h=!1,p=!1;d&&(h=!dr(e),p=io(e),e=Ou(e)),s=new Array(e.length);for(let v=0,m=e.length;v<m;v++)s[v]=t(h?p?Yc(dn(e[v])):dn(e[v]):e[v],v,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(xt(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function gk(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(We(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function Sn(e,t,r={},o,s){if(pn.ce||pn.parent&&Ms(pn.parent)&&pn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),se(),Je(nt,null,[Re("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),se();const f=c&&Xy(c(r)),d=r.key||f&&f.key,h=Je(nt,{key:(d&&!Or(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function Xy(e){return e.some(t=>qs(t)?!(t.type===sn||t.type===nt&&!Xy(t.children)):!0)?e:null}function vk(e,t){const r={};for(const o in e)r[$c(o)]=e[o];return r}const Id=e=>e?wb(e)?Bu(e):Id(e.parent):null,Kl=rn(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=>Id(e.parent),$root:e=>Id(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jy(e),$forceUpdate:e=>e.f||(e.f=()=>{Dh(e.update)}),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>Hk.bind(e)}),rd=(e,t)=>e!==mt&&!e.__isScriptSetup&&wt(e,t),mk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const x=f[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(rd(o,t))return f[t]=1,o[t];if(s!==mt&&wt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return f[t]=3,c[t];if(r!==mt&&wt(r,t))return f[t]=4,r[t];Dd&&(f[t]=0)}}const v=Kl[t];let m,b;if(v)return t==="$attrs"&&bn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==mt&&wt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,wt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return rd(s,t)?(s[t]=r,!0):o!==mt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c,type:f}},d){let h,p;return!!(r[d]||e!==mt&&d[0]!=="$"&&wt(e,d)||rd(t,d)||(h=c[0])&&wt(h,d)||wt(o,d)||wt(Kl,d)||wt(s.config.globalProperties,d)||(p=f.__cssModules)&&p[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function yk(){return Yy().slots}function bk(){return Yy().attrs}function Yy(e){const t=Ci();return t.setupContext||(t.setupContext=Sb(t))}function tu(e){return We(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function la(e,t){return!e||!t?e||t:We(e)&&We(t)?e.concat(t):rn({},tu(e),tu(t))}let Dd=!0;function wk(e){const t=Jy(e),r=e.proxy,o=e.ctx;Dd=!1,t.beforeCreate&&Ov(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:x,updated:C,activated:L,deactivated:M,beforeDestroy:A,beforeUnmount:O,destroyed:F,unmounted:E,render:z,renderTracked:U,renderTriggered:re,errorCaptured:te,serverPrefetch:ne,expose:K,inheritAttrs:Y,components:$,directives:R,filters:N}=t;if(p&&xk(p,o,null),f)for(const j in f){const ie=f[j];Ke(ie)&&(o[j]=ie.bind(r))}if(s){const j=s.call(r,r);xt(j)&&(e.data=ir(j))}if(Dd=!0,c)for(const j in c){const ie=c[j],ve=Ke(ie)?ie.bind(r,r):Ke(ie.get)?ie.get.bind(r,r):Kr,Se=!Ke(ie)&&Ke(ie.set)?ie.set.bind(r):Kr,$e=xe({get:ve,set:Se});Object.defineProperty(o,j,{enumerable:!0,configurable:!0,get:()=>$e.value,set:je=>$e.value=je})}if(d)for(const j in d)Zy(d[j],o,r,j);if(h){const j=Ke(h)?h.call(r):h;Reflect.ownKeys(j).forEach(ie=>{Er(ie,j[ie])})}v&&Ov(v,e,"c");function H(j,ie){We(ie)?ie.forEach(ve=>j(ve.bind(r))):ie&&j(ie.bind(r))}if(H(lk,m),H(fo,b),H(ak,x),H(ck,C),H(ik,L),H(ok,M),H(hk,te),H(dk,U),H(fk,re),H(La,O),H(Iu,E),H(uk,ne),We(K))if(K.length){const j=e.exposed||(e.exposed={});K.forEach(ie=>{Object.defineProperty(j,ie,{get:()=>r[ie],set:ve=>r[ie]=ve,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===Kr&&(e.render=z),Y!=null&&(e.inheritAttrs=Y),$&&(e.components=$),R&&(e.directives=R),ne&&Vy(e)}function xk(e,t,r=Kr){We(e)&&(e=zd(e));for(const o in e){const s=e[o];let c;xt(s)?"default"in s?c=wn(s.from||o,s.default,!0):c=wn(s.from||o):c=wn(s),Ot(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Ov(e,t,r){Rr(We(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Zy(e,t,r,o){let s=o.includes(".")?fb(r,o):()=>r[o];if(Dt(e)){const c=t[e];Ke(c)&&_t(s,c)}else if(Ke(e))_t(s,e.bind(r));else if(xt(e))if(We(e))e.forEach(c=>Zy(c,t,r,o));else{const c=Ke(e.handler)?e.handler.bind(r):t[e.handler];Ke(c)&&_t(s,c,e)}}function Jy(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>nu(h,p,f,!0)),nu(h,t,f)),xt(t)&&c.set(t,h),h}function nu(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&nu(e,c,r,!0),s&&s.forEach(f=>nu(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=Sk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const Sk={data:Rv,props:Pv,emits:Pv,methods:Hl,computed:Hl,beforeCreate:Nn,created:Nn,beforeMount:Nn,mounted:Nn,beforeUpdate:Nn,updated:Nn,beforeDestroy:Nn,beforeUnmount:Nn,destroyed:Nn,unmounted:Nn,activated:Nn,deactivated:Nn,errorCaptured:Nn,serverPrefetch:Nn,components:Hl,directives:Hl,watch:kk,provide:Rv,inject:_k};function Rv(e,t){return t?e?function(){return rn(Ke(e)?e.call(this,this):e,Ke(t)?t.call(this,this):t)}:t:e}function _k(e,t){return Hl(zd(e),zd(t))}function zd(e){if(We(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Nn(e,t){return e?[...new Set([].concat(e,t))]:t}function Hl(e,t){return e?rn(Object.create(null),e,t):t}function Pv(e,t){return e?We(e)&&We(t)?[...new Set([...e,...t])]:rn(Object.create(null),tu(e),tu(t??{})):t}function kk(e,t){if(!e)return t;if(!t)return e;const r=rn(Object.create(null),e);for(const o in t)r[o]=Nn(e[o],t[o]);return r}function Qy(){return{app:null,config:{isNativeTag:iy,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 Tk=0;function Ck(e,t){return function(o,s=null){Ke(o)||(o=rn({},o)),s!=null&&!xt(s)&&(s=null);const c=Qy(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:Tk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:cT,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ke(v.install)?(f.add(v),v.install(p,...m)):Ke(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const x=p._ceVNode||Re(o,s);return x.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(x,v,b),h=!0,p._container=v,v.__vue_app__=p,Bu(x.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Rr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=zo;zo=p;try{return v()}finally{zo=m}}};return p}}let zo=null;function Er(e,t){if(xn){let r=xn.provides;const o=xn.parent&&xn.parent.provides;o===r&&(r=xn.provides=Object.create(o)),r[e]=t}}function wn(e,t,r=!1){const o=Ci();if(o||zo){let s=zo?zo._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Ke(t)?t.call(o&&o.proxy):t}}function eb(){return!!(Ci()||zo)}const tb={},nb=()=>Object.create(tb),rb=e=>Object.getPrototypeOf(e)===tb;function Ek(e,t,r,o=!1){const s={},c=nb();e.propsDefaults=Object.create(null),ib(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:Rh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function Ak(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=vt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Fu(e.emitsOptions,b))continue;const x=t[b];if(h)if(wt(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const C=or(b);s[C]=Fd(h,d,C,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{ib(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=ki(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=Fd(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!wt(t,m))&&(delete c[m],p=!0)}p&&vi(e.attrs,"set","")}function ib(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(jl(h))continue;const p=t[h];let v;s&&wt(s,v=or(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Fu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=vt(r),p=d||mt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Fd(s,h,m,p[m],e,!wt(p,m))}}return f}function Fd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=wt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Ke(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=Ma(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===ki(r))&&(o=!0))}return o}const Lk=new WeakMap;function ob(e,t,r=!1){const o=r?Lk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ke(e)){const v=m=>{h=!0;const[b,x]=ob(m,t,!0);rn(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return xt(e)&&o.set(e,Cs),Cs;if(We(c))for(let v=0;v<c.length;v++){const m=or(c[v]);$v(m)&&(f[m]=mt)}else if(c)for(const v in c){const m=or(v);if($v(m)){const b=c[v],x=f[m]=We(b)||Ke(b)?{type:b}:rn({},b),C=x.type;let L=!1,M=!0;if(We(C))for(let A=0;A<C.length;++A){const O=C[A],F=Ke(O)&&O.name;if(F==="Boolean"){L=!0;break}else F==="String"&&(M=!1)}else L=Ke(C)&&C.name==="Boolean";x[0]=L,x[1]=M,(L||wt(x,"default"))&&d.push(m)}}const p=[f,d];return xt(e)&&o.set(e,p),p}function $v(e){return e[0]!=="$"&&!jl(e)}const Hh=e=>e==="_"||e==="_ctx"||e==="$stable",Bh=e=>We(e)?e.map(Ar):[Ar(e)],Mk=(e,t,r)=>{if(t._n)return t;const o=it((...s)=>Bh(t(...s)),r);return o._c=!1,o},sb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Hh(s))continue;const c=e[s];if(Ke(c))t[s]=Mk(s,c,o);else if(c!=null){const f=Bh(c);t[s]=()=>f}}},lb=(e,t)=>{const r=Bh(t);e.slots.default=()=>r},ab=(e,t,r)=>{for(const o in t)(r||!Hh(o))&&(e[o]=t[o])},Nk=(e,t,r)=>{const o=e.slots=nb();if(e.vnode.shapeFlag&32){const s=t._;s?(ab(o,t,r),r&&ay(o,"_",s,!0)):sb(t,o)}else t&&lb(e,t)},Ok=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=mt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:ab(s,t,r):(c=!t.$stable,sb(t,s)),f=t}else t&&(lb(e,t),f={default:1});if(c)for(const d in s)!Hh(d)&&f[d]==null&&delete s[d]},er=Jk;function Rk(e){return Pk(e)}function Pk(e,t){const r=Lu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:x=Kr,insertStaticContent:C}=e,L=(P,B,G,ue=null,he=null,de=null,_e=void 0,Ce=null,ge=!!B.dynamicChildren)=>{if(P===B)return;P&&!Gr(P,B)&&(ue=I(P),je(P,he,de,!0),P=null),B.patchFlag===-2&&(ge=!1,B.dynamicChildren=null);const{type:ye,ref:qe,shapeFlag:Ne}=B;switch(ye){case Hu:M(P,B,G,ue);break;case sn:A(P,B,G,ue);break;case od:P==null&&O(B,G,ue,_e);break;case nt:$(P,B,G,ue,he,de,_e,Ce,ge);break;default:Ne&1?z(P,B,G,ue,he,de,_e,Ce,ge):Ne&6?R(P,B,G,ue,he,de,_e,Ce,ge):(Ne&64||Ne&128)&&ye.process(P,B,G,ue,he,de,_e,Ce,ge,le)}qe!=null&&he?Gl(qe,P&&P.ref,de,B||P,!B):qe==null&&P&&P.ref!=null&&Gl(P.ref,null,de,P,!0)},M=(P,B,G,ue)=>{if(P==null)o(B.el=d(B.children),G,ue);else{const he=B.el=P.el;B.children!==P.children&&p(he,B.children)}},A=(P,B,G,ue)=>{P==null?o(B.el=h(B.children||""),G,ue):B.el=P.el},O=(P,B,G,ue)=>{[P.el,P.anchor]=C(P.children,B,G,ue,P.el,P.anchor)},F=({el:P,anchor:B},G,ue)=>{let he;for(;P&&P!==B;)he=b(P),o(P,G,ue),P=he;o(B,G,ue)},E=({el:P,anchor:B})=>{let G;for(;P&&P!==B;)G=b(P),s(P),P=G;s(B)},z=(P,B,G,ue,he,de,_e,Ce,ge)=>{if(B.type==="svg"?_e="svg":B.type==="math"&&(_e="mathml"),P==null)U(B,G,ue,he,de,_e,Ce,ge);else{const ye=P.el&&P.el._isVueCE?P.el:null;try{ye&&ye._beginPatch(),ne(P,B,he,de,_e,Ce,ge)}finally{ye&&ye._endPatch()}}},U=(P,B,G,ue,he,de,_e,Ce)=>{let ge,ye;const{props:qe,shapeFlag:Ne,transition:Fe,dirs:Ge}=P;if(ge=P.el=f(P.type,de,qe&&qe.is,qe),Ne&8?v(ge,P.children):Ne&16&&te(P.children,ge,null,ue,he,id(P,de),_e,Ce),Ge&&To(P,null,ue,"created"),re(ge,P,P.scopeId,_e,ue),qe){for(const lt in qe)lt!=="value"&&!jl(lt)&&c(ge,lt,null,qe[lt],de,ue);"value"in qe&&c(ge,"value",null,qe.value,de),(ye=qe.onVnodeBeforeMount)&&Ur(ye,ue,P)}Ge&&To(P,null,ue,"beforeMount");const rt=$k(he,Fe);rt&&Fe.beforeEnter(ge),o(ge,B,G),((ye=qe&&qe.onVnodeMounted)||rt||Ge)&&er(()=>{ye&&Ur(ye,ue,P),rt&&Fe.enter(ge),Ge&&To(P,null,ue,"mounted")},he)},re=(P,B,G,ue,he)=>{if(G&&x(P,G),ue)for(let de=0;de<ue.length;de++)x(P,ue[de]);if(he){let de=he.subTree;if(B===de||pb(de.type)&&(de.ssContent===B||de.ssFallback===B)){const _e=he.vnode;re(P,_e,_e.scopeId,_e.slotScopeIds,he.parent)}}},te=(P,B,G,ue,he,de,_e,Ce,ge=0)=>{for(let ye=ge;ye<P.length;ye++){const qe=P[ye]=Ce?Gi(P[ye]):Ar(P[ye]);L(null,qe,B,G,ue,he,de,_e,Ce)}},ne=(P,B,G,ue,he,de,_e)=>{const Ce=B.el=P.el;let{patchFlag:ge,dynamicChildren:ye,dirs:qe}=B;ge|=P.patchFlag&16;const Ne=P.props||mt,Fe=B.props||mt;let Ge;if(G&&Co(G,!1),(Ge=Fe.onVnodeBeforeUpdate)&&Ur(Ge,G,B,P),qe&&To(B,P,G,"beforeUpdate"),G&&Co(G,!0),(Ne.innerHTML&&Fe.innerHTML==null||Ne.textContent&&Fe.textContent==null)&&v(Ce,""),ye?K(P.dynamicChildren,ye,Ce,G,ue,id(B,he),de):_e||ie(P,B,Ce,null,G,ue,id(B,he),de,!1),ge>0){if(ge&16)Y(Ce,Ne,Fe,G,he);else if(ge&2&&Ne.class!==Fe.class&&c(Ce,"class",null,Fe.class,he),ge&4&&c(Ce,"style",Ne.style,Fe.style,he),ge&8){const rt=B.dynamicProps;for(let lt=0;lt<rt.length;lt++){const ut=rt[lt],Mt=Ne[ut],at=Fe[ut];(at!==Mt||ut==="value")&&c(Ce,ut,Mt,at,he,G)}}ge&1&&P.children!==B.children&&v(Ce,B.children)}else!_e&&ye==null&&Y(Ce,Ne,Fe,G,he);((Ge=Fe.onVnodeUpdated)||qe)&&er(()=>{Ge&&Ur(Ge,G,B,P),qe&&To(B,P,G,"updated")},ue)},K=(P,B,G,ue,he,de,_e)=>{for(let Ce=0;Ce<B.length;Ce++){const ge=P[Ce],ye=B[Ce],qe=ge.el&&(ge.type===nt||!Gr(ge,ye)||ge.shapeFlag&198)?m(ge.el):G;L(ge,ye,qe,null,ue,he,de,_e,!0)}},Y=(P,B,G,ue,he)=>{if(B!==G){if(B!==mt)for(const de in B)!jl(de)&&!(de in G)&&c(P,de,B[de],null,he,ue);for(const de in G){if(jl(de))continue;const _e=G[de],Ce=B[de];_e!==Ce&&de!=="value"&&c(P,de,Ce,_e,he,ue)}"value"in G&&c(P,"value",B.value,G.value,he)}},$=(P,B,G,ue,he,de,_e,Ce,ge)=>{const ye=B.el=P?P.el:d(""),qe=B.anchor=P?P.anchor:d("");let{patchFlag:Ne,dynamicChildren:Fe,slotScopeIds:Ge}=B;Ge&&(Ce=Ce?Ce.concat(Ge):Ge),P==null?(o(ye,G,ue),o(qe,G,ue),te(B.children||[],G,qe,he,de,_e,Ce,ge)):Ne>0&&Ne&64&&Fe&&P.dynamicChildren?(K(P.dynamicChildren,Fe,G,he,de,_e,Ce),(B.key!=null||he&&B===he.subTree)&&cb(P,B,!0)):ie(P,B,G,qe,he,de,_e,Ce,ge)},R=(P,B,G,ue,he,de,_e,Ce,ge)=>{B.slotScopeIds=Ce,P==null?B.shapeFlag&512?he.ctx.activate(B,G,ue,_e,ge):N(B,G,ue,he,de,_e,ge):_(P,B,ge)},N=(P,B,G,ue,he,de,_e)=>{const Ce=P.component=rT(P,ue,he);if(Pu(P)&&(Ce.ctx.renderer=le),iT(Ce,!1,_e),Ce.asyncDep){if(he&&he.registerDep(Ce,H,_e),!P.el){const ge=Ce.subTree=Re(sn);A(null,ge,B,G),P.placeholder=ge.el}}else H(Ce,P,B,G,he,de,_e)},_=(P,B,G)=>{const ue=B.component=P.component;if(Vk(P,B,G))if(ue.asyncDep&&!ue.asyncResolved){j(ue,B,G);return}else ue.next=B,ue.update();else B.el=P.el,ue.vnode=B},H=(P,B,G,ue,he,de,_e)=>{const Ce=()=>{if(P.isMounted){let{next:Ne,bu:Fe,u:Ge,parent:rt,vnode:lt}=P;{const Bt=ub(P);if(Bt){Ne&&(Ne.el=lt.el,j(P,Ne,_e)),Bt.asyncDep.then(()=>{P.isUnmounted||Ce()});return}}let ut=Ne,Mt;Co(P,!1),Ne?(Ne.el=lt.el,j(P,Ne,_e)):Ne=lt,Fe&&Ic(Fe),(Mt=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Ur(Mt,rt,Ne,lt),Co(P,!0);const at=Dv(P),Gt=P.subTree;P.subTree=at,L(Gt,at,m(Gt.el),I(Gt),P,he,de),Ne.el=at.el,ut===null&&qh(P,at.el),Ge&&er(Ge,he),(Mt=Ne.props&&Ne.props.onVnodeUpdated)&&er(()=>Ur(Mt,rt,Ne,lt),he)}else{let Ne;const{el:Fe,props:Ge}=B,{bm:rt,m:lt,parent:ut,root:Mt,type:at}=P,Gt=Ms(B);Co(P,!1),rt&&Ic(rt),!Gt&&(Ne=Ge&&Ge.onVnodeBeforeMount)&&Ur(Ne,ut,B),Co(P,!0);{Mt.ce&&Mt.ce._def.shadowRoot!==!1&&Mt.ce._injectChildStyle(at);const Bt=P.subTree=Dv(P);L(null,Bt,G,ue,P,he,de),B.el=Bt.el}if(lt&&er(lt,he),!Gt&&(Ne=Ge&&Ge.onVnodeMounted)){const Bt=B;er(()=>Ur(Ne,ut,Bt),he)}(B.shapeFlag&256||ut&&Ms(ut.vnode)&&ut.vnode.shapeFlag&256)&&P.a&&er(P.a,he),P.isMounted=!0,B=G=ue=null}};P.scope.on();const ge=P.effect=new gy(Ce);P.scope.off();const ye=P.update=ge.run.bind(ge),qe=P.job=ge.runIfDirty.bind(ge);qe.i=P,qe.id=P.uid,ge.scheduler=()=>Dh(qe),Co(P,!0),ye()},j=(P,B,G)=>{B.component=P;const ue=P.vnode.props;P.vnode=B,P.next=null,Ak(P,B.props,ue,G),Ok(P,B.children,G),wi(),Av(P),xi()},ie=(P,B,G,ue,he,de,_e,Ce,ge=!1)=>{const ye=P&&P.children,qe=P?P.shapeFlag:0,Ne=B.children,{patchFlag:Fe,shapeFlag:Ge}=B;if(Fe>0){if(Fe&128){Se(ye,Ne,G,ue,he,de,_e,Ce,ge);return}else if(Fe&256){ve(ye,Ne,G,ue,he,de,_e,Ce,ge);return}}Ge&8?(qe&16&&Me(ye,he,de),Ne!==ye&&v(G,Ne)):qe&16?Ge&16?Se(ye,Ne,G,ue,he,de,_e,Ce,ge):Me(ye,he,de,!0):(qe&8&&v(G,""),Ge&16&&te(Ne,G,ue,he,de,_e,Ce,ge))},ve=(P,B,G,ue,he,de,_e,Ce,ge)=>{P=P||Cs,B=B||Cs;const ye=P.length,qe=B.length,Ne=Math.min(ye,qe);let Fe;for(Fe=0;Fe<Ne;Fe++){const Ge=B[Fe]=ge?Gi(B[Fe]):Ar(B[Fe]);L(P[Fe],Ge,G,null,he,de,_e,Ce,ge)}ye>qe?Me(P,he,de,!0,!1,Ne):te(B,G,ue,he,de,_e,Ce,ge,Ne)},Se=(P,B,G,ue,he,de,_e,Ce,ge)=>{let ye=0;const qe=B.length;let Ne=P.length-1,Fe=qe-1;for(;ye<=Ne&&ye<=Fe;){const Ge=P[ye],rt=B[ye]=ge?Gi(B[ye]):Ar(B[ye]);if(Gr(Ge,rt))L(Ge,rt,G,null,he,de,_e,Ce,ge);else break;ye++}for(;ye<=Ne&&ye<=Fe;){const Ge=P[Ne],rt=B[Fe]=ge?Gi(B[Fe]):Ar(B[Fe]);if(Gr(Ge,rt))L(Ge,rt,G,null,he,de,_e,Ce,ge);else break;Ne--,Fe--}if(ye>Ne){if(ye<=Fe){const Ge=Fe+1,rt=Ge<qe?B[Ge].el:ue;for(;ye<=Fe;)L(null,B[ye]=ge?Gi(B[ye]):Ar(B[ye]),G,rt,he,de,_e,Ce,ge),ye++}}else if(ye>Fe)for(;ye<=Ne;)je(P[ye],he,de,!0),ye++;else{const Ge=ye,rt=ye,lt=new Map;for(ye=rt;ye<=Fe;ye++){const zt=B[ye]=ge?Gi(B[ye]):Ar(B[ye]);zt.key!=null&&lt.set(zt.key,ye)}let ut,Mt=0;const at=Fe-rt+1;let Gt=!1,Bt=0;const Fn=new Array(at);for(ye=0;ye<at;ye++)Fn[ye]=0;for(ye=Ge;ye<=Ne;ye++){const zt=P[ye];if(Mt>=at){je(zt,he,de,!0);continue}let Hn;if(zt.key!=null)Hn=lt.get(zt.key);else for(ut=rt;ut<=Fe;ut++)if(Fn[ut-rt]===0&&Gr(zt,B[ut])){Hn=ut;break}Hn===void 0?je(zt,he,de,!0):(Fn[Hn-rt]=ye+1,Hn>=Bt?Bt=Hn:Gt=!0,L(zt,B[Hn],G,null,he,de,_e,Ce,ge),Mt++)}const Fr=Gt?Ik(Fn):Cs;for(ut=Fr.length-1,ye=at-1;ye>=0;ye--){const zt=rt+ye,Hn=B[zt],tt=B[zt+1],ho=zt+1<qe?tt.el||tt.placeholder:ue;Fn[ye]===0?L(null,Hn,G,ho,he,de,_e,Ce,ge):Gt&&(ut<0||ye!==Fr[ut]?$e(Hn,G,ho,2):ut--)}}},$e=(P,B,G,ue,he=null)=>{const{el:de,type:_e,transition:Ce,children:ge,shapeFlag:ye}=P;if(ye&6){$e(P.component.subTree,B,G,ue);return}if(ye&128){P.suspense.move(B,G,ue);return}if(ye&64){_e.move(P,B,G,le);return}if(_e===nt){o(de,B,G);for(let Ne=0;Ne<ge.length;Ne++)$e(ge[Ne],B,G,ue);o(P.anchor,B,G);return}if(_e===od){F(P,B,G);return}if(ue!==2&&ye&1&&Ce)if(ue===0)Ce.beforeEnter(de),o(de,B,G),er(()=>Ce.enter(de),he);else{const{leave:Ne,delayLeave:Fe,afterLeave:Ge}=Ce,rt=()=>{P.ctx.isUnmounted?s(de):o(de,B,G)},lt=()=>{de._isLeaving&&de[gi](!0),Ne(de,()=>{rt(),Ge&&Ge()})};Fe?Fe(de,rt,lt):lt()}else o(de,B,G)},je=(P,B,G,ue=!1,he=!1)=>{const{type:de,props:_e,ref:Ce,children:ge,dynamicChildren:ye,shapeFlag:qe,patchFlag:Ne,dirs:Fe,cacheIndex:Ge}=P;if(Ne===-2&&(he=!1),Ce!=null&&(wi(),Gl(Ce,null,G,P,!0),xi()),Ge!=null&&(B.renderCache[Ge]=void 0),qe&256){B.ctx.deactivate(P);return}const rt=qe&1&&Fe,lt=!Ms(P);let ut;if(lt&&(ut=_e&&_e.onVnodeBeforeUnmount)&&Ur(ut,B,P),qe&6)ze(P.component,G,ue);else{if(qe&128){P.suspense.unmount(G,ue);return}rt&&To(P,null,B,"beforeUnmount"),qe&64?P.type.remove(P,B,G,le,ue):ye&&!ye.hasOnce&&(de!==nt||Ne>0&&Ne&64)?Me(ye,B,G,!1,!0):(de===nt&&Ne&384||!he&&qe&16)&&Me(ge,B,G),ue&&Qe(P)}(lt&&(ut=_e&&_e.onVnodeUnmounted)||rt)&&er(()=>{ut&&Ur(ut,B,P),rt&&To(P,null,B,"unmounted")},G)},Qe=P=>{const{type:B,el:G,anchor:ue,transition:he}=P;if(B===nt){Ye(G,ue);return}if(B===od){E(P);return}const de=()=>{s(G),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(P.shapeFlag&1&&he&&!he.persisted){const{leave:_e,delayLeave:Ce}=he,ge=()=>_e(G,de);Ce?Ce(P.el,de,ge):ge()}else de()},Ye=(P,B)=>{let G;for(;P!==B;)G=b(P),s(P),P=G;s(B)},ze=(P,B,G)=>{const{bum:ue,scope:he,job:de,subTree:_e,um:Ce,m:ge,a:ye}=P;Iv(ge),Iv(ye),ue&&Ic(ue),he.stop(),de&&(de.flags|=8,je(_e,P,B,G)),Ce&&er(Ce,B),er(()=>{P.isUnmounted=!0},B)},Me=(P,B,G,ue=!1,he=!1,de=0)=>{for(let _e=de;_e<P.length;_e++)je(P[_e],B,G,ue,he)},I=P=>{if(P.shapeFlag&6)return I(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const B=b(P.anchor||P.el),G=B&&B[ek];return G?b(G):B};let V=!1;const J=(P,B,G)=>{P==null?B._vnode&&je(B._vnode,null,null,!0):L(B._vnode||null,P,B,null,null,null,G),B._vnode=P,V||(V=!0,Av(),$y(),V=!1)},le={p:L,um:je,m:$e,r:Qe,mt:N,mc:te,pc:ie,pbc:K,n:I,o:e};return{render:J,hydrate:void 0,createApp:Ck(J)}}function id({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Co({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $k(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function cb(e,t,r=!1){const o=e.children,s=t.children;if(We(o)&&We(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Gi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&cb(f,d)),d.type===Hu&&d.patchFlag!==-1&&(d.el=f.el),d.type===sn&&!d.el&&(d.el=f.el)}}function Ik(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function ub(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ub(t)}function Iv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Dk=Symbol.for("v-scx"),zk=()=>wn(Dk);function Wh(e,t){return Du(e,null,t)}function Fk(e,t){return Du(e,null,{flush:"sync"})}function _t(e,t,r){return Du(e,t,r)}function Du(e,t,r=mt){const{immediate:o,deep:s,flush:c,once:f}=r,d=rn({},r),h=t&&o||!t&&c!=="post";let p;if(ca){if(c==="sync"){const x=zk();p=x.__watcherHandles||(x.__watcherHandles=[])}else if(!h){const x=()=>{};return x.stop=Kr,x.resume=Kr,x.pause=Kr,x}}const v=xn;d.call=(x,C,L)=>Rr(x,v,C,L);let m=!1;c==="post"?d.scheduler=x=>{er(x,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(x,C)=>{C?x():Dh(x)}),d.augmentJob=x=>{t&&(x.flags|=4),m&&(x.flags|=2,v&&(x.id=v.uid,x.i=v))};const b=Z_(e,t,d);return ca&&(p?p.push(b):h&&b()),b}function Hk(e,t,r){const o=this.proxy,s=Dt(e)?e.includes(".")?fb(o,e):()=>o[e]:e.bind(o,o);let c;Ke(t)?c=t:(c=t.handler,r=t);const f=Ma(this),d=Du(s,c.bind(o),r);return f(),d}function fb(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function zu(e,t,r=mt){const o=Ci(),s=or(t),c=ki(t),f=db(e,s),d=Ny((h,p)=>{let v,m=mt,b;return Fk(()=>{const x=e[s];Vn(v,x)&&(v=x,p())}),{get(){return h(),r.get?r.get(v):v},set(x){const C=r.set?r.set(x):x;if(!Vn(C,v)&&!(m!==mt&&Vn(x,m)))return;const L=o.vnode.props;L&&(t in L||s in L||c in L)&&(`onUpdate:${t}`in L||`onUpdate:${s}`in L||`onUpdate:${c}`in L)||(v=x,p()),o.emit(`update:${t}`,C),Vn(x,C)&&Vn(x,m)&&!Vn(C,b)&&p(),m=x,b=C}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||mt:d,done:!1}:{done:!0}}}},d}const db=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${or(t)}Modifiers`]||e[`${ki(t)}Modifiers`];function Bk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||mt;let s=r;const c=t.startsWith("update:"),f=c&&db(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Dt(v)?v.trim():v)),f.number&&(s=r.map(Ah)));let d,h=o[d=$c(t)]||o[d=$c(or(t))];!h&&c&&(h=o[d=$c(ki(t))]),h&&Rr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Rr(p,e,6,s)}}const Wk=new WeakMap;function hb(e,t,r=!1){const o=r?Wk:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ke(e)){const h=p=>{const v=hb(p,t,!0);v&&(d=!0,rn(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(xt(e)&&o.set(e,null),null):(We(c)?c.forEach(h=>f[h]=null):rn(f,c),xt(e)&&o.set(e,f),f)}function Fu(e,t){return!e||!Tu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,ki(t))||wt(e,t))}function Dv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:x,ctx:C,inheritAttrs:L}=e,M=Qc(e);let A,O;try{if(r.shapeFlag&4){const E=s||o,z=E;A=Ar(p.call(z,E,v,m,x,b,C)),O=d}else{const E=t;A=Ar(E.length>1?E(m,{attrs:d,slots:f,emit:h}):E(m,null)),O=t.props?d:jk(d)}}catch(E){Xl.length=0,Aa(E,e,1),A=Re(sn)}let F=A;if(O&&L!==!1){const E=Object.keys(O),{shapeFlag:z}=F;E.length&&z&7&&(c&&E.some(Th)&&(O=Uk(O,c)),F=oo(F,O,!1,!0))}return r.dirs&&(F=oo(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(r.dirs):r.dirs),r.transition&&sa(F,r.transition),A=F,Qc(M),A}function qk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(qs(s)){if(s.type!==sn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const jk=e=>{let t;for(const r in e)(r==="class"||r==="style"||Tu(r))&&((t||(t={}))[r]=e[r]);return t},Uk=(e,t)=>{const r={};for(const o in e)(!Th(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Vk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?zv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!Fu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?zv(o,f,p):!0:!!f;return!1}function zv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!Fu(r,c))return!0}return!1}function qh({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const pb=e=>e.__isSuspense;let Hd=0;const Gk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Kk(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Xk(e,t,r,o,s,f,d,h,p)}},hydrate:Yk,normalize:Zk},jh=Gk;function aa(e,t){const r=e.props&&e.props[t];Ke(r)&&r()}function Kk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=gb(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(aa(e,"onPending"),aa(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Ns(b,e.ssFallback)):b.resolve(!1,!0)}function Xk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:C,pendingBranch:L,isInFallback:M,isHydrating:A}=m;if(L)m.pendingBranch=b,Gr(L,b)?(h(L,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():M&&(A||(h(C,x,r,o,s,null,c,f,d),Ns(m,x)))):(m.pendingId=Hd++,A?(m.isHydrating=!1,m.activeBranch=L):p(L,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),M?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(C,x,r,o,s,null,c,f,d),Ns(m,x))):C&&Gr(C,b)?(h(C,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(C&&Gr(C,b))h(C,b,r,o,s,m,c,f,d),Ns(m,b);else if(aa(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Hd++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:O,pendingId:F}=m;O>0?setTimeout(()=>{m.pendingId===F&&m.fallback(x)},O):O===0&&m.fallback(x)}}function gb(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:x,n:C,o:{parentNode:L,remove:M}}=p;let A;const O=Qk(e);O&&t&&t.pendingBranch&&(A=t.pendingId,t.deps++);const F=e.props?cy(e.props.timeout):void 0,E=c,z={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Hd++,timeout:typeof F=="number"?F:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(U=!1,re=!1){const{vnode:te,activeBranch:ne,pendingBranch:K,pendingId:Y,effects:$,parentComponent:R,container:N,isInFallback:_}=z;let H=!1;z.isHydrating?z.isHydrating=!1:U||(H=ne&&K.transition&&K.transition.mode==="out-in",H&&(ne.transition.afterLeave=()=>{Y===z.pendingId&&(b(K,N,c===E?C(ne):c,0),Rd($),_&&te.ssFallback&&(te.ssFallback.el=null))}),ne&&(L(ne.el)===N&&(c=C(ne)),x(ne,R,z,!0),!H&&_&&te.ssFallback&&(te.ssFallback.el=null)),H||b(K,N,c,0)),Ns(z,K),z.pendingBranch=null,z.isInFallback=!1;let j=z.parent,ie=!1;for(;j;){if(j.pendingBranch){j.effects.push(...$),ie=!0;break}j=j.parent}!ie&&!H&&Rd($),z.effects=[],O&&t&&t.pendingBranch&&A===t.pendingId&&(t.deps--,t.deps===0&&!re&&t.resolve()),aa(te,"onResolve")},fallback(U){if(!z.pendingBranch)return;const{vnode:re,activeBranch:te,parentComponent:ne,container:K,namespace:Y}=z;aa(re,"onFallback");const $=C(te),R=()=>{z.isInFallback&&(m(null,U,K,$,ne,null,Y,d,h),Ns(z,U))},N=U.transition&&U.transition.mode==="out-in";N&&(te.transition.afterLeave=R),z.isInFallback=!0,x(te,ne,null,!0),N||R()},move(U,re,te){z.activeBranch&&b(z.activeBranch,U,re,te),z.container=U},next(){return z.activeBranch&&C(z.activeBranch)},registerDep(U,re,te){const ne=!!z.pendingBranch;ne&&z.deps++;const K=U.vnode.el;U.asyncDep.catch(Y=>{Aa(Y,U,0)}).then(Y=>{if(U.isUnmounted||z.isUnmounted||z.pendingId!==U.suspenseId)return;U.asyncResolved=!0;const{vnode:$}=U;Wd(U,Y),K&&($.el=K);const R=!K&&U.subTree.el;re(U,$,L(K||U.subTree.el),K?null:C(U.subTree),z,f,te),R&&($.placeholder=null,M(R)),qh(U,$.el),ne&&--z.deps===0&&z.resolve()})},unmount(U,re){z.isUnmounted=!0,z.activeBranch&&x(z.activeBranch,r,U,re),z.pendingBranch&&x(z.pendingBranch,r,U,re)}};return z}function Yk(e,t,r,o,s,c,f,d,h){const p=t.suspense=gb(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function Zk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Fv(o?r.default:r),e.ssFallback=o?Fv(r.fallback):Re(sn)}function Fv(e){let t;if(Ke(e)){const r=Bs&&e._c;r&&(e._d=!1,se()),e=e(),r&&(e._d=!0,t=Kn,vb())}return We(e)&&(e=qk(e)),e=Ar(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Jk(e,t){t&&t.pendingBranch?We(e)?t.effects.push(...e):t.effects.push(e):Rd(e)}function Ns(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,qh(o,s))}function Qk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Hu=Symbol.for("v-txt"),sn=Symbol.for("v-cmt"),od=Symbol.for("v-stc"),Xl=[];let Kn=null;function se(e=!1){Xl.push(Kn=e?null:[])}function vb(){Xl.pop(),Kn=Xl[Xl.length-1]||null}let Bs=1;function Ws(e,t=!1){Bs+=e,e<0&&Kn&&t&&(Kn.hasOnce=!0)}function mb(e){return e.dynamicChildren=Bs>0?Kn||Cs:null,vb(),Bs>0&&Kn&&Kn.push(e),e}function me(e,t,r,o,s,c){return mb(ee(e,t,r,o,s,c,!0))}function Je(e,t,r,o,s){return mb(Re(e,t,r,o,s,!0))}function qs(e){return e?e.__v_isVNode===!0:!1}function Gr(e,t){return e.type===t.type&&e.key===t.key}const yb=({key:e})=>e??null,Dc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Dt(e)||Ot(e)||Ke(e)?{i:pn,r:e,k:t,f:!!r}:e:null);function ee(e,t=null,r=null,o=0,s=null,c=e===nt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yb(t),ref:t&&Dc(t),scopeId:Ru,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:pn};return d?(Uh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Dt(r)?8:16),Bs>0&&!f&&Kn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Kn.push(h),h}const Re=eT;function eT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Ky)&&(e=sn),qs(e)){const d=oo(e,t,!0);return r&&Uh(d,r),Bs>0&&!c&&Kn&&(d.shapeFlag&6?Kn[Kn.indexOf(e)]=d:Kn.push(d)),d.patchFlag=-2,d}if(aT(e)&&(e=e.__vccOpts),t){t=bb(t);let{class:d,style:h}=t;d&&!Dt(d)&&(t.class=st(d)),xt(h)&&($h(h)&&!We(h)&&(h=rn({},h)),t.style=tn(h))}const f=Dt(e)?1:pb(e)?128:Hy(e)?64:xt(e)?4:Ke(e)?2:0;return ee(e,t,r,o,s,f,c,!0)}function bb(e){return e?$h(e)||rb(e)?rn({},e):e:null}function oo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?bi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&yb(p),ref:t&&t.ref?r&&c?We(c)?c.concat(Dc(t)):[c,Dc(t)]:Dc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&oo(e.ssContent),ssFallback:e.ssFallback&&oo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&sa(v,h.clone(v)),v}function ht(e=" ",t=0){return Re(Hu,null,e,t)}function Ue(e="",t=!1){return t?(se(),Je(sn,null,e)):Re(sn,null,e)}function Ar(e){return e==null||typeof e=="boolean"?Re(sn):We(e)?Re(nt,null,e.slice()):qs(e)?Gi(e):Re(Hu,null,String(e))}function Gi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:oo(e)}function Uh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(We(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Uh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!rb(t)?t._ctx=pn:s===3&&pn&&(pn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ke(t)?(t={default:t,_ctx:pn},r=32):(t=String(t),o&64?(r=16,t=[ht(t)]):r=8);e.children=t,e.shapeFlag|=r}function bi(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=st([t.class,o.class]));else if(s==="style")t.style=tn([t.style,o.style]);else if(Tu(s)){const c=t[s],f=o[s];f&&c!==f&&!(We(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Ur(e,t,r,o=null){Rr(e,t,7,[r,o])}const tT=Qy();let nT=0;function rT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||tT,c={uid:nT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new w_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ob(o,s),emitsOptions:hb(o,s),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:o.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:r,suspenseId:r?r.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 c.ctx={_:c},c.root=t?t.root:c,c.emit=Bk.bind(null,c),e.ce&&e.ce(c),c}let xn=null;const Ci=()=>xn||pn;let ru,Bd;{const e=Lu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};ru=t("__VUE_INSTANCE_SETTERS__",r=>xn=r),Bd=t("__VUE_SSR_SETTERS__",r=>ca=r)}const Ma=e=>{const t=xn;return ru(e),e.scope.on(),()=>{e.scope.off(),ru(t)}},Hv=()=>{xn&&xn.scope.off(),ru(null)};function wb(e){return e.vnode.shapeFlag&4}let ca=!1;function iT(e,t=!1,r=!1){t&&Bd(t);const{props:o,children:s}=e.vnode,c=wb(e);Ek(e,o,c,t),Nk(e,s,r||t);const f=c?oT(e,t):void 0;return t&&Bd(!1),f}function oT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mk);const{setup:o}=r;if(o){wi();const s=e.setupContext=o.length>1?Sb(e):null,c=Ma(e),f=Ea(o,e,0,[e.props,s]),d=oy(f);if(xi(),c(),(d||e.sp)&&!Ms(e)&&Vy(e),d){if(f.then(Hv,Hv),t)return f.then(h=>{Wd(e,h)}).catch(h=>{Aa(h,e,0)});e.asyncDep=f}else Wd(e,f)}else xb(e)}function Wd(e,t,r){Ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xt(t)&&(e.setupState=My(t)),xb(e)}function xb(e,t,r){const o=e.type;e.render||(e.render=o.render||Kr);{const s=Ma(e);wi();try{wk(e)}finally{xi(),s()}}}const sT={get(e,t){return bn(e,"get",""),e[t]}};function Sb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,sT),slots:e.slots,emit:e.emit,expose:t}}function Bu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(My(Ih(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Kl)return Kl[r](e)},has(t,r){return r in t||r in Kl}})):e.proxy}function lT(e,t=!0){return Ke(e)?e.displayName||e.name:e.name||t&&e.__name}function aT(e){return Ke(e)&&"__vccOpts"in e}const xe=(e,t)=>X_(e,t,ca);function Na(e,t,r){try{Ws(-1);const o=arguments.length;return o===2?xt(t)&&!We(t)?qs(t)?Re(e,null,[t]):Re(e,t):Re(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&qs(r)&&(r=[r]),Re(e,t,r))}finally{Ws(1)}}const cT="3.5.23";/**
14
- * @vue/runtime-dom v3.5.23
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/let qd;const Bv=typeof window<"u"&&window.trustedTypes;if(Bv)try{qd=Bv.createPolicy("vue",{createHTML:e=>e})}catch{}const _b=qd?e=>qd.createHTML(e):e=>e,uT="http://www.w3.org/2000/svg",fT="http://www.w3.org/1998/Math/MathML",hi=typeof document<"u"?document:null,Wv=hi&&hi.createElement("template"),dT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?hi.createElementNS(uT,e):t==="mathml"?hi.createElementNS(fT,e):r?hi.createElement(e,{is:r}):hi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>hi.createTextNode(e),createComment:e=>hi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Wv.innerHTML=_b(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Wv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Bi="transition",Rl="animation",ua=Symbol("_vtc"),kb={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},hT=rn({},By,kb),pT=e=>(e.displayName="Transition",e.props=hT,e),gT=pT((e,{slots:t})=>Na(rk,vT(e),t)),Eo=(e,t=[])=>{We(e)?e.forEach(r=>r(...t)):e&&e(...t)},qv=e=>e?We(e)?e.some(t=>t.length>1):e.length>1:!1;function vT(e){const t={};for(const $ in e)$ in kb||(t[$]=e[$]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,C=mT(s),L=C&&C[0],M=C&&C[1],{onBeforeEnter:A,onEnter:O,onEnterCancelled:F,onLeave:E,onLeaveCancelled:z,onBeforeAppear:U=A,onAppear:re=O,onAppearCancelled:te=F}=t,ne=($,R,N,_)=>{$._enterCancelled=_,Ao($,R?v:d),Ao($,R?p:f),N&&N()},K=($,R)=>{$._isLeaving=!1,Ao($,m),Ao($,x),Ao($,b),R&&R()},Y=$=>(R,N)=>{const _=$?re:O,H=()=>ne(R,$,N);Eo(_,[R,H]),jv(()=>{Ao(R,$?h:c),ci(R,$?v:d),qv(_)||Uv(R,o,L,H)})};return rn(t,{onBeforeEnter($){Eo(A,[$]),ci($,c),ci($,f)},onBeforeAppear($){Eo(U,[$]),ci($,h),ci($,p)},onEnter:Y(!1),onAppear:Y(!0),onLeave($,R){$._isLeaving=!0;const N=()=>K($,R);ci($,m),$._enterCancelled?(ci($,b),Kv($)):(Kv($),ci($,b)),jv(()=>{$._isLeaving&&(Ao($,m),ci($,x),qv(E)||Uv($,o,M,N))}),Eo(E,[$,N])},onEnterCancelled($){ne($,!1,void 0,!0),Eo(F,[$])},onAppearCancelled($){ne($,!0,void 0,!0),Eo(te,[$])},onLeaveCancelled($){K($),Eo(z,[$])}})}function mT(e){if(e==null)return null;if(xt(e))return[sd(e.enter),sd(e.leave)];{const t=sd(e);return[t,t]}}function sd(e){return cy(e)}function ci(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ua]||(e[ua]=new Set)).add(t)}function Ao(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ua];r&&(r.delete(t),r.size||(e[ua]=void 0))}function jv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let yT=0;function Uv(e,t,r,o){const s=e._endId=++yT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=bT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function bT(e,t){const r=window.getComputedStyle(e),o=C=>(r[C]||"").split(", "),s=o(`${Bi}Delay`),c=o(`${Bi}Duration`),f=Vv(s,c),d=o(`${Rl}Delay`),h=o(`${Rl}Duration`),p=Vv(d,h);let v=null,m=0,b=0;t===Bi?f>0&&(v=Bi,m=f,b=c.length):t===Rl?p>0&&(v=Rl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Bi:Rl:null,b=v?v===Bi?c.length:h.length:0);const x=v===Bi&&/\b(?:transform|all)(?:,|$)/.test(o(`${Bi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:x}}function Vv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Gv(r)+Gv(e[o])))}function Gv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Kv(e){return(e?e.ownerDocument:document).body.offsetHeight}function wT(e,t,r){const o=e[ua];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const iu=Symbol("_vod"),Tb=Symbol("_vsh"),Zi={name:"show",beforeMount(e,{value:t},{transition:r}){e[iu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Pl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Pl(e,!0),o.enter(e)):o.leave(e,()=>{Pl(e,!1)}):Pl(e,t))},beforeUnmount(e,{value:t}){Pl(e,t)}};function Pl(e,t){e.style.display=t?e[iu]:"none",e[Tb]=!t}const xT=Symbol(""),ST=/(?:^|;)\s*display\s*:/;function _T(e,t,r){const o=e.style,s=Dt(r);let c=!1;if(r&&!s){if(t)if(Dt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&zc(o,d,"")}else for(const f in t)r[f]==null&&zc(o,f,"");for(const f in r)f==="display"&&(c=!0),zc(o,f,r[f])}else if(s){if(t!==r){const f=o[xT];f&&(r+=";"+f),o.cssText=r,c=ST.test(r)}}else t&&e.removeAttribute("style");iu in e&&(e[iu]=c?o.display:"",e[Tb]&&(o.display="none"))}const Xv=/\s*!important$/;function zc(e,t,r){if(We(r))r.forEach(o=>zc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=kT(e,t);Xv.test(r)?e.setProperty(ki(o),r.replace(Xv,""),"important"):e[o]=r}}const Yv=["Webkit","Moz","ms"],ld={};function kT(e,t){const r=ld[t];if(r)return r;let o=or(t);if(o!=="filter"&&o in e)return ld[t]=o;o=Au(o);for(let s=0;s<Yv.length;s++){const c=Yv[s]+o;if(c in e)return ld[t]=c}return t}const Zv="http://www.w3.org/1999/xlink";function Jv(e,t,r,o,s,c=y_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Zv,t.slice(6,t.length)):e.setAttributeNS(Zv,t,r):r==null||c&&!uy(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Or(r)?String(r):r)}function Qv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?_b(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=uy(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function Ro(e,t,r,o){e.addEventListener(t,r,o)}function TT(e,t,r,o){e.removeEventListener(t,r,o)}const em=Symbol("_vei");function CT(e,t,r,o,s=null){const c=e[em]||(e[em]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=ET(t);if(o){const p=c[t]=MT(o,s);Ro(e,d,p,h)}else f&&(TT(e,d,f,h),c[t]=void 0)}}const tm=/(?:Once|Passive|Capture)$/;function ET(e){let t;if(tm.test(e)){t={};let o;for(;o=e.match(tm);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ki(e.slice(2)),t]}let ad=0;const AT=Promise.resolve(),LT=()=>ad||(AT.then(()=>ad=0),ad=Date.now());function MT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Rr(NT(o,r.value),t,5,[o])};return r.value=e,r.attached=LT(),r}function NT(e,t){if(We(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const nm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,OT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?wT(e,o,f):t==="style"?_T(e,r,o):Tu(t)?Th(t)||CT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):RT(e,t,o,f))?(Qv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Dt(o))?Qv(e,or(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Jv(e,t,o,f))};function RT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&nm(t)&&Ke(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return nm(t)&&Dt(r)?!1:t in e}const ou=e=>{const t=e.props["onUpdate:modelValue"]||!1;return We(t)?r=>Ic(t,r):t};function PT(e){e.target.composing=!0}function rm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Os=Symbol("_assign");function im(e,t,r){return t&&(e=e.trim()),r&&(e=Ah(e)),e}const $T={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Os]=ou(s);const c=o||s.props&&s.props.type==="number";Ro(e,t?"change":"input",f=>{f.target.composing||e[Os](im(e.value,r,c))}),(r||c)&&Ro(e,"change",()=>{e.value=im(e.value,r,c)}),t||(Ro(e,"compositionstart",PT),Ro(e,"compositionend",rm),Ro(e,"change",rm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Os]=ou(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Ah(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},Cb={deep:!0,created(e,t,r){e[Os]=ou(r),Ro(e,"change",()=>{const o=e._modelValue,s=IT(e),c=e.checked,f=e[Os];if(We(o)){const d=fy(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(Cu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Eb(e,c))})},mounted:om,beforeUpdate(e,t,r){e[Os]=ou(r),om(e,t,r)}};function om(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(We(t))s=fy(t,o.props.value)>-1;else if(Cu(t))s=t.has(o.props.value);else{if(t===r)return;s=Mu(t,Eb(e,!0))}e.checked!==s&&(e.checked=s)}function IT(e){return"_value"in e?e._value:e.value}function Eb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const DT=["ctrl","shift","alt","meta"],zT={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)=>DT.some(r=>e[`${r}Key`]&&!t.includes(r))},Fc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f<t.length;f++){const d=zT[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},FT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=ki(s.key);if(t.some(f=>f===c||FT[f]===c))return e(s)}))},HT=rn({patchProp:OT},dT);let sm;function BT(){return sm||(sm=Rk(HT))}const Ab=((...e)=>{const t=BT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=qT(o);if(!s)return;const c=t._component;!Ke(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,WT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function WT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function qT(e){return Dt(e)?document.querySelector(e):e}const Ei=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},jT={};function UT(e,t){const r=Ho("RouterView");return se(),Je(r)}const VT=Ei(jT,[["render",UT]]),GT=["top","right","bottom","left"],lm=["start","end"],am=GT.reduce((e,t)=>e.concat(t,t+"-"+lm[0],t+"-"+lm[1]),[]),fa=Math.min,No=Math.max,KT={left:"right",right:"left",bottom:"top",top:"bottom"},XT={start:"end",end:"start"};function Ud(e,t,r){return No(e,fa(t,r))}function Wo(e,t){return typeof e=="function"?e(t):e}function Jr(e){return e.split("-")[0]}function Nr(e){return e.split("-")[1]}function Lb(e){return e==="x"?"y":"x"}function Vh(e){return e==="y"?"height":"width"}function Oa(e){return["top","bottom"].includes(Jr(e))?"y":"x"}function Gh(e){return Lb(Oa(e))}function Mb(e,t,r){r===void 0&&(r=!1);const o=Nr(e),s=Gh(e),c=Vh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=lu(f)),[f,lu(f)]}function YT(e){const t=lu(e);return[su(e),t,su(t)]}function su(e){return e.replace(/start|end/g,t=>XT[t])}function ZT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function JT(e,t,r,o){const s=Nr(e);let c=ZT(Jr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(su)))),c}function lu(e){return e.replace(/left|right|bottom|top/g,t=>KT[t])}function QT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nb(e){return typeof e!="number"?QT(e):{top:e,right:e,bottom:e,left:e}}function Yl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function cm(e,t,r){let{reference:o,floating:s}=e;const c=Oa(t),f=Gh(t),d=Vh(f),h=Jr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:m};break;case"left":x={x:o.x-s.width,y:m};break;default:x={x:o.x,y:o.y}}switch(Nr(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const eC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=cm(p,o,h),b=o,x={},C=0;for(let L=0;L<d.length;L++){const{name:M,fn:A}=d[L],{x:O,y:F,data:E,reset:z}=await A({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=O??v,m=F??m,x={...x,[M]:{...x[M],...E}},z&&C<=50&&(C++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(p=z.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:v,y:m}=cm(p,b,h)),L=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:x}};async function Wu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=Wo(t,e),C=Nb(x),M=d[b?m==="floating"?"reference":"floating":m],A=Yl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(M)))==null||r?M:M.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),O=m==="floating"?{...f.floating,x:o,y:s}:f.reference,F=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),E=await(c.isElement==null?void 0:c.isElement(F))?await(c.getScale==null?void 0:c.getScale(F))||{x:1,y:1}:{x:1,y:1},z=Yl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:O,offsetParent:F,strategy:h}):O);return{top:(A.top-z.top+C.top)/E.y,bottom:(z.bottom-A.bottom+C.bottom)/E.y,left:(A.left-z.left+C.left)/E.x,right:(z.right-A.right+C.right)/E.x}}const tC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=Wo(e,t)||{};if(p==null)return{};const m=Nb(v),b={x:r,y:o},x=Gh(s),C=Vh(x),L=await f.getDimensions(p),M=x==="y",A=M?"top":"left",O=M?"bottom":"right",F=M?"clientHeight":"clientWidth",E=c.reference[C]+c.reference[x]-b[x]-c.floating[C],z=b[x]-c.reference[x],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let re=U?U[F]:0;(!re||!await(f.isElement==null?void 0:f.isElement(U)))&&(re=d.floating[F]||c.floating[C]);const te=E/2-z/2,ne=re/2-L[C]/2-1,K=fa(m[A],ne),Y=fa(m[O],ne),$=K,R=re-L[C]-Y,N=re/2-L[C]/2+te,_=Ud($,N,R),H=!h.arrow&&Nr(s)!=null&&N!==_&&c.reference[C]/2-(N<$?K:Y)-L[C]/2<0,j=H?N<$?N-$:N-R:0;return{[x]:b[x]+j,data:{[x]:_,centerOffset:N-_-j,...H&&{alignmentOffset:j}},reset:H}}});function nC(e,t,r){return(e?[...r.filter(s=>Nr(s)===e),...r.filter(s=>Nr(s)!==e)]:r.filter(s=>Jr(s)===s)).filter(s=>e?Nr(s)===e||(t?su(s)!==s:!1):!0)}const rC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=am,autoAlignment:x=!0,...C}=Wo(e,t),L=m!==void 0||b===am?nC(m||null,x,b):b,M=await Wu(t,C),A=((r=f.autoPlacement)==null?void 0:r.index)||0,O=L[A];if(O==null)return{};const F=Mb(O,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==O)return{reset:{placement:L[0]}};const E=[M[Jr(O)],M[F[0]],M[F[1]]],z=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:O,overflows:E}],U=L[A+1];if(U)return{data:{index:A+1,overflows:z},reset:{placement:U}};const re=z.map(K=>{const Y=Nr(K.placement);return[K.placement,Y&&v?K.overflows.slice(0,2).reduce(($,R)=>$+R,0):K.overflows[0],K.overflows]}).sort((K,Y)=>K[1]-Y[1]),ne=((s=re.filter(K=>K[2].slice(0,Nr(K[0])?2:3).every(Y=>Y<=0))[0])==null?void 0:s[0])||re[0][0];return ne!==d?{data:{index:A+1,overflows:z},reset:{placement:ne}}:{}}}},iC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:L=!0,...M}=Wo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const A=Jr(s),O=Jr(d)===d,F=await(h.isRTL==null?void 0:h.isRTL(p.floating)),E=b||(O||!L?[lu(d)]:YT(d));!b&&C!=="none"&&E.push(...JT(d,L,C,F));const z=[d,...E],U=await Wu(t,M),re=[];let te=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&re.push(U[A]),m){const $=Mb(s,f,F);re.push(U[$[0]],U[$[1]])}if(te=[...te,{placement:s,overflows:re}],!re.every($=>$<=0)){var ne,K;const $=(((ne=c.flip)==null?void 0:ne.index)||0)+1,R=z[$];if(R)return{data:{index:$,overflows:te},reset:{placement:R}};let N=(K=te.filter(_=>_.overflows[0]<=0).sort((_,H)=>_.overflows[1]-H.overflows[1])[0])==null?void 0:K.placement;if(!N)switch(x){case"bestFit":{var Y;const _=(Y=te.map(H=>[H.placement,H.overflows.filter(j=>j>0).reduce((j,ie)=>j+ie,0)]).sort((H,j)=>H[1]-j[1])[0])==null?void 0:Y[0];_&&(N=_);break}case"initialPlacement":N=d;break}if(s!==N)return{reset:{placement:N}}}return{}}}};async function oC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Jr(r),d=Nr(r),h=Oa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Wo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof C=="number"&&(x=d==="end"?C*-1:C),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const sC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await oC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},lC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:M=>{let{x:A,y:O}=M;return{x:A,y:O}}},...h}=Wo(e,t),p={x:r,y:o},v=await Wu(t,h),m=Oa(Jr(s)),b=Lb(m);let x=p[b],C=p[m];if(c){const M=b==="y"?"top":"left",A=b==="y"?"bottom":"right",O=x+v[M],F=x-v[A];x=Ud(O,x,F)}if(f){const M=m==="y"?"top":"left",A=m==="y"?"bottom":"right",O=C+v[M],F=C-v[A];C=Ud(O,C,F)}const L=d.fn({...t,[b]:x,[m]:C});return{...L,data:{x:L.x-r,y:L.y-o}}}}},aC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Wo(e,t),h=await Wu(t,d),p=Jr(r),v=Nr(r),m=Oa(r)==="y",{width:b,height:x}=o.floating;let C,L;p==="top"||p==="bottom"?(C=p,L=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(L=p,C=v==="end"?"top":"bottom");const M=x-h[C],A=b-h[L],O=!t.middlewareData.shift;let F=M,E=A;if(m){const U=b-h.left-h.right;E=v||O?fa(A,U):U}else{const U=x-h.top-h.bottom;F=v||O?fa(M,U):U}if(O&&!v){const U=No(h.left,0),re=No(h.right,0),te=No(h.top,0),ne=No(h.bottom,0);m?E=b-2*(U!==0||re!==0?U+re:No(h.left,h.right)):F=x-2*(te!==0||ne!==0?te+ne:No(h.top,h.bottom))}await f({...t,availableWidth:E,availableHeight:F});const z=await s.getDimensions(c.floating);return b!==z.width||x!==z.height?{reset:{rects:!0}}:{}}}};function fr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xr(e){return fr(e).getComputedStyle(e)}const um=Math.min,Zl=Math.max,au=Math.round;function Ob(e){const t=Xr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=au(r)!==s||au(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function so(e){return Pb(e)?(e.nodeName||"").toLowerCase():""}let Sc;function Rb(){if(Sc)return Sc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Sc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Sc):navigator.userAgent}function Yr(e){return e instanceof fr(e).HTMLElement}function eo(e){return e instanceof fr(e).Element}function Pb(e){return e instanceof fr(e).Node}function fm(e){return typeof ShadowRoot>"u"?!1:e instanceof fr(e).ShadowRoot||e instanceof ShadowRoot}function qu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function cC(e){return["table","td","th"].includes(so(e))}function Vd(e){const t=/firefox/i.test(Rb()),r=Xr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function $b(){return!/^((?!chrome|android).)*safari/i.test(Rb())}function Kh(e){return["html","body","#document"].includes(so(e))}function Ib(e){return eo(e)?e:e.contextElement}const Db={x:1,y:1};function Rs(e){const t=Ib(e);if(!Yr(t))return Db;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=Ob(t);let f=(c?au(r.width):r.width)/o,d=(c?au(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function da(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=Ib(e);let h=Db;t&&(o?eo(o)&&(h=Rs(o)):h=Rs(e));const p=d?fr(d):window,v=!$b()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,C=f.height/h.y;if(d){const L=fr(d),M=o&&eo(o)?fr(o):o;let A=L.frameElement;for(;A&&o&&M!==L;){const O=Rs(A),F=A.getBoundingClientRect(),E=getComputedStyle(A);F.x+=(A.clientLeft+parseFloat(E.paddingLeft))*O.x,F.y+=(A.clientTop+parseFloat(E.paddingTop))*O.y,m*=O.x,b*=O.y,x*=O.x,C*=O.y,m+=F.x,b+=F.y,A=fr(A).frameElement}}return{width:x,height:C,top:b,right:m+x,bottom:b+C,left:m,x:m,y:b}}function to(e){return((Pb(e)?e.ownerDocument:e.document)||window.document).documentElement}function ju(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zb(e){return da(to(e)).left+ju(e).scrollLeft}function ha(e){if(so(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fm(e)&&e.host||to(e);return fm(t)?t.host:t}function Fb(e){const t=ha(e);return Kh(t)?t.ownerDocument.body:Yr(t)&&qu(t)?t:Fb(t)}function cu(e,t){var r;t===void 0&&(t=[]);const o=Fb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=fr(o);return s?t.concat(c,c.visualViewport||[],qu(o)?o:[]):t.concat(o,cu(o))}function dm(e,t,r){return t==="viewport"?Yl((function(o,s){const c=fr(o),f=to(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=$b();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}})(e,r)):eo(t)?Yl((function(o,s){const c=da(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Yr(o)?Rs(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}})(t,r)):Yl((function(o){const s=to(o),c=ju(o),f=o.ownerDocument.body,d=Zl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Zl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+zb(o);const v=-c.scrollTop;return Xr(f).direction==="rtl"&&(p+=Zl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}})(to(e)))}function hm(e){return Yr(e)&&Xr(e).position!=="fixed"?e.offsetParent:null}function pm(e){const t=fr(e);let r=hm(e);for(;r&&cC(r)&&Xr(r).position==="static";)r=hm(r);return r&&(so(r)==="html"||so(r)==="body"&&Xr(r).position==="static"&&!Vd(r))?t:r||(function(o){let s=ha(o);for(;Yr(s)&&!Kh(s);){if(Vd(s))return s;s=ha(s)}return null})(e)||t}function uC(e,t,r){const o=Yr(t),s=to(t),c=da(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((so(t)!=="body"||qu(s))&&(f=ju(t)),Yr(t)){const h=da(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=zb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const fC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,v){const m=v.get(p);if(m)return m;let b=cu(p).filter((M=>eo(M)&&so(M)!=="body")),x=null;const C=Xr(p).position==="fixed";let L=C?ha(p):p;for(;eo(L)&&!Kh(L);){const M=Xr(L),A=Vd(L);(C?A||x:A||M.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=M:b=b.filter((O=>O!==L)),L=ha(L)}return v.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,v)=>{const m=dm(t,v,s);return p.top=Zl(m.top,p.top),p.right=um(m.right,p.right),p.bottom=um(m.bottom,p.bottom),p.left=Zl(m.left,p.left),p}),dm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Yr(r),c=to(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((so(r)!=="body"||qu(c))&&(f=ju(r)),Yr(r))){const p=da(r);d=Rs(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:eo,getDimensions:function(e){return Yr(e)?Ob(e):e.getBoundingClientRect()},getOffsetParent:pm,getDocumentElement:to,getScale:Rs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||pm,c=this.getDimensions;return{reference:uC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Xr(e).direction==="rtl"},dC=(e,t,r)=>{const o=new Map,s={platform:fC,...r},c={...s.platform,_c:o};return eC(e,t,{...s,platform:c})},no={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function pa(e,t){let r=no.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=no.themes[r.$extend]||{}:(r=null,o=no[t]):r=null;while(r);return o}function hC(e){const t=[e];let r=no.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=no.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function gm(e){const t=[e];let r=no.themes[e]||{};do r.$extend?(t.push(r.$extend),r=no.themes[r.$extend]||{}):r=null;while(r);return t}let ga=!1;if(typeof window<"u"){ga=!1;try{const e=Object.defineProperty({},"passive",{get(){ga=!0}});window.addEventListener("test",null,e)}catch{}}let Hb=!1;typeof window<"u"&&typeof navigator<"u"&&(Hb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Bb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),vm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},mm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function ym(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function cd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let Lo=null;const bm={};function wm(e){let t=bm[e];return t||(t=bm[e]=[]),t}let Gd=function(){};typeof window<"u"&&(Gd=window.Element);function ft(e){return function(t){return pa(t.theme,e)}}const ud="__floating-vue__popper",Wb=()=>ot({name:"VPopper",provide(){return{[ud]:{parentPopper:this}}},inject:{[ud]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>Bb.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,Gd,Boolean],default:ft("container")},boundary:{type:[String,Gd],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ud])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(sC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(rC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(lC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(iC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(tC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(aC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await dC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Lo&&this.instantMove&&Lo.instantMove&&Lo!==this.parentPopper){Lo.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Lo=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await cd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...cu(this.$_referenceNode),...cu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<nr.length;r++)t=nr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}nr.push(this),document.body.classList.add("v-popper--some-open");for(const t of gm(this.theme))wm(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await cd(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,ym(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of gm(this.theme)){const o=wm(r);ym(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Lo===this&&(Lo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await cd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,vm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],vm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,mm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],mm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ga?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Jl>=e.left&&Jl<=e.right&&Ql>=e.top&&Ql<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Jl-ji,o=Ql-Ui,s=t.left+t.width/2-ji+(t.top+t.height/2)-Ui+t.width+t.height,c=ji+r*s,f=Ui+o*s;return _c(ji,Ui,c,f,t.left,t.top,t.left,t.bottom)||_c(ji,Ui,c,f,t.left,t.top,t.right,t.top)||_c(ji,Ui,c,f,t.right,t.top,t.right,t.bottom)||_c(ji,Ui,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Hb){const e=ga?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>xm(t),e),document.addEventListener("touchend",t=>Sm(t,!0),e)}else window.addEventListener("mousedown",e=>xm(e),!0),window.addEventListener("click",e=>Sm(e,!1),!0);window.addEventListener("resize",vC)}function xm(e,t){for(let r=0;r<nr.length;r++){const o=nr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Sm(e,t){pC(e,t)}function pC(e,t){const r={};for(let o=nr.length-1;o>=0;o--){const s=nr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&_m(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&_m(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function _m(e,t,r){return r.closeAllPopover||r.closePopover&&t||gC(e,r)&&!t}function gC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function vC(){for(let e=0;e<nr.length;e++)nr[e].$_computePosition()}function km(){for(let e=0;e<nr.length;e++)nr[e].hide()}let ji=0,Ui=0,Jl=0,Ql=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{ji=Jl,Ui=Ql,Jl=e.clientX,Ql=e.clientY},ga?{passive:!0}:void 0);function _c(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const mC={extends:Wb()},Uu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function yC(e,t,r,o,s,c){return se(),me("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Sn(e.$slots,"default",v_(bb(e.slotData)))],2)}const bC=Uu(mC,[["render",yC]]);function wC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Hc;function Kd(){Kd.init||(Kd.init=!0,Hc=wC()!==-1)}var Vu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Kd(),Ct(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Hc&&this.$el.appendChild(e),e.data="about:blank",Hc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Hc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const xC=Fy();Dy("data-v-b329ee4c");const SC={class:"resize-observer",tabindex:"-1"};zy();const _C=xC((e,t,r,o,s,c)=>(se(),Je("div",SC)));Vu.render=_C;Vu.__scopeId="data-v-b329ee4c";Vu.__file="src/components/ResizeObserver.vue";const qb=(e="theme")=>({computed:{themeClass(){return hC(this[e])}}}),kC=ot({name:"VPopperContent",components:{ResizeObserver:Vu},mixins:[qb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),TC=["id","aria-hidden","tabindex","data-popper-placement"],CC={ref:"inner",class:"v-popper__inner"},EC=ee("div",{class:"v-popper__arrow-outer"},null,-1),AC=ee("div",{class:"v-popper__arrow-inner"},null,-1),LC=[EC,AC];function MC(e,t,r,o,s,c){const f=Ho("ResizeObserver");return se(),me("div",{id:e.popperId,ref:"popover",class:st(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:tn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=jd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[ee("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),ee("div",{class:"v-popper__wrapper",style:tn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ee("div",CC,[e.mounted?(se(),me(nt,{key:0},[ee("div",null,[Sn(e.$slots,"default")]),e.handleResize?(se(),Je(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ue("",!0)],64)):Ue("",!0)],512),ee("div",{ref:"arrow",class:"v-popper__arrow-container",style:tn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},LC,4)],4)],46,TC)}const jb=Uu(kC,[["render",MC]]),Ub={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Xd=function(){};typeof window<"u"&&(Xd=window.Element);const NC=ot({name:"VPopperWrapper",components:{Popper:bC,PopperContent:jb},mixins:[Ub,qb("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Xd,Boolean],default:void 0},boundary:{type:[String,Xd],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function OC(e,t,r,o,s,c){const f=Ho("PopperContent"),d=Ho("Popper");return se(),Je(d,bi({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:x,hide:C,handleResize:L,onResize:M,classes:A,result:O})=>[Sn(e.$slots,"default",{shown:p,show:x,hide:C}),Re(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":L,classes:A,result:O,onHide:C,onResize:M},{default:it(()=>[Sn(e.$slots,"popper",{shown:p,hide:C})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Xh=Uu(NC,[["render",OC]]);({...Xh});({...Xh});const RC={...Xh,name:"VTooltip",vPopperTheme:"tooltip"},PC=ot({name:"VTooltipDirective",components:{Popper:Wb(),PopperContent:jb},mixins:[Ub],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>pa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>pa(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),$C=["innerHTML"],IC=["textContent"];function DC(e,t,r,o,s,c){const f=Ho("PopperContent"),d=Ho("Popper");return se(),Je(d,bi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:x,handleResize:C,onResize:L,classes:M,result:A})=>[Re(f,{ref:"popperContent",class:st({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":C,classes:M,result:A,onHide:x,onResize:L},{default:it(()=>[e.html?(se(),me("div",{key:0,innerHTML:e.finalContent},null,8,$C)):(se(),me("div",{key:1,textContent:Ie(e.finalContent)},null,8,IC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const zC=Uu(PC,[["render",DC]]),Vb="v-popper--has-tooltip";function FC(e,t){let r=e.placement;if(!r&&t)for(const o of Bb)t[o]&&(r=o);return r||(r=pa(e.theme||"tooltip","placement")),r}function Gb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=FC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let fd,va,HC=0;function BC(){if(fd)return;va=Ve([]),fd=Ab({name:"VTooltipDirectiveApp",setup(){return{directives:va}},render(){return this.directives.map(t=>Na(zC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),fd.mount(e)}function Kb(e,t,r){BC();const o=Ve(Gb(e,t,r)),s=Ve(!1),c={id:HC++,options:o,shown:s};return va.value.push(c),e.classList&&e.classList.add(Vb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Yh(e){if(e.$_popper){const t=va.value.indexOf(e.$_popper.item);t!==-1&&va.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Vb)}function Tm(e,{value:t,modifiers:r}){const o=Gb(e,t,r);if(!o.content||pa(o.theme||"tooltip","disabled"))Yh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Kb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const WC={beforeMount:Tm,updated:Tm,beforeUnmount(e){Yh(e)}},qC=WC,Xb=RC,Yb={options:no};function Zh(e){return py()?(x_(e),!0):!1}const dd=new WeakMap,jC=(...e)=>{var t;const r=e[0],o=(t=Ci())==null?void 0:t.proxy;if(o==null&&!eb())throw new Error("injectLocal must be called in setup");return o&&dd.has(o)&&r in dd.get(o)?dd.get(o)[r]:wn(...e)},UC=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const VC=Object.prototype.toString,GC=e=>VC.call(e)==="[object Object]",uu=()=>{};function Zb(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const Jb=e=>e();function Qb(e,t={}){let r,o,s=uu;const c=h=>{clearTimeout(h),s(),s=uu};let f;return h=>{const p=Vt(e),v=Vt(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function KC(e=Jb,t={}){const{initialState:r="active"}=t,o=qo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Hs(o),pause:s,resume:c,eventFilter:f}}function Cm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function Em(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function XC(e){return Ci()}function hd(e){return Array.isArray(e)?e:[e]}function qo(...e){if(e.length!==1)return G_(...e);const t=e[0];return typeof t=="function"?Hs(Ny(()=>({get:t,set:uu}))):Ve(t)}function kc(e,t=200,r={}){return Zb(Qb(t,r),e)}function ew(e,t,r={}){const{eventFilter:o=Jb,...s}=r;return _t(e,Zb(o,t),s)}function tw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=KC(o,{initialState:s});return{stop:ew(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Jh(e,t=!0,r){XC()?fo(e,r):t?e():Ct(e)}function Yd(e,t=!1){function r(m,{flush:b="sync",deep:x=!1,timeout:C,throwOnTimeout:L}={}){let M=null;const O=[new Promise(F=>{M=_t(e,E=>{m(E)!==t&&(M?M():Ct(()=>M?.()),F(E))},{flush:b,deep:x,immediate:!0})})];return C!=null&&O.push(Cm(C,L).then(()=>Vt(e)).finally(()=>M?.())),Promise.race(O)}function o(m,b){if(!Ot(m))return r(E=>E===m,b);const{flush:x="sync",deep:C=!1,timeout:L,throwOnTimeout:M}=b??{};let A=null;const F=[new Promise(E=>{A=_t([e,m],([z,U])=>{t!==(z===U)&&(A?A():Ct(()=>A?.()),E(z))},{flush:x,deep:C,immediate:!0})})];return L!=null&&F.push(Cm(L,M).then(()=>Vt(e)).finally(()=>(A?.(),Vt(e)))),Promise.race(F)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(x=>{const C=Array.from(x);return C.includes(m)||C.includes(Vt(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let x=-1;return r(()=>(x+=1,x>=m),b)}return Array.isArray(Vt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Yd(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Yd(e,!t)}}}function Am(e){return Yd(e)}function YC(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Ot(e),c=nn(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Vt(r);return c.value=c.value===h?Vt(o):h,c.value}}return s?f:[c,f]}function Qh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return ew(e,t,{...c,eventFilter:Qb(o,{maxWait:s})})}function ZC(e,t,r){return _t(e,t,{...r,immediate:!0})}function JC(e,t,r){const o=_t(e,(...s)=>(Ct(()=>o()),t(...s)),r);return o}function QC(e,t,r){let o;Ot(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=uu}=o,h=nn(!s),p=f?nn(t):Ve(t);let v=0;return Wh(async m=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const C=await e(L=>{m(()=>{c&&(c.value=!1),x||L()})});b===v&&(p.value=C)}catch(C){d(C)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?xe(()=>(h.value=!0,p.value)):p}const Pr=UC?window:void 0;function fu(e){var t;const r=Vt(e);return(t=r?.$el)!=null?t:r}function lo(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=xe(()=>{const d=hd(Vt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=ZC(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>fu(p)))!=null?h:[Pr].filter(p=>p!=null),hd(Vt(s.value?e[1]:e[0])),hd(Z(s.value?e[2]:e[1])),Vt(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const m=GC(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(x=>p.map(C=>o(b,x,C,m)))))},{flush:"post"}),f=()=>{c(),r()};return Zh(r),f}function eE(){const e=nn(!1),t=Ci();return t&&fo(()=>{e.value=!0},t),e}function nw(e){const t=eE();return xe(()=>(t.value,!!e()))}function tE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function rw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Pr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=tE(t);return lo(s,c,v=>{v.repeat&&Vt(d)||h(v)&&r(v)},f)}function nE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Pr,once:c=!1}=t,f=nn(!1),d=xe(()=>o?1e3/Vt(o):null);let h=0,p=null;function v(x){if(!f.value||!s)return;h||(h=x);const C=x-h;if(d.value&&C<d.value){p=s.requestAnimationFrame(v);return}if(h=x,e({delta:C,timestamp:x}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),Zh(b),{isActive:Hs(f),pause:b,resume:m}}const rE=Symbol("vueuse-ssr-width");function iE(){const e=eb()?jC(rE,null):null;return typeof e=="number"?e:void 0}function iw(e,t={}){const{window:r=Pr,ssrWidth:o=iE()}=t,s=nw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=nn(typeof o=="number"),f=nn(),d=nn(!1),h=p=>{d.value=p.matches};return Wh(()=>{if(c.value){c.value=!s.value;const p=Vt(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),x=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let C=!!(b||x);return b&&C&&(C=o>=Em(b[1])),x&&C&&(C=o<=Em(x[1])),m?!C:C});return}s.value&&(f.value=r.matchMedia(Vt(e)),d.value=f.value.matches)}),lo(f,"change",h,{passive:!0}),xe(()=>d.value)}const Tc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cc="__vueuse_ssr_handlers__",oE=sE();function sE(){return Cc in Tc||(Tc[Cc]=Tc[Cc]||{}),Tc[Cc]}function ow(e,t){return oE[e]||t}function lE(e){return iw("(prefers-color-scheme: dark)",e)}function aE(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const cE={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Lm="vueuse-storage";function sw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Pr,eventFilter:b,onError:x=Y=>{console.error(Y)},initOnMounted:C}=o,L=(v?nn:Ve)(typeof t=="function"?t():t),M=xe(()=>Vt(e));if(!r)try{r=ow("getDefaultStorage",()=>{var Y;return(Y=Pr)==null?void 0:Y.localStorage})()}catch(Y){x(Y)}if(!r)return L;const A=Vt(t),O=aE(A),F=(s=o.serializer)!=null?s:cE[O],{pause:E,resume:z}=tw(L,()=>re(L.value),{flush:c,deep:f,eventFilter:b});_t(M,()=>ne(),{flush:c}),m&&d&&Jh(()=>{r instanceof Storage?lo(m,"storage",ne,{passive:!0}):lo(m,Lm,K),C&&ne()}),C||ne();function U(Y,$){if(m){const R={key:M.value,oldValue:Y,newValue:$,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",R):new CustomEvent(Lm,{detail:R}))}}function re(Y){try{const $=r.getItem(M.value);if(Y==null)U($,null),r.removeItem(M.value);else{const R=F.write(Y);$!==R&&(r.setItem(M.value,R),U($,R))}}catch($){x($)}}function te(Y){const $=Y?Y.newValue:r.getItem(M.value);if($==null)return h&&A!=null&&r.setItem(M.value,F.write(A)),A;if(!Y&&p){const R=F.read($);return typeof p=="function"?p(R,A):O==="object"&&!Array.isArray(R)?{...A,...R}:R}else return typeof $!="string"?$:F.read($)}function ne(Y){if(!(Y&&Y.storageArea!==r)){if(Y&&Y.key==null){L.value=A;return}if(!(Y&&Y.key!==M.value)){E();try{Y?.newValue!==F.write(L.value)&&(L.value=te(Y))}catch($){x($)}finally{Y?Ct(z):z()}}}}function K(Y){ne(Y.detail)}return L}const uE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function fE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Pr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=lE({window:s}),x=xe(()=>b.value?"dark":"light"),C=h||(f==null?qo(o):sw(f,o,c,{window:s,listenToStorageChanges:d})),L=xe(()=>C.value==="auto"?x.value:C.value),M=ow("updateHTMLAttrs",(E,z,U)=>{const re=typeof E=="string"?s?.document.querySelector(E):fu(E);if(!re)return;const te=new Set,ne=new Set;let K=null;if(z==="class"){const $=U.split(/\s/g);Object.values(m).flatMap(R=>(R||"").split(/\s/g)).filter(Boolean).forEach(R=>{$.includes(R)?te.add(R):ne.add(R)})}else K={key:z,value:U};if(te.size===0&&ne.size===0&&K===null)return;let Y;v&&(Y=s.document.createElement("style"),Y.appendChild(document.createTextNode(uE)),s.document.head.appendChild(Y));for(const $ of te)re.classList.add($);for(const $ of ne)re.classList.remove($);K&&re.setAttribute(K.key,K.value),v&&(s.getComputedStyle(Y).opacity,document.head.removeChild(Y))});function A(E){var z;M(t,r,(z=m[E])!=null?z:E)}function O(E){e.onChanged?e.onChanged(E,A):A(E)}_t(L,O,{flush:"post",immediate:!0}),Jh(()=>O(L.value));const F=xe({get(){return p?C.value:L.value},set(E){C.value=E}});return Object.assign(F,{store:C,system:x,state:L})}function dE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=fE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=xe(()=>o.system.value);return xe({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function lw(e,t,r={}){const{window:o=Pr,...s}=r;let c;const f=nw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=xe(()=>{const m=Vt(e);return Array.isArray(m)?m.map(b=>fu(b)):[fu(m)]}),p=_t(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Zh(v),{isSupported:f,stop:v}}function Gu(e,t,r={}){const{window:o=Pr}=r;return sw(e,t,o?.localStorage,r)}function hE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Pr}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const F=d.location.hash||"",E=F.indexOf("?");return E>0?F.slice(E):""}else return(d.location.hash||"").replace(/^#/,"")}function v(F){const E=F.toString();if(e==="history")return`${E?`?${E}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${E?`#${E}`:""}`;const z=d.location.hash||"#",U=z.indexOf("?");return U>0?`${d.location.search||""}${z.slice(0,U)}${E?`?${E}`:""}`:`${d.location.search||""}${z}${E?`?${E}`:""}`}function m(){return new URLSearchParams(p())}function b(F){const E=new Set(Object.keys(h));for(const z of F.keys()){const U=F.getAll(z);h[z]=U.length>1?U:F.get(z)||"",E.delete(z)}Array.from(E).forEach(z=>delete h[z])}const{pause:x,resume:C}=tw(h,()=>{const F=new URLSearchParams("");Object.keys(h).forEach(E=>{const z=h[E];Array.isArray(z)?z.forEach(U=>F.append(E,U)):o&&z==null||s&&!z?F.delete(E):F.set(E,z)}),L(F,!1)},{deep:!0});function L(F,E){x(),E&&b(F),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(F)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(F)),C()}function M(){c&&L(m(),!0)}const A={passive:!0};lo(d,"popstate",M,A),e!=="history"&&lo(d,"hashchange",M,A);const O=m();return O.keys().next().value?b(O):Object.assign(h,r),h}function aw(e={}){const{window:t=Pr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=nn(r),h=nn(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:x}=t.visualViewport;d.value=Math.round(m*x),h.value=Math.round(b*x)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Jh(p);const v={passive:!0};if(lo("resize",p,v),t&&f==="visual"&&t.visualViewport&&lo(t.visualViewport,"resize",p,v),s){const m=iw("(orientation: portrait)");_t(m,()=>p())}return{width:d,height:h}}const Mm={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=yk(),c=Ve([]),f=xe(()=>c.value.reduce((I,V)=>(I[~~V.id]=V)&&I,{})),d=xe(()=>c.value.length),h=Ve(null),p=Ve(!1),v=Ve({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ve({splitter:null,timeoutId:null}),b=xe(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),x=()=>{document.addEventListener("mousemove",M,{passive:!1}),document.addEventListener("mouseup",A),"ontouchstart"in window&&(document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",A))},C=()=>{document.removeEventListener("mousemove",M,{passive:!1}),document.removeEventListener("mouseup",A),"ontouchstart"in window&&(document.removeEventListener("touchmove",M,{passive:!1}),document.removeEventListener("touchend",A))},L=(I,V)=>{const J=I.target.closest(".splitpanes__splitter");if(J){const{left:le,top:oe}=J.getBoundingClientRect(),{clientX:P,clientY:B}="ontouchstart"in window&&I.touches?I.touches[0]:I;v.value.cursorOffset=o.horizontal?B-oe:P-le}x(),v.value.mouseDown=!0,v.value.activeSplitter=V},M=I=>{v.value.mouseDown&&(I.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{re(z(I)),ze("resize",{event:I},!0)}))},A=I=>{v.value.dragging&&(window.getSelection().removeAllRanges(),ze("resized",{event:I},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},O=(I,V)=>{"ontouchstart"in window&&(I.preventDefault(),m.value.splitter===V?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,F(I,V),m.value.splitter=null):(m.value.splitter=V,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500))),v.value.dragging||ze("splitter-click",{event:I,index:V},!0)},F=(I,V)=>{if(ze("splitter-dblclick",{event:I,index:V},!0),o.maximizePanes){let J=0;c.value=c.value.map((le,oe)=>(le.size=oe===V?le.max:le.min,oe!==V&&(J+=le.min),le)),c.value[V].size-=J,ze("pane-maximize",{event:I,index:V,pane:c.value[V]}),ze("resized",{event:I,index:V},!0)}},E=(I,V)=>{ze("pane-click",{event:I,index:f.value[V].index,pane:f.value[V]})},z=I=>{const V=h.value.getBoundingClientRect(),{clientX:J,clientY:le}="ontouchstart"in window&&I.touches?I.touches[0]:I;return{x:J-(o.horizontal?0:v.value.cursorOffset)-V.left,y:le-(o.horizontal?v.value.cursorOffset:0)-V.top}},U=I=>{I=I[o.horizontal?"y":"x"];const V=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(I=V-I),I*100/V},re=I=>{const V=v.value.activeSplitter;let J={prevPanesSize:ne(V),nextPanesSize:K(V),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:J.prevPanesSize),oe=100-(o.pushOtherPanes?0:J.nextPanesSize),P=Math.max(Math.min(U(I),oe),le);let B=[V,V+1],G=c.value[B[0]]||null,ue=c.value[B[1]]||null;const he=G.max<100&&P>=G.max+J.prevPanesSize,de=ue.max<100&&P<=100-(ue.max+K(V+1));if(he||de){he?(G.size=G.max,ue.size=Math.max(100-G.max-J.prevPanesSize-J.nextPanesSize,0)):(G.size=Math.max(100-ue.max-J.prevPanesSize-K(V+1),0),ue.size=ue.max);return}if(o.pushOtherPanes){const _e=te(J,P);if(!_e)return;({sums:J,panesToResize:B}=_e),G=c.value[B[0]]||null,ue=c.value[B[1]]||null}G!==null&&(G.size=Math.min(Math.max(P-J.prevPanesSize-J.prevReachedMinPanes,G.min),G.max)),ue!==null&&(ue.size=Math.min(Math.max(100-P-J.nextPanesSize-J.nextReachedMinPanes,ue.min),ue.max))},te=(I,V)=>{const J=v.value.activeSplitter,le=[J,J+1];return V<I.prevPanesSize+c.value[le[0]].min&&(le[0]=Y(J).index,I.prevReachedMinPanes=0,le[0]<J&&c.value.forEach((oe,P)=>{P>le[0]&&P<=J&&(oe.size=oe.min,I.prevReachedMinPanes+=oe.min)}),I.prevPanesSize=ne(le[0]),le[0]===void 0)?(I.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((oe,P)=>{P>0&&P<=J&&(oe.size=oe.min,I.prevReachedMinPanes+=oe.min)}),c.value[le[1]].size=100-I.prevReachedMinPanes-c.value[0].min-I.prevPanesSize-I.nextPanesSize,null):V>100-I.nextPanesSize-c.value[le[1]].min&&(le[1]=$(J).index,I.nextReachedMinPanes=0,le[1]>J+1&&c.value.forEach((oe,P)=>{P>J&&P<le[1]&&(oe.size=oe.min,I.nextReachedMinPanes+=oe.min)}),I.nextPanesSize=K(le[1]-1),le[1]===void 0)?(I.nextReachedMinPanes=0,c.value.forEach((oe,P)=>{P<d.value-1&&P>=J+1&&(oe.size=oe.min,I.nextReachedMinPanes+=oe.min)}),c.value[le[0]].size=100-I.prevPanesSize-K(le[0]-1),null):{sums:I,panesToResize:le}},ne=I=>c.value.reduce((V,J,le)=>V+(le<I?J.size:0),0),K=I=>c.value.reduce((V,J,le)=>V+(le>I+1?J.size:0),0),Y=I=>[...c.value].reverse().find(V=>V.index<I&&V.size>V.min)||{},$=I=>c.value.find(V=>V.index>I+1&&V.size>V.min)||{},R=()=>{var I;const V=Array.from(((I=h.value)==null?void 0:I.children)||[]);for(const J of V){const le=J.classList.contains("splitpanes__pane"),oe=J.classList.contains("splitpanes__splitter");!le&&!oe&&(J.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},N=(I,V,J=!1)=>{const le=I-1,oe=document.createElement("div");oe.classList.add("splitpanes__splitter"),J||(oe.onmousedown=P=>L(P,le),typeof window<"u"&&"ontouchstart"in window&&(oe.ontouchstart=P=>L(P,le)),oe.onclick=P=>O(P,le+1)),oe.ondblclick=P=>F(P,le+1),V.parentNode.insertBefore(oe,V)},_=I=>{I.onmousedown=void 0,I.onclick=void 0,I.ondblclick=void 0,I.remove()},H=()=>{var I;const V=Array.from(((I=h.value)==null?void 0:I.children)||[]);for(const le of V)le.className.includes("splitpanes__splitter")&&_(le);let J=0;for(const le of V)le.className.includes("splitpanes__pane")&&(!J&&o.firstSplitter?N(J,le,!0):J&&N(J,le),J++)},j=({uid:I,...V})=>{const J=f.value[I];for(const[le,oe]of Object.entries(V))J[le]=oe},ie=I=>{var V;let J=-1;Array.from(((V=h.value)==null?void 0:V.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&J++,le.isSameNode(I.el))),c.value.splice(J,0,{...I,index:J}),c.value.forEach((le,oe)=>le.index=oe),p.value&&Ct(()=>{H(),Se({addedPane:c.value[J]}),ze("pane-add",{pane:c.value[J]})})},ve=I=>{const V=c.value.findIndex(le=>le.id===I);c.value[V].el=null;const J=c.value.splice(V,1)[0];c.value.forEach((le,oe)=>le.index=oe),Ct(()=>{H(),ze("pane-remove",{pane:J}),Se({removedPane:{...J}})})},Se=(I={})=>{!I.addedPane&&!I.removedPane?je():c.value.some(V=>V.givenSize!==null||V.min||V.max<100)?Qe(I):$e(),p.value&&ze("resized")},$e=()=>{const I=100/d.value;let V=0;const J=[],le=[];for(const oe of c.value)oe.size=Math.max(Math.min(I,oe.max),oe.min),V-=oe.size,oe.size>=oe.max&&J.push(oe.id),oe.size<=oe.min&&le.push(oe.id);V>.1&&Ye(V,J,le)},je=()=>{let I=100;const V=[],J=[];let le=0;for(const P of c.value)I-=P.size,P.givenSize!==null&&le++,P.size>=P.max&&V.push(P.id),P.size<=P.min&&J.push(P.id);let oe=100;if(I>.1){for(const P of c.value)P.givenSize===null&&(P.size=Math.max(Math.min(I/(d.value-le),P.max),P.min)),oe-=P.size;oe>.1&&Ye(oe,V,J)}},Qe=({addedPane:I,removedPane:V}={})=>{let J=100/d.value,le=0;const oe=[],P=[];(I?.givenSize??null)!==null&&(J=(100-I.givenSize)/(d.value-1));for(const B of c.value)le-=B.size,B.size>=B.max&&oe.push(B.id),B.size<=B.min&&P.push(B.id);if(!(Math.abs(le)<.1)){for(const B of c.value)I?.givenSize!==null&&I?.id===B.id||(B.size=Math.max(Math.min(J,B.max),B.min)),le-=B.size,B.size>=B.max&&oe.push(B.id),B.size<=B.min&&P.push(B.id);le>.1&&Ye(le,oe,P)}},Ye=(I,V,J)=>{let le;I>0?le=I/(d.value-V.length):le=I/(d.value-J.length),c.value.forEach((oe,P)=>{if(I>0&&!V.includes(oe.id)){const B=Math.max(Math.min(oe.size+le,oe.max),oe.min),G=B-oe.size;I-=G,oe.size=B}else if(!J.includes(oe.id)){const B=Math.max(Math.min(oe.size+le,oe.max),oe.min),G=B-oe.size;I-=G,oe.size=B}}),Math.abs(I)>.1&&Ct(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},ze=(I,V=void 0,J=!1)=>{const le=V?.index??v.value.activeSplitter??null;r(I,{...V,...le!==null&&{index:le},...J&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(oe=>({min:oe.min,max:oe.max,size:oe.size}))})};_t(()=>o.firstSplitter,()=>H()),fo(()=>{R(),H(),Se(),ze("ready"),p.value=!0}),La(()=>p.value=!1);const Me=()=>{var I;return Na("div",{ref:h,class:b.value},(I=s.default)==null?void 0:I.call(s))};return Er("panes",c),Er("indexedPanes",f),Er("horizontal",xe(()=>o.horizontal)),Er("requestUpdate",j),Er("onPaneAdd",ie),Er("onPaneRemove",ve),Er("onPaneClick",E),(I,V)=>(se(),Je($d(Me)))}},Ec={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=wn("requestUpdate"),s=wn("onPaneAdd"),c=wn("horizontal"),f=wn("onPaneRemove"),d=wn("onPaneClick"),h=(t=Ci())==null?void 0:t.uid,p=wn("indexedPanes"),v=xe(()=>p.value[h]),m=Ve(null),b=xe(()=>{const M=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(M,C.value),x.value)}),x=xe(()=>{const M=parseFloat(r.minSize);return isNaN(M)?0:M}),C=xe(()=>{const M=parseFloat(r.maxSize);return isNaN(M)?100:M}),L=xe(()=>{var M;return`${c.value?"height":"width"}: ${(M=v.value)==null?void 0:M.size}%`});return _t(()=>b.value,M=>o({uid:h,size:M})),_t(()=>x.value,M=>o({uid:h,min:M})),_t(()=>C.value,M=>o({uid:h,max:M})),fo(()=>{s({id:h,el:m.value,min:x.value,max:C.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),La(()=>f(h)),(M,A)=>(se(),me("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:A[0]||(A[0]=O=>Z(d)(O,M._.uid)),style:tn(L.value)},[Sn(M.$slots,"default")],4))}},tr=Ve([414,896]);function cw(e){return e!=null}function ep(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const pE=/^[A-Za-z]:\//;function gE(e=""){return e&&e.replace(/\\/g,"/").replace(pE,t=>t.toUpperCase())}const vE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function mE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const uw=function(...e){e=e.map(o=>gE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:mE();!s||s.length===0||(t=`${s}/${t}`,r=Nm(s))}return t=yE(t,!r),r&&!Nm(t)?`/${t}`:t.length>0?t:"."};function yE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Nm=function(e){return vE.test(e)};var bE=44,Om="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wE=new Uint8Array(64),fw=new Uint8Array(128);for(let e=0;e<Om.length;e++){const t=Om.charCodeAt(e);wE[e]=t,fw[t]=e}function $l(e,t){let r=0,o=0,s=0;do{const f=e.next();s=fw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Rm(e,t){return e.pos>=t?!1:e.peek()!==bE}var xE=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function SE(e){const{length:t}=e,r=new xE(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let x;s=$l(r,s),s<b&&(m=!1),b=s,Rm(r,p)?(c=$l(r,c),f=$l(r,f),d=$l(r,d),Rm(r,p)?(h=$l(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}m||_E(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function _E(e){e.sort(kE)}function kE(e,t){return e[0]-t[0]}var Ku=0,TE=1,CE=2,EE=3,AE=4,du=!1;function LE(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Ku]-t;if(c===0)return du=!0,s;c<0?r=s+1:o=s-1}return du=!1,r-1}function ME(e,t,r){for(let o=r+1;o<e.length&&e[o][Ku]===t;r=o++);return r}function NE(e,t,r){for(let o=r-1;o>=0&&e[o][Ku]===t;r=o--);return r}function OE(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return du=f!==-1&&e[f][Ku]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=LE(e,t,d,h)}var RE="`line` must be greater than 0 (lines start at line 1)",PE="`column` must be greater than or equal to 0 (columns start at column 0)",Pm=-1,$E=1;function IE(e){var t;return(t=e)._decoded||(t._decoded=SE(e._encoded))}function DE(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(RE);if(o<0)throw new Error(PE);const c=IE(e);if(r>=c.length)return Ac(null,null,null,null);const f=c[r],d=zE(f,e._decodedMemo,r,o,s||$E);if(d===-1)return Ac(null,null,null,null);const h=f[d];if(h.length===1)return Ac(null,null,null,null);const{names:p,resolvedSources:v}=e;return Ac(v[h[TE]],h[CE]+1,h[EE],h.length===5?p[h[AE]]:null)}function Ac(e,t,r,o){return{source:e,line:t,column:r,name:o}}function zE(e,t,r,o,s){let c=OE(e,o,t,r);return du?c=(s===Pm?ME:NE)(e,o,c):s===Pm&&c++,c===-1||c===e.length?-1:c}const dw=/^\s*at .*(?:\S:\d+|\(native\))/m,FE=/^(?:eval@)?(?:\[native code\])?$/,HE=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function hw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function BE(e){let t=e.trim();if(FE.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=hw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function WE(e){let t=e.trim();if(!dw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=hw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:uw(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function qE(e,t={}){const{ignoreStackEntries:r=HE}=t;return(dw.test(e)?UE(e):jE(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return $m(r,s.file)?null:s;const d=new VE(f,s.file),h=KE(d,s);if(!h)return s;const{line:p,column:v,source:m,name:b}=h;let x=m||s.file;return x.match(/\/\w:\//)&&(x=x.slice(1)),$m(r,x)?null:p!=null&&v!=null?{line:p,column:v,file:x,method:b||s.method}:s}).filter(s=>s!=null)}function $m(e,t){return e.some(r=>t.match(r))}function jE(e){return e.split(`
18
- `).map(t=>BE(t)).filter(cw)}function UE(e){return e.split(`
19
- `).map(t=>WE(t)).filter(cw)}class VE{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=GE(),this.url=r,this.resolvedSources=(c||[]).map(f=>uw(f||"",r))}}function GE(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function KE(e,t){const r=DE(e,t);return r.column==null?null:r}const XE=/^[A-Za-z]:\//;function YE(e=""){return e&&e.replace(/\\/g,"/").replace(XE,t=>t.toUpperCase())}const ZE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Im=/^\/([A-Za-z]:)?$/;function JE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Dm=function(...e){e=e.map(o=>YE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:JE();!s||s.length===0||(t=`${s}/${t}`,r=zm(s))}return t=QE(t,!r),r&&!zm(t)?`/${t}`:t.length>0?t:"."};function QE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const zm=function(e){return ZE.test(e)},pw=function(e,t){const r=Dm(e).replace(Im,"$1").split("/"),o=Dm(t).replace(Im,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function eA(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function gw(e,t,r,o){const s=pw(t,e),c={id:tA(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function tA(e,t){return eA(`${e}${t||""}`)}function js(e){return e.type==="test"}function vw(e){const t=[],r=ep(e);for(const o of r)if(js(o))t.push(o);else for(const s of o.tasks)if(js(s))t.push(s);else{const c=vw(s);for(const f of c)t.push(f)}return t}function tp(e=[]){return ep(e).flatMap(t=>js(t)?[t]:[t,...tp(t.tasks)])}function nA(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const pd="q",Fm="s",rA=6e4;function mw(e){return e}const iA=mw,{clearTimeout:Hm,setTimeout:oA}=globalThis,sA=Math.random.bind(Math);function lA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=mw,deserialize:d=iA,resolver:h,bind:p="rpc",timeout:v=rA}=t,m=new Map;let b,x=!1;const C=new Proxy({},{get(O,F){if(F==="$functions")return e;if(F==="$close")return L;if(F==="$rejectPendingCalls")return M;if(F==="$closed")return x;if(F==="then"&&!c.includes("then")&&!("then"in e))return;const E=async(...U)=>{await r(f({m:F,a:U,t:pd}))};if(c.includes(F))return E.asEvent=E,E;const z=async(...U)=>{if(x)throw new Error(`[birpc] rpc is closed, cannot call "${F}"`);if(b)try{await b}finally{b=void 0}let{promise:re,resolve:te,reject:ne}=aA();const K=uA();let Y;const $={m:F,a:U,i:K,t:pd};async function R(N=$){return v>=0&&(Y=oA(()=>{try{if(t.onTimeoutError?.(F,U)!==!0)throw new Error(`[birpc] timeout on calling "${F}"`)}catch(_){ne(_)}m.delete(K)},v),typeof Y=="object"&&(Y=Y.unref?.())),m.set(K,{resolve:te,reject:ne,timeoutId:Y,method:F}),await r(f(N)),re}try{t.onRequest?await t.onRequest($,R,te):await R()}catch(N){if(Hm(Y),m.delete(K),t.onGeneralError?.(N)!==!0)throw N;return}return re};return z.asEvent=E,z}});function L(O){x=!0,m.forEach(({reject:F,method:E})=>{const z=new Error(`[birpc] rpc is closed, cannot call "${E}"`);if(O)return O.cause??=z,F(O);F(z)}),m.clear(),s(A)}function M(O){const E=Array.from(m.values()).map(({method:z,reject:U})=>O?O({method:z,reject:U}):U(new Error(`[birpc]: rejected pending call "${z}".`)));return m.clear(),E}async function A(O,...F){let E;try{E=d(O)}catch(z){if(t.onGeneralError?.(z)!==!0)throw z;return}if(E.t===pd){const{m:z,a:U}=E;let re,te;const ne=await(h?h(z,e[z]):e[z]);if(!ne)te=new Error(`[birpc] function "${z}" not found`);else try{re=await ne.apply(p==="rpc"?C:e,U)}catch(K){te=K}if(E.i){if(te&&t.onError&&t.onError(te,z,U),te&&t.onFunctionError&&t.onFunctionError(te,z,U)===!0)return;if(!te)try{await r(f({t:Fm,i:E.i,r:re}),...F);return}catch(K){if(te=K,t.onGeneralError?.(K,z,U)!==!0)throw K}try{await r(f({t:Fm,i:E.i,e:te}),...F)}catch(K){if(t.onGeneralError?.(K,z,U)!==!0)throw K}}}else{const{i:z,r:U,e:re}=E,te=m.get(z);te&&(Hm(te.timeoutId),re?te.reject(re):te.resolve(U)),m.delete(z)}}return b=o(A),C}function aA(){let e,t;return{promise:new Promise((o,s)=>{e=o,t=s}),resolve:e,reject:t}}const cA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function uA(e=21){let t="",r=e;for(;r--;)t+=cA[sA()*64|0];return t}const{parse:yw,stringify:fA}=JSON,{keys:dA}=Object,ma=String,bw="string",Bm={},hu="object",ww=(e,t)=>t,hA=e=>e instanceof ma?ma(e):e,pA=(e,t)=>typeof t===bw?new ma(t):t,xw=(e,t,r,o)=>{const s=[];for(let c=dA(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ma){const v=e[p];typeof v===hu&&!t.has(v)?(t.add(v),r[h]=Bm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Bm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,xw.apply(null,h))}return r},Wm=(e,t,r)=>{const o=ma(t.push(r)-1);return e.set(r,o),o},Zd=(e,t)=>{const r=yw(e,pA).map(hA),o=r[0],s=t||ww,c=typeof o===hu&&o?xw(r,new Set,o,s):o;return s.call({"":c},"",c)},Sw=(e,t,r)=>{const o=t&&typeof t===hu?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||ww,s=new Map,c=[],f=[];let d=+Wm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=fA(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case hu:if(b===null)return b;case bw:return s.get(b)||Wm(s,c,b)}return b}},gA=e=>yw(Sw(e));class _w{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=gw(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function vA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=O=>O,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new _w,waitForConnection:A,reconnect:L},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onTestAnnotate(O,F){r.onTestAnnotate?.(O,F)},onSpecsCollected(O){O?.forEach(([F,E])=>{v.state.clearFiles({config:F},[E])}),r.onSpecsCollected?.(O)},onPathsCollected(O){v.state.collectPaths(O),r.onPathsCollected?.(O)},onCollected(O){v.state.collectFiles(O),r.onCollected?.(O)},onTaskUpdate(O,F){v.state.updateTasks(O),r.onTaskUpdate?.(O,F)},onUserConsoleLog(O){v.state.updateUserLog(O),r.onUserConsoleLog?.(O)},onFinished(O,F){r.onFinished?.(O,F)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},x={post:O=>v.ws.send(O),on:O=>m=O,serialize:O=>Sw(O,(F,E)=>E instanceof Error?{name:E.name,message:E.message,stack:E.stack}:E),deserialize:Zd,timeout:-1};v.rpc=lA(b,x);let C;function L(O=!1){O&&(p=c),v.ws=new h(e),M()}function M(){C=new Promise((O,F)=>{const E=setTimeout(()=>{F(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();v.ws.OPEN===v.ws.readyState&&O(),v.ws.addEventListener("open",()=>{p=c,O(),clearTimeout(E)})}),v.ws.addEventListener("message",O=>{m(O.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}M();function A(){return C}return v}const Jd=nn([]),Zn=nn([]),$r=Gu("vitest-ui_task-tree-opened",[],{shallow:!0}),pu=xe(()=>new Set($r.value)),hn=Gu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Un=Ve(hn.value.search),mA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function kw(e){return e.replace(/[&<>"']/g,t=>mA[t])}const yA=xe(()=>{const e=Un.value.toLowerCase();return e.length?new RegExp(`(${kw(e)})`,"gi"):null}),Tw=xe(()=>Un.value.trim()!==""),Ze=ir({failed:hn.value.failed,success:hn.value.success,skipped:hn.value.skipped,onlyTests:hn.value.onlyTests}),Qd=xe(()=>!!(Ze.failed||Ze.success||Ze.skipped)),Xu=nn([]),Us=Ve(!1),qm=xe(()=>{const e=hn.value.expandAll;return $r.value.length>0?e!==!0:e!==!1}),bA=xe(()=>{const e=Tw.value,t=Qd.value,r=Ze.onlyTests,o=Ee.summary.filesFailed,s=Ee.summary.filesSuccess,c=Ee.summary.filesSkipped,f=Ee.summary.filesRunning,d=Xu.value;return Ee.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ra(e){return Object.hasOwn(e,"tasks")}function wA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Cw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function Ew(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function xA(e){return e.type==="test"}function SA(e){return e.mode==="run"&&e.type==="test"}function In(e){return e.type==="file"}function Si(e){return e.type==="file"||e.type==="suite"}function _A(e=Ee.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ya(e,t=!1){let r=Ee.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=e.result?.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:pu.value.size>0&&pu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:e.result?.duration!=null?Math.round(e.result?.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ee.colors.get(e.projectName||"")||Cw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Ee.nodes.set(e.id,r),Ee.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Pa(e.id,e.tasks[o],!0)}function Aw(e,t){const r=Ee.nodes.get(e);if(!r||!Si(r))return;const o=dt.state.idMap.get(e);if(!(!o||!Ra(o)))return Pa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function kA(e){const t=Ee.nodes.get(e);if(!t)return;const r=dt.state.idMap.get(e);!r||!js(r)||Pa(t.parentId,r,!1)}function Pa(e,t,r){const o=Ee.nodes.get(e);let s;const c=t.result?.duration!=null?Math.round(t.result?.duration):void 0;if(o&&(s=Ee.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(js(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:pu.value.size>0&&pu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Ee.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ra(t)))for(let f=0;f<t.tasks.length;f++)Pa(s.id,t.tasks[f],r)}function TA(e){const t=Ee.nodes.get(e);if(!t||!Si(t))return;const r=new Set($r.value);r.delete(t.id);const o=[...EA(t)];$r.value=Array.from(r),Zn.value=o}function CA(){eh(Ee.root.tasks);const e=[...Zn.value.filter(In)];eh(e),$r.value=[],hn.value.expandAll=!0,Zn.value=e}function eh(e){for(const t of e)Si(t)&&(t.expanded=!1,eh(t.tasks))}function*Lw(e,t){if(t&&(yield e.id),Si(e))for(let r=0;r<e.tasks.length;r++)yield*Lw(e.tasks[r],!0)}function*EA(e){const t=e.id,r=new Set(Lw(e,!1));for(let o=0;o<Zn.value.length;o++){const s=Zn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const Yu=Ve("idle"),Ss=xe(()=>Yu.value==="idle"),Ki=Ve([]);function AA(e,t,r){return e?Ow(e,t,r):!1}function np(e,t){const r=[...Mw(e,t)];Zn.value=r,Xu.value=r.filter(In).map(o=>gr(o.id))}function*Mw(e,t){for(const r of _A())yield*Nw(r,e,t)}function*Nw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of th(e,o,x=>jm(x,t,r)))c.push([m,b]);else{for(const[m,b]of th(e,o,x=>jm(x,t,r)))Si(b)?(s.set(b.id,m),In(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!In(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...MA(c,r.onlyTests,o,d,f)].reverse(),p=Ee.nodes,v=new Set(h.filter(m=>In(m)||Si(m)&&p.get(m.parentId)?.expanded).map(m=>m.id));yield*h.filter(m=>In(m)||v.has(m.parentId)&&p.get(m.parentId)?.expanded)}function LA(e,t,r,o,s){if(o){if(In(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}function*MA(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Si(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ee.nodes.get(d.parentId);for(;p;)r.add(p.id),In(p)&&o.add(p.id),p=Ee.nodes.get(p.parentId);yield d;continue}if(h){const p=LA(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ee.nodes.get(d.parentId);p&&In(p)&&o.add(p.id),yield d}}}function NA(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Ow(e,t,r){if(t.length===0||wA(e.name,t))if(r.success||r.failed||r.skipped){if(NA(e,r))return!0}else return!0;return!1}function*th(e,t,r){const o=r(e);if(o)if(xA(e)){let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}else if(In(e))t.add(e.id);else{t.add(e.id);let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}if(yield[o,e],Si(e))for(let s=0;s<e.tasks.length;s++)yield*th(e.tasks[s],t,r)}function jm(e,t,r){const o=dt.state.idMap.get(e.id);return o?Ow(o,t,r):!1}function OA(e,t,r){const o=Aw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Pa(s.id,p,!1);s.expanded=!0;const f=new Set($r.value);f.add(s.id);const d=new Set(Nw(s,t,r)),h=[...$A(s,d)];$r.value=Array.from(f),Zn.value=h}function RA(e,t){rp(Ee.root.tasks,!1);const r=[...Mw(e,t)];hn.value.expandAll=!1,$r.value=[],Zn.value=r,Xu.value=r.filter(In).map(o=>gr(o.id))}function PA(e,t){if(e.size)for(const r of Zn.value)e.has(r.id)&&(r.expanded=!0);else t&&rp(Zn.value.filter(In),!0)}function rp(e,t){for(const r of e)Si(r)&&(r.expanded=!0,rp(r.tasks,!1));t&&(hn.value.expandAll=!1,$r.value=[])}function*$A(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Zn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function ip(e){return vw(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function IA(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ya(s,t)),Jd.value=[...Ee.root.tasks],np(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function DA(e){queueMicrotask(()=>{const t=Ee.pendingTasks,r=dt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function zA(e,t){const r=Ee.pendingTasks,s=dt.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),s.annotations.push(t)}}function Um(e,t,r,o,s){e&&jA(r);const c=!e;queueMicrotask(()=>{t?BA(c):WA(c)}),queueMicrotask(()=>{UA(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Jd.value&&ip(Jd.value.map(f=>gr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{qA(o,s,t)})}function*FA(){yield*Zn.value.filter(SA)}function HA(){const e=dt.state.idMap;let t;for(const r of FA())t=e.get(r.parentId),t&&Ra(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function BA(e){const t=dt.state.getFiles(),r=Ee.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ya(o[c],e),gu(o[c].tasks);const s=Ee.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=gr(f.id);!d||(ya(d,e),!d.tasks?.length)||gu(d.tasks)}}function WA(e){const t=new Map(Ee.pendingTasks.entries());Ee.pendingTasks.clear();const r=Ee.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>gr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ya(s,!1),gu(s.tasks),t.delete(s.id);const c=dt.state.idMap,f=Ee.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=gr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ya(p,e),gu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function qA(e,t,r=!1){const o=hn.value.expandAll,s=o!==!0,c=new Set($r.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Vm(e,t,r)}),Us.value||queueMicrotask(()=>{(Zn.value.length||r)&&(Us.value=!0)}),f&&(queueMicrotask(()=>{PA(c,r),s&&(hn.value.expandAll=!1)}),queueMicrotask(()=>{Vm(e,t,r)}))}function Vm(e,t,r){np(e,t),r&&(HA(),Yu.value="idle")}function gu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ra(t)?Aw(t.id,!0):kA(t.id)}function jA(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function UA(e){const t=dt.state.idMap,r=new Map(Ee.root.tasks.filter(f=>t.has(f.id)).map(f=>[f.id,f])),o=Array.from(r.values()).map(f=>[f.id,gr(f.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};let c=0;for(const[f,d]of o){if(!d)continue;const h=r.get(f);h&&(h.mode=d.mode,h.setupDuration=d.setupDuration,h.prepareDuration=d.prepareDuration,h.environmentLoad=d.environmentLoad,h.collectDuration=d.collectDuration,h.duration=d.result?.duration!=null?Math.round(d.result?.duration):void 0,h.state=d.result?.state),c+=Math.max(0,d.collectDuration||0),c+=Math.max(0,d.setupDuration||0),c+=Math.max(0,d.result?.duration||0),c+=Math.max(0,d.environmentLoad||0),c+=Math.max(0,d.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,d.result?.state==="fail"?s.filesFailed++:d.result?.state==="pass"?s.filesSuccess++:d.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):d.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:p,success:v,skipped:m,total:b,ignored:x,todo:C}=Rw(d);s.totalTests+=b,s.testsFailed+=p,s.testsSuccess+=v,s.testsSkipped+=m,s.testsTodo+=C,s.testsIgnore+=x}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function Rw(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of Pw(e))(!r||AA(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function VA(e,t,r,o,s,c){if(t)return r.map(f=>Rw(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:v})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=v,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const v of r)v.result?.state==="fail"?f.failed+=h?1:0:v.result?.state==="pass"?f.success+=p?1:0:v.mode==="skip"||v.mode==="todo"||f.running++;return f}return o}function*Pw(e){const t=ep(e);let r;for(let o=0;o<t.length;o++)r=t[o],js(r)?yield r:yield*Pw(r.tasks)}class GA{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=ir({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=nE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),IA(t,!0,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}annotateTest(t,r){zA(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){DA(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{Um(t,r,this.summary,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}):Um(t,r,this.summary,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collectTestsTotal(t,r,o,s){return VA(t,r,o,s,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{TA(t)})}expandNode(t){queueMicrotask(()=>{OA(t,Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{CA()})}expandAllNodes(){queueMicrotask(()=>{RA(Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{np(Un.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}}const Ee=new GA;function $w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bc={exports:{}},KA=Bc.exports,Gm;function Qs(){return Gm||(Gm=1,(function(e,t){(function(r,o){e.exports=o()})(KA,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],C=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),M=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),A=/PhantomJS/.test(r),O=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),F=/Android/.test(r),E=O||F||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),z=O||/Mac/.test(o),U=/\bCrOS\b/.test(r),re=/win/i.test(o),te=C&&r.match(/Version\/(\d*\.\d*)/);te&&(te=Number(te[1])),te&&te>=15&&(C=!1,v=!0);var ne=z&&(m||C&&(te==null||te<12.11)),K=s||h&&p>=9;function Y(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var $=function(n,i){var a=n.className,l=Y(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function R(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function N(n,i){return R(n).appendChild(i)}function _(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function H(n,i,a,l){var u=_(n,i,a,l);return u.setAttribute("role","presentation"),u}var j;document.createRange?j=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:j=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function ie(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function ve(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Se(n,i){var a=n.className;Y(i).test(a)||(n.className+=(a?" ":"")+i)}function $e(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!Y(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};O?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function Qe(n){return n.display.wrapper.ownerDocument}function Ye(n){return ze(n.display.wrapper)}function ze(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Me(n){return Qe(n).defaultView}function I(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function V(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function J(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return y+(i-g);y+=w-g,y+=a-y%a,g=w+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function oe(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var P=50,B={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function de(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var _e=[""];function Ce(n){for(;_e.length<=n;)_e.push(ge(_e)+" ");return _e[n]}function ge(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function qe(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Ne(){}function Fe(n,i){var a;return Object.create?a=Object.create(n):(Ne.prototype=n,a=new Ne),i&&V(i,a),a}var Ge=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Ge.test(n))}function lt(n,i){return i?i.source.indexOf("\\w")>-1&&rt(n)?!0:i.test(n):rt(n)}function ut(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Mt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function at(n){return n.charCodeAt(0)>=768&&Mt.test(n)}function Gt(n,i,a){for(;(a<0?i>0:i<n.length)&&at(n.charAt(i));)i+=a;return i}function Bt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function Fn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Fr=null;function zt(n,i,a){var l;Fr=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Fr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Fr=u)}return l??Fr}var Hn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,w=/[1n]/;function S(k,D,q){this.level=k,this.from=D,this.to=q}return function(k,D){var q=D=="ltr"?"L":"R";if(k.length==0||D=="ltr"&&!l.test(k))return!1;for(var Q=k.length,X=[],ce=0;ce<Q;++ce)X.push(a(k.charCodeAt(ce)));for(var pe=0,we=q;pe<Q;++pe){var ke=X[pe];ke=="m"?X[pe]=we:we=ke}for(var Le=0,Te=q;Le<Q;++Le){var Oe=X[Le];Oe=="1"&&Te=="r"?X[Le]="n":g.test(Oe)&&(Te=Oe,Oe=="r"&&(X[Le]="R"))}for(var Be=1,De=X[0];Be<Q-1;++Be){var et=X[Be];et=="+"&&De=="1"&&X[Be+1]=="1"?X[Be]="1":et==","&&De==X[Be+1]&&(De=="1"||De=="n")&&(X[Be]=De),De=et}for(var St=0;St<Q;++St){var Jt=X[St];if(Jt==",")X[St]="N";else if(Jt=="%"){var Nt=void 0;for(Nt=St+1;Nt<Q&&X[Nt]=="%";++Nt);for(var qn=St&&X[St-1]=="!"||Nt<Q&&X[Nt]=="1"?"1":"N",En=St;En<Nt;++En)X[En]=qn;St=Nt-1}}for(var Wt=0,An=q;Wt<Q;++Wt){var on=X[Wt];An=="L"&&on=="1"?X[Wt]="L":g.test(on)&&(An=on)}for(var Ut=0;Ut<Q;++Ut)if(u.test(X[Ut])){var qt=void 0;for(qt=Ut+1;qt<Q&&u.test(X[qt]);++qt);for(var It=(Ut?X[Ut-1]:q)=="L",Ln=(qt<Q?X[qt]:q)=="L",gs=It==Ln?It?"L":"R":q,Hi=Ut;Hi<qt;++Hi)X[Hi]=gs;Ut=qt-1}for(var un=[],jr,Qt=0;Qt<Q;)if(y.test(X[Qt])){var Yf=Qt;for(++Qt;Qt<Q&&y.test(X[Qt]);++Qt);un.push(new S(0,Yf,Qt))}else{var li=Qt,_o=un.length,ko=D=="rtl"?1:0;for(++Qt;Qt<Q&&X[Qt]!="L";++Qt);for(var vn=li;vn<Qt;)if(w.test(X[vn])){li<vn&&(un.splice(_o,0,new S(1,li,vn)),_o+=ko);var vs=vn;for(++vn;vn<Qt&&w.test(X[vn]);++vn);un.splice(_o,0,new S(2,vs,vn)),_o+=ko,li=vn}else++vn;li<Qt&&un.splice(_o,0,new S(1,li,Qt))}return D=="ltr"&&(un[0].level==1&&(jr=k.match(/^\s+/))&&(un[0].from=jr[0].length,un.unshift(new S(0,0,jr[0].length))),ge(un).level==1&&(jr=k.match(/\s+$/))&&(ge(un).to-=jr[0].length,un.push(new S(0,Q-jr[0].length,Q)))),D=="rtl"?un.reverse():un}})();function tt(n,i){var a=n.order;return a==null&&(a=n.order=Hn(n.text,i)),a}var ho=[],He=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||ho).concat(a)}};function ei(n,i){return n._handlers&&n._handlers[i]||ho}function ln(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=oe(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Rt(n,i){var a=ei(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Pt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Rt(n,a||i.type,n,i),_n(i)||i.codemirrorIgnore}function lr(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)oe(a,i[l])==-1&&a.push(i[l])}function Bn(n,i){return ei(n,i).length>0}function vr(n){n.prototype.on=function(i,a){He(this,i,a)},n.prototype.off=function(i,a){ln(this,i,a)}}function an(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function jo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function _n(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Ai(n){an(n),jo(n)}function tl(n){return n.target||n.srcElement}function mr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),z&&n.ctrlKey&&i==1&&(i=3),i}var nf=(function(){if(h&&p<9)return!1;var n=_("div");return"draggable"in n||"dragDrop"in n})(),Uo;function Ha(n){if(Uo==null){var i=_("span","​");N(n,_("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Uo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Uo?_("span","​"):_("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var nl;function Li(n){if(nl!=null)return nl;var i=N(n,document.createTextNode("AخA")),a=j(i,0,1).getBoundingClientRect(),l=j(i,1,2).getBoundingClientRect();return R(n),!a||a.left==a.right?!1:nl=l.right-a.right<3}var ar=`
20
-
21
- b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
22
- `,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Mi=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Ba=(function(){var n=_("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),yr=null;function rf(n){if(yr!=null)return yr;var i=N(n,_("span","x")),a=i.getBoundingClientRect(),l=j(i,0,1).getBoundingClientRect();return yr=Math.abs(a.left-l.left)>1}var Vo={},br={};function wr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Vo[n]=i}function po(n,i){br[n]=i}function Go(n){if(typeof n=="string"&&br.hasOwnProperty(n))n=br[n];else if(n&&typeof n.name=="string"&&br.hasOwnProperty(n.name)){var i=br[n.name];typeof i=="string"&&(i={name:i}),n=Fe(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Go("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Go("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Ko(n,i){i=Go(i);var a=Vo[i.name];if(!a)return Ko(n,"text/plain");var l=a(n,i);if(Ni.hasOwnProperty(i.name)){var u=Ni[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var Ni={};function Xo(n,i){var a=Ni.hasOwnProperty(n)?Ni[n]:Ni[n]={};V(i,a)}function Hr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function rl(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function Yo(n,i,a){return n.startState?n.startState(i,a):!0}var $t=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},$t.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},$t.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},$t.prototype.backUp=function(n){this.pos-=n},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=J(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return J(this.string,null,this.tabSize)-(this.lineStart?J(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Pe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function ti(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function il(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Jn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function T(n){if(n.parent==null)return null;for(var i=n.parent,a=oe(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function W(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var w=n.lines[y],S=w.height;if(i<S)break;i-=S}return a+y}function fe(n,i){return i>=n.first&&i<n.first+n.size}function be(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function ae(n,i,a){if(a===void 0&&(a=null),!(this instanceof ae))return new ae(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ae(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Ae(n,i)==0}function Kt(n){return ae(n.line,n.ch)}function kn(n,i){return Ae(n,i)<0?i:n}function Zo(n,i){return Ae(n,i)<0?n:i}function Tp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Xe(n,i){if(i.line<n.first)return ae(n.first,0);var a=n.first+n.size-1;return i.line>a?ae(a,Pe(n,a).text.length):c1(i,Pe(n,i.line).text.length)}function c1(n,i){var a=n.ch;return a==null||a>i?ae(n.line,i):a<0?ae(n.line,0):n}function Cp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Xe(n,i[l]);return a}var Wa=function(n,i){this.state=n,this.lookAhead=i},Br=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Br.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Br.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Br.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Br.fromSaved=function(n,i,a){return i instanceof Wa?new Br(n,Hr(n.mode,i.state),a,i.lookAhead):new Br(n,Hr(n.mode,i),a)},Br.prototype.save=function(n){var i=n!==!1?Hr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wa(i,this.maxLookAhead):i};function Ep(n,i,a,l){var u=[n.state.modeGen],g={};Rp(n,i.text,n.doc.mode,a,function(k,D){return u.push(k,D)},g,l);for(var y=a.state,w=function(k){a.baseTokens=u;var D=n.state.overlays[k],q=1,Q=0;a.state=!0,Rp(n,i.text,D.mode,a,function(X,ce){for(var pe=q;Q<X;){var we=u[q];we>X&&u.splice(q,1,X,u[q+1],we),q+=2,Q=Math.min(X,we)}if(ce)if(D.opaque)u.splice(pe,q-pe,X,"overlay "+ce),q=pe+2;else for(;pe<q;pe+=2){var ke=u[pe+1];u[pe+1]=(ke?ke+" ":"")+"overlay "+ce}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)w(S);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function Ap(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=ol(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&Hr(n.doc.mode,l.state),g=Ep(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function ol(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Br(l,!0,i);var g=u1(n,i,a),y=g>l.first&&Pe(l,g-1).stateAfter,w=y?Br.fromSaved(l,y,g):new Br(l,Yo(l.mode),g);return l.iter(g,i,function(S){of(n,S.text,w);var k=w.line;S.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function of(n,i,a,l){var u=n.doc.mode,g=new $t(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&Lp(u,a.state);!g.eol();)sf(u,g,a.state),g.start=g.pos}function Lp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=rl(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function sf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=rl(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var Mp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Np(n,i,a,l){var u=n.doc,g=u.mode,y;i=Xe(u,i);var w=Pe(u,i.line),S=ol(n,i.line,a),k=new $t(w.text,n.options.tabSize,S),D;for(l&&(D=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=sf(g,k,S.state),l&&D.push(new Mp(k,y,Hr(u.mode,S.state)));return l?D:new Mp(k,y,S.state)}function Op(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function Rp(n,i,a,l,u,g,y){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var S=0,k=null,D=new $t(i,n.options.tabSize,l),q,Q=n.options.addModeClass&&[null];for(i==""&&Op(Lp(a,l.state),g);!D.eol();){if(D.pos>n.options.maxHighlightLength?(w=!1,y&&of(n,i,l,D.pos),D.pos=i.length,q=null):q=Op(sf(a,D,l.state,Q),g),Q){var X=Q[0].name;X&&(q="m-"+(q?X+" "+q:X))}if(!w||k!=q){for(;S<D.start;)S=Math.min(D.start,S+5e3),u(S,k);k=q}D.start=D.pos}for(;S<D.pos;){var ce=Math.min(D.pos,S+5e3);u(ce,k),S=ce}}function u1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>y;--w){if(w<=g.first)return g.first;var S=Pe(g,w-1),k=S.stateAfter;if(k&&(!a||w+(k instanceof Wa?k.lookAhead:0)<=g.modeFrontier))return w;var D=J(S.text,null,n.options.tabSize);(u==null||l>D)&&(u=w-1,l=D)}return u}function f1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Pe(n,l).stateAfter;if(u&&(!(u instanceof Wa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Pp=!1,ni=!1;function d1(){Pp=!0}function h1(){ni=!0}function qa(n,i,a){this.marker=n,this.from=i,this.to=a}function sl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function p1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function g1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function v1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var S=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new qa(y,g.from,S?null:g.to))}}return l}function m1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var S=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new qa(y,S?null:g.from-i,g.to==null?null:g.to-i))}}return l}function lf(n,i){if(i.full)return null;var a=fe(n,i.from.line)&&Pe(n,i.from.line).markedSpans,l=fe(n,i.to.line)&&Pe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ae(i.from,i.to)==0,w=v1(a,u,y),S=m1(l,g,y),k=i.text.length==1,D=ge(i.text).length+(k?u:0);if(w)for(var q=0;q<w.length;++q){var Q=w[q];if(Q.to==null){var X=sl(S,Q.marker);X?k&&(Q.to=X.to==null?null:X.to+D):Q.to=u}}if(S)for(var ce=0;ce<S.length;++ce){var pe=S[ce];if(pe.to!=null&&(pe.to+=D),pe.from==null){var we=sl(w,pe.marker);we||(pe.from=D,k&&(w||(w=[])).push(pe))}else pe.from+=D,k&&(w||(w=[])).push(pe)}w&&(w=$p(w)),S&&S!=w&&(S=$p(S));var ke=[w];if(!k){var Le=i.text.length-2,Te;if(Le>0&&w)for(var Oe=0;Oe<w.length;++Oe)w[Oe].to==null&&(Te||(Te=[])).push(new qa(w[Oe].marker,null,null));for(var Be=0;Be<Le;++Be)ke.push(Te);ke.push(S)}return ke}function $p(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function y1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(X){if(X.markedSpans)for(var ce=0;ce<X.markedSpans.length;++ce){var pe=X.markedSpans[ce].marker;pe.readOnly&&(!l||oe(l,pe)==-1)&&(l||(l=[])).push(pe)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],w=y.find(0),S=0;S<u.length;++S){var k=u[S];if(!(Ae(k.to,w.from)<0||Ae(k.from,w.to)>0)){var D=[S,1],q=Ae(k.from,w.from),Q=Ae(k.to,w.to);(q<0||!y.inclusiveLeft&&!q)&&D.push({from:k.from,to:w.from}),(Q>0||!y.inclusiveRight&&!Q)&&D.push({from:w.to,to:k.to}),u.splice.apply(u,D),S+=D.length-3}}return u}function Ip(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Dp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function ja(n){return n.inclusiveLeft?-1:0}function Ua(n){return n.inclusiveRight?1:0}function af(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ae(l.from,u.from)||ja(n)-ja(i);if(g)return-g;var y=Ae(l.to,u.to)||Ua(n)-Ua(i);return y||i.id-n.id}function zp(n,i){var a=ni&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||af(l,u.marker)<0)&&(l=u.marker);return l}function Fp(n){return zp(n,!0)}function Va(n){return zp(n,!1)}function b1(n,i){var a=ni&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||af(l,g.marker)<0)&&(l=g.marker)}return l}function Hp(n,i,a,l,u){var g=Pe(n,i),y=ni&&g.markedSpans;if(y)for(var w=0;w<y.length;++w){var S=y[w];if(S.marker.collapsed){var k=S.marker.find(0),D=Ae(k.from,a)||ja(S.marker)-ja(u),q=Ae(k.to,l)||Ua(S.marker)-Ua(u);if(!(D>=0&&q<=0||D<=0&&q>=0)&&(D<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.to,a)>=0:Ae(k.to,a)>0)||D>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ae(k.from,l)<=0:Ae(k.from,l)<0)))return!0}}}function xr(n){for(var i;i=Fp(n);)n=i.find(-1,!0).line;return n}function w1(n){for(var i;i=Va(n);)n=i.find(1,!0).line;return n}function x1(n){for(var i,a;i=Va(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function cf(n,i){var a=Pe(n,i),l=xr(a);return a==l?i:T(l)}function Bp(n,i){if(i>n.lastLine())return i;var a=Pe(n,i),l;if(!Oi(n,a))return i;for(;l=Va(a);)a=l.find(1,!0).line;return T(a)+1}function Oi(n,i){var a=ni&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&uf(n,i,l))return!0}}}function uf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return uf(n,l.line,sl(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&uf(n,i,u))return!0}function ri(n){n=xr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var w=g.children[y];if(w==a)break;i+=w.height}return i}function Ga(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Fp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Va(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function ff(n){var i=n.display,a=n.doc;i.maxLine=Pe(a,a.first),i.maxLineLength=Ga(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Ga(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Jo=function(n,i,a){this.text=n,Dp(this,i),this.height=a?a(this):1};Jo.prototype.lineNo=function(){return T(this)},vr(Jo);function S1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Ip(n),Dp(n,a);var u=l?l(n):1;u!=n.height&&Jn(n,u)}function _1(n){n.parent=null,Ip(n)}var k1={},T1={};function Wp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?T1:k1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function qp(n,i){var a=H("span",null,null,v?"padding-right: .1px":null),l={pre:H("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=E1,Li(n.display.measure)&&(y=tt(g,n.doc.direction))&&(l.addToken=L1(l.addToken,y)),l.map=[];var w=i!=n.display.externalMeasured&&T(g);M1(g,l,Ap(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=$e(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=$e(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ha(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Rt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=$e(l.pre.className,l.textClass||"")),l}function C1(n){var i=_("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function E1(n,i,a,l,u,g,y){if(i){var w=n.splitSpaces?A1(i,n.trailingSpace):i,S=n.cm.state.specialChars,k=!1,D;if(!S.test(i))n.col+=i.length,D=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,D),h&&p<9&&(k=!0),n.pos+=i.length;else{D=document.createDocumentFragment();for(var q=0;;){S.lastIndex=q;var Q=S.exec(i),X=Q?Q.index-q:i.length-q;if(X){var ce=document.createTextNode(w.slice(q,q+X));h&&p<9?D.appendChild(_("span",[ce])):D.appendChild(ce),n.map.push(n.pos,n.pos+X,ce),n.col+=X,n.pos+=X}if(!Q)break;q+=X+1;var pe=void 0;if(Q[0]==" "){var we=n.cm.options.tabSize,ke=we-n.col%we;pe=D.appendChild(_("span",Ce(ke),"cm-tab")),pe.setAttribute("role","presentation"),pe.setAttribute("cm-text"," "),n.col+=ke}else Q[0]=="\r"||Q[0]==`
23
- `?(pe=D.appendChild(_("span",Q[0]=="\r"?"␍":"␤","cm-invalidchar")),pe.setAttribute("cm-text",Q[0]),n.col+=1):(pe=n.cm.options.specialCharPlaceholder(Q[0]),pe.setAttribute("cm-text",Q[0]),h&&p<9?D.appendChild(_("span",[pe])):D.appendChild(pe),n.col+=1);n.map.push(n.pos,n.pos+1,pe),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Le=a||"";l&&(Le+=l),u&&(Le+=u);var Te=_("span",[D],Le,g);if(y)for(var Oe in y)y.hasOwnProperty(Oe)&&Oe!="style"&&Oe!="class"&&Te.setAttribute(Oe,y[Oe]);return n.content.appendChild(Te)}n.content.appendChild(D)}}function A1(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function L1(n,i){return function(a,l,u,g,y,w,S){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,D=k+l.length;;){for(var q=void 0,Q=0;Q<i.length&&(q=i[Q],!(q.to>k&&q.from<=k));Q++);if(q.to>=D)return n(a,l,u,g,y,w,S);n(a,l.slice(0,q.to-k),u,g,null,w,S),g=null,l=l.slice(q.to-k),k=q.to}}}function jp(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function M1(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),Wp(a[y+1],i.cm.options));return}for(var w=u.length,S=0,k=1,D="",q,Q,X=0,ce,pe,we,ke,Le;;){if(X==S){ce=pe=we=Q="",Le=null,ke=null,X=1/0;for(var Te=[],Oe=void 0,Be=0;Be<l.length;++Be){var De=l[Be],et=De.marker;if(et.type=="bookmark"&&De.from==S&&et.widgetNode)Te.push(et);else if(De.from<=S&&(De.to==null||De.to>S||et.collapsed&&De.to==S&&De.from==S)){if(De.to!=null&&De.to!=S&&X>De.to&&(X=De.to,pe=""),et.className&&(ce+=" "+et.className),et.css&&(Q=(Q?Q+";":"")+et.css),et.startStyle&&De.from==S&&(we+=" "+et.startStyle),et.endStyle&&De.to==X&&(Oe||(Oe=[])).push(et.endStyle,De.to),et.title&&((Le||(Le={})).title=et.title),et.attributes)for(var St in et.attributes)(Le||(Le={}))[St]=et.attributes[St];et.collapsed&&(!ke||af(ke.marker,et)<0)&&(ke=De)}else De.from>S&&X>De.from&&(X=De.from)}if(Oe)for(var Jt=0;Jt<Oe.length;Jt+=2)Oe[Jt+1]==X&&(pe+=" "+Oe[Jt]);if(!ke||ke.from==S)for(var Nt=0;Nt<Te.length;++Nt)jp(i,0,Te[Nt]);if(ke&&(ke.from||0)==S){if(jp(i,(ke.to==null?w+1:ke.to)-S,ke.marker,ke.from==null),ke.to==null)return;ke.to==S&&(ke=!1)}}if(S>=w)break;for(var qn=Math.min(w,X);;){if(D){var En=S+D.length;if(!ke){var Wt=En>qn?D.slice(0,qn-S):D;i.addToken(i,Wt,q?q+ce:ce,we,S+Wt.length==X?pe:"",Q,Le)}if(En>=qn){D=D.slice(qn-S),S=qn;break}S=En,we=""}D=u.slice(g,g=a[k++]),q=Wp(a[k++],i.cm.options)}}}function Up(n,i,a){this.line=i,this.rest=x1(i),this.size=this.rest?T(ge(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Oi(n,i)}function Ka(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Up(n.doc,Pe(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Qo=null;function N1(n){Qo?Qo.ops.push(n):n.ownsGroup=Qo={ops:[n],delayedCallbacks:[]}}function O1(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function R1(n,i){var a=n.ownsGroup;if(a)try{O1(a)}finally{Qo=null,i(a)}}var ll=null;function Xt(n,i){var a=ei(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Qo?u=Qo.delayedCallbacks:ll?u=ll:(u=ll=[],setTimeout(P1,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function P1(){var n=ll;ll=null;for(var i=0;i<n.length;++i)n[i]()}function Vp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?I1(n,i):g=="gutter"?Kp(n,i,a,l):g=="class"?df(n,i):g=="widget"&&D1(n,i,l)}i.changes=null}function al(n){return n.node==n.text&&(n.node=_("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function $1(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=al(i);i.background=l.insertBefore(_("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Gp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):qp(n,i)}function I1(n,i){var a=i.text.className,l=Gp(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,df(n,i)):a&&(i.text.className=a)}function df(n,i){$1(n,i),i.line.wrapClass?al(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Kp(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=al(i);i.gutterBackground=_("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=al(i),w=i.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),n.display.input.setUneditable(w),y.insertBefore(w,i.text),i.line.gutterClass&&(w.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(_("div",be(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var S=0;S<n.display.gutterSpecs.length;++S){var k=n.display.gutterSpecs[S].className,D=g.hasOwnProperty(k)&&g[k];D&&w.appendChild(_("div",[D],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function D1(n,i,a){i.alignable&&(i.alignable=null);for(var l=Y("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Xp(n,i,a)}function z1(n,i,a,l){var u=Gp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),df(n,i),Kp(n,i,a,l),Xp(n,i,l),i.node}function Xp(n,i,a){if(Yp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Yp(n,i.rest[l],i,a,!1)}function Yp(n,i,a,l,u){if(i.widgets)for(var g=al(a),y=0,w=i.widgets;y<w.length;++y){var S=w[y],k=_("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),F1(S,k,a,l),n.display.input.setUneditable(k),u&&S.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Xt(S,"redraw")}}function F1(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function cl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ie(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),N(i.display.measure,_("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ii(n,i){for(var a=tl(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function Xa(n){return n.lineSpace.offsetTop}function hf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Zp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=N(n.measure,_("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Wr(n){return P-n.display.nativeBarWidth}function go(n){return n.display.scroller.clientWidth-Wr(n)-n.display.barWidth}function pf(n){return n.display.scroller.clientHeight-Wr(n)-n.display.barHeight}function H1(n,i,a){var l=n.options.lineWrapping,u=l&&go(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),w=0;w<y.length-1;w++){var S=y[w],k=y[w+1];Math.abs(S.bottom-k.bottom)>2&&g.push((S.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Jp(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(T(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function B1(n,i){i=xr(i);var a=T(i),l=n.display.externalMeasured=new Up(n.doc,i,a);l.lineN=a;var u=l.built=qp(n,l);return l.text=u.pre,N(n.display.lineMeasure,u.pre),l}function Qp(n,i,a,l){return qr(n,es(n,i),a,l)}function gf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[yo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function es(n,i){var a=T(i),l=gf(n,a);l&&!l.text?l=null:l&&l.changes&&(Vp(n,l,a,wf(n)),n.curOp.forceUpdate=!0),l||(l=B1(n,i));var u=Jp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function qr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(H1(n,i.view,i.rect),i.hasHeights=!0),y=q1(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var eg={left:0,right:0,top:0,bottom:0};function tg(n,i,a){for(var l,u,g,y,w,S,k=0;k<n.length;k+=3)if(w=n[k],S=n[k+1],i<w?(u=0,g=1,y="left"):i<S?(u=i-w,g=u+1):(k==n.length-3||i==S&&n[k+3]>i)&&(g=S-w,u=g-1,i>=S&&(y="right")),u!=null){if(l=n[k+2],w==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)l=n[(k-=3)+2],y="left";if(a=="right"&&u==S-w)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)l=n[(k+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:w,coverEnd:S}}function W1(n,i){var a=eg;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function q1(n,i,a,l){var u=tg(i.map,a,l),g=u.node,y=u.start,w=u.end,S=u.collapse,k;if(g.nodeType==3){for(var D=0;D<4;D++){for(;y&&at(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+w<u.coverEnd&&at(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&y==0&&w==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=W1(j(g,y,w).getClientRects(),l),k.left||k.right||y==0)break;w=y,y=y-1,S="right"}h&&p<11&&(k=j1(n.display.measure,k))}else{y>0&&(S=l="right");var q;n.options.lineWrapping&&(q=g.getClientRects()).length>1?k=q[l=="right"?q.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var Q=g.parentNode.getClientRects()[0];Q?k={left:Q.left,right:Q.left+ns(n.display),top:Q.top,bottom:Q.bottom}:k=eg}for(var X=k.top-i.rect.top,ce=k.bottom-i.rect.top,pe=(X+ce)/2,we=i.view.measure.heights,ke=0;ke<we.length-1&&!(pe<we[ke]);ke++);var Le=ke?we[ke-1]:0,Te=we[ke],Oe={left:(S=="right"?k.right:k.left)-i.rect.left,right:(S=="left"?k.left:k.right)-i.rect.left,top:Le,bottom:Te};return!k.left&&!k.right&&(Oe.bogus=!0),n.options.singleCursorHeightPerLine||(Oe.rtop=X,Oe.rbottom=ce),Oe}function j1(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!rf(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function ng(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function rg(n){n.display.externalMeasure=null,R(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)ng(n.display.view[i])}function ul(n){rg(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function ig(n){return b&&F?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function og(n){return b&&F?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function vf(n){var i=xr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=cl(a[u]));return l}function Ya(n,i,a,l,u){if(!u){var g=vf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ri(i);if(l=="local"?y+=Xa(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();y+=w.top+(l=="window"?0:og(Qe(n)));var S=w.left+(l=="window"?0:ig(Qe(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function sg(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=ig(Qe(n)),u-=og(Qe(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Za(n,i,a,l,u){return l||(l=Pe(n.doc,i.line)),Ya(n,l,Qp(n,l,i.ch,u),a)}function Sr(n,i,a,l,u,g){l=l||Pe(n.doc,i.line),u||(u=es(n,l));function y(ce,pe){var we=qr(n,u,ce,pe?"right":"left",g);return pe?we.left=we.right:we.right=we.left,Ya(n,l,we,a)}var w=tt(l,n.doc.direction),S=i.ch,k=i.sticky;if(S>=l.text.length?(S=l.text.length,k="before"):S<=0&&(S=0,k="after"),!w)return y(k=="before"?S-1:S,k=="before");function D(ce,pe,we){var ke=w[pe],Le=ke.level==1;return y(we?ce-1:ce,Le!=we)}var q=zt(w,S,k),Q=Fr,X=D(S,q,k=="before");return Q!=null&&(X.other=D(S,Q,k!="before")),X}function lg(n,i){var a=0;i=Xe(n.doc,i),n.options.lineWrapping||(a=ns(n.display)*i.ch);var l=Pe(n.doc,i.line),u=ri(l)+Xa(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function mf(n,i,a,l,u){var g=ae(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function yf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return mf(l.first,0,null,-1,-1);var u=W(l,a),g=l.first+l.size-1;if(u>g)return mf(l.first+l.size-1,Pe(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Pe(l,u);;){var w=U1(n,y,u,i,a),S=b1(y,w.ch+(w.xRel>0||w.outside>0?1:0));if(!S)return w;var k=S.find(1);if(k.line==u)return k;y=Pe(l,u=k.line)}}function ag(n,i,a,l){l-=vf(i);var u=i.text.length,g=Bt(function(y){return qr(n,a,y-1).bottom<=l},u,0);return u=Bt(function(y){return qr(n,a,y).top>l},g,u),{begin:g,end:u}}function cg(n,i,a,l){a||(a=es(n,i));var u=Ya(n,i,qr(n,a,l),"line").top;return ag(n,i,a,u)}function bf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function U1(n,i,a,l,u){u-=ri(i);var g=es(n,i),y=vf(i),w=0,S=i.text.length,k=!0,D=tt(i,n.doc.direction);if(D){var q=(n.options.lineWrapping?G1:V1)(n,i,a,g,D,l,u);k=q.level!=1,w=k?q.from:q.to-1,S=k?q.to:q.from-1}var Q=null,X=null,ce=Bt(function(Be){var De=qr(n,g,Be);return De.top+=y,De.bottom+=y,bf(De,l,u,!1)?(De.top<=u&&De.left<=l&&(Q=Be,X=De),!0):!1},w,S),pe,we,ke=!1;if(X){var Le=l-X.left<X.right-l,Te=Le==k;ce=Q+(Te?0:1),we=Te?"after":"before",pe=Le?X.left:X.right}else{!k&&(ce==S||ce==w)&&ce++,we=ce==0?"after":ce==i.text.length?"before":qr(n,g,ce-(k?1:0)).bottom+y<=u==k?"after":"before";var Oe=Sr(n,ae(a,ce,we),"line",i,g);pe=Oe.left,ke=u<Oe.top?-1:u>=Oe.bottom?1:0}return ce=Gt(i.text,ce,1),mf(a,ce,we,ke,l-pe)}function V1(n,i,a,l,u,g,y){var w=Bt(function(q){var Q=u[q],X=Q.level!=1;return bf(Sr(n,ae(a,X?Q.to:Q.from,X?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),S=u[w];if(w>0){var k=S.level!=1,D=Sr(n,ae(a,k?S.from:S.to,k?"after":"before"),"line",i,l);bf(D,g,y,!0)&&D.top>y&&(S=u[w-1])}return S}function G1(n,i,a,l,u,g,y){var w=ag(n,i,l,y),S=w.begin,k=w.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var D=null,q=null,Q=0;Q<u.length;Q++){var X=u[Q];if(!(X.from>=k||X.to<=S)){var ce=X.level!=1,pe=qr(n,l,ce?Math.min(k,X.to)-1:Math.max(S,X.from)).right,we=pe<g?g-pe+1e9:pe-g;(!D||q>we)&&(D=X,q=we)}}return D||(D=u[u.length-1]),D.from<S&&(D={from:S,to:D.to,level:D.level}),D.to>k&&(D={from:D.from,to:k,level:D.level}),D}var vo;function ts(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(vo==null){vo=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)vo.appendChild(document.createTextNode("x")),vo.appendChild(_("br"));vo.appendChild(document.createTextNode("x"))}N(n.measure,vo);var a=vo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),R(n.measure),a||1}function ns(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=_("span","xxxxxxxxxx"),a=_("pre",[i],"CodeMirror-line-like");N(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function wf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var w=n.display.gutterSpecs[y].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:xf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function xf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function ug(n){var i=ts(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/ns(n.display)-3);return function(u){if(Oi(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function Sf(n){var i=n.doc,a=ug(n);i.iter(function(l){var u=a(l);u!=l.height&&Jn(l,u)})}function mo(n,i,a,l){var u=n.display;if(!a&&tl(i).getAttribute("cm-not-content")=="true")return null;var g,y,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,y=i.clientY-w.top}catch{return null}var S=yf(n,g,y),k;if(l&&S.xRel>0&&(k=Pe(n.doc,S.line).text).length==S.ch){var D=J(k,k.length,n.options.tabSize)-k.length;S=ae(S.line,Math.max(0,Math.round((g-Zp(n.display).left)/ns(n.display))-D))}return S}function yo(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function Tn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)ni&&cf(n.doc,i)<u.viewTo&&Pi(n);else if(a<=u.viewFrom)ni&&Bp(n.doc,a+l)>u.viewFrom?Pi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Pi(n);else if(i<=u.viewFrom){var g=Ja(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Pi(n)}else if(a>=u.viewTo){var y=Ja(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Pi(n)}else{var w=Ja(n,i,i,-1),S=Ja(n,a,a+l,1);w&&S?(u.view=u.view.slice(0,w.index).concat(Ka(n,w.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Pi(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Ri(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[yo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);oe(y,a)==-1&&y.push(a)}}}function Pi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ja(n,i,a,l){var u=yo(n,i),g,y=n.display.view;if(!ni||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,S=0;S<u;S++)w+=y[S].size;if(w!=i){if(l>0){if(u==y.length-1)return null;g=w+y[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;cf(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function K1(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ka(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ka(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(yo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ka(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,yo(n,a)))),l.viewTo=a}function fg(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function fl(n){n.display.input.showSelection(n.display.input.prepareSelection())}function dg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var S=a.sel.ranges[w];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var k=S.empty();if(y){var D=y(n,S);D&&_f(n,D,u)}else(k||n.options.showCursorWhenSelecting)&&_f(n,S.head,u);k||X1(n,S,g)}}return l}function _f(n,i,a){var l=Sr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(_("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Za(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(_("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=l.other.left+"px",w.style.top=l.other.top+"px",w.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Qa(n,i){return n.top-i.top||n.left-i.left}function X1(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Zp(n.display),w=y.left,S=Math.max(l.sizerWidth,go(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function D(Te,Oe,Be,De){Oe<0&&(Oe=0),Oe=Math.round(Oe),De=Math.round(De),g.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
24
- top: `+Oe+"px; width: "+(Be??S-Te)+`px;
25
- height: `+(De-Oe)+"px"))}function q(Te,Oe,Be){var De=Pe(u,Te),et=De.text.length,St,Jt;function Nt(Wt,An){return Za(n,ae(Te,Wt),"div",De,An)}function qn(Wt,An,on){var Ut=cg(n,De,null,Wt),qt=An=="ltr"==(on=="after")?"left":"right",It=on=="after"?Ut.begin:Ut.end-(/\s/.test(De.text.charAt(Ut.end-1))?2:1);return Nt(It,qt)[qt]}var En=tt(De,u.direction);return Fn(En,Oe||0,Be??et,function(Wt,An,on,Ut){var qt=on=="ltr",It=Nt(Wt,qt?"left":"right"),Ln=Nt(An-1,qt?"right":"left"),gs=Oe==null&&Wt==0,Hi=Be==null&&An==et,un=Ut==0,jr=!En||Ut==En.length-1;if(Ln.top-It.top<=3){var Qt=(k?gs:Hi)&&un,Yf=(k?Hi:gs)&&jr,li=Qt?w:(qt?It:Ln).left,_o=Yf?S:(qt?Ln:It).right;D(li,It.top,_o-li,It.bottom)}else{var ko,vn,vs,Zf;qt?(ko=k&&gs&&un?w:It.left,vn=k?S:qn(Wt,on,"before"),vs=k?w:qn(An,on,"after"),Zf=k&&Hi&&jr?S:Ln.right):(ko=k?qn(Wt,on,"before"):w,vn=!k&&gs&&un?S:It.right,vs=!k&&Hi&&jr?w:Ln.left,Zf=k?qn(An,on,"after"):S),D(ko,It.top,vn-ko,It.bottom),It.bottom<Ln.top&&D(w,It.bottom,null,Ln.top),D(vs,Ln.top,Zf-vs,Ln.bottom)}(!St||Qa(It,St)<0)&&(St=It),Qa(Ln,St)<0&&(St=Ln),(!Jt||Qa(It,Jt)<0)&&(Jt=It),Qa(Ln,Jt)<0&&(Jt=Ln)}),{start:St,end:Jt}}var Q=i.from(),X=i.to();if(Q.line==X.line)q(Q.line,Q.ch,X.ch);else{var ce=Pe(u,Q.line),pe=Pe(u,X.line),we=xr(ce)==xr(pe),ke=q(Q.line,Q.ch,we?ce.text.length+1:null).end,Le=q(X.line,we?0:null,X.ch).start;we&&(ke.top<Le.top-2?(D(ke.right,ke.top,null,ke.bottom),D(w,Le.top,Le.left,Le.bottom)):D(ke.right,ke.top,Le.left-ke.right,ke.bottom)),ke.bottom<Le.top&&D(w,ke.bottom,null,Le.top)}a.appendChild(g)}function kf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||rs(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function hg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Cf(n))}function Tf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&rs(n))},100)}function Cf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Rt(n,"focus",n,i),n.state.focused=!0,Se(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),kf(n))}function rs(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Rt(n,"blur",n,i),n.state.focused=!1,$(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function ec(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var w=i.view[y],S=n.options.lineWrapping,k=void 0,D=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var q=w.node.offsetTop+w.node.offsetHeight;k=q-a,a=q}else{var Q=w.node.getBoundingClientRect();k=Q.bottom-Q.top,!S&&w.text.firstChild&&(D=w.text.firstChild.getBoundingClientRect().right-Q.left-1)}var X=w.line.height-k;if((X>.005||X<-.005)&&(u<l&&(g-=X),Jn(w.line,k),pg(w.line),w.rest))for(var ce=0;ce<w.rest.length;ce++)pg(w.rest[ce]);if(D>n.display.sizerWidth){var pe=Math.ceil(D/ns(n.display));pe>n.display.maxLineLength&&(n.display.maxLineLength=pe,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function pg(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function tc(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Xa(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=W(i,l),y=W(i,u);if(a&&a.ensure){var w=a.ensure.from.line,S=a.ensure.to.line;w<g?(g=w,y=W(i,ri(Pe(i,w))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(g=W(i,ri(Pe(i,S))-n.wrapper.clientHeight),y=S)}return{from:g,to:Math.max(y,g+1)}}function Y1(n,i){if(!Pt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!A){var y=_("div","​",null,`position: absolute;
26
- top: `+(i.top-a.viewOffset-Xa(n.display))+`px;
27
- height: `+(i.bottom-i.top+Wr(n)+a.barHeight)+`px;
28
- left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Z1(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?ae(i.line,i.ch+1,"before"):i,i=i.ch?ae(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,w=Sr(n,i),S=!a||a==i?w:Sr(n,a);u={left:Math.min(w.left,S.left),top:Math.min(w.top,S.top)-l,right:Math.max(w.left,S.left),bottom:Math.max(w.bottom,S.bottom)+l};var k=Ef(n,u),D=n.doc.scrollTop,q=n.doc.scrollLeft;if(k.scrollTop!=null&&(hl(n,k.scrollTop),Math.abs(n.doc.scrollTop-D)>1&&(y=!0)),k.scrollLeft!=null&&(bo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-q)>1&&(y=!0)),!y)break}return u}function J1(n,i){var a=Ef(n,i);a.scrollTop!=null&&hl(n,a.scrollTop),a.scrollLeft!=null&&bo(n,a.scrollLeft)}function Ef(n,i){var a=n.display,l=ts(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=pf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+hf(a),S=i.top<l,k=i.bottom>w-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+g){var D=Math.min(i.top,(k?w:i.bottom)-g);D!=u&&(y.scrollTop=D)}var q=n.options.fixedGutter?0:a.gutters.offsetWidth,Q=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-q,X=go(n)-a.gutters.offsetWidth,ce=i.right-i.left>X;return ce&&(i.right=i.left+X),i.left<10?y.scrollLeft=0:i.left<Q?y.scrollLeft=Math.max(0,i.left+q-(ce?0:10)):i.right>X+Q-3&&(y.scrollLeft=i.right+(ce?0:10)-X),y}function Af(n,i){i!=null&&(nc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function is(n){nc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function dl(n,i,a){(i!=null||a!=null)&&nc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Q1(n,i){nc(n),n.curOp.scrollToPos=i}function nc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=lg(n,i.from),l=lg(n,i.to);gg(n,a,l,i.margin)}}function gg(n,i,a,l){var u=Ef(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});dl(n,u.scrollLeft,u.scrollTop)}function hl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Mf(n,{top:i}),vg(n,i,!0),s&&Mf(n),vl(n,100))}function vg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function bo(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,xg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function pl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+hf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+Wr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var wo=function(n,i,a){this.cm=a;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),He(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),He(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wo.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},wo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wo.prototype.zeroWidthHack=function(){var n=z&&!M?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},wo.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},wo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var gl=function(){};gl.prototype.update=function(){return{bottom:0,right:0}},gl.prototype.setScrollLeft=function(){},gl.prototype.setScrollTop=function(){},gl.prototype.clear=function(){};function os(n,i){i||(i=pl(n));var a=n.display.barWidth,l=n.display.barHeight;mg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&ec(n),mg(n,pl(n)),a=n.display.barWidth,l=n.display.barHeight}function mg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var yg={native:wo,null:gl};function bg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&$(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new yg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),He(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?bo(n,i):hl(n,i)},n),n.display.scrollbars.addClass&&Se(n.display.wrapper,n.display.scrollbars.addClass)}var eS=0;function xo(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++eS,markArrays:null},N1(n.curOp)}function So(n){var i=n.curOp;i&&R1(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;tS(a)})}function tS(n){for(var i=n.ops,a=0;a<i.length;a++)nS(i[a]);for(var l=0;l<i.length;l++)rS(i[l]);for(var u=0;u<i.length;u++)iS(i[u]);for(var g=0;g<i.length;g++)oS(i[g]);for(var y=0;y<i.length;y++)sS(i[y])}function nS(n){var i=n.cm,a=i.display;aS(i),n.updateMaxLine&&ff(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new rc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function rS(n){n.updatedDisplay=n.mustUpdate&&Lf(n.cm,n.update)}function iS(n){var i=n.cm,a=i.display;n.updatedDisplay&&ec(i),n.barMeasure=pl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Qp(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+Wr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-go(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function oS(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&bo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ve(Ye(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&os(i,n.barMeasure),n.updatedDisplay&&Of(i,n.barMeasure),n.selectionChanged&&kf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&hg(n.cm)}function sS(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&wg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&vg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&bo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Z1(i,Xe(l,n.scrollToPos.from),Xe(l,n.scrollToPos.to),n.scrollToPos.margin);Y1(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Rt(g[w],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Rt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Rt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Wn(n,i){if(n.curOp)return i();xo(n);try{return i()}finally{So(n)}}function Yt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);xo(n);try{return i.apply(n,arguments)}finally{So(n)}}}function gn(n){return function(){if(this.curOp)return n.apply(this,arguments);xo(this);try{return n.apply(this,arguments)}finally{So(this)}}}function Zt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);xo(i);try{return n.apply(this,arguments)}finally{So(i)}}}function vl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,I(lS,n))}function lS(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=ol(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,w=g.text.length>n.options.maxHighlightLength?Hr(i.mode,l.state):null,S=Ep(n,g,l,!0);w&&(l.state=w),g.styles=S.styles;var k=g.styleClasses,D=S.classes;D?g.styleClasses=D:k&&(g.styleClasses=null);for(var q=!y||y.length!=g.styles.length||k!=D&&(!k||!D||k.bgClass!=D.bgClass||k.textClass!=D.textClass),Q=0;!q&&Q<y.length;++Q)q=y[Q]!=g.styles[Q];q&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&of(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return vl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Wn(n,function(){for(var g=0;g<u.length;g++)Ri(n,u[g],"text")})}}var rc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=tc(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=go(n),this.force=a,this.dims=wf(n),this.events=[]};rc.prototype.signal=function(n,i){Bn(n,i)&&this.events.push(arguments)},rc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Rt.apply(null,this.events[n])};function aS(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Wr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Wr(n)+"px",i.scrollbarsClipped=!0)}function cS(n){if(n.hasFocus())return null;var i=ve(Ye(n));if(!i||!ie(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Me(n).getSelection();l.anchorNode&&l.extend&&ie(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function uS(n){if(!(!n||!n.activeElt||n.activeElt==ve(ze(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ie(document.body,n.anchorNode)&&ie(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function Lf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Pi(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&fg(n)==0)return!1;Sg(n)&&(Pi(n),i.dims=wf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),ni&&(g=cf(n.doc,g),y=Bp(n.doc,y));var w=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;K1(n,g,y),a.viewOffset=ri(Pe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=fg(n);if(!w&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=cS(n);return S>4&&(a.lineDiv.style.display="none"),fS(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,uS(k),R(a.cursorDiv),R(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,vl(n,400)),a.updateLineNumbers=null,!0}function wg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==go(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+hf(n.display)-pf(n),a.top)}),i.visible=tc(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=tc(n.display,n.doc,a));if(!Lf(n,i))break;ec(n);var u=pl(n);fl(n),os(n,u),Of(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function Mf(n,i){var a=new rc(n,i);if(Lf(n,a)){ec(n),wg(n,a);var l=pl(n);fl(n),os(n,l),Of(n,l),a.finish()}}function fS(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function w(ce){var pe=ce.nextSibling;return v&&z&&n.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),pe}for(var S=l.view,k=l.viewFrom,D=0;D<S.length;D++){var q=S[D];if(!q.hidden)if(!q.node||q.node.parentNode!=g){var Q=z1(n,q,k,a);g.insertBefore(Q,y)}else{for(;y!=q.node;)y=w(y);var X=u&&i!=null&&i<=k&&q.lineNumber;q.changes&&(oe(q.changes,"gutter")>-1&&(X=!1),Vp(n,q,k,a)),X&&(R(q.lineNumber),q.lineNumber.appendChild(document.createTextNode(be(n.options,k)))),y=q.node.nextSibling}k+=q.size}for(;y;)y=w(y)}function Nf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Xt(n,"gutterChanged",n)}function Of(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+Wr(n)+"px"}function xg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=xf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var w=a[y].alignable;if(w)for(var S=0;S<w.length;S++)w[S].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function Sg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=be(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(_("div",[_("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Nf(n.display),!0}return!1}function Rf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function _g(n){var i=n.gutters,a=n.gutterSpecs;R(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,w=i.appendChild(_("div",null,"CodeMirror-gutter "+g));y&&(w.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",Nf(n)}function ml(n){_g(n.display),Tn(n),xg(n)}function dS(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=H("div",null,"CodeMirror-code"),u.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=_("div",null,"CodeMirror-cursors"),u.measure=_("div",null,"CodeMirror-measure"),u.lineMeasure=_("div",null,"CodeMirror-measure"),u.lineSpace=H("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=H("div",[u.lineSpace],"CodeMirror-lines");u.mover=_("div",[g],null,"position: relative"),u.sizer=_("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=_("div",null,null,"position: absolute; height: "+P+"px; width: 1px;"),u.gutters=_("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=_("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=_("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&E)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Rf(l.gutters,l.lineNumbers),_g(u),a.init(u)}var ic=0,oi=null;h?oi=-.53:s?oi=15:b?oi=-.7:L&&(oi=-1/3);function kg(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function hS(n){var i=kg(n);return i.x*=oi,i.y*=oi,i}function Tg(n,i){b&&x==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=kg(i),l=a.x,u=a.y,g=oi;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,w=y.scroller,S=w.scrollWidth>w.clientWidth,k=w.scrollHeight>w.clientHeight;if(l&&S||u&&k){if(u&&z&&v){e:for(var D=i.target,q=y.view;D!=w;D=D.parentNode)for(var Q=0;Q<q.length;Q++)if(q[Q].node==D){n.display.currentWheelTarget=D;break e}}if(l&&!s&&!C&&g!=null){u&&k&&hl(n,Math.max(0,w.scrollTop+u*g)),bo(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&k)&&an(i),y.wheelStartX=null;return}if(u&&g!=null){var X=u*g,ce=n.doc.scrollTop,pe=ce+y.wrapper.clientHeight;X<0?ce=Math.max(0,ce+X-50):pe=Math.min(n.doc.height,pe+X+50),Mf(n,{top:ce,bottom:pe})}ic<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=w.scrollLeft,y.wheelStartY=w.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var we=w.scrollLeft-y.wheelStartX,ke=w.scrollTop-y.wheelStartY,Le=ke&&y.wheelDY&&ke/y.wheelDY||we&&y.wheelDX&&we/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Le&&(oi=(oi*ic+Le)/(ic+1),++ic)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Qn=function(n,i){this.ranges=n,this.primIndex=i};Qn.prototype.primary=function(){return this.ranges[this.primIndex]},Qn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!pt(a.anchor,l.anchor)||!pt(a.head,l.head))return!1}return!0},Qn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Kt(this.ranges[i].anchor),Kt(this.ranges[i].head));return new Qn(n,this.primIndex)},Qn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Qn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ae(i,l.from())>=0&&Ae(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return Zo(this.anchor,this.head)},gt.prototype.to=function(){return kn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _r(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(Q,X){return Ae(Q.from(),X.from())}),a=oe(i,u);for(var g=1;g<i.length;g++){var y=i[g],w=i[g-1],S=Ae(w.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var k=Zo(w.from(),y.from()),D=kn(w.to(),y.to()),q=w.empty()?y.from()==y.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new gt(q?D:k,q?k:D))}}return new Qn(i,a)}function $i(n,i){return new Qn([new gt(n,i||n)],0)}function Ii(n){return n.text?ae(n.from.line+n.text.length-1,ge(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function Cg(n,i){if(Ae(n,i.from)<0)return n;if(Ae(n,i.to)<=0)return Ii(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=Ii(i).ch-i.to.ch),ae(a,l)}function Pf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(Cg(u.anchor,i),Cg(u.head,i)))}return _r(n.cm,a,n.sel.primIndex)}function Eg(n,i,a){return n.line==i.line?ae(a.line,n.ch-i.ch+a.ch):ae(a.line+(n.line-i.line),n.ch)}function pS(n,i,a){for(var l=[],u=ae(n.first,0),g=u,y=0;y<i.length;y++){var w=i[y],S=Eg(w.from,u,g),k=Eg(Ii(w),u,g);if(u=w.to,g=k,a=="around"){var D=n.sel.ranges[y],q=Ae(D.head,D.anchor)<0;l[y]=new gt(q?k:S,q?S:k)}else l[y]=new gt(S,S)}return new Qn(l,n.sel.primIndex)}function $f(n){n.doc.mode=Ko(n.options,n.doc.modeOption),yl(n)}function yl(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,vl(n,100),n.state.modeGen++,n.curOp&&Tn(n)}function Ag(n,i){return i.from.ch==0&&i.to.ch==0&&ge(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function If(n,i,a,l){function u(Le){return a?a[Le]:null}function g(Le,Te,Oe){S1(Le,Te,Oe,l),Xt(Le,"change",Le,i)}function y(Le,Te){for(var Oe=[],Be=Le;Be<Te;++Be)Oe.push(new Jo(k[Be],u(Be),l));return Oe}var w=i.from,S=i.to,k=i.text,D=Pe(n,w.line),q=Pe(n,S.line),Q=ge(k),X=u(k.length-1),ce=S.line-w.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(Ag(n,i)){var pe=y(0,k.length-1);g(q,q.text,X),ce&&n.remove(w.line,ce),pe.length&&n.insert(w.line,pe)}else if(D==q)if(k.length==1)g(D,D.text.slice(0,w.ch)+Q+D.text.slice(S.ch),X);else{var we=y(1,k.length-1);we.push(new Jo(Q+D.text.slice(S.ch),X,l)),g(D,D.text.slice(0,w.ch)+k[0],u(0)),n.insert(w.line+1,we)}else if(k.length==1)g(D,D.text.slice(0,w.ch)+k[0]+q.text.slice(S.ch),u(0)),n.remove(w.line+1,ce);else{g(D,D.text.slice(0,w.ch)+k[0],u(0)),g(q,Q+q.text.slice(S.ch),X);var ke=y(1,k.length-1);ce>1&&n.remove(w.line+1,ce-1),n.insert(w.line+1,ke)}Xt(n,"change",n,i)}function Di(n,i,a){function l(u,g,y){if(u.linked)for(var w=0;w<u.linked.length;++w){var S=u.linked[w];if(S.doc!=g){var k=y&&S.sharedHist;a&&!k||(i(S.doc,k),l(S.doc,u,k))}}}l(n,null,!0)}function Lg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Sf(n),$f(n),Mg(n),n.options.direction=i.direction,n.options.lineWrapping||ff(n),n.options.mode=i.modeOption,Tn(n)}function Mg(n){(n.doc.direction=="rtl"?Se:$)(n.display.lineDiv,"CodeMirror-rtl")}function gS(n){Wn(n,function(){Mg(n),Tn(n)})}function oc(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function Df(n,i){var a={from:Kt(i.from),to:Ii(i),text:ti(n,i.from,i.to)};return Rg(n,a,i.from.line,i.to.line+1),Di(n,function(l){return Rg(l,a,i.from.line,i.to.line+1)},!0),a}function Ng(n){for(;n.length;){var i=ge(n);if(i.ranges)n.pop();else break}}function vS(n,i){if(i)return Ng(n.done),ge(n.done);if(n.done.length&&!ge(n.done).ranges)return ge(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ge(n.done)}function Og(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=vS(u,u.lastOp==l)))w=ge(y.changes),Ae(i.from,i.to)==0&&Ae(i.from,w.to)==0?w.to=Ii(i):y.changes.push(Df(n,i));else{var S=ge(u.done);for((!S||!S.ranges)&&sc(n.sel,u.done),y={changes:[Df(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Rt(n,"historyAdded")}function mS(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function yS(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||mS(n,g,ge(u.done),i))?u.done[u.done.length-1]=i:sc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&Ng(u.undone)}function sc(n,i){var a=ge(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Rg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function bS(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function wS(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(bS(a[u]));return l}function Pg(n,i){var a=wS(n,i),l=lf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var w=0;w<y.length;++w){for(var S=y[w],k=0;k<g.length;++k)if(g[k].marker==S.marker)continue e;g.push(S)}else y&&(a[u]=y)}return a}function ss(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Qn.prototype.deepCopy.call(g):g);continue}var y=g.changes,w=[];l.push({changes:w});for(var S=0;S<y.length;++S){var k=y[S],D=void 0;if(w.push({from:k.from,to:k.to,text:k.text}),i)for(var q in k)(D=q.match(/^spans_(\d+)$/))&&oe(i,Number(D[1]))>-1&&(ge(w)[q]=k[q],delete k[q])}}return l}function zf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Ae(i,u)<0;g!=Ae(a,u)<0?(u=i,i=a):g!=Ae(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function lc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),cn(n,new Qn([zf(n.sel.primary(),i,a,u)],0),l)}function $g(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=zf(n.sel.ranges[g],i[g],null,u);var y=_r(n.cm,l,n.sel.primIndex);cn(n,y,a)}function Ff(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,cn(n,_r(n.cm,u,n.sel.primIndex),l)}function Ig(n,i,a,l){cn(n,$i(i,a),l)}function xS(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new gt(Xe(n,u[g].anchor),Xe(n,u[g].head))},origin:a&&a.origin};return Rt(n,"beforeSelectionChange",n,l),n.cm&&Rt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?_r(n.cm,l.ranges,l.ranges.length-1):i}function Dg(n,i,a){var l=n.history.done,u=ge(l);u&&u.ranges?(l[l.length-1]=i,ac(n,i,a)):cn(n,i,a)}function cn(n,i,a){ac(n,i,a),yS(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function ac(n,i,a){(Bn(n,"beforeSelectionChange")||n.cm&&Bn(n.cm,"beforeSelectionChange"))&&(i=xS(n,i,a));var l=a&&a.bias||(Ae(i.primary().head,n.sel.primary().head)<0?-1:1);zg(n,Hg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&is(n.cm)}function zg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,lr(n.cm)),Xt(n,"cursorActivity",n))}function Fg(n){zg(n,Hg(n,n.sel,null,!1))}function Hg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],S=cc(n,y.anchor,w&&w.anchor,a,l),k=y.head==y.anchor?S:cc(n,y.head,w&&w.head,a,l);(u||S!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new gt(S,k))}return u?_r(n.cm,u,i.primIndex):i}function ls(n,i,a,l,u){var g=Pe(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var w=g.markedSpans[y],S=w.marker,k="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,D="selectRight"in S?!S.selectRight:S.inclusiveRight;if((w.from==null||(k?w.from<=i.ch:w.from<i.ch))&&(w.to==null||(D?w.to>=i.ch:w.to>i.ch))){if(u&&(Rt(S,"beforeCursorEnter"),S.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var q=S.find(l<0?1:-1),Q=void 0;if((l<0?D:k)&&(q=Bg(n,q,-l,q&&q.line==i.line?g:null)),q&&q.line==i.line&&(Q=Ae(q,a))&&(l<0?Q<0:Q>0))return ls(n,q,i,l,u)}var X=S.find(l<0?-1:1);return(l<0?k:D)&&(X=Bg(n,X,l,X.line==i.line?g:null)),X?ls(n,X,i,l,u):null}}return i}function cc(n,i,a,l,u){var g=l||1,y=ls(n,i,a,g,u)||!u&&ls(n,i,a,g,!0)||ls(n,i,a,-g,u)||!u&&ls(n,i,a,-g,!0);return y||(n.cantEdit=!0,ae(n.first,0))}function Bg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Xe(n,ae(i.line-1)):null:a>0&&i.ch==(l||Pe(n,i.line)).text.length?i.line<n.first+n.size-1?ae(i.line+1,0):null:new ae(i.line,i.ch+a)}function Wg(n){n.setSelection(ae(n.firstLine(),0),ae(n.lastLine()),G)}function qg(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,w){u&&(l.from=Xe(n,u)),g&&(l.to=Xe(n,g)),y&&(l.text=y),w!==void 0&&(l.origin=w)}),Rt(n,"beforeChange",n,l),n.cm&&Rt(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function as(n,i,a){if(n.cm){if(!n.cm.curOp)return Yt(n.cm,as)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"))&&(i=qg(n,i,!0),!i))){var l=Pp&&!a&&y1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)jg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else jg(n,i)}}function jg(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ae(i.from,i.to)==0)){var a=Pf(n,i);Og(n,i,a,n.cm?n.cm.curOp.id:NaN),bl(n,i,a,lf(n,i));var l=[];Di(n,function(u,g){!g&&oe(l,u.history)==-1&&(Kg(u.history,i),l.push(u.history)),bl(u,i,null,lf(u,i))})}}function uc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,w=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,k=0;k<w.length&&(g=w[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(sc(g,S),a&&!g.equals(n.sel)){cn(n,g,{clearRedo:!1});return}y=g}else if(l){w.push(g);return}else break;var D=[];sc(y,S),S.push({changes:D,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var q=Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"),Q=function(pe){var we=g.changes[pe];if(we.origin=i,q&&!qg(n,we,!1))return w.length=0,{};D.push(Df(n,we));var ke=pe?Pf(n,we):ge(w);bl(n,we,ke,Pg(n,we)),!pe&&n.cm&&n.cm.scrollIntoView({from:we.from,to:Ii(we)});var Le=[];Di(n,function(Te,Oe){!Oe&&oe(Le,Te.history)==-1&&(Kg(Te.history,we),Le.push(Te.history)),bl(Te,we,null,Pg(Te,we))})},X=g.changes.length-1;X>=0;--X){var ce=Q(X);if(ce)return ce.v}}}}function Ug(n,i){if(i!=0&&(n.first+=i,n.sel=new Qn(ye(n.sel.ranges,function(u){return new gt(ae(u.anchor.line+i,u.anchor.ch),ae(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){Tn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ri(n.cm,l,"gutter")}}function bl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Yt(n.cm,bl)(n,i,a,l);if(i.to.line<n.first){Ug(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);Ug(n,u),i={from:ae(n.first,0),to:ae(i.to.line+u,i.to.ch),text:[ge(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:ae(g,Pe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ti(n,i.from,i.to),a||(a=Pf(n,i)),n.cm?SS(n.cm,i,l):If(n,i,l),ac(n,a,G),n.cantEdit&&cc(n,ae(n.firstLine(),0))&&(n.cantEdit=!1)}}function SS(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,w=!1,S=g.line;n.options.lineWrapping||(S=T(xr(Pe(l,g.line))),l.iter(S,y.line+1,function(X){if(X==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&lr(n),If(l,i,a,ug(n)),n.options.lineWrapping||(l.iter(S,g.line+i.text.length,function(X){var ce=Ga(X);ce>u.maxLineLength&&(u.maxLine=X,u.maxLineLength=ce,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),f1(l,g.line),vl(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?Tn(n):g.line==y.line&&i.text.length==1&&!Ag(n.doc,i)?Ri(n,g.line,"text"):Tn(n,g.line,y.line+1,k);var D=Bn(n,"changes"),q=Bn(n,"change");if(q||D){var Q={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};q&&Xt(n,"change",n,Q),D&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(Q)}n.display.selForContextMenu=null}function cs(n,i,a,l,u){var g;l||(l=a),Ae(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),as(n,{from:a,to:l,text:i,origin:u})}function Vg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Gg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)Vg(g.ranges[w].anchor,i,a,l),Vg(g.ranges[w].head,i,a,l);continue}for(var S=0;S<g.changes.length;++S){var k=g.changes[S];if(a<k.from.line)k.from=ae(k.from.line+l,k.from.ch),k.to=ae(k.to.line+l,k.to.ch);else if(i<=k.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Kg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Gg(n.done,a,l,u),Gg(n.undone,a,l,u)}function wl(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Pe(n,Tp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&Ri(n.cm,u,a),g)}function xl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}xl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,_1(u),Xt(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function Sl(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}Sl.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof xl))){var w=[];this.collapse(w),this.children=[new xl(w)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,w=y;w<u.lines.length;){var S=new xl(u.lines.slice(w,w+=25));u.height-=S.height,this.children.splice(++l,0,S),S.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new Sl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=oe(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new Sl(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var _l=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};_l.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=T(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=cl(this);Jn(a,Math.max(0,a.height-g)),n&&(Wn(n,function(){Xg(n,a,-g),Ri(n,l,"widget")}),Xt(n,"lineWidgetCleared",n,this,l))}},_l.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=cl(this)-i;u&&(Oi(this.doc,l)||Jn(l,l.height+u),a&&Wn(a,function(){a.curOp.forceUpdate=!0,Xg(a,l,u),Xt(a,"lineWidgetChanged",a,n,T(l))}))},vr(_l);function Xg(n,i,a){ri(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Af(n,a)}function _S(n,i,a,l){var u=new _l(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),wl(n,i,"widget",function(y){var w=y.widgets||(y.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Oi(n,y)){var S=ri(y)<n.scrollTop;Jn(y,y.height+cl(u)),S&&Af(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Xt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Yg=0,zi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Yg};zi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&xo(n),Bn(this,"clear")){var a=this.find();a&&Xt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],w=sl(y.markedSpans,this);n&&!this.collapsed?Ri(n,T(y),"text"):n&&(w.to!=null&&(u=T(y)),w.from!=null&&(l=T(y))),y.markedSpans=p1(y.markedSpans,w),w.from==null&&this.collapsed&&!Oi(this.doc,y)&&n&&Jn(y,ts(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var k=xr(this.lines[S]),D=Ga(k);D>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=D,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&Tn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Fg(n.doc)),n&&Xt(n,"markerCleared",n,this,l,u),i&&So(n),this.parent&&this.parent.clear()}},zi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=sl(g.markedSpans,this);if(y.from!=null&&(a=ae(i?g:T(g),y.from),n==-1))return a;if(y.to!=null&&(l=ae(i?g:T(g),y.to),n==1))return l}return a&&{from:a,to:l}},zi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Wn(l,function(){var u=i.line,g=T(i.line),y=gf(l,g);if(y&&(ng(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Oi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var S=cl(a)-w;S&&Jn(u,u.height+S)}Xt(l,"markerChanged",l,n)})},zi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||oe(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},zi.prototype.detachLine=function(n){if(this.lines.splice(oe(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},vr(zi);function us(n,i,a,l,u){if(l&&l.shared)return kS(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Yt(n.cm,us)(n,i,a,l,u);var g=new zi(n,u),y=Ae(i,a);if(l&&V(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=H("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Hp(n,i.line,i,a,g)||i.line!=a.line&&Hp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");h1()}g.addToHistory&&Og(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,S=n.cm,k;if(n.iter(w,a.line+1,function(q){S&&g.collapsed&&!S.options.lineWrapping&&xr(q)==S.display.maxLine&&(k=!0),g.collapsed&&w!=i.line&&Jn(q,0),g1(q,new qa(g,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),g.collapsed&&n.iter(i.line,a.line+1,function(q){Oi(n,q)&&Jn(q,0)}),g.clearOnEnter&&He(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(d1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Yg,g.atomic=!0),S){if(k&&(S.curOp.updateMaxLine=!0),g.collapsed)Tn(S,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var D=i.line;D<=a.line;D++)Ri(S,D,"text");g.atomic&&Fg(S.doc),Xt(S,"markerAdded",S,g)}return g}var kl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};kl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Xt(this,"clear")}},kl.prototype.find=function(n,i){return this.primary.find(n,i)},vr(kl);function kS(n,i,a,l,u){l=V(l),l.shared=!1;var g=[us(n,i,a,l,u)],y=g[0],w=l.widgetNode;return Di(n,function(S){w&&(l.widgetNode=w.cloneNode(!0)),g.push(us(S,Xe(S,i),Xe(S,a),l,u));for(var k=0;k<S.linked.length;++k)if(S.linked[k].isParent)return;y=ge(g)}),new kl(g,y)}function Zg(n){return n.findMarks(ae(n.first,0),n.clipPos(ae(n.lastLine())),function(i){return i.parent})}function TS(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Ae(g,y)){var w=us(n,g,y,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function CS(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Di(u.primary.doc,function(S){return g.push(S)});for(var y=0;y<u.markers.length;y++){var w=u.markers[y];oe(g,w.doc)==-1&&(w.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var ES=0,Cn=function(n,i,a,l,u){if(!(this instanceof Cn))return new Cn(n,i,a,l,u);a==null&&(a=0),Sl.call(this,[new xl([new Jo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=ae(a,0);this.sel=$i(g),this.history=new oc(null),this.id=++ES,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),If(this,{from:g,to:g,text:n}),cn(this,$i(g),G)};Cn.prototype=Fe(Sl.prototype,{constructor:Cn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=il(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Zt(function(n){var i=ae(this.first,0),a=this.first+this.size-1;as(this,{from:i,to:ae(a,Pe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&dl(this.cm,0,0),cn(this,$i(i),G)}),replaceRange:function(n,i,a,l){i=Xe(this,i),a=a?Xe(this,a):i,cs(this,n,i,a,l)},getRange:function(n,i,a){var l=ti(this,Xe(this,n),Xe(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(fe(this,n))return Pe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Pe(this,n)),xr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Xe(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zt(function(n,i,a){Ig(this,Xe(this,typeof n=="number"?ae(n,i||0):n),null,a)}),setSelection:Zt(function(n,i,a){Ig(this,Xe(this,n),Xe(this,i||n),a)}),extendSelection:Zt(function(n,i,a){lc(this,Xe(this,n),i&&Xe(this,i),a)}),extendSelections:Zt(function(n,i){$g(this,Cp(this,n),i)}),extendSelectionsBy:Zt(function(n,i){var a=ye(this.sel.ranges,n);$g(this,Cp(this,a),i)}),setSelections:Zt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(Xe(this,n[u].anchor),Xe(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),cn(this,_r(this.cm,l,i),a)}}),addSelection:Zt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(Xe(this,n),Xe(this,i||n))),cn(this,_r(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=ti(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=ti(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Zt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var w=i&&i!="end"&&pS(this,l,i),S=l.length-1;S>=0;S--)as(this,l[S]);w?Dg(this,w):this.cm&&is(this.cm)}),undo:Zt(function(){uc(this,"undo")}),redo:Zt(function(){uc(this,"redo")}),undoSelection:Zt(function(){uc(this,"undo",!0)}),redoSelection:Zt(function(){uc(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new oc(this.history),Di(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:ss(this.history.done),undone:ss(this.history.undone)}},setHistory:function(n){var i=this.history=new oc(this.history);i.done=ss(n.done.slice(0),null,!0),i.undone=ss(n.undone.slice(0),null,!0)},setGutterMarker:Zt(function(n,i,a){return wl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&ut(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Zt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&wl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,ut(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!fe(this,n)||(i=n,n=Pe(this,n),!n))return null}else if(i=T(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Zt(function(n,i,a){return wl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(Y(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Zt(function(n,i,a){return wl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(Y(a));if(!y)return!1;var w=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Zt(function(n,i,a){return _S(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return us(this,Xe(this,n),Xe(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Xe(this,n),us(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Xe(this,n);var i=[],a=Pe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Xe(this,n),i=Xe(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var w=0;w<y.length;w++){var S=y[w];!(S.to!=null&&u==n.line&&n.ch>=S.to||S.from==null&&u!=n.line||S.from!=null&&u==i.line&&S.from>=i.ch)&&(!a||a(S.marker))&&l.push(S.marker.parent||S.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Xe(this,ae(a,i))},indexFromPos:function(n){n=Xe(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new Cn(il(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new Cn(il(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],TS(l,Zg(this)),l},unlinkDoc:function(n){if(n instanceof Tt&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),CS(Zg(this));break}}if(n.history==this.history){var l=[n.id];Di(n,function(u){return l.push(u.id)},!0),n.history=new oc(null),n.history.done=ss(this.history.done,l),n.history.undone=ss(this.history.undone,l)}},iterLinkedDocs:function(n){Di(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):ar(n)},lineSeparator:function(){return this.lineSep||`
29
- `},setDirection:Zt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&gS(this.cm))})}),Cn.prototype.eachLine=Cn.prototype.iter;var Jg=0;function AS(n){var i=this;if(Qg(i),!(Pt(i,n)||ii(i.display,n))){an(n),h&&(Jg=+new Date);var a=mo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,w=function(){++y==u&&Yt(i,function(){a=Xe(i.doc,a);var X={from:a,to:a,text:i.doc.splitLines(g.filter(function(ce){return ce!=null}).join(i.doc.lineSeparator())),origin:"paste"};as(i.doc,X),Dg(i.doc,$i(Xe(i.doc,a),Xe(i.doc,Ii(X))))})()},S=function(X,ce){if(i.options.allowDropFileTypes&&oe(i.options.allowDropFileTypes,X.type)==-1){w();return}var pe=new FileReader;pe.onerror=function(){return w()},pe.onload=function(){var we=pe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(we)){w();return}g[ce]=we,w()},pe.readAsText(X)},k=0;k<l.length;k++)S(l[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var D=n.dataTransfer.getData("Text");if(D){var q;if(i.state.draggingText&&!i.state.draggingText.copy&&(q=i.listSelections()),ac(i.doc,$i(a,a)),q)for(var Q=0;Q<q.length;++Q)cs(i.doc,"",q[Q].anchor,q[Q].head,"drag");i.replaceSelection(D,"around","paste"),i.display.input.focus()}}catch{}}}}function LS(n,i){if(h&&(!n.state.draggingText||+new Date-Jg<100)){Ai(i);return}if(!(Pt(n,i)||ii(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!L)){var a=_("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),C&&a.parentNode.removeChild(a)}}function MS(n,i){var a=mo(n,i);if(a){var l=document.createDocumentFragment();_f(n,a,l),n.display.dragCursor||(n.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),N(n.display.dragCursor,l)}}function Qg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function ev(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var tv=!1;function NS(){tv||(OS(),tv=!0)}function OS(){var n;He(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,ev(RS)},100))}),He(window,"blur",function(){return ev(rs)})}function RS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Fi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Tl=0;Tl<10;Tl++)Fi[Tl+48]=Fi[Tl+96]=String(Tl);for(var fc=65;fc<=90;fc++)Fi[fc]=String.fromCharCode(fc);for(var Cl=1;Cl<=12;Cl++)Fi[Cl+111]=Fi[Cl+63235]="F"+Cl;var si={};si.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},si.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},si.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},si.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},si.default=z?si.macDefault:si.pcDefault;function PS(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var w=i[y];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))a=!0;else if(/^(c|ctrl|control)$/i.test(w))l=!0;else if(/^s(hift)?$/i.test(w))u=!0;else throw new Error("Unrecognized modifier name: "+w)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function $S(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=ye(a.split(" "),PS),g=0;g<u.length;g++){var y=void 0,w=void 0;g==u.length-1?(w=u.join(" "),y=l):(w=u.slice(0,g+1).join(" "),y="...");var S=i[w];if(!S)i[w]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var k in i)n[k]=i[k];return n}function fs(n,i,a,l){i=dc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return fs(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=fs(n,i.fallthrough[g],a,l);if(y)return y}}}function nv(n){var i=typeof n=="string"?n:Fi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function rv(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(ne?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(ne?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function iv(n,i){if(C&&n.keyCode==34&&n.char)return!1;var a=Fi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),rv(a,n,i))}function dc(n){return typeof n=="string"?si[n]:n}function ds(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Ae(g.from,ge(l).to)<=0;){var y=l.pop();if(Ae(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Wn(n,function(){for(var w=l.length-1;w>=0;w--)cs(n.doc,"",l[w].from,l[w].to,"+delete");is(n)})}function Hf(n,i,a){var l=Gt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Bf(n,i,a){var l=Hf(n,i.ch,a);return l==null?null:new ae(i.line,l,a<0?"after":"before")}function Wf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=tt(a,i.doc.direction);if(g){var y=u<0?ge(g):g[0],w=u<0==(y.level==1),S=w?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var D=es(i,a);k=u<0?a.text.length-1:0;var q=qr(i,D,k).top;k=Bt(function(Q){return qr(i,D,Q).top==q},u<0==(y.level==1)?y.from:y.to-1,k),S=="before"&&(k=Hf(a,k,1))}else k=u<0?y.to:y.from;return new ae(l,k,S)}}return new ae(l,u<0?a.text.length:0,u<0?"before":"after")}function IS(n,i,a,l){var u=tt(i,n.doc.direction);if(!u)return Bf(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=zt(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Bf(i,a,l);var w=function(ke,Le){return Hf(i,ke instanceof ae?ke.ch:ke,Le)},S,k=function(ke){return n.options.lineWrapping?(S=S||es(n,i),cg(n,i,S,ke)):{begin:0,end:i.text.length}},D=k(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var q=y.level==1==l<0,Q=w(a,q?1:-1);if(Q!=null&&(q?Q<=y.to&&Q<=D.end:Q>=y.from&&Q>=D.begin)){var X=q?"before":"after";return new ae(a.line,Q,X)}}var ce=function(ke,Le,Te){for(var Oe=function(St,Jt){return Jt?new ae(a.line,w(St,1),"before"):new ae(a.line,St,"after")};ke>=0&&ke<u.length;ke+=Le){var Be=u[ke],De=Le>0==(Be.level!=1),et=De?Te.begin:w(Te.end,-1);if(Be.from<=et&&et<Be.to||(et=De?Be.from:w(Be.to,-1),Te.begin<=et&&et<Te.end))return Oe(et,De)}},pe=ce(g+l,l,D);if(pe)return pe;var we=l>0?D.end:w(D.begin,-1);return we!=null&&!(l>0&&we==i.text.length)&&(pe=ce(l>0?0:u.length-1,l,k(we)),pe)?pe:null}var El={selectAll:Wg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),G)},killLine:function(n){return ds(n,function(i){if(i.empty()){var a=Pe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:ae(i.head.line+1,0)}:{from:i.head,to:ae(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ds(n,function(i){return{from:ae(i.from().line,0),to:Xe(n.doc,ae(i.to().line+1,0))}})},delLineLeft:function(n){return ds(n,function(i){return{from:ae(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ds(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return ds(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(ae(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(ae(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return ov(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return sv(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return DS(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?sv(n,i.head):l},he)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=J(n.getLine(g.line),g.ch,l);i.push(Ce(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Pe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new ae(u.line,u.ch-1)),u.ch>0)u=new ae(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),ae(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Pe(n.doc,u.line-1).text;y&&(u=new ae(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),ae(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);is(n)})},openLine:function(n){return n.replaceSelection(`
30
- `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function ov(n,i){var a=Pe(n.doc,i),l=xr(a);return l!=a&&(i=T(l)),Wf(!0,n,l,i,1)}function DS(n,i){var a=Pe(n.doc,i),l=w1(a);return l!=a&&(i=T(l)),Wf(!0,n,a,i,-1)}function sv(n,i){var a=ov(n,i.line),l=Pe(n.doc,a.line),u=tt(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return ae(a.line,y?0:g,a.sticky)}return a}function hc(n,i,a){if(typeof i=="string"&&(i=El[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=B}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function zS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=fs(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&fs(i,n.options.extraKeys,a,n)||fs(i,n.options.keyMap,a,n)}var FS=new le;function Al(n,i,a,l){var u=n.state.keySeq;if(u){if(nv(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:FS.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),lv(n,u+" "+i,a,l))return!0}return lv(n,i,a,l)}function lv(n,i,a,l){var u=zS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Xt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(an(a),kf(n)),!!u}function av(n,i){var a=iv(i,!0);return a?i.shiftKey&&!n.state.keySeq?Al(n,"Shift-"+a,i,function(l){return hc(n,l,!0)})||Al(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return hc(n,l)}):Al(n,a,i,function(l){return hc(n,l)}):!1}function HS(n,i,a){return Al(n,"'"+a+"'",i,function(l){return hc(n,l,!0)})}var qf=null;function cv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ve(Ye(i)),!Pt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=av(i,n);C&&(qf=l?a:null,!l&&a==88&&!Ba&&(z?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!z&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&BS(i)}}function BS(n){var i=n.display.lineDiv;Se(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&($(i,"CodeMirror-crosshair"),ln(document,"keyup",a),ln(document,"mouseover",a))}He(document,"keyup",a),He(document,"mouseover",a)}function uv(n){n.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,n)}function fv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ii(i.display,n)||Pt(i,n)||n.ctrlKey&&!n.altKey||z&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(C&&a==qf){qf=null,an(n);return}if(!(C&&(!n.which||n.which<10)&&av(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(HS(i,n,u)||i.display.input.onKeyPress(n))}}}var WS=400,jf=function(n,i,a){this.time=n,this.pos=i,this.button=a};jf.prototype.compare=function(n,i,a){return this.time+WS>n&&Ae(i,this.pos)==0&&a==this.button};var Ll,Ml;function qS(n,i){var a=+new Date;return Ml&&Ml.compare(a,n,i)?(Ll=Ml=null,"triple"):Ll&&Ll.compare(a,n,i)?(Ml=new jf(a,n,i),Ll=null,"double"):(Ll=new jf(a,n,i),Ml=null,"single")}function dv(n){var i=this,a=i.display;if(!(Pt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ii(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Uf(i,n)){var l=mo(i,n),u=mr(n),g=l?qS(l,u):"single";Me(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&jS(i,u,l,g,n))&&(u==1?l?VS(i,l,g,n):tl(n)==a.scroller&&an(n):u==2?(l&&lc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(K?i.display.input.onContextMenu(n):Tf(i)))}}}function jS(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,Al(n,rv(g,u),u,function(y){if(typeof y=="string"&&(y=El[y]),!y)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=y(n,a)!=B}finally{n.state.suppressEdits=!1}return w})}function US(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=U?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=z?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(z?a.altKey:a.ctrlKey)),u}function VS(n,i,a,l){h?setTimeout(I(hg,n),0):n.curOp.focus=ve(Ye(n));var u=US(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&nf&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Ae((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ae(y.to(),i)>0||i.xRel<0)?GS(n,l,i,u):KS(n,l,i,u)}function GS(n,i,a,l){var u=n.display,g=!1,y=Yt(n,function(k){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Tf(n)),ln(u.wrapper.ownerDocument,"mouseup",y),ln(u.wrapper.ownerDocument,"mousemove",w),ln(u.scroller,"dragstart",S),ln(u.scroller,"drop",y),g||(an(k),l.addNew||lc(n.doc,a,null,null,l.extend),v&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},S=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,He(u.wrapper.ownerDocument,"mouseup",y),He(u.wrapper.ownerDocument,"mousemove",w),He(u.scroller,"dragstart",S),He(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function hv(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(ae(i.line,0),Xe(n.doc,ae(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function KS(n,i,a,l){h&&Tf(n);var u=n.display,g=n.doc;an(i);var y,w,S=g.sel,k=S.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?y=k[w]:y=new gt(a,a)):(y=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=mo(n,i,!0,!0),w=-1;else{var D=hv(n,a,l.unit);l.extend?y=zf(y,D.anchor,D.head,l.extend):y=D}l.addNew?w==-1?(w=k.length,cn(g,_r(n,k.concat([y]),w),{scroll:!1,origin:"*mouse"})):k.length>1&&k[w].empty()&&l.unit=="char"&&!l.extend?(cn(g,_r(n,k.slice(0,w).concat(k.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),S=g.sel):Ff(g,w,y,ue):(w=0,cn(g,new Qn([y],0),ue),S=g.sel);var q=a;function Q(Te){if(Ae(q,Te)!=0)if(q=Te,l.unit=="rectangle"){for(var Oe=[],Be=n.options.tabSize,De=J(Pe(g,a.line).text,a.ch,Be),et=J(Pe(g,Te.line).text,Te.ch,Be),St=Math.min(De,et),Jt=Math.max(De,et),Nt=Math.min(a.line,Te.line),qn=Math.min(n.lastLine(),Math.max(a.line,Te.line));Nt<=qn;Nt++){var En=Pe(g,Nt).text,Wt=de(En,St,Be);St==Jt?Oe.push(new gt(ae(Nt,Wt),ae(Nt,Wt))):En.length>Wt&&Oe.push(new gt(ae(Nt,Wt),ae(Nt,de(En,Jt,Be))))}Oe.length||Oe.push(new gt(a,a)),cn(g,_r(n,S.ranges.slice(0,w).concat(Oe),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var An=y,on=hv(n,Te,l.unit),Ut=An.anchor,qt;Ae(on.anchor,Ut)>0?(qt=on.head,Ut=Zo(An.from(),on.anchor)):(qt=on.anchor,Ut=kn(An.to(),on.head));var It=S.ranges.slice(0);It[w]=XS(n,new gt(Xe(g,Ut),qt)),cn(g,_r(n,It,w),ue)}}var X=u.wrapper.getBoundingClientRect(),ce=0;function pe(Te){var Oe=++ce,Be=mo(n,Te,!0,l.unit=="rectangle");if(Be)if(Ae(Be,q)!=0){n.curOp.focus=ve(Ye(n)),Q(Be);var De=tc(u,g);(Be.line>=De.to||Be.line<De.from)&&setTimeout(Yt(n,function(){ce==Oe&&pe(Te)}),150)}else{var et=Te.clientY<X.top?-20:Te.clientY>X.bottom?20:0;et&&setTimeout(Yt(n,function(){ce==Oe&&(u.scroller.scrollTop+=et,pe(Te))}),50)}}function we(Te){n.state.selectingText=!1,ce=1/0,Te&&(an(Te),u.input.focus()),ln(u.wrapper.ownerDocument,"mousemove",ke),ln(u.wrapper.ownerDocument,"mouseup",Le),g.history.lastSelOrigin=null}var ke=Yt(n,function(Te){Te.buttons===0||!mr(Te)?we(Te):pe(Te)}),Le=Yt(n,we);n.state.selectingText=Le,He(u.wrapper.ownerDocument,"mousemove",ke),He(u.wrapper.ownerDocument,"mouseup",Le)}function XS(n,i){var a=i.anchor,l=i.head,u=Pe(n.doc,a.line);if(Ae(a,l)==0&&a.sticky==l.sticky)return i;var g=tt(u);if(!g)return i;var y=zt(g,a.ch,a.sticky),w=g[y];if(w.from!=a.ch&&w.to!=a.ch)return i;var S=y+(w.from==a.ch==(w.level!=1)?0:1);if(S==0||S==g.length)return i;var k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var D=zt(g,l.ch,l.sticky),q=D-y||(l.ch-a.ch)*(w.level==1?-1:1);D==S-1||D==S?k=q<0:k=q>0}var Q=g[S+(k?-1:0)],X=k==(Q.level==1),ce=X?Q.from:Q.to,pe=X?"after":"before";return a.ch==ce&&a.sticky==pe?i:new gt(new ae(a.line,ce,pe),l)}function pv(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&an(i);var y=n.display,w=y.lineDiv.getBoundingClientRect();if(g>w.bottom||!Bn(n,a))return _n(i);g-=w.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var k=y.gutters.childNodes[S];if(k&&k.getBoundingClientRect().right>=u){var D=W(n.doc,g),q=n.display.gutterSpecs[S];return Rt(n,a,n,D,q.className,i),_n(i)}}}function Uf(n,i){return pv(n,i,"gutterClick",!0)}function gv(n,i){ii(n.display,i)||YS(n,i)||Pt(n,i,"contextmenu")||K||n.display.input.onContextMenu(i)}function YS(n,i){return Bn(n,"gutterContextMenu")?pv(n,i,"gutterContextMenu",!1):!1}function vv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ul(n)}var hs={toString:function(){return"CodeMirror.Init"}},mv={},pc={};function ZS(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(w,S,k){k!=hs&&g(w,S,k)}:g)}n.defineOption=a,n.Init=hs,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,$f(l)},!0),a("indentUnit",2,$f,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){yl(l),ul(l),Tn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(S){for(var k=0;;){var D=S.text.indexOf(u,k);if(D==-1)break;k=D+u.length,g.push(ae(y,D))}y++});for(var w=g.length-1;w>=0;w--)cs(l.doc,u,g[w],ae(g[w].line,g[w].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=hs&&l.refresh()}),a("specialCharPlaceholder",C1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!re),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){vv(l),ml(l)},!0),a("keyMap","default",function(l,u,g){var y=dc(u),w=g!=hs&&dc(g);w&&w.detach&&w.detach(l,y),y.attach&&y.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,QS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Rf(u,l.options.lineNumbers),ml(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?xf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return os(l)},!0),a("scrollbarStyle","native",function(l){bg(l),os(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Rf(l.options.gutters,u),ml(l)},!0),a("firstLineNumber",1,ml,!0),a("lineNumberFormatter",function(l){return l},ml,!0),a("showCursorWhenSelecting",!1,fl,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(rs(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,JS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,fl,!0),a("singleCursorHeightPerLine",!0,fl,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,yl,!0),a("addModeClass",!1,yl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,yl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function JS(n,i,a){var l=a&&a!=hs;if(!i!=!l){var u=n.display.dragFunctions,g=i?He:ln;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function QS(n){n.options.lineWrapping?(Se(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):($(n.display.wrapper,"CodeMirror-wrap"),ff(n)),Sf(n),Tn(n),ul(n),setTimeout(function(){return os(n)},100)}function Tt(n,i){var a=this;if(!(this instanceof Tt))return new Tt(n,i);this.options=i=i?V(i):{},V(mv,i,!1);var l=i.value;typeof l=="string"?l=new Cn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Tt.inputStyles[i.inputStyle](this),g=this.display=new dS(n,l,u,i);g.wrapper.CodeMirror=this,vv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!E&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),e_(this),NS(),xo(this),this.curOp.forceUpdate=!0,Lg(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Cf(a)},20):rs(this);for(var y in pc)pc.hasOwnProperty(y)&&pc[y](this,i[y],hs);Sg(this),i.finishInit&&i.finishInit(this);for(var w=0;w<Vf.length;++w)Vf[w](this);So(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Tt.defaults=mv,Tt.optionHandlers=pc;function e_(n){var i=n.display;He(i.scroller,"mousedown",Yt(n,dv)),h&&p<11?He(i.scroller,"dblclick",Yt(n,function(S){if(!Pt(n,S)){var k=mo(n,S);if(!(!k||Uf(n,S)||ii(n.display,S))){an(S);var D=n.findWordAt(k);lc(n.doc,D.anchor,D.head)}}})):He(i.scroller,"dblclick",function(S){return Pt(n,S)||an(S)}),He(i.scroller,"contextmenu",function(S){return gv(n,S)}),He(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||gv(n,S)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(S){if(S.touches.length!=1)return!1;var k=S.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(S,k){if(k.left==null)return!0;var D=k.left-S.left,q=k.top-S.top;return D*D+q*q>400}He(i.scroller,"touchstart",function(S){if(!Pt(n,S)&&!g(S)&&!Uf(n,S)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),He(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),He(i.scroller,"touchend",function(S){var k=i.activeTouch;if(k&&!ii(i,S)&&k.left!=null&&!k.moved&&new Date-k.start<300){var D=n.coordsChar(i.activeTouch,"page"),q;!k.prev||y(k,k.prev)?q=new gt(D,D):!k.prev.prev||y(k,k.prev.prev)?q=n.findWordAt(D):q=new gt(ae(D.line,0),Xe(n.doc,ae(D.line+1,0))),n.setSelection(q.anchor,q.head),n.focus(),an(S)}u()}),He(i.scroller,"touchcancel",u),He(i.scroller,"scroll",function(){i.scroller.clientHeight&&(hl(n,i.scroller.scrollTop),bo(n,i.scroller.scrollLeft,!0),Rt(n,"scroll",n))}),He(i.scroller,"mousewheel",function(S){return Tg(n,S)}),He(i.scroller,"DOMMouseScroll",function(S){return Tg(n,S)}),He(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Pt(n,S)||Ai(S)},over:function(S){Pt(n,S)||(MS(n,S),Ai(S))},start:function(S){return LS(n,S)},drop:Yt(n,AS),leave:function(S){Pt(n,S)||Qg(n)}};var w=i.input.getField();He(w,"keyup",function(S){return uv.call(n,S)}),He(w,"keydown",Yt(n,cv)),He(w,"keypress",Yt(n,fv)),He(w,"focus",function(S){return Cf(n,S)}),He(w,"blur",function(S){return rs(n,S)})}var Vf=[];Tt.defineInitHook=function(n){return Vf.push(n)};function Nl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=ol(n,i).state:a="prev");var y=n.options.tabSize,w=Pe(u,i),S=J(w.text,null,y);w.stateAfter&&(w.stateAfter=null);var k=w.text.match(/^\s*/)[0],D;if(!l&&!/\S/.test(w.text))D=0,a="not";else if(a=="smart"&&(D=u.mode.indent(g,w.text.slice(k.length),w.text),D==B||D>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?D=J(Pe(u,i-1).text,null,y):D=0:a=="add"?D=S+n.options.indentUnit:a=="subtract"?D=S-n.options.indentUnit:typeof a=="number"&&(D=S+a),D=Math.max(0,D);var q="",Q=0;if(n.options.indentWithTabs)for(var X=Math.floor(D/y);X;--X)Q+=y,q+=" ";if(Q<D&&(q+=Ce(D-Q)),q!=k)return cs(u,q,ae(i,0),ae(i,k.length),"+input"),w.stateAfter=null,!0;for(var ce=0;ce<u.sel.ranges.length;ce++){var pe=u.sel.ranges[ce];if(pe.head.line==i&&pe.head.ch<k.length){var we=ae(i,k.length);Ff(u,ce,new gt(we,we));break}}}var kr=null;function gc(n){kr=n}function Gf(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,w=u=="paste"||n.state.pasteIncoming>y,S=ar(i),k=null;if(w&&l.ranges.length>1)if(kr&&kr.text.join(`
31
- `)==i){if(l.ranges.length%kr.text.length==0){k=[];for(var D=0;D<kr.text.length;D++)k.push(g.splitLines(kr.text[D]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=ye(S,function(ke){return[ke]}));for(var q=n.curOp.updateInput,Q=l.ranges.length-1;Q>=0;Q--){var X=l.ranges[Q],ce=X.from(),pe=X.to();X.empty()&&(a&&a>0?ce=ae(ce.line,ce.ch-a):n.state.overwrite&&!w?pe=ae(pe.line,Math.min(Pe(g,pe.line).text.length,pe.ch+ge(S).length)):w&&kr&&kr.lineWise&&kr.text.join(`
32
- `)==S.join(`
33
- `)&&(ce=pe=ae(ce.line,0)));var we={from:ce,to:pe,text:k?k[Q%k.length]:S,origin:u||(w?"paste":n.state.cutIncoming>y?"cut":"+input")};as(n.doc,we),Xt(n,"inputRead",n,we)}i&&!w&&bv(n,i),is(n),n.curOp.updateInput<2&&(n.curOp.updateInput=q),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function yv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Wn(i,function(){return Gf(i,a,0,null,"paste")}),!0}function bv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var w=0;w<g.electricChars.length;w++)if(i.indexOf(g.electricChars.charAt(w))>-1){y=Nl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Pe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Nl(n,u.head.line,"smart"));y&&Xt(n,"electricInput",n,u.head.line)}}}function wv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:ae(u,0),head:ae(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Kf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function xv(){var n=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=_("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),O&&(n.style.border="1px solid black"),i}function t_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Me(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Yt(this,i[l])(this,u,y),Rt(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](dc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:gn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");qe(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,Tn(this)}),removeOverlay:gn(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,Tn(this);return}}}),indentLine:gn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),fe(this.doc,l)&&Nl(this,l,u,g)}),indentSelection:gn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var w=u[y];if(w.empty())w.head.line>g&&(Nl(this,w.head.line,l,!0),g=w.head.line,y==this.doc.sel.primIndex&&is(this));else{var S=w.from(),k=w.to(),D=Math.max(g,S.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var q=D;q<g;++q)Nl(this,q,l);var Q=this.doc.sel.ranges;S.ch==0&&u.length==Q.length&&Q[y].from().ch>0&&Ff(this.doc,y,new gt(S,Q[y].to()),G)}}}),getTokenAt:function(l,u){return Np(this,l,u)},getLineTokens:function(l,u){return Np(this,ae(l),u,!0)},getTokenTypeAt:function(l){l=Xe(this.doc,l);var u=Ap(this,Pe(this.doc,l.line)),g=0,y=(u.length-1)/2,w=l.ch,S;if(w==0)S=u[2];else for(;;){var k=g+y>>1;if((k?u[k*2-1]:0)>=w)y=k;else if(u[k*2+1]<w)g=k+1;else{S=u[k*2+2];break}}var D=S?S.indexOf("overlay "):-1;return D<0?S:D==0?null:S.slice(0,D-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")y[w[u]]&&g.push(y[w[u]]);else if(w[u])for(var S=0;S<w[u].length;S++){var k=y[w[u][S]];k&&g.push(k)}else w.helperType&&y[w.helperType]?g.push(y[w.helperType]):y[w.name]&&g.push(y[w.name]);for(var D=0;D<y._global.length;D++){var q=y._global[D];q.pred(w,this)&&oe(g,q.val)==-1&&g.push(q.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=Tp(g,l??g.first+g.size-1),ol(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Xe(this.doc,l):g=l?y.from():y.to(),Sr(this,g,u||"page")},charCoords:function(l,u){return Za(this,Xe(this.doc,l),u||"page")},coordsChar:function(l,u){return l=sg(this,l,u||"page"),yf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=sg(this,{top:l,left:0},u||"page").top,W(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,w;if(typeof l=="number"){var S=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>S&&(l=S,y=!0),w=Pe(this.doc,l)}else w=l;return Ya(this,w,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ri(w):0)},defaultTextHeight:function(){return ts(this.display)},defaultCharWidth:function(){return ns(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,w){var S=this.display;l=Sr(this,Xe(this.doc,l));var k=l.bottom,D=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var q=Math.max(S.wrapper.clientHeight,this.doc.height),Q=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>q)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=q&&(k=l.bottom),D+u.offsetWidth>Q&&(D=Q-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",w=="right"?(D=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?D=0:w=="middle"&&(D=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=D+"px"),g&&J1(this,{left:D,top:k,right:D+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:gn(cv),triggerOnKeyPress:gn(fv),triggerOnKeyUp:uv,triggerOnMouseDown:gn(dv),execCommand:function(l){if(El.hasOwnProperty(l))return El[l].call(null,this)},triggerElectric:gn(function(l){bv(this,l)}),findPosH:function(l,u,g,y){var w=1;u<0&&(w=-1,u=-u);for(var S=Xe(this.doc,l),k=0;k<u&&(S=Xf(this.doc,S,w,g,y),!S.hitSide);++k);return S},moveH:gn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?Xf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:gn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ds(this,function(w){var S=Xf(y,w.head,l,u,!1);return l<0?{from:S,to:w.head}:{from:w.head,to:S}})}),findPosV:function(l,u,g,y){var w=1,S=y;u<0&&(w=-1,u=-u);for(var k=Xe(this.doc,l),D=0;D<u;++D){var q=Sr(this,k,"div");if(S==null?S=q.left:q.left=S,k=Sv(this,q,w,g),k.hitSide)break}return k},moveV:gn(function(l,u){var g=this,y=this.doc,w=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(D){if(S)return l<0?D.from():D.to();var q=Sr(g,D.head,"div");D.goalColumn!=null&&(q.left=D.goalColumn),w.push(q.left);var Q=Sv(g,q,l,u);return u=="page"&&D==y.sel.primary()&&Af(g,Za(g,Q,"div").top-q.top),Q},he),w.length)for(var k=0;k<y.sel.ranges.length;k++)y.sel.ranges[k].goalColumn=w[k]}),findWordAt:function(l){var u=this.doc,g=Pe(u,l.line).text,y=l.ch,w=l.ch;if(g){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&y?--y:++w;for(var k=g.charAt(y),D=lt(k,S)?function(q){return lt(q,S)}:/\s/.test(k)?function(q){return/\s/.test(q)}:function(q){return!/\s/.test(q)&&!lt(q)};y>0&&D(g.charAt(y-1));)--y;for(;w<g.length&&D(g.charAt(w));)++w}return new gt(ae(l.line,y),ae(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Se(this.display.cursorDiv,"CodeMirror-overwrite"):$(this.display.cursorDiv,"CodeMirror-overwrite"),Rt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ve(Ye(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:gn(function(l,u){dl(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Wr(this)-this.display.barHeight,width:l.scrollWidth-Wr(this)-this.display.barWidth,clientHeight:pf(this),clientWidth:go(this)}},scrollIntoView:gn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:ae(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Q1(this,l):gg(this,l.from,l.to,l.margin)}),setSize:gn(function(l,u){var g=this,y=function(S){return typeof S=="number"||/^\d+$/.test(String(S))?S+"px":S};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&rg(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(S){if(S.widgets){for(var k=0;k<S.widgets.length;k++)if(S.widgets[k].noHScroll){Ri(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Rt(this,"refresh",this)}),operation:function(l){return Wn(this,l)},startOperation:function(){return xo(this)},endOperation:function(){return So(this)},refresh:gn(function(){var l=this.display.cachedTextHeight;Tn(this),this.curOp.forceUpdate=!0,ul(this),dl(this,this.doc.scrollLeft,this.doc.scrollTop),Nf(this.display),(l==null||Math.abs(l-ts(this.display))>.5||this.options.lineWrapping)&&Sf(this),Rt(this,"refresh",this)}),swapDoc:gn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Lg(this,l),ul(this),this.display.input.reset(),dl(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Xt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},vr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function Xf(n,i,a,l,u){var g=i,y=a,w=Pe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function k(){var Le=i.line+S;return Le<n.first||Le>=n.first+n.size?!1:(i=new ae(Le,i.ch,i.sticky),w=Pe(n,Le))}function D(Le){var Te;if(l=="codepoint"){var Oe=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Oe))Te=null;else{var Be=a>0?Oe>=55296&&Oe<56320:Oe>=56320&&Oe<57343;Te=new ae(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(Be?2:1))),-a)}}else u?Te=IS(n.cm,w,i,a):Te=Bf(w,i,a);if(Te==null)if(!Le&&k())i=Wf(u,n.cm,w,i.line,S);else return!1;else i=Te;return!0}if(l=="char"||l=="codepoint")D();else if(l=="column")D(!0);else if(l=="word"||l=="group")for(var q=null,Q=l=="group",X=n.cm&&n.cm.getHelper(i,"wordChars"),ce=!0;!(a<0&&!D(!ce));ce=!1){var pe=w.text.charAt(i.ch)||`
34
- `,we=lt(pe,X)?"w":Q&&pe==`
35
- `?"n":!Q||/\s/.test(pe)?null:"p";if(Q&&!ce&&!we&&(we="s"),q&&q!=we){a<0&&(a=1,D(),i.sticky="after");break}if(we&&(q=we),a>0&&!D(!ce))break}var ke=cc(n,i,g,y,!0);return pt(g,ke)&&(ke.hitSide=!0),ke}function Sv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,Me(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(w-.5*ts(n.display),3);y=(a>0?i.bottom:i.top)+a*S}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var k;k=yf(n,g,y),!!k.outside;){if(a<0?y<=0:y>=u.height){k.hitSide=!0;break}y+=a*5}return k}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,Kf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(w){for(var S=w.target;S;S=S.parentNode){if(S==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(S.className))break}return!1}He(u,"paste",function(w){!g(w)||Pt(l,w)||yv(w,l)||p<=11&&setTimeout(Yt(l,function(){return i.updateFromDOM()}),20)}),He(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),He(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),He(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),He(u,"touchstart",function(){return a.forceCompositionEnd()}),He(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(w){if(!(!g(w)||Pt(l,w))){if(l.somethingSelected())gc({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=wv(l);gc({lineWise:!0,text:S.text}),w.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,G),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var k=kr.text.join(`
36
- `);if(w.clipboardData.setData("Text",k),w.clipboardData.getData("Text")==k){w.preventDefault();return}}var D=xv(),q=D.firstChild;Kf(q),l.display.lineSpace.insertBefore(D,l.display.lineSpace.firstChild),q.value=kr.text.join(`
37
- `);var Q=ve(ze(u));je(q),setTimeout(function(){l.display.lineSpace.removeChild(D),Q.focus(),Q==u&&a.showPrimarySelection()},50)}}He(u,"copy",y),He(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=dg(this.cm,!1);return n.focus=ve(ze(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=vc(i,n.anchorNode,n.anchorOffset),y=vc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ae(Zo(g,y),l)==0&&Ae(kn(g,y),u)==0)){var w=i.display.view,S=l.line>=i.display.viewFrom&&_v(i,l)||{node:w[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&_v(i,u);if(!k){var D=w[w.length-1].measure,q=D.maps?D.maps[D.maps.length-1]:D.map;k={node:q[q.length-1],offset:q[q.length-2]-q[q.length-3]}}if(!S||!k){n.removeAllRanges();return}var Q=n.rangeCount&&n.getRangeAt(0),X;try{X=j(S.node,S.offset,k.offset,k.node)}catch{}X&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),X.collapsed||(n.removeAllRanges(),n.addRange(X))):(n.removeAllRanges(),n.addRange(X)),Q&&n.anchorNode==null?n.addRange(Q):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){N(this.cm.display.cursorDiv,n.cursors),N(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ie(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ve(ze(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Wn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(F&&b&&this.cm.display.gutterSpecs.length&&n_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=vc(i,n.anchorNode,n.anchorOffset),l=vc(i,n.focusNode,n.focusOffset);a&&l&&Wn(i,function(){cn(i.doc,$i(a,l),G),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=ae(l.line-1,Pe(n.doc,l.line-1).length)),u.ch==Pe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=ae(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,w;l.line==i.viewFrom||(g=yo(n,l.line))==0?(y=T(i.view[0].line),w=i.view[0].node):(y=T(i.view[g].line),w=i.view[g-1].node.nextSibling);var S=yo(n,u.line),k,D;if(S==i.view.length-1?(k=i.viewTo-1,D=i.lineDiv.lastChild):(k=T(i.view[S+1].line)-1,D=i.view[S+1].node.previousSibling),!w)return!1;for(var q=n.doc.splitLines(r_(n,w,D,y,k)),Q=ti(n.doc,ae(y,0),ae(k,Pe(n.doc,k).text.length));q.length>1&&Q.length>1;)if(ge(q)==ge(Q))q.pop(),Q.pop(),k--;else if(q[0]==Q[0])q.shift(),Q.shift(),y++;else break;for(var X=0,ce=0,pe=q[0],we=Q[0],ke=Math.min(pe.length,we.length);X<ke&&pe.charCodeAt(X)==we.charCodeAt(X);)++X;for(var Le=ge(q),Te=ge(Q),Oe=Math.min(Le.length-(q.length==1?X:0),Te.length-(Q.length==1?X:0));ce<Oe&&Le.charCodeAt(Le.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)++ce;if(q.length==1&&Q.length==1&&y==l.line)for(;X&&X>l.ch&&Le.charCodeAt(Le.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)X--,ce++;q[q.length-1]=Le.slice(0,Le.length-ce).replace(/^\u200b+/,""),q[0]=q[0].slice(X).replace(/\u200b+$/,"");var Be=ae(y,X),De=ae(k,Q.length?ge(Q).length-ce:0);if(q.length>1||q[0]||Ae(Be,De))return cs(n.doc,q,Be,De,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Wn(this.cm,function(){return Tn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Yt(this.cm,Gf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function _v(n,i){var a=gf(n,i.line);if(!a||a.hidden)return null;var l=Pe(n.doc,i.line),u=Jp(a,l,i.line),g=tt(l,n.doc.direction),y="left";if(g){var w=zt(g,i.ch);y=w%2?"right":"left"}var S=tg(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function n_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ps(n,i){return i&&(n.bad=!0),n}function r_(n,i,a,l,u){var g="",y=!1,w=n.doc.lineSeparator(),S=!1;function k(X){return function(ce){return ce.id==X}}function D(){y&&(g+=w,S&&(g+=w),y=S=!1)}function q(X){X&&(D(),g+=X)}function Q(X){if(X.nodeType==1){var ce=X.getAttribute("cm-text");if(ce){q(ce);return}var pe=X.getAttribute("cm-marker"),we;if(pe){var ke=n.findMarks(ae(l,0),ae(u+1,0),k(+pe));ke.length&&(we=ke[0].find(0))&&q(ti(n.doc,we.from,we.to).join(w));return}if(X.getAttribute("contenteditable")=="false")return;var Le=/^(pre|div|p|li|table|br)$/i.test(X.nodeName);if(!/^br$/i.test(X.nodeName)&&X.textContent.length==0)return;Le&&D();for(var Te=0;Te<X.childNodes.length;Te++)Q(X.childNodes[Te]);/^(pre|p)$/i.test(X.nodeName)&&(S=!0),Le&&(y=!0)}else X.nodeType==3&&q(X.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Q(i),i!=a;)i=i.nextSibling,S=!1;return g}function vc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return ps(n.clipPos(ae(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return i_(g,i,a)}}function i_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ie(l,i))return ps(ae(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ge(n.rest):n.line;return ps(ae(T(g),g.text.length),u)}var y=i.nodeType==3?i:null,w=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var S=n.measure,k=S.maps;function D(we,ke,Le){for(var Te=-1;Te<(k?k.length:0);Te++)for(var Oe=Te<0?S.map:k[Te],Be=0;Be<Oe.length;Be+=3){var De=Oe[Be+2];if(De==we||De==ke){var et=T(Te<0?n.line:n.rest[Te]),St=Oe[Be]+Le;return(Le<0||De!=we)&&(St=Oe[Be+(Le?1:0)]),ae(et,St)}}}var q=D(y,w,a);if(q)return ps(q,u);for(var Q=w.nextSibling,X=y?y.nodeValue.length-a:0;Q;Q=Q.nextSibling){if(q=D(Q,Q.firstChild,0),q)return ps(ae(q.line,q.ch-X),u);X+=Q.textContent.length}for(var ce=w.previousSibling,pe=a;ce;ce=ce.previousSibling){if(q=D(ce,ce.firstChild,-1),q)return ps(ae(q.line,q.ch+pe),u);pe+=ce.textContent.length}}var Ft=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ft.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),O&&(u.style.width="0px"),He(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),He(u,"paste",function(y){Pt(l,y)||yv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Pt(l,y)){if(l.somethingSelected())gc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=wv(l);gc({lineWise:!0,text:w.text}),y.type=="cut"?l.setSelections(w.ranges,null,G):(a.prevInput="",u.value=w.text.join(`
38
- `),je(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}He(u,"cut",g),He(u,"copy",g),He(n.scroller,"paste",function(y){if(!(ii(n,y)||Pt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=y.clipboardData,u.dispatchEvent(w)}}),He(n.lineSpace,"selectstart",function(y){ii(n,y)||an(y)}),He(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),He(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Ft.prototype.createField=function(n){this.wrapper=xv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Kf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ft.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Ft.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=dg(n);if(n.options.moveInputWithCursor){var u=Sr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},Ft.prototype.showSelection=function(n){var i=this.cm,a=i.display;N(a.cursorDiv,n.cursors),N(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Ft.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ft.prototype.getField=function(){return this.textarea},Ft.prototype.supportsTouch=function(){return!1},Ft.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||ve(ze(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ft.prototype.blur=function(){this.textarea.blur()},Ft.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ft.prototype.receivedFocus=function(){this.slowPoll()},Ft.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Ft.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Ft.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Mi(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||z&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l="​"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,w=Math.min(l.length,u.length);y<w&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Wn(i,function(){Gf(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
39
- `)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ft.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ft.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ft.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=mo(a,n),y=l.scroller.scrollTop;if(!g||C)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Yt(a,cn)(a.doc,$i(g),G);var S=u.style.cssText,k=i.wrapper.style.cssText,D=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
40
- top: `+(n.clientY-D.top-5)+"px; left: "+(n.clientX-D.left-5)+`px;
41
- z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
42
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var q;v&&(q=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,q),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=X,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function Q(){if(u.selectionStart!=null){var pe=a.somethingSelected(),we="​"+(pe?u.value:"");u.value="⇚",u.value=we,i.prevInput=pe?"":"​",u.selectionStart=1,u.selectionEnd=we.length,l.selForContextMenu=a.doc.sel}}function X(){if(i.contextMenuPending==X&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&Q();var pe=0,we=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Yt(a,Wg)(a):pe++<10?l.detectingSelectAll=setTimeout(we,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(we,200)}}if(h&&p>=9&&Q(),K){Ai(n);var ce=function(){ln(window,"mouseup",ce),setTimeout(X,20)};He(window,"mouseup",ce)}else setTimeout(X,50)},Ft.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Ft.prototype.setUneditable=function(){},Ft.prototype.needsContentAttribute=!1;function o_(n,i){if(i=i?V(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=ve(ze(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(He(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(ln(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=Tt(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return w}function s_(n){n.off=ln,n.on=He,n.wheelEventPixels=hS,n.Doc=Cn,n.splitLines=ar,n.countColumn=J,n.findColumn=de,n.isWordChar=rt,n.Pass=B,n.signal=Rt,n.Line=Jo,n.changeEnd=Ii,n.scrollbarModel=yg,n.Pos=ae,n.cmpPos=Ae,n.modes=Vo,n.mimeModes=br,n.resolveMode=Go,n.getMode=Ko,n.modeExtensions=Ni,n.extendMode=Xo,n.copyState=Hr,n.startState=Yo,n.innerMode=rl,n.commands=El,n.keyMap=si,n.keyName=iv,n.isModifierKey=nv,n.lookupKey=fs,n.normalizeKeyMap=$S,n.StringStream=$t,n.SharedTextMarker=kl,n.TextMarker=zi,n.LineWidget=_l,n.e_preventDefault=an,n.e_stopPropagation=jo,n.e_stop=Ai,n.addClass=Se,n.contains=ie,n.rmClass=$,n.keyNames=Fi}ZS(Tt),t_(Tt);var l_="iter insert remove copy getEditor constructor".split(" ");for(var mc in Cn.prototype)Cn.prototype.hasOwnProperty(mc)&&oe(l_,mc)<0&&(Tt.prototype[mc]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Cn.prototype[mc]));return vr(Cn),Tt.inputStyles={textarea:Ft,contenteditable:yt},Tt.defineMode=function(n){!Tt.defaults.mode&&n!="null"&&(Tt.defaults.mode=n),wr.apply(this,arguments)},Tt.defineMIME=po,Tt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Tt.defineMIME("text/plain","null"),Tt.defineExtension=function(n,i){Tt.prototype[n]=i},Tt.defineDocExtension=function(n,i){Cn.prototype[n]=i},Tt.fromTextArea=o_,s_(Tt),Tt.version="5.65.18",Tt}))})(Bc)),Bc.exports}var XA=Qs();const YA=$w(XA);var gd={},Tr={};const ZA="Á",JA="á",QA="Ă",eL="ă",tL="∾",nL="∿",rL="∾̳",iL="Â",oL="â",sL="´",lL="А",aL="а",cL="Æ",uL="æ",fL="⁡",dL="𝔄",hL="𝔞",pL="À",gL="à",vL="ℵ",mL="ℵ",yL="Α",bL="α",wL="Ā",xL="ā",SL="⨿",_L="&",kL="&",TL="⩕",CL="⩓",EL="∧",AL="⩜",LL="⩘",ML="⩚",NL="∠",OL="⦤",RL="∠",PL="⦨",$L="⦩",IL="⦪",DL="⦫",zL="⦬",FL="⦭",HL="⦮",BL="⦯",WL="∡",qL="∟",jL="⊾",UL="⦝",VL="∢",GL="Å",KL="⍼",XL="Ą",YL="ą",ZL="𝔸",JL="𝕒",QL="⩯",eM="≈",tM="⩰",nM="≊",rM="≋",iM="'",oM="⁡",sM="≈",lM="≊",aM="Å",cM="å",uM="𝒜",fM="𝒶",dM="≔",hM="*",pM="≈",gM="≍",vM="Ã",mM="ã",yM="Ä",bM="ä",wM="∳",xM="⨑",SM="≌",_M="϶",kM="‵",TM="∽",CM="⋍",EM="∖",AM="⫧",LM="⊽",MM="⌅",NM="⌆",OM="⌅",RM="⎵",PM="⎶",$M="≌",IM="Б",DM="б",zM="„",FM="∵",HM="∵",BM="∵",WM="⦰",qM="϶",jM="ℬ",UM="ℬ",VM="Β",GM="β",KM="ℶ",XM="≬",YM="𝔅",ZM="𝔟",JM="⋂",QM="◯",eN="⋃",tN="⨀",nN="⨁",rN="⨂",iN="⨆",oN="★",sN="▽",lN="△",aN="⨄",cN="⋁",uN="⋀",fN="⤍",dN="⧫",hN="▪",pN="▴",gN="▾",vN="◂",mN="▸",yN="␣",bN="▒",wN="░",xN="▓",SN="█",_N="=⃥",kN="≡⃥",TN="⫭",CN="⌐",EN="𝔹",AN="𝕓",LN="⊥",MN="⊥",NN="⋈",ON="⧉",RN="┐",PN="╕",$N="╖",IN="╗",DN="┌",zN="╒",FN="╓",HN="╔",BN="─",WN="═",qN="┬",jN="╤",UN="╥",VN="╦",GN="┴",KN="╧",XN="╨",YN="╩",ZN="⊟",JN="⊞",QN="⊠",eO="┘",tO="╛",nO="╜",rO="╝",iO="└",oO="╘",sO="╙",lO="╚",aO="│",cO="║",uO="┼",fO="╪",dO="╫",hO="╬",pO="┤",gO="╡",vO="╢",mO="╣",yO="├",bO="╞",wO="╟",xO="╠",SO="‵",_O="˘",kO="˘",TO="¦",CO="𝒷",EO="ℬ",AO="⁏",LO="∽",MO="⋍",NO="⧅",OO="\\",RO="⟈",PO="•",$O="•",IO="≎",DO="⪮",zO="≏",FO="≎",HO="≏",BO="Ć",WO="ć",qO="⩄",jO="⩉",UO="⩋",VO="∩",GO="⋒",KO="⩇",XO="⩀",YO="ⅅ",ZO="∩︀",JO="⁁",QO="ˇ",e2="ℭ",t2="⩍",n2="Č",r2="č",i2="Ç",o2="ç",s2="Ĉ",l2="ĉ",a2="∰",c2="⩌",u2="⩐",f2="Ċ",d2="ċ",h2="¸",p2="¸",g2="⦲",v2="¢",m2="·",y2="·",b2="𝔠",w2="ℭ",x2="Ч",S2="ч",_2="✓",k2="✓",T2="Χ",C2="χ",E2="ˆ",A2="≗",L2="↺",M2="↻",N2="⊛",O2="⊚",R2="⊝",P2="⊙",$2="®",I2="Ⓢ",D2="⊖",z2="⊕",F2="⊗",H2="○",B2="⧃",W2="≗",q2="⨐",j2="⫯",U2="⧂",V2="∲",G2="”",K2="’",X2="♣",Y2="♣",Z2=":",J2="∷",Q2="⩴",eR="≔",tR="≔",nR=",",rR="@",iR="∁",oR="∘",sR="∁",lR="ℂ",aR="≅",cR="⩭",uR="≡",fR="∮",dR="∯",hR="∮",pR="𝕔",gR="ℂ",vR="∐",mR="∐",yR="©",bR="©",wR="℗",xR="∳",SR="↵",_R="✗",kR="⨯",TR="𝒞",CR="𝒸",ER="⫏",AR="⫑",LR="⫐",MR="⫒",NR="⋯",OR="⤸",RR="⤵",PR="⋞",$R="⋟",IR="↶",DR="⤽",zR="⩈",FR="⩆",HR="≍",BR="∪",WR="⋓",qR="⩊",jR="⊍",UR="⩅",VR="∪︀",GR="↷",KR="⤼",XR="⋞",YR="⋟",ZR="⋎",JR="⋏",QR="¤",eP="↶",tP="↷",nP="⋎",rP="⋏",iP="∲",oP="∱",sP="⌭",lP="†",aP="‡",cP="ℸ",uP="↓",fP="↡",dP="⇓",hP="‐",pP="⫤",gP="⊣",vP="⤏",mP="˝",yP="Ď",bP="ď",wP="Д",xP="д",SP="‡",_P="⇊",kP="ⅅ",TP="ⅆ",CP="⤑",EP="⩷",AP="°",LP="∇",MP="Δ",NP="δ",OP="⦱",RP="⥿",PP="𝔇",$P="𝔡",IP="⥥",DP="⇃",zP="⇂",FP="´",HP="˙",BP="˝",WP="`",qP="˜",jP="⋄",UP="⋄",VP="⋄",GP="♦",KP="♦",XP="¨",YP="ⅆ",ZP="ϝ",JP="⋲",QP="÷",e$="÷",t$="⋇",n$="⋇",r$="Ђ",i$="ђ",o$="⌞",s$="⌍",l$="$",a$="𝔻",c$="𝕕",u$="¨",f$="˙",d$="⃜",h$="≐",p$="≑",g$="≐",v$="∸",m$="∔",y$="⊡",b$="⌆",w$="∯",x$="¨",S$="⇓",_$="⇐",k$="⇔",T$="⫤",C$="⟸",E$="⟺",A$="⟹",L$="⇒",M$="⊨",N$="⇑",O$="⇕",R$="∥",P$="⤓",$$="↓",I$="↓",D$="⇓",z$="⇵",F$="̑",H$="⇊",B$="⇃",W$="⇂",q$="⥐",j$="⥞",U$="⥖",V$="↽",G$="⥟",K$="⥗",X$="⇁",Y$="↧",Z$="⊤",J$="⤐",Q$="⌟",eI="⌌",tI="𝒟",nI="𝒹",rI="Ѕ",iI="ѕ",oI="⧶",sI="Đ",lI="đ",aI="⋱",cI="▿",uI="▾",fI="⇵",dI="⥯",hI="⦦",pI="Џ",gI="џ",vI="⟿",mI="É",yI="é",bI="⩮",wI="Ě",xI="ě",SI="Ê",_I="ê",kI="≖",TI="≕",CI="Э",EI="э",AI="⩷",LI="Ė",MI="ė",NI="≑",OI="ⅇ",RI="≒",PI="𝔈",$I="𝔢",II="⪚",DI="È",zI="è",FI="⪖",HI="⪘",BI="⪙",WI="∈",qI="⏧",jI="ℓ",UI="⪕",VI="⪗",GI="Ē",KI="ē",XI="∅",YI="∅",ZI="◻",JI="∅",QI="▫",eD=" ",tD=" ",nD=" ",rD="Ŋ",iD="ŋ",oD=" ",sD="Ę",lD="ę",aD="𝔼",cD="𝕖",uD="⋕",fD="⧣",dD="⩱",hD="ε",pD="Ε",gD="ε",vD="ϵ",mD="≖",yD="≕",bD="≂",wD="⪖",xD="⪕",SD="⩵",_D="=",kD="≂",TD="≟",CD="⇌",ED="≡",AD="⩸",LD="⧥",MD="⥱",ND="≓",OD="ℯ",RD="ℰ",PD="≐",$D="⩳",ID="≂",DD="Η",zD="η",FD="Ð",HD="ð",BD="Ë",WD="ë",qD="€",jD="!",UD="∃",VD="∃",GD="ℰ",KD="ⅇ",XD="ⅇ",YD="≒",ZD="Ф",JD="ф",QD="♀",ez="ffi",tz="ff",nz="ffl",rz="𝔉",iz="𝔣",oz="fi",sz="◼",lz="▪",az="fj",cz="♭",uz="fl",fz="▱",dz="ƒ",hz="𝔽",pz="𝕗",gz="∀",vz="∀",mz="⋔",yz="⫙",bz="ℱ",wz="⨍",xz="½",Sz="⅓",_z="¼",kz="⅕",Tz="⅙",Cz="⅛",Ez="⅔",Az="⅖",Lz="¾",Mz="⅗",Nz="⅜",Oz="⅘",Rz="⅚",Pz="⅝",$z="⅞",Iz="⁄",Dz="⌢",zz="𝒻",Fz="ℱ",Hz="ǵ",Bz="Γ",Wz="γ",qz="Ϝ",jz="ϝ",Uz="⪆",Vz="Ğ",Gz="ğ",Kz="Ģ",Xz="Ĝ",Yz="ĝ",Zz="Г",Jz="г",Qz="Ġ",eF="ġ",tF="≥",nF="≧",rF="⪌",iF="⋛",oF="≥",sF="≧",lF="⩾",aF="⪩",cF="⩾",uF="⪀",fF="⪂",dF="⪄",hF="⋛︀",pF="⪔",gF="𝔊",vF="𝔤",mF="≫",yF="⋙",bF="⋙",wF="ℷ",xF="Ѓ",SF="ѓ",_F="⪥",kF="≷",TF="⪒",CF="⪤",EF="⪊",AF="⪊",LF="⪈",MF="≩",NF="⪈",OF="≩",RF="⋧",PF="𝔾",$F="𝕘",IF="`",DF="≥",zF="⋛",FF="≧",HF="⪢",BF="≷",WF="⩾",qF="≳",jF="𝒢",UF="ℊ",VF="≳",GF="⪎",KF="⪐",XF="⪧",YF="⩺",ZF=">",JF=">",QF="≫",eH="⋗",tH="⦕",nH="⩼",rH="⪆",iH="⥸",oH="⋗",sH="⋛",lH="⪌",aH="≷",cH="≳",uH="≩︀",fH="≩︀",dH="ˇ",hH=" ",pH="½",gH="ℋ",vH="Ъ",mH="ъ",yH="⥈",bH="↔",wH="⇔",xH="↭",SH="^",_H="ℏ",kH="Ĥ",TH="ĥ",CH="♥",EH="♥",AH="…",LH="⊹",MH="𝔥",NH="ℌ",OH="ℋ",RH="⤥",PH="⤦",$H="⇿",IH="∻",DH="↩",zH="↪",FH="𝕙",HH="ℍ",BH="―",WH="─",qH="𝒽",jH="ℋ",UH="ℏ",VH="Ħ",GH="ħ",KH="≎",XH="≏",YH="⁃",ZH="‐",JH="Í",QH="í",e3="⁣",t3="Î",n3="î",r3="И",i3="и",o3="İ",s3="Е",l3="е",a3="¡",c3="⇔",u3="𝔦",f3="ℑ",d3="Ì",h3="ì",p3="ⅈ",g3="⨌",v3="∭",m3="⧜",y3="℩",b3="IJ",w3="ij",x3="Ī",S3="ī",_3="ℑ",k3="ⅈ",T3="ℐ",C3="ℑ",E3="ı",A3="ℑ",L3="⊷",M3="Ƶ",N3="⇒",O3="℅",R3="∞",P3="⧝",$3="ı",I3="⊺",D3="∫",z3="∬",F3="ℤ",H3="∫",B3="⊺",W3="⋂",q3="⨗",j3="⨼",U3="⁣",V3="⁢",G3="Ё",K3="ё",X3="Į",Y3="į",Z3="𝕀",J3="𝕚",Q3="Ι",eB="ι",tB="⨼",nB="¿",rB="𝒾",iB="ℐ",oB="∈",sB="⋵",lB="⋹",aB="⋴",cB="⋳",uB="∈",fB="⁢",dB="Ĩ",hB="ĩ",pB="І",gB="і",vB="Ï",mB="ï",yB="Ĵ",bB="ĵ",wB="Й",xB="й",SB="𝔍",_B="𝔧",kB="ȷ",TB="𝕁",CB="𝕛",EB="𝒥",AB="𝒿",LB="Ј",MB="ј",NB="Є",OB="є",RB="Κ",PB="κ",$B="ϰ",IB="Ķ",DB="ķ",zB="К",FB="к",HB="𝔎",BB="𝔨",WB="ĸ",qB="Х",jB="х",UB="Ќ",VB="ќ",GB="𝕂",KB="𝕜",XB="𝒦",YB="𝓀",ZB="⇚",JB="Ĺ",QB="ĺ",e5="⦴",t5="ℒ",n5="Λ",r5="λ",i5="⟨",o5="⟪",s5="⦑",l5="⟨",a5="⪅",c5="ℒ",u5="«",f5="⇤",d5="⤟",h5="←",p5="↞",g5="⇐",v5="⤝",m5="↩",y5="↫",b5="⤹",w5="⥳",x5="↢",S5="⤙",_5="⤛",k5="⪫",T5="⪭",C5="⪭︀",E5="⤌",A5="⤎",L5="❲",M5="{",N5="[",O5="⦋",R5="⦏",P5="⦍",$5="Ľ",I5="ľ",D5="Ļ",z5="ļ",F5="⌈",H5="{",B5="Л",W5="л",q5="⤶",j5="“",U5="„",V5="⥧",G5="⥋",K5="↲",X5="≤",Y5="≦",Z5="⟨",J5="⇤",Q5="←",e8="←",t8="⇐",n8="⇆",r8="↢",i8="⌈",o8="⟦",s8="⥡",l8="⥙",a8="⇃",c8="⌊",u8="↽",f8="↼",d8="⇇",h8="↔",p8="↔",g8="⇔",v8="⇆",m8="⇋",y8="↭",b8="⥎",w8="↤",x8="⊣",S8="⥚",_8="⋋",k8="⧏",T8="⊲",C8="⊴",E8="⥑",A8="⥠",L8="⥘",M8="↿",N8="⥒",O8="↼",R8="⪋",P8="⋚",$8="≤",I8="≦",D8="⩽",z8="⪨",F8="⩽",H8="⩿",B8="⪁",W8="⪃",q8="⋚︀",j8="⪓",U8="⪅",V8="⋖",G8="⋚",K8="⪋",X8="⋚",Y8="≦",Z8="≶",J8="≶",Q8="⪡",eW="≲",tW="⩽",nW="≲",rW="⥼",iW="⌊",oW="𝔏",sW="𝔩",lW="≶",aW="⪑",cW="⥢",uW="↽",fW="↼",dW="⥪",hW="▄",pW="Љ",gW="љ",vW="⇇",mW="≪",yW="⋘",bW="⌞",wW="⇚",xW="⥫",SW="◺",_W="Ŀ",kW="ŀ",TW="⎰",CW="⎰",EW="⪉",AW="⪉",LW="⪇",MW="≨",NW="⪇",OW="≨",RW="⋦",PW="⟬",$W="⇽",IW="⟦",DW="⟵",zW="⟵",FW="⟸",HW="⟷",BW="⟷",WW="⟺",qW="⟼",jW="⟶",UW="⟶",VW="⟹",GW="↫",KW="↬",XW="⦅",YW="𝕃",ZW="𝕝",JW="⨭",QW="⨴",e4="∗",t4="_",n4="↙",r4="↘",i4="◊",o4="◊",s4="⧫",l4="(",a4="⦓",c4="⇆",u4="⌟",f4="⇋",d4="⥭",h4="‎",p4="⊿",g4="‹",v4="𝓁",m4="ℒ",y4="↰",b4="↰",w4="≲",x4="⪍",S4="⪏",_4="[",k4="‘",T4="‚",C4="Ł",E4="ł",A4="⪦",L4="⩹",M4="<",N4="<",O4="≪",R4="⋖",P4="⋋",$4="⋉",I4="⥶",D4="⩻",z4="◃",F4="⊴",H4="◂",B4="⦖",W4="⥊",q4="⥦",j4="≨︀",U4="≨︀",V4="¯",G4="♂",K4="✠",X4="✠",Y4="↦",Z4="↦",J4="↧",Q4="↤",eq="↥",tq="▮",nq="⨩",rq="М",iq="м",oq="—",sq="∺",lq="∡",aq=" ",cq="ℳ",uq="𝔐",fq="𝔪",dq="℧",hq="µ",pq="*",gq="⫰",vq="∣",mq="·",yq="⊟",bq="−",wq="∸",xq="⨪",Sq="∓",_q="⫛",kq="…",Tq="∓",Cq="⊧",Eq="𝕄",Aq="𝕞",Lq="∓",Mq="𝓂",Nq="ℳ",Oq="∾",Rq="Μ",Pq="μ",$q="⊸",Iq="⊸",Dq="∇",zq="Ń",Fq="ń",Hq="∠⃒",Bq="≉",Wq="⩰̸",qq="≋̸",jq="ʼn",Uq="≉",Vq="♮",Gq="ℕ",Kq="♮",Xq=" ",Yq="≎̸",Zq="≏̸",Jq="⩃",Qq="Ň",ej="ň",tj="Ņ",nj="ņ",rj="≇",ij="⩭̸",oj="⩂",sj="Н",lj="н",aj="–",cj="⤤",uj="↗",fj="⇗",dj="↗",hj="≠",pj="≐̸",gj="​",vj="​",mj="​",yj="​",bj="≢",wj="⤨",xj="≂̸",Sj="≫",_j="≪",kj=`
43
- `,Tj="∄",Cj="∄",Ej="𝔑",Aj="𝔫",Lj="≧̸",Mj="≱",Nj="≱",Oj="≧̸",Rj="⩾̸",Pj="⩾̸",$j="⋙̸",Ij="≵",Dj="≫⃒",zj="≯",Fj="≯",Hj="≫̸",Bj="↮",Wj="⇎",qj="⫲",jj="∋",Uj="⋼",Vj="⋺",Gj="∋",Kj="Њ",Xj="њ",Yj="↚",Zj="⇍",Jj="‥",Qj="≦̸",eU="≰",tU="↚",nU="⇍",rU="↮",iU="⇎",oU="≰",sU="≦̸",lU="⩽̸",aU="⩽̸",cU="≮",uU="⋘̸",fU="≴",dU="≪⃒",hU="≮",pU="⋪",gU="⋬",vU="≪̸",mU="∤",yU="⁠",bU=" ",wU="𝕟",xU="ℕ",SU="⫬",_U="¬",kU="≢",TU="≭",CU="∦",EU="∉",AU="≠",LU="≂̸",MU="∄",NU="≯",OU="≱",RU="≧̸",PU="≫̸",$U="≹",IU="⩾̸",DU="≵",zU="≎̸",FU="≏̸",HU="∉",BU="⋵̸",WU="⋹̸",qU="∉",jU="⋷",UU="⋶",VU="⧏̸",GU="⋪",KU="⋬",XU="≮",YU="≰",ZU="≸",JU="≪̸",QU="⩽̸",e6="≴",t6="⪢̸",n6="⪡̸",r6="∌",i6="∌",o6="⋾",s6="⋽",l6="⊀",a6="⪯̸",c6="⋠",u6="∌",f6="⧐̸",d6="⋫",h6="⋭",p6="⊏̸",g6="⋢",v6="⊐̸",m6="⋣",y6="⊂⃒",b6="⊈",w6="⊁",x6="⪰̸",S6="⋡",_6="≿̸",k6="⊃⃒",T6="⊉",C6="≁",E6="≄",A6="≇",L6="≉",M6="∤",N6="∦",O6="∦",R6="⫽⃥",P6="∂̸",$6="⨔",I6="⊀",D6="⋠",z6="⊀",F6="⪯̸",H6="⪯̸",B6="⤳̸",W6="↛",q6="⇏",j6="↝̸",U6="↛",V6="⇏",G6="⋫",K6="⋭",X6="⊁",Y6="⋡",Z6="⪰̸",J6="𝒩",Q6="𝓃",eV="∤",tV="∦",nV="≁",rV="≄",iV="≄",oV="∤",sV="∦",lV="⋢",aV="⋣",cV="⊄",uV="⫅̸",fV="⊈",dV="⊂⃒",hV="⊈",pV="⫅̸",gV="⊁",vV="⪰̸",mV="⊅",yV="⫆̸",bV="⊉",wV="⊃⃒",xV="⊉",SV="⫆̸",_V="≹",kV="Ñ",TV="ñ",CV="≸",EV="⋪",AV="⋬",LV="⋫",MV="⋭",NV="Ν",OV="ν",RV="#",PV="№",$V=" ",IV="≍⃒",DV="⊬",zV="⊭",FV="⊮",HV="⊯",BV="≥⃒",WV=">⃒",qV="⤄",jV="⧞",UV="⤂",VV="≤⃒",GV="<⃒",KV="⊴⃒",XV="⤃",YV="⊵⃒",ZV="∼⃒",JV="⤣",QV="↖",eG="⇖",tG="↖",nG="⤧",rG="Ó",iG="ó",oG="⊛",sG="Ô",lG="ô",aG="⊚",cG="О",uG="о",fG="⊝",dG="Ő",hG="ő",pG="⨸",gG="⊙",vG="⦼",mG="Œ",yG="œ",bG="⦿",wG="𝔒",xG="𝔬",SG="˛",_G="Ò",kG="ò",TG="⧁",CG="⦵",EG="Ω",AG="∮",LG="↺",MG="⦾",NG="⦻",OG="‾",RG="⧀",PG="Ō",$G="ō",IG="Ω",DG="ω",zG="Ο",FG="ο",HG="⦶",BG="⊖",WG="𝕆",qG="𝕠",jG="⦷",UG="“",VG="‘",GG="⦹",KG="⊕",XG="↻",YG="⩔",ZG="∨",JG="⩝",QG="ℴ",e9="ℴ",t9="ª",n9="º",r9="⊶",i9="⩖",o9="⩗",s9="⩛",l9="Ⓢ",a9="𝒪",c9="ℴ",u9="Ø",f9="ø",d9="⊘",h9="Õ",p9="õ",g9="⨶",v9="⨷",m9="⊗",y9="Ö",b9="ö",w9="⌽",x9="‾",S9="⏞",_9="⎴",k9="⏜",T9="¶",C9="∥",E9="∥",A9="⫳",L9="⫽",M9="∂",N9="∂",O9="П",R9="п",P9="%",$9=".",I9="‰",D9="⊥",z9="‱",F9="𝔓",H9="𝔭",B9="Φ",W9="φ",q9="ϕ",j9="ℳ",U9="☎",V9="Π",G9="π",K9="⋔",X9="ϖ",Y9="ℏ",Z9="ℎ",J9="ℏ",Q9="⨣",e7="⊞",t7="⨢",n7="+",r7="∔",i7="⨥",o7="⩲",s7="±",l7="±",a7="⨦",c7="⨧",u7="±",f7="ℌ",d7="⨕",h7="𝕡",p7="ℙ",g7="£",v7="⪷",m7="⪻",y7="≺",b7="≼",w7="⪷",x7="≺",S7="≼",_7="≺",k7="⪯",T7="≼",C7="≾",E7="⪯",A7="⪹",L7="⪵",M7="⋨",N7="⪯",O7="⪳",R7="≾",P7="′",$7="″",I7="ℙ",D7="⪹",z7="⪵",F7="⋨",H7="∏",B7="∏",W7="⌮",q7="⌒",j7="⌓",U7="∝",V7="∝",G7="∷",K7="∝",X7="≾",Y7="⊰",Z7="𝒫",J7="𝓅",Q7="Ψ",eK="ψ",tK=" ",nK="𝔔",rK="𝔮",iK="⨌",oK="𝕢",sK="ℚ",lK="⁗",aK="𝒬",cK="𝓆",uK="ℍ",fK="⨖",dK="?",hK="≟",pK='"',gK='"',vK="⇛",mK="∽̱",yK="Ŕ",bK="ŕ",wK="√",xK="⦳",SK="⟩",_K="⟫",kK="⦒",TK="⦥",CK="⟩",EK="»",AK="⥵",LK="⇥",MK="⤠",NK="⤳",OK="→",RK="↠",PK="⇒",$K="⤞",IK="↪",DK="↬",zK="⥅",FK="⥴",HK="⤖",BK="↣",WK="↝",qK="⤚",jK="⤜",UK="∶",VK="ℚ",GK="⤍",KK="⤏",XK="⤐",YK="❳",ZK="}",JK="]",QK="⦌",eX="⦎",tX="⦐",nX="Ř",rX="ř",iX="Ŗ",oX="ŗ",sX="⌉",lX="}",aX="Р",cX="р",uX="⤷",fX="⥩",dX="”",hX="”",pX="↳",gX="ℜ",vX="ℛ",mX="ℜ",yX="ℝ",bX="ℜ",wX="▭",xX="®",SX="®",_X="∋",kX="⇋",TX="⥯",CX="⥽",EX="⌋",AX="𝔯",LX="ℜ",MX="⥤",NX="⇁",OX="⇀",RX="⥬",PX="Ρ",$X="ρ",IX="ϱ",DX="⟩",zX="⇥",FX="→",HX="→",BX="⇒",WX="⇄",qX="↣",jX="⌉",UX="⟧",VX="⥝",GX="⥕",KX="⇂",XX="⌋",YX="⇁",ZX="⇀",JX="⇄",QX="⇌",eY="⇉",tY="↝",nY="↦",rY="⊢",iY="⥛",oY="⋌",sY="⧐",lY="⊳",aY="⊵",cY="⥏",uY="⥜",fY="⥔",dY="↾",hY="⥓",pY="⇀",gY="˚",vY="≓",mY="⇄",yY="⇌",bY="‏",wY="⎱",xY="⎱",SY="⫮",_Y="⟭",kY="⇾",TY="⟧",CY="⦆",EY="𝕣",AY="ℝ",LY="⨮",MY="⨵",NY="⥰",OY=")",RY="⦔",PY="⨒",$Y="⇉",IY="⇛",DY="›",zY="𝓇",FY="ℛ",HY="↱",BY="↱",WY="]",qY="’",jY="’",UY="⋌",VY="⋊",GY="▹",KY="⊵",XY="▸",YY="⧎",ZY="⧴",JY="⥨",QY="℞",eZ="Ś",tZ="ś",nZ="‚",rZ="⪸",iZ="Š",oZ="š",sZ="⪼",lZ="≻",aZ="≽",cZ="⪰",uZ="⪴",fZ="Ş",dZ="ş",hZ="Ŝ",pZ="ŝ",gZ="⪺",vZ="⪶",mZ="⋩",yZ="⨓",bZ="≿",wZ="С",xZ="с",SZ="⊡",_Z="⋅",kZ="⩦",TZ="⤥",CZ="↘",EZ="⇘",AZ="↘",LZ="§",MZ=";",NZ="⤩",OZ="∖",RZ="∖",PZ="✶",$Z="𝔖",IZ="𝔰",DZ="⌢",zZ="♯",FZ="Щ",HZ="щ",BZ="Ш",WZ="ш",qZ="↓",jZ="←",UZ="∣",VZ="∥",GZ="→",KZ="↑",XZ="­",YZ="Σ",ZZ="σ",JZ="ς",QZ="ς",eJ="∼",tJ="⩪",nJ="≃",rJ="≃",iJ="⪞",oJ="⪠",sJ="⪝",lJ="⪟",aJ="≆",cJ="⨤",uJ="⥲",fJ="←",dJ="∘",hJ="∖",pJ="⨳",gJ="⧤",vJ="∣",mJ="⌣",yJ="⪪",bJ="⪬",wJ="⪬︀",xJ="Ь",SJ="ь",_J="⌿",kJ="⧄",TJ="/",CJ="𝕊",EJ="𝕤",AJ="♠",LJ="♠",MJ="∥",NJ="⊓",OJ="⊓︀",RJ="⊔",PJ="⊔︀",$J="√",IJ="⊏",DJ="⊑",zJ="⊏",FJ="⊑",HJ="⊐",BJ="⊒",WJ="⊐",qJ="⊒",jJ="□",UJ="□",VJ="⊓",GJ="⊏",KJ="⊑",XJ="⊐",YJ="⊒",ZJ="⊔",JJ="▪",QJ="□",eQ="▪",tQ="→",nQ="𝒮",rQ="𝓈",iQ="∖",oQ="⌣",sQ="⋆",lQ="⋆",aQ="☆",cQ="★",uQ="ϵ",fQ="ϕ",dQ="¯",hQ="⊂",pQ="⋐",gQ="⪽",vQ="⫅",mQ="⊆",yQ="⫃",bQ="⫁",wQ="⫋",xQ="⊊",SQ="⪿",_Q="⥹",kQ="⊂",TQ="⋐",CQ="⊆",EQ="⫅",AQ="⊆",LQ="⊊",MQ="⫋",NQ="⫇",OQ="⫕",RQ="⫓",PQ="⪸",$Q="≻",IQ="≽",DQ="≻",zQ="⪰",FQ="≽",HQ="≿",BQ="⪰",WQ="⪺",qQ="⪶",jQ="⋩",UQ="≿",VQ="∋",GQ="∑",KQ="∑",XQ="♪",YQ="¹",ZQ="²",JQ="³",QQ="⊃",eee="⋑",tee="⪾",nee="⫘",ree="⫆",iee="⊇",oee="⫄",see="⊃",lee="⊇",aee="⟉",cee="⫗",uee="⥻",fee="⫂",dee="⫌",hee="⊋",pee="⫀",gee="⊃",vee="⋑",mee="⊇",yee="⫆",bee="⊋",wee="⫌",xee="⫈",See="⫔",_ee="⫖",kee="⤦",Tee="↙",Cee="⇙",Eee="↙",Aee="⤪",Lee="ß",Mee=" ",Nee="⌖",Oee="Τ",Ree="τ",Pee="⎴",$ee="Ť",Iee="ť",Dee="Ţ",zee="ţ",Fee="Т",Hee="т",Bee="⃛",Wee="⌕",qee="𝔗",jee="𝔱",Uee="∴",Vee="∴",Gee="∴",Kee="Θ",Xee="θ",Yee="ϑ",Zee="ϑ",Jee="≈",Qee="∼",ete="  ",tte=" ",nte=" ",rte="≈",ite="∼",ote="Þ",ste="þ",lte="˜",ate="∼",cte="≃",ute="≅",fte="≈",dte="⨱",hte="⊠",pte="×",gte="⨰",vte="∭",mte="⤨",yte="⌶",bte="⫱",wte="⊤",xte="𝕋",Ste="𝕥",_te="⫚",kte="⤩",Tte="‴",Cte="™",Ete="™",Ate="▵",Lte="▿",Mte="◃",Nte="⊴",Ote="≜",Rte="▹",Pte="⊵",$te="◬",Ite="≜",Dte="⨺",zte="⃛",Fte="⨹",Hte="⧍",Bte="⨻",Wte="⏢",qte="𝒯",jte="𝓉",Ute="Ц",Vte="ц",Gte="Ћ",Kte="ћ",Xte="Ŧ",Yte="ŧ",Zte="≬",Jte="↞",Qte="↠",ene="Ú",tne="ú",nne="↑",rne="↟",ine="⇑",one="⥉",sne="Ў",lne="ў",ane="Ŭ",cne="ŭ",une="Û",fne="û",dne="У",hne="у",pne="⇅",gne="Ű",vne="ű",mne="⥮",yne="⥾",bne="𝔘",wne="𝔲",xne="Ù",Sne="ù",_ne="⥣",kne="↿",Tne="↾",Cne="▀",Ene="⌜",Ane="⌜",Lne="⌏",Mne="◸",Nne="Ū",One="ū",Rne="¨",Pne="_",$ne="⏟",Ine="⎵",Dne="⏝",zne="⋃",Fne="⊎",Hne="Ų",Bne="ų",Wne="𝕌",qne="𝕦",jne="⤒",Une="↑",Vne="↑",Gne="⇑",Kne="⇅",Xne="↕",Yne="↕",Zne="⇕",Jne="⥮",Qne="↿",ere="↾",tre="⊎",nre="↖",rre="↗",ire="υ",ore="ϒ",sre="ϒ",lre="Υ",are="υ",cre="↥",ure="⊥",fre="⇈",dre="⌝",hre="⌝",pre="⌎",gre="Ů",vre="ů",mre="◹",yre="𝒰",bre="𝓊",wre="⋰",xre="Ũ",Sre="ũ",_re="▵",kre="▴",Tre="⇈",Cre="Ü",Ere="ü",Are="⦧",Lre="⦜",Mre="ϵ",Nre="ϰ",Ore="∅",Rre="ϕ",Pre="ϖ",$re="∝",Ire="↕",Dre="⇕",zre="ϱ",Fre="ς",Hre="⊊︀",Bre="⫋︀",Wre="⊋︀",qre="⫌︀",jre="ϑ",Ure="⊲",Vre="⊳",Gre="⫨",Kre="⫫",Xre="⫩",Yre="В",Zre="в",Jre="⊢",Qre="⊨",eie="⊩",tie="⊫",nie="⫦",rie="⊻",iie="∨",oie="⋁",sie="≚",lie="⋮",aie="|",cie="‖",uie="|",fie="‖",die="∣",hie="|",pie="❘",gie="≀",vie=" ",mie="𝔙",yie="𝔳",bie="⊲",wie="⊂⃒",xie="⊃⃒",Sie="𝕍",_ie="𝕧",kie="∝",Tie="⊳",Cie="𝒱",Eie="𝓋",Aie="⫋︀",Lie="⊊︀",Mie="⫌︀",Nie="⊋︀",Oie="⊪",Rie="⦚",Pie="Ŵ",$ie="ŵ",Iie="⩟",Die="∧",zie="⋀",Fie="≙",Hie="℘",Bie="𝔚",Wie="𝔴",qie="𝕎",jie="𝕨",Uie="℘",Vie="≀",Gie="≀",Kie="𝒲",Xie="𝓌",Yie="⋂",Zie="◯",Jie="⋃",Qie="▽",eoe="𝔛",toe="𝔵",noe="⟷",roe="⟺",ioe="Ξ",ooe="ξ",soe="⟵",loe="⟸",aoe="⟼",coe="⋻",uoe="⨀",foe="𝕏",doe="𝕩",hoe="⨁",poe="⨂",goe="⟶",voe="⟹",moe="𝒳",yoe="𝓍",boe="⨆",woe="⨄",xoe="△",Soe="⋁",_oe="⋀",koe="Ý",Toe="ý",Coe="Я",Eoe="я",Aoe="Ŷ",Loe="ŷ",Moe="Ы",Noe="ы",Ooe="¥",Roe="𝔜",Poe="𝔶",$oe="Ї",Ioe="ї",Doe="𝕐",zoe="𝕪",Foe="𝒴",Hoe="𝓎",Boe="Ю",Woe="ю",qoe="ÿ",joe="Ÿ",Uoe="Ź",Voe="ź",Goe="Ž",Koe="ž",Xoe="З",Yoe="з",Zoe="Ż",Joe="ż",Qoe="ℨ",ese="​",tse="Ζ",nse="ζ",rse="𝔷",ise="ℨ",ose="Ж",sse="ж",lse="⇝",ase="𝕫",cse="ℤ",use="𝒵",fse="𝓏",dse="‍",hse="‌",Iw={Aacute:ZA,aacute:JA,Abreve:QA,abreve:eL,ac:tL,acd:nL,acE:rL,Acirc:iL,acirc:oL,acute:sL,Acy:lL,acy:aL,AElig:cL,aelig:uL,af:fL,Afr:dL,afr:hL,Agrave:pL,agrave:gL,alefsym:vL,aleph:mL,Alpha:yL,alpha:bL,Amacr:wL,amacr:xL,amalg:SL,amp:_L,AMP:kL,andand:TL,And:CL,and:EL,andd:AL,andslope:LL,andv:ML,ang:NL,ange:OL,angle:RL,angmsdaa:PL,angmsdab:$L,angmsdac:IL,angmsdad:DL,angmsdae:zL,angmsdaf:FL,angmsdag:HL,angmsdah:BL,angmsd:WL,angrt:qL,angrtvb:jL,angrtvbd:UL,angsph:VL,angst:GL,angzarr:KL,Aogon:XL,aogon:YL,Aopf:ZL,aopf:JL,apacir:QL,ap:eM,apE:tM,ape:nM,apid:rM,apos:iM,ApplyFunction:oM,approx:sM,approxeq:lM,Aring:aM,aring:cM,Ascr:uM,ascr:fM,Assign:dM,ast:hM,asymp:pM,asympeq:gM,Atilde:vM,atilde:mM,Auml:yM,auml:bM,awconint:wM,awint:xM,backcong:SM,backepsilon:_M,backprime:kM,backsim:TM,backsimeq:CM,Backslash:EM,Barv:AM,barvee:LM,barwed:MM,Barwed:NM,barwedge:OM,bbrk:RM,bbrktbrk:PM,bcong:$M,Bcy:IM,bcy:DM,bdquo:zM,becaus:FM,because:HM,Because:BM,bemptyv:WM,bepsi:qM,bernou:jM,Bernoullis:UM,Beta:VM,beta:GM,beth:KM,between:XM,Bfr:YM,bfr:ZM,bigcap:JM,bigcirc:QM,bigcup:eN,bigodot:tN,bigoplus:nN,bigotimes:rN,bigsqcup:iN,bigstar:oN,bigtriangledown:sN,bigtriangleup:lN,biguplus:aN,bigvee:cN,bigwedge:uN,bkarow:fN,blacklozenge:dN,blacksquare:hN,blacktriangle:pN,blacktriangledown:gN,blacktriangleleft:vN,blacktriangleright:mN,blank:yN,blk12:bN,blk14:wN,blk34:xN,block:SN,bne:_N,bnequiv:kN,bNot:TN,bnot:CN,Bopf:EN,bopf:AN,bot:LN,bottom:MN,bowtie:NN,boxbox:ON,boxdl:RN,boxdL:PN,boxDl:$N,boxDL:IN,boxdr:DN,boxdR:zN,boxDr:FN,boxDR:HN,boxh:BN,boxH:WN,boxhd:qN,boxHd:jN,boxhD:UN,boxHD:VN,boxhu:GN,boxHu:KN,boxhU:XN,boxHU:YN,boxminus:ZN,boxplus:JN,boxtimes:QN,boxul:eO,boxuL:tO,boxUl:nO,boxUL:rO,boxur:iO,boxuR:oO,boxUr:sO,boxUR:lO,boxv:aO,boxV:cO,boxvh:uO,boxvH:fO,boxVh:dO,boxVH:hO,boxvl:pO,boxvL:gO,boxVl:vO,boxVL:mO,boxvr:yO,boxvR:bO,boxVr:wO,boxVR:xO,bprime:SO,breve:_O,Breve:kO,brvbar:TO,bscr:CO,Bscr:EO,bsemi:AO,bsim:LO,bsime:MO,bsolb:NO,bsol:OO,bsolhsub:RO,bull:PO,bullet:$O,bump:IO,bumpE:DO,bumpe:zO,Bumpeq:FO,bumpeq:HO,Cacute:BO,cacute:WO,capand:qO,capbrcup:jO,capcap:UO,cap:VO,Cap:GO,capcup:KO,capdot:XO,CapitalDifferentialD:YO,caps:ZO,caret:JO,caron:QO,Cayleys:e2,ccaps:t2,Ccaron:n2,ccaron:r2,Ccedil:i2,ccedil:o2,Ccirc:s2,ccirc:l2,Cconint:a2,ccups:c2,ccupssm:u2,Cdot:f2,cdot:d2,cedil:h2,Cedilla:p2,cemptyv:g2,cent:v2,centerdot:m2,CenterDot:y2,cfr:b2,Cfr:w2,CHcy:x2,chcy:S2,check:_2,checkmark:k2,Chi:T2,chi:C2,circ:E2,circeq:A2,circlearrowleft:L2,circlearrowright:M2,circledast:N2,circledcirc:O2,circleddash:R2,CircleDot:P2,circledR:$2,circledS:I2,CircleMinus:D2,CirclePlus:z2,CircleTimes:F2,cir:H2,cirE:B2,cire:W2,cirfnint:q2,cirmid:j2,cirscir:U2,ClockwiseContourIntegral:V2,CloseCurlyDoubleQuote:G2,CloseCurlyQuote:K2,clubs:X2,clubsuit:Y2,colon:Z2,Colon:J2,Colone:Q2,colone:eR,coloneq:tR,comma:nR,commat:rR,comp:iR,compfn:oR,complement:sR,complexes:lR,cong:aR,congdot:cR,Congruent:uR,conint:fR,Conint:dR,ContourIntegral:hR,copf:pR,Copf:gR,coprod:vR,Coproduct:mR,copy:yR,COPY:bR,copysr:wR,CounterClockwiseContourIntegral:xR,crarr:SR,cross:_R,Cross:kR,Cscr:TR,cscr:CR,csub:ER,csube:AR,csup:LR,csupe:MR,ctdot:NR,cudarrl:OR,cudarrr:RR,cuepr:PR,cuesc:$R,cularr:IR,cularrp:DR,cupbrcap:zR,cupcap:FR,CupCap:HR,cup:BR,Cup:WR,cupcup:qR,cupdot:jR,cupor:UR,cups:VR,curarr:GR,curarrm:KR,curlyeqprec:XR,curlyeqsucc:YR,curlyvee:ZR,curlywedge:JR,curren:QR,curvearrowleft:eP,curvearrowright:tP,cuvee:nP,cuwed:rP,cwconint:iP,cwint:oP,cylcty:sP,dagger:lP,Dagger:aP,daleth:cP,darr:uP,Darr:fP,dArr:dP,dash:hP,Dashv:pP,dashv:gP,dbkarow:vP,dblac:mP,Dcaron:yP,dcaron:bP,Dcy:wP,dcy:xP,ddagger:SP,ddarr:_P,DD:kP,dd:TP,DDotrahd:CP,ddotseq:EP,deg:AP,Del:LP,Delta:MP,delta:NP,demptyv:OP,dfisht:RP,Dfr:PP,dfr:$P,dHar:IP,dharl:DP,dharr:zP,DiacriticalAcute:FP,DiacriticalDot:HP,DiacriticalDoubleAcute:BP,DiacriticalGrave:WP,DiacriticalTilde:qP,diam:jP,diamond:UP,Diamond:VP,diamondsuit:GP,diams:KP,die:XP,DifferentialD:YP,digamma:ZP,disin:JP,div:QP,divide:e$,divideontimes:t$,divonx:n$,DJcy:r$,djcy:i$,dlcorn:o$,dlcrop:s$,dollar:l$,Dopf:a$,dopf:c$,Dot:u$,dot:f$,DotDot:d$,doteq:h$,doteqdot:p$,DotEqual:g$,dotminus:v$,dotplus:m$,dotsquare:y$,doublebarwedge:b$,DoubleContourIntegral:w$,DoubleDot:x$,DoubleDownArrow:S$,DoubleLeftArrow:_$,DoubleLeftRightArrow:k$,DoubleLeftTee:T$,DoubleLongLeftArrow:C$,DoubleLongLeftRightArrow:E$,DoubleLongRightArrow:A$,DoubleRightArrow:L$,DoubleRightTee:M$,DoubleUpArrow:N$,DoubleUpDownArrow:O$,DoubleVerticalBar:R$,DownArrowBar:P$,downarrow:$$,DownArrow:I$,Downarrow:D$,DownArrowUpArrow:z$,DownBreve:F$,downdownarrows:H$,downharpoonleft:B$,downharpoonright:W$,DownLeftRightVector:q$,DownLeftTeeVector:j$,DownLeftVectorBar:U$,DownLeftVector:V$,DownRightTeeVector:G$,DownRightVectorBar:K$,DownRightVector:X$,DownTeeArrow:Y$,DownTee:Z$,drbkarow:J$,drcorn:Q$,drcrop:eI,Dscr:tI,dscr:nI,DScy:rI,dscy:iI,dsol:oI,Dstrok:sI,dstrok:lI,dtdot:aI,dtri:cI,dtrif:uI,duarr:fI,duhar:dI,dwangle:hI,DZcy:pI,dzcy:gI,dzigrarr:vI,Eacute:mI,eacute:yI,easter:bI,Ecaron:wI,ecaron:xI,Ecirc:SI,ecirc:_I,ecir:kI,ecolon:TI,Ecy:CI,ecy:EI,eDDot:AI,Edot:LI,edot:MI,eDot:NI,ee:OI,efDot:RI,Efr:PI,efr:$I,eg:II,Egrave:DI,egrave:zI,egs:FI,egsdot:HI,el:BI,Element:WI,elinters:qI,ell:jI,els:UI,elsdot:VI,Emacr:GI,emacr:KI,empty:XI,emptyset:YI,EmptySmallSquare:ZI,emptyv:JI,EmptyVerySmallSquare:QI,emsp13:eD,emsp14:tD,emsp:nD,ENG:rD,eng:iD,ensp:oD,Eogon:sD,eogon:lD,Eopf:aD,eopf:cD,epar:uD,eparsl:fD,eplus:dD,epsi:hD,Epsilon:pD,epsilon:gD,epsiv:vD,eqcirc:mD,eqcolon:yD,eqsim:bD,eqslantgtr:wD,eqslantless:xD,Equal:SD,equals:_D,EqualTilde:kD,equest:TD,Equilibrium:CD,equiv:ED,equivDD:AD,eqvparsl:LD,erarr:MD,erDot:ND,escr:OD,Escr:RD,esdot:PD,Esim:$D,esim:ID,Eta:DD,eta:zD,ETH:FD,eth:HD,Euml:BD,euml:WD,euro:qD,excl:jD,exist:UD,Exists:VD,expectation:GD,exponentiale:KD,ExponentialE:XD,fallingdotseq:YD,Fcy:ZD,fcy:JD,female:QD,ffilig:ez,fflig:tz,ffllig:nz,Ffr:rz,ffr:iz,filig:oz,FilledSmallSquare:sz,FilledVerySmallSquare:lz,fjlig:az,flat:cz,fllig:uz,fltns:fz,fnof:dz,Fopf:hz,fopf:pz,forall:gz,ForAll:vz,fork:mz,forkv:yz,Fouriertrf:bz,fpartint:wz,frac12:xz,frac13:Sz,frac14:_z,frac15:kz,frac16:Tz,frac18:Cz,frac23:Ez,frac25:Az,frac34:Lz,frac35:Mz,frac38:Nz,frac45:Oz,frac56:Rz,frac58:Pz,frac78:$z,frasl:Iz,frown:Dz,fscr:zz,Fscr:Fz,gacute:Hz,Gamma:Bz,gamma:Wz,Gammad:qz,gammad:jz,gap:Uz,Gbreve:Vz,gbreve:Gz,Gcedil:Kz,Gcirc:Xz,gcirc:Yz,Gcy:Zz,gcy:Jz,Gdot:Qz,gdot:eF,ge:tF,gE:nF,gEl:rF,gel:iF,geq:oF,geqq:sF,geqslant:lF,gescc:aF,ges:cF,gesdot:uF,gesdoto:fF,gesdotol:dF,gesl:hF,gesles:pF,Gfr:gF,gfr:vF,gg:mF,Gg:yF,ggg:bF,gimel:wF,GJcy:xF,gjcy:SF,gla:_F,gl:kF,glE:TF,glj:CF,gnap:EF,gnapprox:AF,gne:LF,gnE:MF,gneq:NF,gneqq:OF,gnsim:RF,Gopf:PF,gopf:$F,grave:IF,GreaterEqual:DF,GreaterEqualLess:zF,GreaterFullEqual:FF,GreaterGreater:HF,GreaterLess:BF,GreaterSlantEqual:WF,GreaterTilde:qF,Gscr:jF,gscr:UF,gsim:VF,gsime:GF,gsiml:KF,gtcc:XF,gtcir:YF,gt:ZF,GT:JF,Gt:QF,gtdot:eH,gtlPar:tH,gtquest:nH,gtrapprox:rH,gtrarr:iH,gtrdot:oH,gtreqless:sH,gtreqqless:lH,gtrless:aH,gtrsim:cH,gvertneqq:uH,gvnE:fH,Hacek:dH,hairsp:hH,half:pH,hamilt:gH,HARDcy:vH,hardcy:mH,harrcir:yH,harr:bH,hArr:wH,harrw:xH,Hat:SH,hbar:_H,Hcirc:kH,hcirc:TH,hearts:CH,heartsuit:EH,hellip:AH,hercon:LH,hfr:MH,Hfr:NH,HilbertSpace:OH,hksearow:RH,hkswarow:PH,hoarr:$H,homtht:IH,hookleftarrow:DH,hookrightarrow:zH,hopf:FH,Hopf:HH,horbar:BH,HorizontalLine:WH,hscr:qH,Hscr:jH,hslash:UH,Hstrok:VH,hstrok:GH,HumpDownHump:KH,HumpEqual:XH,hybull:YH,hyphen:ZH,Iacute:JH,iacute:QH,ic:e3,Icirc:t3,icirc:n3,Icy:r3,icy:i3,Idot:o3,IEcy:s3,iecy:l3,iexcl:a3,iff:c3,ifr:u3,Ifr:f3,Igrave:d3,igrave:h3,ii:p3,iiiint:g3,iiint:v3,iinfin:m3,iiota:y3,IJlig:b3,ijlig:w3,Imacr:x3,imacr:S3,image:_3,ImaginaryI:k3,imagline:T3,imagpart:C3,imath:E3,Im:A3,imof:L3,imped:M3,Implies:N3,incare:O3,in:"∈",infin:R3,infintie:P3,inodot:$3,intcal:I3,int:D3,Int:z3,integers:F3,Integral:H3,intercal:B3,Intersection:W3,intlarhk:q3,intprod:j3,InvisibleComma:U3,InvisibleTimes:V3,IOcy:G3,iocy:K3,Iogon:X3,iogon:Y3,Iopf:Z3,iopf:J3,Iota:Q3,iota:eB,iprod:tB,iquest:nB,iscr:rB,Iscr:iB,isin:oB,isindot:sB,isinE:lB,isins:aB,isinsv:cB,isinv:uB,it:fB,Itilde:dB,itilde:hB,Iukcy:pB,iukcy:gB,Iuml:vB,iuml:mB,Jcirc:yB,jcirc:bB,Jcy:wB,jcy:xB,Jfr:SB,jfr:_B,jmath:kB,Jopf:TB,jopf:CB,Jscr:EB,jscr:AB,Jsercy:LB,jsercy:MB,Jukcy:NB,jukcy:OB,Kappa:RB,kappa:PB,kappav:$B,Kcedil:IB,kcedil:DB,Kcy:zB,kcy:FB,Kfr:HB,kfr:BB,kgreen:WB,KHcy:qB,khcy:jB,KJcy:UB,kjcy:VB,Kopf:GB,kopf:KB,Kscr:XB,kscr:YB,lAarr:ZB,Lacute:JB,lacute:QB,laemptyv:e5,lagran:t5,Lambda:n5,lambda:r5,lang:i5,Lang:o5,langd:s5,langle:l5,lap:a5,Laplacetrf:c5,laquo:u5,larrb:f5,larrbfs:d5,larr:h5,Larr:p5,lArr:g5,larrfs:v5,larrhk:m5,larrlp:y5,larrpl:b5,larrsim:w5,larrtl:x5,latail:S5,lAtail:_5,lat:k5,late:T5,lates:C5,lbarr:E5,lBarr:A5,lbbrk:L5,lbrace:M5,lbrack:N5,lbrke:O5,lbrksld:R5,lbrkslu:P5,Lcaron:$5,lcaron:I5,Lcedil:D5,lcedil:z5,lceil:F5,lcub:H5,Lcy:B5,lcy:W5,ldca:q5,ldquo:j5,ldquor:U5,ldrdhar:V5,ldrushar:G5,ldsh:K5,le:X5,lE:Y5,LeftAngleBracket:Z5,LeftArrowBar:J5,leftarrow:Q5,LeftArrow:e8,Leftarrow:t8,LeftArrowRightArrow:n8,leftarrowtail:r8,LeftCeiling:i8,LeftDoubleBracket:o8,LeftDownTeeVector:s8,LeftDownVectorBar:l8,LeftDownVector:a8,LeftFloor:c8,leftharpoondown:u8,leftharpoonup:f8,leftleftarrows:d8,leftrightarrow:h8,LeftRightArrow:p8,Leftrightarrow:g8,leftrightarrows:v8,leftrightharpoons:m8,leftrightsquigarrow:y8,LeftRightVector:b8,LeftTeeArrow:w8,LeftTee:x8,LeftTeeVector:S8,leftthreetimes:_8,LeftTriangleBar:k8,LeftTriangle:T8,LeftTriangleEqual:C8,LeftUpDownVector:E8,LeftUpTeeVector:A8,LeftUpVectorBar:L8,LeftUpVector:M8,LeftVectorBar:N8,LeftVector:O8,lEg:R8,leg:P8,leq:$8,leqq:I8,leqslant:D8,lescc:z8,les:F8,lesdot:H8,lesdoto:B8,lesdotor:W8,lesg:q8,lesges:j8,lessapprox:U8,lessdot:V8,lesseqgtr:G8,lesseqqgtr:K8,LessEqualGreater:X8,LessFullEqual:Y8,LessGreater:Z8,lessgtr:J8,LessLess:Q8,lesssim:eW,LessSlantEqual:tW,LessTilde:nW,lfisht:rW,lfloor:iW,Lfr:oW,lfr:sW,lg:lW,lgE:aW,lHar:cW,lhard:uW,lharu:fW,lharul:dW,lhblk:hW,LJcy:pW,ljcy:gW,llarr:vW,ll:mW,Ll:yW,llcorner:bW,Lleftarrow:wW,llhard:xW,lltri:SW,Lmidot:_W,lmidot:kW,lmoustache:TW,lmoust:CW,lnap:EW,lnapprox:AW,lne:LW,lnE:MW,lneq:NW,lneqq:OW,lnsim:RW,loang:PW,loarr:$W,lobrk:IW,longleftarrow:DW,LongLeftArrow:zW,Longleftarrow:FW,longleftrightarrow:HW,LongLeftRightArrow:BW,Longleftrightarrow:WW,longmapsto:qW,longrightarrow:jW,LongRightArrow:UW,Longrightarrow:VW,looparrowleft:GW,looparrowright:KW,lopar:XW,Lopf:YW,lopf:ZW,loplus:JW,lotimes:QW,lowast:e4,lowbar:t4,LowerLeftArrow:n4,LowerRightArrow:r4,loz:i4,lozenge:o4,lozf:s4,lpar:l4,lparlt:a4,lrarr:c4,lrcorner:u4,lrhar:f4,lrhard:d4,lrm:h4,lrtri:p4,lsaquo:g4,lscr:v4,Lscr:m4,lsh:y4,Lsh:b4,lsim:w4,lsime:x4,lsimg:S4,lsqb:_4,lsquo:k4,lsquor:T4,Lstrok:C4,lstrok:E4,ltcc:A4,ltcir:L4,lt:M4,LT:N4,Lt:O4,ltdot:R4,lthree:P4,ltimes:$4,ltlarr:I4,ltquest:D4,ltri:z4,ltrie:F4,ltrif:H4,ltrPar:B4,lurdshar:W4,luruhar:q4,lvertneqq:j4,lvnE:U4,macr:V4,male:G4,malt:K4,maltese:X4,Map:"⤅",map:Y4,mapsto:Z4,mapstodown:J4,mapstoleft:Q4,mapstoup:eq,marker:tq,mcomma:nq,Mcy:rq,mcy:iq,mdash:oq,mDDot:sq,measuredangle:lq,MediumSpace:aq,Mellintrf:cq,Mfr:uq,mfr:fq,mho:dq,micro:hq,midast:pq,midcir:gq,mid:vq,middot:mq,minusb:yq,minus:bq,minusd:wq,minusdu:xq,MinusPlus:Sq,mlcp:_q,mldr:kq,mnplus:Tq,models:Cq,Mopf:Eq,mopf:Aq,mp:Lq,mscr:Mq,Mscr:Nq,mstpos:Oq,Mu:Rq,mu:Pq,multimap:$q,mumap:Iq,nabla:Dq,Nacute:zq,nacute:Fq,nang:Hq,nap:Bq,napE:Wq,napid:qq,napos:jq,napprox:Uq,natural:Vq,naturals:Gq,natur:Kq,nbsp:Xq,nbump:Yq,nbumpe:Zq,ncap:Jq,Ncaron:Qq,ncaron:ej,Ncedil:tj,ncedil:nj,ncong:rj,ncongdot:ij,ncup:oj,Ncy:sj,ncy:lj,ndash:aj,nearhk:cj,nearr:uj,neArr:fj,nearrow:dj,ne:hj,nedot:pj,NegativeMediumSpace:gj,NegativeThickSpace:vj,NegativeThinSpace:mj,NegativeVeryThinSpace:yj,nequiv:bj,nesear:wj,nesim:xj,NestedGreaterGreater:Sj,NestedLessLess:_j,NewLine:kj,nexist:Tj,nexists:Cj,Nfr:Ej,nfr:Aj,ngE:Lj,nge:Mj,ngeq:Nj,ngeqq:Oj,ngeqslant:Rj,nges:Pj,nGg:$j,ngsim:Ij,nGt:Dj,ngt:zj,ngtr:Fj,nGtv:Hj,nharr:Bj,nhArr:Wj,nhpar:qj,ni:jj,nis:Uj,nisd:Vj,niv:Gj,NJcy:Kj,njcy:Xj,nlarr:Yj,nlArr:Zj,nldr:Jj,nlE:Qj,nle:eU,nleftarrow:tU,nLeftarrow:nU,nleftrightarrow:rU,nLeftrightarrow:iU,nleq:oU,nleqq:sU,nleqslant:lU,nles:aU,nless:cU,nLl:uU,nlsim:fU,nLt:dU,nlt:hU,nltri:pU,nltrie:gU,nLtv:vU,nmid:mU,NoBreak:yU,NonBreakingSpace:bU,nopf:wU,Nopf:xU,Not:SU,not:_U,NotCongruent:kU,NotCupCap:TU,NotDoubleVerticalBar:CU,NotElement:EU,NotEqual:AU,NotEqualTilde:LU,NotExists:MU,NotGreater:NU,NotGreaterEqual:OU,NotGreaterFullEqual:RU,NotGreaterGreater:PU,NotGreaterLess:$U,NotGreaterSlantEqual:IU,NotGreaterTilde:DU,NotHumpDownHump:zU,NotHumpEqual:FU,notin:HU,notindot:BU,notinE:WU,notinva:qU,notinvb:jU,notinvc:UU,NotLeftTriangleBar:VU,NotLeftTriangle:GU,NotLeftTriangleEqual:KU,NotLess:XU,NotLessEqual:YU,NotLessGreater:ZU,NotLessLess:JU,NotLessSlantEqual:QU,NotLessTilde:e6,NotNestedGreaterGreater:t6,NotNestedLessLess:n6,notni:r6,notniva:i6,notnivb:o6,notnivc:s6,NotPrecedes:l6,NotPrecedesEqual:a6,NotPrecedesSlantEqual:c6,NotReverseElement:u6,NotRightTriangleBar:f6,NotRightTriangle:d6,NotRightTriangleEqual:h6,NotSquareSubset:p6,NotSquareSubsetEqual:g6,NotSquareSuperset:v6,NotSquareSupersetEqual:m6,NotSubset:y6,NotSubsetEqual:b6,NotSucceeds:w6,NotSucceedsEqual:x6,NotSucceedsSlantEqual:S6,NotSucceedsTilde:_6,NotSuperset:k6,NotSupersetEqual:T6,NotTilde:C6,NotTildeEqual:E6,NotTildeFullEqual:A6,NotTildeTilde:L6,NotVerticalBar:M6,nparallel:N6,npar:O6,nparsl:R6,npart:P6,npolint:$6,npr:I6,nprcue:D6,nprec:z6,npreceq:F6,npre:H6,nrarrc:B6,nrarr:W6,nrArr:q6,nrarrw:j6,nrightarrow:U6,nRightarrow:V6,nrtri:G6,nrtrie:K6,nsc:X6,nsccue:Y6,nsce:Z6,Nscr:J6,nscr:Q6,nshortmid:eV,nshortparallel:tV,nsim:nV,nsime:rV,nsimeq:iV,nsmid:oV,nspar:sV,nsqsube:lV,nsqsupe:aV,nsub:cV,nsubE:uV,nsube:fV,nsubset:dV,nsubseteq:hV,nsubseteqq:pV,nsucc:gV,nsucceq:vV,nsup:mV,nsupE:yV,nsupe:bV,nsupset:wV,nsupseteq:xV,nsupseteqq:SV,ntgl:_V,Ntilde:kV,ntilde:TV,ntlg:CV,ntriangleleft:EV,ntrianglelefteq:AV,ntriangleright:LV,ntrianglerighteq:MV,Nu:NV,nu:OV,num:RV,numero:PV,numsp:$V,nvap:IV,nvdash:DV,nvDash:zV,nVdash:FV,nVDash:HV,nvge:BV,nvgt:WV,nvHarr:qV,nvinfin:jV,nvlArr:UV,nvle:VV,nvlt:GV,nvltrie:KV,nvrArr:XV,nvrtrie:YV,nvsim:ZV,nwarhk:JV,nwarr:QV,nwArr:eG,nwarrow:tG,nwnear:nG,Oacute:rG,oacute:iG,oast:oG,Ocirc:sG,ocirc:lG,ocir:aG,Ocy:cG,ocy:uG,odash:fG,Odblac:dG,odblac:hG,odiv:pG,odot:gG,odsold:vG,OElig:mG,oelig:yG,ofcir:bG,Ofr:wG,ofr:xG,ogon:SG,Ograve:_G,ograve:kG,ogt:TG,ohbar:CG,ohm:EG,oint:AG,olarr:LG,olcir:MG,olcross:NG,oline:OG,olt:RG,Omacr:PG,omacr:$G,Omega:IG,omega:DG,Omicron:zG,omicron:FG,omid:HG,ominus:BG,Oopf:WG,oopf:qG,opar:jG,OpenCurlyDoubleQuote:UG,OpenCurlyQuote:VG,operp:GG,oplus:KG,orarr:XG,Or:YG,or:ZG,ord:JG,order:QG,orderof:e9,ordf:t9,ordm:n9,origof:r9,oror:i9,orslope:o9,orv:s9,oS:l9,Oscr:a9,oscr:c9,Oslash:u9,oslash:f9,osol:d9,Otilde:h9,otilde:p9,otimesas:g9,Otimes:v9,otimes:m9,Ouml:y9,ouml:b9,ovbar:w9,OverBar:x9,OverBrace:S9,OverBracket:_9,OverParenthesis:k9,para:T9,parallel:C9,par:E9,parsim:A9,parsl:L9,part:M9,PartialD:N9,Pcy:O9,pcy:R9,percnt:P9,period:$9,permil:I9,perp:D9,pertenk:z9,Pfr:F9,pfr:H9,Phi:B9,phi:W9,phiv:q9,phmmat:j9,phone:U9,Pi:V9,pi:G9,pitchfork:K9,piv:X9,planck:Y9,planckh:Z9,plankv:J9,plusacir:Q9,plusb:e7,pluscir:t7,plus:n7,plusdo:r7,plusdu:i7,pluse:o7,PlusMinus:s7,plusmn:l7,plussim:a7,plustwo:c7,pm:u7,Poincareplane:f7,pointint:d7,popf:h7,Popf:p7,pound:g7,prap:v7,Pr:m7,pr:y7,prcue:b7,precapprox:w7,prec:x7,preccurlyeq:S7,Precedes:_7,PrecedesEqual:k7,PrecedesSlantEqual:T7,PrecedesTilde:C7,preceq:E7,precnapprox:A7,precneqq:L7,precnsim:M7,pre:N7,prE:O7,precsim:R7,prime:P7,Prime:$7,primes:I7,prnap:D7,prnE:z7,prnsim:F7,prod:H7,Product:B7,profalar:W7,profline:q7,profsurf:j7,prop:U7,Proportional:V7,Proportion:G7,propto:K7,prsim:X7,prurel:Y7,Pscr:Z7,pscr:J7,Psi:Q7,psi:eK,puncsp:tK,Qfr:nK,qfr:rK,qint:iK,qopf:oK,Qopf:sK,qprime:lK,Qscr:aK,qscr:cK,quaternions:uK,quatint:fK,quest:dK,questeq:hK,quot:pK,QUOT:gK,rAarr:vK,race:mK,Racute:yK,racute:bK,radic:wK,raemptyv:xK,rang:SK,Rang:_K,rangd:kK,range:TK,rangle:CK,raquo:EK,rarrap:AK,rarrb:LK,rarrbfs:MK,rarrc:NK,rarr:OK,Rarr:RK,rArr:PK,rarrfs:$K,rarrhk:IK,rarrlp:DK,rarrpl:zK,rarrsim:FK,Rarrtl:HK,rarrtl:BK,rarrw:WK,ratail:qK,rAtail:jK,ratio:UK,rationals:VK,rbarr:GK,rBarr:KK,RBarr:XK,rbbrk:YK,rbrace:ZK,rbrack:JK,rbrke:QK,rbrksld:eX,rbrkslu:tX,Rcaron:nX,rcaron:rX,Rcedil:iX,rcedil:oX,rceil:sX,rcub:lX,Rcy:aX,rcy:cX,rdca:uX,rdldhar:fX,rdquo:dX,rdquor:hX,rdsh:pX,real:gX,realine:vX,realpart:mX,reals:yX,Re:bX,rect:wX,reg:xX,REG:SX,ReverseElement:_X,ReverseEquilibrium:kX,ReverseUpEquilibrium:TX,rfisht:CX,rfloor:EX,rfr:AX,Rfr:LX,rHar:MX,rhard:NX,rharu:OX,rharul:RX,Rho:PX,rho:$X,rhov:IX,RightAngleBracket:DX,RightArrowBar:zX,rightarrow:FX,RightArrow:HX,Rightarrow:BX,RightArrowLeftArrow:WX,rightarrowtail:qX,RightCeiling:jX,RightDoubleBracket:UX,RightDownTeeVector:VX,RightDownVectorBar:GX,RightDownVector:KX,RightFloor:XX,rightharpoondown:YX,rightharpoonup:ZX,rightleftarrows:JX,rightleftharpoons:QX,rightrightarrows:eY,rightsquigarrow:tY,RightTeeArrow:nY,RightTee:rY,RightTeeVector:iY,rightthreetimes:oY,RightTriangleBar:sY,RightTriangle:lY,RightTriangleEqual:aY,RightUpDownVector:cY,RightUpTeeVector:uY,RightUpVectorBar:fY,RightUpVector:dY,RightVectorBar:hY,RightVector:pY,ring:gY,risingdotseq:vY,rlarr:mY,rlhar:yY,rlm:bY,rmoustache:wY,rmoust:xY,rnmid:SY,roang:_Y,roarr:kY,robrk:TY,ropar:CY,ropf:EY,Ropf:AY,roplus:LY,rotimes:MY,RoundImplies:NY,rpar:OY,rpargt:RY,rppolint:PY,rrarr:$Y,Rrightarrow:IY,rsaquo:DY,rscr:zY,Rscr:FY,rsh:HY,Rsh:BY,rsqb:WY,rsquo:qY,rsquor:jY,rthree:UY,rtimes:VY,rtri:GY,rtrie:KY,rtrif:XY,rtriltri:YY,RuleDelayed:ZY,ruluhar:JY,rx:QY,Sacute:eZ,sacute:tZ,sbquo:nZ,scap:rZ,Scaron:iZ,scaron:oZ,Sc:sZ,sc:lZ,sccue:aZ,sce:cZ,scE:uZ,Scedil:fZ,scedil:dZ,Scirc:hZ,scirc:pZ,scnap:gZ,scnE:vZ,scnsim:mZ,scpolint:yZ,scsim:bZ,Scy:wZ,scy:xZ,sdotb:SZ,sdot:_Z,sdote:kZ,searhk:TZ,searr:CZ,seArr:EZ,searrow:AZ,sect:LZ,semi:MZ,seswar:NZ,setminus:OZ,setmn:RZ,sext:PZ,Sfr:$Z,sfr:IZ,sfrown:DZ,sharp:zZ,SHCHcy:FZ,shchcy:HZ,SHcy:BZ,shcy:WZ,ShortDownArrow:qZ,ShortLeftArrow:jZ,shortmid:UZ,shortparallel:VZ,ShortRightArrow:GZ,ShortUpArrow:KZ,shy:XZ,Sigma:YZ,sigma:ZZ,sigmaf:JZ,sigmav:QZ,sim:eJ,simdot:tJ,sime:nJ,simeq:rJ,simg:iJ,simgE:oJ,siml:sJ,simlE:lJ,simne:aJ,simplus:cJ,simrarr:uJ,slarr:fJ,SmallCircle:dJ,smallsetminus:hJ,smashp:pJ,smeparsl:gJ,smid:vJ,smile:mJ,smt:yJ,smte:bJ,smtes:wJ,SOFTcy:xJ,softcy:SJ,solbar:_J,solb:kJ,sol:TJ,Sopf:CJ,sopf:EJ,spades:AJ,spadesuit:LJ,spar:MJ,sqcap:NJ,sqcaps:OJ,sqcup:RJ,sqcups:PJ,Sqrt:$J,sqsub:IJ,sqsube:DJ,sqsubset:zJ,sqsubseteq:FJ,sqsup:HJ,sqsupe:BJ,sqsupset:WJ,sqsupseteq:qJ,square:jJ,Square:UJ,SquareIntersection:VJ,SquareSubset:GJ,SquareSubsetEqual:KJ,SquareSuperset:XJ,SquareSupersetEqual:YJ,SquareUnion:ZJ,squarf:JJ,squ:QJ,squf:eQ,srarr:tQ,Sscr:nQ,sscr:rQ,ssetmn:iQ,ssmile:oQ,sstarf:sQ,Star:lQ,star:aQ,starf:cQ,straightepsilon:uQ,straightphi:fQ,strns:dQ,sub:hQ,Sub:pQ,subdot:gQ,subE:vQ,sube:mQ,subedot:yQ,submult:bQ,subnE:wQ,subne:xQ,subplus:SQ,subrarr:_Q,subset:kQ,Subset:TQ,subseteq:CQ,subseteqq:EQ,SubsetEqual:AQ,subsetneq:LQ,subsetneqq:MQ,subsim:NQ,subsub:OQ,subsup:RQ,succapprox:PQ,succ:$Q,succcurlyeq:IQ,Succeeds:DQ,SucceedsEqual:zQ,SucceedsSlantEqual:FQ,SucceedsTilde:HQ,succeq:BQ,succnapprox:WQ,succneqq:qQ,succnsim:jQ,succsim:UQ,SuchThat:VQ,sum:GQ,Sum:KQ,sung:XQ,sup1:YQ,sup2:ZQ,sup3:JQ,sup:QQ,Sup:eee,supdot:tee,supdsub:nee,supE:ree,supe:iee,supedot:oee,Superset:see,SupersetEqual:lee,suphsol:aee,suphsub:cee,suplarr:uee,supmult:fee,supnE:dee,supne:hee,supplus:pee,supset:gee,Supset:vee,supseteq:mee,supseteqq:yee,supsetneq:bee,supsetneqq:wee,supsim:xee,supsub:See,supsup:_ee,swarhk:kee,swarr:Tee,swArr:Cee,swarrow:Eee,swnwar:Aee,szlig:Lee,Tab:Mee,target:Nee,Tau:Oee,tau:Ree,tbrk:Pee,Tcaron:$ee,tcaron:Iee,Tcedil:Dee,tcedil:zee,Tcy:Fee,tcy:Hee,tdot:Bee,telrec:Wee,Tfr:qee,tfr:jee,there4:Uee,therefore:Vee,Therefore:Gee,Theta:Kee,theta:Xee,thetasym:Yee,thetav:Zee,thickapprox:Jee,thicksim:Qee,ThickSpace:ete,ThinSpace:tte,thinsp:nte,thkap:rte,thksim:ite,THORN:ote,thorn:ste,tilde:lte,Tilde:ate,TildeEqual:cte,TildeFullEqual:ute,TildeTilde:fte,timesbar:dte,timesb:hte,times:pte,timesd:gte,tint:vte,toea:mte,topbot:yte,topcir:bte,top:wte,Topf:xte,topf:Ste,topfork:_te,tosa:kte,tprime:Tte,trade:Cte,TRADE:Ete,triangle:Ate,triangledown:Lte,triangleleft:Mte,trianglelefteq:Nte,triangleq:Ote,triangleright:Rte,trianglerighteq:Pte,tridot:$te,trie:Ite,triminus:Dte,TripleDot:zte,triplus:Fte,trisb:Hte,tritime:Bte,trpezium:Wte,Tscr:qte,tscr:jte,TScy:Ute,tscy:Vte,TSHcy:Gte,tshcy:Kte,Tstrok:Xte,tstrok:Yte,twixt:Zte,twoheadleftarrow:Jte,twoheadrightarrow:Qte,Uacute:ene,uacute:tne,uarr:nne,Uarr:rne,uArr:ine,Uarrocir:one,Ubrcy:sne,ubrcy:lne,Ubreve:ane,ubreve:cne,Ucirc:une,ucirc:fne,Ucy:dne,ucy:hne,udarr:pne,Udblac:gne,udblac:vne,udhar:mne,ufisht:yne,Ufr:bne,ufr:wne,Ugrave:xne,ugrave:Sne,uHar:_ne,uharl:kne,uharr:Tne,uhblk:Cne,ulcorn:Ene,ulcorner:Ane,ulcrop:Lne,ultri:Mne,Umacr:Nne,umacr:One,uml:Rne,UnderBar:Pne,UnderBrace:$ne,UnderBracket:Ine,UnderParenthesis:Dne,Union:zne,UnionPlus:Fne,Uogon:Hne,uogon:Bne,Uopf:Wne,uopf:qne,UpArrowBar:jne,uparrow:Une,UpArrow:Vne,Uparrow:Gne,UpArrowDownArrow:Kne,updownarrow:Xne,UpDownArrow:Yne,Updownarrow:Zne,UpEquilibrium:Jne,upharpoonleft:Qne,upharpoonright:ere,uplus:tre,UpperLeftArrow:nre,UpperRightArrow:rre,upsi:ire,Upsi:ore,upsih:sre,Upsilon:lre,upsilon:are,UpTeeArrow:cre,UpTee:ure,upuparrows:fre,urcorn:dre,urcorner:hre,urcrop:pre,Uring:gre,uring:vre,urtri:mre,Uscr:yre,uscr:bre,utdot:wre,Utilde:xre,utilde:Sre,utri:_re,utrif:kre,uuarr:Tre,Uuml:Cre,uuml:Ere,uwangle:Are,vangrt:Lre,varepsilon:Mre,varkappa:Nre,varnothing:Ore,varphi:Rre,varpi:Pre,varpropto:$re,varr:Ire,vArr:Dre,varrho:zre,varsigma:Fre,varsubsetneq:Hre,varsubsetneqq:Bre,varsupsetneq:Wre,varsupsetneqq:qre,vartheta:jre,vartriangleleft:Ure,vartriangleright:Vre,vBar:Gre,Vbar:Kre,vBarv:Xre,Vcy:Yre,vcy:Zre,vdash:Jre,vDash:Qre,Vdash:eie,VDash:tie,Vdashl:nie,veebar:rie,vee:iie,Vee:oie,veeeq:sie,vellip:lie,verbar:aie,Verbar:cie,vert:uie,Vert:fie,VerticalBar:die,VerticalLine:hie,VerticalSeparator:pie,VerticalTilde:gie,VeryThinSpace:vie,Vfr:mie,vfr:yie,vltri:bie,vnsub:wie,vnsup:xie,Vopf:Sie,vopf:_ie,vprop:kie,vrtri:Tie,Vscr:Cie,vscr:Eie,vsubnE:Aie,vsubne:Lie,vsupnE:Mie,vsupne:Nie,Vvdash:Oie,vzigzag:Rie,Wcirc:Pie,wcirc:$ie,wedbar:Iie,wedge:Die,Wedge:zie,wedgeq:Fie,weierp:Hie,Wfr:Bie,wfr:Wie,Wopf:qie,wopf:jie,wp:Uie,wr:Vie,wreath:Gie,Wscr:Kie,wscr:Xie,xcap:Yie,xcirc:Zie,xcup:Jie,xdtri:Qie,Xfr:eoe,xfr:toe,xharr:noe,xhArr:roe,Xi:ioe,xi:ooe,xlarr:soe,xlArr:loe,xmap:aoe,xnis:coe,xodot:uoe,Xopf:foe,xopf:doe,xoplus:hoe,xotime:poe,xrarr:goe,xrArr:voe,Xscr:moe,xscr:yoe,xsqcup:boe,xuplus:woe,xutri:xoe,xvee:Soe,xwedge:_oe,Yacute:koe,yacute:Toe,YAcy:Coe,yacy:Eoe,Ycirc:Aoe,ycirc:Loe,Ycy:Moe,ycy:Noe,yen:Ooe,Yfr:Roe,yfr:Poe,YIcy:$oe,yicy:Ioe,Yopf:Doe,yopf:zoe,Yscr:Foe,yscr:Hoe,YUcy:Boe,yucy:Woe,yuml:qoe,Yuml:joe,Zacute:Uoe,zacute:Voe,Zcaron:Goe,zcaron:Koe,Zcy:Xoe,zcy:Yoe,Zdot:Zoe,zdot:Joe,zeetrf:Qoe,ZeroWidthSpace:ese,Zeta:tse,zeta:nse,zfr:rse,Zfr:ise,ZHcy:ose,zhcy:sse,zigrarr:lse,zopf:ase,Zopf:cse,Zscr:use,zscr:fse,zwj:dse,zwnj:hse},pse="Á",gse="á",vse="Â",mse="â",yse="´",bse="Æ",wse="æ",xse="À",Sse="à",_se="&",kse="&",Tse="Å",Cse="å",Ese="Ã",Ase="ã",Lse="Ä",Mse="ä",Nse="¦",Ose="Ç",Rse="ç",Pse="¸",$se="¢",Ise="©",Dse="©",zse="¤",Fse="°",Hse="÷",Bse="É",Wse="é",qse="Ê",jse="ê",Use="È",Vse="è",Gse="Ð",Kse="ð",Xse="Ë",Yse="ë",Zse="½",Jse="¼",Qse="¾",ele=">",tle=">",nle="Í",rle="í",ile="Î",ole="î",sle="¡",lle="Ì",ale="ì",cle="¿",ule="Ï",fle="ï",dle="«",hle="<",ple="<",gle="¯",vle="µ",mle="·",yle=" ",ble="¬",wle="Ñ",xle="ñ",Sle="Ó",_le="ó",kle="Ô",Tle="ô",Cle="Ò",Ele="ò",Ale="ª",Lle="º",Mle="Ø",Nle="ø",Ole="Õ",Rle="õ",Ple="Ö",$le="ö",Ile="¶",Dle="±",zle="£",Fle='"',Hle='"',Ble="»",Wle="®",qle="®",jle="§",Ule="­",Vle="¹",Gle="²",Kle="³",Xle="ß",Yle="Þ",Zle="þ",Jle="×",Qle="Ú",eae="ú",tae="Û",nae="û",rae="Ù",iae="ù",oae="¨",sae="Ü",lae="ü",aae="Ý",cae="ý",uae="¥",fae="ÿ",dae={Aacute:pse,aacute:gse,Acirc:vse,acirc:mse,acute:yse,AElig:bse,aelig:wse,Agrave:xse,agrave:Sse,amp:_se,AMP:kse,Aring:Tse,aring:Cse,Atilde:Ese,atilde:Ase,Auml:Lse,auml:Mse,brvbar:Nse,Ccedil:Ose,ccedil:Rse,cedil:Pse,cent:$se,copy:Ise,COPY:Dse,curren:zse,deg:Fse,divide:Hse,Eacute:Bse,eacute:Wse,Ecirc:qse,ecirc:jse,Egrave:Use,egrave:Vse,ETH:Gse,eth:Kse,Euml:Xse,euml:Yse,frac12:Zse,frac14:Jse,frac34:Qse,gt:ele,GT:tle,Iacute:nle,iacute:rle,Icirc:ile,icirc:ole,iexcl:sle,Igrave:lle,igrave:ale,iquest:cle,Iuml:ule,iuml:fle,laquo:dle,lt:hle,LT:ple,macr:gle,micro:vle,middot:mle,nbsp:yle,not:ble,Ntilde:wle,ntilde:xle,Oacute:Sle,oacute:_le,Ocirc:kle,ocirc:Tle,Ograve:Cle,ograve:Ele,ordf:Ale,ordm:Lle,Oslash:Mle,oslash:Nle,Otilde:Ole,otilde:Rle,Ouml:Ple,ouml:$le,para:Ile,plusmn:Dle,pound:zle,quot:Fle,QUOT:Hle,raquo:Ble,reg:Wle,REG:qle,sect:jle,shy:Ule,sup1:Vle,sup2:Gle,sup3:Kle,szlig:Xle,THORN:Yle,thorn:Zle,times:Jle,Uacute:Qle,uacute:eae,Ucirc:tae,ucirc:nae,Ugrave:rae,ugrave:iae,uml:oae,Uuml:sae,uuml:lae,Yacute:aae,yacute:cae,yen:uae,yuml:fae},hae="&",pae="'",gae=">",vae="<",mae='"',Dw={amp:hae,apos:pae,gt:gae,lt:vae,quot:mae};var ys={};const yae={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Km;function bae(){if(Km)return ys;Km=1;var e=ys&&ys.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ys,"__esModule",{value:!0});var t=e(yae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return ys.default=o,ys}var Xm;function Ym(){if(Xm)return Tr;Xm=1;var e=Tr&&Tr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.decodeHTML=Tr.decodeHTMLStrict=Tr.decodeXML=void 0;var t=e(Iw),r=e(dae),o=e(Dw),s=e(bae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Tr.decodeXML=f(o.default),Tr.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};Tr.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var x=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),C=h(t.default);function L(M){return M.substr(-1)!==";"&&(M+=";"),C(M)}return function(M){return String(M).replace(x,L)}})();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return Tr}var Mn={},Zm;function Jm(){if(Zm)return Mn;Zm=1;var e=Mn&&Mn.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.escapeUTF8=Mn.escape=Mn.encodeNonAsciiHTML=Mn.encodeHTML=Mn.encodeXML=void 0;var t=e(Dw),r=d(t.default),o=h(r);Mn.encodeXML=M(r);var s=e(Iw),c=d(s.default),f=h(c);Mn.encodeHTML=b(c,f),Mn.encodeNonAsciiHTML=M(c);function d(A){return Object.keys(A).sort().reduce(function(O,F){return O[A[F]]="&"+F+";",O},{})}function h(A){for(var O=[],F=[],E=0,z=Object.keys(A);E<z.length;E++){var U=z[E];U.length===1?O.push("\\"+U):F.push(U)}O.sort();for(var re=0;re<O.length-1;re++){for(var te=re;te<O.length-1&&O[te].charCodeAt(1)+1===O[te+1].charCodeAt(1);)te+=1;var ne=1+te-re;ne<3||O.splice(re,ne,O[re]+"-"+O[te])}return F.unshift("["+O.join("")+"]"),new RegExp(F.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(A){return A.codePointAt(0)}:function(A){return(A.charCodeAt(0)-55296)*1024+A.charCodeAt(1)-56320+65536};function m(A){return"&#x"+(A.length>1?v(A):A.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(A,O){return function(F){return F.replace(O,function(E){return A[E]}).replace(p,m)}}var x=new RegExp(o.source+"|"+p.source,"g");function C(A){return A.replace(x,m)}Mn.escape=C;function L(A){return A.replace(o,m)}Mn.escapeUTF8=L;function M(A){return function(O){return O.replace(x,function(F){return A[F]||m(F)})}}return Mn}var Qm;function wae(){return Qm||(Qm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Ym(),r=Jm();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Jm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=Ym();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(gd)),gd}var vd,e0;function xae(){if(e0)return vd;e0=1;function e($,R){if(!($ instanceof R))throw new TypeError("Cannot call a class as a function")}function t($,R){for(var N=0;N<R.length;N++){var _=R[N];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty($,_.key,_)}}function r($,R,N){return R&&t($.prototype,R),$}function o($,R){var N=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!N){if(Array.isArray($)||(N=s($))||R){N&&($=N);var _=0,H=function(){};return{s:H,n:function(){return _>=$.length?{done:!0}:{done:!1,value:$[_++]}},e:function($e){throw $e},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
44
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,ie=!1,ve;return{s:function(){N=N.call($)},n:function(){var $e=N.next();return j=$e.done,$e},e:function($e){ie=!0,ve=$e},f:function(){try{!j&&N.return!=null&&N.return()}finally{if(ie)throw ve}}}}function s($,R){if($){if(typeof $=="string")return c($,R);var N=Object.prototype.toString.call($).slice(8,-1);if(N==="Object"&&$.constructor&&(N=$.constructor.name),N==="Map"||N==="Set")return Array.from($);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return c($,R)}}function c($,R){(R==null||R>$.length)&&(R=$.length);for(var N=0,_=new Array(R);N<R;N++)_[N]=$[N];return _}var f=wae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var $={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return M(0,5).forEach(function(R){M(0,5).forEach(function(N){M(0,5).forEach(function(_){return p(R,N,_,$)})})}),M(0,23).forEach(function(R){var N=R+232,_=v(R*10+8);$[N]="#"+_+_+_}),$}function p($,R,N,_){var H=16+$*36+R*6+N,j=$>0?$*40+55:0,ie=R>0?R*40+55:0,ve=N>0?N*40+55:0;_[H]=m([j,ie,ve])}function v($){for(var R=$.toString(16);R.length<2;)R="0"+R;return R}function m($){var R=[],N=o($),_;try{for(N.s();!(_=N.n()).done;){var H=_.value;R.push(v(H))}}catch(j){N.e(j)}finally{N.f()}return"#"+R.join("")}function b($,R,N,_){var H;return R==="text"?H=F(N,_):R==="display"?H=C($,N,_):R==="xterm256Foreground"?H=U($,_.colors[N]):R==="xterm256Background"?H=re($,_.colors[N]):R==="rgb"&&(H=x($,N)),H}function x($,R){R=R.substring(2).slice(0,-1);var N=+R.substr(0,2),_=R.substring(5).split(";"),H=_.map(function(j){return("0"+Number(j).toString(16)).substr(-2)}).join("");return z($,(N===38?"color:#":"background-color:#")+H)}function C($,R,N){R=parseInt(R,10);var _={"-1":function(){return"<br/>"},0:function(){return $.length&&L($)},1:function(){return E($,"b")},3:function(){return E($,"i")},4:function(){return E($,"u")},8:function(){return z($,"display:none")},9:function(){return E($,"strike")},22:function(){return z($,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return te($,"i")},24:function(){return te($,"u")},39:function(){return U($,N.fg)},49:function(){return re($,N.bg)},53:function(){return z($,"text-decoration:overline")}},H;return _[R]?H=_[R]():4<R&&R<7?H=E($,"blink"):29<R&&R<38?H=U($,N.colors[R-30]):39<R&&R<48?H=re($,N.colors[R-40]):89<R&&R<98?H=U($,N.colors[8+(R-90)]):99<R&&R<108&&(H=re($,N.colors[8+(R-100)])),H}function L($){var R=$.slice(0);return $.length=0,R.reverse().map(function(N){return"</"+N+">"}).join("")}function M($,R){for(var N=[],_=$;_<=R;_++)N.push(_);return N}function A($){return function(R){return($===null||R.category!==$)&&$!=="all"}}function O($){$=parseInt($,10);var R=null;return $===0?R="all":$===1?R="bold":2<$&&$<5?R="underline":4<$&&$<7?R="blink":$===8?R="hide":$===9?R="strike":29<$&&$<38||$===39||89<$&&$<98?R="foreground-color":(39<$&&$<48||$===49||99<$&&$<108)&&(R="background-color"),R}function F($,R){return R.escapeXML?f.encodeXML($):$}function E($,R,N){return N||(N=""),$.push(R),"<".concat(R).concat(N?' style="'.concat(N,'"'):"",">")}function z($,R){return E($,"span",R)}function U($,R){return E($,"span","color:"+R)}function re($,R){return E($,"span","background-color:"+R)}function te($,R){var N;if($.slice(-1)[0]===R&&(N=$.pop()),N)return"</"+R+">"}function ne($,R,N){var _=!1,H=3;function j(){return""}function ie(B,G){return N("xterm256Foreground",G),""}function ve(B,G){return N("xterm256Background",G),""}function Se(B){return R.newline?N("display",-1):N("text",B),""}function $e(B,G){_=!0,G.trim().length===0&&(G="0"),G=G.trimRight(";").split(";");var ue=o(G),he;try{for(ue.s();!(he=ue.n()).done;){var de=he.value;N("display",de)}}catch(_e){ue.e(_e)}finally{ue.f()}return""}function je(B){return N("text",B),""}function Qe(B){return N("rgb",B),""}var Ye=[{pattern:/^\x08+/,sub:j},{pattern:/^\x1b\[[012]?K/,sub:j},{pattern:/^\x1b\[\(B/,sub:j},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Qe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ie},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:Se},{pattern:/^\r+\n/,sub:Se},{pattern:/^\r/,sub:Se},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:$e},{pattern:/^\x1b\[\d?J/,sub:j},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:j},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:j},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:je}];function ze(B,G){G>H&&_||(_=!1,$=$.replace(B.pattern,B.sub))}var Me=[],I=$,V=I.length;e:for(;V>0;){for(var J=0,le=0,oe=Ye.length;le<oe;J=++le){var P=Ye[J];if(ze(P,J),$.length!==V){V=$.length;continue e}}if($.length===V)break;Me.push(0),V=$.length}return Me}function K($,R,N){return R!=="text"&&($=$.filter(A(O(N))),$.push({token:R,data:N,category:O(N)})),$}var Y=(function(){function $(R){e(this,$),R=R||{},R.colors&&(R.colors=Object.assign({},d.colors,R.colors)),this.options=Object.assign({},d,R),this.stack=[],this.stickyStack=[]}return r($,[{key:"toHtml",value:function(N){var _=this;N=typeof N=="string"?[N]:N;var H=this.stack,j=this.options,ie=[];return this.stickyStack.forEach(function(ve){var Se=b(H,ve.token,ve.data,j);Se&&ie.push(Se)}),ne(N.join(""),j,function(ve,Se){var $e=b(H,ve,Se,j);$e&&ie.push($e),j.stream&&(_.stickyStack=K(_.stickyStack,ve,Se))}),H.length&&ie.push(L(H)),ie.join("")}}]),$})();return vd=Y,vd}var Sae=xae();const _ae=$w(Sae);function ea(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function kae(e,t){return t&&e.endsWith(t)}async function op(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function sp(e){return new _ae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Tae(e){return e===null||typeof e!="function"&&typeof e!="object"}function zw(e){let t=e;if(Tae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=qE(t.stack||"",{ignoreStackEntries:[]}),t}function Cae(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(ea(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(ea(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(ea(t.stack))}`),r.length>0?r:null}function Fw(e,t){const r=sp(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>Cae(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const $a=hE("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),ao=qo($a,"file"),fn=qo($a,"view"),Hw=qo($a,"line"),Bw=qo($a,"column"),Ps=qo($a,"test");var t0={exports:{}},n0;function Ww(){return n0||(n0=1,(function(e,t){(function(r){r(Qs())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function T(Kt){return{type:Kt,style:"keyword"}}var W=T("keyword a"),fe=T("keyword b"),be=T("keyword c"),ae=T("keyword d"),Ae=T("operator"),pt={type:"atom",style:"atom"};return{if:T("if"),while:W,with:W,else:fe,do:fe,try:fe,finally:fe,return:ae,break:ae,continue:ae,new:T("new"),delete:be,void:be,throw:be,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Ae,typeof:Ae,instanceof:Ae,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:T("this"),class:T("class"),super:T("atom"),yield:be,export:T("export"),import:T("import"),extends:be,await:be}})(),x=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(T){for(var W=!1,fe,be=!1;(fe=T.next())!=null;){if(!W){if(fe=="/"&&!be)return;fe=="["?be=!0:be&&fe=="]"&&(be=!1)}W=!W&&fe=="\\"}}var M,A;function O(T,W,fe){return M=T,A=fe,W}function F(T,W){var fe=T.next();if(fe=='"'||fe=="'")return W.tokenize=E(fe),W.tokenize(T,W);if(fe=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return O("number","number");if(fe=="."&&T.match(".."))return O("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return O(fe);if(fe=="="&&T.eat(">"))return O("=>","operator");if(fe=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return O("number","number");if(/\d/.test(fe))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),O("number","number");if(fe=="/")return T.eat("*")?(W.tokenize=z,z(T,W)):T.eat("/")?(T.skipToEnd(),O("comment","comment")):Jn(T,W,1)?(L(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),O("regexp","string-2")):(T.eat("="),O("operator","operator",T.current()));if(fe=="`")return W.tokenize=U,U(T,W);if(fe=="#"&&T.peek()=="!")return T.skipToEnd(),O("meta","meta");if(fe=="#"&&T.eatWhile(m))return O("variable","property");if(fe=="<"&&T.match("!--")||fe=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),O("comment","comment");if(x.test(fe))return(fe!=">"||!W.lexical||W.lexical.type!=">")&&(T.eat("=")?(fe=="!"||fe=="=")&&T.eat("="):/[<>*+\-|&?]/.test(fe)&&(T.eat(fe),fe==">"&&T.eat(fe))),fe=="?"&&T.eat(".")?O("."):O("operator","operator",T.current());if(m.test(fe)){T.eatWhile(m);var be=T.current();if(W.lastType!="."){if(b.propertyIsEnumerable(be)){var ae=b[be];return O(ae.type,ae.style,be)}if(be=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return O("async","keyword",be)}return O("variable","variable",be)}}function E(T){return function(W,fe){var be=!1,ae;if(d&&W.peek()=="@"&&W.match(C))return fe.tokenize=F,O("jsonld-keyword","meta");for(;(ae=W.next())!=null&&!(ae==T&&!be);)be=!be&&ae=="\\";return be||(fe.tokenize=F),O("string","string")}}function z(T,W){for(var fe=!1,be;be=T.next();){if(be=="/"&&fe){W.tokenize=F;break}fe=be=="*"}return O("comment","comment")}function U(T,W){for(var fe=!1,be;(be=T.next())!=null;){if(!fe&&(be=="`"||be=="$"&&T.eat("{"))){W.tokenize=F;break}fe=!fe&&be=="\\"}return O("quasi","string-2",T.current())}var re="([{}])";function te(T,W){W.fatArrowAt&&(W.fatArrowAt=null);var fe=T.string.indexOf("=>",T.start);if(!(fe<0)){if(v){var be=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,fe));be&&(fe=be.index)}for(var ae=0,Ae=!1,pt=fe-1;pt>=0;--pt){var Kt=T.string.charAt(pt),kn=re.indexOf(Kt);if(kn>=0&&kn<3){if(!ae){++pt;break}if(--ae==0){Kt=="("&&(Ae=!0);break}}else if(kn>=3&&kn<6)++ae;else if(m.test(Kt))Ae=!0;else if(/["'\/`]/.test(Kt))for(;;--pt){if(pt==0)return;var Zo=T.string.charAt(pt-1);if(Zo==Kt&&T.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ae&&!ae){++pt;break}}Ae&&!ae&&(W.fatArrowAt=pt)}}var ne={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(T,W,fe,be,ae,Ae){this.indented=T,this.column=W,this.type=fe,this.prev=ae,this.info=Ae,be!=null&&(this.align=be)}function Y(T,W){if(!p)return!1;for(var fe=T.localVars;fe;fe=fe.next)if(fe.name==W)return!0;for(var be=T.context;be;be=be.prev)for(var fe=be.vars;fe;fe=fe.next)if(fe.name==W)return!0}function $(T,W,fe,be,ae){var Ae=T.cc;for(R.state=T,R.stream=ae,R.marked=null,R.cc=Ae,R.style=W,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var pt=Ae.length?Ae.pop():h?oe:J;if(pt(fe,be)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return R.marked?R.marked:fe=="variable"&&Y(T,be)?"variable-2":W}}}var R={state:null,marked:null,cc:null};function N(){for(var T=arguments.length-1;T>=0;T--)R.cc.push(arguments[T])}function _(){return N.apply(null,arguments),!0}function H(T,W){for(var fe=W;fe;fe=fe.next)if(fe.name==T)return!0;return!1}function j(T){var W=R.state;if(R.marked="def",!!p){if(W.context){if(W.lexical.info=="var"&&W.context&&W.context.block){var fe=ie(T,W.context);if(fe!=null){W.context=fe;return}}else if(!H(T,W.localVars)){W.localVars=new $e(T,W.localVars);return}}s.globalVars&&!H(T,W.globalVars)&&(W.globalVars=new $e(T,W.globalVars))}}function ie(T,W){if(W)if(W.block){var fe=ie(T,W.prev);return fe?fe==W.prev?W:new Se(fe,W.vars,!0):null}else return H(T,W.vars)?W:new Se(W.prev,new $e(T,W.vars),!1);else return null}function ve(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Se(T,W,fe){this.prev=T,this.vars=W,this.block=fe}function $e(T,W){this.name=T,this.next=W}var je=new $e("this",new $e("arguments",null));function Qe(){R.state.context=new Se(R.state.context,R.state.localVars,!1),R.state.localVars=je}function Ye(){R.state.context=new Se(R.state.context,R.state.localVars,!0),R.state.localVars=null}Qe.lex=Ye.lex=!0;function ze(){R.state.localVars=R.state.context.vars,R.state.context=R.state.context.prev}ze.lex=!0;function Me(T,W){var fe=function(){var be=R.state,ae=be.indented;if(be.lexical.type=="stat")ae=be.lexical.indented;else for(var Ae=be.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)ae=Ae.indented;be.lexical=new K(ae,R.stream.column(),T,null,be.lexical,W)};return fe.lex=!0,fe}function I(){var T=R.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}I.lex=!0;function V(T){function W(fe){return fe==T?_():T==";"||fe=="}"||fe==")"||fe=="]"?N():_(W)}return W}function J(T,W){return T=="var"?_(Me("vardef",W),jo,V(";"),I):T=="keyword a"?_(Me("form"),B,J,I):T=="keyword b"?_(Me("form"),J,I):T=="keyword d"?R.stream.match(/^\s*$/,!1)?_():_(Me("stat"),ue,V(";"),I):T=="debugger"?_(V(";")):T=="{"?_(Me("}"),Ye,Bt,I,ze):T==";"?_():T=="if"?(R.state.lexical.info=="else"&&R.state.cc[R.state.cc.length-1]==I&&R.state.cc.pop()(),_(Me("form"),B,J,I,Uo)):T=="function"?_(ar):T=="for"?_(Me("form"),Ye,Ha,J,ze,I):T=="class"||v&&W=="interface"?(R.marked="keyword",_(Me("form",T=="class"?T:W),Vo,I)):T=="variable"?v&&W=="declare"?(R.marked="keyword",_(J)):v&&(W=="module"||W=="enum"||W=="type")&&R.stream.match(/^\s*\w/,!1)?(R.marked="keyword",W=="enum"?_(Pe):W=="type"?_(Ba,V("operator"),tt,V(";")):_(Me("form"),_n,V("{"),Me("}"),Bt,I,I)):v&&W=="namespace"?(R.marked="keyword",_(Me("form"),oe,J,I)):v&&W=="abstract"?(R.marked="keyword",_(J)):_(Me("stat"),Ge):T=="switch"?_(Me("form"),B,V("{"),Me("}","switch"),Ye,Bt,I,I,ze):T=="case"?_(oe,V(":")):T=="default"?_(V(":")):T=="catch"?_(Me("form"),Qe,le,J,I,ze):T=="export"?_(Me("stat"),Go,I):T=="import"?_(Me("stat"),Ni,I):T=="async"?_(J):W=="@"?_(oe,J):N(Me("stat"),oe,V(";"),I)}function le(T){if(T=="(")return _(yr,V(")"))}function oe(T,W){return G(T,W,!1)}function P(T,W){return G(T,W,!0)}function B(T){return T!="("?N():_(Me(")"),ue,V(")"),I)}function G(T,W,fe){if(R.state.fatArrowAt==R.stream.start){var be=fe?ye:ge;if(T=="(")return _(Qe,Me(")"),at(yr,")"),I,V("=>"),be,ze);if(T=="variable")return N(Qe,_n,V("=>"),be,ze)}var ae=fe?de:he;return ne.hasOwnProperty(T)?_(ae):T=="function"?_(ar,ae):T=="class"||v&&W=="interface"?(R.marked="keyword",_(Me("form"),rf,I)):T=="keyword c"||T=="async"?_(fe?P:oe):T=="("?_(Me(")"),ue,V(")"),I,ae):T=="operator"||T=="spread"?_(fe?P:oe):T=="["?_(Me("]"),$t,I,ae):T=="{"?Gt(lt,"}",null,ae):T=="quasi"?N(_e,ae):T=="new"?_(qe(fe)):_()}function ue(T){return T.match(/[;\}\)\],]/)?N():N(oe)}function he(T,W){return T==","?_(ue):de(T,W,!1)}function de(T,W,fe){var be=fe==!1?he:de,ae=fe==!1?oe:P;if(T=="=>")return _(Qe,fe?ye:ge,ze);if(T=="operator")return/\+\+|--/.test(W)||v&&W=="!"?_(be):v&&W=="<"&&R.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?_(Me(">"),at(tt,">"),I,be):W=="?"?_(oe,V(":"),ae):_(ae);if(T=="quasi")return N(_e,be);if(T!=";"){if(T=="(")return Gt(P,")","call",be);if(T==".")return _(rt,be);if(T=="[")return _(Me("]"),ue,V("]"),I,be);if(v&&W=="as")return R.marked="keyword",_(tt,be);if(T=="regexp")return R.state.lastType=R.marked="operator",R.stream.backUp(R.stream.pos-R.stream.start-1),_(ae)}}function _e(T,W){return T!="quasi"?N():W.slice(W.length-2)!="${"?_(_e):_(ue,Ce)}function Ce(T){if(T=="}")return R.marked="string-2",R.state.tokenize=U,_(_e)}function ge(T){return te(R.stream,R.state),N(T=="{"?J:oe)}function ye(T){return te(R.stream,R.state),N(T=="{"?J:P)}function qe(T){return function(W){return W=="."?_(T?Fe:Ne):W=="variable"&&v?_(Bn,T?de:he):N(T?P:oe)}}function Ne(T,W){if(W=="target")return R.marked="keyword",_(he)}function Fe(T,W){if(W=="target")return R.marked="keyword",_(de)}function Ge(T){return T==":"?_(I,J):N(he,V(";"),I)}function rt(T){if(T=="variable")return R.marked="property",_()}function lt(T,W){if(T=="async")return R.marked="property",_(lt);if(T=="variable"||R.style=="keyword"){if(R.marked="property",W=="get"||W=="set")return _(ut);var fe;return v&&R.state.fatArrowAt==R.stream.start&&(fe=R.stream.match(/^\s*:\s*/,!1))&&(R.state.fatArrowAt=R.stream.pos+fe[0].length),_(Mt)}else{if(T=="number"||T=="string")return R.marked=d?"property":R.style+" property",_(Mt);if(T=="jsonld-keyword")return _(Mt);if(v&&ve(W))return R.marked="keyword",_(lt);if(T=="[")return _(oe,Fn,V("]"),Mt);if(T=="spread")return _(P,Mt);if(W=="*")return R.marked="keyword",_(lt);if(T==":")return N(Mt)}}function ut(T){return T!="variable"?N(Mt):(R.marked="property",_(ar))}function Mt(T){if(T==":")return _(P);if(T=="(")return N(ar)}function at(T,W,fe){function be(ae,Ae){if(fe?fe.indexOf(ae)>-1:ae==","){var pt=R.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),_(function(Kt,kn){return Kt==W||kn==W?N():N(T)},be)}return ae==W||Ae==W?_():fe&&fe.indexOf(";")>-1?N(T):_(V(W))}return function(ae,Ae){return ae==W||Ae==W?_():N(T,be)}}function Gt(T,W,fe){for(var be=3;be<arguments.length;be++)R.cc.push(arguments[be]);return _(Me(W,fe),at(T,W),I)}function Bt(T){return T=="}"?_():N(J,Bt)}function Fn(T,W){if(v){if(T==":")return _(tt);if(W=="?")return _(Fn)}}function Fr(T,W){if(v&&(T==":"||W=="in"))return _(tt)}function zt(T){if(v&&T==":")return R.stream.match(/^\s*\w+\s+is\b/,!1)?_(oe,Hn,tt):_(tt)}function Hn(T,W){if(W=="is")return R.marked="keyword",_()}function tt(T,W){if(W=="keyof"||W=="typeof"||W=="infer"||W=="readonly")return R.marked="keyword",_(W=="typeof"?P:tt);if(T=="variable"||W=="void")return R.marked="type",_(lr);if(W=="|"||W=="&")return _(tt);if(T=="string"||T=="number"||T=="atom")return _(lr);if(T=="[")return _(Me("]"),at(tt,"]",","),I,lr);if(T=="{")return _(Me("}"),He,I,lr);if(T=="(")return _(at(Pt,")"),ho,lr);if(T=="<")return _(at(tt,">"),tt);if(T=="quasi")return N(ln,lr)}function ho(T){if(T=="=>")return _(tt)}function He(T){return T.match(/[\}\)\]]/)?_():T==","||T==";"?_(He):N(ei,He)}function ei(T,W){if(T=="variable"||R.style=="keyword")return R.marked="property",_(ei);if(W=="?"||T=="number"||T=="string")return _(ei);if(T==":")return _(tt);if(T=="[")return _(V("variable"),Fr,V("]"),ei);if(T=="(")return N(Mi,ei);if(!T.match(/[;\}\)\],]/))return _()}function ln(T,W){return T!="quasi"?N():W.slice(W.length-2)!="${"?_(ln):_(tt,Rt)}function Rt(T){if(T=="}")return R.marked="string-2",R.state.tokenize=U,_(ln)}function Pt(T,W){return T=="variable"&&R.stream.match(/^\s*[?:]/,!1)||W=="?"?_(Pt):T==":"?_(tt):T=="spread"?_(Pt):N(tt)}function lr(T,W){if(W=="<")return _(Me(">"),at(tt,">"),I,lr);if(W=="|"||T=="."||W=="&")return _(tt);if(T=="[")return _(tt,V("]"),lr);if(W=="extends"||W=="implements")return R.marked="keyword",_(tt);if(W=="?")return _(tt,V(":"),tt)}function Bn(T,W){if(W=="<")return _(Me(">"),at(tt,">"),I,lr)}function vr(){return N(tt,an)}function an(T,W){if(W=="=")return _(tt)}function jo(T,W){return W=="enum"?(R.marked="keyword",_(Pe)):N(_n,Fn,mr,nf)}function _n(T,W){if(v&&ve(W))return R.marked="keyword",_(_n);if(T=="variable")return j(W),_();if(T=="spread")return _(_n);if(T=="[")return Gt(tl,"]");if(T=="{")return Gt(Ai,"}")}function Ai(T,W){return T=="variable"&&!R.stream.match(/^\s*:/,!1)?(j(W),_(mr)):(T=="variable"&&(R.marked="property"),T=="spread"?_(_n):T=="}"?N():T=="["?_(oe,V("]"),V(":"),Ai):_(V(":"),_n,mr))}function tl(){return N(_n,mr)}function mr(T,W){if(W=="=")return _(P)}function nf(T){if(T==",")return _(jo)}function Uo(T,W){if(T=="keyword b"&&W=="else")return _(Me("form","else"),J,I)}function Ha(T,W){if(W=="await")return _(Ha);if(T=="(")return _(Me(")"),nl,I)}function nl(T){return T=="var"?_(jo,Li):T=="variable"?_(Li):N(Li)}function Li(T,W){return T==")"?_():T==";"?_(Li):W=="in"||W=="of"?(R.marked="keyword",_(oe,Li)):N(oe,Li)}function ar(T,W){if(W=="*")return R.marked="keyword",_(ar);if(T=="variable")return j(W),_(ar);if(T=="(")return _(Qe,Me(")"),at(yr,")"),I,zt,J,ze);if(v&&W=="<")return _(Me(">"),at(vr,">"),I,ar)}function Mi(T,W){if(W=="*")return R.marked="keyword",_(Mi);if(T=="variable")return j(W),_(Mi);if(T=="(")return _(Qe,Me(")"),at(yr,")"),I,zt,ze);if(v&&W=="<")return _(Me(">"),at(vr,">"),I,Mi)}function Ba(T,W){if(T=="keyword"||T=="variable")return R.marked="type",_(Ba);if(W=="<")return _(Me(">"),at(vr,">"),I)}function yr(T,W){return W=="@"&&_(oe,yr),T=="spread"?_(yr):v&&ve(W)?(R.marked="keyword",_(yr)):v&&T=="this"?_(Fn,mr):N(_n,Fn,mr)}function rf(T,W){return T=="variable"?Vo(T,W):br(T,W)}function Vo(T,W){if(T=="variable")return j(W),_(br)}function br(T,W){if(W=="<")return _(Me(">"),at(vr,">"),I,br);if(W=="extends"||W=="implements"||v&&T==",")return W=="implements"&&(R.marked="keyword"),_(v?tt:oe,br);if(T=="{")return _(Me("}"),wr,I)}function wr(T,W){if(T=="async"||T=="variable"&&(W=="static"||W=="get"||W=="set"||v&&ve(W))&&R.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return R.marked="keyword",_(wr);if(T=="variable"||R.style=="keyword")return R.marked="property",_(po,wr);if(T=="number"||T=="string")return _(po,wr);if(T=="[")return _(oe,Fn,V("]"),po,wr);if(W=="*")return R.marked="keyword",_(wr);if(v&&T=="(")return N(Mi,wr);if(T==";"||T==",")return _(wr);if(T=="}")return _();if(W=="@")return _(oe,wr)}function po(T,W){if(W=="!"||W=="?")return _(po);if(T==":")return _(tt,mr);if(W=="=")return _(P);var fe=R.state.lexical.prev,be=fe&&fe.info=="interface";return N(be?Mi:ar)}function Go(T,W){return W=="*"?(R.marked="keyword",_(Yo,V(";"))):W=="default"?(R.marked="keyword",_(oe,V(";"))):T=="{"?_(at(Ko,"}"),Yo,V(";")):N(J)}function Ko(T,W){if(W=="as")return R.marked="keyword",_(V("variable"));if(T=="variable")return N(P,Ko)}function Ni(T){return T=="string"?_():T=="("?N(oe):T=="."?N(he):N(Xo,Hr,Yo)}function Xo(T,W){return T=="{"?Gt(Xo,"}"):(T=="variable"&&j(W),W=="*"&&(R.marked="keyword"),_(rl))}function Hr(T){if(T==",")return _(Xo,Hr)}function rl(T,W){if(W=="as")return R.marked="keyword",_(Xo)}function Yo(T,W){if(W=="from")return R.marked="keyword",_(oe)}function $t(T){return T=="]"?_():N(at(P,"]"))}function Pe(){return N(Me("form"),_n,V("{"),Me("}"),at(ti,"}"),I,I)}function ti(){return N(_n,mr)}function il(T,W){return T.lastType=="operator"||T.lastType==","||x.test(W.charAt(0))||/[,.]/.test(W.charAt(0))}function Jn(T,W,fe){return W.tokenize==F&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(W.lastType)||W.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(fe||0)))}return{startState:function(T){var W={tokenize:F,lastType:"sof",cc:[],lexical:new K((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Se(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(W.globalVars=s.globalVars),W},token:function(T,W){if(T.sol()&&(W.lexical.hasOwnProperty("align")||(W.lexical.align=!1),W.indented=T.indentation(),te(T,W)),W.tokenize!=z&&T.eatSpace())return null;var fe=W.tokenize(T,W);return M=="comment"?fe:(W.lastType=M=="operator"&&(A=="++"||A=="--")?"incdec":M,$(W,fe,M,A,T))},indent:function(T,W){if(T.tokenize==z||T.tokenize==U)return r.Pass;if(T.tokenize!=F)return 0;var fe=W&&W.charAt(0),be=T.lexical,ae;if(!/^\s*else\b/.test(W))for(var Ae=T.cc.length-1;Ae>=0;--Ae){var pt=T.cc[Ae];if(pt==I)be=be.prev;else if(pt!=Uo&&pt!=ze)break}for(;(be.type=="stat"||be.type=="form")&&(fe=="}"||(ae=T.cc[T.cc.length-1])&&(ae==he||ae==de)&&!/^[,\.=+\-*:?[\(]/.test(W));)be=be.prev;f&&be.type==")"&&be.prev.type=="stat"&&(be=be.prev);var Kt=be.type,kn=fe==Kt;return Kt=="vardef"?be.indented+(T.lastType=="operator"||T.lastType==","?be.info.length+1:0):Kt=="form"&&fe=="{"?be.indented:Kt=="form"?be.indented+c:Kt=="stat"?be.indented+(il(T,W)?f||c:0):be.info=="switch"&&!kn&&s.doubleIndentSwitch!=!1?be.indented+(/^(?:case|default)\b/.test(W)?c:2*c):be.align?be.column+(kn?0:1):be.indented+(kn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Jn,skipExpression:function(T){$(T,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),t0.exports}Ww();var r0={exports:{}},i0;function qw(){return i0||(i0=1,(function(e,t){(function(r){r(Qs())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function x(_,H){function j(Se){return H.tokenize=Se,Se(_,H)}var ie=_.next();if(ie=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?j(M("atom","]]>")):null:_.match("--")?j(M("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),j(A(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),H.tokenize=M("meta","?>"),"meta"):(m=_.eat("/")?"closeTag":"openTag",H.tokenize=C,"tag bracket");if(ie=="&"){var ve;return _.eat("#")?_.eat("x")?ve=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):ve=_.eatWhile(/[\d]/)&&_.eat(";"):ve=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),ve?"atom":"error"}else return _.eatWhile(/[^&<]/),null}x.isInText=!0;function C(_,H){var j=_.next();if(j==">"||j=="/"&&_.eat(">"))return H.tokenize=x,m=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return m="equals",null;if(j=="<"){H.tokenize=x,H.state=U,H.tagName=H.tagStart=null;var ie=H.tokenize(_,H);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(j)?(H.tokenize=L(j),H.stringStartCol=_.column(),H.tokenize(_,H)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(_){var H=function(j,ie){for(;!j.eol();)if(j.next()==_){ie.tokenize=C;break}return"string"};return H.isInAttribute=!0,H}function M(_,H){return function(j,ie){for(;!j.eol();){if(j.match(H)){ie.tokenize=x;break}j.next()}return _}}function A(_){return function(H,j){for(var ie;(ie=H.next())!=null;){if(ie=="<")return j.tokenize=A(_+1),j.tokenize(H,j);if(ie==">")if(_==1){j.tokenize=x;break}else return j.tokenize=A(_-1),j.tokenize(H,j)}return"meta"}}function O(_){return _&&_.toLowerCase()}function F(_,H,j){this.prev=_.context,this.tagName=H||"",this.indent=_.indented,this.startOfLine=j,(h.doNotIndent.hasOwnProperty(H)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function E(_){_.context&&(_.context=_.context.prev)}function z(_,H){for(var j;;){if(!_.context||(j=_.context.tagName,!h.contextGrabbers.hasOwnProperty(O(j))||!h.contextGrabbers[O(j)].hasOwnProperty(O(H))))return;E(_)}}function U(_,H,j){return _=="openTag"?(j.tagStart=H.column(),re):_=="closeTag"?te:U}function re(_,H,j){return _=="word"?(j.tagName=H.current(),b="tag",Y):h.allowMissingTagName&&_=="endTag"?(b="tag bracket",Y(_,H,j)):(b="error",re)}function te(_,H,j){if(_=="word"){var ie=H.current();return j.context&&j.context.tagName!=ie&&h.implicitlyClosed.hasOwnProperty(O(j.context.tagName))&&E(j),j.context&&j.context.tagName==ie||h.matchClosing===!1?(b="tag",ne):(b="tag error",K)}else return h.allowMissingTagName&&_=="endTag"?(b="tag bracket",ne(_,H,j)):(b="error",K)}function ne(_,H,j){return _!="endTag"?(b="error",ne):(E(j),U)}function K(_,H,j){return b="error",ne(_,H,j)}function Y(_,H,j){if(_=="word")return b="attribute",$;if(_=="endTag"||_=="selfcloseTag"){var ie=j.tagName,ve=j.tagStart;return j.tagName=j.tagStart=null,_=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(O(ie))?z(j,ie):(z(j,ie),j.context=new F(j,ie,ve==j.indented)),U}return b="error",Y}function $(_,H,j){return _=="equals"?R:(h.allowMissing||(b="error"),Y(_,H,j))}function R(_,H,j){return _=="string"?N:_=="word"&&h.allowUnquoted?(b="string",Y):(b="error",Y(_,H,j))}function N(_,H,j){return _=="string"?N:Y(_,H,j)}return{startState:function(_){var H={tokenize:x,state:U,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(H.baseIndent=_),H},token:function(_,H){if(!H.tagName&&_.sol()&&(H.indented=_.indentation()),_.eatSpace())return null;m=null;var j=H.tokenize(_,H);return(j||m)&&j!="comment"&&(b=null,H.state=H.state(m||j,_,H),b&&(j=b=="error"?j+" error":b)),j},indent:function(_,H,j){var ie=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+d;if(ie&&ie.noIndent)return r.Pass;if(_.tokenize!=C&&_.tokenize!=x)return j?j.match(/^(\s*)/)[0].length:0;if(_.tagName)return h.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(H))return 0;var ve=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(ve&&ve[1])for(;ie;)if(ie.tagName==ve[2]){ie=ie.prev;break}else if(h.implicitlyClosed.hasOwnProperty(O(ie.tagName)))ie=ie.prev;else break;else if(ve)for(;ie;){var Se=h.contextGrabbers[O(ie.tagName)];if(Se&&Se.hasOwnProperty(O(ve[2])))ie=ie.prev;else break}for(;ie&&ie.prev&&!ie.startOfLine;)ie=ie.prev;return ie?ie.indent+d:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(_){_.state==R&&(_.state=Y)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var H=[],j=_.context;j;j=j.prev)H.push(j.tagName);return H.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),r0.exports}qw();var o0={exports:{}},s0;function Eae(){return s0||(s0=1,(function(e,t){(function(r){r(Qs(),qw(),Ww())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var C=x.tagName;x.tagName=null;var L=d.indent(x,"","");return x.tagName=C,L}function v(x,C){return C.context.mode==d?m(x,C,C.context):b(x,C,C.context)}function m(x,C,L){if(L.depth==2)return x.match(/^.*?\*\//)?L.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(L.state);var M=p(L.state),A=L.state.context;if(A&&x.match(/^[^>]*>\s*$/,!1)){for(;A.prev&&!A.startOfLine;)A=A.prev;A.startOfLine?M-=c.indentUnit:L.prev.state.lexical&&(M=L.prev.state.lexical.indented)}else L.depth==1&&(M+=c.indentUnit);return C.context=new o(r.startState(h,M),h,0,C.context),null}if(L.depth==1){if(x.peek()=="<")return d.skipAttribute(L.state),C.context=new o(r.startState(d,p(L.state)),d,0,C.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return L.depth=2,v(x,C)}var O=d.token(x,L.state),F=x.current(),E;return/\btag\b/.test(O)?/>$/.test(F)?L.state.context?L.depth=0:C.context=C.context.prev:/^</.test(F)&&(L.depth=1):!O&&(E=F.indexOf("{"))>-1&&x.backUp(F.length-E),O}function b(x,C,L){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,L.state))return C.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,C.context),h.skipExpression(L.state),null;var M=h.token(x,L.state);if(!M&&L.depth!=null){var A=x.current();A=="{"?L.depth++:A=="}"&&--L.depth==0&&(C.context=C.context.prev)}return M}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,C,L){return x.context.mode.indent(x.context.state,C,L)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),o0.exports}Eae();var l0={exports:{}},a0;function Aae(){return a0||(a0=1,(function(e,t){(function(r){r(Qs())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),l0.exports}Aae();var c0={exports:{}},u0;function Lae(){return u0||(u0=1,(function(e,t){(function(r){r(Qs())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",x=m[b],C=p.pos;function L(){r.off(document,"mousemove",M),r.off(document,"mouseup",L)}function M(A){if(A.which!=1)return L();p.moveTo(C+(A[b]-x)*(p.total/p.size))}r.on(document,"mousemove",M),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=m.clientX<b.left?-1:m.clientX>b.right?1:0:x=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})()),c0.exports}Lae();const On=nn();function Mae(e,t,r={}){const o=YA.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),_t(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Iu(()=>{On.value=void 0}),Ih(o)}async function jw(e){ba({file:e.file.id,line:e.location?.line??0,view:"editor",test:e.id,column:null})}function Nae(e,t){ba({file:e,column:t.column-1,line:t.line,view:"editor",test:Ps.value})}function Oae(e,t){if(!t.location)return;const{line:r,column:o,file:s}=t.location;if(e.file.filepath!==s)return op(s,r,o);ba({file:e.file.id,column:o-1,line:r,view:"editor",test:Ps.value})}const Vs=Ve(),$s=Ve(!0),co=Ve(!1),vu=Ve(!0),_s=xe(()=>Gs.value?.coverage),nh=xe(()=>_s.value?.enabled),ks=xe(()=>nh.value&&!!_s.value.htmlReporter),Is=Gu("vitest-ui_splitpanes-mainSizes",[33,67]),ro=Gu("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?tr.value[0]/window.outerWidth*100:33,67]),At=ir({navigation:Is.value[0],details:{size:Is.value[1],browser:ro.value[0],main:ro.value[1]}}),f0=xe(()=>{if(ks.value){const e=_s.value.reportsDirectory.lastIndexOf("/"),t=_s.value.htmlReporter?.subdir;return t?`/${_s.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${_s.value.reportsDirectory.slice(e+1)}/index.html`}});_t(Yu,e=>{vu.value=e==="running"},{immediate:!0});function Rae(){const e=ao.value;if(e&&e.length>0){const t=gr(e);t?(Vs.value=t,$s.value=!1,co.value=!1):JC(()=>dt.state.getFiles(),()=>{Vs.value=gr(e),$s.value=!1,co.value=!1})}return $s}function mu(e){$s.value=e,co.value=!1,e&&(Vs.value=void 0,ao.value="")}function ba({file:e,line:t,view:r,test:o,column:s}){ao.value=e,Hw.value=t,Bw.value=s,fn.value=r,Ps.value=o,Vs.value=gr(e),mu(!1)}function Pae(e){e.type==="test"?fn.value==="editor"?jw(e):ba({file:e.file.id,line:null,column:null,view:fn.value,test:e.id}):ba({file:e.file.id,test:null,line:null,view:fn.value,column:null})}function $ae(){co.value=!0,$s.value=!1,Vs.value=void 0,ao.value=""}function Iae(){At.details.browser=100,At.details.main=0,ro.value=[100,0]}function Uw(){if(Yn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(tr.value[0]+20)/e*100}return 33}function Dae(){At.details.browser=Uw(),At.details.main=100-At.details.browser,ro.value=[At.details.browser,At.details.main]}function zae(){At.navigation=33,At.details.size=67,Is.value=[33,67]}function Vw(){At.details.main!==0&&(At.details.browser=Uw(),At.details.main=100-At.details.browser,ro.value=[At.details.browser,At.details.main])}const Fae={setCurrentFileId(e){ao.value=e,Vs.value=gr(e),mu(!1)},async setIframeViewport(e,t){tr.value=[e,t],Yn?.provider==="webdriverio"&&Vw(),await new Promise(r=>requestAnimationFrame(r))}},Hae=location.port,Bae=[location.hostname,Hae].filter(Boolean).join(":"),Wae=`${location.protocol==="https:"?"wss:":"ws:"}//${Bae}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var rr=Uint8Array,Ts=Uint16Array,qae=Int32Array,Gw=new rr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Kw=new rr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),jae=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Xw=function(e,t){for(var r=new Ts(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new qae(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Yw=Xw(Gw,2),Zw=Yw.b,Uae=Yw.r;Zw[28]=258,Uae[258]=28;var Vae=Xw(Kw,0),Gae=Vae.b,rh=new Ts(32768);for(var Lt=0;Lt<32768;++Lt){var Wi=(Lt&43690)>>1|(Lt&21845)<<1;Wi=(Wi&52428)>>2|(Wi&13107)<<2,Wi=(Wi&61680)>>4|(Wi&3855)<<4,rh[Lt]=((Wi&65280)>>8|(Wi&255)<<8)>>1}var ta=(function(e,t,r){for(var o=e.length,s=0,c=new Ts(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Ts(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Ts(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[rh[m]>>h]=p}else for(d=new Ts(o),s=0;s<o;++s)e[s]&&(d[s]=rh[f[e[s]-1]++]>>15-e[s]);return d}),Ia=new rr(288);for(var Lt=0;Lt<144;++Lt)Ia[Lt]=8;for(var Lt=144;Lt<256;++Lt)Ia[Lt]=9;for(var Lt=256;Lt<280;++Lt)Ia[Lt]=7;for(var Lt=280;Lt<288;++Lt)Ia[Lt]=8;var Jw=new rr(32);for(var Lt=0;Lt<32;++Lt)Jw[Lt]=5;var Kae=ta(Ia,9,1),Xae=ta(Jw,5,1),md=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Cr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},yd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Yae=function(e){return(e+7)/8|0},Qw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new rr(e.subarray(t,r))},Zae=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],jn=function(e,t,r){var o=new Error(t||Zae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,jn),!r)throw o;return o},lp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new rr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new rr(s*3));var p=function(oe){var P=r.length;if(oe>P){var B=new rr(Math.max(P*2,oe));B.set(r),r=B}},v=t.f||0,m=t.p||0,b=t.b||0,x=t.l,C=t.d,L=t.m,M=t.n,A=s*8;do{if(!x){v=Cr(e,m,1);var O=Cr(e,m+1,3);if(m+=3,O)if(O==1)x=Kae,C=Xae,L=9,M=5;else if(O==2){var U=Cr(e,m,31)+257,re=Cr(e,m+10,15)+4,te=U+Cr(e,m+5,31)+1;m+=14;for(var ne=new rr(te),K=new rr(19),Y=0;Y<re;++Y)K[jae[Y]]=Cr(e,m+Y*3,7);m+=re*3;for(var $=md(K),R=(1<<$)-1,N=ta(K,$,1),Y=0;Y<te;){var _=N[Cr(e,m,R)];m+=_&15;var F=_>>4;if(F<16)ne[Y++]=F;else{var H=0,j=0;for(F==16?(j=3+Cr(e,m,3),m+=2,H=ne[Y-1]):F==17?(j=3+Cr(e,m,7),m+=3):F==18&&(j=11+Cr(e,m,127),m+=7);j--;)ne[Y++]=H}}var ie=ne.subarray(0,U),ve=ne.subarray(U);L=md(ie),M=md(ve),x=ta(ie,L,1),C=ta(ve,M,1)}else jn(1);else{var F=Yae(m)+4,E=e[F-4]|e[F-3]<<8,z=F+E;if(z>s){h&&jn(0);break}d&&p(b+E),r.set(e.subarray(F,z),b),t.b=b+=E,t.p=m=z*8,t.f=v;continue}if(m>A){h&&jn(0);break}}d&&p(b+131072);for(var Se=(1<<L)-1,$e=(1<<M)-1,je=m;;je=m){var H=x[yd(e,m)&Se],Qe=H>>4;if(m+=H&15,m>A){h&&jn(0);break}if(H||jn(2),Qe<256)r[b++]=Qe;else if(Qe==256){je=m,x=null;break}else{var Ye=Qe-254;if(Qe>264){var Y=Qe-257,ze=Gw[Y];Ye=Cr(e,m,(1<<ze)-1)+Zw[Y],m+=ze}var Me=C[yd(e,m)&$e],I=Me>>4;Me||jn(3),m+=Me&15;var ve=Gae[I];if(I>3){var ze=Kw[I];ve+=yd(e,m)&(1<<ze)-1,m+=ze}if(m>A){h&&jn(0);break}d&&p(b+131072);var V=b+Ye;if(b<ve){var J=c-ve,le=Math.min(ve,V);for(J+b<0&&jn(3);b<le;++b)r[b]=o[J+b]}for(;b<V;++b)r[b]=r[b-ve]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=L,t.d=C,t.n=M)}while(!v);return b!=r.length&&f?Qw(r,0,b):r.subarray(0,b)},Jae=new rr(0),Qae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&jn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},ece=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},tce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&jn(6,"invalid zlib data"),(e[1]>>5&1)==1&&jn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function nce(e,t){return lp(e,{i:2},t,t)}function rce(e,t){var r=Qae(e);return r+8>e.length&&jn(6,"invalid gzip data"),lp(e.subarray(r,-8),{i:2},new rr(ece(e)),t)}function ice(e,t){return lp(e.subarray(tce(e),-4),{i:2},t,t)}function oce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?rce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?nce(e,t):ice(e,t)}var ih=typeof TextDecoder<"u"&&new TextDecoder,sce=0;try{ih.decode(Jae,{stream:!0}),sce=1}catch{}var lce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Qw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function ace(e,t){var r;if(ih)return ih.decode(e);var o=lce(e),s=o.s,r=o.r;return r.length&&jn(8),s}const bd=()=>{},mn=()=>Promise.resolve();function cce(){const e=ir({state:new _w,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=ir(e.state.filesMap),e.state.idMap=ir(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:mn,onDone:bd,onTaskUpdate:bd,writeFile:mn,rerun:mn,rerunTask:mn,updateSnapshot:mn,resolveSnapshotPath:mn,snapshotSaved:mn,onAfterSuiteRun:mn,onCancel:mn,getCountOfFailedTests:()=>0,sendLog:mn,resolveSnapshotRawPath:mn,readSnapshotFile:mn,saveSnapshotFile:mn,readTestFile:async d=>t.sources[d],removeSnapshotFile:mn,onUnhandledError:bd,saveTestFile:mn,getProvidedContext:()=>({}),getTestFiles:mn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=d.headers.get("content-type")?.toLowerCase()||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const v=new Uint8Array(await d.arrayBuffer()),m=ace(oce(v));t=Zd(m)}else t=Zd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const dt=(function(){return pr?cce():vA(Wae,{reactive:(t,r)=>r==="state"?ir(t):nn(t),handlers:{onTestAnnotate(t,r){Ee.annotateTest(t,r)},onTaskUpdate(t,r){Ee.resumeRun(t,r),Yu.value="running"},onFinished(t,r){Ee.endRun(),Ki.value=(r||[]).map(zw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),Gs=nn({}),Po=Ve("CONNECTING"),jt=xe(()=>{const e=ao.value;return e?gr(e):void 0}),ex=xe(()=>tp(jt.value).map(e=>e?.logs||[]).flat()||[]);function gr(e){const t=dt.state.idMap.get(e);return t||void 0}const uce=xe(()=>Po.value==="OPEN"),wd=xe(()=>Po.value==="CONNECTING");xe(()=>Po.value==="CLOSED");function fce(){return ap(dt.state.getFiles())}function tx(e){delete e.result;const t=Ee.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ra(e)))for(const r of e.tasks)tx(r)}function dce(e){const t=Ee.nodes;e.forEach(r=>{delete r.result,tp(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,In(o)&&(o.collectDuration=void 0))})}function ap(e){return dce(e),Ee.startRun(),dt.rpc.rerun(e.map(t=>t.filepath),!0)}function hce(e){return tx(e),Ee.startRun(),dt.rpc.rerunTask(e.id)}const Yn=window.__vitest_browser_runner__;window.__vitest_ui_api__=Fae;_t(()=>dt.ws,e=>{Po.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Po.value="OPEN",dt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([dt.rpc.getFiles(),dt.rpc.getConfig(),dt.rpc.getUnhandledErrors(),dt.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await dt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=gw(h,d,f);return p.mode="skip",p})),Ee.loadFiles(t,s),dt.state.collectFiles(t),Ee.startRun(),Ki.value=(o||[]).map(zw),Gs.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Po.value==="CONNECTING"&&(Po.value="CLOSED")},1e3)})},{immediate:!0});const pce=["aria-label","opacity","disabled","hover"],Et=ot({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(se(),me("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:st(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Sn(t.$slots,"default",{},()=>[ee("span",{class:st(e.icon),ma:"",block:""},null,2)])],10,pce))}}),gce={h:"full",flex:"~ col"},vce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},mce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},yce={class:"pointer-events-none","text-sm":""},bce={key:0},wce={id:"tester-container",relative:""},xce=["data-scale"],d0=20,Sce=100,_ce=ot({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return tr.value[0]===v[0]&&tr.value[1]===v[1]}const{width:o,height:s}=aw();async function c(p){tr.value=t[p],Yn?.provider==="webdriverio"&&Vw()}const f=xe(()=>{if(Yn?.provider==="webdriverio"){const[x,C]=tr.value;return{width:x,height:C}}const m=o.value*(At.details.size/100)*(At.details.browser/100)-d0,b=s.value-Sce;return{width:m,height:b}}),d=xe(()=>{if(Yn?.provider==="webdriverio")return 1;const[p,v]=tr.value,{width:m,height:b}=f.value,x=m>p?1:m/p,C=b>v?1:b/v;return Math.min(1,x,C)}),h=xe(()=>{const p=f.value.width,v=tr.value[0];return`${Math.trunc((p+d0-v)/2)}px`});return(p,v)=>{const m=Dr("tooltip");return se(),me("div",gce,[ee("div",vce,[ct(Re(Et,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=b=>Z(zae)())},null,512),[[Zi,Z(At).navigation<=15],[m,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=ee("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=ee("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ct(Re(Et,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=b=>Z(Iae)())},null,512),[[Zi,Z(At).details.main>0],[m,"Hide Right Panel",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=b=>Z(Dae)())},null,512),[[Zi,Z(At).details.main===0],[m,"Show Right Panel",void 0,{bottom:!0}]])]),ee("div",mce,[ct(Re(Et,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=b=>c("small-mobile"))},null,8,["active"]),[[m,"Small mobile",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=b=>c("large-mobile"))},null,8,["active"]),[[m,"Large mobile",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=b=>c("tablet"))},null,8,["active"]),[[m,"Tablet",void 0,{bottom:!0}]]),ee("span",yce,[ht(Ie(Z(tr)[0])+"x"+Ie(Z(tr)[1])+"px ",1),d.value<1?(se(),me("span",bce,"("+Ie((d.value*100).toFixed(0))+"%)",1)):Ue("",!0)])]),ee("div",wce,[ee("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:tn({"--viewport-width":`${Z(tr)[0]}px`,"--viewport-height":`${Z(tr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,xce)])])}}}),kce=Ei(_ce,[["__scopeId","data-v-2e86b8c3"]]),Tce={"text-2xl":""},Cce={"text-lg":"",op50:""},Ece=ot({__name:"ConnectionOverlay",setup(e){return(t,r)=>Z(uce)?Ue("",!0):(se(),me("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>Z(dt).reconnect&&Z(dt).reconnect(...o))},[ee("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(Z(wd)?"animate-pulse":"")},[ee("div",{text:"5xl",class:st(Z(wd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ee("div",Tce,Ie(Z(wd)?"Connecting...":"Disconnected"),1),ee("div",Cce," Check your terminal or start a new server with `"+Ie(Z(Yn)?`vitest --browser=${Z(Yn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Ace={h:"full",flex:"~ col"},Lce={"flex-auto":"","py-1":"","bg-white":""},Mce=["src"],h0=ot({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(se(),me("div",Ace,[r[0]||(r[0]=ee("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ee("div",{class:"i-carbon:folder-details-reference"}),ee("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),ee("div",Lce,[ee("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,Mce)])]))}}),Nce={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Oce={"font-bold":""},Rce={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Pce=["font-bold"],$ce={text:"red500/70"},Ice={key:1,text:"sm","mb-2":""},Dce={"font-bold":""},zce={key:2,text:"sm","mb-2":""},Fce={"font-bold":""},Hce=ot({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(se(),me(nt,null,[ee("h4",Nce,[ee("span",Oce,[ht(Ie(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(se(),me(nt,{key:0},[ht(":")],64)):Ue("",!0)]),ht(" "+Ie(e.error.message),1)]),e.error.stacks?.length?(se(),me("p",Rce,[(se(!0),me(nt,null,hr(e.error.stacks,(o,s)=>(se(),me("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[ht("❯ "+Ie(o.method)+" "+Ie(o.file)+":",1),ee("span",$ce,Ie(o.line)+":"+Ie(o.column),1),r[0]||(r[0]=ee("br",null,null,-1))],8,Pce))),128))])):Ue("",!0),e.error.VITEST_TEST_PATH?(se(),me("p",Ice,[r[1]||(r[1]=ht(" This error originated in ",-1)),ee("span",Dce,Ie(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=ht(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):Ue("",!0),e.error.VITEST_TEST_NAME?(se(),me("div",zce,[r[3]||(r[3]=ht(" The latest test that might've caused the error is ",-1)),ee("span",Fce,Ie(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=ht(". It might mean one of the following:",-1)),r[5]||(r[5]=ee("br",null,null,-1)),r[6]||(r[6]=ee("ul",null,[ee("li",null," The error was thrown, while Vitest was running this test. "),ee("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ue("",!0)],64))}}),Bce={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},Wce={class:"number","data-testid":"num-files"},qce={class:"number"},jce={class:"number","text-red5":""},Uce={class:"number","text-red5":""},Vce={class:"number","text-red5":""},Gce={class:"number","data-testid":"run-time"},Kce={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Xce={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Yce={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Zce=ot({__name:"TestFilesEntry",setup(e){return(t,r)=>(se(),me(nt,null,[ee("div",Bce,[r[8]||(r[8]=ee("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=ee("div",null,"Files",-1)),ee("div",Wce,Ie(Z(Ee).summary.files),1),Z(Ee).summary.filesSuccess?(se(),me(nt,{key:0},[r[0]||(r[0]=ee("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=ee("div",null,"Pass",-1)),ee("div",qce,Ie(Z(Ee).summary.filesSuccess),1)],64)):Ue("",!0),Z(Ee).summary.filesFailed?(se(),me(nt,{key:1},[r[2]||(r[2]=ee("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=ee("div",null," Fail ",-1)),ee("div",jce,Ie(Z(Ee).summary.filesFailed),1)],64)):Ue("",!0),Z(Ee).summary.filesSnapshotFailed?(se(),me(nt,{key:2},[r[4]||(r[4]=ee("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=ee("div",null," Snapshot Fail ",-1)),ee("div",Uce,Ie(Z(Ee).summary.filesSnapshotFailed),1)],64)):Ue("",!0),Z(Ki).length?(se(),me(nt,{key:3},[r[6]||(r[6]=ee("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=ee("div",null," Errors ",-1)),ee("div",Vce,Ie(Z(Ki).length),1)],64)):Ue("",!0),r[10]||(r[10]=ee("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=ee("div",null,"Time",-1)),ee("div",Gce,Ie(Z(Ee).summary.time),1)]),Z(Ki).length?(se(),me("div",Kce,[r[15]||(r[15]=ee("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),ee("p",Xce,[ht(" Vitest caught "+Ie(Z(Ki).length)+" error"+Ie(Z(Ki).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=ee("br",null,null,-1)),r[13]||(r[13]=ht(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),ee("details",Yce,[r[14]||(r[14]=ee("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(se(!0),me(nt,null,hr(Z(Ki),(o,s)=>(se(),Je(Hce,{key:s,error:o},null,8,["error"]))),128))])])):Ue("",!0)],64))}}),Jce=Ei(Zce,[["__scopeId","data-v-1bd0f2ea"]]),Qce={"p-2":"","text-center":"",flex:""},eue={"text-4xl":"","min-w-2em":""},tue={"text-md":""},Il=ot({__name:"DashboardEntry",setup(e){return(t,r)=>(se(),me("div",Qce,[ee("div",null,[ee("div",eue,[Sn(t.$slots,"body")]),ee("div",tue,[Sn(t.$slots,"header")])])]))}}),nue={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},rue=ot({__name:"TestsEntry",setup(e){function t(r){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,r!=="total"&&(Ze[r]=!0)}return(r,o)=>(se(),me("div",nue,[Re(Il,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:it(()=>[...o[4]||(o[4]=[ht(" Pass ",-1)])]),body:it(()=>[ht(Ie(Z(Ee).summary.testsSuccess),1)]),_:1}),Re(Il,{class:st({"text-red5":Z(Ee).summary.testsFailed,op50:!Z(Ee).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:it(()=>[...o[5]||(o[5]=[ht(" Fail ",-1)])]),body:it(()=>[ht(Ie(Z(Ee).summary.testsFailed),1)]),_:1},8,["class"]),Z(Ee).summary.testsSkipped?(se(),Je(Il,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:it(()=>[...o[6]||(o[6]=[ht(" Skip ",-1)])]),body:it(()=>[ht(Ie(Z(Ee).summary.testsSkipped),1)]),_:1})):Ue("",!0),Z(Ee).summary.testsTodo?(se(),Je(Il,{key:1,op50:"","data-testid":"todo-entry"},{header:it(()=>[...o[7]||(o[7]=[ht(" Todo ",-1)])]),body:it(()=>[ht(Ie(Z(Ee).summary.testsTodo),1)]),_:1})):Ue("",!0),Re(Il,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:it(()=>[...o[8]||(o[8]=[ht(" Total ",-1)])]),body:it(()=>[ht(Ie(Z(Ee).summary.totalTests),1)]),_:1})]))}}),iue={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},oue={key:0,class:"text-gray-5"},sue={"aria-labelledby":"tests",m:"y-4 x-2"},lue=ot({__name:"TestsFilesContainer",setup(e){return(t,r)=>(se(),me("div",iue,[Z(Ee).summary.files===0&&Z(Ss)?(se(),me("div",oue," No tests found ")):Ue("",!0),ee("section",sue,[Re(rue)]),Re(Jce)]))}}),aue={h:"full",flex:"~ col"},cue={class:"scrolls","flex-auto":"","py-1":""},p0=ot({__name:"Dashboard",setup(e){return(t,r)=>(se(),me("div",aue,[r[0]||(r[0]=ee("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ee("div",{class:"i-carbon-dashboard"}),ee("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),ee("div",cue,[Re(lue)])]))}});function uue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var oh="http://www.w3.org/1999/xhtml";const g0={svg:"http://www.w3.org/2000/svg",xhtml:oh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),g0.hasOwnProperty(t)?{space:g0[t],local:e}:e}function fue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===oh&&t.documentElement.namespaceURI===oh?t.createElement(e):t.createElementNS(r,e)}}function due(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function nx(e){var t=Zu(e);return(t.local?due:fue)(t)}function hue(){}function cp(e){return e==null?hue:function(){return this.querySelector(e)}}function pue(e){typeof e!="function"&&(e=cp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new sr(o,this._parents)}function gue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function vue(){return[]}function rx(e){return e==null?vue:function(){return this.querySelectorAll(e)}}function mue(e){return function(){return gue(e.apply(this,arguments))}}function yue(e){typeof e=="function"?e=mue(e):e=rx(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new sr(o,s)}function ix(e){return function(){return this.matches(e)}}function ox(e){return function(t){return t.matches(e)}}var bue=Array.prototype.find;function wue(e){return function(){return bue.call(this.children,e)}}function xue(){return this.firstElementChild}function Sue(e){return this.select(e==null?xue:wue(typeof e=="function"?e:ox(e)))}var _ue=Array.prototype.filter;function kue(){return Array.from(this.children)}function Tue(e){return function(){return _ue.call(this.children,e)}}function Cue(e){return this.selectAll(e==null?kue:Tue(typeof e=="function"?e:ox(e)))}function Eue(e){typeof e!="function"&&(e=ix(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new sr(o,this._parents)}function sx(e){return new Array(e.length)}function Aue(){return new sr(this._enter||this._groups.map(sx),this._parents)}function yu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}yu.prototype={constructor:yu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Lue(e){return function(){return e}}function Mue(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new yu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Nue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<m;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new yu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Oue(e){return e.__data__}function Rue(e,t){if(!arguments.length)return Array.from(this,Oue);var r=t?Nue:Mue,o=this._parents,s=this._groups;typeof e!="function"&&(e=Lue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,x=Pue(e.call(v,v&&v.__data__,p,o)),C=x.length,L=d[p]=new Array(C),M=f[p]=new Array(C),A=h[p]=new Array(b);r(v,m,L,M,A,x,t);for(var O=0,F=0,E,z;O<C;++O)if(E=L[O]){for(O>=F&&(F=O+1);!(z=M[F])&&++F<C;);E._next=z||null}}return f=new sr(f,o),f._enter=d,f._exit=h,f}function Pue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $ue(){return new sr(this._exit||this._groups.map(sx),this._parents)}function Iue(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function Due(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),x,C=0;C<m;++C)(x=p[C]||v[C])&&(b[C]=x);for(;h<s;++h)d[h]=r[h];return new sr(d,this._parents)}function zue(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function Fue(e){e||(e=Hue);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new sr(s,this._parents).order()}function Hue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Bue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Wue(){return Array.from(this)}function que(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function jue(){let e=0;for(const t of this)++e;return e}function Uue(){return!this.node()}function Vue(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function Gue(e){return function(){this.removeAttribute(e)}}function Kue(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Xue(e,t){return function(){this.setAttribute(e,t)}}function Yue(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Jue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Que(e,t){var r=Zu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?Kue:Gue:typeof t=="function"?r.local?Jue:Zue:r.local?Yue:Xue)(r,t))}function lx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function efe(e){return function(){this.style.removeProperty(e)}}function tfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function nfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function rfe(e,t,r){return arguments.length>1?this.each((t==null?efe:typeof t=="function"?nfe:tfe)(e,t,r??"")):Ks(this.node(),e)}function Ks(e,t){return e.style.getPropertyValue(t)||lx(e).getComputedStyle(e,null).getPropertyValue(t)}function ife(e){return function(){delete this[e]}}function ofe(e,t){return function(){this[e]=t}}function sfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function lfe(e,t){return arguments.length>1?this.each((t==null?ife:typeof t=="function"?sfe:ofe)(e,t)):this.node()[e]}function ax(e){return e.trim().split(/^|\s+/)}function up(e){return e.classList||new cx(e)}function cx(e){this._node=e,this._names=ax(e.getAttribute("class")||"")}cx.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ux(e,t){for(var r=up(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function fx(e,t){for(var r=up(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function afe(e){return function(){ux(this,e)}}function cfe(e){return function(){fx(this,e)}}function ufe(e,t){return function(){(t.apply(this,arguments)?ux:fx)(this,e)}}function ffe(e,t){var r=ax(e+"");if(arguments.length<2){for(var o=up(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?ufe:t?afe:cfe)(r,t))}function dfe(){this.textContent=""}function hfe(e){return function(){this.textContent=e}}function pfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function gfe(e){return arguments.length?this.each(e==null?dfe:(typeof e=="function"?pfe:hfe)(e)):this.node().textContent}function vfe(){this.innerHTML=""}function mfe(e){return function(){this.innerHTML=e}}function yfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function bfe(e){return arguments.length?this.each(e==null?vfe:(typeof e=="function"?yfe:mfe)(e)):this.node().innerHTML}function wfe(){this.nextSibling&&this.parentNode.appendChild(this)}function xfe(){return this.each(wfe)}function Sfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _fe(){return this.each(Sfe)}function kfe(e){var t=typeof e=="function"?e:nx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Tfe(){return null}function Cfe(e,t){var r=typeof e=="function"?e:nx(e),o=t==null?Tfe:typeof t=="function"?t:cp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Efe(){var e=this.parentNode;e&&e.removeChild(this)}function Afe(){return this.each(Efe)}function Lfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mfe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Nfe(e){return this.select(e?Mfe:Lfe)}function Ofe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Rfe(e){return function(t){e.call(this,t,this.__data__)}}function Pfe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function $fe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function Ife(e,t,r){return function(){var o=this.__on,s,c=Rfe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function Dfe(e,t,r){var o=Pfe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?Ife:$fe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function dx(e,t,r){var o=lx(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function zfe(e,t){return function(){return dx(this,e,t)}}function Ffe(e,t){return function(){return dx(this,e,t.apply(this,arguments))}}function Hfe(e,t){return this.each((typeof t=="function"?Ffe:zfe)(e,t))}function*Bfe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var hx=[null];function sr(e,t){this._groups=e,this._parents=t}function Da(){return new sr([[document.documentElement]],hx)}function Wfe(){return this}sr.prototype=Da.prototype={constructor:sr,select:pue,selectAll:yue,selectChild:Sue,selectChildren:Cue,filter:Eue,data:Rue,enter:Aue,exit:$ue,join:Iue,merge:Due,selection:Wfe,order:zue,sort:Fue,call:Bue,nodes:Wue,node:que,size:jue,empty:Uue,each:Vue,attr:Que,style:rfe,property:lfe,classed:ffe,text:gfe,html:bfe,raise:xfe,lower:_fe,append:kfe,insert:Cfe,remove:Afe,clone:Nfe,datum:Ofe,on:Dfe,dispatch:Hfe,[Symbol.iterator]:Bfe};function Gn(e){return typeof e=="string"?new sr([[document.querySelector(e)]],[document.documentElement]):new sr([[e]],hx)}function qfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function pi(e,t){if(e=qfe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var Xs=class di{x;y;static of([t,r]){return new di(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new di(this.x+t.x,this.y+t.y)}subtract(t){return new di(this.x-t.x,this.y-t.y)}multiply(t){return new di(this.x*t,this.y*t)}divide(t){return new di(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new di(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new di(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new di(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},jfe={value:()=>{}};function za(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Wc(r)}function Wc(e){this._=e}function Ufe(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Wc.prototype=za.prototype={constructor:Wc,on:function(e,t){var r=this._,o=Ufe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Vfe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=v0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=v0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Wc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function Vfe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function v0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=jfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Gfe={passive:!1},wa={capture:!0,passive:!1};function xd(e){e.stopImmediatePropagation()}function Ds(e){e.preventDefault(),e.stopImmediatePropagation()}function px(e){var t=e.document.documentElement,r=Gn(e).on("dragstart.drag",Ds,wa);"onselectstart"in t?r.on("selectstart.drag",Ds,wa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function gx(e,t){var r=e.document.documentElement,o=Gn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ds,wa),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Lc=e=>()=>e;function sh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}sh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Kfe(e){return!e.ctrlKey&&!e.button}function Xfe(){return this.parentNode}function Yfe(e,t){return t??{x:e.x,y:e.y}}function Zfe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Jfe(){var e=Kfe,t=Xfe,r=Yfe,o=Zfe,s={},c=za("start","drag","end"),f=0,d,h,p,v,m=0;function b(E){E.on("mousedown.drag",x).filter(o).on("touchstart.drag",M).on("touchmove.drag",A,Gfe).on("touchend.drag touchcancel.drag",O).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(E,z){if(!(v||!e.call(this,E,z))){var U=F(this,t.call(this,E,z),E,z,"mouse");U&&(Gn(E.view).on("mousemove.drag",C,wa).on("mouseup.drag",L,wa),px(E.view),xd(E),p=!1,d=E.clientX,h=E.clientY,U("start",E))}}function C(E){if(Ds(E),!p){var z=E.clientX-d,U=E.clientY-h;p=z*z+U*U>m}s.mouse("drag",E)}function L(E){Gn(E.view).on("mousemove.drag mouseup.drag",null),gx(E.view,p),Ds(E),s.mouse("end",E)}function M(E,z){if(e.call(this,E,z)){var U=E.changedTouches,re=t.call(this,E,z),te=U.length,ne,K;for(ne=0;ne<te;++ne)(K=F(this,re,E,z,U[ne].identifier,U[ne]))&&(xd(E),K("start",E,U[ne]))}}function A(E){var z=E.changedTouches,U=z.length,re,te;for(re=0;re<U;++re)(te=s[z[re].identifier])&&(Ds(E),te("drag",E,z[re]))}function O(E){var z=E.changedTouches,U=z.length,re,te;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),re=0;re<U;++re)(te=s[z[re].identifier])&&(xd(E),te("end",E,z[re]))}function F(E,z,U,re,te,ne){var K=c.copy(),Y=pi(ne||U,z),$,R,N;if((N=r.call(E,new sh("beforestart",{sourceEvent:U,target:b,identifier:te,active:f,x:Y[0],y:Y[1],dx:0,dy:0,dispatch:K}),re))!=null)return $=N.x-Y[0]||0,R=N.y-Y[1]||0,function _(H,j,ie){var ve=Y,Se;switch(H){case"start":s[te]=_,Se=f++;break;case"end":delete s[te],--f;case"drag":Y=pi(ie||j,z),Se=f;break}K.call(H,E,new sh(H,{sourceEvent:j,subject:N,target:b,identifier:te,active:Se,x:Y[0]+$,y:Y[1]+R,dx:Y[0]-ve[0],dy:Y[1]-ve[1],dispatch:K}),re)}}return b.filter=function(E){return arguments.length?(e=typeof E=="function"?E:Lc(!!E),b):e},b.container=function(E){return arguments.length?(t=typeof E=="function"?E:Lc(E),b):t},b.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Lc(E),b):r},b.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:Lc(!!E),b):o},b.on=function(){var E=c.on.apply(c,arguments);return E===c?b:E},b.clickDistance=function(E){return arguments.length?(m=(E=+E)*E,b):Math.sqrt(m)},b}function fp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Fa(){}var xa=.7,bu=1/xa,zs="\\s*([+-]?\\d+)\\s*",Sa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qfe=/^#([0-9a-f]{3,8})$/,ede=new RegExp(`^rgb\\(${zs},${zs},${zs}\\)$`),tde=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),nde=new RegExp(`^rgba\\(${zs},${zs},${zs},${Sa}\\)$`),rde=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${Sa}\\)$`),ide=new RegExp(`^hsl\\(${Sa},${Zr},${Zr}\\)$`),ode=new RegExp(`^hsla\\(${Sa},${Zr},${Zr},${Sa}\\)$`),m0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};fp(Fa,_a,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:y0,formatHex:y0,formatHex8:sde,formatHsl:lde,formatRgb:b0,toString:b0});function y0(){return this.rgb().formatHex()}function sde(){return this.rgb().formatHex8()}function lde(){return mx(this).formatHsl()}function b0(){return this.rgb().formatRgb()}function _a(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Qfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?w0(t):r===3?new Xn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Mc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Mc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ede.exec(e))?new Xn(t[1],t[2],t[3],1):(t=tde.exec(e))?new Xn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nde.exec(e))?Mc(t[1],t[2],t[3],t[4]):(t=rde.exec(e))?Mc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ide.exec(e))?_0(t[1],t[2]/100,t[3]/100,1):(t=ode.exec(e))?_0(t[1],t[2]/100,t[3]/100,t[4]):m0.hasOwnProperty(e)?w0(m0[e]):e==="transparent"?new Xn(NaN,NaN,NaN,0):null}function w0(e){return new Xn(e>>16&255,e>>8&255,e&255,1)}function Mc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Xn(e,t,r,o)}function ade(e){return e instanceof Fa||(e=_a(e)),e?(e=e.rgb(),new Xn(e.r,e.g,e.b,e.opacity)):new Xn}function lh(e,t,r,o){return arguments.length===1?ade(e):new Xn(e,t,r,o??1)}function Xn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}fp(Xn,lh,vx(Fa,{brighter(e){return e=e==null?bu:Math.pow(bu,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xn(Fo(this.r),Fo(this.g),Fo(this.b),wu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:x0,formatHex:x0,formatHex8:cde,formatRgb:S0,toString:S0}));function x0(){return`#${$o(this.r)}${$o(this.g)}${$o(this.b)}`}function cde(){return`#${$o(this.r)}${$o(this.g)}${$o(this.b)}${$o((isNaN(this.opacity)?1:this.opacity)*255)}`}function S0(){const e=wu(this.opacity);return`${e===1?"rgb(":"rgba("}${Fo(this.r)}, ${Fo(this.g)}, ${Fo(this.b)}${e===1?")":`, ${e})`}`}function wu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $o(e){return e=Fo(e),(e<16?"0":"")+e.toString(16)}function _0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Lr(e,t,r,o)}function mx(e){if(e instanceof Lr)return new Lr(e.h,e.s,e.l,e.opacity);if(e instanceof Fa||(e=_a(e)),!e)return new Lr;if(e instanceof Lr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new Lr(f,d,h,e.opacity)}function ude(e,t,r,o){return arguments.length===1?mx(e):new Lr(e,t,r,o??1)}function Lr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}fp(Lr,ude,vx(Fa,{brighter(e){return e=e==null?bu:Math.pow(bu,e),new Lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new Lr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Xn(Sd(e>=240?e-240:e+120,s,o),Sd(e,s,o),Sd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Lr(k0(this.h),Nc(this.s),Nc(this.l),wu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=wu(this.opacity);return`${e===1?"hsl(":"hsla("}${k0(this.h)}, ${Nc(this.s)*100}%, ${Nc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function k0(e){return e=(e||0)%360,e<0?e+360:e}function Nc(e){return Math.max(0,Math.min(1,e||0))}function Sd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const yx=e=>()=>e;function fde(e,t){return function(r){return e+r*t}}function dde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function hde(e){return(e=+e)==1?bx:function(t,r){return r-t?dde(t,r,e):yx(isNaN(t)?r:t)}}function bx(e,t){var r=t-e;return r?fde(e,r):yx(isNaN(e)?t:e)}const T0=(function e(t){var r=hde(t);function o(s,c){var f=r((s=lh(s)).r,(c=lh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=bx(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o})(1);function Xi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var ah=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_d=new RegExp(ah.source,"g");function pde(e){return function(){return e}}function gde(e){return function(t){return e(t)+""}}function vde(e,t){var r=ah.lastIndex=_d.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=ah.exec(e))&&(s=_d.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:Xi(o,s)})),r=_d.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?gde(h[0].x):pde(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var C0=180/Math.PI,ch={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wx(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*C0,skewX:Math.atan(h)*C0,scaleX:f,scaleY:d}}var Oc;function mde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ch:wx(t.a,t.b,t.c,t.d,t.e,t.f)}function yde(e){return e==null||(Oc||(Oc=document.createElementNS("http://www.w3.org/2000/svg","g")),Oc.setAttribute("transform",e),!(e=Oc.transform.baseVal.consolidate()))?ch:(e=e.matrix,wx(e.a,e.b,e.c,e.d,e.e,e.f))}function xx(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,x,C){if(p!==m||v!==b){var L=x.push("translate(",null,t,null,r);C.push({i:L-4,x:Xi(p,m)},{i:L-2,x:Xi(v,b)})}else(m||b)&&x.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Xi(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Xi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,x,C){if(p!==m||v!==b){var L=x.push(s(x)+"scale(",null,",",null,")");C.push({i:L-4,x:Xi(p,m)},{i:L-2,x:Xi(v,b)})}else(m!==1||b!==1)&&x.push(s(x)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(x){for(var C=-1,L=b.length,M;++C<L;)m[(M=b[C]).i]=M.x(x);return m.join("")}}}var bde=xx(mde,"px, ","px)","deg)"),wde=xx(yde,", ",")",")"),xde=1e-12;function E0(e){return((e=Math.exp(e))+1/e)/2}function Sde(e){return((e=Math.exp(e))-1/e)/2}function _de(e){return((e=Math.exp(2*e))-1)/(e+1)}const kde=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],x=v-d,C=m-h,L=x*x+C*C,M,A;if(L<xde)A=Math.log(b/p)/t,M=function(re){return[d+re*x,h+re*C,p*Math.exp(t*re*A)]};else{var O=Math.sqrt(L),F=(b*b-p*p+o*L)/(2*p*r*O),E=(b*b-p*p-o*L)/(2*b*r*O),z=Math.log(Math.sqrt(F*F+1)-F),U=Math.log(Math.sqrt(E*E+1)-E);A=(U-z)/t,M=function(re){var te=re*A,ne=E0(z),K=p/(r*O)*(ne*_de(t*te+z)-Sde(z));return[d+K*x,h+K*C,p*ne/E0(t*te+z)]}}return M.duration=A*1e3*t/Math.SQRT2,M}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s})(Math.SQRT2,2,4);var Ys=0,Bl=0,Dl=0,Sx=1e3,xu,Wl,Su=0,Bo=0,Ju=0,ka=typeof performance=="object"&&performance.now?performance:Date,_x=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function dp(){return Bo||(_x(Tde),Bo=ka.now()+Ju)}function Tde(){Bo=0}function _u(){this._call=this._time=this._next=null}_u.prototype=hp.prototype={constructor:_u,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?dp():+r)+(t==null?0:+t),!this._next&&Wl!==this&&(Wl?Wl._next=this:xu=this,Wl=this),this._call=e,this._time=r,uh()},stop:function(){this._call&&(this._call=null,this._time=1/0,uh())}};function hp(e,t,r){var o=new _u;return o.restart(e,t,r),o}function Cde(){dp(),++Ys;for(var e=xu,t;e;)(t=Bo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ys}function A0(){Bo=(Su=ka.now())+Ju,Ys=Bl=0;try{Cde()}finally{Ys=0,Ade(),Bo=0}}function Ede(){var e=ka.now(),t=e-Su;t>Sx&&(Ju-=t,Su=e)}function Ade(){for(var e,t=xu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:xu=r);Wl=e,uh(o)}function uh(e){if(!Ys){Bl&&(Bl=clearTimeout(Bl));var t=e-Bo;t>24?(e<1/0&&(Bl=setTimeout(A0,e-ka.now()-Ju)),Dl&&(Dl=clearInterval(Dl))):(Dl||(Su=ka.now(),Dl=setInterval(Ede,Sx)),Ys=1,_x(A0))}}function L0(e,t,r){var o=new _u;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Lde=za("start","end","cancel","interrupt"),Mde=[],kx=0,M0=1,fh=2,qc=3,N0=4,dh=5,jc=6;function Qu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Nde(e,r,{name:t,index:o,group:s,on:Lde,tween:Mde,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:kx})}function pp(e,t){var r=zr(e,t);if(r.state>kx)throw new Error("too late; already scheduled");return r}function Qr(e,t){var r=zr(e,t);if(r.state>qc)throw new Error("too late; already running");return r}function zr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Nde(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=hp(c,0,r.time);function c(p){r.state=M0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,x;if(r.state!==M0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===qc)return L0(f);x.state===N0?(x.state=jc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=jc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(L0(function(){r.state===qc&&(r.state=N0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=fh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===fh){for(r.state=qc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=x);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=dh,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===dh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=jc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Uc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>fh&&o.state<dh,o.state=jc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Ode(e){return this.each(function(){Uc(this,e)})}function Rde(e,t){var r,o;return function(){var s=Qr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function Pde(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Qr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function $de(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=zr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?Rde:Pde)(r,e,t))}function gp(e,t,r){var o=e._id;return e.each(function(){var s=Qr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return zr(s,o).value[t]}}function Tx(e,t){var r;return(typeof t=="number"?Xi:t instanceof _a?T0:(r=_a(t))?(t=r,T0):vde)(e,t)}function Ide(e){return function(){this.removeAttribute(e)}}function Dde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function Fde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function Hde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Bde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Wde(e,t){var r=Zu(e),o=r==="transform"?wde:Tx;return this.attrTween(e,typeof t=="function"?(r.local?Bde:Hde)(r,o,gp(this,"attr."+e,t)):t==null?(r.local?Dde:Ide)(r):(r.local?Fde:zde)(r,o,t))}function qde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function jde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ude(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&jde(e,c)),r}return s._value=t,s}function Vde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&qde(e,c)),r}return s._value=t,s}function Gde(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=Zu(e);return this.tween(r,(o.local?Ude:Vde)(o,t))}function Kde(e,t){return function(){pp(this,e).delay=+t.apply(this,arguments)}}function Xde(e,t){return t=+t,function(){pp(this,e).delay=t}}function Yde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Kde:Xde)(t,e)):zr(this.node(),t).delay}function Zde(e,t){return function(){Qr(this,e).duration=+t.apply(this,arguments)}}function Jde(e,t){return t=+t,function(){Qr(this,e).duration=t}}function Qde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Zde:Jde)(t,e)):zr(this.node(),t).duration}function ehe(e,t){if(typeof t!="function")throw new Error;return function(){Qr(this,e).ease=t}}function the(e){var t=this._id;return arguments.length?this.each(ehe(t,e)):zr(this.node(),t).ease}function nhe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Qr(this,e).ease=r}}function rhe(e){if(typeof e!="function")throw new Error;return this.each(nhe(this._id,e))}function ihe(e){typeof e!="function"&&(e=ix(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new _i(o,this._parents,this._name,this._id)}function ohe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(m[x]=b);for(;d<o;++d)f[d]=t[d];return new _i(f,this._parents,this._name,this._id)}function she(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function lhe(e,t,r){var o,s,c=she(t)?pp:Qr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function ahe(e,t){var r=this._id;return arguments.length<2?zr(this.node(),r).on.on(e):this.each(lhe(r,e,t))}function che(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function uhe(){return this.on("end.remove",che(this._id))}function fhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=cp(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Qu(p[b],t,r,b,p,zr(v,r)));return new _i(c,this._parents,t,r)}function dhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=rx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),x,C=zr(v,r),L=0,M=b.length;L<M;++L)(x=b[L])&&Qu(x,t,r,L,b,C);c.push(b),f.push(v)}return new _i(c,f,t,r)}var hhe=Da.prototype.constructor;function phe(){return new hhe(this._groups,this._parents)}function ghe(e,t){var r,o,s;return function(){var c=Ks(this,e),f=(this.style.removeProperty(e),Ks(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function Cx(e){return function(){this.style.removeProperty(e)}}function vhe(e,t,r){var o,s=r+"",c;return function(){var f=Ks(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function mhe(e,t,r){var o,s,c;return function(){var f=Ks(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ks(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function yhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Qr(this,e),p=h.on,v=h.value[c]==null?d||(d=Cx(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function bhe(e,t,r){var o=(e+="")=="transform"?bde:Tx;return t==null?this.styleTween(e,ghe(e,o)).on("end.style."+e,Cx(e)):typeof t=="function"?this.styleTween(e,mhe(e,o,gp(this,"style."+e,t))).each(yhe(this._id,e)):this.styleTween(e,vhe(e,o,t),r).on("end.style."+e,null)}function whe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function xhe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&whe(e,f,r)),o}return c._value=t,c}function She(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,xhe(e,t,r??""))}function _he(e){return function(){this.textContent=e}}function khe(e){return function(){var t=e(this);this.textContent=t??""}}function The(e){return this.tween("text",typeof e=="function"?khe(gp(this,"text",e)):_he(e==null?"":e+""))}function Che(e){return function(t){this.textContent=e.call(this,t)}}function Ehe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Che(s)),t}return o._value=e,o}function Ahe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Ehe(e))}function Lhe(){for(var e=this._name,t=this._id,r=Ex(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=zr(h,t);Qu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new _i(o,this._parents,e,r)}function Mhe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Qr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var Nhe=0;function _i(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function Ex(){return++Nhe}var ui=Da.prototype;_i.prototype={constructor:_i,select:fhe,selectAll:dhe,selectChild:ui.selectChild,selectChildren:ui.selectChildren,filter:ihe,merge:ohe,selection:phe,transition:Lhe,call:ui.call,nodes:ui.nodes,node:ui.node,size:ui.size,empty:ui.empty,each:ui.each,on:ahe,attr:Wde,attrTween:Gde,style:bhe,styleTween:She,text:The,textTween:Ahe,remove:uhe,tween:$de,delay:Yde,duration:Qde,ease:the,easeVarying:rhe,end:Mhe,[Symbol.iterator]:ui[Symbol.iterator]};function Ohe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Rhe={time:null,delay:0,duration:250,ease:Ohe};function Phe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function $he(e){var t,r;e instanceof _i?(t=e._id,e=e._name):(t=Ex(),(r=Rhe).time=dp(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Qu(h,e,t,p,f,r||Phe(h,t));return new _i(o,this._parents,e,t)}Da.prototype.interrupt=Ode;Da.prototype.transition=$he;const Rc=e=>()=>e;function Ihe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function yi(e,t,r){this.k=e,this.x=t,this.y=r}yi.prototype={constructor:yi,scale:function(e){return e===1?this:new yi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new yi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var vp=new yi(1,0,0);yi.prototype;function kd(e){e.stopImmediatePropagation()}function zl(e){e.preventDefault(),e.stopImmediatePropagation()}function Dhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function zhe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function O0(){return this.__zoom||vp}function Fhe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Hhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bhe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Whe(){var e=Dhe,t=zhe,r=Bhe,o=Fhe,s=Hhe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=kde,p=za("start","zoom","end"),v,m,b,x=500,C=150,L=0,M=10;function A(N){N.property("__zoom",O0).on("wheel.zoom",te,{passive:!1}).on("mousedown.zoom",ne).on("dblclick.zoom",K).filter(s).on("touchstart.zoom",Y).on("touchmove.zoom",$).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(N,_,H,j){var ie=N.selection?N.selection():N;ie.property("__zoom",O0),N!==ie?z(N,_,H,j):ie.interrupt().each(function(){U(this,arguments).event(j).start().zoom(null,typeof _=="function"?_.apply(this,arguments):_).end()})},A.scaleBy=function(N,_,H,j){A.scaleTo(N,function(){var ie=this.__zoom.k,ve=typeof _=="function"?_.apply(this,arguments):_;return ie*ve},H,j)},A.scaleTo=function(N,_,H,j){A.transform(N,function(){var ie=t.apply(this,arguments),ve=this.__zoom,Se=H==null?E(ie):typeof H=="function"?H.apply(this,arguments):H,$e=ve.invert(Se),je=typeof _=="function"?_.apply(this,arguments):_;return r(F(O(ve,je),Se,$e),ie,f)},H,j)},A.translateBy=function(N,_,H,j){A.transform(N,function(){return r(this.__zoom.translate(typeof _=="function"?_.apply(this,arguments):_,typeof H=="function"?H.apply(this,arguments):H),t.apply(this,arguments),f)},null,j)},A.translateTo=function(N,_,H,j,ie){A.transform(N,function(){var ve=t.apply(this,arguments),Se=this.__zoom,$e=j==null?E(ve):typeof j=="function"?j.apply(this,arguments):j;return r(vp.translate($e[0],$e[1]).scale(Se.k).translate(typeof _=="function"?-_.apply(this,arguments):-_,typeof H=="function"?-H.apply(this,arguments):-H),ve,f)},j,ie)};function O(N,_){return _=Math.max(c[0],Math.min(c[1],_)),_===N.k?N:new yi(_,N.x,N.y)}function F(N,_,H){var j=_[0]-H[0]*N.k,ie=_[1]-H[1]*N.k;return j===N.x&&ie===N.y?N:new yi(N.k,j,ie)}function E(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function z(N,_,H,j){N.on("start.zoom",function(){U(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){U(this,arguments).event(j).end()}).tween("zoom",function(){var ie=this,ve=arguments,Se=U(ie,ve).event(j),$e=t.apply(ie,ve),je=H==null?E($e):typeof H=="function"?H.apply(ie,ve):H,Qe=Math.max($e[1][0]-$e[0][0],$e[1][1]-$e[0][1]),Ye=ie.__zoom,ze=typeof _=="function"?_.apply(ie,ve):_,Me=h(Ye.invert(je).concat(Qe/Ye.k),ze.invert(je).concat(Qe/ze.k));return function(I){if(I===1)I=ze;else{var V=Me(I),J=Qe/V[2];I=new yi(J,je[0]-V[0]*J,je[1]-V[1]*J)}Se.zoom(null,I)}})}function U(N,_,H){return!H&&N.__zooming||new re(N,_)}function re(N,_){this.that=N,this.args=_,this.active=0,this.sourceEvent=null,this.extent=t.apply(N,_),this.taps=0}re.prototype={event:function(N){return N&&(this.sourceEvent=N),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(N,_){return this.mouse&&N!=="mouse"&&(this.mouse[1]=_.invert(this.mouse[0])),this.touch0&&N!=="touch"&&(this.touch0[1]=_.invert(this.touch0[0])),this.touch1&&N!=="touch"&&(this.touch1[1]=_.invert(this.touch1[0])),this.that.__zoom=_,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(N){var _=Gn(this.that).datum();p.call(N,this.that,new Ihe(N,{sourceEvent:this.sourceEvent,target:A,transform:this.that.__zoom,dispatch:p}),_)}};function te(N,..._){if(!e.apply(this,arguments))return;var H=U(this,_).event(N),j=this.__zoom,ie=Math.max(c[0],Math.min(c[1],j.k*Math.pow(2,o.apply(this,arguments)))),ve=pi(N);if(H.wheel)(H.mouse[0][0]!==ve[0]||H.mouse[0][1]!==ve[1])&&(H.mouse[1]=j.invert(H.mouse[0]=ve)),clearTimeout(H.wheel);else{if(j.k===ie)return;H.mouse=[ve,j.invert(ve)],Uc(this),H.start()}zl(N),H.wheel=setTimeout(Se,C),H.zoom("mouse",r(F(O(j,ie),H.mouse[0],H.mouse[1]),H.extent,f));function Se(){H.wheel=null,H.end()}}function ne(N,..._){if(b||!e.apply(this,arguments))return;var H=N.currentTarget,j=U(this,_,!0).event(N),ie=Gn(N.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",Qe,!0),ve=pi(N,H),Se=N.clientX,$e=N.clientY;px(N.view),kd(N),j.mouse=[ve,this.__zoom.invert(ve)],Uc(this),j.start();function je(Ye){if(zl(Ye),!j.moved){var ze=Ye.clientX-Se,Me=Ye.clientY-$e;j.moved=ze*ze+Me*Me>L}j.event(Ye).zoom("mouse",r(F(j.that.__zoom,j.mouse[0]=pi(Ye,H),j.mouse[1]),j.extent,f))}function Qe(Ye){ie.on("mousemove.zoom mouseup.zoom",null),gx(Ye.view,j.moved),zl(Ye),j.event(Ye).end()}}function K(N,..._){if(e.apply(this,arguments)){var H=this.__zoom,j=pi(N.changedTouches?N.changedTouches[0]:N,this),ie=H.invert(j),ve=H.k*(N.shiftKey?.5:2),Se=r(F(O(H,ve),j,ie),t.apply(this,_),f);zl(N),d>0?Gn(this).transition().duration(d).call(z,Se,j,N):Gn(this).call(A.transform,Se,j,N)}}function Y(N,..._){if(e.apply(this,arguments)){var H=N.touches,j=H.length,ie=U(this,_,N.changedTouches.length===j).event(N),ve,Se,$e,je;for(kd(N),Se=0;Se<j;++Se)$e=H[Se],je=pi($e,this),je=[je,this.__zoom.invert(je),$e.identifier],ie.touch0?!ie.touch1&&ie.touch0[2]!==je[2]&&(ie.touch1=je,ie.taps=0):(ie.touch0=je,ve=!0,ie.taps=1+!!v);v&&(v=clearTimeout(v)),ve&&(ie.taps<2&&(m=je[0],v=setTimeout(function(){v=null},x)),Uc(this),ie.start())}}function $(N,..._){if(this.__zooming){var H=U(this,_).event(N),j=N.changedTouches,ie=j.length,ve,Se,$e,je;for(zl(N),ve=0;ve<ie;++ve)Se=j[ve],$e=pi(Se,this),H.touch0&&H.touch0[2]===Se.identifier?H.touch0[0]=$e:H.touch1&&H.touch1[2]===Se.identifier&&(H.touch1[0]=$e);if(Se=H.that.__zoom,H.touch1){var Qe=H.touch0[0],Ye=H.touch0[1],ze=H.touch1[0],Me=H.touch1[1],I=(I=ze[0]-Qe[0])*I+(I=ze[1]-Qe[1])*I,V=(V=Me[0]-Ye[0])*V+(V=Me[1]-Ye[1])*V;Se=O(Se,Math.sqrt(I/V)),$e=[(Qe[0]+ze[0])/2,(Qe[1]+ze[1])/2],je=[(Ye[0]+Me[0])/2,(Ye[1]+Me[1])/2]}else if(H.touch0)$e=H.touch0[0],je=H.touch0[1];else return;H.zoom("touch",r(F(Se,$e,je),H.extent,f))}}function R(N,..._){if(this.__zooming){var H=U(this,_).event(N),j=N.changedTouches,ie=j.length,ve,Se;for(kd(N),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ve=0;ve<ie;++ve)Se=j[ve],H.touch0&&H.touch0[2]===Se.identifier?delete H.touch0:H.touch1&&H.touch1[2]===Se.identifier&&delete H.touch1;if(H.touch1&&!H.touch0&&(H.touch0=H.touch1,delete H.touch1),H.touch0)H.touch0[1]=this.__zoom.invert(H.touch0[0]);else if(H.end(),H.taps===2&&(Se=pi(Se,this),Math.hypot(m[0]-Se[0],m[1]-Se[1])<M)){var $e=Gn(this).on("dblclick.zoom");$e&&$e.apply(this,arguments)}}}return A.wheelDelta=function(N){return arguments.length?(o=typeof N=="function"?N:Rc(+N),A):o},A.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Rc(!!N),A):e},A.touchable=function(N){return arguments.length?(s=typeof N=="function"?N:Rc(!!N),A):s},A.extent=function(N){return arguments.length?(t=typeof N=="function"?N:Rc([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),A):t},A.scaleExtent=function(N){return arguments.length?(c[0]=+N[0],c[1]=+N[1],A):[c[0],c[1]]},A.translateExtent=function(N){return arguments.length?(f[0][0]=+N[0][0],f[1][0]=+N[1][0],f[0][1]=+N[0][1],f[1][1]=+N[1][1],A):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},A.constrain=function(N){return arguments.length?(r=N,A):r},A.duration=function(N){return arguments.length?(d=+N,A):d},A.interpolate=function(N){return arguments.length?(h=N,A):h},A.on=function(){var N=p.on.apply(p,arguments);return N===p?A:N},A.clickDistance=function(N){return arguments.length?(L=(N=+N)*N,A):Math.sqrt(L)},A.tapDistance=function(N){return arguments.length?(M=+N,A):M},A}function qhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Ax(this.cover(t,r),t,r,e)}function Ax(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,x,C,L,M,A,O;if(!c)return e._root=f,e;for(;c.length;)if((L=t>=(m=(d+p)/2))?d=m:p=m,(M=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[A=M<<1|L]))return s[A]=f,e;if(x=+e._x.call(null,c.data),C=+e._y.call(null,c.data),t===x&&r===C)return f.next=c,s?s[A]=f:e._root=f,e;do s=s?s[A]=new Array(4):e._root=new Array(4),(L=t>=(m=(d+p)/2))?d=m:p=m,(M=r>=(b=(h+v)/2))?h=b:v=b;while((A=M<<1|L)===(O=(C>=b)<<1|x>=m));return s[O]=c,s[A]=f,e}function jhe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)Ax(this,f[r],d[r],e[r]);return this}function Uhe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function Vhe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Ghe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function $n(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Khe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],x=this._root,C,L;for(x&&b.push(new $n(x,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);C=b.pop();)if(!(!(x=C.node)||(f=C.x0)>v||(d=C.y0)>m||(h=C.x1)<s||(p=C.y1)<c))if(x.length){var M=(f+h)/2,A=(d+p)/2;b.push(new $n(x[3],M,A,h,p),new $n(x[2],f,A,M,p),new $n(x[1],M,d,h,A),new $n(x[0],f,d,M,A)),(L=(t>=A)<<1|e>=M)&&(C=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=C)}else{var O=e-+this._x.call(null,x.data),F=t-+this._y.call(null,x.data),E=O*O+F*F;if(E<r){var z=Math.sqrt(r=E);s=e-z,c=t-z,v=e+z,m=t+z,o=x.data}}return o}function Xhe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,x,C,L,M,A;if(!r)return this;if(r.length)for(;;){if((C=v>=(b=(f+h)/2))?f=b:h=b,(L=m>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[M=L<<1|C]))return this;if(!r.length)break;(t[M+1&3]||t[M+2&3]||t[M+3&3])&&(o=t,A=M)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[M]=c:delete t[M],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[A]=r:this._root=r),this):(this._root=c,this)}function Yhe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Zhe(){return this._root}function Jhe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Qhe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new $n(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new $n(s,p,v,d,h)),(s=o[2])&&t.push(new $n(s,c,v,p,h)),(s=o[1])&&t.push(new $n(s,p,f,d,v)),(s=o[0])&&t.push(new $n(s,c,f,p,v))}return this}function epe(e){var t=[],r=[],o;for(this._root&&t.push(new $n(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new $n(c,f,d,v,m)),(c=s[1])&&t.push(new $n(c,v,d,h,m)),(c=s[2])&&t.push(new $n(c,f,m,v,p)),(c=s[3])&&t.push(new $n(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function tpe(e){return e[0]}function npe(e){return arguments.length?(this._x=e,this):this._x}function rpe(e){return e[1]}function ipe(e){return arguments.length?(this._y=e,this):this._y}function mp(e,t,r){var o=new yp(t??tpe,r??rpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function yp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function R0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var zn=mp.prototype=yp.prototype;zn.copy=function(){var e=new yp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=R0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=R0(o));return e};zn.add=qhe;zn.addAll=jhe;zn.cover=Uhe;zn.data=Vhe;zn.extent=Ghe;zn.find=Khe;zn.remove=Xhe;zn.removeAll=Yhe;zn.root=Zhe;zn.size=Jhe;zn.visit=Qhe;zn.visitAfter=epe;zn.x=npe;zn.y=ipe;function Dn(e){return function(){return e}}function Ji(e){return(e()-.5)*1e-6}function ope(e){return e.x+e.vx}function spe(e){return e.y+e.vy}function lpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Dn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,x,C,L,M,A=0;A<c;++A)for(m=mp(t,ope,spe).visitAfter(d),p=0;p<v;++p)b=t[p],L=r[b.index],M=L*L,x=b.x+b.vx,C=b.y+b.vy,m.visit(O);function O(F,E,z,U,re){var te=F.data,ne=F.r,K=L+ne;if(te){if(te.index>b.index){var Y=x-te.x-te.vx,$=C-te.y-te.vy,R=Y*Y+$*$;R<K*K&&(Y===0&&(Y=Ji(o),R+=Y*Y),$===0&&($=Ji(o),R+=$*$),R=(K-(R=Math.sqrt(R)))/R*s,b.vx+=(Y*=R)*(K=(ne*=ne)/(M+ne)),b.vy+=($*=R)*K,te.vx-=Y*(K=1-K),te.vy-=$*K)}return}return E>x+K||U<x-K||z>C+K||re<C-K}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Dn(+p),h(),f):e},f}function ape(e){return e.index}function P0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function cpe(e){var t=ape,r=m,o,s=Dn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(M){return 1/Math.min(d[M.source.index],d[M.target.index])}function b(M){for(var A=0,O=e.length;A<v;++A)for(var F=0,E,z,U,re,te,ne,K;F<O;++F)E=e[F],z=E.source,U=E.target,re=U.x+U.vx-z.x-z.vx||Ji(p),te=U.y+U.vy-z.y-z.vy||Ji(p),ne=Math.sqrt(re*re+te*te),ne=(ne-c[F])/ne*M*o[F],re*=ne,te*=ne,U.vx-=re*(K=h[F]),U.vy-=te*K,z.vx+=re*(K=1-K),z.vy+=te*K}function x(){if(f){var M,A=f.length,O=e.length,F=new Map(f.map((z,U)=>[t(z,U,f),z])),E;for(M=0,d=new Array(A);M<O;++M)E=e[M],E.index=M,typeof E.source!="object"&&(E.source=P0(F,E.source)),typeof E.target!="object"&&(E.target=P0(F,E.target)),d[E.source.index]=(d[E.source.index]||0)+1,d[E.target.index]=(d[E.target.index]||0)+1;for(M=0,h=new Array(O);M<O;++M)E=e[M],h[M]=d[E.source.index]/(d[E.source.index]+d[E.target.index]);o=new Array(O),C(),c=new Array(O),L()}}function C(){if(f)for(var M=0,A=e.length;M<A;++M)o[M]=+r(e[M],M,e)}function L(){if(f)for(var M=0,A=e.length;M<A;++M)c[M]=+s(e[M],M,e)}return b.initialize=function(M,A){f=M,p=A,x()},b.links=function(M){return arguments.length?(e=M,x(),b):e},b.id=function(M){return arguments.length?(t=M,b):t},b.iterations=function(M){return arguments.length?(v=+M,b):v},b.strength=function(M){return arguments.length?(r=typeof M=="function"?M:Dn(+M),C(),b):r},b.distance=function(M){return arguments.length?(s=typeof M=="function"?M:Dn(+M),L(),b):s},b}const upe=1664525,fpe=1013904223,$0=4294967296;function dpe(){let e=1;return()=>(e=(upe*e+fpe)%$0)/$0}function hpe(e){return e.x}function ppe(e){return e.y}var gpe=10,vpe=Math.PI*(3-Math.sqrt(5));function mpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=hp(m),p=za("tick","end"),v=dpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(L){var M,A=e.length,O;L===void 0&&(L=1);for(var F=0;F<L;++F)for(r+=(c-r)*s,d.forEach(function(E){E(r)}),M=0;M<A;++M)O=e[M],O.fx==null?O.x+=O.vx*=f:(O.x=O.fx,O.vx=0),O.fy==null?O.y+=O.vy*=f:(O.y=O.fy,O.vy=0);return t}function x(){for(var L=0,M=e.length,A;L<M;++L){if(A=e[L],A.index=L,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),isNaN(A.x)||isNaN(A.y)){var O=gpe*Math.sqrt(.5+L),F=L*vpe;A.x=O*Math.cos(F),A.y=O*Math.sin(F)}(isNaN(A.vx)||isNaN(A.vy))&&(A.vx=A.vy=0)}}function C(L){return L.initialize&&L.initialize(e,v),L}return x(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(L){return arguments.length?(e=L,x(),d.forEach(C),t):e},alpha:function(L){return arguments.length?(r=+L,t):r},alphaMin:function(L){return arguments.length?(o=+L,t):o},alphaDecay:function(L){return arguments.length?(s=+L,t):+s},alphaTarget:function(L){return arguments.length?(c=+L,t):c},velocityDecay:function(L){return arguments.length?(f=1-L,t):1-f},randomSource:function(L){return arguments.length?(v=L,d.forEach(C),t):v},force:function(L,M){return arguments.length>1?(M==null?d.delete(L):d.set(L,C(M)),t):d.get(L)},find:function(L,M,A){var O=0,F=e.length,E,z,U,re,te;for(A==null?A=1/0:A*=A,O=0;O<F;++O)re=e[O],E=L-re.x,z=M-re.y,U=E*E+z*z,U<A&&(te=re,A=U);return te},on:function(L,M){return arguments.length>1?(p.on(L,M),t):p.on(L)}}}function ype(){var e,t,r,o,s=Dn(-30),c,f=1,d=1/0,h=.81;function p(x){var C,L=e.length,M=mp(e,hpe,ppe).visitAfter(m);for(o=x,C=0;C<L;++C)t=e[C],M.visit(b)}function v(){if(e){var x,C=e.length,L;for(c=new Array(C),x=0;x<C;++x)L=e[x],c[L.index]=+s(L,x,e)}}function m(x){var C=0,L,M,A=0,O,F,E;if(x.length){for(O=F=E=0;E<4;++E)(L=x[E])&&(M=Math.abs(L.value))&&(C+=L.value,A+=M,O+=M*L.x,F+=M*L.y);x.x=O/A,x.y=F/A}else{L=x,L.x=L.data.x,L.y=L.data.y;do C+=c[L.data.index];while(L=L.next)}x.value=C}function b(x,C,L,M){if(!x.value)return!0;var A=x.x-t.x,O=x.y-t.y,F=M-C,E=A*A+O*O;if(F*F/h<E)return E<d&&(A===0&&(A=Ji(r),E+=A*A),O===0&&(O=Ji(r),E+=O*O),E<f&&(E=Math.sqrt(f*E)),t.vx+=A*x.value*o/E,t.vy+=O*x.value*o/E),!0;if(x.length||E>=d)return;(x.data!==t||x.next)&&(A===0&&(A=Ji(r),E+=A*A),O===0&&(O=Ji(r),E+=O*O),E<f&&(E=Math.sqrt(f*E)));do x.data!==t&&(F=c[x.data.index]*o/E,t.vx+=A*F,t.vy+=O*F);while(x=x.next)}return p.initialize=function(x,C){e=x,r=C,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Dn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function bpe(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Dn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function wpe(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Dn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function xpe(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function I0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function Qi(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=Qi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:I0(t[o])&&I0(r[o])?t[o]=Qi(t[o],r[o]):t[o]=r[o])}),t},{})}const Lx={mergeArrays:!0};Qi.options=Lx;Qi.withOptions=(e,...t)=>{Qi.options={mergeArrays:!0,...e};const r=Qi(...t);return Qi.options=Lx,r};var Spe=Qi;function _pe(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function kpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Mx(e){e.preventDefault(),e.stopPropagation()}function Nx(e){return typeof e=="number"}function uo(e,t){return Nx(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Tpe(e){return`${e.source.id}-${e.target.id}`}function Ox(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Cpe(e){return`url(#${Ox(e.color)})`}function Epe(e){return{size:e,padding:(t,r)=>uo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const Rx={Arrow:e=>Epe(e)},Ape=(e,t,r)=>[t/2,r/2],Lpe=(e,t,r)=>[D0(0,t),D0(0,r)];function D0(e,t){return Math.random()*(t-e)+e}const hh={Centered:Ape,Randomized:Lpe};function Mpe(){return{autoResize:!1,callbacks:{},hooks:{},initial:kpe(),nodeRadius:16,marker:Rx.Arrow(4),modifiers:{},positionInitializer:hh.Centered,simulation:{alphas:xpe(),forces:_pe()},zoom:{initial:1,min:.1,max:2}}}function Npe(e={}){return Spe.withOptions({mergeArrays:!1},Mpe(),e)}function Ope({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>Mx(v)).on("dblclick",v=>r?.(v)).on("dblclick.zoom",null).on("pointermove",v=>o?.(v)).on("pointerup",v=>s?.(v)).style("cursor","grab");return e&&p.call(h.transform,vp.translate(c,f).scale(d)),p.append("g")}function Rpe({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function Ppe({config:e,onDragStart:t,onDragEnd:r}){const o=Jfe().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Gn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Gn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function $pe({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:Ipe({links:c},r)}function Ipe(e,t){const r=[...Dpe(e,t),...zpe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Dpe(e,t){return Px(e,t,(r,o)=>r.target.id===o.id)}function zpe(e,t){return Px(e,t,(r,o)=>r.source.id===o.id)}function Px(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function ph(e){return e.x??0}function gh(e){return e.y??0}function bp({source:e,target:t}){const r=new Xs(ph(e),gh(e)),o=new Xs(ph(t),gh(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function $x({center:e,node:t}){const r=new Xs(ph(t),gh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Xs(0,1))),{n:r,c:o}}function Ix({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=bp({source:t,target:r});return{start:o.add(c.multiply(uo(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function Fpe(e){const{start:t,end:r}=Ix(e);return`M${t.x},${t.y}
45
- L${r.x},${r.y}`}function Hpe(e){const{start:t,end:r}=Ix(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Bpe({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=bp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(uo(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(uo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
46
- A${m},${m},0,0,1,${v.x},${v.y}`}function Wpe({center:e,config:t,node:r}){const{n:o,c:s}=$x({center:e,node:r}),c=uo(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
47
- A${c},${c},0,1,0,${v.x},${v.y}`}function qpe({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=bp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function jpe({center:e,config:t,node:r}){const{n:o,c:s}=$x({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*uo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Fs={line:{labelTransform:Hpe,path:Fpe},arc:{labelTransform:qpe,path:Bpe},reflexive:{labelTransform:jpe,path:Wpe}};function Upe(e){return e.append("g").classed("links",!0).selectAll("path")}function Vpe({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>Tpe(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>Cpe(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Gpe(e){Kpe(e),Xpe(e)}function Kpe({center:e,config:t,graph:r,selection:o}){o?.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Fs.reflexive.path({config:t,node:s.source,center:e}):Dx(r,s.source,s.target)?Fs.arc.path({config:t,source:s.source,target:s.target}):Fs.line.path({config:t,source:s.source,target:s.target}))}function Xpe({config:e,center:t,graph:r,selection:o}){o?.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Fs.reflexive.labelTransform({config:e,node:s.source,center:t}):Dx(r,s.source,s.target)?Fs.arc.labelTransform({config:e,source:s.source,target:s.target}):Fs.line.labelTransform({config:e,source:s.source,target:s.target}))}function Dx(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Ype(e){return e.append("defs").selectAll("marker")}function Zpe({config:e,graph:t,selection:r}){return r?.data(Jpe(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>Ox(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Qpe(e.marker.path)),s})}function Jpe(e){return[...new Set(e.links.map(t=>t.color))]}function Qpe(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function ege(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function tge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const v=p.append("circle").classed("node",!0).attr("r",b=>uo(e,b)).on("contextmenu",(b,x)=>{Mx(b),o(x)}).on("pointerdown",(b,x)=>rge(b,x,s??o)).style("fill",b=>b.color);e.modifiers.node?.(v);const m=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(m),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const nge=500;function rge(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>nge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function ige(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function oge({center:e,config:t,graph:r,onTick:o}){const s=mpe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",bpe(()=>e().x).strength(p)).force("y",wpe(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",ype().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",lpe().radius(p=>d.radiusMultiplier*uo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",cpe(r.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),t.modifiers.simulation?.(s),s}function sge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=Whe().scaleExtent([r,o]).filter(f=>f.button===0||f.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",f=>s(f)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(c),c}var lge=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,r){if(this.container=e,this.graph=t,this.config=r,this.scale=r.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[s,c]=r.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??s,o.y=o.y??c}),this.nodeTypes=[...new Set(t.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],r.initial){const{includeUnlinked:o,nodeTypeFilter:s,linkFilter:c,showLinkLabels:f,showNodeLabels:d}=r.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=s??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(r.simulation.alphas.initialize),r.autoResize&&(this.resizeObserver=new ResizeObserver(uue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:r}=this.config.simulation.alphas.filter.unlinked,o=e?t:r;this.restart(o)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.nodes,o=e?r:t;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.links,o=e?r:t;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Xs.of([this.width,this.height]).divide(2).subtract(Xs.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,r=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,s=e.toFixed()!==r.toFixed(),c=t.toFixed()!==o.toFixed();if(!s&&!c)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(Nx(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=Zpe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Vpe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=tge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=oge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(r=>r!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=sge({config:this.config,canvasContainer:()=>Gn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Ope({applyZoom:this.scale!==1,container:Gn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Upe(this.canvas),this.nodeSelection=ege(this.canvas),this.markerSelection=Ype(this.canvas),this.drag=Ppe({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){ige(this.nodeSelection),Gpe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Gn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Rpe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=$pe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function z0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function age(e){return{...e}}function zx(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function cge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:v,candidate:m}=c;t.set(v,m);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function uge(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function fge(e){const t=e.map(o=>uge(o)),r=cge(t);return t.map(({raw:o,id:s})=>zx({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function dge(e,t){return zx({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function hge(e,t){if(!e)return z0({});const r=fge(e.externalized),o=e.inlined.map(d=>dge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return age({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return z0({nodes:s,links:f})}const pge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},gge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},vge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},mge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},yge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},bge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Fx=ot({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Dr("tooltip");return e.state==="pass"?(se(),me("div",pge)):e.failedSnapshot?ct((se(),me("div",gge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(se(),me("div",vge)):e.mode==="todo"?ct((se(),me("div",mge,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?ct((se(),me("div",yge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(se(),me("div",bge))}}}),el=dE(),wge=YC(el),xge={border:"b base","p-4":""},Sge=["innerHTML"],_ge=ot({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(se(),me("div",xge,[ee("div",{"text-xs":"","mb-1":"",class:st(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Ie(t(e.time))+" | "+Ie(e.taskName)+" | "+Ie(e.type),3),ee("pre",{"data-type":"html",innerHTML:e.content},null,8,Sge)]))}}),kge={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Tge={key:1,p6:""},Cge=ot({__name:"ViewConsoleOutput",setup(e){const t=xe(()=>{const o=ex.value;if(o){const s=sp(el.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ea(h))}))}});function r(o){const s=o&&dt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?nA(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(se(),me("div",kge,[(se(!0),me(nt,null,hr(t.value,({taskId:c,type:f,time:d,content:h})=>(se(),me("div",{key:c,"font-mono":""},[Re(_ge,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(se(),me("div",Tge,[...s[0]||(s[0]=[ht(" Log something in your test and it would print here. (e.g. ",-1),ee("pre",{inline:""},"console.log(foo)",-1),ht(") ",-1)])]))}}),Hx={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Hx);var ur=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},ws,ql,Oo;class Ege{constructor(...t){ws.set(this,new Map),ql.set(this,new Map),Oo.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),ur(this,Oo,"f").has(o)||ur(this,Oo,"f").set(o,new Set);const c=ur(this,Oo,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&ur(this,ql,"f").set(o,d),f=!1,h)continue;const p=ur(this,ws,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);ur(this,ws,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length<t.length;return!(o.length<r.length-1)&&s?null:ur(this,ws,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&ur(this,ql,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:ur(this,Oo,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of ur(this,Oo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:ur(this,ws,"f"),extensions:ur(this,ql,"f")}}}ws=new WeakMap,ql=new WeakMap,Oo=new WeakMap;const Age=new Ege(Hx)._freeze();function ku(e){if(pr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function Bx(e,t){const r=t?Age.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function Lge(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}const Vc=ot({__name:"CodeMirrorContainer",props:la({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:la(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=zu(e,"modelValue"),s=bk(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ve();return fo(async()=>{const d=Mae(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),On.value=d,setTimeout(()=>On.value.refresh(),100)}),(d,h)=>(se(),me("div",{relative:"","font-mono":"","text-sm":"",class:st(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[ee("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Mge=ot({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ve(""),c=nn(void 0),f=Ve(!1),d=Ve(!0),h=Ve(!1),p=Ve();_t(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await dt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(ne){console.error("cannot fetch file",ne)}await Ct(),d.value=!1}},{immediate:!0}),_t(()=>[d.value,h.value,r.file,Hw.value,Bw.value],([ne,K,Y,$,R])=>{!ne&&!K&&($!=null?Ct(()=>{const N=p.value,_=N??{line:($??1)-1,ch:R??0};N?p.value=void 0:(On.value?.scrollIntoView(_,100),Ct(()=>{On.value?.focus(),On.value?.setCursor(_)}))}):Ct(()=>{On.value?.focus()}))},{flush:"post"});const v=xe(()=>r.file?.filepath?.split(/\./g).pop()||"js"),m=Ve(),b=xe(()=>{const ne=[];function K(Y){Y.result?.errors&&ne.push(...Y.result.errors),Y.type==="suite"&&Y.tasks.forEach(K)}return r.file?.tasks.forEach(K),ne}),x=xe(()=>{const ne=[];function K(Y){Y.type==="test"&&ne.push(...Y.annotations),Y.type==="suite"&&Y.tasks.forEach(K)}return r.file?.tasks.forEach(K),ne}),C=[],L=[],M=[],A=Ve(!1);function O(){M.forEach(([ne,K,Y])=>{ne.removeEventListener("click",K),Y()}),M.length=0}lw(m,()=>{On.value?.refresh()});function F(){f.value=c.value!==On.value.getValue()}_t(f,ne=>{o("draft",ne)},{immediate:!0});function E(ne){const Y=(ne?.stacks||[]).filter(H=>H.file&&H.file===r.file?.filepath)?.[0];if(!Y)return;const $=document.createElement("div");$.className="op80 flex gap-x-2 items-center";const R=document.createElement("pre");R.className="c-red-600 dark:c-red-400",R.textContent=`${" ".repeat(Y.column)}^ ${ne.name}: ${ne?.message||""}`,$.appendChild(R);const N=document.createElement("span");N.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",N.tabIndex=0,N.ariaLabel="Open in Editor",Kb(N,{content:"Open in Editor",placement:"bottom"},!1);const _=async()=>{await op(Y.file,Y.line,Y.column)};N.addEventListener("click",_),$.appendChild(N),M.push([N,_,()=>Yh(N)]),L.push(On.value.addLineClass(Y.line-1,"wrap","bg-red-500/10")),C.push(On.value.addLineWidget(Y.line-1,$))}function z(ne){if(!ne.location)return;const{line:K,file:Y}=ne.location;if(Y!==r.file?.filepath)return;const $=document.createElement("div");$.classList.add("wrap","bg-active","py-3","px-6","my-1"),$.role="note";const R=document.createElement("div");R.classList.add("block","text-black","dark:text-white");const N=document.createElement("span");N.textContent=`${ne.type}: `,N.classList.add("font-bold");const _=document.createElement("span");_.classList.add("whitespace-pre"),_.textContent=ne.message.replace(/[^\r]\n/,`\r
48
- `),R.append(N,_),$.append(R);const H=ne.attachment;if(H?.path||H?.body)if(H.contentType?.startsWith("image/")){const j=document.createElement("a"),ie=document.createElement("img");j.classList.add("inline-block","mt-3"),j.style.maxWidth="50vw";const ve=H.path||H.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(ie.setAttribute("src",ve),j.referrerPolicy="no-referrer"):ie.setAttribute("src",ku(H)),j.target="_blank",j.href=ie.src,j.append(ie),$.append(j)}else{const j=document.createElement("a");j.href=ku(H),j.download=Bx(ne.message,H.contentType),j.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ie=document.createElement("div");ie.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",j.append(ie,ve),$.append(j)}C.push(On.value.addLineWidget(K-1,$))}const{pause:U,resume:re}=_t([On,b,x,Ss],([ne,K,Y,$])=>{if(!ne){C.length=0,L.length=0,O();return}$&&(ne.off("changes",F),O(),C.forEach(R=>R.clear()),L.forEach(R=>ne?.removeLineClass(R,"wrap")),C.length=0,L.length=0,setTimeout(()=>{K.forEach(E),Y.forEach(z),A.value||ne.clearHistory(),ne.on("changes",F)},100))},{flush:"post"});Qh(()=>[Ss.value,h.value,p.value],([ne,K],Y)=>{ne&&!K&&Y&&Y[2]&&On.value?.setCursor(Y[2])},{debounce:100,flush:"post"});async function te(ne){if(h.value)return;U(),h.value=!0,await Ct();const K=On.value;K&&(K.setOption("readOnly",!0),await Ct(),K.refresh()),p.value=K?.getCursor(),K?.off("changes",F),O(),C.forEach(Y=>Y.clear()),L.forEach(Y=>K?.removeLineClass(Y,"wrap")),C.length=0,L.length=0;try{A.value=!0,await dt.rpc.saveTestFile(r.file.filepath,ne),c.value=ne,f.value=!1}catch(Y){console.error("error saving file",Y)}A.value||K?.clearHistory();try{await Am(Ss).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Am(Ss).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(E),x.value.forEach(z),K?.on("changes",F),h.value=!1,await Ct(),K&&(K.setOption("readOnly",!1),await Ct(),K.refresh()),re()}return La(O),(ne,K)=>(se(),Je(Vc,bi({ref_key:"editor",ref:m,modelValue:s.value,"onUpdate:modelValue":K[0]||(K[0]=Y=>s.value=Y),"h-full":""},{lineNumbers:!0,readOnly:Z(pr),saving:h.value},{mode:v.value,"data-testid":"code-mirror",onSave:te}),null,16,["modelValue","mode"]))}}),wp=ot({__name:"Modal",props:la({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=zu(e,"modelValue"),r=xe(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=xe(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(se(),me("div",{class:st(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[ee("div",{class:st(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),ee("div",{class:st(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:tn(t.value?{}:{transform:o.value})},[Sn(c.$slots,"default")],6)],2))}}),Nge={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Oge={"p-4":"",relative:""},Rge={op50:"","font-mono":"","text-sm":""},Pge={key:0,"p-5":""},$ge={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Ige={key:0},Dge={p:"x3 y-1","bg-overlay":"",border:"base b t"},zge=ot({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=QC(()=>dt.rpc.getTransformResult(r.projectName,r.id,!!Yn)),c=xe(()=>r.id?.split(/\./g).pop()||"js"),f=xe(()=>s.value?.source?.trim()||""),d=xe(()=>s.value?.code?.replace(/\/\/# sourceMappingURL=.*\n/,"").trim()||""),h=xe(()=>({mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}));return rw("Escape",()=>{o("close")}),(p,v)=>(se(),me("div",Nge,[ee("div",Oge,[v[1]||(v[1]=ee("p",null,"Module Info",-1)),ee("p",Rge,Ie(e.id),1),Re(Et,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=m=>o("close"))})]),Z(s)?(se(),me(nt,{key:1},[ee("div",$ge,[v[2]||(v[2]=ee("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=ee("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Re(Vc,bi({"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"]),Re(Vc,bi({"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"])]),h.value.mappings!==""?(se(),me("div",Ige,[ee("div",Dge," Source map (v"+Ie(h.value.version)+") ",1),Re(Vc,bi({"model-value":h.value.mappings,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"])])):Ue("",!0)],64)):(se(),me("div",Pge," No transform result found for this module. "))]))}}),Fge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Hge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Bge={flex:"~ gap-1","items-center":"","select-none":""},Wge=["id","checked","onChange"],qge=["for"],jge=ot({__name:"ViewModuleGraph",props:la({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=zu(e,"modelValue"),{graph:o}=j_(t),s=Ve(),c=Ve(!1),f=Ve(),d=Ve();Wh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),fo(()=>{v()}),Iu(()=>{d.value?.shutdown()}),_t(o,()=>v());function h(x,C){d.value?.filterNodesByType(C,x)}function p(x){f.value=x,c.value=!0}function v(x=!1){if(d.value?.shutdown(),x&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new lge(s.value,o.value,Npe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:C,newWidth:L})=>C===0&&L===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Rx.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?hh.Randomized:hh.Centered,zoom:{min:.5,max:2}})))}const m=x=>x.button===0;function b(x){if(pr)return;let C=0,L=0,M=0;x.on("pointerdown",(A,O)=>{O.type!=="external"&&(!O.x||!O.y||!m(A)||(C=O.x,L=O.y,M=Date.now()))}).on("pointerup",(A,O)=>{if(O.type==="external"||!O.x||!O.y||!m(A)||Date.now()-M>500)return;const F=O.x-C,E=O.y-L;F**2+E**2<100&&p(O.id)})}return(x,C)=>{const L=Dr("tooltip");return se(),me("div",Fge,[ee("div",null,[ee("div",Hge,[ee("div",Bge,[ct(ee("input",{id:"hide-node-modules","onUpdate:modelValue":C[0]||(C[0]=M=>r.value=M),type:"checkbox"},null,512),[[Cb,r.value]]),C[4]||(C[4]=ee("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(se(!0),me(nt,null,hr(d.value?.nodeTypes.sort(),M=>(se(),me("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[ee("input",{id:`type-${M}`,type:"checkbox",checked:d.value?.nodeTypeFilter.includes(M),onChange:A=>h(M,A.target.checked)},null,40,Wge),ee("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${M}`,"border-b-2":"",style:tn({"border-color":`var(--color-node-${M})`})},Ie(M)+" Modules",13,qge)]))),128)),C[5]||(C[5]=ee("div",{"flex-auto":""},null,-1)),ee("div",null,[ct(Re(Et,{icon:"i-carbon-reset",onClick:C[1]||(C[1]=M=>v(!0))},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),ee("div",{ref_key:"el",ref:s},null,512),Re(wp,{modelValue:c.value,"onUpdate:modelValue":C[3]||(C[3]=M=>c.value=M),direction:"right"},{default:it(()=>[f.value?(se(),Je(jh,{key:0},{default:it(()=>[Re(zge,{id:f.value,"project-name":e.projectName,onClose:C[2]||(C[2]=M=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ue("",!0)]),_:1},8,["modelValue"])])}}});function Wx(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function qx(){const e=Ve(!1),t=Ve(Date.now()),r=Ve(),o=xe(()=>{const c=r.value?.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const Uge={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Vge={"p-4":"",relative:"",border:"base b"},Gge={op50:"","font-mono":"","text-sm":""},Kge={op50:"","font-mono":"","text-sm":""},Xge={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Yge=["src","alt"],Zge={key:1},Jge=ot({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return rw("Escape",()=>{r("close")}),(o,s)=>(se(),me("div",Uge,[ee("div",Vge,[s[1]||(s[1]=ee("p",null,"Screenshot error",-1)),ee("p",Gge,Ie(e.file),1),ee("p",Kge,Ie(e.name),1),Re(Et,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),ee("div",Xge,[e.url?(se(),me("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,Yge)):(se(),me("div",Zge," Something was wrong, the image cannot be resolved. "))])]))}}),jx=Ei(Jge,[["__scopeId","data-v-08ce44b7"]]),Qge={class:"scrolls scrolls-rounded task-error"},eve=["onClickPassive"],tve=["innerHTML"],nve=ot({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=xe(()=>sp(el.value)),s=xe(()=>!!t.error?.diff),c=xe(()=>t.error.diff?o.value.toHtml(ea(t.error.diff)):void 0);function f(d){return kae(d.file,t.filename)?Nae(t.fileId,d):op(d.file,d.line,d.column)}return(d,h)=>{const p=Dr("tooltip");return se(),me("div",Qge,[ee("pre",null,[ee("b",null,Ie(e.error.name),1),ht(": "+Ie(e.error.message),1)]),(se(!0),me(nt,null,hr(e.error.stacks,(v,m)=>(se(),me("div",{key:m,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ee("pre",null," - "+Ie(r(v.file))+":"+Ie(v.line)+":"+Ie(v.column),1),ct(ee("div",{class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(v)},null,40,eve),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(se(),me("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,tve)):Ue("",!0)])}}}),Ux=Ei(nve,[["__scopeId","data-v-1fcfe7a4"]]),rve={"h-full":"",class:"scrolls"},ive=["id"],ove={flex:"~ gap-2 items-center"},sve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lve=["innerHTML"],ave={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},cve=ot({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){return h.result?.state!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(v=>r(v,p+1))]}const o=xe(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],v=h.result;if(v?.errors?.[0]){const b={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:v};p.unshift(b)}return p.length>0?Fw(el.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=qx();return(h,p)=>{const v=Dr("tooltip");return se(),me("div",rve,[o.value.length?(se(!0),me(nt,{key:0},hr(o.value,m=>(se(),me("div",{id:m.id,key:m.id},[ee("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:tn({"margin-left":`${m.result?.htmlError?.5:2*m.level+.5}rem`})},[ee("div",ove,[ee("span",null,Ie(m.name),1),Z(Yn)&&m.meta?.failScreenshotPath?(se(),me(nt,{key:0},[ct(Re(Et,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>Z(f)(m)},null,8,["onClick"]),[[v,"View screenshot error",void 0,{bottom:!0}]]),ct(Re(Et,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>Z(Wx)(m)},null,8,["onClick"]),[[v,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ue("",!0)]),m.result?.htmlError?(se(),me("div",sve,[ee("pre",{innerHTML:m.result.htmlError},null,8,lve)])):m.result?.errors?(se(!0),me(nt,{key:1},hr(m.result.errors,(b,x)=>(se(),Je(Ux,{key:x,error:b,filename:e.file.name,root:Z(Gs).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):Ue("",!0)],4)],8,ive))),128)):(se(),me("div",ave," All tests passed in this file ")),Z(Yn)?(se(),Je(wp,{key:2,modelValue:Z(c),"onUpdate:modelValue":p[1]||(p[1]=m=>Ot(c)?c.value=m:null),direction:"right"},{default:it(()=>[Z(s)?(se(),Je(jh,{key:0},{default:it(()=>[Re(jx,{file:Z(s).file.filepath,name:Z(s).name,url:Z(d),onClose:p[0]||(p[0]=m=>c.value=!1)},null,8,["file","name","url"])]),_:1})):Ue("",!0)]),_:1},8,["modelValue"])):Ue("",!0)])}}}),uve=Ei(cve,[["__scopeId","data-v-677d9ffc"]]),fve=["href","referrerPolicy"],dve=["src"],hve=ot({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=xe(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:ku(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(se(),me("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:Z(Lge)(e.annotation.attachment)?"no-referrer":void 0},[ee("img",{src:r.value},null,8,dve)],8,fve)):Ue("",!0)}}),pve={"h-full":"",class:"scrolls"},gve={key:0},vve={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},mve={flex:"~ gap-2 items-center"},yve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},bve=["innerHTML"],wve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},xve={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Sve={class:"flex gap-2","overflow-hidden":""},_ve={class:"font-bold","ws-nowrap":"",truncate:""},kve=["href","download"],Tve=["onClick"],Cve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Eve={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Ave={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},Lve={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},Mve={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},Nve=ot({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=xe(()=>!t.test.result||!t.test.result.errors?.length?null:Fw(el.value,[t.test])[0]);function o(m){return Oae(t.test,m)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=qx();function h(m){return`${pw(Gs.value.root,m.file)}:${m.line}:${m.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),v=xe(()=>Object.entries(t.test.meta).filter(([m])=>!p.has(m)));return(m,b)=>{const x=Dr("tooltip");return se(),me("div",pve,[r.value?(se(),me("div",gve,[ee("div",vve,[ee("div",mve,[Z(Yn)&&e.test.meta?.failScreenshotPath?(se(),me(nt,{key:0},[ct(Re(Et,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=C=>Z(f)(e.test))},null,512),[[x,"View screenshot error",void 0,{bottom:!0}]]),ct(Re(Et,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=C=>Z(Wx)(e.test))},null,512),[[x,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ue("",!0)]),e.test.result?.htmlError?(se(),me("div",yve,[ee("pre",{innerHTML:e.test.result.htmlError},null,8,bve)])):e.test.result?.errors?(se(!0),me(nt,{key:1},hr(e.test.result.errors,(C,L)=>(se(),Je(Ux,{key:L,"file-id":e.test.file.id,error:C,filename:e.test.file.name,root:Z(Gs).root},null,8,["file-id","error","filename","root"]))),128)):Ue("",!0)])])):(se(),me("div",wve," All tests passed in this file ")),e.test.annotations.length?(se(),me(nt,{key:2},[b[5]||(b[5]=ee("h1",{"m-2":""}," Test Annotations ",-1)),(se(!0),me(nt,null,hr(e.test.annotations,C=>(se(),me("div",{key:C.type+C.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[ee("div",xve,[ee("div",Sve,[ee("span",_ve,Ie(C.type),1),C.attachment&&!C.attachment.contentType?.startsWith("image/")?(se(),me("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:Z(ku)(C.attachment),download:Z(Bx)(C.message,C.attachment.contentType)},[...b[4]||(b[4]=[ee("span",{class:"i-carbon:download block"},null,-1),ht(" Download ",-1)])],8,kve)):Ue("",!0)]),ee("div",null,[C.location&&C.location.file===e.test.file.filepath?ct((se(),me("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:L=>o(C)},[ht(Ie(h(C.location)),1)],8,Tve)),[[x,"Open in Editor",void 0,{bottom:!0}]]):C.location&&C.location.file!==e.test.file.filepath?(se(),me("span",Cve,Ie(h(C.location)),1)):Ue("",!0)])]),ee("div",Eve,Ie(C.message),1),Re(hve,{annotation:C},null,8,["annotation"])]))),128))],64)):Ue("",!0),v.value.length?(se(),me(nt,{key:3},[b[6]||(b[6]=ee("h1",{"m-2":""}," Test Meta ",-1)),ee("div",Ave,[(se(!0),me(nt,null,hr(v.value,([C,L])=>(se(),me(nt,{key:C},[ee("div",Lve,Ie(C),1),ee("pre",Mve,Ie(L),1)],64))),128))])],64)):Ue("",!0),Z(Yn)?(se(),Je(wp,{key:4,modelValue:Z(c),"onUpdate:modelValue":b[3]||(b[3]=C=>Ot(c)?c.value=C:null),direction:"right"},{default:it(()=>[Z(s)?(se(),Je(jh,{key:0},{default:it(()=>[Re(jx,{file:Z(s).file.filepath,name:Z(s).name,url:Z(d),onClose:b[2]||(b[2]=C=>c.value=!1)},null,8,["file","name","url"])]),_:1})):Ue("",!0)]),_:1},8,["modelValue"])):Ue("",!0)])}}}),Ove=Ei(Nve,[["__scopeId","data-v-cf8dfa39"]]),Rve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Pve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},$ve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Ive={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Dve={class:"flex text-lg"},zve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Fve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Hve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Bve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Wve=["flex-1"],F0=ot({__name:"FileDetails",setup(e){const t=Ve({nodes:[],links:[]}),r=Ve(!1),o=Ve(!1),s=Ve(!1),c=Ve(void 0),f=Ve(!0),d=xe(()=>Ps.value?dt.state.idMap.get(Ps.value):void 0),h=xe(()=>{const E=jt.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),p=xe(()=>jt.value&&ip(jt.value)),v=xe(()=>!!jt.value?.meta?.typecheck);function m(){const E=jt.value?.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function b(E){E==="graph"&&(o.value=!0),fn.value=E}const x=xe(()=>ex.value?.reduce((E,{size:z})=>E+z,0)??0);function C(E){r.value=E}const L=/[/\\]node_modules[/\\]/;async function M(E=!1){if(!(s.value||h.value?.filepath===c.value&&!E)){s.value=!0,await Ct();try{const z=h.value;if(!z){s.value=!1;return}if(E||!c.value||z.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let U=await dt.rpc.getModuleGraph(z.projectName,z.filepath,!!Yn);f.value&&(pr&&(U=typeof window.structuredClone<"u"?window.structuredClone(U):gA(U)),U.inlined=U.inlined.filter(re=>!L.test(re)),U.externalized=U.externalized.filter(re=>!L.test(re))),t.value=hge(U,z.filepath),c.value=z.filepath}b("graph")}finally{await new Promise(z=>setTimeout(z,100)),s.value=!1}}}Qh(()=>[h.value,fn.value,f.value],([,E,z],U)=>{E==="graph"&&M(U&&z!==U[2])},{debounce:100,immediate:!0});const A=xe(()=>{const E=jt.value?.file.projectName||"";return Ee.colors.get(E)||Cw(jt.value?.file.projectName)}),O=xe(()=>Ew(A.value)),F=xe(()=>{const E=Ps.value;if(!E)return jt.value?.name;const z=[];let U=dt.state.idMap.get(E);for(;U;)z.push(U.name),U=U.suite?U.suite:U===U.file?void 0:U.file;return z.reverse().join(" > ")});return(E,z)=>{const U=Dr("tooltip");return Z(jt)?(se(),me("div",Rve,[ee("div",null,[ee("div",Pve,[Re(Fx,{state:Z(jt).result?.state,mode:Z(jt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),v.value?ct((se(),me("div",$ve,null,512)),[[U,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ue("",!0),Z(jt)?.file.projectName?(se(),me("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:tn({backgroundColor:A.value,color:O.value})},Ie(Z(jt).file.projectName),5)):Ue("",!0),ee("div",Ive,Ie(F.value),1),ee("div",Dve,[Z(pr)?Ue("",!0):ct((se(),Je(Et,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!Z(jt)?.filepath,onClick:m},null,8,["disabled"])),[[U,"Open in editor",void 0,{bottom:!0}]])])]),ee("div",zve,[ee("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":Z(fn)==null}]),"data-testid":"btn-report",onClick:z[0]||(z[0]=re=>b(null))},[...z[5]||(z[5]=[ee("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),ht(" Report ",-1)])],2),ee("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":Z(fn)==="graph"}]),onClick:z[1]||(z[1]=re=>b("graph"))},[s.value?(se(),me("span",Fve)):(se(),me("span",Hve)),z[6]||(z[6]=ht(" Module Graph ",-1))],2),ee("button",{"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":Z(fn)==="editor"}]),onClick:z[2]||(z[2]=re=>b("editor"))},[z[7]||(z[7]=ee("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),ht(" "+Ie(r.value?"* ":"")+"Code ",1)],2),ee("button",{"tab-button":"","data-testid":"btn-console",class:st(["flex items-center gap-2",{"tab-button-active":Z(fn)==="console",op20:Z(fn)!=="console"&&x.value===0}]),onClick:z[3]||(z[3]=re=>b("console"))},[z[8]||(z[8]=ee("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),ht(" Console ("+Ie(x.value)+") ",1)],2)])]),ee("div",Bve,[o.value?(se(),me("div",{key:0,"flex-1":Z(fn)==="graph"&&""},[ct(Re(jge,{modelValue:f.value,"onUpdate:modelValue":z[4]||(z[4]=re=>f.value=re),graph:t.value,"data-testid":"graph","project-name":Z(jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Zi,Z(fn)==="graph"&&!s.value]])],8,Wve)):Ue("",!0),Z(fn)==="editor"?(se(),Je(Mge,{key:Z(jt).id,file:Z(jt),"data-testid":"editor",onDraft:C},null,8,["file"])):Z(fn)==="console"?(se(),Je(Cge,{key:2,file:Z(jt),"data-testid":"console"},null,8,["file"])):!Z(fn)&&!d.value&&Z(jt)?(se(),Je(uve,{key:3,file:Z(jt),"data-testid":"report"},null,8,["file"])):!Z(fn)&&d.value?(se(),Je(Ove,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):Ue("",!0)])])):Ue("",!0)}}}),qve=""+new URL("../favicon.svg",import.meta.url).href;function jve(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Gc;function vh(){vh.init||(vh.init=!0,Gc=jve()!==-1)}var ef={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){vh(),Ct(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Gc&&this.$el.appendChild(e),e.data="about:blank",Gc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Gc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Uve=Fy();Dy("data-v-b329ee4c");const Vve={class:"resize-observer",tabindex:"-1"};zy();const Gve=Uve((e,t,r,o,s,c)=>(se(),Je("div",Vve)));ef.render=Gve;ef.__scopeId="data-v-b329ee4c";ef.__file="src/components/ResizeObserver.vue";function Kc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kc=function(t){return typeof t}:Kc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kc(e)}function Kve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xve(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Yve(e,t,r){return t&&Xve(e.prototype,t),e}function H0(e){return Zve(e)||Jve(e)||Qve(e)||eme()}function Zve(e){if(Array.isArray(e))return mh(e)}function Jve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Qve(e,t){if(e){if(typeof e=="string")return mh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mh(e,t)}}function mh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function eme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
49
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function nme(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(H0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(H0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function Vx(e,t){if(e===t)return!0;if(Kc(e)==="object"){for(var r in e)if(!Vx(e[r],t[r]))return!1;return!0}return!1}var rme=(function(){function e(t,r,o){Kve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return Yve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=tme(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=nme(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Ct(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Gx(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new rme(e,o,r);e._vue_visibilityState=s}}function ime(e,t,r){var o=t.value,s=t.oldValue;if(!Vx(o,s)){var c=e._vue_visibilityState;if(!o){Kx(e);return}c?c.createObserver(o,r):Gx(e,{value:o},r)}}function Kx(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var ome={beforeMount:Gx,updated:ime,unmounted:Kx},sme={itemsLimit:1e3},lme=/(auto|scroll)/;function Xx(e,t){return e.parentNode===null?t:Xx(e.parentNode,t.concat([e]))}var Td=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},ame=function(t){return Td(t,"overflow")+Td(t,"overflow-y")+Td(t,"overflow-x")},cme=function(t){return lme.test(ame(t))};function B0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Xx(e.parentNode,[]),r=0;r<t.length;r+=1)if(cme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function yh(e){"@babel/helpers - typeof";return yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yh(e)}var ume={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function fme(){return this.items.length&&yh(this.items[0])!=="object"}var bh=!1;if(typeof window<"u"){bh=!1;try{var dme=Object.defineProperty({},"passive",{get:function(){bh=!0}});window.addEventListener("test",null,dme)}catch{}}let hme=0;var xp={name:"RecycleScroller",components:{ResizeObserver:ef},directives:{ObserveVisibility:ome},props:{...ume,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:fme,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Ih({id:hme++,index:t,used:!0,key:o,type:s}),f=Rh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,x=this.pool,C=this.itemIndexByKey;let L,M,A,O,F;if(!p)L=M=O=F=A=0;else if(this.$_prerender)L=O=0,M=F=Math.min(this.prerender,h.length),A=null;else{const K=this.getScroll();if(t){let R=K.start-this.$_lastUpdateScrollPosition;if(R<0&&(R=-R),r===null&&R<c||R<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=K.start;const Y=this.buffer;K.start-=Y,K.end+=Y;let $=0;if(this.$refs.before&&($=this.$refs.before.scrollHeight,K.start-=$),this.$refs.after){const R=this.$refs.after.scrollHeight;K.end+=R}if(r===null){let R,N=0,_=p-1,H=~~(p/2),j;do j=H,R=v[H].accumulator,R<K.start?N=H:H<p-1&&v[H+1].accumulator>K.start&&(_=H),H=~~((N+_)/2);while(H!==j);for(H<0&&(H=0),L=H,A=v[p-1].accumulator,M=H;M<p&&v[M].accumulator<K.end;M++);for(M===-1?M=h.length-1:(M++,M>p&&(M=p)),O=L;O<p&&$+v[O].accumulator<K.start;O++);for(F=O;F<p&&$+v[F].accumulator<K.end;F++);}else{L=~~(K.start/r*o);const R=L%o;L-=R,M=Math.ceil(K.end/r*o),O=Math.max(0,Math.floor((K.start-$)/r*o)),F=Math.floor((K.end-$)/r*o),L<0&&(L=0),M>p&&(M=p),O<0&&(O=0),F>p&&(F=p),A=Math.ceil(p/o)*r}}M-L>sme.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let E;const z=L<=this.$_endIndex&&M>=this.$_startIndex;if(z)for(let K=0,Y=x.length;K<Y;K++)E=x[K],E.nr.used&&(e&&(E.nr.index=C[E.item[d]]),(E.nr.index==null||E.nr.index<L||E.nr.index>=M)&&this.unuseView(E));const U=z?null:new Map;let re,te,ne;for(let K=L;K<M;K++){re=h[K];const Y=d?re[d]:re;if(Y==null)throw new Error(`Key is ${Y} on item (keyField is '${d}')`);if(E=m.get(Y),!r&&!v[K].size){E&&this.unuseView(E);continue}te=re[f];let $=b.get(te),R=!1;if(!E)z?$&&$.length?E=$.pop():E=this.addView(x,K,re,Y,te):(ne=U.get(te)||0,(!$||ne>=$.length)&&(E=this.addView(x,K,re,Y,te),this.unuseView(E,!0),$=b.get(te)),E=$[ne],U.set(te,ne+1)),m.delete(E.nr.key),E.nr.used=!0,E.nr.index=K,E.nr.key=Y,E.nr.type=te,m.set(Y,E),R=!0;else if(!E.nr.used&&(E.nr.used=!0,R=!0,$)){const N=$.indexOf(E);N!==-1&&$.splice(N,1)}E.item=re,R&&(K===h.length-1&&this.$emit("scroll-end"),K===0&&this.$emit("scroll-start")),r===null?(E.position=v[K-1].accumulator,E.offset=0):(E.position=Math.floor(K/o)*r,E.offset=K%o*s)}return this.$_startIndex=L,this.$_endIndex=M,this.emitUpdate&&this.$emit("update",L,M,O,F),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:z}},getListenerTarget(){let e=B0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,bh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=B0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const pme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},gme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function vme(e,t,r,o,s,c){const f=Ho("ResizeObserver"),d=Dr("observe-visibility");return ct((se(),me("div",{class:st(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(se(),me("div",pme,[Sn(e.$slots,"before")],512)):Ue("v-if",!0),(se(),Je($d(r.listTag),{ref:"wrapper",style:tn({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:it(()=>[(se(!0),me(nt,null,hr(s.pool,h=>(se(),Je($d(r.itemTag),bi({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},vk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:it(()=>[Sn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Sn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(se(),me("div",gme,[Sn(e.$slots,"after")],512)):Ue("v-if",!0),Re(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}xp.render=vme;xp.__file="src/components/RecycleScroller.vue";function mme(e){const t=xe(()=>Qd.value?!1:!Ze.onlyTests),r=xe(()=>Un.value===""),o=Ve(Un.value);Qh(()=>Un.value,h=>{o.value=h?.trim()??""},{debounce:256});function s(h){Un.value="",h&&e.value?.focus()}function c(h){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.onlyTests=!1,h&&e.value?.focus()}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Us.value&&(hn.value.search=h?.trim()??"",hn.value.failed=p,hn.value.success=v,hn.value.skipped=m,hn.value.onlyTests=b)}return _t(()=>[o.value,Ze.failed,Ze.success,Ze.skipped,Ze.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ee.filterNodes()},{flush:"post"}),_t(()=>$r.value.length,h=>{h&&(hn.value.expandAll=void 0)},{flush:"post"}),{initialized:Us,filter:Ze,search:Un,disableFilter:t,isFiltered:Tw,isFilteredByStatus:Qd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Xu,testsTotal:bA,uiEntries:Zn}}const yme=["open"],bme=ot({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ve(!0);return(r,o)=>(se(),me("div",{open:t.value,class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[ee("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:st(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=ee("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Sn(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=ee("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Sn(r.$slots,"default")],40,yme))}}),wme={"flex-1":"","ms-2":"","select-none":""},Pc=ot({__name:"FilterStatus",props:la({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=zu(e,"modelValue");return(r,o)=>(se(),me("label",bi({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Fc(s=>t.value=!t.value,["prevent"]))}),[ee("span",{class:st([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ct(ee("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[Cb,t.value]]),ee("span",wme,Ie(e.label),1)],16))}}),xme={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Sme=ot({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(se(),me("button",xme,[ee("span",{block:"",class:st([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),_me=["aria-label","data-current"],kme={key:1,"w-4":""},Tme={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Cme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Eme={"text-sm":"",truncate:"","font-light":""},Ame=["text","innerHTML"],Lme={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Mme={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Nme={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Ome={key:1},Rme=ot({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=xe(()=>dt.state.idMap.get(e.taskId)),r=xe(()=>{if(pr)return!1;const M=t.value;return M&&ip(M)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Ee.collapseNode(e.taskId):Ee.expandNode(e.taskId)}async function s(M){e.onItemClick?.(M),ks.value&&(vu.value=!0,await Ct()),e.type==="file"?await ap([M.file]):await hce(M)}function c(M){return dt.rpc.updateSnapshot(M.file)}const f=xe(()=>e.indent<=0?[]:Array.from({length:e.indent},(M,A)=>`${e.taskId}-${A}`)),d=xe(()=>{const M=f.value,A=[];return(e.type==="file"||e.type==="suite")&&A.push("min-content"),A.push("min-content"),e.type==="suite"&&e.typecheck&&A.push("min-content"),A.push("minmax(0, 1fr)"),A.push("min-content"),`grid-template-columns: ${M.map(()=>"1rem").join(" ")} ${A.join(" ")};`}),h=xe(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=xe(()=>kw(e.name)),v=xe(()=>{const M=yA.value,A=p.value;return M?A.replace(M,O=>`<span class="highlight">${O}</span>`):A}),m=xe(()=>e.type!=="file"&&e.disableTaskLocation),b=xe(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),x=xe(()=>m.value?"color-red5 dark:color-#f43f5e":null);function C(){const M=t.value;e.type==="file"?e.onItemClick?.(M):jw(M)}const L=xe(()=>Ew(e.projectNameColor));return(M,A)=>{const O=Dr("tooltip");return t.value?(se(),me("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:tn(d.value),"aria-label":e.name,"data-current":e.current,onClick:A[2]||(A[2]=F=>o())},[e.indent>0?(se(!0),me(nt,{key:0},hr(f.value,F=>(se(),me("div",{key:F,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ue("",!0),e.type==="file"||e.type==="suite"?(se(),me("div",kme,[ee("div",{class:st(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ue("",!0),Re(Fx,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),ee("div",Tme,[e.type==="file"&&e.typecheck?ct((se(),me("div",Cme,null,512)),[[O,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ue("",!0),ee("span",Eme,[e.type==="file"&&e.projectName?(se(),me("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:tn({backgroundColor:e.projectNameColor,color:L.value})},Ie(e.projectName),5)):Ue("",!0),ee("span",{text:e.state==="fail"?"red-500":"",innerHTML:v.value},null,8,Ame)]),typeof e.duration=="number"?(se(),me("span",Lme,Ie(e.duration>0?e.duration:"< 1")+"ms ",1)):Ue("",!0)]),ee("div",Mme,[!Z(pr)&&r.value?ct((se(),Je(Sme,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:A[0]||(A[0]=Fc(F=>c(t.value),["prevent","stop"]))},null,512)),[[O,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ue("",!0),Re(Z(Xb),{placement:"bottom",class:st(["w-1.4em h-1.4em op100 rounded flex",x.value])},{popper:it(()=>[m.value?(se(),me("div",Nme,[A[5]||(A[5]=ee("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),ee("div",null,[ht(Ie(b.value)+": this feature is not available, you have disabled ",1),A[3]||(A[3]=ee("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),A[4]||(A[4]=ht(" in your configuration file.",-1))]),A[6]||(A[6]=ee("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(se(),me("div",Ome,Ie(b.value),1))]),default:it(()=>[Re(Et,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Fc(C,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),Z(pr)?Ue("",!0):ct((se(),Je(Et,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",onClick:A[1]||(A[1]=Fc(F=>s(t.value),["prevent","stop"]))},null,8,["title"])),[[O,h.value,void 0,{bottom:!0}]])])],12,_me)):Ue("",!0)}}}),Pme=Ei(Rme,[["__scopeId","data-v-58d301d8"]]),$me={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Ime={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Dme=["op"],zme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Fme={"text-red5":""},Hme={"text-yellow5":""},Bme={"text-green5":""},Wme={class:"text-purple5:50"},qme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},jme=["disabled"],Ume=["disabled"],Vme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Gme=ot({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=xe(()=>Gs.value.includeTaskLocation),s=Ve(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:x,clearFilter:C,filteredFiles:L,testsTotal:M,uiEntries:A}=mme(s),O=Ve("grid-cols-2"),F=Ve("grid-col-span-2"),E=Ve();return lw(()=>E.value,([{contentRect:z}])=>{z.width<420?(O.value="grid-cols-2",F.value="grid-col-span-2"):(O.value="grid-cols-4",F.value="grid-col-span-4")}),(z,U)=>{const re=Dr("tooltip");return se(),me("div",{ref_key:"testExplorerRef",ref:E,h:"full",flex:"~ col"},[ee("div",null,[ee("div",$me,[Sn(z.$slots,"header",{filteredFiles:Z(p)||Z(v)?Z(L):void 0})]),ee("div",Ime,[U[13]||(U[13]=ee("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ct(ee("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=te=>Ot(d)?d.value=te:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:Z(d).length?"100":"50",onKeydown:[U[1]||(U[1]=jd(te=>Z(x)(!1),["esc"])),U[2]||(U[2]=jd(te=>r("run",Z(p)||Z(v)?Z(L):void 0),["enter"]))]},null,40,Dme),[[$T,Z(d)]]),ct(Re(Et,{disabled:Z(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=te=>Z(x)(!0))},null,8,["disabled"]),[[re,"Clear search",void 0,{bottom:!0}]])]),ee("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:st(O.value)},[ee("div",{class:st(F.value),flex:"~ gap-2 items-center"},[U[14]||(U[14]=ee("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=ee("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ct(Re(Et,{disabled:Z(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=te=>Z(C)(!1))},null,8,["disabled"]),[[re,"Clear Filter",void 0,{bottom:!0}]])],2),Re(Pc,{modelValue:Z(f).failed,"onUpdate:modelValue":U[5]||(U[5]=te=>Z(f).failed=te),label:"Fail"},null,8,["modelValue"]),Re(Pc,{modelValue:Z(f).success,"onUpdate:modelValue":U[6]||(U[6]=te=>Z(f).success=te),label:"Pass"},null,8,["modelValue"]),Re(Pc,{modelValue:Z(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=te=>Z(f).skipped=te),label:"Skip"},null,8,["modelValue"]),Re(Pc,{modelValue:Z(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=te=>Z(f).onlyTests=te),label:"Only Tests"},null,8,["modelValue"])],2)]),ee("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...te)=>Z(km)&&Z(km)(...te))},[Re(bme,null,gk({default:it(()=>[(Z(p)||Z(v))&&Z(A).length===0?(se(),me(nt,{key:0},[Z(c)?(se(),me("div",qme,[U[18]||(U[18]=ee("div",{op30:""}," No matched test ",-1)),ee("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(Z(m)?null:"hover:op100"),disabled:Z(m),onClickPassive:U[9]||(U[9]=te=>Z(x)(!0))}," Clear Search ",42,jme),ee("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(Z(h)?null:"hover:op100"),disabled:Z(h),onClickPassive:U[10]||(U[10]=te=>Z(C)(!0))}," Clear Filter ",42,Ume),ee("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:U[11]||(U[11]=(...te)=>Z(b)&&Z(b)(...te))}," Clear All ",32)])):(se(),me("div",Vme,[...U[19]||(U[19]=[ee("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),ee("div",{op30:""}," Loading... ",-1)])]))],64)):(se(),Je(Z(xp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:Z(A),buffer:100},{default:it(({item:te})=>[Re(Pme,{class:st(["h-28px m-0 p-0",Z(ao)===te.id?"bg-active":""]),"task-id":te.id,expandable:te.expandable,type:te.type,current:Z(ao)===te.id,indent:te.indent,name:te.name,typecheck:te.typecheck===!0,"project-name":te.projectName??"","project-name-color":te.projectNameColor??"",state:te.state,duration:te.duration,opened:te.expanded,"disable-task-location":!o.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[Z(c)?{name:"summary",fn:it(()=>[ee("div",zme,[ee("span",Fme," FAIL ("+Ie(Z(M).failed)+") ",1),U[16]||(U[16]=ee("span",null,"/",-1)),ee("span",Hme," RUNNING ("+Ie(Z(M).running)+") ",1),ee("span",Bme," PASS ("+Ie(Z(M).success)+") ",1),U[17]||(U[17]=ee("span",null,"/",-1)),ee("span",Wme," SKIP ("+Ie(Z(f).onlyTests?Z(M).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Kme={class:"flex text-lg"},Xme=ot({__name:"Navigation",setup(e){function t(){return dt.rpc.updateSnapshot()}const r=xe(()=>el.value?"light":"dark");async function o(f){ks.value&&(vu.value=!0,await Ct(),co.value&&(mu(!0),await Ct())),f?.length?await ap(f):await fce()}function s(){Ee.collapseAllNodes()}function c(){Ee.expandAllNodes()}return(f,d)=>{const h=Dr("tooltip");return se(),Je(Gme,{border:"r base","on-item-click":Z(Pae),nested:!0,onRun:o},{header:it(({filteredFiles:p})=>[d[8]||(d[8]=ee("img",{"w-6":"","h-6":"",src:qve,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=ee("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),ee("div",Kme,[ct(Re(Et,{title:"Collapse tests",disabled:!Z(Us),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=v=>s())},null,8,["disabled"]),[[Zi,!Z(qm)],[h,"Collapse tests",void 0,{bottom:!0}]]),ct(Re(Et,{disabled:!Z(Us),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=v=>c())},null,8,["disabled"]),[[Zi,Z(qm)],[h,"Expand tests",void 0,{bottom:!0}]]),ct(Re(Et,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=v=>Z(mu)(!0))},null,512),[[Zi,Z(nh)&&!Z(ks)||!Z($s)],[h,"Dashboard",void 0,{bottom:!0}]]),Z(nh)&&!Z(ks)?(se(),Je(Z(Xb),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:it(()=>[...d[6]||(d[6]=[ee("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ee("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ee("div",null,"Coverage enabled but missing html reporter."),ee("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:it(()=>[d[7]||(d[7]=ee("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ue("",!0),Z(ks)?ct((se(),Je(Et,{key:1,disabled:Z(vu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=v=>Z($ae)())},null,8,["disabled"])),[[Zi,!Z(co)],[h,"Coverage",void 0,{bottom:!0}]]):Ue("",!0),Z(Ee).summary.failedSnapshot&&!Z(pr)?ct((se(),Je(Et,{key:2,icon:"i-carbon:result-old",disabled:!Z(Ee).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=v=>Z(Ee).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[h,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ue("",!0),Z(pr)?Ue("",!0):ct((se(),Je(Et,{key:3,disabled:p?.length===0,icon:"i-carbon:play",onClick:v=>o(p)},null,8,["disabled","onClick"])),[[h,p?p.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),ct(Re(Et,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=v=>Z(wge)())},null,512),[[h,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Yme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Zme=ot({__name:"ProgressBar",setup(e){const{width:t}=aw(),r=xe(()=>[Ee.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Ss.value&&"in-progress"].filter(Boolean).join(" ")),o=xe(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesSuccess/d:0}),s=xe(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesFailed/d:0}),c=xe(()=>Ee.summary.files-Ee.summary.filesFailed-Ee.summary.filesSuccess),f=xe(()=>{const d=Ee.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(se(),me("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:st(r.value)},[ee("div",Yme,[ee("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(r.value),style:tn(`width: ${s.value}px;`)},"   ",6),ee("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:st(r.value),style:tn(`left: ${s.value}px; width: ${o.value}px;`)},"   ",6),ee("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:st(r.value),style:tn(`left: ${o.value+s.value}px; width: ${f.value}px;`)},"   ",6)])],2))}}),Jme=Ei(Zme,[["__scopeId","data-v-5320005b"]]),Qme={"h-screen":"","w-screen":"",overflow:"hidden"},e0e=ot({__name:"index",setup(e){const t=Rae(),r=kc(({panes:v})=>{h(),d(v)},0),o=kc(({panes:v})=>{v.forEach((m,b)=>{Is.value[b]=m.size}),f(v),p()},0),s=kc(({panes:v})=>{v.forEach((m,b)=>{ro.value[b]=m.size}),d(v),p()},0),c=kc(({panes:v})=>{f(v),h()},0);function f(v){At.navigation=v[0].size,At.details.size=v[1].size}function d(v){At.details.browser=v[0].size,At.details.main=v[1].size}function h(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="none")}function p(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="")}return(v,m)=>(se(),me(nt,null,[Re(Jme),ee("div",Qme,[Re(Z(Mm),{class:"pt-4px",onResized:Z(o),onResize:Z(c)},{default:it(()=>[Re(Z(Ec),{size:Z(Is)[0]},{default:it(()=>[Re(Xme)]),_:1},8,["size"]),Re(Z(Ec),{size:Z(Is)[1]},{default:it(()=>[Z(Yn)?(se(),Je(Z(Mm),{id:"details-splitpanes",key:"browser-detail",onResize:Z(r),onResized:Z(s)},{default:it(()=>[Re(Z(Ec),{size:Z(ro)[0],"min-size":"10"},{default:it(()=>[m[0]||(Ws(-1,!0),(m[0]=Re(kce)).cacheIndex=0,Ws(1),m[0])]),_:1},8,["size"]),Re(Z(Ec),{size:Z(ro)[1]},{default:it(()=>[Z(t)?(se(),Je(p0,{key:"summary"})):Z(co)?(se(),Je(h0,{key:"coverage",src:Z(f0)},null,8,["src"])):(se(),Je(F0,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(se(),Je(gT,{key:"ui-detail"},{default:it(()=>[Z(t)?(se(),Je(p0,{key:"summary"})):Z(co)?(se(),Je(h0,{key:"coverage",src:Z(f0)},null,8,["src"])):(se(),Je(F0,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Re(Ece)],64))}}),t0e=[{name:"index",path:"/",component:e0e,props:!0}];/*!
50
- * vue-router v4.6.3
51
- * (c) 2025 Eduardo San Martin Morote
52
- * @license MIT
53
- */const xs=typeof document<"u";function Yx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function n0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Yx(e.default)}const bt=Object.assign;function Cd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Ir(s)?s.map(e):e(s)}return r}const na=()=>{},Ir=Array.isArray;function W0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const Zx=/#/g,r0e=/&/g,i0e=/\//g,o0e=/=/g,s0e=/\?/g,Jx=/\+/g,l0e=/%5B/g,a0e=/%5D/g,Qx=/%5E/g,c0e=/%60/g,e1=/%7B/g,u0e=/%7C/g,t1=/%7D/g,f0e=/%20/g;function Sp(e){return e==null?"":encodeURI(""+e).replace(u0e,"|").replace(l0e,"[").replace(a0e,"]")}function d0e(e){return Sp(e).replace(e1,"{").replace(t1,"}").replace(Qx,"^")}function wh(e){return Sp(e).replace(Jx,"%2B").replace(f0e,"+").replace(Zx,"%23").replace(r0e,"%26").replace(c0e,"`").replace(e1,"{").replace(t1,"}").replace(Qx,"^")}function h0e(e){return wh(e).replace(o0e,"%3D")}function p0e(e){return Sp(e).replace(Zx,"%23").replace(s0e,"%3F")}function g0e(e){return p0e(e).replace(i0e,"%2F")}function Ta(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const v0e=/\/$/,m0e=e=>e.replace(v0e,"");function Ed(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return h=d>=0&&h>d?-1:h,h>=0&&(o=t.slice(0,h),c=t.slice(h,d>0?d:t.length),s=e(c.slice(1))),d>=0&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=x0e(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:Ta(f)}}function y0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function q0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function b0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Zs(t.matched[o],r.matched[s])&&n1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Zs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function n1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!w0e(e[r],t[r]))return!1;return!0}function w0e(e,t){return Ir(e)?j0(e,t):Ir(t)?j0(t,e):e===t}function j0(e,t){return Ir(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function x0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const qi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let xh=(function(e){return e.pop="pop",e.push="push",e})({}),Ad=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function S0e(e){if(!e)if(xs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),m0e(e)}const _0e=/^[^#]+#/;function k0e(e,t){return e.replace(_0e,"#")+t}function T0e(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const tf=()=>({left:window.scrollX,top:window.scrollY});function C0e(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=T0e(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function U0(e,t){return(history.state?history.state.position-t:-1)+e}const Sh=new Map;function E0e(e,t){Sh.set(e,t)}function A0e(e){const t=Sh.get(e);return Sh.delete(e),t}function L0e(e){return typeof e=="string"||e&&typeof e=="object"}function r1(e){return typeof e=="string"||typeof e=="symbol"}let Ht=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const i1=Symbol("");Ht.MATCHER_NOT_FOUND+"",Ht.NAVIGATION_GUARD_REDIRECT+"",Ht.NAVIGATION_ABORTED+"",Ht.NAVIGATION_CANCELLED+"",Ht.NAVIGATION_DUPLICATED+"";function Js(e,t){return bt(new Error,{type:e,[i1]:!0},t)}function fi(e,t){return e instanceof Error&&i1 in e&&(t==null||!!(e.type&t))}const M0e=["params","query","hash"];function N0e(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of M0e)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function O0e(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const s=r[o].replace(Jx," "),c=s.indexOf("="),f=Ta(c<0?s:s.slice(0,c)),d=c<0?null:Ta(s.slice(c+1));if(f in t){let h=t[f];Ir(h)||(h=t[f]=[h]),h.push(d)}else t[f]=d}return t}function V0(e){let t="";for(let r in e){const o=e[r];if(r=h0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Ir(o)?o.map(s=>s&&wh(s)):[o&&wh(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function R0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Ir(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const P0e=Symbol(""),G0=Symbol(""),_p=Symbol(""),o1=Symbol(""),_h=Symbol("");function Fl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Yi(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Js(Ht.NAVIGATION_ABORTED,{from:r,to:t})):b instanceof Error?h(b):L0e(b)?h(Js(Ht.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function Ld(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(Yx(h)){const p=(h.__vccOpts||h)[t];p&&c.push(Yi(p,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=n0e(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const b=(m.__vccOpts||m)[t];return b&&Yi(b,r,o,f,d,s)()}))}}return c}function $0e(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>Zs(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Zs(p,h))||s.push(h))}return[r,o,s]}/*!
54
- * vue-router v4.6.3
55
- * (c) 2025 Eduardo San Martin Morote
56
- * @license MIT
57
- */let I0e=()=>location.protocol+"//"+location.host;function s1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let f=s.includes(e.slice(c))?e.slice(c).length:1,d=s.slice(f);return d[0]!=="/"&&(d="/"+d),q0(d,"")}return q0(r,e)+o+s}function D0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=s1(e,location),C=r.value,L=t.value;let M=0;if(b){if(r.value=x,t.value=b,f&&f===C){f=null;return}M=L?b.position-L.position:0}else o(x);s.forEach(A=>{A(r.value,C,{delta:M,type:xh.pop,direction:M?M>0?Ad.forward:Ad.back:Ad.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const C=s.indexOf(b);C>-1&&s.splice(C,1)};return c.push(x),x}function v(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(bt({},b.state,{scroll:tf()}),"")}}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",v),document.removeEventListener("visibilitychange",v)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",v),document.addEventListener("visibilitychange",v),{pauseListeners:h,listen:p,destroy:m}}function K0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?tf():null}}function z0e(e){const{history:t,location:r}=window,o={value:s1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:I0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){c(h,bt({},t.state,K0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:tf()});c(v.current,v,!0),c(h,bt({},K0(o.value,h,null),{position:v.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function F0e(e){e=S0e(e);const t=z0e(e),r=D0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:k0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function H0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),F0e(e)}let Io=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var en=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(en||{});const B0e={type:Io.Static,value:""},W0e=/[a-zA-Z0-9_]/;function q0e(e){if(!e)return[[]];if(e==="/")return[[B0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=en.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===en.Static?c.push({type:Io.Static,value:p}):r===en.Param||r===en.ParamRegExp||r===en.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:Io.Param,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==en.ParamRegExp){o=r,r=en.EscapeNext;continue}switch(r){case en.Static:h==="/"?(p&&m(),f()):h===":"?(m(),r=en.Param):b();break;case en.EscapeNext:b(),r=o;break;case en.Param:h==="("?r=en.ParamRegExp:W0e.test(h)?b():(m(),r=en.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case en.ParamRegExp:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=en.ParamRegExpEnd:v+=h;break;case en.ParamRegExpEnd:m(),r=en.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===en.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}const X0="[^/]+?",j0e={sensitive:!1,strict:!1,start:!0,end:!0};var Rn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Rn||{});const U0e=/[.+*?^${}()[\]/\\]/g;function V0e(e,t){const r=bt({},j0e,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[Rn.Root];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let x=Rn.Segment+(r.sensitive?Rn.BonusCaseSensitive:0);if(b.type===Io.Static)m||(s+="/"),s+=b.value.replace(U0e,"\\$&"),x+=Rn.Static;else if(b.type===Io.Param){const{value:C,repeatable:L,optional:M,regexp:A}=b;c.push({name:C,repeatable:L,optional:M});const O=A||X0;if(O!==X0){x+=Rn.BonusCustomRegExp;try{`${O}`}catch(E){throw new Error(`Invalid custom RegExp for param "${C}" (${O}): `+E.message)}}let F=L?`((?:${O})(?:/(?:${O}))*)`:`(${O})`;m||(F=M&&p.length<2?`(?:/${F})`:"/"+F),M&&(F+="?"),s+=F,x+=Rn.Dynamic,M&&(x+=Rn.BonusOptional),L&&(x+=Rn.BonusRepeatable),O===".*"&&(x+=Rn.BonusWildcard)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=Rn.BonusStrict}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",C=c[b-1];m[C.name]=x&&C.repeatable?x.split("/"):x}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const x of b)if(x.type===Io.Static)v+=x.value;else if(x.type===Io.Param){const{value:C,repeatable:L,optional:M}=x,A=C in p?p[C]:"";if(Ir(A)&&!L)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const O=Ir(A)?A.join("/"):A;if(!O)if(M)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${C}"`);v+=O}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function G0e(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===Rn.Static+Rn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Rn.Static+Rn.Segment?1:-1:0}function l1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=G0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(Y0(o))return 1;if(Y0(s))return-1}return s.length-o.length}function Y0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const K0e={strict:!1,end:!0,sensitive:!1};function X0e(e,t,r){const o=V0e(q0e(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Y0e(e,t){const r=[],o=new Map;t=W0(K0e,t);function s(m){return o.get(m)}function c(m,b,x){const C=!x,L=J0(m);L.aliasOf=x&&x.record;const M=W0(t,m),A=[L];if("alias"in m){const E=typeof m.alias=="string"?[m.alias]:m.alias;for(const z of E)A.push(J0(bt({},L,{components:x?x.record.components:L.components,path:z,aliasOf:x?x.record:L})))}let O,F;for(const E of A){const{path:z}=E;if(b&&z[0]!=="/"){const U=b.record.path,re=U[U.length-1]==="/"?"":"/";E.path=b.record.path+(z&&re+z)}if(O=X0e(E,b,M),x?x.alias.push(O):(F=F||O,F!==O&&F.alias.push(O),C&&m.name&&!Q0(O)&&f(m.name)),a1(O)&&h(O),L.children){const U=L.children;for(let re=0;re<U.length;re++)c(U[re],O,x&&x.children[re])}x=x||O}return F?()=>{f(F)}:na}function f(m){if(r1(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=Q0e(m,r);r.splice(b,0,m),m.record.name&&!Q0(m)&&o.set(m.record.name,m)}function p(m,b){let x,C={},L,M;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw Js(Ht.MATCHER_NOT_FOUND,{location:m});M=x.record.name,C=bt(Z0(b.params,x.keys.filter(F=>!F.optional).concat(x.parent?x.parent.keys.filter(F=>F.optional):[]).map(F=>F.name)),m.params&&Z0(m.params,x.keys.map(F=>F.name))),L=x.stringify(C)}else if(m.path!=null)L=m.path,x=r.find(F=>F.re.test(L)),x&&(C=x.parse(L),M=x.record.name);else{if(x=b.name?o.get(b.name):r.find(F=>F.re.test(b.path)),!x)throw Js(Ht.MATCHER_NOT_FOUND,{location:m,currentLocation:b});M=x.record.name,C=bt({},b.params,m.params),L=x.stringify(C)}const A=[];let O=x;for(;O;)A.unshift(O.record),O=O.parent;return{name:M,path:L,params:C,matched:A,meta:J0e(A)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function Z0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function J0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Z0e(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Z0e(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function Q0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function J0e(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function Q0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;l1(e,t[c])<0?o=c:r=c+1}const s=eye(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function eye(e){let t=e;for(;t=t.parent;)if(a1(t)&&l1(e,t)===0)return t}function a1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ey(e){const t=wn(_p),r=wn(o1),o=xe(()=>{const h=Z(e.to);return t.resolve(h)}),s=xe(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Zs.bind(null,v));if(b>-1)return b;const x=ty(h[p-2]);return p>1&&ty(v)===x&&m[m.length-1].path!==x?m.findIndex(Zs.bind(null,h[p-2])):b}),c=xe(()=>s.value>-1&&oye(r.params,o.value.params)),f=xe(()=>s.value>-1&&s.value===r.matched.length-1&&n1(r.params,o.value.params));function d(h={}){if(iye(h)){const p=t[Z(e.replace)?"replace":"push"](Z(e.to)).catch(na);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:xe(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function tye(e){return e.length===1?e[0]:e}const nye=ot({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ey,setup(e,{slots:t}){const r=ir(ey(e)),{options:o}=wn(_p),s=xe(()=>({[ny(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[ny(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&tye(t.default(r));return e.custom?c:Na("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),rye=nye;function iye(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function oye(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!Ir(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function ty(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ny=(e,t,r)=>e??t??r,sye=ot({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=wn(_h),s=xe(()=>e.route||o.value),c=wn(G0,0),f=xe(()=>{let p=Z(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=xe(()=>s.value.matched[f.value]);Er(G0,xe(()=>f.value+1)),Er(P0e,d),Er(_h,s);const h=Ve();return _t(()=>[h.value,d.value,e.name],([p,v,m],[b,x,C])=>{v&&(v.instances[m]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!Zs(v,x)||!b)&&(v.enterCallbacks[m]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return ry(r.default,{Component:b,route:p});const x=m.props[v],C=x?x===!0?p.params:typeof x=="function"?x(p):x:null,M=Na(b,bt({},C,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return ry(r.default,{Component:M,route:p})||M}}});function ry(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const lye=sye;function aye(e){const t=Y0e(e.routes,e),r=e.parseQuery||O0e,o=e.stringifyQuery||V0,s=e.history,c=Fl(),f=Fl(),d=Fl(),h=nn(qi);let p=qi;xs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Cd.bind(null,I=>""+I),m=Cd.bind(null,g0e),b=Cd.bind(null,Ta);function x(I,V){let J,le;return r1(I)?(J=t.getRecordMatcher(I),le=V):le=I,t.addRoute(le,J)}function C(I){const V=t.getRecordMatcher(I);V&&t.removeRoute(V)}function L(){return t.getRoutes().map(I=>I.record)}function M(I){return!!t.getRecordMatcher(I)}function A(I,V){if(V=bt({},V||h.value),typeof I=="string"){const G=Ed(r,I,V.path),ue=t.resolve({path:G.path},V),he=s.createHref(G.fullPath);return bt(G,ue,{params:b(ue.params),hash:Ta(G.hash),redirectedFrom:void 0,href:he})}let J;if(I.path!=null)J=bt({},I,{path:Ed(r,I.path,V.path).path});else{const G=bt({},I.params);for(const ue in G)G[ue]==null&&delete G[ue];J=bt({},I,{params:m(G)}),V.params=m(V.params)}const le=t.resolve(J,V),oe=I.hash||"";le.params=v(b(le.params));const P=y0e(o,bt({},I,{hash:d0e(oe),path:le.path})),B=s.createHref(P);return bt({fullPath:P,hash:oe,query:o===V0?R0e(I.query):I.query||{}},le,{redirectedFrom:void 0,href:B})}function O(I){return typeof I=="string"?Ed(r,I,h.value.path):bt({},I)}function F(I,V){if(p!==I)return Js(Ht.NAVIGATION_CANCELLED,{from:V,to:I})}function E(I){return re(I)}function z(I){return E(bt(O(I),{replace:!0}))}function U(I,V){const J=I.matched[I.matched.length-1];if(J&&J.redirect){const{redirect:le}=J;let oe=typeof le=="function"?le(I,V):le;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=O(oe):{path:oe},oe.params={}),bt({query:I.query,hash:I.hash,params:oe.path!=null?{}:I.params},oe)}}function re(I,V){const J=p=A(I),le=h.value,oe=I.state,P=I.force,B=I.replace===!0,G=U(J,le);if(G)return re(bt(O(G),{state:typeof G=="object"?bt({},oe,G.state):oe,force:P,replace:B}),V||J);const ue=J;ue.redirectedFrom=V;let he;return!P&&b0e(o,le,J)&&(he=Js(Ht.NAVIGATION_DUPLICATED,{to:ue,from:le}),$e(le,le,!0,!1)),(he?Promise.resolve(he):K(ue,le)).catch(de=>fi(de)?fi(de,Ht.NAVIGATION_GUARD_REDIRECT)?de:Se(de):ie(de,ue,le)).then(de=>{if(de){if(fi(de,Ht.NAVIGATION_GUARD_REDIRECT))return re(bt({replace:B},O(de.to),{state:typeof de.to=="object"?bt({},oe,de.to.state):oe,force:P}),V||ue)}else de=$(ue,le,!0,B,oe);return Y(ue,le,de),de})}function te(I,V){const J=F(I,V);return J?Promise.reject(J):Promise.resolve()}function ne(I){const V=Ye.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(I):I()}function K(I,V){let J;const[le,oe,P]=$0e(I,V);J=Ld(le.reverse(),"beforeRouteLeave",I,V);for(const G of le)G.leaveGuards.forEach(ue=>{J.push(Yi(ue,I,V))});const B=te.bind(null,I,V);return J.push(B),Me(J).then(()=>{J=[];for(const G of c.list())J.push(Yi(G,I,V));return J.push(B),Me(J)}).then(()=>{J=Ld(oe,"beforeRouteUpdate",I,V);for(const G of oe)G.updateGuards.forEach(ue=>{J.push(Yi(ue,I,V))});return J.push(B),Me(J)}).then(()=>{J=[];for(const G of P)if(G.beforeEnter)if(Ir(G.beforeEnter))for(const ue of G.beforeEnter)J.push(Yi(ue,I,V));else J.push(Yi(G.beforeEnter,I,V));return J.push(B),Me(J)}).then(()=>(I.matched.forEach(G=>G.enterCallbacks={}),J=Ld(P,"beforeRouteEnter",I,V,ne),J.push(B),Me(J))).then(()=>{J=[];for(const G of f.list())J.push(Yi(G,I,V));return J.push(B),Me(J)}).catch(G=>fi(G,Ht.NAVIGATION_CANCELLED)?G:Promise.reject(G))}function Y(I,V,J){d.list().forEach(le=>ne(()=>le(I,V,J)))}function $(I,V,J,le,oe){const P=F(I,V);if(P)return P;const B=V===qi,G=xs?history.state:{};J&&(le||B?s.replace(I.fullPath,bt({scroll:B&&G&&G.scroll},oe)):s.push(I.fullPath,oe)),h.value=I,$e(I,V,J,B),Se()}let R;function N(){R||(R=s.listen((I,V,J)=>{if(!ze.listening)return;const le=A(I),oe=U(le,ze.currentRoute.value);if(oe){re(bt(oe,{replace:!0,force:!0}),le).catch(na);return}p=le;const P=h.value;xs&&E0e(U0(P.fullPath,J.delta),tf()),K(le,P).catch(B=>fi(B,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_CANCELLED)?B:fi(B,Ht.NAVIGATION_GUARD_REDIRECT)?(re(bt(O(B.to),{force:!0}),le).then(G=>{fi(G,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_DUPLICATED)&&!J.delta&&J.type===xh.pop&&s.go(-1,!1)}).catch(na),Promise.reject()):(J.delta&&s.go(-J.delta,!1),ie(B,le,P))).then(B=>{B=B||$(le,P,!1),B&&(J.delta&&!fi(B,Ht.NAVIGATION_CANCELLED)?s.go(-J.delta,!1):J.type===xh.pop&&fi(B,Ht.NAVIGATION_ABORTED|Ht.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),Y(le,P,B)}).catch(na)}))}let _=Fl(),H=Fl(),j;function ie(I,V,J){Se(I);const le=H.list();return le.length?le.forEach(oe=>oe(I,V,J)):console.error(I),Promise.reject(I)}function ve(){return j&&h.value!==qi?Promise.resolve():new Promise((I,V)=>{_.add([I,V])})}function Se(I){return j||(j=!I,N(),_.list().forEach(([V,J])=>I?J(I):V()),_.reset()),I}function $e(I,V,J,le){const{scrollBehavior:oe}=e;if(!xs||!oe)return Promise.resolve();const P=!J&&A0e(U0(I.fullPath,0))||(le||!J)&&history.state&&history.state.scroll||null;return Ct().then(()=>oe(I,V,P)).then(B=>B&&C0e(B)).catch(B=>ie(B,I,V))}const je=I=>s.go(I);let Qe;const Ye=new Set,ze={currentRoute:h,listening:!0,addRoute:x,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:M,getRoutes:L,resolve:A,options:e,push:E,replace:z,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:H.add,isReady:ve,install(I){I.component("RouterLink",rye),I.component("RouterView",lye),I.config.globalProperties.$router=ze,Object.defineProperty(I.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(h)}),xs&&!Qe&&h.value===qi&&(Qe=!0,E(s.location).catch(le=>{}));const V={};for(const le in qi)Object.defineProperty(V,le,{get:()=>h.value[le],enumerable:!0});I.provide(_p,ze),I.provide(o1,Rh(V)),I.provide(_h,h);const J=I.unmount;Ye.add(I),I.unmount=function(){Ye.delete(I),Ye.size<1&&(p=qi,R&&R(),R=null,h.value=qi,Qe=!1,j=!1),J()}}};function Me(I){return I.reduce((V,J)=>V.then(()=>ne(J)),Promise.resolve())}return ze}const cye={tooltip:qC};Yb.options.instantMove=!0;Yb.options.distance=10;function uye(){return aye({history:H0e(),routes:t0e})}const fye=[uye],kp=Ab(VT);fye.forEach(e=>{kp.use(e())});Object.entries(cye).forEach(([e,t])=>{kp.directive(e,t)});kp.mount("#app");