@vitest/browser 4.1.0-beta.3 → 4.1.0-beta.4

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.
@@ -0,0 +1,63 @@
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.27
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function Jh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const yt={},js=[],Jr=()=>{},Gy=()=>!1,Ku=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Qh=e=>e.startsWith("onUpdate:"),Zt=Object.assign,ep=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},iS=Object.prototype.hasOwnProperty,xt=(e,t)=>iS.call(e,t),Xe=Array.isArray,Ws=e=>ja(e)==="[object Map]",pl=e=>ja(e)==="[object Set]",ev=e=>ja(e)==="[object Date]",nt=e=>typeof e=="function",Ft=e=>typeof e=="string",Dr=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",Ky=e=>(St(e)||nt(e))&&nt(e.then)&&nt(e.catch),Xy=Object.prototype.toString,ja=e=>Xy.call(e),oS=e=>ja(e).slice(8,-1),Yy=e=>ja(e)==="[object Object]",Xu=e=>Ft(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,oa=Jh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},sS=/-\w/g,ur=Yu(e=>e.replace(sS,t=>t.slice(1).toUpperCase())),lS=/\B([A-Z])/g,Pi=Yu(e=>e.replace(lS,"-$1").toLowerCase()),Zu=Yu(e=>e.charAt(0).toUpperCase()+e.slice(1)),eu=Yu(e=>e?`on${Zu(e)}`:""),Kn=(e,t)=>!Object.is(e,t),tu=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Zy=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Ju=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Jy=e=>{const t=Ft(e)?Number(e):NaN;return isNaN(t)?e:t};let tv;const Qu=()=>tv||(tv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ot(e){if(Xe(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Ft(o)?fS(o):Ot(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Ft(e)||St(e))return e}const aS=/;(?![^(]*\))/g,cS=/:([^]+)/,uS=/\/\*[^]*?\*\//g;function fS(e){const t={};return e.replace(uS,"").split(aS).forEach(r=>{if(r){const o=r.split(cS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function it(e){let t="";if(Ft(e))t=e;else if(Xe(e))for(let r=0;r<e.length;r++){const o=it(e[r]);o&&(t+=o+" ")}else if(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function dS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ft(t)&&(e.class=it(t)),r&&(e.style=Ot(r)),e}const hS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",pS=Jh(hS);function Qy(e){return!!e||e===""}function gS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=Wa(e[o],t[o]);return r}function Wa(e,t){if(e===t)return!0;let r=ev(e),o=ev(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Dr(e),o=Dr(t),r||o)return e===t;if(r=Xe(e),o=Xe(t),r||o)return r&&o?gS(e,t):!1;if(r=St(e),o=St(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||!Wa(e[f],t[f]))return!1}}return String(e)===String(t)}function tp(e,t){return e.findIndex(r=>Wa(r,t))}const eb=e=>!!(e&&e.__v_isRef===!0),Oe=e=>Ft(e)?e:e==null?"":Xe(e)||St(e)&&(e.toString===Xy||!nt(e.toString))?eb(e)?Oe(e.value):JSON.stringify(e,tb,2):String(e),tb=(e,t)=>eb(t)?tb(e,t.value):Ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[_d(o,c)+" =>"]=s,r),{})}:pl(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>_d(r))}:Dr(t)?_d(t):St(t)&&!Xe(t)&&!Yy(t)?String(t):t,_d=(e,t="")=>{var r;return Dr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6
+ * @vue/reactivity v3.5.27
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let xn;class mS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xn,!t&&xn&&(this.index=(xn.scopes||(xn.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=xn;try{return xn=this,t()}finally{xn=r}}}on(){++this._on===1&&(this.prevScope=xn,xn=this)}off(){this._on>0&&--this._on===0&&(xn=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 np(){return xn}function vS(e,t=!1){xn&&xn.cleanups.push(e)}let Et;const Sd=new WeakSet;class nb{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,xn&&xn.active&&xn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Sd.has(this)&&(Sd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ib(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nv(this),ob(this);const t=Et,r=Rr;Et=this,Rr=!0;try{return this.fn()}finally{sb(this),Et=t,Rr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)op(t);this.deps=this.depsTail=void 0,nv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Sd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){th(this)&&this.run()}get dirty(){return th(this)}}let rb=0,sa,la;function ib(e,t=!1){if(e.flags|=8,t){e.next=la,la=e;return}e.next=sa,sa=e}function rp(){rb++}function ip(){if(--rb>0)return;if(la){let t=la;for(la=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;sa;){let t=sa;for(sa=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 ob(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function sb(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),op(o),yS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function th(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(lb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function lb(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ya)||(e.globalVersion=ya,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!th(e))))return;e.flags|=2;const t=e.dep,r=Et,o=Rr;Et=e,Rr=!0;try{ob(e);const s=e.fn(e._value);(t.version===0||Kn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Et=r,Rr=o,sb(e),e.flags&=-3}}function op(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)op(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function yS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Rr=!0;const ab=[];function Li(){ab.push(Rr),Rr=!1}function Mi(){const e=ab.pop();Rr=e===void 0?!0:e}function nv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Et;Et=void 0;try{t()}finally{Et=r}}}let ya=0;class bS{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 ef{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(!Et||!Rr||Et===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Et)r=this.activeLink=new bS(Et,this),Et.deps?(r.prevDep=Et.depsTail,Et.depsTail.nextDep=r,Et.depsTail=r):Et.deps=Et.depsTail=r,cb(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=Et.depsTail,r.nextDep=void 0,Et.depsTail.nextDep=r,Et.depsTail=r,Et.deps===r&&(Et.deps=o)}return r}trigger(t){this.version++,ya++,this.notify(t)}notify(t){rp();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{ip()}}}function cb(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)cb(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const mu=new WeakMap,Xo=Symbol(""),nh=Symbol(""),ba=Symbol("");function _n(e,t,r){if(Rr&&Et){let o=mu.get(e);o||mu.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new ef),s.map=o,s.key=r),s.track()}}function ki(e,t,r,o,s,c){const f=mu.get(e);if(!f){ya++;return}const d=h=>{h&&h.trigger()};if(rp(),t==="clear")f.forEach(d);else{const h=Xe(e),p=h&&Xu(r);if(h&&r==="length"){const m=Number(o);f.forEach((v,b)=>{(b==="length"||b===ba||!Dr(b)&&b>=m)&&d(v)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ba)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Xo)),Ws(e)&&d(f.get(nh)));break;case"delete":h||(d(f.get(Xo)),Ws(e)&&d(f.get(nh)));break;case"set":Ws(e)&&d(f.get(Xo));break}}ip()}function wS(e,t){const r=mu.get(e);return r&&r.get(t)}function Ns(e){const t=mt(e);return t===e?t:(_n(t,"iterate",ba),lr(e)?t:t.map(zr))}function tf(e){return _n(e=mt(e),"iterate",ba),e}function ro(e,t){return Ni(e)?tl(Yo(e)?zr(t):t):zr(t)}const xS={__proto__:null,[Symbol.iterator](){return Td(this,Symbol.iterator,e=>ro(this,e))},concat(...e){return Ns(this).concat(...e.map(t=>Xe(t)?Ns(t):t))},entries(){return Td(this,"entries",e=>(e[1]=ro(this,e[1]),e))},every(e,t){return pi(this,"every",e,t,void 0,arguments)},filter(e,t){return pi(this,"filter",e,t,r=>r.map(o=>ro(this,o)),arguments)},find(e,t){return pi(this,"find",e,t,r=>ro(this,r),arguments)},findIndex(e,t){return pi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pi(this,"findLast",e,t,r=>ro(this,r),arguments)},findLastIndex(e,t){return pi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pi(this,"forEach",e,t,void 0,arguments)},includes(...e){return Cd(this,"includes",e)},indexOf(...e){return Cd(this,"indexOf",e)},join(e){return Ns(this).join(e)},lastIndexOf(...e){return Cd(this,"lastIndexOf",e)},map(e,t){return pi(this,"map",e,t,void 0,arguments)},pop(){return Gl(this,"pop")},push(...e){return Gl(this,"push",e)},reduce(e,...t){return rv(this,"reduce",e,t)},reduceRight(e,...t){return rv(this,"reduceRight",e,t)},shift(){return Gl(this,"shift")},some(e,t){return pi(this,"some",e,t,void 0,arguments)},splice(...e){return Gl(this,"splice",e)},toReversed(){return Ns(this).toReversed()},toSorted(e){return Ns(this).toSorted(e)},toSpliced(...e){return Ns(this).toSpliced(...e)},unshift(...e){return Gl(this,"unshift",e)},values(){return Td(this,"values",e=>ro(this,e))}};function Td(e,t,r){const o=tf(e),s=o[t]();return o!==e&&!lr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const kS=Array.prototype;function pi(e,t,r,o,s,c){const f=tf(e),d=f!==e&&!lr(e),h=f[t];if(h!==kS[t]){const v=h.apply(e,c);return d?zr(v):v}let p=r;f!==e&&(d?p=function(v,b){return r.call(this,ro(e,v),b,e)}:r.length>2&&(p=function(v,b){return r.call(this,v,b,e)}));const m=h.call(f,p,o);return d&&s?s(m):m}function rv(e,t,r,o){const s=tf(e);let c=r;return s!==e&&(lr(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,ro(e,d),h,e)}),s[t](c,...o)}function Cd(e,t,r){const o=mt(e);_n(o,"iterate",ba);const s=o[t](...r);return(s===-1||s===!1)&&nf(r[0])?(r[0]=mt(r[0]),o[t](...r)):s}function Gl(e,t,r=[]){Li(),rp();const o=mt(e)[t].apply(e,r);return ip(),Mi(),o}const _S=Jh("__proto__,__v_isRef,__isVue"),ub=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dr));function SS(e){Dr(e)||(e=String(e));const t=mt(this);return _n(t,"has",e),t.hasOwnProperty(e)}class fb{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?PS:gb:c?pb:hb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Xe(t);if(!s){let h;if(f&&(h=xS[r]))return h;if(r==="hasOwnProperty")return SS}const d=Reflect.get(t,r,Mt(t)?t:o);if((Dr(r)?ub.has(r):_S(r))||(s||_n(t,"get",r),c))return d;if(Mt(d)){const h=f&&Xu(r)?d:d.value;return s&&St(h)?el(h):h}return St(d)?s?el(d):sr(d):d}}class db extends fb{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];const f=Xe(t)&&Xu(r);if(!this._isShallow){const p=Ni(c);if(!lr(o)&&!Ni(o)&&(c=mt(c),o=mt(o)),!f&&Mt(c)&&!Mt(o))return p||(c.value=o),!0}const d=f?Number(r)<t.length:xt(t,r),h=Reflect.set(t,r,o,Mt(t)?t:s);return t===mt(s)&&(d?Kn(o,c)&&ki(t,"set",r,o):ki(t,"add",r,o)),h}deleteProperty(t,r){const o=xt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&ki(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Dr(r)||!ub.has(r))&&_n(t,"has",r),o}ownKeys(t){return _n(t,"iterate",Xe(t)?"length":Xo),Reflect.ownKeys(t)}}class TS extends fb{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const CS=new db,ES=new TS,AS=new db(!0);const rh=e=>e,Ic=e=>Reflect.getPrototypeOf(e);function LS(e,t,r){return function(...o){const s=this.__v_raw,c=mt(s),f=Ws(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),m=r?rh:t?tl:zr;return!t&&_n(c,"iterate",h?nh:Xo),Zt(Object.create(p),{next(){const{value:v,done:b}=p.next();return b?{value:v,done:b}:{value:d?[m(v[0]),m(v[1])]:m(v),done:b}}})}}function Dc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function MS(e,t){const r={get(s){const c=this.__v_raw,f=mt(c),d=mt(s);e||(Kn(s,d)&&_n(f,"get",s),_n(f,"get",d));const{has:h}=Ic(f),p=t?rh:e?tl:zr;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&&_n(mt(s),"iterate",Xo),s.size},has(s){const c=this.__v_raw,f=mt(c),d=mt(s);return e||(Kn(s,d)&&_n(f,"has",s),_n(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=mt(d),p=t?rh:e?tl:zr;return!e&&_n(h,"iterate",Xo),d.forEach((m,v)=>s.call(c,p(m),p(v),f))}};return Zt(r,e?{add:Dc("add"),set:Dc("set"),delete:Dc("delete"),clear:Dc("clear")}:{add(s){!t&&!lr(s)&&!Ni(s)&&(s=mt(s));const c=mt(this);return Ic(c).has.call(c,s)||(c.add(s),ki(c,"add",s,s)),this},set(s,c){!t&&!lr(c)&&!Ni(c)&&(c=mt(c));const f=mt(this),{has:d,get:h}=Ic(f);let p=d.call(f,s);p||(s=mt(s),p=d.call(f,s));const m=h.call(f,s);return f.set(s,c),p?Kn(c,m)&&ki(f,"set",s,c):ki(f,"add",s,c),this},delete(s){const c=mt(this),{has:f,get:d}=Ic(c);let h=f.call(c,s);h||(s=mt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&ki(c,"delete",s,void 0),p},clear(){const s=mt(this),c=s.size!==0,f=s.clear();return c&&ki(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=LS(s,e,t)}),r}function sp(e,t){const r=MS(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(xt(r,s)&&s in o?r:o,s,c)}const NS={get:sp(!1,!1)},$S={get:sp(!1,!0)},OS={get:sp(!0,!1)};const hb=new WeakMap,pb=new WeakMap,gb=new WeakMap,PS=new WeakMap;function RS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function IS(e){return e.__v_skip||!Object.isExtensible(e)?0:RS(oS(e))}function sr(e){return Ni(e)?e:ap(e,!1,CS,NS,hb)}function lp(e){return ap(e,!1,AS,$S,pb)}function el(e){return ap(e,!0,ES,OS,gb)}function ap(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=IS(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 Yo(e){return Ni(e)?Yo(e.__v_raw):!!(e&&e.__v_isReactive)}function Ni(e){return!!(e&&e.__v_isReadonly)}function lr(e){return!!(e&&e.__v_isShallow)}function nf(e){return e?!!e.__v_raw:!1}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function rf(e){return!xt(e,"__v_skip")&&Object.isExtensible(e)&&Zy(e,"__v_skip",!0),e}const zr=e=>St(e)?sr(e):e,tl=e=>St(e)?el(e):e;function Mt(e){return e?e.__v_isRef===!0:!1}function Ve(e){return mb(e,!1)}function Wt(e){return mb(e,!0)}function mb(e,t){return Mt(e)?e:new DS(e,t)}class DS{constructor(t,r){this.dep=new ef,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:mt(t),this._value=r?t:zr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||lr(t)||Ni(t);t=o?t:mt(t),Kn(t,r)&&(this._rawValue=t,this._value=o?t:zr(t),this.dep.trigger())}}function q(e){return Mt(e)?e.value:e}function Yt(e){return nt(e)?e():q(e)}const zS={get:(e,t,r)=>t==="__v_raw"?e:q(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Mt(s)&&!Mt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function vb(e){return Yo(e)?e:new Proxy(e,zS)}class FS{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new ef,{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 yb(e){return new FS(e)}function HS(e){const t=Xe(e)?new Array(e.length):{};for(const r in e)t[r]=bb(e,r);return t}class BS{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=mt(t);let s=!0,c=t;if(!Xe(t)||!Xu(String(r)))do s=!nf(c)||lr(c);while(s&&(c=c.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=q(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Mt(this._raw[this._key])){const r=this._object[this._key];if(Mt(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return wS(this._raw,this._key)}}class jS{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 WS(e,t,r){return Mt(e)?e:nt(e)?new jS(e):St(e)&&arguments.length>1?bb(e,t,r):Ve(e)}function bb(e,t,r){return new BS(e,t,r)}class qS{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new ef(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ya-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Et!==this)return ib(this,!0),!0}get value(){const t=this.dep.track();return lb(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function US(e,t,r=!1){let o,s;return nt(e)?o=e:(o=e.get,s=e.set),new qS(o,s,r)}const zc={},vu=new WeakMap;let Wo;function VS(e,t=!1,r=Wo){if(r){let o=vu.get(r);o||vu.set(r,o=[]),o.push(e)}}function GS(e,t,r=yt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=C=>s?C:lr(C)||s===!1||s===0?_i(C,1):_i(C);let m,v,b,w,O=!1,A=!1;if(Mt(e)?(v=()=>e.value,O=lr(e)):Yo(e)?(v=()=>p(e),O=!0):Xe(e)?(A=!0,O=e.some(C=>Yo(C)||lr(C)),v=()=>e.map(C=>{if(Mt(C))return C.value;if(Yo(C))return p(C);if(nt(C))return h?h(C,2):C()})):nt(e)?t?v=h?()=>h(e,2):e:v=()=>{if(b){Li();try{b()}finally{Mi()}}const C=Wo;Wo=m;try{return h?h(e,3,[w]):e(w)}finally{Wo=C}}:v=Jr,t&&s){const C=v,I=s===!0?1/0:s;v=()=>_i(C(),I)}const N=np(),L=()=>{m.stop(),N&&N.active&&ep(N.effects,m)};if(c&&t){const C=t;t=(...I)=>{C(...I),L()}}let R=A?new Array(e.length).fill(zc):zc;const z=C=>{if(!(!(m.flags&1)||!m.dirty&&!C))if(t){const I=m.run();if(s||O||(A?I.some((W,Z)=>Kn(W,R[Z])):Kn(I,R))){b&&b();const W=Wo;Wo=m;try{const Z=[I,R===zc?void 0:A&&R[0]===zc?[]:R,w];R=I,h?h(t,3,Z):t(...Z)}finally{Wo=W}}}else m.run()};return d&&d(z),m=new nb(v),m.scheduler=f?()=>f(z,!1):z,w=C=>VS(C,!1,m),b=m.onStop=()=>{const C=vu.get(m);if(C){if(h)h(C,4);else for(const I of C)I();vu.delete(m)}},t?o?z(!0):R=m.run():f?f(z.bind(null,!0),!0):m.run(),L.pause=m.pause.bind(m),L.resume=m.resume.bind(m),L.stop=L,L}function _i(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Mt(e))_i(e.value,t,r);else if(Xe(e))for(let o=0;o<e.length;o++)_i(e[o],t,r);else if(pl(e)||Ws(e))e.forEach(o=>{_i(o,t,r)});else if(Yy(e)){for(const o in e)_i(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&_i(e[o],t,r)}return e}/**
10
+ * @vue/runtime-core v3.5.27
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function qa(e,t,r,o){try{return o?e(...o):e()}catch(s){Ua(s,t,r)}}function Fr(e,t,r,o){if(nt(e)){const s=qa(e,t,r,o);return s&&Ky(s)&&s.catch(c=>{Ua(c,t,r)}),s}if(Xe(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Fr(e[c],t,r,o));return s}}function Ua(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||yt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const m=d.ec;if(m){for(let v=0;v<m.length;v++)if(m[v](e,h,p)===!1)return}d=d.parent}if(c){Li(),qa(c,null,10,[e,h,p]),Mi();return}}KS(e,r,s,o,f)}function KS(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const In=[];let Yr=-1;const qs=[];let io=null,Rs=0;const wb=Promise.resolve();let yu=null;function Ct(e){const t=yu||wb;return e?t.then(this?e.bind(this):e):t}function XS(e){let t=Yr+1,r=In.length;for(;t<r;){const o=t+r>>>1,s=In[o],c=wa(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function cp(e){if(!(e.flags&1)){const t=wa(e),r=In[In.length-1];!r||!(e.flags&2)&&t>=wa(r)?In.push(e):In.splice(XS(t),0,e),e.flags|=1,xb()}}function xb(){yu||(yu=wb.then(_b))}function ih(e){Xe(e)?qs.push(...e):io&&e.id===-1?io.splice(Rs+1,0,e):e.flags&1||(qs.push(e),e.flags|=1),xb()}function iv(e,t,r=Yr+1){for(;r<In.length;r++){const o=In[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;In.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function kb(e){if(qs.length){const t=[...new Set(qs)].sort((r,o)=>wa(r)-wa(o));if(qs.length=0,io){io.push(...t);return}for(io=t,Rs=0;Rs<io.length;Rs++){const r=io[Rs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}io=null,Rs=0}}const wa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function _b(e){try{for(Yr=0;Yr<In.length;Yr++){const t=In[Yr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),qa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Yr<In.length;Yr++){const t=In[Yr];t&&(t.flags&=-2)}Yr=-1,In.length=0,kb(),yu=null,(In.length||qs.length)&&_b()}}let vn=null,of=null;function bu(e){const t=vn;return vn=e,of=e&&e.type.__scopeId||null,t}function Sb(e){of=e}function Tb(){of=null}const Cb=e=>je;function je(e,t=vn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&rl(-1);const c=bu(t);let f;try{f=e(...s)}finally{bu(c),o._d&&rl(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function st(e,t){if(vn===null)return e;const r=df(vn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=yt]=t[s];c&&(nt(c)&&(c={mounted:c,updated:c}),c.deep&&_i(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function zo(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&&(Li(),Fr(h,r,8,[e.el,d,e,t]),Mi())}}function mr(e,t){if(Sn){let r=Sn.provides;const o=Sn.parent&&Sn.parent.provides;o===r&&(r=Sn.provides=Object.create(o)),r[e]=t}}function mn(e,t,r=!1){const o=ii();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&&nt(t)?t.call(o&&o.proxy):t}}function Eb(){return!!(ii()||Zo)}const YS=Symbol.for("v-scx"),ZS=()=>mn(YS);function Ab(e,t){return sf(e,null,t)}function JS(e,t){return sf(e,null,{flush:"sync"})}function vt(e,t,r){return sf(e,t,r)}function sf(e,t,r=yt){const{immediate:o,deep:s,flush:c,once:f}=r,d=Zt({},r),h=t&&o||!t&&c!=="post";let p;if(Sa){if(c==="sync"){const w=ZS();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Jr,w.resume=Jr,w.pause=Jr,w}}const m=Sn;d.call=(w,O,A)=>Fr(w,m,O,A);let v=!1;c==="post"?d.scheduler=w=>{Vn(w,m&&m.suspense)}:c!=="sync"&&(v=!0,d.scheduler=(w,O)=>{O?w():cp(w)}),d.augmentJob=w=>{t&&(w.flags|=4),v&&(w.flags|=2,m&&(w.id=m.uid,w.i=m))};const b=GS(e,t,d);return Sa&&(p?p.push(b):h&&b()),b}function QS(e,t,r){const o=this.proxy,s=Ft(e)?e.includes(".")?Lb(o,e):()=>o[e]:e.bind(o,o);let c;nt(t)?c=t:(c=t.handler,r=t);const f=Ka(this),d=sf(s,c.bind(o),r);return f(),d}function Lb(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}}const eT=Symbol("_vte"),Mb=e=>e.__isTeleport,xi=Symbol("_leaveCb"),Fc=Symbol("_enterCb");function tT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ii(()=>{e.isMounted=!0}),Va(()=>{e.isUnmounting=!0}),e}const pr=[Function,Array],Nb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pr,onEnter:pr,onAfterEnter:pr,onEnterCancelled:pr,onBeforeLeave:pr,onLeave:pr,onAfterLeave:pr,onLeaveCancelled:pr,onBeforeAppear:pr,onAppear:pr,onAfterAppear:pr,onAppearCancelled:pr},$b=e=>{const t=e.subTree;return t.component?$b(t.component):t},nT={name:"BaseTransition",props:Nb,setup(e,{slots:t}){const r=ii(),o=tT();return()=>{const s=t.default&&Rb(t.default(),!0);if(!s||!s.length)return;const c=Ob(s),f=mt(e),{mode:d}=f;if(o.isLeaving)return Ed(c);const h=ov(c);if(!h)return Ed(c);let p=oh(h,f,o,r,v=>p=v);h.type!==cn&&xa(h,p);let m=r.subTree&&ov(r.subTree);if(m&&m.type!==cn&&!Zr(m,h)&&$b(r).type!==cn){let v=oh(m,f,o,r);if(xa(m,v),d==="out-in"&&h.type!==cn)return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete v.afterLeave,m=void 0},Ed(c);d==="in-out"&&h.type!==cn?v.delayLeave=(b,w,O)=>{const A=Pb(o,m);A[String(m.key)]=m,b[xi]=()=>{w(),b[xi]=void 0,delete p.delayedLeave,m=void 0},p.delayedLeave=()=>{O(),delete p.delayedLeave,m=void 0}}:m=void 0}else m&&(m=void 0);return c}}};function Ob(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==cn){t=r;break}}return t}const rT=nT;function Pb(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 oh(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:m,onEnterCancelled:v,onBeforeLeave:b,onLeave:w,onAfterLeave:O,onLeaveCancelled:A,onBeforeAppear:N,onAppear:L,onAfterAppear:R,onAppearCancelled:z}=t,C=String(e.key),I=Pb(r,e),W=(Q,K)=>{Q&&Fr(Q,o,9,K)},Z=(Q,K)=>{const G=K[1];W(Q,K),Xe(Q)?Q.every(P=>P.length<=1)&&G():Q.length<=1&&G()},se={mode:f,persisted:d,beforeEnter(Q){let K=h;if(!r.isMounted)if(c)K=N||h;else return;Q[xi]&&Q[xi](!0);const G=I[C];G&&Zr(e,G)&&G.el[xi]&&G.el[xi](),W(K,[Q])},enter(Q){let K=p,G=m,P=v;if(!r.isMounted)if(c)K=L||p,G=R||m,P=z||v;else return;let $=!1;const S=Q[Fc]=k=>{$||($=!0,k?W(P,[Q]):W(G,[Q]),se.delayedLeave&&se.delayedLeave(),Q[Fc]=void 0)};K?Z(K,[Q,S]):S()},leave(Q,K){const G=String(e.key);if(Q[Fc]&&Q[Fc](!0),r.isUnmounting)return K();W(b,[Q]);let P=!1;const $=Q[xi]=S=>{P||(P=!0,K(),S?W(A,[Q]):W(O,[Q]),Q[xi]=void 0,I[G]===e&&delete I[G])};I[G]=e,w?Z(w,[Q,$]):$()},clone(Q){const K=oh(Q,t,r,o,s);return s&&s(K),K}};return se}function Ed(e){if(lf(e))return e=yo(e),e.children=null,e}function ov(e){if(!lf(e))return Mb(e.type)&&e.children?Ob(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&&nt(r.default))return r.default()}}function xa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xa(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 Rb(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===tt?(f.patchFlag&128&&s++,o=o.concat(Rb(f.children,t,d))):(t||f.type!==cn)&&o.push(d!=null?yo(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function et(e,t){return nt(e)?Zt({name:e.name},t,{setup:e}):e}function up(){const e=ii();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ib(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const wu=new WeakMap;function aa(e,t,r,o,s=!1){if(Xe(e)){e.forEach((O,A)=>aa(O,t&&(Xe(t)?t[A]:t),r,o,s));return}if(Us(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&aa(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?df(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,m=d.refs===yt?d.refs={}:d.refs,v=d.setupState,b=mt(v),w=v===yt?Gy:O=>xt(b,O);if(p!=null&&p!==h){if(sv(t),Ft(p))m[p]=null,w(p)&&(v[p]=null);else if(Mt(p)){p.value=null;const O=t;O.k&&(m[O.k]=null)}}if(nt(h))qa(h,d,12,[f,m]);else{const O=Ft(h),A=Mt(h);if(O||A){const N=()=>{if(e.f){const L=O?w(h)?v[h]:m[h]:h.value;if(s)Xe(L)&&ep(L,c);else if(Xe(L))L.includes(c)||L.push(c);else if(O)m[h]=[c],w(h)&&(v[h]=m[h]);else{const R=[c];h.value=R,e.k&&(m[e.k]=R)}}else O?(m[h]=f,w(h)&&(v[h]=f)):A&&(h.value=f,e.k&&(m[e.k]=f))};if(f){const L=()=>{N(),wu.delete(e)};L.id=-1,wu.set(e,L),Vn(L,r)}else sv(e),N()}}}function sv(e){const t=wu.get(e);t&&(t.flags|=8,wu.delete(e))}Qu().requestIdleCallback;Qu().cancelIdleCallback;const Us=e=>!!e.type.__asyncLoader,lf=e=>e.type.__isKeepAlive;function iT(e,t){Db(e,"a",t)}function oT(e,t){Db(e,"da",t)}function Db(e,t,r=Sn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(af(t,o,r),r){let s=r.parent;for(;s&&s.parent;)lf(s.parent.vnode)&&sT(o,t,r,s),s=s.parent}}function sT(e,t,r,o){const s=af(t,e,o,!0);Ga(()=>{ep(o[t],s)},r)}function af(e,t,r=Sn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{Li();const d=Ka(r),h=Fr(t,r,e,f);return d(),Mi(),h});return o?s.unshift(c):s.push(c),c}}const Ri=e=>(t,r=Sn)=>{(!Sa||e==="sp")&&af(e,(...o)=>t(...o),r)},lT=Ri("bm"),Ii=Ri("m"),aT=Ri("bu"),cT=Ri("u"),Va=Ri("bum"),Ga=Ri("um"),uT=Ri("sp"),fT=Ri("rtg"),dT=Ri("rtc");function hT(e,t=Sn){af("ec",e,t)}const fp="components",pT="directives";function es(e,t){return dp(fp,e,!0,t)||e}const zb=Symbol.for("v-ndc");function xu(e){return Ft(e)?dp(fp,e,!1)||e:e||zb}function Qn(e){return dp(pT,e)}function dp(e,t,r=!0,o=!1){const s=vn||Sn;if(s){const c=s.type;if(e===fp){const d=rC(c,!1);if(d&&(d===t||d===ur(t)||d===Zu(ur(t))))return c}const f=lv(s[e]||c[e],t)||lv(s.appContext[e],t);return!f&&o?c:f}}function lv(e,t){return e&&(e[t]||e[ur(t)]||e[Zu(ur(t))])}function yn(e,t,r,o){let s;const c=r,f=Xe(e);if(f||Ft(e)){const d=f&&Yo(e);let h=!1,p=!1;d&&(h=!lr(e),p=Ni(e),e=tf(e)),s=new Array(e.length);for(let m=0,v=e.length;m<v;m++)s[m]=t(h?p?tl(zr(e[m])):zr(e[m]):e[m],m,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(St(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 m=d[h];s[h]=t(e[m],m,h,c)}}else s=[];return s}function gT(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Xe(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 zt(e,t,r={},o,s){if(vn.ce||vn.parent&&Us(vn.parent)&&vn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),ne(),qe(tt,null,[Le("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),ne();const f=c&&Fb(c(r)),d=r.key||f&&f.key,h=qe(tt,{key:(d&&!Dr(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 Fb(e){return e.some(t=>il(t)?!(t.type===cn||t.type===tt&&!Fb(t.children)):!0)?e:null}function mT(e,t){const r={};for(const o in e)r[eu(o)]=e[o];return r}const sh=e=>e?uw(e)?df(e):sh(e.parent):null,ca=Zt(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=>sh(e.parent),$root:e=>sh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Wb(e),$forceUpdate:e=>e.f||(e.f=()=>{cp(e.update)}),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>QS.bind(e)}),Ad=(e,t)=>e!==yt&&!e.__isScriptSetup&&xt(e,t),vT={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;if(t[0]!=="$"){const b=f[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Ad(o,t))return f[t]=1,o[t];if(s!==yt&&xt(s,t))return f[t]=2,s[t];if(xt(c,t))return f[t]=3,c[t];if(r!==yt&&xt(r,t))return f[t]=4,r[t];lh&&(f[t]=0)}}const p=ca[t];let m,v;if(p)return t==="$attrs"&&_n(e.attrs,"get",""),p(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==yt&&xt(r,t))return f[t]=4,r[t];if(v=h.config.globalProperties,xt(v,t))return v[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Ad(s,t)?(s[t]=r,!0):o!==yt&&xt(o,t)?(o[t]=r,!0):xt(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,props:c,type:f}},d){let h;return!!(r[d]||e!==yt&&d[0]!=="$"&&xt(e,d)||Ad(t,d)||xt(c,d)||xt(o,d)||xt(ca,d)||xt(s.config.globalProperties,d)||(h=f.__cssModules)&&h[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:xt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Hb(){return Bb().slots}function yT(){return Bb().attrs}function Bb(e){const t=ii();return t.setupContext||(t.setupContext=dw(t))}function ku(e){return Xe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function ka(e,t){return!e||!t?e||t:Xe(e)&&Xe(t)?e.concat(t):Zt({},ku(e),ku(t))}let lh=!0;function bT(e){const t=Wb(e),r=e.proxy,o=e.ctx;lh=!1,t.beforeCreate&&av(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:m,beforeMount:v,mounted:b,beforeUpdate:w,updated:O,activated:A,deactivated:N,beforeDestroy:L,beforeUnmount:R,destroyed:z,unmounted:C,render:I,renderTracked:W,renderTriggered:Z,errorCaptured:se,serverPrefetch:Q,expose:K,inheritAttrs:G,components:P,directives:$,filters:S}=t;if(p&&wT(p,o,null),f)for(const B in f){const Y=f[B];nt(Y)&&(o[B]=Y.bind(r))}if(s){const B=s.call(r,r);St(B)&&(e.data=sr(B))}if(lh=!0,c)for(const B in c){const Y=c[B],ve=nt(Y)?Y.bind(r,r):nt(Y.get)?Y.get.bind(r,r):Jr,_e=!nt(Y)&&nt(Y.set)?Y.set.bind(r):Jr,Be=ke({get:ve,set:_e});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>Be.value,set:Ae=>Be.value=Ae})}if(d)for(const B in d)jb(d[B],o,r,B);if(h){const B=nt(h)?h.call(r):h;Reflect.ownKeys(B).forEach(Y=>{mr(Y,B[Y])})}m&&av(m,e,"c");function M(B,Y){Xe(Y)?Y.forEach(ve=>B(ve.bind(r))):Y&&B(Y.bind(r))}if(M(lT,v),M(Ii,b),M(aT,w),M(cT,O),M(iT,A),M(oT,N),M(hT,se),M(dT,W),M(fT,Z),M(Va,R),M(Ga,C),M(uT,Q),Xe(K))if(K.length){const B=e.exposed||(e.exposed={});K.forEach(Y=>{Object.defineProperty(B,Y,{get:()=>r[Y],set:ve=>r[Y]=ve,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===Jr&&(e.render=I),G!=null&&(e.inheritAttrs=G),P&&(e.components=P),$&&(e.directives=$),Q&&Ib(e)}function wT(e,t,r=Jr){Xe(e)&&(e=ah(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=mn(s.from||o,s.default,!0):c=mn(s.from||o):c=mn(s),Mt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function av(e,t,r){Fr(Xe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function jb(e,t,r,o){let s=o.includes(".")?Lb(r,o):()=>r[o];if(Ft(e)){const c=t[e];nt(c)&&vt(s,c)}else if(nt(e))vt(s,e.bind(r));else if(St(e))if(Xe(e))e.forEach(c=>jb(c,t,r,o));else{const c=nt(e.handler)?e.handler.bind(r):t[e.handler];nt(c)&&vt(s,c,e)}}function Wb(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=>_u(h,p,f,!0)),_u(h,t,f)),St(t)&&c.set(t,h),h}function _u(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&_u(e,c,r,!0),s&&s.forEach(f=>_u(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=xT[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const xT={data:cv,props:uv,emits:uv,methods:ea,computed:ea,beforeCreate:On,created:On,beforeMount:On,mounted:On,beforeUpdate:On,updated:On,beforeDestroy:On,beforeUnmount:On,destroyed:On,unmounted:On,activated:On,deactivated:On,errorCaptured:On,serverPrefetch:On,components:ea,directives:ea,watch:_T,provide:cv,inject:kT};function cv(e,t){return t?e?function(){return Zt(nt(e)?e.call(this,this):e,nt(t)?t.call(this,this):t)}:t:e}function kT(e,t){return ea(ah(e),ah(t))}function ah(e){if(Xe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function On(e,t){return e?[...new Set([].concat(e,t))]:t}function ea(e,t){return e?Zt(Object.create(null),e,t):t}function uv(e,t){return e?Xe(e)&&Xe(t)?[...new Set([...e,...t])]:Zt(Object.create(null),ku(e),ku(t??{})):t}function _T(e,t){if(!e)return t;if(!t)return e;const r=Zt(Object.create(null),e);for(const o in t)r[o]=On(e[o],t[o]);return r}function qb(){return{app:null,config:{isNativeTag:Gy,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 ST=0;function TT(e,t){return function(o,s=null){nt(o)||(o=Zt({},o)),s!=null&&!St(s)&&(s=null);const c=qb(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:ST++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:oC,get config(){return c.config},set config(m){},use(m,...v){return f.has(m)||(m&&nt(m.install)?(f.add(m),m.install(p,...v)):nt(m)&&(f.add(m),m(p,...v))),p},mixin(m){return c.mixins.includes(m)||c.mixins.push(m),p},component(m,v){return v?(c.components[m]=v,p):c.components[m]},directive(m,v){return v?(c.directives[m]=v,p):c.directives[m]},mount(m,v,b){if(!h){const w=p._ceVNode||Le(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(w,m,b),h=!0,p._container=m,m.__vue_app__=p,df(w.component)}},onUnmount(m){d.push(m)},unmount(){h&&(Fr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(m,v){return c.provides[m]=v,p},runWithContext(m){const v=Zo;Zo=p;try{return m()}finally{Zo=v}}};return p}}let Zo=null;function cf(e,t,r=yt){const o=ii(),s=ur(t),c=Pi(t),f=Ub(e,s),d=yb((h,p)=>{let m,v=yt,b;return JS(()=>{const w=e[s];Kn(m,w)&&(m=w,p())}),{get(){return h(),r.get?r.get(m):m},set(w){const O=r.set?r.set(w):w;if(!Kn(O,m)&&!(v!==yt&&Kn(w,v)))return;const A=o.vnode.props;A&&(t in A||s in A||c in A)&&(`onUpdate:${t}`in A||`onUpdate:${s}`in A||`onUpdate:${c}`in A)||(m=w,p()),o.emit(`update:${t}`,O),Kn(w,O)&&Kn(w,v)&&!Kn(O,b)&&p(),v=w,b=O}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||yt:d,done:!1}:{done:!0}}}},d}const Ub=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ur(t)}Modifiers`]||e[`${Pi(t)}Modifiers`];function CT(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||yt;let s=r;const c=t.startsWith("update:"),f=c&&Ub(o,t.slice(7));f&&(f.trim&&(s=r.map(m=>Ft(m)?m.trim():m)),f.number&&(s=r.map(Ju)));let d,h=o[d=eu(t)]||o[d=eu(ur(t))];!h&&c&&(h=o[d=eu(Pi(t))]),h&&Fr(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,Fr(p,e,6,s)}}const ET=new WeakMap;function Vb(e,t,r=!1){const o=r?ET:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!nt(e)){const h=p=>{const m=Vb(p,t,!0);m&&(d=!0,Zt(f,m))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(Xe(c)?c.forEach(h=>f[h]=null):Zt(f,c),St(e)&&o.set(e,f),f)}function uf(e,t){return!e||!Ku(t)?!1:(t=t.slice(2).replace(/Once$/,""),xt(e,t[0].toLowerCase()+t.slice(1))||xt(e,Pi(t))||xt(e,t))}function fv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:m,props:v,data:b,setupState:w,ctx:O,inheritAttrs:A}=e,N=bu(e);let L,R;try{if(r.shapeFlag&4){const C=s||o,I=C;L=$r(p.call(I,C,m,v,w,b,O)),R=d}else{const C=t;L=$r(C.length>1?C(v,{attrs:d,slots:f,emit:h}):C(v,null)),R=t.props?d:LT(d)}}catch(C){ua.length=0,Ua(C,e,1),L=Le(cn)}let z=L;if(R&&A!==!1){const C=Object.keys(R),{shapeFlag:I}=z;C.length&&I&7&&(c&&C.some(Qh)&&(R=MT(R,c)),z=yo(z,R,!1,!0))}return r.dirs&&(z=yo(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(r.dirs):r.dirs),r.transition&&xa(z,r.transition),L=z,bu(N),L}function AT(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(il(s)){if(s.type!==cn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const LT=e=>{let t;for(const r in e)(r==="class"||r==="style"||Ku(r))&&((t||(t={}))[r]=e[r]);return t},MT=(e,t)=>{const r={};for(const o in e)(!Qh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function NT(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?dv(o,f,p):!!f;if(h&8){const m=t.dynamicProps;for(let v=0;v<m.length;v++){const b=m[v];if(f[b]!==o[b]&&!uf(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?dv(o,f,p):!0:!!f;return!1}function dv(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]&&!uf(r,c))return!0}return!1}function hp({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 Gb={},Kb=()=>Object.create(Gb),Xb=e=>Object.getPrototypeOf(e)===Gb;function $T(e,t,r,o=!1){const s={},c=Kb();e.propsDefaults=Object.create(null),Yb(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:lp(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function OT(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=mt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const m=e.vnode.dynamicProps;for(let v=0;v<m.length;v++){let b=m[v];if(uf(e.emitsOptions,b))continue;const w=t[b];if(h)if(xt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const O=ur(b);s[O]=ch(h,d,O,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{Yb(e,t,s,c)&&(p=!0);let m;for(const v in d)(!t||!xt(t,v)&&((m=Pi(v))===v||!xt(t,m)))&&(h?r&&(r[v]!==void 0||r[m]!==void 0)&&(s[v]=ch(h,d,v,void 0,e,!0)):delete s[v]);if(c!==d)for(const v in c)(!t||!xt(t,v))&&(delete c[v],p=!0)}p&&ki(e.attrs,"set","")}function Yb(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(oa(h))continue;const p=t[h];let m;s&&xt(s,m=ur(h))?!c||!c.includes(m)?r[m]=p:(d||(d={}))[m]=p:uf(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=mt(r),p=d||yt;for(let m=0;m<c.length;m++){const v=c[m];r[v]=ch(s,h,v,p[v],e,!xt(p,v))}}return f}function ch(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=xt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&nt(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const m=Ka(s);o=p[r]=h.call(null,t),m()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===Pi(r))&&(o=!0))}return o}const PT=new WeakMap;function Zb(e,t,r=!1){const o=r?PT:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!nt(e)){const m=v=>{h=!0;const[b,w]=Zb(v,t,!0);Zt(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}if(!c&&!h)return St(e)&&o.set(e,js),js;if(Xe(c))for(let m=0;m<c.length;m++){const v=ur(c[m]);hv(v)&&(f[v]=yt)}else if(c)for(const m in c){const v=ur(m);if(hv(v)){const b=c[m],w=f[v]=Xe(b)||nt(b)?{type:b}:Zt({},b),O=w.type;let A=!1,N=!0;if(Xe(O))for(let L=0;L<O.length;++L){const R=O[L],z=nt(R)&&R.name;if(z==="Boolean"){A=!0;break}else z==="String"&&(N=!1)}else A=nt(O)&&O.name==="Boolean";w[0]=A,w[1]=N,(A||xt(w,"default"))&&d.push(v)}}const p=[f,d];return St(e)&&o.set(e,p),p}function hv(e){return e[0]!=="$"&&!oa(e)}const pp=e=>e==="_"||e==="_ctx"||e==="$stable",gp=e=>Xe(e)?e.map($r):[$r(e)],RT=(e,t,r)=>{if(t._n)return t;const o=je((...s)=>gp(t(...s)),r);return o._c=!1,o},Jb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(pp(s))continue;const c=e[s];if(nt(c))t[s]=RT(s,c,o);else if(c!=null){const f=gp(c);t[s]=()=>f}}},Qb=(e,t)=>{const r=gp(t);e.slots.default=()=>r},ew=(e,t,r)=>{for(const o in t)(r||!pp(o))&&(e[o]=t[o])},IT=(e,t,r)=>{const o=e.slots=Kb();if(e.vnode.shapeFlag&32){const s=t._;s?(ew(o,t,r),r&&Zy(o,"_",s,!0)):Jb(t,o)}else t&&Qb(e,t)},DT=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=yt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:ew(s,t,r):(c=!t.$stable,Jb(t,s)),f=t}else t&&(Qb(e,t),f={default:1});if(c)for(const d in s)!pp(d)&&f[d]==null&&delete s[d]},Vn=KT;function zT(e){return FT(e)}function FT(e,t){const r=Qu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:m,parentNode:v,nextSibling:b,setScopeId:w=Jr,insertStaticContent:O}=e,A=(D,j,te,de=null,he=null,ge=null,Ce=void 0,Ee=null,xe=!!j.dynamicChildren)=>{if(D===j)return;D&&!Zr(D,j)&&(de=F(D),Ae(D,he,ge,!0),D=null),j.patchFlag===-2&&(xe=!1,j.dynamicChildren=null);const{type:be,ref:ee,shapeFlag:ue}=j;switch(be){case ff:N(D,j,te,de);break;case cn:L(D,j,te,de);break;case Md:D==null&&R(j,te,de,Ce);break;case tt:P(D,j,te,de,he,ge,Ce,Ee,xe);break;default:ue&1?I(D,j,te,de,he,ge,Ce,Ee,xe):ue&6?$(D,j,te,de,he,ge,Ce,Ee,xe):(ue&64||ue&128)&&be.process(D,j,te,de,he,ge,Ce,Ee,xe,ae)}ee!=null&&he?aa(ee,D&&D.ref,ge,j||D,!j):ee==null&&D&&D.ref!=null&&aa(D.ref,null,ge,D,!0)},N=(D,j,te,de)=>{if(D==null)o(j.el=d(j.children),te,de);else{const he=j.el=D.el;j.children!==D.children&&p(he,j.children)}},L=(D,j,te,de)=>{D==null?o(j.el=h(j.children||""),te,de):j.el=D.el},R=(D,j,te,de)=>{[D.el,D.anchor]=O(D.children,j,te,de,D.el,D.anchor)},z=({el:D,anchor:j},te,de)=>{let he;for(;D&&D!==j;)he=b(D),o(D,te,de),D=he;o(j,te,de)},C=({el:D,anchor:j})=>{let te;for(;D&&D!==j;)te=b(D),s(D),D=te;s(j)},I=(D,j,te,de,he,ge,Ce,Ee,xe)=>{if(j.type==="svg"?Ce="svg":j.type==="math"&&(Ce="mathml"),D==null)W(j,te,de,he,ge,Ce,Ee,xe);else{const be=D.el&&D.el._isVueCE?D.el:null;try{be&&be._beginPatch(),Q(D,j,he,ge,Ce,Ee,xe)}finally{be&&be._endPatch()}}},W=(D,j,te,de,he,ge,Ce,Ee)=>{let xe,be;const{props:ee,shapeFlag:ue,transition:oe,dirs:Re}=D;if(xe=D.el=f(D.type,ge,ee&&ee.is,ee),ue&8?m(xe,D.children):ue&16&&se(D.children,xe,null,de,he,Ld(D,ge),Ce,Ee),Re&&zo(D,null,de,"created"),Z(xe,D,D.scopeId,Ce,de),ee){for(const ct in ee)ct!=="value"&&!oa(ct)&&c(xe,ct,null,ee[ct],ge,de);"value"in ee&&c(xe,"value",null,ee.value,ge),(be=ee.onVnodeBeforeMount)&&Xr(be,de,D)}Re&&zo(D,null,de,"beforeMount");const Qe=HT(he,oe);Qe&&oe.beforeEnter(xe),o(xe,j,te),((be=ee&&ee.onVnodeMounted)||Qe||Re)&&Vn(()=>{be&&Xr(be,de,D),Qe&&oe.enter(xe),Re&&zo(D,null,de,"mounted")},he)},Z=(D,j,te,de,he)=>{if(te&&w(D,te),de)for(let ge=0;ge<de.length;ge++)w(D,de[ge]);if(he){let ge=he.subTree;if(j===ge||iw(ge.type)&&(ge.ssContent===j||ge.ssFallback===j)){const Ce=he.vnode;Z(D,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},se=(D,j,te,de,he,ge,Ce,Ee,xe=0)=>{for(let be=xe;be<D.length;be++){const ee=D[be]=Ee?oo(D[be]):$r(D[be]);A(null,ee,j,te,de,he,ge,Ce,Ee)}},Q=(D,j,te,de,he,ge,Ce)=>{const Ee=j.el=D.el;let{patchFlag:xe,dynamicChildren:be,dirs:ee}=j;xe|=D.patchFlag&16;const ue=D.props||yt,oe=j.props||yt;let Re;if(te&&Fo(te,!1),(Re=oe.onVnodeBeforeUpdate)&&Xr(Re,te,j,D),ee&&zo(j,D,te,"beforeUpdate"),te&&Fo(te,!0),(ue.innerHTML&&oe.innerHTML==null||ue.textContent&&oe.textContent==null)&&m(Ee,""),be?K(D.dynamicChildren,be,Ee,te,de,Ld(j,he),ge):Ce||Y(D,j,Ee,null,te,de,Ld(j,he),ge,!1),xe>0){if(xe&16)G(Ee,ue,oe,te,he);else if(xe&2&&ue.class!==oe.class&&c(Ee,"class",null,oe.class,he),xe&4&&c(Ee,"style",ue.style,oe.style,he),xe&8){const Qe=j.dynamicProps;for(let ct=0;ct<Qe.length;ct++){const dt=Qe[ct],Nt=ue[dt],ut=oe[dt];(ut!==Nt||dt==="value")&&c(Ee,dt,Nt,ut,he,te)}}xe&1&&D.children!==j.children&&m(Ee,j.children)}else!Ce&&be==null&&G(Ee,ue,oe,te,he);((Re=oe.onVnodeUpdated)||ee)&&Vn(()=>{Re&&Xr(Re,te,j,D),ee&&zo(j,D,te,"updated")},de)},K=(D,j,te,de,he,ge,Ce)=>{for(let Ee=0;Ee<j.length;Ee++){const xe=D[Ee],be=j[Ee],ee=xe.el&&(xe.type===tt||!Zr(xe,be)||xe.shapeFlag&198)?v(xe.el):te;A(xe,be,ee,null,de,he,ge,Ce,!0)}},G=(D,j,te,de,he)=>{if(j!==te){if(j!==yt)for(const ge in j)!oa(ge)&&!(ge in te)&&c(D,ge,j[ge],null,he,de);for(const ge in te){if(oa(ge))continue;const Ce=te[ge],Ee=j[ge];Ce!==Ee&&ge!=="value"&&c(D,ge,Ee,Ce,he,de)}"value"in te&&c(D,"value",j.value,te.value,he)}},P=(D,j,te,de,he,ge,Ce,Ee,xe)=>{const be=j.el=D?D.el:d(""),ee=j.anchor=D?D.anchor:d("");let{patchFlag:ue,dynamicChildren:oe,slotScopeIds:Re}=j;Re&&(Ee=Ee?Ee.concat(Re):Re),D==null?(o(be,te,de),o(ee,te,de),se(j.children||[],te,ee,he,ge,Ce,Ee,xe)):ue>0&&ue&64&&oe&&D.dynamicChildren&&D.dynamicChildren.length===oe.length?(K(D.dynamicChildren,oe,te,he,ge,Ce,Ee),(j.key!=null||he&&j===he.subTree)&&tw(D,j,!0)):Y(D,j,te,ee,he,ge,Ce,Ee,xe)},$=(D,j,te,de,he,ge,Ce,Ee,xe)=>{j.slotScopeIds=Ee,D==null?j.shapeFlag&512?he.ctx.activate(j,te,de,Ce,xe):S(j,te,de,he,ge,Ce,xe):k(D,j,xe)},S=(D,j,te,de,he,ge,Ce)=>{const Ee=D.component=QT(D,de,he);if(lf(D)&&(Ee.ctx.renderer=ae),eC(Ee,!1,Ce),Ee.asyncDep){if(he&&he.registerDep(Ee,M,Ce),!D.el){const xe=Ee.subTree=Le(cn);L(null,xe,j,te),D.placeholder=xe.el}}else M(Ee,D,j,te,he,ge,Ce)},k=(D,j,te)=>{const de=j.component=D.component;if(NT(D,j,te))if(de.asyncDep&&!de.asyncResolved){B(de,j,te);return}else de.next=j,de.update();else j.el=D.el,de.vnode=j},M=(D,j,te,de,he,ge,Ce)=>{const Ee=()=>{if(D.isMounted){let{next:ue,bu:oe,u:Re,parent:Qe,vnode:ct}=D;{const qt=nw(D);if(qt){ue&&(ue.el=ct.el,B(D,ue,Ce)),qt.asyncDep.then(()=>{D.isUnmounted||Ee()});return}}let dt=ue,Nt;Fo(D,!1),ue?(ue.el=ct.el,B(D,ue,Ce)):ue=ct,oe&&tu(oe),(Nt=ue.props&&ue.props.onVnodeBeforeUpdate)&&Xr(Nt,Qe,ue,ct),Fo(D,!0);const ut=fv(D),Jt=D.subTree;D.subTree=ut,A(Jt,ut,v(Jt.el),F(Jt),D,he,ge),ue.el=ut.el,dt===null&&hp(D,ut.el),Re&&Vn(Re,he),(Nt=ue.props&&ue.props.onVnodeUpdated)&&Vn(()=>Xr(Nt,Qe,ue,ct),he)}else{let ue;const{el:oe,props:Re}=j,{bm:Qe,m:ct,parent:dt,root:Nt,type:ut}=D,Jt=Us(j);Fo(D,!1),Qe&&tu(Qe),!Jt&&(ue=Re&&Re.onVnodeBeforeMount)&&Xr(ue,dt,j),Fo(D,!0);{Nt.ce&&Nt.ce._def.shadowRoot!==!1&&Nt.ce._injectChildStyle(ut);const qt=D.subTree=fv(D);A(null,qt,te,de,D,he,ge),j.el=qt.el}if(ct&&Vn(ct,he),!Jt&&(ue=Re&&Re.onVnodeMounted)){const qt=j;Vn(()=>Xr(ue,dt,qt),he)}(j.shapeFlag&256||dt&&Us(dt.vnode)&&dt.vnode.shapeFlag&256)&&D.a&&Vn(D.a,he),D.isMounted=!0,j=te=de=null}};D.scope.on();const xe=D.effect=new nb(Ee);D.scope.off();const be=D.update=xe.run.bind(xe),ee=D.job=xe.runIfDirty.bind(xe);ee.i=D,ee.id=D.uid,xe.scheduler=()=>cp(ee),Fo(D,!0),be()},B=(D,j,te)=>{j.component=D;const de=D.vnode.props;D.vnode=j,D.next=null,OT(D,j.props,de,te),DT(D,j.children,te),Li(),iv(D),Mi()},Y=(D,j,te,de,he,ge,Ce,Ee,xe=!1)=>{const be=D&&D.children,ee=D?D.shapeFlag:0,ue=j.children,{patchFlag:oe,shapeFlag:Re}=j;if(oe>0){if(oe&128){_e(be,ue,te,de,he,ge,Ce,Ee,xe);return}else if(oe&256){ve(be,ue,te,de,he,ge,Ce,Ee,xe);return}}Re&8?(ee&16&&Pe(be,he,ge),ue!==be&&m(te,ue)):ee&16?Re&16?_e(be,ue,te,de,he,ge,Ce,Ee,xe):Pe(be,he,ge,!0):(ee&8&&m(te,""),Re&16&&se(ue,te,de,he,ge,Ce,Ee,xe))},ve=(D,j,te,de,he,ge,Ce,Ee,xe)=>{D=D||js,j=j||js;const be=D.length,ee=j.length,ue=Math.min(be,ee);let oe;for(oe=0;oe<ue;oe++){const Re=j[oe]=xe?oo(j[oe]):$r(j[oe]);A(D[oe],Re,te,null,he,ge,Ce,Ee,xe)}be>ee?Pe(D,he,ge,!0,!1,ue):se(j,te,de,he,ge,Ce,Ee,xe,ue)},_e=(D,j,te,de,he,ge,Ce,Ee,xe)=>{let be=0;const ee=j.length;let ue=D.length-1,oe=ee-1;for(;be<=ue&&be<=oe;){const Re=D[be],Qe=j[be]=xe?oo(j[be]):$r(j[be]);if(Zr(Re,Qe))A(Re,Qe,te,null,he,ge,Ce,Ee,xe);else break;be++}for(;be<=ue&&be<=oe;){const Re=D[ue],Qe=j[oe]=xe?oo(j[oe]):$r(j[oe]);if(Zr(Re,Qe))A(Re,Qe,te,null,he,ge,Ce,Ee,xe);else break;ue--,oe--}if(be>ue){if(be<=oe){const Re=oe+1,Qe=Re<ee?j[Re].el:de;for(;be<=oe;)A(null,j[be]=xe?oo(j[be]):$r(j[be]),te,Qe,he,ge,Ce,Ee,xe),be++}}else if(be>oe)for(;be<=ue;)Ae(D[be],he,ge,!0),be++;else{const Re=be,Qe=be,ct=new Map;for(be=Qe;be<=oe;be++){const Ht=j[be]=xe?oo(j[be]):$r(j[be]);Ht.key!=null&&ct.set(Ht.key,be)}let dt,Nt=0;const ut=oe-Qe+1;let Jt=!1,qt=0;const Bn=new Array(ut);for(be=0;be<ut;be++)Bn[be]=0;for(be=Re;be<=ue;be++){const Ht=D[be];if(Nt>=ut){Ae(Ht,he,ge,!0);continue}let jn;if(Ht.key!=null)jn=ct.get(Ht.key);else for(dt=Qe;dt<=oe;dt++)if(Bn[dt-Qe]===0&&Zr(Ht,j[dt])){jn=dt;break}jn===void 0?Ae(Ht,he,ge,!0):(Bn[jn-Qe]=be+1,jn>=qt?qt=jn:Jt=!0,A(Ht,j[jn],te,null,he,ge,Ce,Ee,xe),Nt++)}const Wr=Jt?BT(Bn):js;for(dt=Wr.length-1,be=ut-1;be>=0;be--){const Ht=Qe+be,jn=j[Ht],at=j[Ht+1],Co=Ht+1<ee?at.el||rw(at):de;Bn[be]===0?A(null,jn,te,Co,he,ge,Ce,Ee,xe):Jt&&(dt<0||be!==Wr[dt]?Be(jn,te,Co,2):dt--)}}},Be=(D,j,te,de,he=null)=>{const{el:ge,type:Ce,transition:Ee,children:xe,shapeFlag:be}=D;if(be&6){Be(D.component.subTree,j,te,de);return}if(be&128){D.suspense.move(j,te,de);return}if(be&64){Ce.move(D,j,te,ae);return}if(Ce===tt){o(ge,j,te);for(let ue=0;ue<xe.length;ue++)Be(xe[ue],j,te,de);o(D.anchor,j,te);return}if(Ce===Md){z(D,j,te);return}if(de!==2&&be&1&&Ee)if(de===0)Ee.beforeEnter(ge),o(ge,j,te),Vn(()=>Ee.enter(ge),he);else{const{leave:ue,delayLeave:oe,afterLeave:Re}=Ee,Qe=()=>{D.ctx.isUnmounted?s(ge):o(ge,j,te)},ct=()=>{ge._isLeaving&&ge[xi](!0),ue(ge,()=>{Qe(),Re&&Re()})};oe?oe(ge,Qe,ct):ct()}else o(ge,j,te)},Ae=(D,j,te,de=!1,he=!1)=>{const{type:ge,props:Ce,ref:Ee,children:xe,dynamicChildren:be,shapeFlag:ee,patchFlag:ue,dirs:oe,cacheIndex:Re}=D;if(ue===-2&&(he=!1),Ee!=null&&(Li(),aa(Ee,null,te,D,!0),Mi()),Re!=null&&(j.renderCache[Re]=void 0),ee&256){j.ctx.deactivate(D);return}const Qe=ee&1&&oe,ct=!Us(D);let dt;if(ct&&(dt=Ce&&Ce.onVnodeBeforeUnmount)&&Xr(dt,j,D),ee&6)He(D.component,te,de);else{if(ee&128){D.suspense.unmount(te,de);return}Qe&&zo(D,null,j,"beforeUnmount"),ee&64?D.type.remove(D,j,te,ae,de):be&&!be.hasOnce&&(ge!==tt||ue>0&&ue&64)?Pe(be,j,te,!1,!0):(ge===tt&&ue&384||!he&&ee&16)&&Pe(xe,j,te),de&&Ke(D)}(ct&&(dt=Ce&&Ce.onVnodeUnmounted)||Qe)&&Vn(()=>{dt&&Xr(dt,j,D),Qe&&zo(D,null,j,"unmounted")},te)},Ke=D=>{const{type:j,el:te,anchor:de,transition:he}=D;if(j===tt){Ue(te,de);return}if(j===Md){C(D);return}const ge=()=>{s(te),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(D.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ee}=he,xe=()=>Ce(te,ge);Ee?Ee(D.el,ge,xe):xe()}else ge()},Ue=(D,j)=>{let te;for(;D!==j;)te=b(D),s(D),D=te;s(j)},He=(D,j,te)=>{const{bum:de,scope:he,job:ge,subTree:Ce,um:Ee,m:xe,a:be}=D;pv(xe),pv(be),de&&tu(de),he.stop(),ge&&(ge.flags|=8,Ae(Ce,D,j,te)),Ee&&Vn(Ee,j),Vn(()=>{D.isUnmounted=!0},j)},Pe=(D,j,te,de=!1,he=!1,ge=0)=>{for(let Ce=ge;Ce<D.length;Ce++)Ae(D[Ce],j,te,de,he)},F=D=>{if(D.shapeFlag&6)return F(D.component.subTree);if(D.shapeFlag&128)return D.suspense.next();const j=b(D.anchor||D.el),te=j&&j[eT];return te?b(te):j};let J=!1;const ie=(D,j,te)=>{let de;D==null?j._vnode&&(Ae(j._vnode,null,null,!0),de=j._vnode.component):A(j._vnode||null,D,j,null,null,null,te),j._vnode=D,J||(J=!0,iv(de),kb(),J=!1)},ae={p:A,um:Ae,m:Be,r:Ke,mt:S,mc:se,pc:Y,pbc:K,n:F,o:e};return{render:ie,hydrate:void 0,createApp:TT(ie)}}function Ld({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 Fo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function HT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function tw(e,t,r=!1){const o=e.children,s=t.children;if(Xe(o)&&Xe(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]=oo(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&tw(f,d)),d.type===ff&&(d.patchFlag!==-1?d.el=f.el:d.__elIndex=c+(e.type===tt?1:0)),d.type===cn&&!d.el&&(d.el=f.el)}}function BT(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 nw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nw(t)}function pv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function rw(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?rw(t.subTree):null}const iw=e=>e.__isSuspense;let uh=0;const jT={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)qT(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}UT(e,t,r,o,s,f,d,h,p)}},hydrate:VT,normalize:GT},WT=jT;function _a(e,t){const r=e.props&&e.props[t];nt(r)&&r()}function qT(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:m}}=h,v=m("div"),b=e.suspense=ow(e,s,o,t,v,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,v,null,o,b,c,f),b.deps>0?(_a(e,"onPending"),_a(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Vs(b,e.ssFallback)):b.resolve(!1,!0)}function UT(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:m}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:O,pendingBranch:A,isInFallback:N,isHydrating:L}=v;if(A)v.pendingBranch=b,Zr(A,b)?(h(A,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():N&&(L||(h(O,w,r,o,s,null,c,f,d),Vs(v,w)))):(v.pendingId=uh++,L?(v.isHydrating=!1,v.activeBranch=A):p(A,s,v),v.deps=0,v.effects.length=0,v.hiddenContainer=m("div"),N?(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():(h(O,w,r,o,s,null,c,f,d),Vs(v,w))):O&&Zr(O,b)?(h(O,b,r,o,s,v,c,f,d),v.resolve(!0)):(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0&&v.resolve()));else if(O&&Zr(O,b))h(O,b,r,o,s,v,c,f,d),Vs(v,b);else if(_a(t,"onPending"),v.pendingBranch=b,b.shapeFlag&512?v.pendingId=b.component.suspenseId:v.pendingId=uh++,h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0)v.resolve();else{const{timeout:R,pendingId:z}=v;R>0?setTimeout(()=>{v.pendingId===z&&v.fallback(w)},R):R===0&&v.fallback(w)}}function ow(e,t,r,o,s,c,f,d,h,p,m=!1){const{p:v,m:b,um:w,n:O,o:{parentNode:A,remove:N}}=p;let L;const R=XT(e);R&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const z=e.props?Jy(e.props.timeout):void 0,C=c,I={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:uh++,timeout:typeof z=="number"?z:-1,activeBranch:null,pendingBranch:null,isInFallback:!m,isHydrating:m,isUnmounted:!1,effects:[],resolve(W=!1,Z=!1){const{vnode:se,activeBranch:Q,pendingBranch:K,pendingId:G,effects:P,parentComponent:$,container:S,isInFallback:k}=I;let M=!1;I.isHydrating?I.isHydrating=!1:W||(M=Q&&K.transition&&K.transition.mode==="out-in",M&&(Q.transition.afterLeave=()=>{G===I.pendingId&&(b(K,S,c===C?O(Q):c,0),ih(P),k&&se.ssFallback&&(se.ssFallback.el=null))}),Q&&(A(Q.el)===S&&(c=O(Q)),w(Q,$,I,!0),!M&&k&&se.ssFallback&&Vn(()=>se.ssFallback.el=null,I)),M||b(K,S,c,0)),Vs(I,K),I.pendingBranch=null,I.isInFallback=!1;let B=I.parent,Y=!1;for(;B;){if(B.pendingBranch){B.effects.push(...P),Y=!0;break}B=B.parent}!Y&&!M&&ih(P),I.effects=[],R&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!Z&&t.resolve()),_a(se,"onResolve")},fallback(W){if(!I.pendingBranch)return;const{vnode:Z,activeBranch:se,parentComponent:Q,container:K,namespace:G}=I;_a(Z,"onFallback");const P=O(se),$=()=>{I.isInFallback&&(v(null,W,K,P,Q,null,G,d,h),Vs(I,W))},S=W.transition&&W.transition.mode==="out-in";S&&(se.transition.afterLeave=$),I.isInFallback=!0,w(se,Q,null,!0),S||$()},move(W,Z,se){I.activeBranch&&b(I.activeBranch,W,Z,se),I.container=W},next(){return I.activeBranch&&O(I.activeBranch)},registerDep(W,Z,se){const Q=!!I.pendingBranch;Q&&I.deps++;const K=W.vnode.el;W.asyncDep.catch(G=>{Ua(G,W,0)}).then(G=>{if(W.isUnmounted||I.isUnmounted||I.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:P}=W;dh(W,G),K&&(P.el=K);const $=!K&&W.subTree.el;Z(W,P,A(K||W.subTree.el),K?null:O(W.subTree),I,f,se),$&&(P.placeholder=null,N($)),hp(W,P.el),Q&&--I.deps===0&&I.resolve()})},unmount(W,Z){I.isUnmounted=!0,I.activeBranch&&w(I.activeBranch,r,W,Z),I.pendingBranch&&w(I.pendingBranch,r,W,Z)}};return I}function VT(e,t,r,o,s,c,f,d,h){const p=t.suspense=ow(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),m=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),m}function GT(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=gv(o?r.default:r),e.ssFallback=o?gv(r.fallback):Le(cn)}function gv(e){let t;if(nt(e)){const r=nl&&e._c;r&&(e._d=!1,ne()),e=e(),r&&(e._d=!0,t=Yn,sw())}return Xe(e)&&(e=AT(e)),e=$r(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function KT(e,t){t&&t.pendingBranch?Xe(e)?t.effects.push(...e):t.effects.push(e):ih(e)}function Vs(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,hp(o,s))}function XT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const tt=Symbol.for("v-fgt"),ff=Symbol.for("v-txt"),cn=Symbol.for("v-cmt"),Md=Symbol.for("v-stc"),ua=[];let Yn=null;function ne(e=!1){ua.push(Yn=e?null:[])}function sw(){ua.pop(),Yn=ua[ua.length-1]||null}let nl=1;function rl(e,t=!1){nl+=e,e<0&&Yn&&t&&(Yn.hasOnce=!0)}function lw(e){return e.dynamicChildren=nl>0?Yn||js:null,sw(),nl>0&&Yn&&Yn.push(e),e}function me(e,t,r,o,s,c){return lw(X(e,t,r,o,s,c,!0))}function qe(e,t,r,o,s){return lw(Le(e,t,r,o,s,!0))}function il(e){return e?e.__v_isVNode===!0:!1}function Zr(e,t){return e.type===t.type&&e.key===t.key}const aw=({key:e})=>e??null,nu=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ft(e)||Mt(e)||nt(e)?{i:vn,r:e,k:t,f:!!r}:e:null);function X(e,t=null,r=null,o=0,s=null,c=e===tt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&aw(t),ref:t&&nu(t),scopeId:of,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:vn};return d?(mp(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Ft(r)?8:16),nl>0&&!f&&Yn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Yn.push(h),h}const Le=YT;function YT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===zb)&&(e=cn),il(e)){const d=yo(e,t,!0);return r&&mp(d,r),nl>0&&!c&&Yn&&(d.shapeFlag&6?Yn[Yn.indexOf(e)]=d:Yn.push(d)),d.patchFlag=-2,d}if(iC(e)&&(e=e.__vccOpts),t){t=cw(t);let{class:d,style:h}=t;d&&!Ft(d)&&(t.class=it(d)),St(h)&&(nf(h)&&!Xe(h)&&(h=Zt({},h)),t.style=Ot(h))}const f=Ft(e)?1:iw(e)?128:Mb(e)?64:St(e)?4:nt(e)?2:0;return X(e,t,r,o,s,f,c,!0)}function cw(e){return e?nf(e)||Xb(e)?Zt({},e):e:null}function yo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?Qr(s||{},t):s,m={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&aw(p),ref:t&&t.ref?r&&c?Xe(c)?c.concat(nu(t)):[c,nu(t)]:nu(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!==tt?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&&yo(e.ssContent),ssFallback:e.ssFallback&&yo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&xa(m,h.clone(m)),m}function Je(e=" ",t=0){return Le(ff,null,e,t)}function ze(e="",t=!1){return t?(ne(),qe(cn,null,e)):Le(cn,null,e)}function $r(e){return e==null||typeof e=="boolean"?Le(cn):Xe(e)?Le(tt,null,e.slice()):il(e)?oo(e):Le(ff,null,String(e))}function oo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yo(e)}function mp(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Xe(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),mp(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Xb(t)?t._ctx=vn:s===3&&vn&&(vn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else nt(t)?(t={default:t,_ctx:vn},r=32):(t=String(t),o&64?(r=16,t=[Je(t)]):r=8);e.children=t,e.shapeFlag|=r}function Qr(...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=it([t.class,o.class]));else if(s==="style")t.style=Ot([t.style,o.style]);else if(Ku(s)){const c=t[s],f=o[s];f&&c!==f&&!(Xe(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Xr(e,t,r,o=null){Fr(e,t,7,[r,o])}const ZT=qb();let JT=0;function QT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||ZT,c={uid:JT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new mS(!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:Zb(o,s),emitsOptions:Vb(o,s),emit:null,emitted:null,propsDefaults:yt,inheritAttrs:o.inheritAttrs,ctx:yt,data:yt,props:yt,attrs:yt,slots:yt,refs:yt,setupState:yt,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=CT.bind(null,c),e.ce&&e.ce(c),c}let Sn=null;const ii=()=>Sn||vn;let Su,fh;{const e=Qu(),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)}};Su=t("__VUE_INSTANCE_SETTERS__",r=>Sn=r),fh=t("__VUE_SSR_SETTERS__",r=>Sa=r)}const Ka=e=>{const t=Sn;return Su(e),e.scope.on(),()=>{e.scope.off(),Su(t)}},mv=()=>{Sn&&Sn.scope.off(),Su(null)};function uw(e){return e.vnode.shapeFlag&4}let Sa=!1;function eC(e,t=!1,r=!1){t&&fh(t);const{props:o,children:s}=e.vnode,c=uw(e);$T(e,o,c,t),IT(e,s,r||t);const f=c?tC(e,t):void 0;return t&&fh(!1),f}function tC(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vT);const{setup:o}=r;if(o){Li();const s=e.setupContext=o.length>1?dw(e):null,c=Ka(e),f=qa(o,e,0,[e.props,s]),d=Ky(f);if(Mi(),c(),(d||e.sp)&&!Us(e)&&Ib(e),d){if(f.then(mv,mv),t)return f.then(h=>{dh(e,h)}).catch(h=>{Ua(h,e,0)});e.asyncDep=f}else dh(e,f)}else fw(e)}function dh(e,t,r){nt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=vb(t)),fw(e)}function fw(e,t,r){const o=e.type;e.render||(e.render=o.render||Jr);{const s=Ka(e);Li();try{bT(e)}finally{Mi(),s()}}}const nC={get(e,t){return _n(e,"get",""),e[t]}};function dw(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,nC),slots:e.slots,emit:e.emit,expose:t}}function df(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vb(rf(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in ca)return ca[r](e)},has(t,r){return r in t||r in ca}})):e.proxy}function rC(e,t=!0){return nt(e)?e.displayName||e.name:e.name||t&&e.__name}function iC(e){return nt(e)&&"__vccOpts"in e}const ke=(e,t)=>US(e,t,Sa);function Xa(e,t,r){try{rl(-1);const o=arguments.length;return o===2?St(t)&&!Xe(t)?il(t)?Le(e,null,[t]):Le(e,t):Le(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&il(r)&&(r=[r]),Le(e,t,r))}finally{rl(1)}}const oC="3.5.27";/**
14
+ * @vue/runtime-dom v3.5.27
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let hh;const vv=typeof window<"u"&&window.trustedTypes;if(vv)try{hh=vv.createPolicy("vue",{createHTML:e=>e})}catch{}const hw=hh?e=>hh.createHTML(e):e=>e,sC="http://www.w3.org/2000/svg",lC="http://www.w3.org/1998/Math/MathML",bi=typeof document<"u"?document:null,yv=bi&&bi.createElement("template"),aC={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"?bi.createElementNS(sC,e):t==="mathml"?bi.createElementNS(lC,e):r?bi.createElement(e,{is:r}):bi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>bi.createTextNode(e),createComment:e=>bi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>bi.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{yv.innerHTML=hw(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=yv.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]}},Zi="transition",Kl="animation",Ta=Symbol("_vtc"),pw={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},cC=Zt({},Nb,pw),uC=e=>(e.displayName="Transition",e.props=cC,e),fC=uC((e,{slots:t})=>Xa(rT,dC(e),t)),Ho=(e,t=[])=>{Xe(e)?e.forEach(r=>r(...t)):e&&e(...t)},bv=e=>e?Xe(e)?e.some(t=>t.length>1):e.length>1:!1;function dC(e){const t={};for(const P in e)P in pw||(t[P]=e[P]);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:m=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,O=hC(s),A=O&&O[0],N=O&&O[1],{onBeforeEnter:L,onEnter:R,onEnterCancelled:z,onLeave:C,onLeaveCancelled:I,onBeforeAppear:W=L,onAppear:Z=R,onAppearCancelled:se=z}=t,Q=(P,$,S,k)=>{P._enterCancelled=k,Bo(P,$?m:d),Bo(P,$?p:f),S&&S()},K=(P,$)=>{P._isLeaving=!1,Bo(P,v),Bo(P,w),Bo(P,b),$&&$()},G=P=>($,S)=>{const k=P?Z:R,M=()=>Q($,P,S);Ho(k,[$,M]),wv(()=>{Bo($,P?h:c),gi($,P?m:d),bv(k)||xv($,o,A,M)})};return Zt(t,{onBeforeEnter(P){Ho(L,[P]),gi(P,c),gi(P,f)},onBeforeAppear(P){Ho(W,[P]),gi(P,h),gi(P,p)},onEnter:G(!1),onAppear:G(!0),onLeave(P,$){P._isLeaving=!0;const S=()=>K(P,$);gi(P,v),P._enterCancelled?(gi(P,b),Sv(P)):(Sv(P),gi(P,b)),wv(()=>{P._isLeaving&&(Bo(P,v),gi(P,w),bv(C)||xv(P,o,N,S))}),Ho(C,[P,S])},onEnterCancelled(P){Q(P,!1,void 0,!0),Ho(z,[P])},onAppearCancelled(P){Q(P,!0,void 0,!0),Ho(se,[P])},onLeaveCancelled(P){K(P),Ho(I,[P])}})}function hC(e){if(e==null)return null;if(St(e))return[Nd(e.enter),Nd(e.leave)];{const t=Nd(e);return[t,t]}}function Nd(e){return Jy(e)}function gi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Ta]||(e[Ta]=new Set)).add(t)}function Bo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Ta];r&&(r.delete(t),r.size||(e[Ta]=void 0))}function wv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pC=0;function xv(e,t,r,o){const s=e._endId=++pC,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=gC(e,t);if(!f)return o();const p=f+"end";let m=0;const v=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++m>=h&&v()};setTimeout(()=>{m<h&&v()},d+1),e.addEventListener(p,b)}function gC(e,t){const r=window.getComputedStyle(e),o=O=>(r[O]||"").split(", "),s=o(`${Zi}Delay`),c=o(`${Zi}Duration`),f=kv(s,c),d=o(`${Kl}Delay`),h=o(`${Kl}Duration`),p=kv(d,h);let m=null,v=0,b=0;t===Zi?f>0&&(m=Zi,v=f,b=c.length):t===Kl?p>0&&(m=Kl,v=p,b=h.length):(v=Math.max(f,p),m=v>0?f>p?Zi:Kl:null,b=m?m===Zi?c.length:h.length:0);const w=m===Zi&&/\b(?:transform|all)(?:,|$)/.test(o(`${Zi}Property`).toString());return{type:m,timeout:v,propCount:b,hasTransform:w}}function kv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>_v(r)+_v(e[o])))}function _v(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sv(e){return(e?e.ownerDocument:document).body.offsetHeight}function mC(e,t,r){const o=e[Ta];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Tu=Symbol("_vod"),gw=Symbol("_vsh"),fo={name:"show",beforeMount(e,{value:t},{transition:r}){e[Tu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Xl(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),Xl(e,!0),o.enter(e)):o.leave(e,()=>{Xl(e,!1)}):Xl(e,t))},beforeUnmount(e,{value:t}){Xl(e,t)}};function Xl(e,t){e.style.display=t?e[Tu]:"none",e[gw]=!t}const vC=Symbol(""),yC=/(?:^|;)\s*display\s*:/;function bC(e,t,r){const o=e.style,s=Ft(r);let c=!1;if(r&&!s){if(t)if(Ft(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&ru(o,d,"")}else for(const f in t)r[f]==null&&ru(o,f,"");for(const f in r)f==="display"&&(c=!0),ru(o,f,r[f])}else if(s){if(t!==r){const f=o[vC];f&&(r+=";"+f),o.cssText=r,c=yC.test(r)}}else t&&e.removeAttribute("style");Tu in e&&(e[Tu]=c?o.display:"",e[gw]&&(o.display="none"))}const Tv=/\s*!important$/;function ru(e,t,r){if(Xe(r))r.forEach(o=>ru(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=wC(e,t);Tv.test(r)?e.setProperty(Pi(o),r.replace(Tv,""),"important"):e[o]=r}}const Cv=["Webkit","Moz","ms"],$d={};function wC(e,t){const r=$d[t];if(r)return r;let o=ur(t);if(o!=="filter"&&o in e)return $d[t]=o;o=Zu(o);for(let s=0;s<Cv.length;s++){const c=Cv[s]+o;if(c in e)return $d[t]=c}return t}const Ev="http://www.w3.org/1999/xlink";function Av(e,t,r,o,s,c=pS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Ev,t.slice(6,t.length)):e.setAttributeNS(Ev,t,r):r==null||c&&!Qy(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Dr(r)?String(r):r)}function Lv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?hw(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=Qy(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 uo(e,t,r,o){e.addEventListener(t,r,o)}function xC(e,t,r,o){e.removeEventListener(t,r,o)}const Mv=Symbol("_vei");function kC(e,t,r,o,s=null){const c=e[Mv]||(e[Mv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=_C(t);if(o){const p=c[t]=CC(o,s);uo(e,d,p,h)}else f&&(xC(e,d,f,h),c[t]=void 0)}}const Nv=/(?:Once|Passive|Capture)$/;function _C(e){let t;if(Nv.test(e)){t={};let o;for(;o=e.match(Nv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pi(e.slice(2)),t]}let Od=0;const SC=Promise.resolve(),TC=()=>Od||(SC.then(()=>Od=0),Od=Date.now());function CC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Fr(EC(o,r.value),t,5,[o])};return r.value=e,r.attached=TC(),r}function EC(e,t){if(Xe(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 $v=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,AC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?mC(e,o,f):t==="style"?bC(e,r,o):Ku(t)?Qh(t)||kC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):LC(e,t,o,f))?(Lv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Av(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ft(o))?Lv(e,ur(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Av(e,t,o,f))};function LC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&$v(t)&&nt(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 $v(t)&&Ft(r)?!1:t in e}const ol=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Xe(t)?r=>tu(t,r):t};function MC(e){e.target.composing=!0}function Ov(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ei=Symbol("_assign");function Pv(e,t,r){return t&&(e=e.trim()),r&&(e=Ju(e)),e}const mw={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Ei]=ol(s);const c=o||s.props&&s.props.type==="number";uo(e,t?"change":"input",f=>{f.target.composing||e[Ei](Pv(e.value,r,c))}),(r||c)&&uo(e,"change",()=>{e.value=Pv(e.value,r,c)}),t||(uo(e,"compositionstart",MC),uo(e,"compositionend",Ov),uo(e,"change",Ov))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Ei]=ol(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Ju(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))}},vw={deep:!0,created(e,t,r){e[Ei]=ol(r),uo(e,"change",()=>{const o=e._modelValue,s=Ca(e),c=e.checked,f=e[Ei];if(Xe(o)){const d=tp(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(pl(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(yw(e,c))})},mounted:Rv,beforeUpdate(e,t,r){e[Ei]=ol(r),Rv(e,t,r)}};function Rv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Xe(t))s=tp(t,o.props.value)>-1;else if(pl(t))s=t.has(o.props.value);else{if(t===r)return;s=Wa(t,yw(e,!0))}e.checked!==s&&(e.checked=s)}const Iv={deep:!0,created(e,{value:t,modifiers:{number:r}},o){const s=pl(t);uo(e,"change",()=>{const c=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>r?Ju(Ca(f)):Ca(f));e[Ei](e.multiple?s?new Set(c):c:c[0]),e._assigning=!0,Ct(()=>{e._assigning=!1})}),e[Ei]=ol(o)},mounted(e,{value:t}){Dv(e,t)},beforeUpdate(e,t,r){e[Ei]=ol(r)},updated(e,{value:t}){e._assigning||Dv(e,t)}};function Dv(e,t){const r=e.multiple,o=Xe(t);if(!(r&&!o&&!pl(t))){for(let s=0,c=e.options.length;s<c;s++){const f=e.options[s],d=Ca(f);if(r)if(o){const h=typeof d;h==="string"||h==="number"?f.selected=t.some(p=>String(p)===String(d)):f.selected=tp(t,d)>-1}else f.selected=t.has(d);else if(Wa(Ca(f),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ca(e){return"_value"in e?e._value:e.value}function yw(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const NC=["ctrl","shift","alt","meta"],$C={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)=>NC.some(r=>e[`${r}Key`]&&!t.includes(r))},iu=(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=$C[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},OC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ph=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Pi(s.key);if(t.some(f=>f===c||OC[f]===c))return e(s)}))},PC=Zt({patchProp:AC},aC);let zv;function RC(){return zv||(zv=zT(PC))}const bw=((...e)=>{const t=RC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=DC(o);if(!s)return;const c=t._component;!nt(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,IC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function IC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function DC(e){return Ft(e)?document.querySelector(e):e}const Di=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},zC={};function FC(e,t){const r=es("RouterView");return ne(),qe(r)}const HC=Di(zC,[["render",FC]]),BC=["top","right","bottom","left"],Fv=["start","end"],Hv=BC.reduce((e,t)=>e.concat(t,t+"-"+Fv[0],t+"-"+Fv[1]),[]),Ea=Math.min,qo=Math.max,jC={left:"right",right:"left",bottom:"top",top:"bottom"},WC={start:"end",end:"start"};function gh(e,t,r){return qo(e,Ea(t,r))}function ns(e,t){return typeof e=="function"?e(t):e}function ri(e){return e.split("-")[0]}function Ir(e){return e.split("-")[1]}function ww(e){return e==="x"?"y":"x"}function vp(e){return e==="y"?"height":"width"}const qC=new Set(["top","bottom"]);function Si(e){return qC.has(ri(e))?"y":"x"}function yp(e){return ww(Si(e))}function xw(e,t,r){r===void 0&&(r=!1);const o=Ir(e),s=yp(e),c=vp(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Eu(f)),[f,Eu(f)]}function UC(e){const t=Eu(e);return[Cu(e),t,Cu(t)]}function Cu(e){return e.replace(/start|end/g,t=>WC[t])}const Bv=["left","right"],jv=["right","left"],VC=["top","bottom"],GC=["bottom","top"];function KC(e,t,r){switch(e){case"top":case"bottom":return r?t?jv:Bv:t?Bv:jv;case"left":case"right":return t?VC:GC;default:return[]}}function XC(e,t,r,o){const s=Ir(e);let c=KC(ri(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Cu)))),c}function Eu(e){return e.replace(/left|right|bottom|top/g,t=>jC[t])}function YC(e){return{top:0,right:0,bottom:0,left:0,...e}}function kw(e){return typeof e!="number"?YC(e):{top:e,right:e,bottom:e,left:e}}function fa(e){const{x:t,y:r,width:o,height:s}=e;return{width:o,height:s,top:r,left:t,right:t+o,bottom:r+s,x:t,y:r}}function Wv(e,t,r){let{reference:o,floating:s}=e;const c=Si(t),f=yp(t),d=vp(f),h=ri(t),p=c==="y",m=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:m,y:o.y-s.height};break;case"bottom":w={x:m,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:v};break;case"left":w={x:o.x-s.width,y:v};break;default:w={x:o.x,y:o.y}}switch(Ir(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const ZC=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:m,y:v}=Wv(p,o,h),b=o,w={},O=0;for(let A=0;A<d.length;A++){const{name:N,fn:L}=d[A],{x:R,y:z,data:C,reset:I}=await L({x:m,y:v,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});m=R??m,v=z??v,w={...w,[N]:{...w[N],...C}},I&&O<=50&&(O++,typeof I=="object"&&(I.placement&&(b=I.placement),I.rects&&(p=I.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):I.rects),{x:m,y:v}=Wv(p,b,h)),A=-1)}return{x:m,y:v,placement:b,strategy:s,middlewareData:w}};async function hf(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:m="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=ns(t,e),O=kw(w),N=d[b?v==="floating"?"reference":"floating":v],L=fa(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(N)))==null||r?N:N.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:m,strategy:h})),R=v==="floating"?{x:o,y:s,width:f.floating.width,height:f.floating.height}:f.reference,z=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),C=await(c.isElement==null?void 0:c.isElement(z))?await(c.getScale==null?void 0:c.getScale(z))||{x:1,y:1}:{x:1,y:1},I=fa(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:z,strategy:h}):R);return{top:(L.top-I.top+O.top)/C.y,bottom:(I.bottom-L.bottom+O.bottom)/C.y,left:(L.left-I.left+O.left)/C.x,right:(I.right-L.right+O.right)/C.x}}const JC=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:m=0}=ns(e,t)||{};if(p==null)return{};const v=kw(m),b={x:r,y:o},w=yp(s),O=vp(w),A=await f.getDimensions(p),N=w==="y",L=N?"top":"left",R=N?"bottom":"right",z=N?"clientHeight":"clientWidth",C=c.reference[O]+c.reference[w]-b[w]-c.floating[O],I=b[w]-c.reference[w],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let Z=W?W[z]:0;(!Z||!await(f.isElement==null?void 0:f.isElement(W)))&&(Z=d.floating[z]||c.floating[O]);const se=C/2-I/2,Q=Z/2-A[O]/2-1,K=Ea(v[L],Q),G=Ea(v[R],Q),P=K,$=Z-A[O]-G,S=Z/2-A[O]/2+se,k=gh(P,S,$),M=!h.arrow&&Ir(s)!=null&&S!==k&&c.reference[O]/2-(S<P?K:G)-A[O]/2<0,B=M?S<P?S-P:S-$:0;return{[w]:b[w]+B,data:{[w]:k,centerOffset:S-k-B,...M&&{alignmentOffset:B}},reset:M}}});function QC(e,t,r){return(e?[...r.filter(s=>Ir(s)===e),...r.filter(s=>Ir(s)!==e)]:r.filter(s=>ri(s)===s)).filter(s=>e?Ir(s)===e||(t?Cu(s)!==s:!1):!0)}const eE=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:m=!1,alignment:v,allowedPlacements:b=Hv,autoAlignment:w=!0,...O}=ns(e,t),A=v!==void 0||b===Hv?QC(v||null,w,b):b,N=await hf(t,O),L=((r=f.autoPlacement)==null?void 0:r.index)||0,R=A[L];if(R==null)return{};const z=xw(R,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==R)return{reset:{placement:A[0]}};const C=[N[ri(R)],N[z[0]],N[z[1]]],I=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:C}],W=A[L+1];if(W)return{data:{index:L+1,overflows:I},reset:{placement:W}};const Z=I.map(K=>{const G=Ir(K.placement);return[K.placement,G&&m?K.overflows.slice(0,2).reduce((P,$)=>P+$,0):K.overflows[0],K.overflows]}).sort((K,G)=>K[1]-G[1]),Q=((s=Z.filter(K=>K[2].slice(0,Ir(K[0])?2:3).every(G=>G<=0))[0])==null?void 0:s[0])||Z[0][0];return Q!==d?{data:{index:L+1,overflows:I},reset:{placement:Q}}:{}}}},tE=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:m=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:A=!0,...N}=ns(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=ri(s),R=Si(d),z=ri(d)===d,C=await(h.isRTL==null?void 0:h.isRTL(p.floating)),I=b||(z||!A?[Eu(d)]:UC(d)),W=O!=="none";!b&&W&&I.push(...XC(d,A,O,C));const Z=[d,...I],se=await hf(t,N),Q=[];let K=((o=c.flip)==null?void 0:o.overflows)||[];if(m&&Q.push(se[L]),v){const S=xw(s,f,C);Q.push(se[S[0]],se[S[1]])}if(K=[...K,{placement:s,overflows:Q}],!Q.every(S=>S<=0)){var G,P;const S=(((G=c.flip)==null?void 0:G.index)||0)+1,k=Z[S];if(k&&(!(v==="alignment"?R!==Si(k):!1)||K.every(Y=>Si(Y.placement)===R?Y.overflows[0]>0:!0)))return{data:{index:S,overflows:K},reset:{placement:k}};let M=(P=K.filter(B=>B.overflows[0]<=0).sort((B,Y)=>B.overflows[1]-Y.overflows[1])[0])==null?void 0:P.placement;if(!M)switch(w){case"bestFit":{var $;const B=($=K.filter(Y=>{if(W){const ve=Si(Y.placement);return ve===R||ve==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(ve=>ve>0).reduce((ve,_e)=>ve+_e,0)]).sort((Y,ve)=>Y[1]-ve[1])[0])==null?void 0:$[0];B&&(M=B);break}case"initialPlacement":M=d;break}if(s!==M)return{reset:{placement:M}}}return{}}}},nE=new Set(["left","top"]);async function rE(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=ri(r),d=Ir(r),h=Si(r)==="y",p=nE.has(f)?-1:1,m=c&&h?-1:1,v=ns(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:O}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof O=="number"&&(w=d==="end"?O*-1:O),h?{x:w*m,y:b*p}:{x:b*p,y:w*m}}const iE=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 rE(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}}}}},oE=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:N=>{let{x:L,y:R}=N;return{x:L,y:R}}},...h}=ns(e,t),p={x:r,y:o},m=await hf(t,h),v=Si(ri(s)),b=ww(v);let w=p[b],O=p[v];if(c){const N=b==="y"?"top":"left",L=b==="y"?"bottom":"right",R=w+m[N],z=w-m[L];w=gh(R,w,z)}if(f){const N=v==="y"?"top":"left",L=v==="y"?"bottom":"right",R=O+m[N],z=O-m[L];O=gh(R,O,z)}const A=d.fn({...t,[b]:w,[v]:O});return{...A,data:{x:A.x-r,y:A.y-o,enabled:{[b]:c,[v]:f}}}}}},sE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:s,rects:c,platform:f,elements:d}=t,{apply:h=()=>{},...p}=ns(e,t),m=await hf(t,p),v=ri(s),b=Ir(s),w=Si(s)==="y",{width:O,height:A}=c.floating;let N,L;v==="top"||v==="bottom"?(N=v,L=b===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(L=v,N=b==="end"?"top":"bottom");const R=A-m.top-m.bottom,z=O-m.left-m.right,C=Ea(A-m[N],R),I=Ea(O-m[L],z),W=!t.middlewareData.shift;let Z=C,se=I;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(se=z),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(Z=R),W&&!b){const K=qo(m.left,0),G=qo(m.right,0),P=qo(m.top,0),$=qo(m.bottom,0);w?se=O-2*(K!==0||G!==0?K+G:qo(m.left,m.right)):Z=A-2*(P!==0||$!==0?P+$:qo(m.top,m.bottom))}await h({...t,availableWidth:se,availableHeight:Z});const Q=await f.getDimensions(d.floating);return O!==Q.width||A!==Q.height?{reset:{rects:!0}}:{}}}};function vr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ei(e){return vr(e).getComputedStyle(e)}const qv=Math.min,da=Math.max,Au=Math.round;function _w(e){const t=ei(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 bo(e){return Tw(e)?(e.nodeName||"").toLowerCase():""}let Hc;function Sw(){if(Hc)return Hc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Hc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Hc):navigator.userAgent}function ti(e){return e instanceof vr(e).HTMLElement}function go(e){return e instanceof vr(e).Element}function Tw(e){return e instanceof vr(e).Node}function Uv(e){return typeof ShadowRoot>"u"?!1:e instanceof vr(e).ShadowRoot||e instanceof ShadowRoot}function pf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=ei(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function lE(e){return["table","td","th"].includes(bo(e))}function mh(e){const t=/firefox/i.test(Sw()),r=ei(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 Cw(){return!/^((?!chrome|android).)*safari/i.test(Sw())}function bp(e){return["html","body","#document"].includes(bo(e))}function Ew(e){return go(e)?e:e.contextElement}const Aw={x:1,y:1};function Gs(e){const t=Ew(e);if(!ti(t))return Aw;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=_w(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 Aa(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=Ew(e);let h=Aw;t&&(o?go(o)&&(h=Gs(o)):h=Gs(e));const p=d?vr(d):window,m=!Cw()&&r;let v=(f.left+(m&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(m&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,O=f.height/h.y;if(d){const A=vr(d),N=o&&go(o)?vr(o):o;let L=A.frameElement;for(;L&&o&&N!==A;){const R=Gs(L),z=L.getBoundingClientRect(),C=getComputedStyle(L);z.x+=(L.clientLeft+parseFloat(C.paddingLeft))*R.x,z.y+=(L.clientTop+parseFloat(C.paddingTop))*R.y,v*=R.x,b*=R.y,w*=R.x,O*=R.y,v+=z.x,b+=z.y,L=vr(L).frameElement}}return{width:w,height:O,top:b,right:v+w,bottom:b+O,left:v,x:v,y:b}}function mo(e){return((Tw(e)?e.ownerDocument:e.document)||window.document).documentElement}function gf(e){return go(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lw(e){return Aa(mo(e)).left+gf(e).scrollLeft}function La(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uv(e)&&e.host||mo(e);return Uv(t)?t.host:t}function Mw(e){const t=La(e);return bp(t)?t.ownerDocument.body:ti(t)&&pf(t)?t:Mw(t)}function Lu(e,t){var r;t===void 0&&(t=[]);const o=Mw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=vr(o);return s?t.concat(c,c.visualViewport||[],pf(o)?o:[]):t.concat(o,Lu(o))}function Vv(e,t,r){return t==="viewport"?fa((function(o,s){const c=vr(o),f=mo(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,m=0,v=0;if(d){h=d.width,p=d.height;const b=Cw();(b||!b&&s==="fixed")&&(m=d.offsetLeft,v=d.offsetTop)}return{width:h,height:p,x:m,y:v}})(e,r)):go(t)?fa((function(o,s){const c=Aa(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=ti(o)?Gs(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)):fa((function(o){const s=mo(o),c=gf(o),f=o.ownerDocument.body,d=da(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=da(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Lw(o);const m=-c.scrollTop;return ei(f).direction==="rtl"&&(p+=da(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:m}})(mo(e)))}function Gv(e){return ti(e)&&ei(e).position!=="fixed"?e.offsetParent:null}function Kv(e){const t=vr(e);let r=Gv(e);for(;r&&lE(r)&&ei(r).position==="static";)r=Gv(r);return r&&(bo(r)==="html"||bo(r)==="body"&&ei(r).position==="static"&&!mh(r))?t:r||(function(o){let s=La(o);for(;ti(s)&&!bp(s);){if(mh(s))return s;s=La(s)}return null})(e)||t}function aE(e,t,r){const o=ti(t),s=mo(t),c=Aa(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((bo(t)!=="body"||pf(s))&&(f=gf(t)),ti(t)){const h=Aa(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Lw(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const cE={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,m){const v=m.get(p);if(v)return v;let b=Lu(p).filter((N=>go(N)&&bo(N)!=="body")),w=null;const O=ei(p).position==="fixed";let A=O?La(p):p;for(;go(A)&&!bp(A);){const N=ei(A),L=mh(A);(O?L||w:L||N.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=N:b=b.filter((R=>R!==A)),A=La(A)}return m.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,m)=>{const v=Vv(t,m,s);return p.top=da(v.top,p.top),p.right=qv(v.right,p.right),p.bottom=qv(v.bottom,p.bottom),p.left=da(v.left,p.left),p}),Vv(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=ti(r),c=mo(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")&&((bo(r)!=="body"||pf(c))&&(f=gf(r)),ti(r))){const p=Aa(r);d=Gs(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:go,getDimensions:function(e){return ti(e)?_w(e):e.getBoundingClientRect()},getOffsetParent:Kv,getDocumentElement:mo,getScale:Gs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Kv,c=this.getDimensions;return{reference:aE(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ei(e).direction==="rtl"},uE=(e,t,r)=>{const o=new Map,s={platform:cE,...r},c={...s.platform,_c:o};return ZC(e,t,{...s,platform:c})},vo={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 Ma(e,t){let r=vo.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=vo.themes[r.$extend]||{}:(r=null,o=vo[t]):r=null;while(r);return o}function fE(e){const t=[e];let r=vo.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=vo.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Xv(e){const t=[e];let r=vo.themes[e]||{};do r.$extend?(t.push(r.$extend),r=vo.themes[r.$extend]||{}):r=null;while(r);return t}let Na=!1;if(typeof window<"u"){Na=!1;try{const e=Object.defineProperty({},"passive",{get(){Na=!0}});window.addEventListener("test",null,e)}catch{}}let Nw=!1;typeof window<"u"&&typeof navigator<"u"&&(Nw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const $w=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Yv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Zv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Jv(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Pd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const rr=[];let jo=null;const Qv={};function e0(e){let t=Qv[e];return t||(t=Qv[e]=[]),t}let vh=function(){};typeof window<"u"&&(vh=window.Element);function ht(e){return function(t){return Ma(t.theme,e)}}const Rd="__floating-vue__popper",Ow=()=>et({name:"VPopper",provide(){return{[Rd]:{parentPopper:this}}},inject:{[Rd]:{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:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>$w.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,vh,Boolean],default:ht("container")},boundary:{type:[String,vh],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("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[Rd])==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(iE({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(eE({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(oE({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(tE({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(JC({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(sE({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 uE(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),jo&&this.instantMove&&jo.instantMove&&jo!==this.parentPopper){jo.$_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&&(jo=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 Pd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Lu(this.$_referenceNode),...Lu(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<rr.length;r++)t=rr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}rr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Xv(this.theme))e0(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 Pd(),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,Jv(rr,this),rr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Xv(this.theme)){const o=e0(r);Jv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}jo===this&&(jo=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 Pd(),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,Yv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Yv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Zv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Zv,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,Na?{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(ha>=e.left&&ha<=e.right&&pa>=e.top&&pa<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ha-eo,o=pa-to,s=t.left+t.width/2-eo+(t.top+t.height/2)-to+t.width+t.height,c=eo+r*s,f=to+o*s;return Bc(eo,to,c,f,t.left,t.top,t.left,t.bottom)||Bc(eo,to,c,f,t.left,t.top,t.right,t.top)||Bc(eo,to,c,f,t.right,t.top,t.right,t.bottom)||Bc(eo,to,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(Nw){const e=Na?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>t0(t),e),document.addEventListener("touchend",t=>n0(t,!0),e)}else window.addEventListener("mousedown",e=>t0(e),!0),window.addEventListener("click",e=>n0(e,!1),!0);window.addEventListener("resize",pE)}function t0(e,t){for(let r=0;r<rr.length;r++){const o=rr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function n0(e,t){dE(e,t)}function dE(e,t){const r={};for(let o=rr.length-1;o>=0;o--){const s=rr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&r0(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&&r0(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function r0(e,t,r){return r.closeAllPopover||r.closePopover&&t||hE(e,r)&&!t}function hE(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function pE(){for(let e=0;e<rr.length;e++)rr[e].$_computePosition()}function i0(){for(let e=0;e<rr.length;e++)rr[e].hide()}let eo=0,to=0,ha=0,pa=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{eo=ha,to=pa,ha=e.clientX,pa=e.clientY},Na?{passive:!0}:void 0);function Bc(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 gE={extends:Ow()},mf=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function mE(e,t,r,o,s,c){return ne(),me("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[zt(e.$slots,"default",dS(cw(e.slotData)))],2)}const vE=mf(gE,[["render",mE]]);function yE(){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 ou;function yh(){yh.init||(yh.init=!0,ou=yE()!==-1)}var vf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){yh(),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",ou&&this.$el.appendChild(e),e.data="about:blank",ou||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&&(!ou&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const bE=Cb();Sb("data-v-b329ee4c");const wE={class:"resize-observer",tabindex:"-1"};Tb();const xE=bE((e,t,r,o,s,c)=>(ne(),qe("div",wE)));vf.render=xE;vf.__scopeId="data-v-b329ee4c";vf.__file="src/components/ResizeObserver.vue";const Pw=(e="theme")=>({computed:{themeClass(){return fE(this[e])}}}),kE=et({name:"VPopperContent",components:{ResizeObserver:vf},mixins:[Pw()],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}}}),_E=["id","aria-hidden","tabindex","data-popper-placement"],SE={ref:"inner",class:"v-popper__inner"},TE=X("div",{class:"v-popper__arrow-outer"},null,-1),CE=X("div",{class:"v-popper__arrow-inner"},null,-1),EE=[TE,CE];function AE(e,t,r,o,s,c){const f=es("ResizeObserver");return ne(),me("div",{id:e.popperId,ref:"popover",class:it(["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:Ot(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]=ph(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[X("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),X("div",{class:"v-popper__wrapper",style:Ot(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[X("div",SE,[e.mounted?(ne(),me(tt,{key:0},[X("div",null,[zt(e.$slots,"default")]),e.handleResize?(ne(),qe(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):ze("",!0)],64)):ze("",!0)],512),X("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ot(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},EE,4)],4)],46,_E)}const Rw=mf(kE,[["render",AE]]),Iw={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 bh=function(){};typeof window<"u"&&(bh=window.Element);const LE=et({name:"VPopperWrapper",components:{Popper:vE,PopperContent:Rw},mixins:[Iw,Pw("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,bh,Boolean],default:void 0},boundary:{type:[String,bh],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 ME(e,t,r,o,s,c){const f=es("PopperContent"),d=es("Popper");return ne(),qe(d,Qr({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:je(({popperId:h,isShown:p,shouldMountContent:m,skipTransition:v,autoHide:b,show:w,hide:O,handleResize:A,onResize:N,classes:L,result:R})=>[zt(e.$slots,"default",{shown:p,show:w,hide:O}),Le(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:m,"skip-transition":v,"auto-hide":b,"handle-resize":A,classes:L,result:R,onHide:O,onResize:N},{default:je(()=>[zt(e.$slots,"popper",{shown:p,hide:O})]),_: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 wp=mf(LE,[["render",ME]]);({...wp});({...wp});const NE={...wp,name:"VTooltip",vPopperTheme:"tooltip"},$E=et({name:"VTooltipDirective",components:{Popper:Ow(),PopperContent:Rw},mixins:[Iw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ma(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ma(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}}}),OE=["innerHTML"],PE=["textContent"];function RE(e,t,r,o,s,c){const f=es("PopperContent"),d=es("Popper");return ne(),qe(d,Qr({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:je(({popperId:h,isShown:p,shouldMountContent:m,skipTransition:v,autoHide:b,hide:w,handleResize:O,onResize:A,classes:N,result:L})=>[Le(f,{ref:"popperContent",class:it({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:m,"skip-transition":v,"auto-hide":b,"handle-resize":O,classes:N,result:L,onHide:w,onResize:A},{default:je(()=>[e.html?(ne(),me("div",{key:0,innerHTML:e.finalContent},null,8,OE)):(ne(),me("div",{key:1,textContent:Oe(e.finalContent)},null,8,PE))]),_: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 IE=mf($E,[["render",RE]]),Dw="v-popper--has-tooltip";function DE(e,t){let r=e.placement;if(!r&&t)for(const o of $w)t[o]&&(r=o);return r||(r=Ma(e.theme||"tooltip","placement")),r}function zw(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=DE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Id,$a,zE=0;function FE(){if(Id)return;$a=Ve([]),Id=bw({name:"VTooltipDirectiveApp",setup(){return{directives:$a}},render(){return this.directives.map(t=>Xa(IE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Id.mount(e)}function Fw(e,t,r){FE();const o=Ve(zw(e,t,r)),s=Ve(!1),c={id:zE++,options:o,shown:s};return $a.value.push(c),e.classList&&e.classList.add(Dw),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function xp(e){if(e.$_popper){const t=$a.value.indexOf(e.$_popper.item);t!==-1&&$a.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Dw)}function o0(e,{value:t,modifiers:r}){const o=zw(e,t,r);if(!o.content||Ma(o.theme||"tooltip","disabled"))xp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Fw(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const HE={beforeMount:o0,updated:o0,beforeUnmount(e){xp(e)}},BE=HE,so=NE,Hw={options:vo};function Bw(e,t){return np()?(vS(e,t),!0):!1}const Dd=new WeakMap,jE=(...e)=>{var t;const r=e[0],o=(t=ii())===null||t===void 0?void 0:t.proxy,s=o??np();if(s==null&&!Eb())throw new Error("injectLocal must be called in setup");return s&&Dd.has(s)&&r in Dd.get(s)?Dd.get(s)[r]:mn(...e)},WE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qE=Object.prototype.toString,UE=e=>qE.call(e)==="[object Object]",VE=()=>+Date.now(),Mu=()=>{};function rs(...e){if(e.length!==1)return WS(...e);const t=e[0];return typeof t=="function"?el(yb(()=>({get:t,set:Mu}))):Ve(t)}function kp(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 _p=e=>e();function jw(e,t={}){let r,o,s=Mu;const c=h=>{clearTimeout(h),s(),s=Mu};let f;return h=>{const p=Yt(e),m=Yt(t.maxWait);return r&&c(r),p<=0||m!==void 0&&m<=0?(o&&(c(o),o=void 0),Promise.resolve(h())):new Promise((v,b)=>{s=t.rejectOnCancel?b:v,f=h,m&&!o&&(o=setTimeout(()=>{r&&c(r),o=void 0,v(f())},m)),r=setTimeout(()=>{o&&c(o),o=void 0,v(h())},p)})}}function Ww(e=_p,t={}){const{initialState:r="active"}=t,o=rs(r==="active");function s(){o.value=!1}function c(){o.value=!0}return{isActive:el(o),pause:s,resume:c,eventFilter:(...d)=>{o.value&&e(...d)}}}function s0(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function l0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function zd(e){return Array.isArray(e)?e:[e]}function GE(e){return ii()}function jc(e,t=200,r={}){return kp(jw(t,r),e)}function qw(e,t,r={}){const{eventFilter:o=_p,...s}=r;return vt(e,kp(o,t),s)}function Uw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=Ww(o,{initialState:s});return{stop:qw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Sp(e,t=!0,r){GE()?Ii(e,r):t?e():Ct(e)}function wh(e,t=!1){function r(v,{flush:b="sync",deep:w=!1,timeout:O,throwOnTimeout:A}={}){let N=null;const L=[new Promise(R=>{N=vt(e,z=>{v(z)!==t&&(N?N():Ct(()=>N?.()),R(z))},{flush:b,deep:w,immediate:!0})})];return O!=null&&L.push(s0(O,A).then(()=>Yt(e)).finally(()=>N?.())),Promise.race(L)}function o(v,b){if(!Mt(v))return r(z=>z===v,b);const{flush:w="sync",deep:O=!1,timeout:A,throwOnTimeout:N}=b??{};let L=null;const R=[new Promise(z=>{L=vt([e,v],([C,I])=>{t!==(C===I)&&(L?L():Ct(()=>L?.()),z(C))},{flush:w,deep:O,immediate:!0})})];return A!=null&&R.push(s0(A,N).then(()=>Yt(e)).finally(()=>(L?.(),Yt(e)))),Promise.race(R)}function s(v){return r(b=>!!b,v)}function c(v){return o(null,v)}function f(v){return o(void 0,v)}function d(v){return r(Number.isNaN,v)}function h(v,b){return r(w=>{const O=Array.from(w);return O.includes(v)||O.includes(Yt(v))},b)}function p(v){return m(1,v)}function m(v=1,b){let w=-1;return r(()=>(w+=1,w>=v),b)}return Array.isArray(Yt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:m,get not(){return wh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:m,get not(){return wh(e,!t)}}}function a0(e){return wh(e)}function KE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Mt(e),c=Wt(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Yt(r);return c.value=c.value===h?Yt(o):h,c.value}}return s?f:[c,f]}function Vw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return qw(e,t,{...c,eventFilter:jw(o,{maxWait:s})})}const Gw=Vw;function XE(e,t,r={}){const{eventFilter:o=_p,...s}=r,c=kp(o,t);let f,d,h;if(s.flush==="sync"){let p=!1;d=()=>{},f=m=>{p=!0,m(),p=!1},h=vt(e,(...m)=>{p||c(...m)},s)}else{const p=[];let m=0,v=0;d=()=>{m=v},p.push(vt(e,()=>{v++},{...s,flush:"sync"})),f=b=>{const w=v;b(),m+=v-w},p.push(vt(e,(...b)=>{const w=m>0&&m===v;m=0,v=0,!w&&c(...b)},s)),h=()=>{p.forEach(b=>b())}}return{stop:h,ignoreUpdates:f,ignorePrevAsyncUpdates:d}}function YE(e,t,r){return vt(e,t,{...r,immediate:!0})}function ZE(e,t,r){return vt(e,t,{...r,once:!0})}function JE(e,t,r){var o;let s;Mt(r)?s={evaluating:r}:s=r||{};const{lazy:c=!1,flush:f="sync",evaluating:d=void 0,shallow:h=!0,onError:p=(o=globalThis.reportError)!==null&&o!==void 0?o:Mu}=s,m=Wt(!c),v=h?Wt(t):Ve(t);let b=0;return Ab(async w=>{if(!m.value)return;b++;const O=b;let A=!1;d&&Promise.resolve().then(()=>{d.value=!0});try{const N=await e(L=>{w(()=>{d&&(d.value=!1),A||L()})});O===b&&(v.value=N)}catch(N){p(N)}finally{d&&O===b&&(d.value=!1),A=!0}},{flush:f}),c?ke(()=>(m.value=!0,v.value)):v}const QE=JE,or=WE?window:void 0;function Nu(e){var t;const r=Yt(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function wo(...e){const t=(o,s,c,f)=>(o.addEventListener(s,c,f),()=>o.removeEventListener(s,c,f)),r=ke(()=>{const o=zd(Yt(e[0])).filter(s=>s!=null);return o.every(s=>typeof s!="string")?o:void 0});return YE(()=>{var o,s;return[(o=(s=r.value)===null||s===void 0?void 0:s.map(c=>Nu(c)))!==null&&o!==void 0?o:[or].filter(c=>c!=null),zd(Yt(r.value?e[1]:e[0])),zd(q(r.value?e[2]:e[1])),Yt(r.value?e[3]:e[2])]},([o,s,c,f],d,h)=>{if(!o?.length||!s?.length||!c?.length)return;const p=UE(f)?{...f}:f,m=o.flatMap(v=>s.flatMap(b=>c.map(w=>t(v,b,w,p))));h(()=>{m.forEach(v=>v())})},{flush:"post"})}function eA(){const e=Wt(!1),t=ii();return t&&Ii(()=>{e.value=!0},t),e}function Kw(e){const t=eA();return ke(()=>(t.value,!!e()))}function tA(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Xw(...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=or,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=tA(t);return wo(s,c,m=>{m.repeat&&Yt(d)||h(m)&&r(m)},f)}function nA(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=or,once:c=!1}=t,f=Wt(!1),d=ke(()=>o?1e3/Yt(o):null);let h=0,p=null;function m(w){if(!f.value||!s)return;h||(h=w);const O=w-h;if(d.value&&O<d.value){p=s.requestAnimationFrame(m);return}if(h=w,e({delta:O,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(m)}function v(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(m))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&v(),Bw(b),{isActive:el(f),pause:b,resume:v}}const rA=Symbol("vueuse-ssr-width");function iA(){const e=Eb()?jE(rA,null):null;return typeof e=="number"?e:void 0}function Yw(e,t={}){const{window:r=or,ssrWidth:o=iA()}=t,s=Kw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Wt(typeof o=="number"),f=Wt(),d=Wt(!1),h=p=>{d.value=p.matches};return Ab(()=>{if(c.value){c.value=!s.value,d.value=Yt(e).split(",").some(p=>{const m=p.includes("not all"),v=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),b=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let w=!!(v||b);return v&&w&&(w=o>=l0(v[1])),b&&w&&(w=o<=l0(b[1])),m?!w:w});return}s.value&&(f.value=r.matchMedia(Yt(e)),d.value=f.value.matches)}),wo(f,"change",h,{passive:!0}),ke(()=>d.value)}function Zw(e){return JSON.parse(JSON.stringify(e))}const Wc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qc="__vueuse_ssr_handlers__",oA=sA();function sA(){return qc in Wc||(Wc[qc]=Wc[qc]||{}),Wc[qc]}function Jw(e,t){return oA[e]||t}function lA(e){return Yw("(prefers-color-scheme: dark)",e)}function aA(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 cA={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()}},c0="vueuse-storage";function Qw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:m,window:v=or,eventFilter:b,onError:w=S=>{console.error(S)},initOnMounted:O}=o,A=(m?Wt:Ve)(typeof t=="function"?t():t),N=ke(()=>Yt(e));if(!r)try{r=Jw("getDefaultStorage",()=>or?.localStorage)()}catch(S){w(S)}if(!r)return A;const L=Yt(t),R=aA(L),z=(s=o.serializer)!==null&&s!==void 0?s:cA[R],{pause:C,resume:I}=Uw(A,S=>K(S),{flush:c,deep:f,eventFilter:b});vt(N,()=>P(),{flush:c});let W=!1;const Z=S=>{O&&!W||P(S)},se=S=>{O&&!W||$(S)};v&&d&&(r instanceof Storage?wo(v,"storage",Z,{passive:!0}):wo(v,c0,se)),O?Sp(()=>{W=!0,P()}):P();function Q(S,k){if(v){const M={key:N.value,oldValue:S,newValue:k,storageArea:r};v.dispatchEvent(r instanceof Storage?new StorageEvent("storage",M):new CustomEvent(c0,{detail:M}))}}function K(S){try{const k=r.getItem(N.value);if(S==null)Q(k,null),r.removeItem(N.value);else{const M=z.write(S);k!==M&&(r.setItem(N.value,M),Q(k,M))}}catch(k){w(k)}}function G(S){const k=S?S.newValue:r.getItem(N.value);if(k==null)return h&&L!=null&&r.setItem(N.value,z.write(L)),L;if(!S&&p){const M=z.read(k);return typeof p=="function"?p(M,L):R==="object"&&!Array.isArray(M)?{...L,...M}:M}else return typeof k!="string"?k:z.read(k)}function P(S){if(!(S&&S.storageArea!==r)){if(S&&S.key==null){A.value=L;return}if(!(S&&S.key!==N.value)){C();try{const k=z.write(A.value);(S===void 0||S?.newValue!==k)&&(A.value=G(S))}catch(k){w(k)}finally{S?Ct(I):I()}}}}function $(S){P(S.detail)}return A}const uA="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function fA(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=or,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:m=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},b=lA({window:s}),w=ke(()=>b.value?"dark":"light"),O=h||(f==null?rs(o):Qw(f,o,c,{window:s,listenToStorageChanges:d})),A=ke(()=>O.value==="auto"?w.value:O.value),N=Jw("updateHTMLAttrs",(C,I,W)=>{const Z=typeof C=="string"?s?.document.querySelector(C):Nu(C);if(!Z)return;const se=new Set,Q=new Set;let K=null;if(I==="class"){const P=W.split(/\s/g);Object.values(v).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{P.includes($)?se.add($):Q.add($)})}else K={key:I,value:W};if(se.size===0&&Q.size===0&&K===null)return;let G;m&&(G=s.document.createElement("style"),G.appendChild(document.createTextNode(uA)),s.document.head.appendChild(G));for(const P of se)Z.classList.add(P);for(const P of Q)Z.classList.remove(P);K&&Z.setAttribute(K.key,K.value),m&&(s.getComputedStyle(G).opacity,document.head.removeChild(G))});function L(C){var I;N(t,r,(I=v[C])!==null&&I!==void 0?I:C)}function R(C){e.onChanged?e.onChanged(C,L):L(C)}vt(A,R,{flush:"post",immediate:!0}),Sp(()=>R(A.value));const z=ke({get(){return p?O.value:A.value},set(C){O.value=C}});return Object.assign(z,{store:O,system:w,state:A})}function dA(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=fA({...e,onChanged:(c,f)=>{var d;e.onChanged?(d=e.onChanged)===null||d===void 0||d.call(e,c==="dark",f,c):f(c)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(c){const f=c?"dark":"light";s.value===f?o.value="auto":o.value=f}})}function ex(e){return e}function hA(e,t){return e.value=t}function pA(e){return e?typeof e=="function"?e:Zw:ex}function gA(e){return e?typeof e=="function"?e:Zw:ex}function mA(e,t={}){const{clone:r=!1,dump:o=pA(r),parse:s=gA(r),setSource:c=hA}=t;function f(){return rf({snapshot:o(e.value),timestamp:VE()})}const d=Ve(f()),h=Ve([]),p=Ve([]),m=N=>{c(e,s(N.snapshot)),d.value=N},v=()=>{h.value.unshift(d.value),d.value=f(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},b=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const N=h.value.shift();N&&(p.value.unshift(d.value),m(N))},O=()=>{const N=p.value.shift();N&&(h.value.unshift(d.value),m(N))},A=()=>{m(d.value)};return{source:e,undoStack:h,redoStack:p,last:d,history:ke(()=>[d.value,...h.value]),canUndo:ke(()=>h.value.length>0),canRedo:ke(()=>p.value.length>0),clear:b,commit:v,reset:A,undo:w,redo:O}}function vA(e,t={}){const{deep:r=!1,flush:o="pre",eventFilter:s,shouldCommit:c=()=>!0}=t,{eventFilter:f,pause:d,resume:h,isActive:p}=Ww(s);let m=e.value;const{ignoreUpdates:v,ignorePrevAsyncUpdates:b,stop:w}=XE(e,R,{deep:r,flush:o,eventFilter:f});function O(W,Z){b(),v(()=>{W.value=Z,m=Z})}const A=mA(e,{...t,clone:t.clone||r,setSource:O}),{clear:N,commit:L}=A;function R(){b(),c(m,e.value)&&(m=e.value,L())}function z(W){h(),W&&R()}function C(W){let Z=!1;const se=()=>Z=!0;v(()=>{W(se)}),Z||R()}function I(){w(),N()}return{...A,isTracking:p,pause:d,resume:z,commit:R,batch:C,dispose:I}}function tx(e,t,r={}){const{window:o=or,...s}=r;let c;const f=Kw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=vt(ke(()=>{const m=Yt(e);return Array.isArray(m)?m.map(v=>Nu(v)):[Nu(m)]}),m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const v of m)v&&c.observe(v,s)}},{immediate:!0,flush:"post"}),p=()=>{d(),h()};return Bw(p),{isSupported:f,stop:p}}function Ya(e,t,r={}){const{window:o=or}=r;return Qw(e,t,o?.localStorage,r)}function yA(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=or,stringify:h=C=>C.toString()}=t;if(!d)return sr(r);const p=sr({});function m(){if(e==="history")return d.location.search||"";if(e==="hash"){const C=d.location.hash||"",I=C.indexOf("?");return I>0?C.slice(I):""}else return(d.location.hash||"").replace(/^#/,"")}function v(C){const I=h(C);if(e==="history")return`${I?`?${I}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${I?`#${I}`:""}`;const W=d.location.hash||"#",Z=W.indexOf("?");return Z>0?`${d.location.search||""}${W.slice(0,Z)}${I?`?${I}`:""}`:`${d.location.search||""}${W}${I?`?${I}`:""}`}function b(){return new URLSearchParams(m())}function w(C){const I=new Set(Object.keys(p));for(const W of C.keys()){const Z=C.getAll(W);p[W]=Z.length>1?Z:C.get(W)||"",I.delete(W)}Array.from(I).forEach(W=>delete p[W])}const{pause:O,resume:A}=Uw(p,()=>{const C=new URLSearchParams("");Object.keys(p).forEach(I=>{const W=p[I];Array.isArray(W)?W.forEach(Z=>C.append(I,Z)):o&&W==null||s&&!W?C.delete(I):C.set(I,W)}),N(C,!1)},{deep:!0});function N(C,I,W=!0){O(),I&&w(C),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(C)):W&&d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(C)),Ct(()=>A())}function L(){c&&N(b(),!0,!1)}const R={passive:!0};wo(d,"popstate",L,R),e!=="history"&&wo(d,"hashchange",L,R);const z=b();return z.keys().next().value?w(z):Object.assign(p,r),p}function nx(e={}){const{window:t=or,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Wt(r),h=Wt(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:b,scale:w}=t.visualViewport;d.value=Math.round(v*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Sp(p);const m={passive:!0};return wo("resize",p,m),t&&f==="visual"&&t.visualViewport&&wo(t.visualViewport,"resize",p,m),s&&vt(Yw("(orientation: portrait)"),()=>p()),{width:d,height:h}}const u0={__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=Hb(),c=Ve([]),f=ke(()=>c.value.reduce((F,J)=>(F[~~J.id]=J)&&F,{})),d=ke(()=>c.value.length),h=Ve(null),p=Ve(!1),m=Ve({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ve({splitter:null,timeoutId:null}),b=ke(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":m.value.dragging})),w=()=>{document.addEventListener("mousemove",N,{passive:!1}),document.addEventListener("mouseup",L),"ontouchstart"in window&&(document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",L))},O=()=>{document.removeEventListener("mousemove",N,{passive:!1}),document.removeEventListener("mouseup",L),"ontouchstart"in window&&(document.removeEventListener("touchmove",N,{passive:!1}),document.removeEventListener("touchend",L))},A=(F,J)=>{const ie=F.target.closest(".splitpanes__splitter");if(ie){const{left:ae,top:ce}=ie.getBoundingClientRect(),{clientX:D,clientY:j}="ontouchstart"in window&&F.touches?F.touches[0]:F;m.value.cursorOffset=o.horizontal?j-ce:D-ae}w(),m.value.mouseDown=!0,m.value.activeSplitter=J},N=F=>{m.value.mouseDown&&(F.preventDefault(),m.value.dragging=!0,requestAnimationFrame(()=>{Z(I(F)),He("resize",{event:F},!0)}))},L=F=>{m.value.dragging&&(window.getSelection().removeAllRanges(),He("resized",{event:F},!0)),m.value.mouseDown=!1,m.value.activeSplitter=null,setTimeout(()=>{m.value.dragging=!1,O()},100)},R=(F,J)=>{"ontouchstart"in window&&(F.preventDefault(),v.value.splitter===J?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,z(F,J),v.value.splitter=null):(v.value.splitter=J,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),m.value.dragging||He("splitter-click",{event:F,index:J},!0)},z=(F,J)=>{if(He("splitter-dblclick",{event:F,index:J},!0),o.maximizePanes){let ie=0;c.value=c.value.map((ae,ce)=>(ae.size=ce===J?ae.max:ae.min,ce!==J&&(ie+=ae.min),ae)),c.value[J].size-=ie,He("pane-maximize",{event:F,index:J,pane:c.value[J]}),He("resized",{event:F,index:J},!0)}},C=(F,J)=>{He("pane-click",{event:F,index:f.value[J].index,pane:f.value[J]})},I=F=>{const J=h.value.getBoundingClientRect(),{clientX:ie,clientY:ae}="ontouchstart"in window&&F.touches?F.touches[0]:F;return{x:ie-(o.horizontal?0:m.value.cursorOffset)-J.left,y:ae-(o.horizontal?m.value.cursorOffset:0)-J.top}},W=F=>{F=F[o.horizontal?"y":"x"];const J=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(F=J-F),F*100/J},Z=F=>{const J=m.value.activeSplitter;let ie={prevPanesSize:Q(J),nextPanesSize:K(J),prevReachedMinPanes:0,nextReachedMinPanes:0};const ae=0+(o.pushOtherPanes?0:ie.prevPanesSize),ce=100-(o.pushOtherPanes?0:ie.nextPanesSize),D=Math.max(Math.min(W(F),ce),ae);let j=[J,J+1],te=c.value[j[0]]||null,de=c.value[j[1]]||null;const he=te.max<100&&D>=te.max+ie.prevPanesSize,ge=de.max<100&&D<=100-(de.max+K(J+1));if(he||ge){he?(te.size=te.max,de.size=Math.max(100-te.max-ie.prevPanesSize-ie.nextPanesSize,0)):(te.size=Math.max(100-de.max-ie.prevPanesSize-K(J+1),0),de.size=de.max);return}if(o.pushOtherPanes){const Ce=se(ie,D);if(!Ce)return;({sums:ie,panesToResize:j}=Ce),te=c.value[j[0]]||null,de=c.value[j[1]]||null}te!==null&&(te.size=Math.min(Math.max(D-ie.prevPanesSize-ie.prevReachedMinPanes,te.min),te.max)),de!==null&&(de.size=Math.min(Math.max(100-D-ie.nextPanesSize-ie.nextReachedMinPanes,de.min),de.max))},se=(F,J)=>{const ie=m.value.activeSplitter,ae=[ie,ie+1];return J<F.prevPanesSize+c.value[ae[0]].min&&(ae[0]=G(ie).index,F.prevReachedMinPanes=0,ae[0]<ie&&c.value.forEach((ce,D)=>{D>ae[0]&&D<=ie&&(ce.size=ce.min,F.prevReachedMinPanes+=ce.min)}),F.prevPanesSize=Q(ae[0]),ae[0]===void 0)?(F.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ce,D)=>{D>0&&D<=ie&&(ce.size=ce.min,F.prevReachedMinPanes+=ce.min)}),c.value[ae[1]].size=100-F.prevReachedMinPanes-c.value[0].min-F.prevPanesSize-F.nextPanesSize,null):J>100-F.nextPanesSize-c.value[ae[1]].min&&(ae[1]=P(ie).index,F.nextReachedMinPanes=0,ae[1]>ie+1&&c.value.forEach((ce,D)=>{D>ie&&D<ae[1]&&(ce.size=ce.min,F.nextReachedMinPanes+=ce.min)}),F.nextPanesSize=K(ae[1]-1),ae[1]===void 0)?(F.nextReachedMinPanes=0,c.value.forEach((ce,D)=>{D<d.value-1&&D>=ie+1&&(ce.size=ce.min,F.nextReachedMinPanes+=ce.min)}),c.value[ae[0]].size=100-F.prevPanesSize-K(ae[0]-1),null):{sums:F,panesToResize:ae}},Q=F=>c.value.reduce((J,ie,ae)=>J+(ae<F?ie.size:0),0),K=F=>c.value.reduce((J,ie,ae)=>J+(ae>F+1?ie.size:0),0),G=F=>[...c.value].reverse().find(J=>J.index<F&&J.size>J.min)||{},P=F=>c.value.find(J=>J.index>F+1&&J.size>J.min)||{},$=()=>{var F;const J=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const ie of J){const ae=ie.classList.contains("splitpanes__pane"),ce=ie.classList.contains("splitpanes__splitter");!ae&&!ce&&(ie.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},S=(F,J,ie=!1)=>{const ae=F-1,ce=document.createElement("div");ce.classList.add("splitpanes__splitter"),ie||(ce.onmousedown=D=>A(D,ae),typeof window<"u"&&"ontouchstart"in window&&(ce.ontouchstart=D=>A(D,ae)),ce.onclick=D=>R(D,ae+1)),ce.ondblclick=D=>z(D,ae+1),J.parentNode.insertBefore(ce,J)},k=F=>{F.onmousedown=void 0,F.onclick=void 0,F.ondblclick=void 0,F.remove()},M=()=>{var F;const J=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const ae of J)ae.className.includes("splitpanes__splitter")&&k(ae);let ie=0;for(const ae of J)ae.className.includes("splitpanes__pane")&&(!ie&&o.firstSplitter?S(ie,ae,!0):ie&&S(ie,ae),ie++)},B=({uid:F,...J})=>{const ie=f.value[F];for(const[ae,ce]of Object.entries(J))ie[ae]=ce},Y=F=>{var J;let ie=-1;Array.from(((J=h.value)==null?void 0:J.children)||[]).some(ae=>(ae.className.includes("splitpanes__pane")&&ie++,ae.isSameNode(F.el))),c.value.splice(ie,0,{...F,index:ie}),c.value.forEach((ae,ce)=>ae.index=ce),p.value&&Ct(()=>{M(),_e({addedPane:c.value[ie]}),He("pane-add",{pane:c.value[ie]})})},ve=F=>{const J=c.value.findIndex(ae=>ae.id===F);c.value[J].el=null;const ie=c.value.splice(J,1)[0];c.value.forEach((ae,ce)=>ae.index=ce),Ct(()=>{M(),He("pane-remove",{pane:ie}),_e({removedPane:{...ie}})})},_e=(F={})=>{!F.addedPane&&!F.removedPane?Ae():c.value.some(J=>J.givenSize!==null||J.min||J.max<100)?Ke(F):Be(),p.value&&He("resized")},Be=()=>{const F=100/d.value;let J=0;const ie=[],ae=[];for(const ce of c.value)ce.size=Math.max(Math.min(F,ce.max),ce.min),J-=ce.size,ce.size>=ce.max&&ie.push(ce.id),ce.size<=ce.min&&ae.push(ce.id);J>.1&&Ue(J,ie,ae)},Ae=()=>{let F=100;const J=[],ie=[];let ae=0;for(const D of c.value)F-=D.size,D.givenSize!==null&&ae++,D.size>=D.max&&J.push(D.id),D.size<=D.min&&ie.push(D.id);let ce=100;if(F>.1){for(const D of c.value)D.givenSize===null&&(D.size=Math.max(Math.min(F/(d.value-ae),D.max),D.min)),ce-=D.size;ce>.1&&Ue(ce,J,ie)}},Ke=({addedPane:F,removedPane:J}={})=>{let ie=100/d.value,ae=0;const ce=[],D=[];(F?.givenSize??null)!==null&&(ie=(100-F.givenSize)/(d.value-1));for(const j of c.value)ae-=j.size,j.size>=j.max&&ce.push(j.id),j.size<=j.min&&D.push(j.id);if(!(Math.abs(ae)<.1)){for(const j of c.value)F?.givenSize!==null&&F?.id===j.id||(j.size=Math.max(Math.min(ie,j.max),j.min)),ae-=j.size,j.size>=j.max&&ce.push(j.id),j.size<=j.min&&D.push(j.id);ae>.1&&Ue(ae,ce,D)}},Ue=(F,J,ie)=>{let ae;F>0?ae=F/(d.value-J.length):ae=F/(d.value-ie.length),c.value.forEach((ce,D)=>{if(F>0&&!J.includes(ce.id)){const j=Math.max(Math.min(ce.size+ae,ce.max),ce.min),te=j-ce.size;F-=te,ce.size=j}else if(!ie.includes(ce.id)){const j=Math.max(Math.min(ce.size+ae,ce.max),ce.min),te=j-ce.size;F-=te,ce.size=j}}),Math.abs(F)>.1&&Ct(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},He=(F,J=void 0,ie=!1)=>{const ae=J?.index??m.value.activeSplitter??null;r(F,{...J,...ae!==null&&{index:ae},...ie&&ae!==null&&{prevPane:c.value[ae-(o.firstSplitter?1:0)],nextPane:c.value[ae+(o.firstSplitter?0:1)]},panes:c.value.map(ce=>({min:ce.min,max:ce.max,size:ce.size}))})};vt(()=>o.firstSplitter,()=>M()),Ii(()=>{$(),M(),_e(),He("ready"),p.value=!0}),Va(()=>p.value=!1);const Pe=()=>{var F;return Xa("div",{ref:h,class:b.value},(F=s.default)==null?void 0:F.call(s))};return mr("panes",c),mr("indexedPanes",f),mr("horizontal",ke(()=>o.horizontal)),mr("requestUpdate",B),mr("onPaneAdd",Y),mr("onPaneRemove",ve),mr("onPaneClick",C),(F,J)=>(ne(),qe(xu(Pe)))}},Uc={__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=mn("requestUpdate"),s=mn("onPaneAdd"),c=mn("horizontal"),f=mn("onPaneRemove"),d=mn("onPaneClick"),h=(t=ii())==null?void 0:t.uid,p=mn("indexedPanes"),m=ke(()=>p.value[h]),v=Ve(null),b=ke(()=>{const N=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(N,O.value),w.value)}),w=ke(()=>{const N=parseFloat(r.minSize);return isNaN(N)?0:N}),O=ke(()=>{const N=parseFloat(r.maxSize);return isNaN(N)?100:N}),A=ke(()=>{var N;return`${c.value?"height":"width"}: ${(N=m.value)==null?void 0:N.size}%`});return vt(()=>b.value,N=>o({uid:h,size:N})),vt(()=>w.value,N=>o({uid:h,min:N})),vt(()=>O.value,N=>o({uid:h,max:N})),Ii(()=>{s({id:h,el:v.value,min:w.value,max:O.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),Va(()=>f(h)),(N,L)=>(ne(),me("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:L[0]||(L[0]=R=>q(d)(R,N._.uid)),style:Ot(A.value)},[zt(N.$slots,"default")],4))}},nr=Ve([414,896]);function rx(e){return e!=null}function Tp(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const bA=/^[A-Za-z]:\//;function wA(e=""){return e&&e.replace(/\\/g,"/").replace(bA,t=>t.toUpperCase())}const xA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function kA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ix=function(...e){e=e.map(o=>wA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:kA();!s||s.length===0||(t=`${s}/${t}`,r=f0(s))}return t=_A(t,!r),r&&!f0(t)?`/${t}`:t.length>0?t:"."};function _A(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 f0=function(e){return xA.test(e)};var SA=44,d0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",TA=new Uint8Array(64),ox=new Uint8Array(128);for(let e=0;e<d0.length;e++){const t=d0.charCodeAt(e);TA[e]=t,ox[t]=e}function Yl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=ox[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function h0(e,t){return e.pos>=t?!1:e.peek()!==SA}var CA=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 EA(e){const{length:t}=e,r=new CA(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),m=[];let v=!0,b=0;for(s=0;r.pos<p;){let w;s=Yl(r,s),s<b&&(v=!1),b=s,h0(r,p)?(c=Yl(r,c),f=Yl(r,f),d=Yl(r,d),h0(r,p)?(h=Yl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],m.push(w),r.pos++}v||AA(m),o.push(m),r.pos=p+1}while(r.pos<=t);return o}function AA(e){e.sort(LA)}function LA(e,t){return e[0]-t[0]}var yf=0,MA=1,NA=2,$A=3,OA=4,$u=!1;function PA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][yf]-t;if(c===0)return $u=!0,s;c<0?r=s+1:o=s-1}return $u=!1,r-1}function RA(e,t,r){for(let o=r+1;o<e.length&&e[o][yf]===t;r=o++);return r}function IA(e,t,r){for(let o=r-1;o>=0&&e[o][yf]===t;r=o--);return r}function DA(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 $u=f!==-1&&e[f][yf]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=PA(e,t,d,h)}var zA="`line` must be greater than 0 (lines start at line 1)",FA="`column` must be greater than or equal to 0 (columns start at column 0)",p0=-1,HA=1;function BA(e){var t;return(t=e)._decoded||(t._decoded=EA(e._encoded))}function jA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(zA);if(o<0)throw new Error(FA);const c=BA(e);if(r>=c.length)return Vc(null,null,null,null);const f=c[r],d=WA(f,e._decodedMemo,r,o,s||HA);if(d===-1)return Vc(null,null,null,null);const h=f[d];if(h.length===1)return Vc(null,null,null,null);const{names:p,resolvedSources:m}=e;return Vc(m[h[MA]],h[NA]+1,h[$A],h.length===5?p[h[OA]]:null)}function Vc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function WA(e,t,r,o,s){let c=DA(e,o,t,r);return $u?c=(s===p0?RA:IA)(e,o,c):s===p0&&c++,c===-1||c===e.length?-1:c}const sx=/^\s*at .*(?:\S:\d+|\(native\))/m,qA=/^(?:eval@)?(?:\[native code\])?$/,UA=["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__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],VA=Date.now().toString().length,GA=new RegExp(`vitest=\\d{${VA}}`);function lx(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.includes("vitest=")&&(o=o.replace(GA,"").replace(/[?&]$/,"")),[o,r[2]||void 0,r[3]||void 0]}function KA(e){let t=e.trim();if(qA.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]=lx(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function XA(e){let t=e.trim();if(!sx.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]=lx(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:ix(h),d&&(d=d.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function YA(e,t={}){const{ignoreStackEntries:r=UA}=t;let o=sx.test(e)?JA(e):ZA(e);const s=o.findLastIndex(c=>c.method==="__VITEST_HELPER__"||c.method==="async*__VITEST_HELPER__");return s>=0&&(o=o.slice(s+1)),o.map(c=>{t.getUrlId&&(c.file=t.getUrlId(c.file));const f=t.getSourceMap?.(c.file);if(!f||typeof f!="object"||!f.version)return g0(r,c.file)?null:c;const d=new QA(f,c.file),h=tL(d,c);if(!h)return c;const{line:p,column:m,source:v,name:b}=h;let w=v||c.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),g0(r,w)?null:p!=null&&m!=null?{line:p,column:m,file:w,method:b||c.method}:c}).filter(c=>c!=null)}function g0(e,t){return e.some(r=>t.match(r))}function ZA(e){return e.split(`
18
+ `).map(t=>KA(t)).filter(rx)}function JA(e){return e.split(`
19
+ `).map(t=>XA(t)).filter(rx)}class QA{_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=eL(),this.url=r,this.resolvedSources=(c||[]).map(f=>ix(r,"..",f||""))}}function eL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function tL(e,t){const r=jA(e,t);return r.column==null?null:r}const nL=/^[A-Za-z]:\//;function Cp(e=""){return e&&e.replace(/\\/g,"/").replace(nL,t=>t.toUpperCase())}const rL=/^[/\\]{2}/,iL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,oL=/^[A-Za-z]:$/,m0=/^\/([A-Za-z]:)?$/,sL=function(e){if(e.length===0)return".";e=Cp(e);const t=e.match(rL),r=Ou(e),o=e[e.length-1]==="/";return e=ax(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),oL.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!Ou(e)?`/${e}`:e)},lL=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return sL(t)};function aL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const v0=function(...e){e=e.map(o=>Cp(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:aL();!s||s.length===0||(t=`${s}/${t}`,r=Ou(s))}return t=ax(t,!r),r&&!Ou(t)?`/${t}`:t.length>0?t:"."};function ax(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 Ou=function(e){return iL.test(e)},bf=function(e,t){const r=v0(e).replace(m0,"$1").split("/"),o=v0(t).replace(m0,"$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("/")},cL=function(e,t){const r=Cp(e).split("/");let o="";for(let s=r.length-1;s>=0;s--){const c=r[s];if(c){o=c;break}}return t&&o.endsWith(t)?o.slice(0,-t.length):o};function uL(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 cx(e,t,r,o,s){const c=bf(t,e),f={id:fL(c,r),name:c,fullName:c,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o,viteEnvironment:s};return f.file=f,f}function fL(e,t){return uL(`${e}${t||""}`)}function y0(e,t,r="tag"){throw e.length?new Error(`The ${r} "${t}" is not defined in the configuration. Available tags are:
20
+ ${e.map(o=>`- ${o.name}${o.description?`: ${o.description}`:""}`).join(`
21
+ `)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${r} for this test. See: https://vitest.dev/guide/test-tags`)}function dL(e,t){const r=e.map(o=>hL(o,t));return o=>r.every(s=>s(o))}function hL(e,t){const r=pL(e),o=new gL(r,e),s=fx(o,t);if(o.peek().type!=="EOF")throw new Error(`Invalid tags expression: unexpected "${xh(o.peek())}" in "${e}"`);return c=>Is(s,c)}function xh(e){switch(e.type){case"TAG":return e.value;default:return ux(e.type)}}function pL(e){const t=[];let r=0;for(;r<e.length;){if(e[r]===" "||e[r]===" "){r++;continue}if(e[r]==="("){t.push({type:"LPAREN"}),r++;continue}if(e[r]===")"){t.push({type:"RPAREN"}),r++;continue}if(e[r]==="!"){t.push({type:"NOT"}),r++;continue}if(e.slice(r,r+2)==="&&"){t.push({type:"AND"}),r+=2;continue}if(e.slice(r,r+2)==="||"){t.push({type:"OR"}),r+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(r))){t.push({type:"AND"}),r+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(r))){t.push({type:"OR"}),r+=2;continue}if(/^not\s/i.test(e.slice(r))){t.push({type:"NOT"}),r+=3;continue}let o="";for(;r<e.length&&e[r]!==" "&&e[r]!==" "&&e[r]!=="("&&e[r]!==")"&&e[r]!=="!"&&e[r]!=="&"&&e[r]!=="|";){const s=e.slice(r);if(o===""&&(/^and(?:\s|\)|$)/i.test(s)||/^or(?:\s|\)|$)/i.test(s)||/^not\s/i.test(s)))break;o+=e[r],r++}o&&t.push({type:"TAG",value:o})}return t.push({type:"EOF"}),t}class gL{pos=0;constructor(t,r){this.tokens=t,this.expr=r}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(t){const r=this.next();if(r.type!==t)throw t==="RPAREN"&&r.type==="EOF"?new Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):new Error(`Invalid tags expression: expected "${ux(t)}" but got "${xh(r)}" in "${this.expr}"`);return r}unexpectedToken(){const t=this.peek();throw t.type==="EOF"?new Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):new Error(`Invalid tags expression: unexpected "${xh(t)}" in "${this.expr}"`)}}function ux(e){switch(e){case"TAG":return"tag";case"AND":return"and";case"OR":return"or";case"NOT":return"not";case"LPAREN":return"(";case"RPAREN":return")";case"EOF":return"end of expression"}}function fx(e,t){let r=b0(e,t);for(;e.peek().type==="OR";){e.next();const o=b0(e,t);r={type:"or",left:r,right:o}}return r}function b0(e,t){let r=kh(e,t);for(;e.peek().type==="AND";){e.next();const o=kh(e,t);r={type:"and",left:r,right:o}}return r}function kh(e,t){return e.peek().type==="NOT"?(e.next(),{type:"not",operand:kh(e,t)}):mL(e,t)}function mL(e,t){const r=e.peek();if(r.type==="LPAREN"){e.next();const o=fx(e,t);return e.expect("RPAREN"),o}if(r.type==="TAG"){e.next();const o=r.value,s=yL(o,t);return{type:"tag",value:o,pattern:s}}e.unexpectedToken()}function vL(e){return new RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")}$`)}function yL(e,t){if(e.includes("*")){const r=vL(e);if(!t.some(s=>r.test(s.name)))throw y0(t,e,"tag pattern");return r}if(!t.length||!t.some(r=>r.name===e))throw y0(t,e,"tag pattern");return null}function Is(e,t){switch(e.type){case"tag":return e.pattern?t.some(r=>e.pattern.test(r)):t.includes(e.value);case"not":return!Is(e.operand,t);case"and":return Is(e.left,t)&&Is(e.right,t);case"or":return Is(e.left,t)||Is(e.right,t)}}function sl(e){return e.type==="test"}function dx(e){const t=[],r=Tp(e);for(const o of r)if(sl(o))t.push(o);else for(const s of o.tasks)if(sl(s))t.push(s);else{const c=dx(s);for(const f of c)t.push(f)}return t}function Ep(e=[]){return Tp(e).flatMap(t=>sl(t)?[t]:[t,...Ep(t.tasks)])}function bL(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 w0="q",x0="s";function wL(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const xL=Math.random.bind(Math),kL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function _L(e=21){let t="",r=e;for(;r--;)t+=kL[xL()*64|0];return t}const SL=6e4,hx=e=>e,TL=hx,{clearTimeout:k0,setTimeout:CL}=globalThis;function EL(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=hx,deserialize:d=TL,resolver:h,bind:p="rpc",timeout:m=SL,proxify:v=!0}=t;let b=!1;const w=new Map;let O,A;async function N(I,W,Z,se){if(b)throw new Error(`[birpc] rpc is closed, cannot call "${I}"`);const Q={m:I,a:W,t:w0};se&&(Q.o=!0);const K=async B=>r(f(B));if(Z){await K(Q);return}if(O)try{await O}finally{O=void 0}let{promise:G,resolve:P,reject:$}=wL();const S=_L();Q.i=S;let k;async function M(B=Q){return m>=0&&(k=CL(()=>{try{if(t.onTimeoutError?.call(A,I,W)!==!0)throw new Error(`[birpc] timeout on calling "${I}"`)}catch(Y){$(Y)}w.delete(S)},m),typeof k=="object"&&(k=k.unref?.())),w.set(S,{resolve:P,reject:$,timeoutId:k,method:I}),await K(B),G}try{t.onRequest?await t.onRequest.call(A,Q,M,P):await M()}catch(B){if(t.onGeneralError?.call(A,B)!==!0)throw B;return}finally{k0(k),w.delete(S)}return G}const L={$call:(I,...W)=>N(I,W,!1),$callOptional:(I,...W)=>N(I,W,!1,!0),$callEvent:(I,...W)=>N(I,W,!0),$callRaw:I=>N(I.method,I.args,I.event,I.optional),$rejectPendingCalls:z,get $closed(){return b},get $meta(){return t.meta},$close:R,$functions:e};v?A=new Proxy({},{get(I,W){if(Object.prototype.hasOwnProperty.call(L,W))return L[W];if(W==="then"&&!c.includes("then")&&!("then"in e))return;const Z=(...Q)=>N(W,Q,!0);if(c.includes(W))return Z.asEvent=Z,Z;const se=(...Q)=>N(W,Q,!1);return se.asEvent=Z,se}}):A=L;function R(I){b=!0,w.forEach(({reject:W,method:Z})=>{const se=new Error(`[birpc] rpc is closed, cannot call "${Z}"`);if(I)return I.cause??=se,W(I);W(se)}),w.clear(),s(C)}function z(I){const W=Array.from(w.values()).map(({method:Z,reject:se})=>I?I({method:Z,reject:se}):se(new Error(`[birpc]: rejected pending call "${Z}".`)));return w.clear(),W}async function C(I,...W){let Z;try{Z=d(I)}catch(se){if(t.onGeneralError?.call(A,se)!==!0)throw se;return}if(Z.t===w0){const{m:se,a:Q,o:K}=Z;let G,P,$=await(h?h.call(A,se,e[se]):e[se]);if(K&&($||=()=>{}),!$)P=new Error(`[birpc] function "${se}" not found`);else try{G=await $.apply(p==="rpc"?A:e,Q)}catch(S){P=S}if(Z.i){if(P&&t.onFunctionError&&t.onFunctionError.call(A,P,se,Q)===!0)return;if(!P)try{await r(f({t:x0,i:Z.i,r:G}),...W);return}catch(S){if(P=S,t.onGeneralError?.call(A,S,se,Q)!==!0)throw S}try{await r(f({t:x0,i:Z.i,e:P}),...W)}catch(S){if(t.onGeneralError?.call(A,S,se,Q)!==!0)throw S}}}else{const{i:se,r:Q,e:K}=Z,G=w.get(se);G&&(k0(G.timeoutId),K?G.reject(K):G.resolve(Q)),w.delete(se)}}return O=o(C),A}const{parse:px,stringify:AL}=JSON,{keys:LL}=Object,Oa=String,gx="string",_0={},Pu="object",mx=(e,t)=>t,ML=e=>e instanceof Oa?Oa(e):e,NL=(e,t)=>typeof t===gx?new Oa(t):t,vx=(e,t,r,o)=>{const s=[];for(let c=LL(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof Oa){const m=e[p];typeof m===Pu&&!t.has(m)?(t.add(m),r[h]=_0,s.push({k:h,a:[e,t,m,o]})):r[h]=o.call(r,h,m)}else r[h]!==_0&&(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,vx.apply(null,h))}return r},S0=(e,t,r)=>{const o=Oa(t.push(r)-1);return e.set(r,o),o},_h=(e,t)=>{const r=px(e,NL).map(ML),o=r[0],s=t||mx,c=typeof o===Pu&&o?vx(r,new Set,o,s):o;return s.call({"":c},"",c)},yx=(e,t,r)=>{const o=t&&typeof t===Pu?(m,v)=>m===""||-1<t.indexOf(m)?v:void 0:t||mx,s=new Map,c=[],f=[];let d=+S0(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=AL(c[d++],p,r);return"["+f.join(",")+"]";function p(m,v){if(h)return h=!h,v;const b=o.call(this,m,v);switch(typeof b){case Pu:if(b===null)return b;case gx:return s.get(b)||S0(s,c,b)}return b}},$L=e=>px(yx(e));class bx{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=cx(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 OL(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=R=>R,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const m=d({ws:new h(e),state:new bx,waitForConnection:L,reconnect:A},"state");m.state.filesMap=d(m.state.filesMap,"filesMap"),m.state.idMap=d(m.state.idMap,"idMap");let v;const b={onTestAnnotate(R,z){r.onTestAnnotate?.(R,z)},onTestArtifactRecord(R,z){r.onTestArtifactRecord?.(R,z)},onSpecsCollected(R,z){R?.forEach(([C,I])=>{m.state.clearFiles({config:C},[I])}),r.onSpecsCollected?.(R,z)},onPathsCollected(R){m.state.collectPaths(R),r.onPathsCollected?.(R)},onCollected(R){m.state.collectFiles(R),r.onCollected?.(R)},onTaskUpdate(R,z){m.state.updateTasks(R),r.onTaskUpdate?.(R,z)},onUserConsoleLog(R){m.state.updateUserLog(R),r.onUserConsoleLog?.(R)},onFinished(R,z,C,I){r.onFinished?.(R,z,C,I)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},w={post:R=>m.ws.send(R),on:R=>v=R,serialize:R=>yx(R,(z,C)=>C instanceof Error?{name:C.name,message:C.message,stack:C.stack}:C),deserialize:_h,timeout:-1};m.rpc=EL(b,w);let O;function A(R=!1){R&&(p=c),m.ws=new h(e),N()}function N(){O=new Promise((R,z)=>{const C=setTimeout(()=>{z(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();m.ws.OPEN===m.ws.readyState&&R(),m.ws.addEventListener("open",()=>{p=c,R(),clearTimeout(C)})}),m.ws.addEventListener("message",R=>{v(R.data)}),m.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(A,s)})}N();function L(){return O}return m}const xo=dA(),PL=KE(xo);function Za(e){return Object.hasOwn(e,"tasks")}function RL(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Vo(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function Fd(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function IL(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:m,candidate:v}=c;t.set(m,v);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 wx(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,splitted:[...r],candidate:"",finished:!1,id:e}}function DL(e){return wx(e).raw}function su(e){if(e>=500)return"danger";if(e>=100)return"warning"}function Ru(e){const t=su(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function lu(e,t=!1){if(!e)return"";const r=e.split("").reduce((c,f,d)=>c+f.charCodeAt(0)+d,0),o=xo.value?["yellow","cyan","#006800","magenta"]:["#ff5400","#02a4a4","green","magenta"],s=xo.value?["#ffff0091","#0ff6","#5dbb5dc9","#ff00ff80"]:["#ff540091","#00828266","#5dbb5dc9","#ff00ff80"];return(t?s:o)[r%o.length]}function xx(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}const Sh=Wt([]),Jn=Wt([]),Hr=Ya("vitest-ui_task-tree-opened",[],{shallow:!0}),gl="__vitest_ui_all_projects__",Iu=ke(()=>new Set(Hr.value)),Kt=Ya("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:"",project:gl,projectSort:void 0}),Nr=Ve(Kt.value.projectSort||"default"),Ks=Wt(Kt.value?.project||gl),Th=ke(()=>Dp.value.length>1),zL=ke(()=>Ks.value===gl),Ap=ke(()=>!Th.value||Ks.value===gl?void 0:Ks.value),Or=Ve(Kt.value.search),T0=new Map,no=ke(()=>{if(Or.value.startsWith("tag:")){if(!_t.value.tags)return{matcher:()=>!0};const e=Or.value.slice(4).trim();let t=T0.get(e);return t||(t=FL(e),T0.set(e,t)),{matcher:r=>t.matcher(r.tags||[]),error:t.error}}return{matcher:e=>Or.value===""||RL(e.name,Or.value)}});function FL(e){if(!e)return{matcher:()=>!0};try{return{matcher:dL([e],_t.value.tags||[])}}catch(t){return{matcher:()=>!1,error:t.message}}}const HL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function kx(e){return e.replace(/[&<>"']/g,t=>HL[t])}const BL=ke(()=>{const e=Or.value.toLowerCase();return e.length?new RegExp(`(${kx(e)})`,"gi"):null}),_x=ke(()=>Or.value.trim()!==""),ot=sr({failed:Kt.value.failed,success:Kt.value.success,skipped:Kt.value.skipped,onlyTests:Kt.value.onlyTests}),Ch=ke(()=>!!(ot.failed||ot.success||ot.skipped)),wf=Wt([]),ll=Ve(!1),C0=ke(()=>{const e=Kt.value.expandAll;return Hr.value.length>0?e!==!0:e!==!1}),jL=ke(()=>{const e=_x.value,t=Ch.value,r=Ap.value,o=ot.onlyTests,s=Me.summary.filesFailed,c=Me.summary.filesSuccess,f=Me.summary.filesSkipped,d=Me.summary.filesRunning,h=wf.value;return Me.collectTestsTotal(e||t||!!r,o,h,{failed:s,success:c,skipped:f,running:d})});function WL(e){return e.type==="test"}function qL(e){return e.mode==="run"&&e.type==="test"}function zn(e){return e.type==="file"}function $i(e){return e.type==="file"||e.type==="suite"}function UL(e,t=Me.root.tasks){const r=[...t];return r.sort((o,s)=>{if(e==="duration-desc"||e==="duration-asc"){const c=o.duration??0,f=s.duration??0;if(c!==f)return e==="duration-desc"?f-c:c-f}else if(e==="asc"||e==="desc"){const c=o.projectName||"",f=s.projectName||"";if(c!==f)return e==="asc"?c.localeCompare(f):f.localeCompare(c)}return`${o.filepath}:${o.projectName}`.localeCompare(`${s.filepath}:${s.projectName}`)}),r}function Pa(e,t=!1){let r=Me.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=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,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:Iu.value.size>0&&Iu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Me.colors.get(e.projectName||"")||lu(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Me.nodes.set(e.id,r),Me.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Ja(e.id,e.tasks[o],!0)}function Sx(e,t){const r=Me.nodes.get(e);if(!r||!$i(r))return;const o=ft.state.idMap.get(e);if(!(!o||!Za(o)))return Ja(r.parentId,o,t&&o.tasks.length>0),[r,o]}function VL(e){const t=Me.nodes.get(e);if(!t)return;const r=ft.state.idMap.get(e);!r||!sl(r)||Ja(t.parentId,r,!1)}function Ja(e,t,r){const o=Me.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Me.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):(sl(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:Iu.value.size>0&&Iu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Me.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Za(t)))for(let f=0;f<t.tasks.length;f++)Ja(s.id,t.tasks[f],r)}function GL(e){const t=Me.nodes.get(e);if(!t||!$i(t))return;const r=new Set(Hr.value);r.delete(t.id);const o=[...XL(t)];Hr.value=Array.from(r),Jn.value=o}function KL(){Eh(Me.root.tasks);const e=[...Jn.value.filter(zn)];Eh(e),Hr.value=[],Kt.value.expandAll=!0,Jn.value=e}function Eh(e){for(const t of e)$i(t)&&(t.expanded=!1,Eh(t.tasks))}function*Tx(e,t){if(t&&(yield e.id),$i(e))for(let r=0;r<e.tasks.length;r++)yield*Tx(e.tasks[r],!0)}function*XL(e){const t=e.id,r=new Set(Tx(e,!1));for(let o=0;o<Jn.value.length;o++){const s=Jn.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 xf=Ve("idle"),Fs=ke(()=>xf.value==="idle"),lo=Ve([]),YL=ke(()=>(_t.value.tags||[]).reduce((t,r)=>(t[r.name]=r,t),{}));function ZL(e,t,r){return e?Ax(e,t,r):!1}function Lp(e,t){const r=[...Cx(e,t)];Jn.value=r,wf.value=r.filter(zn).map(o=>br(o.id))}function*Cx(e,t){const r=Ap.value,o=UL(Nr.value);for(const s of o)r&&s.projectName!==r||(yield*Ex(s,e,t))}function*Ex(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[v,b]of Ah(e,o,w=>E0(w,t,r)))c.push([v,b]);else{for(const[v,b]of Ah(e,o,w=>E0(w,t,r)))$i(b)?(s.set(b.id,v),zn(b)?(v&&(f=b.id),c.push([v,b])):c.push([v||s.get(b.parentId)===!0,b])):c.push([v||s.get(b.parentId)===!0,b]);!f&&!zn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...QL(c,r.onlyTests,o,d,f)].reverse(),p=Me.nodes;for(const v of o){const b=p.get(v);b&&"expanded"in b&&(b.expanded=!0)}const m=new Set(h.filter(v=>zn(v)||$i(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>zn(v)||m.has(v.parentId)&&p.get(v.parentId)?.expanded)}function JL(e,t,r,o,s){if(o){if(zn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Me.nodes.get(t.parentId);return c&&zn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Me.nodes.get(t.parentId);return c&&zn(c)&&s.add(c.id),t}}function*QL(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=$i(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Me.nodes.get(d.parentId);for(;p;)r.add(p.id),zn(p)&&o.add(p.id),p=Me.nodes.get(p.parentId);yield d;continue}if(h){const p=JL(f,d,r,t,o);p&&(yield p)}else if(f){const p=Me.nodes.get(d.parentId);p&&zn(p)&&o.add(p.id),yield d}}}function eM(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 Ax(e,t,r){if(t(e))if(r.success||r.failed||r.skipped){if(eM(e,r))return!0}else return!0;return!1}function*Ah(e,t,r){const o=r(e);if(o)if(WL(e)){let s=Me.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Me.nodes.get(s.parentId)}else if(zn(e))t.add(e.id);else{t.add(e.id);let s=Me.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Me.nodes.get(s.parentId)}if(yield[o,e],$i(e))for(let s=0;s<e.tasks.length;s++)yield*Ah(e.tasks[s],t,r)}function E0(e,t,r){const o=ft.state.idMap.get(e.id);return o?Ax(o,t,r):!1}function tM(e,t,r){const o=Sx(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Ja(s.id,p,!1);s.expanded=!0;const f=new Set(Hr.value);f.add(s.id);const d=new Set(Ex(s,t,r)),h=[...iM(s,d)];Hr.value=Array.from(f),Jn.value=h}function nM(e,t){Mp(Me.root.tasks,!1);const r=[...Cx(e,t)];Kt.value.expandAll=!1,Hr.value=[],Jn.value=r,wf.value=r.filter(zn).map(o=>br(o.id))}function rM(e,t){if(e.size)for(const r of Jn.value)e.has(r.id)&&(r.expanded=!0);else t&&Mp(Jn.value.filter(zn),!0)}function Mp(e,t){for(const r of e)$i(r)&&(r.expanded=!0,Mp(r.tasks,!1));t&&(Kt.value.expandAll=!1,Hr.value=[])}function*iM(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Np(e){return dx(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function oM(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>Pa(s,t)),Sh.value=[...Me.root.tasks],Lp(r,{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function sM(e){queueMicrotask(()=>{const t=Me.pendingTasks,r=ft.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 lM(e,t){const r=Me.pendingTasks,s=ft.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),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function A0(e,t,r,o,s,c){e&&hM(r);const f=!e;queueMicrotask(()=>{t?uM(f):fM(f)}),queueMicrotask(()=>{pM(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Sh.value&&Np(Sh.value.map(d=>br(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{dM(o,s,t)})}function*aM(){yield*Jn.value.filter(qL)}function cM(){const e=ft.state.idMap;let t;for(const r of aM())t=e.get(r.parentId),t&&Za(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function uM(e){const t=ft.state.getFiles(),r=Me.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)Pa(o[c],e),Du(o[c].tasks);const s=Me.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=br(f.id);!d||(Pa(d,e),!d.tasks?.length)||Du(d.tasks)}}function fM(e){const t=new Map(Me.pendingTasks.entries());Me.pendingTasks.clear();const r=Me.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>br(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],Pa(s,!1),Du(s.tasks),t.delete(s.id);const c=ft.state.idMap,f=Me.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=br(h.id);if(!p)continue;const m=t.get(p.id);m&&(Pa(p,e),Du(Array.from(m,v=>c.get(v)).filter(Boolean)))}}function dM(e,t,r=!1){const o=Kt.value.expandAll,s=o!==!0,c=new Set(Hr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{L0(e,t,r)}),ll.value||queueMicrotask(()=>{(Jn.value.length||r)&&(ll.value=!0)}),f&&(queueMicrotask(()=>{rM(c,r),s&&(Kt.value.expandAll=!1)}),queueMicrotask(()=>{L0(e,t,r)}))}function L0(e,t,r){Lp(e,t),r&&(cM(),xf.value="idle")}function Du(e){let t;for(let r=0;r<e.length;r++)t=e[r],Za(t)?Sx(t.id,!0):VL(t.id)}function hM(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.testsExpectedFail=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function pM(e,t){const r=ft.state.idMap,o=new Map(Me.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,br(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:m,total:v,ignored:b,todo:w,expectedFail:O}=Lx(d);c.totalTests+=v,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=m,c.testsTodo+=w,c.testsExpectedFail+=O,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsTodo=c.testsTodo,e.testsExpectedFail=c.testsExpectedFail,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function Lx(e,t=()=>!0,r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0};for(const s of Mx(e))(!r||ZL(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?s.fails?o.expectedFail++: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.expectedFail,o}function gM(e,t,r,o,s,c){if(t)return r.map(f=>Lx(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:m})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=m,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 m of r)m.result?.state==="fail"?f.failed+=h?1:0:m.result?.state==="pass"?f.success+=p?1:0:m.mode==="skip"||m.mode==="todo"||f.running++;return f}return o}function*Mx(e){const t=Tp(e);let r;for(let o=0;o<t.length;o++)r=t[o],sl(r)?yield r:yield*Mx(r.tasks)}class mM{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=sr({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,testsExpectedFail: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=nA(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;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])),oM(t,!0,no.value.matcher,{failed:ot.failed,success:ot.success,skipped:ot.skipped,onlyTests:ot.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){lM(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){sM(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{A0(t,r,this.summary,no.value.matcher,{failed:ot.failed,success:ot.success,skipped:ot.skipped,onlyTests:ot.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):A0(t,r,this.summary,no.value.matcher,{failed:ot.failed,success:ot.success,skipped:ot.skipped,onlyTests:ot.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return gM(t,r,o,s,no.value.matcher,{failed:ot.failed,success:ot.success,skipped:ot.skipped,onlyTests:ot.onlyTests})}collapseNode(t){queueMicrotask(()=>{GL(t)})}expandNode(t){queueMicrotask(()=>{tM(t,no.value.matcher,{failed:ot.failed,success:ot.success,skipped:ot.skipped,onlyTests:ot.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{KL()})}expandAllNodes(){queueMicrotask(()=>{nM(no.value.matcher,{failed:ot.failed,success:ot.success,skipped:ot.skipped,onlyTests:ot.onlyTests})})}filterNodes(){queueMicrotask(()=>{Lp(no.value.matcher,{failed:ot.failed,success:ot.success,skipped:ot.skipped,onlyTests:ot.onlyTests})})}}const Me=new mM;function Nx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var au={exports:{}},vM=au.exports,M0;function To(){return M0||(M0=1,(function(e,t){(function(r,o){e.exports=o()})(vM,(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]),m=!d&&/WebKit\//.test(r),v=m&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],O=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),N=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),L=/PhantomJS/.test(r),R=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),z=/Android/.test(r),C=R||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),I=R||/Mac/.test(o),W=/\bCrOS\b/.test(r),Z=/win/i.test(o),se=O&&r.match(/Version\/(\d*\.\d*)/);se&&(se=Number(se[1])),se&&se>=15&&(O=!1,m=!0);var Q=I&&(v||O&&(se==null||se<12.11)),K=s||h&&p>=9;function G(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var P=function(n,i){var a=n.className,l=G(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 $(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function S(n,i){return $(n).appendChild(i)}function k(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 M(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var B;document.createRange?B=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:B=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 Y(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 _e(n,i){var a=n.className;G(i).test(a)||(n.className+=(a?" ":"")+i)}function Be(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!G(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ae=function(n){n.select()};R?Ae=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ae=function(n){try{n.select()}catch{}});function Ke(n){return n.display.wrapper.ownerDocument}function Ue(n){return He(n.display.wrapper)}function He(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Pe(n){return Ke(n).defaultView}function F(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function J(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 ie(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 x=n.indexOf(" ",g);if(x<0||x>=i)return y+(i-g);y+=x-g,y+=a-y%a,g=x+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};ae.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},ae.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 ce(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var D=50,j={toString:function(){return"CodeMirror.Pass"}},te={scroll:!1},de={origin:"*mouse"},he={origin:"+move"};function ge(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 Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(xe(Ce)+" ");return Ce[n]}function xe(n){return n[n.length-1]}function be(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function ee(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function ue(){}function oe(n,i){var a;return Object.create?a=Object.create(n):(ue.prototype=n,a=new ue),i&&J(i,a),a}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Qe(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Re.test(n))}function ct(n,i){return i?i.source.indexOf("\\w")>-1&&Qe(n)?!0:i.test(n):Qe(n)}function dt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\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 ut(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Jt(n,i,a){for(;(a<0?i>0:i<n.length)&&ut(n.charAt(i));)i+=a;return i}function qt(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 Bn(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 Wr=null;function Ht(n,i,a){var l;Wr=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:Wr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Wr=u)}return l??Wr}var jn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(T){return T<=247?n.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?i.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function _(T,H,V){this.level=T,this.from=H,this.to=V}return function(T,H){var V=H=="ltr"?"L":"R";if(T.length==0||H=="ltr"&&!l.test(T))return!1;for(var le=T.length,re=[],pe=0;pe<le;++pe)re.push(a(T.charCodeAt(pe)));for(var we=0,Te=V;we<le;++we){var Ne=re[we];Ne=="m"?re[we]=Te:Te=Ne}for(var De=0,$e=V;De<le;++De){var Fe=re[De];Fe=="1"&&$e=="r"?re[De]="n":g.test(Fe)&&($e=Fe,Fe=="r"&&(re[De]="R"))}for(var Ze=1,Ge=re[0];Ze<le-1;++Ze){var lt=re[Ze];lt=="+"&&Ge=="1"&&re[Ze+1]=="1"?re[Ze]="1":lt==","&&Ge==re[Ze+1]&&(Ge=="1"||Ge=="n")&&(re[Ze]=Ge),Ge=lt}for(var Tt=0;Tt<le;++Tt){var rn=re[Tt];if(rn==",")re[Tt]="N";else if(rn=="%"){var $t=void 0;for($t=Tt+1;$t<le&&re[$t]=="%";++$t);for(var Un=Tt&&re[Tt-1]=="!"||$t<le&&re[$t]=="1"?"1":"N",Ln=Tt;Ln<$t;++Ln)re[Ln]=Un;Tt=$t-1}}for(var Ut=0,Mn=V;Ut<le;++Ut){var ln=re[Ut];Mn=="L"&&ln=="1"?re[Ut]="L":g.test(ln)&&(Mn=ln)}for(var Xt=0;Xt<le;++Xt)if(u.test(re[Xt])){var Vt=void 0;for(Vt=Xt+1;Vt<le&&u.test(re[Vt]);++Vt);for(var Dt=(Xt?re[Xt-1]:V)=="L",Nn=(Vt<le?re[Vt]:V)=="L",Ls=Dt==Nn?Dt?"L":"R":V,Yi=Xt;Yi<Vt;++Yi)re[Yi]=Ls;Xt=Vt-1}for(var hn=[],Kr,on=0;on<le;)if(y.test(re[on])){var xd=on;for(++on;on<le&&y.test(re[on]);++on);hn.push(new _(0,xd,on))}else{var hi=on,Io=hn.length,Do=H=="rtl"?1:0;for(++on;on<le&&re[on]!="L";++on);for(var wn=hi;wn<on;)if(x.test(re[wn])){hi<wn&&(hn.splice(Io,0,new _(1,hi,wn)),Io+=Do);var Ms=wn;for(++wn;wn<on&&x.test(re[wn]);++wn);hn.splice(Io,0,new _(2,Ms,wn)),Io+=Do,hi=wn}else++wn;hi<on&&hn.splice(Io,0,new _(1,hi,on))}return H=="ltr"&&(hn[0].level==1&&(Kr=T.match(/^\s+/))&&(hn[0].from=Kr[0].length,hn.unshift(new _(0,0,Kr[0].length))),xe(hn).level==1&&(Kr=T.match(/\s+$/))&&(xe(hn).to-=Kr[0].length,hn.push(new _(0,le-Kr[0].length,le)))),H=="rtl"?hn.reverse():hn}})();function at(n,i){var a=n.order;return a==null&&(a=n.order=jn(n.text,i)),a}var Co=[],Ye=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]||Co).concat(a)}};function si(n,i){return n._handlers&&n._handlers[i]||Co}function un(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=ce(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Pt(n,i){var a=si(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 Rt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Pt(n,a||i.type,n,i),Tn(i)||i.codemirrorIgnore}function dr(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)ce(a,i[l])==-1&&a.push(i[l])}function Wn(n,i){return si(n,i).length>0}function wr(n){n.prototype.on=function(i,a){Ye(this,i,a)},n.prototype.off=function(i,a){un(this,i,a)}}function fn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function is(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function Tn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function zi(n){fn(n),is(n)}function ml(n){return n.target||n.srcElement}function xr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),I&&n.ctrlKey&&i==1&&(i=3),i}var Af=(function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n})(),os;function ic(n){if(os==null){var i=k("span","​");S(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(os=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=os?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var vl;function Fi(n){if(vl!=null)return vl;var i=S(n,document.createTextNode("AخA")),a=B(i,0,1).getBoundingClientRect(),l=B(i,1,2).getBoundingClientRect();return $(n),!a||a.left==a.right?!1:vl=l.right-a.right<3}var hr=`
22
+
23
+ b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
24
+ `,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/)},Hi=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},oc=(function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),kr=null;function Lf(n){if(kr!=null)return kr;var i=S(n,k("span","x")),a=i.getBoundingClientRect(),l=B(i,0,1).getBoundingClientRect();return kr=Math.abs(a.left-l.left)>1}var ss={},_r={};function Sr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),ss[n]=i}function Eo(n,i){_r[n]=i}function ls(n){if(typeof n=="string"&&_r.hasOwnProperty(n))n=_r[n];else if(n&&typeof n.name=="string"&&_r.hasOwnProperty(n.name)){var i=_r[n.name];typeof i=="string"&&(i={name:i}),n=oe(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return ls("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return ls("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function as(n,i){i=ls(i);var a=ss[i.name];if(!a)return as(n,"text/plain");var l=a(n,i);if(Bi.hasOwnProperty(i.name)){var u=Bi[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 Bi={};function cs(n,i){var a=Bi.hasOwnProperty(n)?Bi[n]:Bi[n]={};J(i,a)}function qr(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 yl(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 us(n,i,a){return n.startState?n.startState(i,a):!0}var It=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};It.prototype.eol=function(){return this.pos>=this.string.length},It.prototype.sol=function(){return this.pos==this.lineStart},It.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},It.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},It.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},It.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},It.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},It.prototype.skipToEnd=function(){this.pos=this.string.length},It.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},It.prototype.backUp=function(n){this.pos-=n},It.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ie(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ie(this.string,this.lineStart,this.tabSize):0)},It.prototype.indentation=function(){return ie(this.string,null,this.tabSize)-(this.lineStart?ie(this.string,this.lineStart,this.tabSize):0)},It.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)}},It.prototype.current=function(){return this.string.slice(this.start,this.pos)},It.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},It.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},It.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function We(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 li(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 bl(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function er(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function E(n){if(n.parent==null)return null;for(var i=n.parent,a=ce(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 U(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 x=n.lines[y],_=x.height;if(i<_)break;i-=_}return a+y}function ye(n,i){return i>=n.first&&i<n.first+n.size}function Se(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function fe(n,i,a){if(a===void 0&&(a=null),!(this instanceof fe))return new fe(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ie(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Ie(n,i)==0}function Qt(n){return fe(n.line,n.ch)}function Cn(n,i){return Ie(n,i)<0?i:n}function fs(n,i){return Ie(n,i)<0?n:i}function tg(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function rt(n,i){if(i.line<n.first)return fe(n.first,0);var a=n.first+n.size-1;return i.line>a?fe(a,We(n,a).text.length):ok(i,We(n,i.line).text.length)}function ok(n,i){var a=n.ch;return a==null||a>i?fe(n.line,i):a<0?fe(n.line,0):n}function ng(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=rt(n,i[l]);return a}var sc=function(n,i){this.state=n,this.lookAhead=i},Ur=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Ur.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Ur.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}},Ur.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ur.fromSaved=function(n,i,a){return i instanceof sc?new Ur(n,qr(n.mode,i.state),a,i.lookAhead):new Ur(n,qr(n.mode,i),a)},Ur.prototype.save=function(n){var i=n!==!1?qr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new sc(i,this.maxLookAhead):i};function rg(n,i,a,l){var u=[n.state.modeGen],g={};cg(n,i.text,n.doc.mode,a,function(T,H){return u.push(T,H)},g,l);for(var y=a.state,x=function(T){a.baseTokens=u;var H=n.state.overlays[T],V=1,le=0;a.state=!0,cg(n,i.text,H.mode,a,function(re,pe){for(var we=V;le<re;){var Te=u[V];Te>re&&u.splice(V,1,re,u[V+1],Te),V+=2,le=Math.min(re,Te)}if(pe)if(H.opaque)u.splice(we,V-we,re,"overlay "+pe),V=we+2;else for(;we<V;we+=2){var Ne=u[we+1];u[we+1]=(Ne?Ne+" ":"")+"overlay "+pe}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)x(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function ig(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=wl(n,E(i)),u=i.text.length>n.options.maxHighlightLength&&qr(n.doc.mode,l.state),g=rg(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 wl(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Ur(l,!0,i);var g=sk(n,i,a),y=g>l.first&&We(l,g-1).stateAfter,x=y?Ur.fromSaved(l,y,g):new Ur(l,us(l.mode),g);return l.iter(g,i,function(_){Mf(n,_.text,x);var T=x.line;_.stateAfter=T==i-1||T%5==0||T>=u.viewFrom&&T<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function Mf(n,i,a,l){var u=n.doc.mode,g=new It(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&og(u,a.state);!g.eol();)Nf(u,g,a.state),g.start=g.pos}function og(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=yl(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Nf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=yl(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 sg=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function lg(n,i,a,l){var u=n.doc,g=u.mode,y;i=rt(u,i);var x=We(u,i.line),_=wl(n,i.line,a),T=new It(x.text,n.options.tabSize,_),H;for(l&&(H=[]);(l||T.pos<i.ch)&&!T.eol();)T.start=T.pos,y=Nf(g,T,_.state),l&&H.push(new sg(T,y,qr(u.mode,_.state)));return l?H:new sg(T,y,_.state)}function ag(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 cg(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var _=0,T=null,H=new It(i,n.options.tabSize,l),V,le=n.options.addModeClass&&[null];for(i==""&&ag(og(a,l.state),g);!H.eol();){if(H.pos>n.options.maxHighlightLength?(x=!1,y&&Mf(n,i,l,H.pos),H.pos=i.length,V=null):V=ag(Nf(a,H,l.state,le),g),le){var re=le[0].name;re&&(V="m-"+(V?re+" "+V:re))}if(!x||T!=V){for(;_<H.start;)_=Math.min(H.start,_+5e3),u(_,T);T=V}H.start=H.pos}for(;_<H.pos;){var pe=Math.min(H.pos,_+5e3);u(pe,T),_=pe}}function sk(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=g.first)return g.first;var _=We(g,x-1),T=_.stateAfter;if(T&&(!a||x+(T instanceof sc?T.lookAhead:0)<=g.modeFrontier))return x;var H=ie(_.text,null,n.options.tabSize);(u==null||l>H)&&(u=x-1,l=H)}return u}function lk(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=We(n,l).stateAfter;if(u&&(!(u instanceof sc)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var ug=!1,ai=!1;function ak(){ug=!0}function ck(){ai=!0}function lc(n,i,a){this.marker=n,this.from=i,this.to=a}function xl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function uk(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function fk(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 dk(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(x||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new lc(y,g.from,_?null:g.to))}}return l}function hk(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(x||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new lc(y,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function $f(n,i){if(i.full)return null;var a=ye(n,i.from.line)&&We(n,i.from.line).markedSpans,l=ye(n,i.to.line)&&We(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ie(i.from,i.to)==0,x=dk(a,u,y),_=hk(l,g,y),T=i.text.length==1,H=xe(i.text).length+(T?u:0);if(x)for(var V=0;V<x.length;++V){var le=x[V];if(le.to==null){var re=xl(_,le.marker);re?T&&(le.to=re.to==null?null:re.to+H):le.to=u}}if(_)for(var pe=0;pe<_.length;++pe){var we=_[pe];if(we.to!=null&&(we.to+=H),we.from==null){var Te=xl(x,we.marker);Te||(we.from=H,T&&(x||(x=[])).push(we))}else we.from+=H,T&&(x||(x=[])).push(we)}x&&(x=fg(x)),_&&_!=x&&(_=fg(_));var Ne=[x];if(!T){var De=i.text.length-2,$e;if(De>0&&x)for(var Fe=0;Fe<x.length;++Fe)x[Fe].to==null&&($e||($e=[])).push(new lc(x[Fe].marker,null,null));for(var Ze=0;Ze<De;++Ze)Ne.push($e);Ne.push(_)}return Ne}function fg(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 pk(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(re){if(re.markedSpans)for(var pe=0;pe<re.markedSpans.length;++pe){var we=re.markedSpans[pe].marker;we.readOnly&&(!l||ce(l,we)==-1)&&(l||(l=[])).push(we)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],x=y.find(0),_=0;_<u.length;++_){var T=u[_];if(!(Ie(T.to,x.from)<0||Ie(T.from,x.to)>0)){var H=[_,1],V=Ie(T.from,x.from),le=Ie(T.to,x.to);(V<0||!y.inclusiveLeft&&!V)&&H.push({from:T.from,to:x.from}),(le>0||!y.inclusiveRight&&!le)&&H.push({from:x.to,to:T.to}),u.splice.apply(u,H),_+=H.length-3}}return u}function dg(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function hg(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function ac(n){return n.inclusiveLeft?-1:0}function cc(n){return n.inclusiveRight?1:0}function Of(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ie(l.from,u.from)||ac(n)-ac(i);if(g)return-g;var y=Ie(l.to,u.to)||cc(n)-cc(i);return y||i.id-n.id}function pg(n,i){var a=ai&&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||Of(l,u.marker)<0)&&(l=u.marker);return l}function gg(n){return pg(n,!0)}function uc(n){return pg(n,!1)}function gk(n,i){var a=ai&&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||Of(l,g.marker)<0)&&(l=g.marker)}return l}function mg(n,i,a,l,u){var g=We(n,i),y=ai&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var _=y[x];if(_.marker.collapsed){var T=_.marker.find(0),H=Ie(T.from,a)||ac(_.marker)-ac(u),V=Ie(T.to,l)||cc(_.marker)-cc(u);if(!(H>=0&&V<=0||H<=0&&V>=0)&&(H<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.to,a)>=0:Ie(T.to,a)>0)||H>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.from,l)<=0:Ie(T.from,l)<0)))return!0}}}function Tr(n){for(var i;i=gg(n);)n=i.find(-1,!0).line;return n}function mk(n){for(var i;i=uc(n);)n=i.find(1,!0).line;return n}function vk(n){for(var i,a;i=uc(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Pf(n,i){var a=We(n,i),l=Tr(a);return a==l?i:E(l)}function vg(n,i){if(i>n.lastLine())return i;var a=We(n,i),l;if(!ji(n,a))return i;for(;l=uc(a);)a=l.find(1,!0).line;return E(a)+1}function ji(n,i){var a=ai&&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&&Rf(n,i,l))return!0}}}function Rf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Rf(n,l.line,xl(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)&&Rf(n,i,u))return!0}function ci(n){n=Tr(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 x=g.children[y];if(x==a)break;i+=x.height}return i}function fc(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=gg(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=uc(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 If(n){var i=n.display,a=n.doc;i.maxLine=We(a,a.first),i.maxLineLength=fc(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=fc(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var ds=function(n,i,a){this.text=n,hg(this,i),this.height=a?a(this):1};ds.prototype.lineNo=function(){return E(this)},wr(ds);function yk(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),dg(n),hg(n,a);var u=l?l(n):1;u!=n.height&&er(n,u)}function bk(n){n.parent=null,dg(n)}var wk={},xk={};function yg(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?xk:wk;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function bg(n,i){var a=M("span",null,null,m?"padding-right: .1px":null),l={pre:M("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=_k,Fi(n.display.measure)&&(y=at(g,n.doc.direction))&&(l.addToken=Tk(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&E(g);Ck(g,l,ig(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Be(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Be(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(ic(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(m){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Pt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Be(l.pre.className,l.textClass||"")),l}function kk(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function _k(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?Sk(i,n.trailingSpace):i,_=n.cm.state.specialChars,T=!1,H;if(!_.test(i))n.col+=i.length,H=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,H),h&&p<9&&(T=!0),n.pos+=i.length;else{H=document.createDocumentFragment();for(var V=0;;){_.lastIndex=V;var le=_.exec(i),re=le?le.index-V:i.length-V;if(re){var pe=document.createTextNode(x.slice(V,V+re));h&&p<9?H.appendChild(k("span",[pe])):H.appendChild(pe),n.map.push(n.pos,n.pos+re,pe),n.col+=re,n.pos+=re}if(!le)break;V+=re+1;var we=void 0;if(le[0]==" "){var Te=n.cm.options.tabSize,Ne=Te-n.col%Te;we=H.appendChild(k("span",Ee(Ne),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),n.col+=Ne}else le[0]=="\r"||le[0]==`
25
+ `?(we=H.appendChild(k("span",le[0]=="\r"?"␍":"␤","cm-invalidchar")),we.setAttribute("cm-text",le[0]),n.col+=1):(we=n.cm.options.specialCharPlaceholder(le[0]),we.setAttribute("cm-text",le[0]),h&&p<9?H.appendChild(k("span",[we])):H.appendChild(we),n.col+=1);n.map.push(n.pos,n.pos+1,we),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||T||g||y){var De=a||"";l&&(De+=l),u&&(De+=u);var $e=k("span",[H],De,g);if(y)for(var Fe in y)y.hasOwnProperty(Fe)&&Fe!="style"&&Fe!="class"&&$e.setAttribute(Fe,y[Fe]);return n.content.appendChild($e)}n.content.appendChild(H)}}function Sk(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 Tk(n,i){return function(a,l,u,g,y,x,_){u=u?u+" cm-force-border":"cm-force-border";for(var T=a.pos,H=T+l.length;;){for(var V=void 0,le=0;le<i.length&&(V=i[le],!(V.to>T&&V.from<=T));le++);if(V.to>=H)return n(a,l,u,g,y,x,_);n(a,l.slice(0,V.to-T),u,g,null,x,_),g=null,l=l.slice(V.to-T),T=V.to}}}function wg(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 Ck(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]),yg(a[y+1],i.cm.options));return}for(var x=u.length,_=0,T=1,H="",V,le,re=0,pe,we,Te,Ne,De;;){if(re==_){pe=we=Te=le="",De=null,Ne=null,re=1/0;for(var $e=[],Fe=void 0,Ze=0;Ze<l.length;++Ze){var Ge=l[Ze],lt=Ge.marker;if(lt.type=="bookmark"&&Ge.from==_&&lt.widgetNode)$e.push(lt);else if(Ge.from<=_&&(Ge.to==null||Ge.to>_||lt.collapsed&&Ge.to==_&&Ge.from==_)){if(Ge.to!=null&&Ge.to!=_&&re>Ge.to&&(re=Ge.to,we=""),lt.className&&(pe+=" "+lt.className),lt.css&&(le=(le?le+";":"")+lt.css),lt.startStyle&&Ge.from==_&&(Te+=" "+lt.startStyle),lt.endStyle&&Ge.to==re&&(Fe||(Fe=[])).push(lt.endStyle,Ge.to),lt.title&&((De||(De={})).title=lt.title),lt.attributes)for(var Tt in lt.attributes)(De||(De={}))[Tt]=lt.attributes[Tt];lt.collapsed&&(!Ne||Of(Ne.marker,lt)<0)&&(Ne=Ge)}else Ge.from>_&&re>Ge.from&&(re=Ge.from)}if(Fe)for(var rn=0;rn<Fe.length;rn+=2)Fe[rn+1]==re&&(we+=" "+Fe[rn]);if(!Ne||Ne.from==_)for(var $t=0;$t<$e.length;++$t)wg(i,0,$e[$t]);if(Ne&&(Ne.from||0)==_){if(wg(i,(Ne.to==null?x+1:Ne.to)-_,Ne.marker,Ne.from==null),Ne.to==null)return;Ne.to==_&&(Ne=!1)}}if(_>=x)break;for(var Un=Math.min(x,re);;){if(H){var Ln=_+H.length;if(!Ne){var Ut=Ln>Un?H.slice(0,Un-_):H;i.addToken(i,Ut,V?V+pe:pe,Te,_+Ut.length==re?we:"",le,De)}if(Ln>=Un){H=H.slice(Un-_),_=Un;break}_=Ln,Te=""}H=u.slice(g,g=a[T++]),V=yg(a[T++],i.cm.options)}}}function xg(n,i,a){this.line=i,this.rest=vk(i),this.size=this.rest?E(xe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=ji(n,i)}function dc(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new xg(n.doc,We(n.doc,g),g);u=g+y.size,l.push(y)}return l}var hs=null;function Ek(n){hs?hs.ops.push(n):n.ownsGroup=hs={ops:[n],delayedCallbacks:[]}}function Ak(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 Lk(n,i){var a=n.ownsGroup;if(a)try{Ak(a)}finally{hs=null,i(a)}}var kl=null;function en(n,i){var a=si(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;hs?u=hs.delayedCallbacks:kl?u=kl:(u=kl=[],setTimeout(Mk,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function Mk(){var n=kl;kl=null;for(var i=0;i<n.length;++i)n[i]()}function kg(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?$k(n,i):g=="gutter"?Sg(n,i,a,l):g=="class"?Df(n,i):g=="widget"&&Ok(n,i,l)}i.changes=null}function _l(n){return n.node==n.text&&(n.node=k("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 Nk(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=_l(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function _g(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):bg(n,i)}function $k(n,i){var a=i.text.className,l=_g(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){Nk(n,i),i.line.wrapClass?_l(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 Sg(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=_l(i);i.gutterBackground=k("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=_l(i),x=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),n.display.input.setUneditable(x),y.insertBefore(x,i.text),i.line.gutterClass&&(x.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(k("div",Se(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var T=n.display.gutterSpecs[_].className,H=g.hasOwnProperty(T)&&g[T];H&&x.appendChild(k("div",[H],"CodeMirror-gutter-elt","left: "+l.gutterLeft[T]+"px; width: "+l.gutterWidth[T]+"px"))}}}function Ok(n,i,a){i.alignable&&(i.alignable=null);for(var l=G("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Tg(n,i,a)}function Pk(n,i,a,l){var u=_g(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Df(n,i),Sg(n,i,a,l),Tg(n,i,l),i.node}function Tg(n,i,a){if(Cg(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Cg(n,i.rest[l],i,a,!1)}function Cg(n,i,a,l,u){if(i.widgets)for(var g=_l(a),y=0,x=i.widgets;y<x.length;++y){var _=x[y],T=k("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||T.setAttribute("cm-ignore-events","true"),Rk(_,T,a,l),n.display.input.setUneditable(T),u&&_.above?g.insertBefore(T,a.gutter||a.text):g.appendChild(T),en(_,"redraw")}}function Rk(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 Sl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!Y(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;"),S(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ui(n,i){for(var a=ml(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 hc(n){return n.lineSpace.offsetTop}function zf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Eg(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=S(n.measure,k("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 Vr(n){return D-n.display.nativeBarWidth}function Ao(n){return n.display.scroller.clientWidth-Vr(n)-n.display.barWidth}function Ff(n){return n.display.scroller.clientHeight-Vr(n)-n.display.barHeight}function Ik(n,i,a){var l=n.options.lineWrapping,u=l&&Ao(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(),x=0;x<y.length-1;x++){var _=y[x],T=y[x+1];Math.abs(_.bottom-T.bottom)>2&&g.push((_.bottom+T.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Ag(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(E(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function Dk(n,i){i=Tr(i);var a=E(i),l=n.display.externalMeasured=new xg(n.doc,i,a);l.lineN=a;var u=l.built=bg(n,l);return l.text=u.pre,S(n.display.lineMeasure,u.pre),l}function Lg(n,i,a,l){return Gr(n,ps(n,i),a,l)}function Hf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[No(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function ps(n,i){var a=E(i),l=Hf(n,a);l&&!l.text?l=null:l&&l.changes&&(kg(n,l,a,Uf(n)),n.curOp.forceUpdate=!0),l||(l=Dk(n,i));var u=Ag(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Gr(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||(Ik(n,i.view,i.rect),i.hasHeights=!0),y=Fk(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 Mg={left:0,right:0,top:0,bottom:0};function Ng(n,i,a){for(var l,u,g,y,x,_,T=0;T<n.length;T+=3)if(x=n[T],_=n[T+1],i<x?(u=0,g=1,y="left"):i<_?(u=i-x,g=u+1):(T==n.length-3||i==_&&n[T+3]>i)&&(g=_-x,u=g-1,i>=_&&(y="right")),u!=null){if(l=n[T+2],x==_&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;T&&n[T-2]==n[T-3]&&n[T-1].insertLeft;)l=n[(T-=3)+2],y="left";if(a=="right"&&u==_-x)for(;T<n.length-3&&n[T+3]==n[T+4]&&!n[T+5].insertLeft;)l=n[(T+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:x,coverEnd:_}}function zk(n,i){var a=Mg;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 Fk(n,i,a,l){var u=Ng(i.map,a,l),g=u.node,y=u.start,x=u.end,_=u.collapse,T;if(g.nodeType==3){for(var H=0;H<4;H++){for(;y&&ut(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&ut(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?T=g.parentNode.getBoundingClientRect():T=zk(B(g,y,x).getClientRects(),l),T.left||T.right||y==0)break;x=y,y=y-1,_="right"}h&&p<11&&(T=Hk(n.display.measure,T))}else{y>0&&(_=l="right");var V;n.options.lineWrapping&&(V=g.getClientRects()).length>1?T=V[l=="right"?V.length-1:0]:T=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!T||!T.left&&!T.right)){var le=g.parentNode.getClientRects()[0];le?T={left:le.left,right:le.left+ms(n.display),top:le.top,bottom:le.bottom}:T=Mg}for(var re=T.top-i.rect.top,pe=T.bottom-i.rect.top,we=(re+pe)/2,Te=i.view.measure.heights,Ne=0;Ne<Te.length-1&&!(we<Te[Ne]);Ne++);var De=Ne?Te[Ne-1]:0,$e=Te[Ne],Fe={left:(_=="right"?T.right:T.left)-i.rect.left,right:(_=="left"?T.left:T.right)-i.rect.left,top:De,bottom:$e};return!T.left&&!T.right&&(Fe.bogus=!0),n.options.singleCursorHeightPerLine||(Fe.rtop=re,Fe.rbottom=pe),Fe}function Hk(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Lf(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 $g(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 Og(n){n.display.externalMeasure=null,$(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)$g(n.display.view[i])}function Tl(n){Og(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Pg(n){return b&&z?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Rg(n){return b&&z?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Bf(n){var i=Tr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Sl(a[u]));return l}function pc(n,i,a,l,u){if(!u){var g=Bf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ci(i);if(l=="local"?y+=hc(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Rg(Ke(n)));var _=x.left+(l=="window"?0:Pg(Ke(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function Ig(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Pg(Ke(n)),u-=Rg(Ke(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 gc(n,i,a,l,u){return l||(l=We(n.doc,i.line)),pc(n,l,Lg(n,l,i.ch,u),a)}function Cr(n,i,a,l,u,g){l=l||We(n.doc,i.line),u||(u=ps(n,l));function y(pe,we){var Te=Gr(n,u,pe,we?"right":"left",g);return we?Te.left=Te.right:Te.right=Te.left,pc(n,l,Te,a)}var x=at(l,n.doc.direction),_=i.ch,T=i.sticky;if(_>=l.text.length?(_=l.text.length,T="before"):_<=0&&(_=0,T="after"),!x)return y(T=="before"?_-1:_,T=="before");function H(pe,we,Te){var Ne=x[we],De=Ne.level==1;return y(Te?pe-1:pe,De!=Te)}var V=Ht(x,_,T),le=Wr,re=H(_,V,T=="before");return le!=null&&(re.other=H(_,le,T!="before")),re}function Dg(n,i){var a=0;i=rt(n.doc,i),n.options.lineWrapping||(a=ms(n.display)*i.ch);var l=We(n.doc,i.line),u=ci(l)+hc(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function jf(n,i,a,l,u){var g=fe(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function Wf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return jf(l.first,0,null,-1,-1);var u=U(l,a),g=l.first+l.size-1;if(u>g)return jf(l.first+l.size-1,We(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=We(l,u);;){var x=Bk(n,y,u,i,a),_=gk(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!_)return x;var T=_.find(1);if(T.line==u)return T;y=We(l,u=T.line)}}function zg(n,i,a,l){l-=Bf(i);var u=i.text.length,g=qt(function(y){return Gr(n,a,y-1).bottom<=l},u,0);return u=qt(function(y){return Gr(n,a,y).top>l},g,u),{begin:g,end:u}}function Fg(n,i,a,l){a||(a=ps(n,i));var u=pc(n,i,Gr(n,a,l),"line").top;return zg(n,i,a,u)}function qf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Bk(n,i,a,l,u){u-=ci(i);var g=ps(n,i),y=Bf(i),x=0,_=i.text.length,T=!0,H=at(i,n.doc.direction);if(H){var V=(n.options.lineWrapping?Wk:jk)(n,i,a,g,H,l,u);T=V.level!=1,x=T?V.from:V.to-1,_=T?V.to:V.from-1}var le=null,re=null,pe=qt(function(Ze){var Ge=Gr(n,g,Ze);return Ge.top+=y,Ge.bottom+=y,qf(Ge,l,u,!1)?(Ge.top<=u&&Ge.left<=l&&(le=Ze,re=Ge),!0):!1},x,_),we,Te,Ne=!1;if(re){var De=l-re.left<re.right-l,$e=De==T;pe=le+($e?0:1),Te=$e?"after":"before",we=De?re.left:re.right}else{!T&&(pe==_||pe==x)&&pe++,Te=pe==0?"after":pe==i.text.length?"before":Gr(n,g,pe-(T?1:0)).bottom+y<=u==T?"after":"before";var Fe=Cr(n,fe(a,pe,Te),"line",i,g);we=Fe.left,Ne=u<Fe.top?-1:u>=Fe.bottom?1:0}return pe=Jt(i.text,pe,1),jf(a,pe,Te,Ne,l-we)}function jk(n,i,a,l,u,g,y){var x=qt(function(V){var le=u[V],re=le.level!=1;return qf(Cr(n,fe(a,re?le.to:le.from,re?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),_=u[x];if(x>0){var T=_.level!=1,H=Cr(n,fe(a,T?_.from:_.to,T?"after":"before"),"line",i,l);qf(H,g,y,!0)&&H.top>y&&(_=u[x-1])}return _}function Wk(n,i,a,l,u,g,y){var x=zg(n,i,l,y),_=x.begin,T=x.end;/\s/.test(i.text.charAt(T-1))&&T--;for(var H=null,V=null,le=0;le<u.length;le++){var re=u[le];if(!(re.from>=T||re.to<=_)){var pe=re.level!=1,we=Gr(n,l,pe?Math.min(T,re.to)-1:Math.max(_,re.from)).right,Te=we<g?g-we+1e9:we-g;(!H||V>Te)&&(H=re,V=Te)}}return H||(H=u[u.length-1]),H.from<_&&(H={from:_,to:H.to,level:H.level}),H.to>T&&(H={from:H.from,to:T,level:H.level}),H}var Lo;function gs(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(Lo==null){Lo=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Lo.appendChild(document.createTextNode("x")),Lo.appendChild(k("br"));Lo.appendChild(document.createTextNode("x"))}S(n.measure,Lo);var a=Lo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),$(n.measure),a||1}function ms(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");S(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function Uf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=g.offsetLeft+g.clientLeft+u,l[x]=g.clientWidth}return{fixedPos:Vf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Vf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Hg(n){var i=gs(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/ms(n.display)-3);return function(u){if(ji(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 Gf(n){var i=n.doc,a=Hg(n);i.iter(function(l){var u=a(l);u!=l.height&&er(l,u)})}function Mo(n,i,a,l){var u=n.display;if(!a&&ml(i).getAttribute("cm-not-content")=="true")return null;var g,y,x=u.lineSpace.getBoundingClientRect();try{g=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var _=Wf(n,g,y),T;if(l&&_.xRel>0&&(T=We(n.doc,_.line).text).length==_.ch){var H=ie(T,T.length,n.options.tabSize)-T.length;_=fe(_.line,Math.max(0,Math.round((g-Eg(n.display).left)/ms(n.display))-H))}return _}function No(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 En(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)ai&&Pf(n.doc,i)<u.viewTo&&qi(n);else if(a<=u.viewFrom)ai&&vg(n.doc,a+l)>u.viewFrom?qi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)qi(n);else if(i<=u.viewFrom){var g=mc(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):qi(n)}else if(a>=u.viewTo){var y=mc(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):qi(n)}else{var x=mc(n,i,i,-1),_=mc(n,a,a+l,1);x&&_?(u.view=u.view.slice(0,x.index).concat(dc(n,x.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):qi(n)}var T=u.externalMeasured;T&&(a<T.lineN?T.lineN+=l:i<T.lineN+T.size&&(u.externalMeasured=null))}function Wi(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[No(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);ce(y,a)==-1&&y.push(a)}}}function qi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function mc(n,i,a,l){var u=No(n,i),g,y=n.display.view;if(!ai||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,_=0;_<u;_++)x+=y[_].size;if(x!=i){if(l>0){if(u==y.length-1)return null;g=x+y[u].size-i,u++}else g=x-i;i+=g,a+=g}for(;Pf(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 qk(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=dc(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=dc(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(No(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(dc(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,No(n,a)))),l.viewTo=a}function Bg(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 Cl(n){n.display.input.showSelection(n.display.input.prepareSelection())}function jg(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 x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var _=a.sel.ranges[x];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var T=_.empty();if(y){var H=y(n,_);H&&Kf(n,H,u)}else(T||n.options.showCursorWhenSelecting)&&Kf(n,_.head,u);T||Uk(n,_,g)}}return l}function Kf(n,i,a){var l=Cr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("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=gc(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function vc(n,i){return n.top-i.top||n.left-i.left}function Uk(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Eg(n.display),x=y.left,_=Math.max(l.sizerWidth,Ao(n)-l.sizer.offsetLeft)-y.right,T=u.direction=="ltr";function H($e,Fe,Ze,Ge){Fe<0&&(Fe=0),Fe=Math.round(Fe),Ge=Math.round(Ge),g.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+$e+`px;
26
+ top: `+Fe+"px; width: "+(Ze??_-$e)+`px;
27
+ height: `+(Ge-Fe)+"px"))}function V($e,Fe,Ze){var Ge=We(u,$e),lt=Ge.text.length,Tt,rn;function $t(Ut,Mn){return gc(n,fe($e,Ut),"div",Ge,Mn)}function Un(Ut,Mn,ln){var Xt=Fg(n,Ge,null,Ut),Vt=Mn=="ltr"==(ln=="after")?"left":"right",Dt=ln=="after"?Xt.begin:Xt.end-(/\s/.test(Ge.text.charAt(Xt.end-1))?2:1);return $t(Dt,Vt)[Vt]}var Ln=at(Ge,u.direction);return Bn(Ln,Fe||0,Ze??lt,function(Ut,Mn,ln,Xt){var Vt=ln=="ltr",Dt=$t(Ut,Vt?"left":"right"),Nn=$t(Mn-1,Vt?"right":"left"),Ls=Fe==null&&Ut==0,Yi=Ze==null&&Mn==lt,hn=Xt==0,Kr=!Ln||Xt==Ln.length-1;if(Nn.top-Dt.top<=3){var on=(T?Ls:Yi)&&hn,xd=(T?Yi:Ls)&&Kr,hi=on?x:(Vt?Dt:Nn).left,Io=xd?_:(Vt?Nn:Dt).right;H(hi,Dt.top,Io-hi,Dt.bottom)}else{var Do,wn,Ms,kd;Vt?(Do=T&&Ls&&hn?x:Dt.left,wn=T?_:Un(Ut,ln,"before"),Ms=T?x:Un(Mn,ln,"after"),kd=T&&Yi&&Kr?_:Nn.right):(Do=T?Un(Ut,ln,"before"):x,wn=!T&&Ls&&hn?_:Dt.right,Ms=!T&&Yi&&Kr?x:Nn.left,kd=T?Un(Mn,ln,"after"):_),H(Do,Dt.top,wn-Do,Dt.bottom),Dt.bottom<Nn.top&&H(x,Dt.bottom,null,Nn.top),H(Ms,Nn.top,kd-Ms,Nn.bottom)}(!Tt||vc(Dt,Tt)<0)&&(Tt=Dt),vc(Nn,Tt)<0&&(Tt=Nn),(!rn||vc(Dt,rn)<0)&&(rn=Dt),vc(Nn,rn)<0&&(rn=Nn)}),{start:Tt,end:rn}}var le=i.from(),re=i.to();if(le.line==re.line)V(le.line,le.ch,re.ch);else{var pe=We(u,le.line),we=We(u,re.line),Te=Tr(pe)==Tr(we),Ne=V(le.line,le.ch,Te?pe.text.length+1:null).end,De=V(re.line,Te?0:null,re.ch).start;Te&&(Ne.top<De.top-2?(H(Ne.right,Ne.top,null,Ne.bottom),H(x,De.top,De.left,De.bottom)):H(Ne.right,Ne.top,De.left-Ne.right,Ne.bottom)),Ne.bottom<De.top&&H(x,Ne.bottom,null,De.top)}a.appendChild(g)}function Xf(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()||vs(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Wg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Zf(n))}function Yf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&vs(n))},100)}function Zf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Pt(n,"focus",n,i),n.state.focused=!0,_e(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),m&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Xf(n))}function vs(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Pt(n,"blur",n,i),n.state.focused=!1,P(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function yc(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 x=i.view[y],_=n.options.lineWrapping,T=void 0,H=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var V=x.node.offsetTop+x.node.offsetHeight;T=V-a,a=V}else{var le=x.node.getBoundingClientRect();T=le.bottom-le.top,!_&&x.text.firstChild&&(H=x.text.firstChild.getBoundingClientRect().right-le.left-1)}var re=x.line.height-T;if((re>.005||re<-.005)&&(u<l&&(g-=re),er(x.line,T),qg(x.line),x.rest))for(var pe=0;pe<x.rest.length;pe++)qg(x.rest[pe]);if(H>n.display.sizerWidth){var we=Math.ceil(H/ms(n.display));we>n.display.maxLineLength&&(n.display.maxLineLength=we,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function qg(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 bc(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-hc(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=U(i,l),y=U(i,u);if(a&&a.ensure){var x=a.ensure.from.line,_=a.ensure.to.line;x<g?(g=x,y=U(i,ci(We(i,x))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(g=U(i,ci(We(i,_))-n.wrapper.clientHeight),y=_)}return{from:g,to:Math.max(y,g+1)}}function Vk(n,i){if(!Rt(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&&!L){var y=k("div","​",null,`position: absolute;
28
+ top: `+(i.top-a.viewOffset-hc(n.display))+`px;
29
+ height: `+(i.bottom-i.top+Vr(n)+a.barHeight)+`px;
30
+ 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 Gk(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?fe(i.line,i.ch+1,"before"):i,i=i.ch?fe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=Cr(n,i),_=!a||a==i?x:Cr(n,a);u={left:Math.min(x.left,_.left),top:Math.min(x.top,_.top)-l,right:Math.max(x.left,_.left),bottom:Math.max(x.bottom,_.bottom)+l};var T=Jf(n,u),H=n.doc.scrollTop,V=n.doc.scrollLeft;if(T.scrollTop!=null&&(Al(n,T.scrollTop),Math.abs(n.doc.scrollTop-H)>1&&(y=!0)),T.scrollLeft!=null&&($o(n,T.scrollLeft),Math.abs(n.doc.scrollLeft-V)>1&&(y=!0)),!y)break}return u}function Kk(n,i){var a=Jf(n,i);a.scrollTop!=null&&Al(n,a.scrollTop),a.scrollLeft!=null&&$o(n,a.scrollLeft)}function Jf(n,i){var a=n.display,l=gs(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=Ff(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+zf(a),_=i.top<l,T=i.bottom>x-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+g){var H=Math.min(i.top,(T?x:i.bottom)-g);H!=u&&(y.scrollTop=H)}var V=n.options.fixedGutter?0:a.gutters.offsetWidth,le=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-V,re=Ao(n)-a.gutters.offsetWidth,pe=i.right-i.left>re;return pe&&(i.right=i.left+re),i.left<10?y.scrollLeft=0:i.left<le?y.scrollLeft=Math.max(0,i.left+V-(pe?0:10)):i.right>re+le-3&&(y.scrollLeft=i.right+(pe?0:10)-re),y}function Qf(n,i){i!=null&&(wc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function ys(n){wc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function El(n,i,a){(i!=null||a!=null)&&wc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Xk(n,i){wc(n),n.curOp.scrollToPos=i}function wc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Dg(n,i.from),l=Dg(n,i.to);Ug(n,a,l,i.margin)}}function Ug(n,i,a,l){var u=Jf(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});El(n,u.scrollLeft,u.scrollTop)}function Al(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||td(n,{top:i}),Vg(n,i,!0),s&&td(n),Nl(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 $o(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,Zg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function Ll(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+zf(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+Vr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var Oo=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Ye(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Ye(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Oo.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}},Oo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Oo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Oo.prototype.zeroWidthHack=function(){var n=I&&!N?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ae,this.disableVert=new ae},Oo.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)},Oo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Ml=function(){};Ml.prototype.update=function(){return{bottom:0,right:0}},Ml.prototype.setScrollLeft=function(){},Ml.prototype.setScrollTop=function(){},Ml.prototype.clear=function(){};function bs(n,i){i||(i=Ll(n));var a=n.display.barWidth,l=n.display.barHeight;Gg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&yc(n),Gg(n,Ll(n)),a=n.display.barWidth,l=n.display.barHeight}function Gg(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 Kg={native:Oo,null:Ml};function Xg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&P(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Kg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Ye(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"?$o(n,i):Al(n,i)},n),n.display.scrollbars.addClass&&_e(n.display.wrapper,n.display.scrollbars.addClass)}var Yk=0;function Po(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:++Yk,markArrays:null},Ek(n.curOp)}function Ro(n){var i=n.curOp;i&&Lk(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Zk(a)})}function Zk(n){for(var i=n.ops,a=0;a<i.length;a++)Jk(i[a]);for(var l=0;l<i.length;l++)Qk(i[l]);for(var u=0;u<i.length;u++)e_(i[u]);for(var g=0;g<i.length;g++)t_(i[g]);for(var y=0;y<i.length;y++)n_(i[y])}function Jk(n){var i=n.cm,a=i.display;i_(i),n.updateMaxLine&&If(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 xc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Qk(n){n.updatedDisplay=n.mustUpdate&&ed(n.cm,n.update)}function e_(n){var i=n.cm,a=i.display;n.updatedDisplay&&yc(i),n.barMeasure=Ll(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Lg(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+Vr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-Ao(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function t_(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&$o(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ve(Ue(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&bs(i,n.barMeasure),n.updatedDisplay&&rd(i,n.barMeasure),n.selectionChanged&&Xf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Wg(n.cm)}function n_(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&Yg(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&&$o(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Gk(i,rt(l,n.scrollToPos.from),rt(l,n.scrollToPos.to),n.scrollToPos.margin);Vk(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||Pt(g[x],"hide");if(y)for(var _=0;_<y.length;++_)y[_].lines.length&&Pt(y[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Pt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function qn(n,i){if(n.curOp)return i();Po(n);try{return i()}finally{Ro(n)}}function tn(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Po(n);try{return i.apply(n,arguments)}finally{Ro(n)}}}function bn(n){return function(){if(this.curOp)return n.apply(this,arguments);Po(this);try{return n.apply(this,arguments)}finally{Ro(this)}}}function nn(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Po(i);try{return n.apply(this,arguments)}finally{Ro(i)}}}function Nl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,F(r_,n))}function r_(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=wl(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,x=g.text.length>n.options.maxHighlightLength?qr(i.mode,l.state):null,_=rg(n,g,l,!0);x&&(l.state=x),g.styles=_.styles;var T=g.styleClasses,H=_.classes;H?g.styleClasses=H:T&&(g.styleClasses=null);for(var V=!y||y.length!=g.styles.length||T!=H&&(!T||!H||T.bgClass!=H.bgClass||T.textClass!=H.textClass),le=0;!V&&le<y.length;++le)V=y[le]!=g.styles[le];V&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Mf(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return Nl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&qn(n,function(){for(var g=0;g<u.length;g++)Wi(n,u[g],"text")})}}var xc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=bc(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Ao(n),this.force=a,this.dims=Uf(n),this.events=[]};xc.prototype.signal=function(n,i){Wn(n,i)&&this.events.push(arguments)},xc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Pt.apply(null,this.events[n])};function i_(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Vr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Vr(n)+"px",i.scrollbarsClipped=!0)}function o_(n){if(n.hasFocus())return null;var i=ve(Ue(n));if(!i||!Y(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Pe(n).getSelection();l.anchorNode&&l.extend&&Y(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function s_(n){if(!(!n||!n.activeElt||n.activeElt==ve(He(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&Y(document.body,n.anchorNode)&&Y(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 ed(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return qi(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&&Bg(n)==0)return!1;Jg(n)&&(qi(n),i.dims=Uf(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)),ai&&(g=Pf(n.doc,g),y=vg(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;qk(n,g,y),a.viewOffset=ci(We(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=Bg(n);if(!x&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var T=o_(n);return _>4&&(a.lineDiv.style.display="none"),l_(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,s_(T),$(a.cursorDiv),$(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,Nl(n,400)),a.updateLineNumbers=null,!0}function Yg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==Ao(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+zf(n.display)-Ff(n),a.top)}),i.visible=bc(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=bc(n.display,n.doc,a));if(!ed(n,i))break;yc(n);var u=Ll(n);Cl(n),bs(n,u),rd(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 td(n,i){var a=new xc(n,i);if(ed(n,a)){yc(n),Yg(n,a);var l=Ll(n);Cl(n),bs(n,l),rd(n,l),a.finish()}}function l_(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(pe){var we=pe.nextSibling;return m&&I&&n.display.currentWheelTarget==pe?pe.style.display="none":pe.parentNode.removeChild(pe),we}for(var _=l.view,T=l.viewFrom,H=0;H<_.length;H++){var V=_[H];if(!V.hidden)if(!V.node||V.node.parentNode!=g){var le=Pk(n,V,T,a);g.insertBefore(le,y)}else{for(;y!=V.node;)y=x(y);var re=u&&i!=null&&i<=T&&V.lineNumber;V.changes&&(ce(V.changes,"gutter")>-1&&(re=!1),kg(n,V,T,a)),re&&($(V.lineNumber),V.lineNumber.appendChild(document.createTextNode(Se(n.options,T)))),y=V.node.nextSibling}T+=V.size}for(;y;)y=x(y)}function nd(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",en(n,"gutterChanged",n)}function rd(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+Vr(n)+"px"}function Zg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Vf(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 x=a[y].alignable;if(x)for(var _=0;_<x.length;_++)x[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function Jg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=Se(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("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",nd(n.display),!0}return!1}function id(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 Qg(n){var i=n.gutters,a=n.gutterSpecs;$(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,x=i.appendChild(k("div",null,"CodeMirror-gutter "+g));y&&(x.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",nd(n)}function $l(n){Qg(n.display),En(n),Zg(n)}function a_(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=M("div",null,"CodeMirror-code"),u.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=k("div",null,"CodeMirror-cursors"),u.measure=k("div",null,"CodeMirror-measure"),u.lineMeasure=k("div",null,"CodeMirror-measure"),u.lineSpace=M("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=M("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[g],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+D+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&w>=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),!m&&!(s&&C)&&(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=id(l.gutters,l.lineNumbers),Qg(u),a.init(u)}var kc=0,fi=null;h?fi=-.53:s?fi=15:b?fi=-.7:A&&(fi=-1/3);function em(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 c_(n){var i=em(n);return i.x*=fi,i.y*=fi,i}function tm(n,i){b&&w==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=em(i),l=a.x,u=a.y,g=fi;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,x=y.scroller,_=x.scrollWidth>x.clientWidth,T=x.scrollHeight>x.clientHeight;if(l&&_||u&&T){if(u&&I&&m){e:for(var H=i.target,V=y.view;H!=x;H=H.parentNode)for(var le=0;le<V.length;le++)if(V[le].node==H){n.display.currentWheelTarget=H;break e}}if(l&&!s&&!O&&g!=null){u&&T&&Al(n,Math.max(0,x.scrollTop+u*g)),$o(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&T)&&fn(i),y.wheelStartX=null;return}if(u&&g!=null){var re=u*g,pe=n.doc.scrollTop,we=pe+y.wrapper.clientHeight;re<0?pe=Math.max(0,pe+re-50):we=Math.min(n.doc.height,we+re+50),td(n,{top:pe,bottom:we})}kc<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=x.scrollLeft,y.wheelStartY=x.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var Te=x.scrollLeft-y.wheelStartX,Ne=x.scrollTop-y.wheelStartY,De=Ne&&y.wheelDY&&Ne/y.wheelDY||Te&&y.wheelDX&&Te/y.wheelDX;y.wheelStartX=y.wheelStartY=null,De&&(fi=(fi*kc+De)/(kc+1),++kc)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var tr=function(n,i){this.ranges=n,this.primIndex=i};tr.prototype.primary=function(){return this.ranges[this.primIndex]},tr.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},tr.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Qt(this.ranges[i].anchor),Qt(this.ranges[i].head));return new tr(n,this.primIndex)},tr.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},tr.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ie(i,l.from())>=0&&Ie(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return fs(this.anchor,this.head)},gt.prototype.to=function(){return Cn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Er(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(le,re){return Ie(le.from(),re.from())}),a=ce(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],_=Ie(x.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var T=fs(x.from(),y.from()),H=Cn(x.to(),y.to()),V=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new gt(V?H:T,V?T:H))}}return new tr(i,a)}function Ui(n,i){return new tr([new gt(n,i||n)],0)}function Vi(n){return n.text?fe(n.from.line+n.text.length-1,xe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function nm(n,i){if(Ie(n,i.from)<0)return n;if(Ie(n,i.to)<=0)return Vi(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+=Vi(i).ch-i.to.ch),fe(a,l)}function od(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(nm(u.anchor,i),nm(u.head,i)))}return Er(n.cm,a,n.sel.primIndex)}function rm(n,i,a){return n.line==i.line?fe(a.line,n.ch-i.ch+a.ch):fe(a.line+(n.line-i.line),n.ch)}function u_(n,i,a){for(var l=[],u=fe(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],_=rm(x.from,u,g),T=rm(Vi(x),u,g);if(u=x.to,g=T,a=="around"){var H=n.sel.ranges[y],V=Ie(H.head,H.anchor)<0;l[y]=new gt(V?T:_,V?_:T)}else l[y]=new gt(_,_)}return new tr(l,n.sel.primIndex)}function sd(n){n.doc.mode=as(n.options,n.doc.modeOption),Ol(n)}function Ol(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,Nl(n,100),n.state.modeGen++,n.curOp&&En(n)}function im(n,i){return i.from.ch==0&&i.to.ch==0&&xe(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function ld(n,i,a,l){function u(De){return a?a[De]:null}function g(De,$e,Fe){yk(De,$e,Fe,l),en(De,"change",De,i)}function y(De,$e){for(var Fe=[],Ze=De;Ze<$e;++Ze)Fe.push(new ds(T[Ze],u(Ze),l));return Fe}var x=i.from,_=i.to,T=i.text,H=We(n,x.line),V=We(n,_.line),le=xe(T),re=u(T.length-1),pe=_.line-x.line;if(i.full)n.insert(0,y(0,T.length)),n.remove(T.length,n.size-T.length);else if(im(n,i)){var we=y(0,T.length-1);g(V,V.text,re),pe&&n.remove(x.line,pe),we.length&&n.insert(x.line,we)}else if(H==V)if(T.length==1)g(H,H.text.slice(0,x.ch)+le+H.text.slice(_.ch),re);else{var Te=y(1,T.length-1);Te.push(new ds(le+H.text.slice(_.ch),re,l)),g(H,H.text.slice(0,x.ch)+T[0],u(0)),n.insert(x.line+1,Te)}else if(T.length==1)g(H,H.text.slice(0,x.ch)+T[0]+V.text.slice(_.ch),u(0)),n.remove(x.line+1,pe);else{g(H,H.text.slice(0,x.ch)+T[0],u(0)),g(V,le+V.text.slice(_.ch),re);var Ne=y(1,T.length-1);pe>1&&n.remove(x.line+1,pe-1),n.insert(x.line+1,Ne)}en(n,"change",n,i)}function Gi(n,i,a){function l(u,g,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var _=u.linked[x];if(_.doc!=g){var T=y&&_.sharedHist;a&&!T||(i(_.doc,T),l(_.doc,u,T))}}}l(n,null,!0)}function om(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Gf(n),sd(n),sm(n),n.options.direction=i.direction,n.options.lineWrapping||If(n),n.options.mode=i.modeOption,En(n)}function sm(n){(n.doc.direction=="rtl"?_e:P)(n.display.lineDiv,"CodeMirror-rtl")}function f_(n){qn(n,function(){sm(n),En(n)})}function _c(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 ad(n,i){var a={from:Qt(i.from),to:Vi(i),text:li(n,i.from,i.to)};return cm(n,a,i.from.line,i.to.line+1),Gi(n,function(l){return cm(l,a,i.from.line,i.to.line+1)},!0),a}function lm(n){for(;n.length;){var i=xe(n);if(i.ranges)n.pop();else break}}function d_(n,i){if(i)return lm(n.done),xe(n.done);if(n.done.length&&!xe(n.done).ranges)return xe(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),xe(n.done)}function am(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,x;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=d_(u,u.lastOp==l)))x=xe(y.changes),Ie(i.from,i.to)==0&&Ie(i.from,x.to)==0?x.to=Vi(i):y.changes.push(ad(n,i));else{var _=xe(u.done);for((!_||!_.ranges)&&Sc(n.sel,u.done),y={changes:[ad(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,x||Pt(n,"historyAdded")}function h_(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 p_(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||h_(n,g,xe(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&&lm(u.undone)}function Sc(n,i){var a=xe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function cm(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 g_(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 m_(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(g_(a[u]));return l}function um(n,i){var a=m_(n,i),l=$f(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 x=0;x<y.length;++x){for(var _=y[x],T=0;T<g.length;++T)if(g[T].marker==_.marker)continue e;g.push(_)}else y&&(a[u]=y)}return a}function ws(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?tr.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var _=0;_<y.length;++_){var T=y[_],H=void 0;if(x.push({from:T.from,to:T.to,text:T.text}),i)for(var V in T)(H=V.match(/^spans_(\d+)$/))&&ce(i,Number(H[1]))>-1&&(xe(x)[V]=T[V],delete T[V])}}return l}function cd(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Ie(i,u)<0;g!=Ie(a,u)<0?(u=i,i=a):g!=Ie(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function Tc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),dn(n,new tr([cd(n.sel.primary(),i,a,u)],0),l)}function fm(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]=cd(n.sel.ranges[g],i[g],null,u);var y=Er(n.cm,l,n.sel.primIndex);dn(n,y,a)}function ud(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,dn(n,Er(n.cm,u,n.sel.primIndex),l)}function dm(n,i,a,l){dn(n,Ui(i,a),l)}function v_(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(rt(n,u[g].anchor),rt(n,u[g].head))},origin:a&&a.origin};return Pt(n,"beforeSelectionChange",n,l),n.cm&&Pt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?Er(n.cm,l.ranges,l.ranges.length-1):i}function hm(n,i,a){var l=n.history.done,u=xe(l);u&&u.ranges?(l[l.length-1]=i,Cc(n,i,a)):dn(n,i,a)}function dn(n,i,a){Cc(n,i,a),p_(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Cc(n,i,a){(Wn(n,"beforeSelectionChange")||n.cm&&Wn(n.cm,"beforeSelectionChange"))&&(i=v_(n,i,a));var l=a&&a.bias||(Ie(i.primary().head,n.sel.primary().head)<0?-1:1);pm(n,mm(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&ys(n.cm)}function pm(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,dr(n.cm)),en(n,"cursorActivity",n))}function gm(n){pm(n,mm(n,n.sel,null,!1))}function mm(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=Ec(n,y.anchor,x&&x.anchor,a,l),T=y.head==y.anchor?_:Ec(n,y.head,x&&x.head,a,l);(u||_!=y.anchor||T!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new gt(_,T))}return u?Er(n.cm,u,i.primIndex):i}function xs(n,i,a,l,u){var g=We(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],_=x.marker,T="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,H="selectRight"in _?!_.selectRight:_.inclusiveRight;if((x.from==null||(T?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(H?x.to>=i.ch:x.to>i.ch))){if(u&&(Pt(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!_.atomic)continue;if(a){var V=_.find(l<0?1:-1),le=void 0;if((l<0?H:T)&&(V=vm(n,V,-l,V&&V.line==i.line?g:null)),V&&V.line==i.line&&(le=Ie(V,a))&&(l<0?le<0:le>0))return xs(n,V,i,l,u)}var re=_.find(l<0?-1:1);return(l<0?T:H)&&(re=vm(n,re,l,re.line==i.line?g:null)),re?xs(n,re,i,l,u):null}}return i}function Ec(n,i,a,l,u){var g=l||1,y=xs(n,i,a,g,u)||!u&&xs(n,i,a,g,!0)||xs(n,i,a,-g,u)||!u&&xs(n,i,a,-g,!0);return y||(n.cantEdit=!0,fe(n.first,0))}function vm(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?rt(n,fe(i.line-1)):null:a>0&&i.ch==(l||We(n,i.line)).text.length?i.line<n.first+n.size-1?fe(i.line+1,0):null:new fe(i.line,i.ch+a)}function ym(n){n.setSelection(fe(n.firstLine(),0),fe(n.lastLine()),te)}function bm(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,x){u&&(l.from=rt(n,u)),g&&(l.to=rt(n,g)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),Pt(n,"beforeChange",n,l),n.cm&&Pt(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 ks(n,i,a){if(n.cm){if(!n.cm.curOp)return tn(n.cm,ks)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Wn(n,"beforeChange")||n.cm&&Wn(n.cm,"beforeChange"))&&(i=bm(n,i,!0),!i))){var l=ug&&!a&&pk(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)wm(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else wm(n,i)}}function wm(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ie(i.from,i.to)==0)){var a=od(n,i);am(n,i,a,n.cm?n.cm.curOp.id:NaN),Pl(n,i,a,$f(n,i));var l=[];Gi(n,function(u,g){!g&&ce(l,u.history)==-1&&(Sm(u.history,i),l.push(u.history)),Pl(u,i,null,$f(u,i))})}}function Ac(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,x=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,T=0;T<x.length&&(g=x[T],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));T++);if(T!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=x.pop(),g.ranges){if(Sc(g,_),a&&!g.equals(n.sel)){dn(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var H=[];Sc(y,_),_.push({changes:H,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var V=Wn(n,"beforeChange")||n.cm&&Wn(n.cm,"beforeChange"),le=function(we){var Te=g.changes[we];if(Te.origin=i,V&&!bm(n,Te,!1))return x.length=0,{};H.push(ad(n,Te));var Ne=we?od(n,Te):xe(x);Pl(n,Te,Ne,um(n,Te)),!we&&n.cm&&n.cm.scrollIntoView({from:Te.from,to:Vi(Te)});var De=[];Gi(n,function($e,Fe){!Fe&&ce(De,$e.history)==-1&&(Sm($e.history,Te),De.push($e.history)),Pl($e,Te,null,um($e,Te))})},re=g.changes.length-1;re>=0;--re){var pe=le(re);if(pe)return pe.v}}}}function xm(n,i){if(i!=0&&(n.first+=i,n.sel=new tr(be(n.sel.ranges,function(u){return new gt(fe(u.anchor.line+i,u.anchor.ch),fe(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){En(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Wi(n.cm,l,"gutter")}}function Pl(n,i,a,l){if(n.cm&&!n.cm.curOp)return tn(n.cm,Pl)(n,i,a,l);if(i.to.line<n.first){xm(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);xm(n,u),i={from:fe(n.first,0),to:fe(i.to.line+u,i.to.ch),text:[xe(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:fe(g,We(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=li(n,i.from,i.to),a||(a=od(n,i)),n.cm?y_(n.cm,i,l):ld(n,i,l),Cc(n,a,te),n.cantEdit&&Ec(n,fe(n.firstLine(),0))&&(n.cantEdit=!1)}}function y_(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,_=g.line;n.options.lineWrapping||(_=E(Tr(We(l,g.line))),l.iter(_,y.line+1,function(re){if(re==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&dr(n),ld(l,i,a,Hg(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(re){var pe=fc(re);pe>u.maxLineLength&&(u.maxLine=re,u.maxLineLength=pe,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),lk(l,g.line),Nl(n,400);var T=i.text.length-(y.line-g.line)-1;i.full?En(n):g.line==y.line&&i.text.length==1&&!im(n.doc,i)?Wi(n,g.line,"text"):En(n,g.line,y.line+1,T);var H=Wn(n,"changes"),V=Wn(n,"change");if(V||H){var le={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};V&&en(n,"change",n,le),H&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(le)}n.display.selForContextMenu=null}function _s(n,i,a,l,u){var g;l||(l=a),Ie(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),ks(n,{from:a,to:l,text:i,origin:u})}function km(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function _m(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 x=0;x<g.ranges.length;x++)km(g.ranges[x].anchor,i,a,l),km(g.ranges[x].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var T=g.changes[_];if(a<T.from.line)T.from=fe(T.from.line+l,T.from.ch),T.to=fe(T.to.line+l,T.to.ch);else if(i<=T.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Sm(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;_m(n.done,a,l,u),_m(n.undone,a,l,u)}function Rl(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=We(n,tg(n,i)):u=E(i),u==null?null:(l(g,u)&&n.cm&&Wi(n.cm,u,a),g)}function Il(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}Il.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,bk(u),en(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 Dl(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}Dl.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 Il))){var x=[];this.collapse(x),this.children=[new Il(x)],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,x=y;x<u.lines.length;){var _=new Il(u.lines.slice(x,x+=25));u.height-=_.height,this.children.splice(++l,0,_),_.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 Dl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=ce(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new Dl(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 zl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};zl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=E(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=Sl(this);er(a,Math.max(0,a.height-g)),n&&(qn(n,function(){Tm(n,a,-g),Wi(n,l,"widget")}),en(n,"lineWidgetCleared",n,this,l))}},zl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Sl(this)-i;u&&(ji(this.doc,l)||er(l,l.height+u),a&&qn(a,function(){a.curOp.forceUpdate=!0,Tm(a,l,u),en(a,"lineWidgetChanged",a,n,E(l))}))},wr(zl);function Tm(n,i,a){ci(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Qf(n,a)}function b_(n,i,a,l){var u=new zl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),Rl(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!ji(n,y)){var _=ci(y)<n.scrollTop;er(y,y.height+Sl(u)),_&&Qf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&en(g,"lineWidgetAdded",g,u,typeof i=="number"?i:E(i)),u}var Cm=0,Ki=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Cm};Ki.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Po(n),Wn(this,"clear")){var a=this.find();a&&en(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],x=xl(y.markedSpans,this);n&&!this.collapsed?Wi(n,E(y),"text"):n&&(x.to!=null&&(u=E(y)),x.from!=null&&(l=E(y))),y.markedSpans=uk(y.markedSpans,x),x.from==null&&this.collapsed&&!ji(this.doc,y)&&n&&er(y,gs(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var T=Tr(this.lines[_]),H=fc(T);H>n.display.maxLineLength&&(n.display.maxLine=T,n.display.maxLineLength=H,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&En(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&gm(n.doc)),n&&en(n,"markerCleared",n,this,l,u),i&&Ro(n),this.parent&&this.parent.clear()}},Ki.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=xl(g.markedSpans,this);if(y.from!=null&&(a=fe(i?g:E(g),y.from),n==-1))return a;if(y.to!=null&&(l=fe(i?g:E(g),y.to),n==1))return l}return a&&{from:a,to:l}},Ki.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||qn(l,function(){var u=i.line,g=E(i.line),y=Hf(l,g);if(y&&($g(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!ji(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var _=Sl(a)-x;_&&er(u,u.height+_)}en(l,"markerChanged",l,n)})},Ki.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ce(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ki.prototype.detachLine=function(n){if(this.lines.splice(ce(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},wr(Ki);function Ss(n,i,a,l,u){if(l&&l.shared)return w_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return tn(n.cm,Ss)(n,i,a,l,u);var g=new Ki(n,u),y=Ie(i,a);if(l&&J(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=M("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(mg(n,i.line,i,a,g)||i.line!=a.line&&mg(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");ck()}g.addToHistory&&am(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,_=n.cm,T;if(n.iter(x,a.line+1,function(V){_&&g.collapsed&&!_.options.lineWrapping&&Tr(V)==_.display.maxLine&&(T=!0),g.collapsed&&x!=i.line&&er(V,0),fk(V,new lc(g,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),g.collapsed&&n.iter(i.line,a.line+1,function(V){ji(n,V)&&er(V,0)}),g.clearOnEnter&&Ye(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(ak(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Cm,g.atomic=!0),_){if(T&&(_.curOp.updateMaxLine=!0),g.collapsed)En(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var H=i.line;H<=a.line;H++)Wi(_,H,"text");g.atomic&&gm(_.doc),en(_,"markerAdded",_,g)}return g}var Fl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};Fl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();en(this,"clear")}},Fl.prototype.find=function(n,i){return this.primary.find(n,i)},wr(Fl);function w_(n,i,a,l,u){l=J(l),l.shared=!1;var g=[Ss(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Gi(n,function(_){x&&(l.widgetNode=x.cloneNode(!0)),g.push(Ss(_,rt(_,i),rt(_,a),l,u));for(var T=0;T<_.linked.length;++T)if(_.linked[T].isParent)return;y=xe(g)}),new Fl(g,y)}function Em(n){return n.findMarks(fe(n.first,0),n.clipPos(fe(n.lastLine())),function(i){return i.parent})}function x_(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(Ie(g,y)){var x=Ss(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function k_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Gi(u.primary.doc,function(_){return g.push(_)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];ce(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var __=0,An=function(n,i,a,l,u){if(!(this instanceof An))return new An(n,i,a,l,u);a==null&&(a=0),Dl.call(this,[new Il([new ds("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=fe(a,0);this.sel=Ui(g),this.history=new _c(null),this.id=++__,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),ld(this,{from:g,to:g,text:n}),dn(this,Ui(g),te)};An.prototype=oe(Dl.prototype,{constructor:An,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=bl(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:nn(function(n){var i=fe(this.first,0),a=this.first+this.size-1;ks(this,{from:i,to:fe(a,We(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&El(this.cm,0,0),dn(this,Ui(i),te)}),replaceRange:function(n,i,a,l){i=rt(this,i),a=a?rt(this,a):i,_s(this,n,i,a,l)},getRange:function(n,i,a){var l=li(this,rt(this,n),rt(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(ye(this,n))return We(this,n)},getLineNumber:function(n){return E(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=We(this,n)),Tr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return rt(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:nn(function(n,i,a){dm(this,rt(this,typeof n=="number"?fe(n,i||0):n),null,a)}),setSelection:nn(function(n,i,a){dm(this,rt(this,n),rt(this,i||n),a)}),extendSelection:nn(function(n,i,a){Tc(this,rt(this,n),i&&rt(this,i),a)}),extendSelections:nn(function(n,i){fm(this,ng(this,n),i)}),extendSelectionsBy:nn(function(n,i){var a=be(this.sel.ranges,n);fm(this,ng(this,a),i)}),setSelections:nn(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(rt(this,n[u].anchor),rt(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),dn(this,Er(this.cm,l,i),a)}}),addSelection:nn(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(rt(this,n),rt(this,i||n))),dn(this,Er(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=li(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=li(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:nn(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 x=i&&i!="end"&&u_(this,l,i),_=l.length-1;_>=0;_--)ks(this,l[_]);x?hm(this,x):this.cm&&ys(this.cm)}),undo:nn(function(){Ac(this,"undo")}),redo:nn(function(){Ac(this,"redo")}),undoSelection:nn(function(){Ac(this,"undo",!0)}),redoSelection:nn(function(){Ac(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 _c(this.history),Gi(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:ws(this.history.done),undone:ws(this.history.undone)}},setHistory:function(n){var i=this.history=new _c(this.history);i.done=ws(n.done.slice(0),null,!0),i.undone=ws(n.undone.slice(0),null,!0)},setGutterMarker:nn(function(n,i,a){return Rl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&dt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:nn(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Rl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,dt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!ye(this,n)||(i=n,n=We(this,n),!n))return null}else if(i=E(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:nn(function(n,i,a){return Rl(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(G(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:nn(function(n,i,a){return Rl(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(G(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||x==g.length?"":" ")+g.slice(x)||null}else return!1;return!0})}),addLineWidget:nn(function(n,i,a){return b_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return Ss(this,rt(this,n),rt(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=rt(this,n),Ss(this,n,n,a,"bookmark")},findMarksAt:function(n){n=rt(this,n);var i=[],a=We(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=rt(this,n),i=rt(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 x=0;x<y.length;x++){var _=y[x];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.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}),rt(this,fe(a,i))},indexFromPos:function(n){n=rt(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 An(bl(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 An(bl(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}],x_(l,Em(this)),l},unlinkDoc:function(n){if(n instanceof At&&(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),k_(Em(this));break}}if(n.history==this.history){var l=[n.id];Gi(n,function(u){return l.push(u.id)},!0),n.history=new _c(null),n.history.done=ws(this.history.done,l),n.history.undone=ws(this.history.undone,l)}},iterLinkedDocs:function(n){Gi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):hr(n)},lineSeparator:function(){return this.lineSep||`
31
+ `},setDirection:nn(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&f_(this.cm))})}),An.prototype.eachLine=An.prototype.iter;var Am=0;function S_(n){var i=this;if(Lm(i),!(Rt(i,n)||ui(i.display,n))){fn(n),h&&(Am=+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,x=function(){++y==u&&tn(i,function(){a=rt(i.doc,a);var re={from:a,to:a,text:i.doc.splitLines(g.filter(function(pe){return pe!=null}).join(i.doc.lineSeparator())),origin:"paste"};ks(i.doc,re),hm(i.doc,Ui(rt(i.doc,a),rt(i.doc,Vi(re))))})()},_=function(re,pe){if(i.options.allowDropFileTypes&&ce(i.options.allowDropFileTypes,re.type)==-1){x();return}var we=new FileReader;we.onerror=function(){return x()},we.onload=function(){var Te=we.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){x();return}g[pe]=Te,x()},we.readAsText(re)},T=0;T<l.length;T++)_(l[T],T);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 H=n.dataTransfer.getData("Text");if(H){var V;if(i.state.draggingText&&!i.state.draggingText.copy&&(V=i.listSelections()),Cc(i.doc,Ui(a,a)),V)for(var le=0;le<V.length;++le)_s(i.doc,"",V[le].anchor,V[le].head,"drag");i.replaceSelection(H,"around","paste"),i.display.input.focus()}}catch{}}}}function T_(n,i){if(h&&(!n.state.draggingText||+new Date-Am<100)){zi(i);return}if(!(Rt(n,i)||ui(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",O&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),O&&a.parentNode.removeChild(a)}}function C_(n,i){var a=Mo(n,i);if(a){var l=document.createDocumentFragment();Kf(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),S(n.display.dragCursor,l)}}function Lm(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Mm(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 Nm=!1;function E_(){Nm||(A_(),Nm=!0)}function A_(){var n;Ye(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Mm(L_)},100))}),Ye(window,"blur",function(){return Mm(vs)})}function L_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Xi={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"},Hl=0;Hl<10;Hl++)Xi[Hl+48]=Xi[Hl+96]=String(Hl);for(var Lc=65;Lc<=90;Lc++)Xi[Lc]=String.fromCharCode(Lc);for(var Bl=1;Bl<=12;Bl++)Xi[Bl+111]=Xi[Bl+63235]="F"+Bl;var di={};di.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"},di.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"},di.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"},di.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"]},di.default=I?di.macDefault:di.pcDefault;function M_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))g=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function N_(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=be(a.split(" "),M_),g=0;g<u.length;g++){var y=void 0,x=void 0;g==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,g+1).join(" "),y="...");var _=i[x];if(!_)i[x]=y;else if(_!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var T in i)n[T]=i[T];return n}function Ts(n,i,a,l){i=Mc(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 Ts(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=Ts(n,i.fallthrough[g],a,l);if(y)return y}}}function $m(n){var i=typeof n=="string"?n:Xi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Om(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(Q?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(Q?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Pm(n,i){if(O&&n.keyCode==34&&n.char)return!1;var a=Xi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Om(a,n,i))}function Mc(n){return typeof n=="string"?di[n]:n}function Cs(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Ie(g.from,xe(l).to)<=0;){var y=l.pop();if(Ie(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}qn(n,function(){for(var x=l.length-1;x>=0;x--)_s(n.doc,"",l[x].from,l[x].to,"+delete");ys(n)})}function fd(n,i,a){var l=Jt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function dd(n,i,a){var l=fd(n,i.ch,a);return l==null?null:new fe(i.line,l,a<0?"after":"before")}function hd(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=at(a,i.doc.direction);if(g){var y=u<0?xe(g):g[0],x=u<0==(y.level==1),_=x?"after":"before",T;if(y.level>0||i.doc.direction=="rtl"){var H=ps(i,a);T=u<0?a.text.length-1:0;var V=Gr(i,H,T).top;T=qt(function(le){return Gr(i,H,le).top==V},u<0==(y.level==1)?y.from:y.to-1,T),_=="before"&&(T=fd(a,T,1))}else T=u<0?y.to:y.from;return new fe(l,T,_)}}return new fe(l,u<0?a.text.length:0,u<0?"before":"after")}function $_(n,i,a,l){var u=at(i,n.doc.direction);if(!u)return dd(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=Ht(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 dd(i,a,l);var x=function(Ne,De){return fd(i,Ne instanceof fe?Ne.ch:Ne,De)},_,T=function(Ne){return n.options.lineWrapping?(_=_||ps(n,i),Fg(n,i,_,Ne)):{begin:0,end:i.text.length}},H=T(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var V=y.level==1==l<0,le=x(a,V?1:-1);if(le!=null&&(V?le<=y.to&&le<=H.end:le>=y.from&&le>=H.begin)){var re=V?"before":"after";return new fe(a.line,le,re)}}var pe=function(Ne,De,$e){for(var Fe=function(Tt,rn){return rn?new fe(a.line,x(Tt,1),"before"):new fe(a.line,Tt,"after")};Ne>=0&&Ne<u.length;Ne+=De){var Ze=u[Ne],Ge=De>0==(Ze.level!=1),lt=Ge?$e.begin:x($e.end,-1);if(Ze.from<=lt&&lt<Ze.to||(lt=Ge?Ze.from:x(Ze.to,-1),$e.begin<=lt&&lt<$e.end))return Fe(lt,Ge)}},we=pe(g+l,l,H);if(we)return we;var Te=l>0?H.end:x(H.begin,-1);return Te!=null&&!(l>0&&Te==i.text.length)&&(we=pe(l>0?0:u.length-1,l,T(Te)),we)?we:null}var jl={selectAll:ym,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),te)},killLine:function(n){return Cs(n,function(i){if(i.empty()){var a=We(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:fe(i.head.line+1,0)}:{from:i.head,to:fe(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return Cs(n,function(i){return{from:fe(i.from().line,0),to:rt(n.doc,fe(i.to().line+1,0))}})},delLineLeft:function(n){return Cs(n,function(i){return{from:fe(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return Cs(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 Cs(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(fe(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(fe(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Rm(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Im(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return O_(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/)?Im(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=ie(n.getLine(g.line),g.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return qn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=We(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new fe(u.line,u.ch-1)),u.ch>0)u=new fe(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),fe(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=We(n.doc,u.line-1).text;y&&(u=new fe(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),fe(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return qn(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);ys(n)})},openLine:function(n){return n.replaceSelection(`
32
+ `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Rm(n,i){var a=We(n.doc,i),l=Tr(a);return l!=a&&(i=E(l)),hd(!0,n,l,i,1)}function O_(n,i){var a=We(n.doc,i),l=mk(a);return l!=a&&(i=E(l)),hd(!0,n,a,i,-1)}function Im(n,i){var a=Rm(n,i.line),l=We(n.doc,a.line),u=at(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 fe(a.line,y?0:g,a.sticky)}return a}function Nc(n,i,a){if(typeof i=="string"&&(i=jl[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)!=j}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function P_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=Ts(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&Ts(i,n.options.extraKeys,a,n)||Ts(i,n.options.keyMap,a,n)}var R_=new ae;function Wl(n,i,a,l){var u=n.state.keySeq;if(u){if($m(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:R_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Dm(n,u+" "+i,a,l))return!0}return Dm(n,i,a,l)}function Dm(n,i,a,l){var u=P_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&en(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(fn(a),Xf(n)),!!u}function zm(n,i){var a=Pm(i,!0);return a?i.shiftKey&&!n.state.keySeq?Wl(n,"Shift-"+a,i,function(l){return Nc(n,l,!0)})||Wl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Nc(n,l)}):Wl(n,a,i,function(l){return Nc(n,l)}):!1}function I_(n,i,a){return Wl(n,"'"+a+"'",i,function(l){return Nc(n,l,!0)})}var pd=null;function Fm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ve(Ue(i)),!Rt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=zm(i,n);O&&(pd=l?a:null,!l&&a==88&&!oc&&(I?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!I&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&D_(i)}}function D_(n){var i=n.display.lineDiv;_e(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(P(i,"CodeMirror-crosshair"),un(document,"keyup",a),un(document,"mouseover",a))}Ye(document,"keyup",a),Ye(document,"mouseover",a)}function Hm(n){n.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,n)}function Bm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ui(i.display,n)||Rt(i,n)||n.ctrlKey&&!n.altKey||I&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(O&&a==pd){pd=null,fn(n);return}if(!(O&&(!n.which||n.which<10)&&zm(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(I_(i,n,u)||i.display.input.onKeyPress(n))}}}var z_=400,gd=function(n,i,a){this.time=n,this.pos=i,this.button=a};gd.prototype.compare=function(n,i,a){return this.time+z_>n&&Ie(i,this.pos)==0&&a==this.button};var ql,Ul;function F_(n,i){var a=+new Date;return Ul&&Ul.compare(a,n,i)?(ql=Ul=null,"triple"):ql&&ql.compare(a,n,i)?(Ul=new gd(a,n,i),ql=null,"double"):(ql=new gd(a,n,i),Ul=null,"single")}function jm(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ui(a,n)){m||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!md(i,n)){var l=Mo(i,n),u=xr(n),g=l?F_(l,u):"single";Pe(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&H_(i,u,l,g,n))&&(u==1?l?j_(i,l,g,n):ml(n)==a.scroller&&fn(n):u==2?(l&&Tc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(K?i.display.input.onContextMenu(n):Yf(i)))}}}function H_(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,Wl(n,Om(g,u),u,function(y){if(typeof y=="string"&&(y=jl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=j}finally{n.state.suppressEdits=!1}return x})}function B_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=W?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=I?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(I?a.altKey:a.ctrlKey)),u}function j_(n,i,a,l){h?setTimeout(F(Wg,n),0):n.curOp.focus=ve(Ue(n));var u=B_(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Af&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Ie((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ie(y.to(),i)>0||i.xRel<0)?W_(n,l,i,u):q_(n,l,i,u)}function W_(n,i,a,l){var u=n.display,g=!1,y=tn(n,function(T){m&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Yf(n)),un(u.wrapper.ownerDocument,"mouseup",y),un(u.wrapper.ownerDocument,"mousemove",x),un(u.scroller,"dragstart",_),un(u.scroller,"drop",y),g||(fn(T),l.addNew||Tc(n.doc,a,null,null,l.extend),m&&!A||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(T){g=g||Math.abs(i.clientX-T.clientX)+Math.abs(i.clientY-T.clientY)>=10},_=function(){return g=!0};m&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Ye(u.wrapper.ownerDocument,"mouseup",y),Ye(u.wrapper.ownerDocument,"mousemove",x),Ye(u.scroller,"dragstart",_),Ye(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Wm(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(fe(i.line,0),rt(n.doc,fe(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function q_(n,i,a,l){h&&Yf(n);var u=n.display,g=n.doc;fn(i);var y,x,_=g.sel,T=_.ranges;if(l.addNew&&!l.extend?(x=g.sel.contains(a),x>-1?y=T[x]:y=new gt(a,a)):(y=g.sel.primary(),x=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=Mo(n,i,!0,!0),x=-1;else{var H=Wm(n,a,l.unit);l.extend?y=cd(y,H.anchor,H.head,l.extend):y=H}l.addNew?x==-1?(x=T.length,dn(g,Er(n,T.concat([y]),x),{scroll:!1,origin:"*mouse"})):T.length>1&&T[x].empty()&&l.unit=="char"&&!l.extend?(dn(g,Er(n,T.slice(0,x).concat(T.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):ud(g,x,y,de):(x=0,dn(g,new tr([y],0),de),_=g.sel);var V=a;function le($e){if(Ie(V,$e)!=0)if(V=$e,l.unit=="rectangle"){for(var Fe=[],Ze=n.options.tabSize,Ge=ie(We(g,a.line).text,a.ch,Ze),lt=ie(We(g,$e.line).text,$e.ch,Ze),Tt=Math.min(Ge,lt),rn=Math.max(Ge,lt),$t=Math.min(a.line,$e.line),Un=Math.min(n.lastLine(),Math.max(a.line,$e.line));$t<=Un;$t++){var Ln=We(g,$t).text,Ut=ge(Ln,Tt,Ze);Tt==rn?Fe.push(new gt(fe($t,Ut),fe($t,Ut))):Ln.length>Ut&&Fe.push(new gt(fe($t,Ut),fe($t,ge(Ln,rn,Ze))))}Fe.length||Fe.push(new gt(a,a)),dn(g,Er(n,_.ranges.slice(0,x).concat(Fe),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView($e)}else{var Mn=y,ln=Wm(n,$e,l.unit),Xt=Mn.anchor,Vt;Ie(ln.anchor,Xt)>0?(Vt=ln.head,Xt=fs(Mn.from(),ln.anchor)):(Vt=ln.anchor,Xt=Cn(Mn.to(),ln.head));var Dt=_.ranges.slice(0);Dt[x]=U_(n,new gt(rt(g,Xt),Vt)),dn(g,Er(n,Dt,x),de)}}var re=u.wrapper.getBoundingClientRect(),pe=0;function we($e){var Fe=++pe,Ze=Mo(n,$e,!0,l.unit=="rectangle");if(Ze)if(Ie(Ze,V)!=0){n.curOp.focus=ve(Ue(n)),le(Ze);var Ge=bc(u,g);(Ze.line>=Ge.to||Ze.line<Ge.from)&&setTimeout(tn(n,function(){pe==Fe&&we($e)}),150)}else{var lt=$e.clientY<re.top?-20:$e.clientY>re.bottom?20:0;lt&&setTimeout(tn(n,function(){pe==Fe&&(u.scroller.scrollTop+=lt,we($e))}),50)}}function Te($e){n.state.selectingText=!1,pe=1/0,$e&&(fn($e),u.input.focus()),un(u.wrapper.ownerDocument,"mousemove",Ne),un(u.wrapper.ownerDocument,"mouseup",De),g.history.lastSelOrigin=null}var Ne=tn(n,function($e){$e.buttons===0||!xr($e)?Te($e):we($e)}),De=tn(n,Te);n.state.selectingText=De,Ye(u.wrapper.ownerDocument,"mousemove",Ne),Ye(u.wrapper.ownerDocument,"mouseup",De)}function U_(n,i){var a=i.anchor,l=i.head,u=We(n.doc,a.line);if(Ie(a,l)==0&&a.sticky==l.sticky)return i;var g=at(u);if(!g)return i;var y=Ht(g,a.ch,a.sticky),x=g[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var _=y+(x.from==a.ch==(x.level!=1)?0:1);if(_==0||_==g.length)return i;var T;if(l.line!=a.line)T=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var H=Ht(g,l.ch,l.sticky),V=H-y||(l.ch-a.ch)*(x.level==1?-1:1);H==_-1||H==_?T=V<0:T=V>0}var le=g[_+(T?-1:0)],re=T==(le.level==1),pe=re?le.from:le.to,we=re?"after":"before";return a.ch==pe&&a.sticky==we?i:new gt(new fe(a.line,pe,we),l)}function qm(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&&fn(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!Wn(n,a))return Tn(i);g-=x.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var T=y.gutters.childNodes[_];if(T&&T.getBoundingClientRect().right>=u){var H=U(n.doc,g),V=n.display.gutterSpecs[_];return Pt(n,a,n,H,V.className,i),Tn(i)}}}function md(n,i){return qm(n,i,"gutterClick",!0)}function Um(n,i){ui(n.display,i)||V_(n,i)||Rt(n,i,"contextmenu")||K||n.display.input.onContextMenu(i)}function V_(n,i){return Wn(n,"gutterContextMenu")?qm(n,i,"gutterContextMenu",!1):!1}function Vm(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Tl(n)}var Es={toString:function(){return"CodeMirror.Init"}},Gm={},$c={};function G_(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,_,T){T!=Es&&g(x,_,T)}:g)}n.defineOption=a,n.Init=Es,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,sd(l)},!0),a("indentUnit",2,sd,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Ol(l),Tl(l),En(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(_){for(var T=0;;){var H=_.text.indexOf(u,T);if(H==-1)break;T=H+u.length,g.push(fe(y,H))}y++});for(var x=g.length-1;x>=0;x--)_s(l.doc,u,g[x],fe(g[x].line,g[x].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!=Es&&l.refresh()}),a("specialCharPlaceholder",kk,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",C?"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",!Z),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Vm(l),$l(l)},!0),a("keyMap","default",function(l,u,g){var y=Mc(u),x=g!=Es&&Mc(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,X_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=id(u,l.options.lineNumbers),$l(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Vf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return bs(l)},!0),a("scrollbarStyle","native",function(l){Xg(l),bs(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=id(l.options.gutters,u),$l(l)},!0),a("firstLineNumber",1,$l,!0),a("lineNumberFormatter",function(l){return l},$l,!0),a("showCursorWhenSelecting",!1,Cl,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(vs(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,K_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Cl,!0),a("singleCursorHeightPerLine",!0,Cl,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Ol,!0),a("addModeClass",!1,Ol,!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,Ol,!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 K_(n,i,a){var l=a&&a!=Es;if(!i!=!l){var u=n.display.dragFunctions,g=i?Ye:un;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 X_(n){n.options.lineWrapping?(_e(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(P(n.display.wrapper,"CodeMirror-wrap"),If(n)),Gf(n),En(n),Tl(n),setTimeout(function(){return bs(n)},100)}function At(n,i){var a=this;if(!(this instanceof At))return new At(n,i);this.options=i=i?J(i):{},J(Gm,i,!1);var l=i.value;typeof l=="string"?l=new An(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new At.inputStyles[i.inputStyle](this),g=this.display=new a_(n,l,u,i);g.wrapper.CodeMirror=this,Vm(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xg(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 ae,keySeq:null,specialChars:null},i.autofocus&&!C&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),Y_(this),E_(),Po(this),this.curOp.forceUpdate=!0,om(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Zf(a)},20):vs(this);for(var y in $c)$c.hasOwnProperty(y)&&$c[y](this,i[y],Es);Jg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<vd.length;++x)vd[x](this);Ro(this),m&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}At.defaults=Gm,At.optionHandlers=$c;function Y_(n){var i=n.display;Ye(i.scroller,"mousedown",tn(n,jm)),h&&p<11?Ye(i.scroller,"dblclick",tn(n,function(_){if(!Rt(n,_)){var T=Mo(n,_);if(!(!T||md(n,_)||ui(n.display,_))){fn(_);var H=n.findWordAt(T);Tc(n.doc,H.anchor,H.head)}}})):Ye(i.scroller,"dblclick",function(_){return Rt(n,_)||fn(_)}),Ye(i.scroller,"contextmenu",function(_){return Um(n,_)}),Ye(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||Um(n,_)});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(_){if(_.touches.length!=1)return!1;var T=_.touches[0];return T.radiusX<=1&&T.radiusY<=1}function y(_,T){if(T.left==null)return!0;var H=T.left-_.left,V=T.top-_.top;return H*H+V*V>400}Ye(i.scroller,"touchstart",function(_){if(!Rt(n,_)&&!g(_)&&!md(n,_)){i.input.ensurePolled(),clearTimeout(a);var T=+new Date;i.activeTouch={start:T,moved:!1,prev:T-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Ye(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Ye(i.scroller,"touchend",function(_){var T=i.activeTouch;if(T&&!ui(i,_)&&T.left!=null&&!T.moved&&new Date-T.start<300){var H=n.coordsChar(i.activeTouch,"page"),V;!T.prev||y(T,T.prev)?V=new gt(H,H):!T.prev.prev||y(T,T.prev.prev)?V=n.findWordAt(H):V=new gt(fe(H.line,0),rt(n.doc,fe(H.line+1,0))),n.setSelection(V.anchor,V.head),n.focus(),fn(_)}u()}),Ye(i.scroller,"touchcancel",u),Ye(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Al(n,i.scroller.scrollTop),$o(n,i.scroller.scrollLeft,!0),Pt(n,"scroll",n))}),Ye(i.scroller,"mousewheel",function(_){return tm(n,_)}),Ye(i.scroller,"DOMMouseScroll",function(_){return tm(n,_)}),Ye(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Rt(n,_)||zi(_)},over:function(_){Rt(n,_)||(C_(n,_),zi(_))},start:function(_){return T_(n,_)},drop:tn(n,S_),leave:function(_){Rt(n,_)||Lm(n)}};var x=i.input.getField();Ye(x,"keyup",function(_){return Hm.call(n,_)}),Ye(x,"keydown",tn(n,Fm)),Ye(x,"keypress",tn(n,Bm)),Ye(x,"focus",function(_){return Zf(n,_)}),Ye(x,"blur",function(_){return vs(n,_)})}var vd=[];At.defineInitHook=function(n){return vd.push(n)};function Vl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=wl(n,i).state:a="prev");var y=n.options.tabSize,x=We(u,i),_=ie(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var T=x.text.match(/^\s*/)[0],H;if(!l&&!/\S/.test(x.text))H=0,a="not";else if(a=="smart"&&(H=u.mode.indent(g,x.text.slice(T.length),x.text),H==j||H>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?H=ie(We(u,i-1).text,null,y):H=0:a=="add"?H=_+n.options.indentUnit:a=="subtract"?H=_-n.options.indentUnit:typeof a=="number"&&(H=_+a),H=Math.max(0,H);var V="",le=0;if(n.options.indentWithTabs)for(var re=Math.floor(H/y);re;--re)le+=y,V+=" ";if(le<H&&(V+=Ee(H-le)),V!=T)return _s(u,V,fe(i,0),fe(i,T.length),"+input"),x.stateAfter=null,!0;for(var pe=0;pe<u.sel.ranges.length;pe++){var we=u.sel.ranges[pe];if(we.head.line==i&&we.head.ch<T.length){var Te=fe(i,T.length);ud(u,pe,new gt(Te,Te));break}}}var Ar=null;function Oc(n){Ar=n}function yd(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,_=hr(i),T=null;if(x&&l.ranges.length>1)if(Ar&&Ar.text.join(`
33
+ `)==i){if(l.ranges.length%Ar.text.length==0){T=[];for(var H=0;H<Ar.text.length;H++)T.push(g.splitLines(Ar.text[H]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(T=be(_,function(Ne){return[Ne]}));for(var V=n.curOp.updateInput,le=l.ranges.length-1;le>=0;le--){var re=l.ranges[le],pe=re.from(),we=re.to();re.empty()&&(a&&a>0?pe=fe(pe.line,pe.ch-a):n.state.overwrite&&!x?we=fe(we.line,Math.min(We(g,we.line).text.length,we.ch+xe(_).length)):x&&Ar&&Ar.lineWise&&Ar.text.join(`
34
+ `)==_.join(`
35
+ `)&&(pe=we=fe(pe.line,0)));var Te={from:pe,to:we,text:T?T[le%T.length]:_,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};ks(n.doc,Te),en(n,"inputRead",n,Te)}i&&!x&&Xm(n,i),ys(n),n.curOp.updateInput<2&&(n.curOp.updateInput=V),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function Km(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&qn(i,function(){return yd(i,a,0,null,"paste")}),!0}function Xm(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 x=0;x<g.electricChars.length;x++)if(i.indexOf(g.electricChars.charAt(x))>-1){y=Vl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(We(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Vl(n,u.head.line,"smart"));y&&en(n,"electricInput",n,u.head.line)}}}function Ym(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:fe(u,0),head:fe(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function bd(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function Zm(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return m?n.style.width="1000px":n.setAttribute("wrap","off"),R&&(n.style.border="1px solid black"),i}function Z_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Pe(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)&&tn(this,i[l])(this,u,y),Pt(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"](Mc(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:bn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");ee(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,En(this)}),removeOverlay:bn(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++,En(this);return}}}),indentLine:bn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),ye(this.doc,l)&&Vl(this,l,u,g)}),indentSelection:bn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>g&&(Vl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&ys(this));else{var _=x.from(),T=x.to(),H=Math.max(g,_.line);g=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var V=H;V<g;++V)Vl(this,V,l);var le=this.doc.sel.ranges;_.ch==0&&u.length==le.length&&le[y].from().ch>0&&ud(this.doc,y,new gt(_,le[y].to()),te)}}}),getTokenAt:function(l,u){return lg(this,l,u)},getLineTokens:function(l,u){return lg(this,fe(l),u,!0)},getTokenTypeAt:function(l){l=rt(this.doc,l);var u=ig(this,We(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,_;if(x==0)_=u[2];else for(;;){var T=g+y>>1;if((T?u[T*2-1]:0)>=x)y=T;else if(u[T*2+1]<x)g=T+1;else{_=u[T*2+2];break}}var H=_?_.indexOf("overlay "):-1;return H<0?_:H==0?null:_.slice(0,H-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],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&g.push(y[x[u]]);else if(x[u])for(var _=0;_<x[u].length;_++){var T=y[x[u][_]];T&&g.push(T)}else x.helperType&&y[x.helperType]?g.push(y[x.helperType]):y[x.name]&&g.push(y[x.name]);for(var H=0;H<y._global.length;H++){var V=y._global[H];V.pred(x,this)&&ce(g,V.val)==-1&&g.push(V.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=tg(g,l??g.first+g.size-1),wl(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=rt(this.doc,l):g=l?y.from():y.to(),Cr(this,g,u||"page")},charCoords:function(l,u){return gc(this,rt(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Ig(this,l,u||"page"),Wf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Ig(this,{top:l,left:0},u||"page").top,U(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,x;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,y=!0),x=We(this.doc,l)}else x=l;return pc(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ci(x):0)},defaultTextHeight:function(){return gs(this.display)},defaultCharWidth:function(){return ms(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var _=this.display;l=Cr(this,rt(this.doc,l));var T=l.bottom,H=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")T=l.top;else if(y=="above"||y=="near"){var V=Math.max(_.wrapper.clientHeight,this.doc.height),le=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>V)&&l.top>u.offsetHeight?T=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=V&&(T=l.bottom),H+u.offsetWidth>le&&(H=le-u.offsetWidth)}u.style.top=T+"px",u.style.left=u.style.right="",x=="right"?(H=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?H=0:x=="middle"&&(H=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=H+"px"),g&&Kk(this,{left:H,top:T,right:H+u.offsetWidth,bottom:T+u.offsetHeight})},triggerOnKeyDown:bn(Fm),triggerOnKeyPress:bn(Bm),triggerOnKeyUp:Hm,triggerOnMouseDown:bn(jm),execCommand:function(l){if(jl.hasOwnProperty(l))return jl[l].call(null,this)},triggerElectric:bn(function(l){Xm(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var _=rt(this.doc,l),T=0;T<u&&(_=wd(this.doc,_,x,g,y),!_.hitSide);++T);return _},moveH:bn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?wd(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:bn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):Cs(this,function(x){var _=wd(y,x.head,l,u,!1);return l<0?{from:_,to:x.head}:{from:x.head,to:_}})}),findPosV:function(l,u,g,y){var x=1,_=y;u<0&&(x=-1,u=-u);for(var T=rt(this.doc,l),H=0;H<u;++H){var V=Cr(this,T,"div");if(_==null?_=V.left:V.left=_,T=Jm(this,V,x,g),T.hitSide)break}return T},moveV:bn(function(l,u){var g=this,y=this.doc,x=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(H){if(_)return l<0?H.from():H.to();var V=Cr(g,H.head,"div");H.goalColumn!=null&&(V.left=H.goalColumn),x.push(V.left);var le=Jm(g,V,l,u);return u=="page"&&H==y.sel.primary()&&Qf(g,gc(g,le,"div").top-V.top),le},he),x.length)for(var T=0;T<y.sel.ranges.length;T++)y.sel.ranges[T].goalColumn=x[T]}),findWordAt:function(l){var u=this.doc,g=We(u,l.line).text,y=l.ch,x=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||x==g.length)&&y?--y:++x;for(var T=g.charAt(y),H=ct(T,_)?function(V){return ct(V,_)}:/\s/.test(T)?function(V){return/\s/.test(V)}:function(V){return!/\s/.test(V)&&!ct(V)};y>0&&H(g.charAt(y-1));)--y;for(;x<g.length&&H(g.charAt(x));)++x}return new gt(fe(l.line,y),fe(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?_e(this.display.cursorDiv,"CodeMirror-overwrite"):P(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ve(Ue(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:bn(function(l,u){El(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Vr(this)-this.display.barHeight,width:l.scrollWidth-Vr(this)-this.display.barWidth,clientHeight:Ff(this),clientWidth:Ao(this)}},scrollIntoView:bn(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:fe(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?Xk(this,l):Ug(this,l.from,l.to,l.margin)}),setSize:bn(function(l,u){var g=this,y=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&Og(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(_){if(_.widgets){for(var T=0;T<_.widgets.length;T++)if(_.widgets[T].noHScroll){Wi(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Pt(this,"refresh",this)}),operation:function(l){return qn(this,l)},startOperation:function(){return Po(this)},endOperation:function(){return Ro(this)},refresh:bn(function(){var l=this.display.cachedTextHeight;En(this),this.curOp.forceUpdate=!0,Tl(this),El(this,this.doc.scrollLeft,this.doc.scrollTop),nd(this.display),(l==null||Math.abs(l-gs(this.display))>.5||this.options.lineWrapping)&&Gf(this),Pt(this,"refresh",this)}),swapDoc:bn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),om(this,l),Tl(this),this.display.input.reset(),El(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,en(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}},wr(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 wd(n,i,a,l,u){var g=i,y=a,x=We(n,i.line),_=u&&n.direction=="rtl"?-a:a;function T(){var De=i.line+_;return De<n.first||De>=n.first+n.size?!1:(i=new fe(De,i.ch,i.sticky),x=We(n,De))}function H(De){var $e;if(l=="codepoint"){var Fe=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Fe))$e=null;else{var Ze=a>0?Fe>=55296&&Fe<56320:Fe>=56320&&Fe<57343;$e=new fe(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ze?2:1))),-a)}}else u?$e=$_(n.cm,x,i,a):$e=dd(x,i,a);if($e==null)if(!De&&T())i=hd(u,n.cm,x,i.line,_);else return!1;else i=$e;return!0}if(l=="char"||l=="codepoint")H();else if(l=="column")H(!0);else if(l=="word"||l=="group")for(var V=null,le=l=="group",re=n.cm&&n.cm.getHelper(i,"wordChars"),pe=!0;!(a<0&&!H(!pe));pe=!1){var we=x.text.charAt(i.ch)||`
36
+ `,Te=ct(we,re)?"w":le&&we==`
37
+ `?"n":!le||/\s/.test(we)?null:"p";if(le&&!pe&&!Te&&(Te="s"),V&&V!=Te){a<0&&(a=1,H(),i.sticky="after");break}if(Te&&(V=Te),a>0&&!H(!pe))break}var Ne=Ec(n,i,g,y,!0);return pt(g,Ne)&&(Ne.hitSide=!0),Ne}function Jm(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Pe(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(x-.5*gs(n.display),3);y=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var T;T=Wf(n,g,y),!!T.outside;){if(a<0?y<=0:y>=u.height){T.hitSide=!0;break}y+=a*5}return T}var bt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};bt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,bd(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(x){for(var _=x.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Ye(u,"paste",function(x){!g(x)||Rt(l,x)||Km(x,l)||p<=11&&setTimeout(tn(l,function(){return i.updateFromDOM()}),20)}),Ye(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Ye(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Ye(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Ye(u,"touchstart",function(){return a.forceCompositionEnd()}),Ye(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!g(x)||Rt(l,x))){if(l.somethingSelected())Oc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=Ym(l);Oc({lineWise:!0,text:_.text}),x.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,te),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var T=Ar.text.join(`
38
+ `);if(x.clipboardData.setData("Text",T),x.clipboardData.getData("Text")==T){x.preventDefault();return}}var H=Zm(),V=H.firstChild;bd(V),l.display.lineSpace.insertBefore(H,l.display.lineSpace.firstChild),V.value=Ar.text.join(`
39
+ `);var le=ve(He(u));Ae(V),setTimeout(function(){l.display.lineSpace.removeChild(H),le.focus(),le==u&&a.showPrimarySelection()},50)}}Ye(u,"copy",y),Ye(u,"cut",y)},bt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},bt.prototype.prepareSelection=function(){var n=jg(this.cm,!1);return n.focus=ve(He(this.div))==this.div,n},bt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},bt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bt.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=Pc(i,n.anchorNode,n.anchorOffset),y=Pc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ie(fs(g,y),l)==0&&Ie(Cn(g,y),u)==0)){var x=i.display.view,_=l.line>=i.display.viewFrom&&Qm(i,l)||{node:x[0].measure.map[2],offset:0},T=u.line<i.display.viewTo&&Qm(i,u);if(!T){var H=x[x.length-1].measure,V=H.maps?H.maps[H.maps.length-1]:H.map;T={node:V[V.length-1],offset:V[V.length-2]-V[V.length-3]}}if(!_||!T){n.removeAllRanges();return}var le=n.rangeCount&&n.getRangeAt(0),re;try{re=B(_.node,_.offset,T.offset,T.node)}catch{}re&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),re.collapsed||(n.removeAllRanges(),n.addRange(re))):(n.removeAllRanges(),n.addRange(re)),le&&n.anchorNode==null?n.addRange(le):s&&this.startGracePeriod()),this.rememberSelection()}},bt.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)},bt.prototype.showMultipleSelections=function(n){S(this.cm.display.cursorDiv,n.cursors),S(this.cm.display.selectionDiv,n.selection)},bt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},bt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return Y(this.div,i)},bt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ve(He(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bt.prototype.blur=function(){this.div.blur()},bt.prototype.getField=function(){return this.div},bt.prototype.supportsTouch=function(){return!0},bt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):qn(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)},bt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},bt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(z&&b&&this.cm.display.gutterSpecs.length&&J_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Pc(i,n.anchorNode,n.anchorOffset),l=Pc(i,n.focusNode,n.focusOffset);a&&l&&qn(i,function(){dn(i.doc,Ui(a,l),te),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},bt.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=fe(l.line-1,We(n.doc,l.line-1).length)),u.ch==We(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=fe(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,x;l.line==i.viewFrom||(g=No(n,l.line))==0?(y=E(i.view[0].line),x=i.view[0].node):(y=E(i.view[g].line),x=i.view[g-1].node.nextSibling);var _=No(n,u.line),T,H;if(_==i.view.length-1?(T=i.viewTo-1,H=i.lineDiv.lastChild):(T=E(i.view[_+1].line)-1,H=i.view[_+1].node.previousSibling),!x)return!1;for(var V=n.doc.splitLines(Q_(n,x,H,y,T)),le=li(n.doc,fe(y,0),fe(T,We(n.doc,T).text.length));V.length>1&&le.length>1;)if(xe(V)==xe(le))V.pop(),le.pop(),T--;else if(V[0]==le[0])V.shift(),le.shift(),y++;else break;for(var re=0,pe=0,we=V[0],Te=le[0],Ne=Math.min(we.length,Te.length);re<Ne&&we.charCodeAt(re)==Te.charCodeAt(re);)++re;for(var De=xe(V),$e=xe(le),Fe=Math.min(De.length-(V.length==1?re:0),$e.length-(le.length==1?re:0));pe<Fe&&De.charCodeAt(De.length-pe-1)==$e.charCodeAt($e.length-pe-1);)++pe;if(V.length==1&&le.length==1&&y==l.line)for(;re&&re>l.ch&&De.charCodeAt(De.length-pe-1)==$e.charCodeAt($e.length-pe-1);)re--,pe++;V[V.length-1]=De.slice(0,De.length-pe).replace(/^\u200b+/,""),V[0]=V[0].slice(re).replace(/\u200b+$/,"");var Ze=fe(y,re),Ge=fe(T,le.length?xe(le).length-pe:0);if(V.length>1||V[0]||Ie(Ze,Ge))return _s(n.doc,V,Ze,Ge,"+input"),!0},bt.prototype.ensurePolled=function(){this.forceCompositionEnd()},bt.prototype.reset=function(){this.forceCompositionEnd()},bt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},bt.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))},bt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&qn(this.cm,function(){return En(n.cm)})},bt.prototype.setUneditable=function(n){n.contentEditable="false"},bt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||tn(this.cm,yd)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},bt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},bt.prototype.onContextMenu=function(){},bt.prototype.resetPosition=function(){},bt.prototype.needsContentAttribute=!0;function Qm(n,i){var a=Hf(n,i.line);if(!a||a.hidden)return null;var l=We(n.doc,i.line),u=Ag(a,l,i.line),g=at(l,n.doc.direction),y="left";if(g){var x=Ht(g,i.ch);y=x%2?"right":"left"}var _=Ng(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function J_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function As(n,i){return i&&(n.bad=!0),n}function Q_(n,i,a,l,u){var g="",y=!1,x=n.doc.lineSeparator(),_=!1;function T(re){return function(pe){return pe.id==re}}function H(){y&&(g+=x,_&&(g+=x),y=_=!1)}function V(re){re&&(H(),g+=re)}function le(re){if(re.nodeType==1){var pe=re.getAttribute("cm-text");if(pe){V(pe);return}var we=re.getAttribute("cm-marker"),Te;if(we){var Ne=n.findMarks(fe(l,0),fe(u+1,0),T(+we));Ne.length&&(Te=Ne[0].find(0))&&V(li(n.doc,Te.from,Te.to).join(x));return}if(re.getAttribute("contenteditable")=="false")return;var De=/^(pre|div|p|li|table|br)$/i.test(re.nodeName);if(!/^br$/i.test(re.nodeName)&&re.textContent.length==0)return;De&&H();for(var $e=0;$e<re.childNodes.length;$e++)le(re.childNodes[$e]);/^(pre|p)$/i.test(re.nodeName)&&(_=!0),De&&(y=!0)}else re.nodeType==3&&V(re.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;le(i),i!=a;)i=i.nextSibling,_=!1;return g}function Pc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return As(n.clipPos(fe(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 eS(g,i,a)}}function eS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!Y(l,i))return As(fe(E(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?xe(n.rest):n.line;return As(fe(E(g),g.text.length),u)}var y=i.nodeType==3?i:null,x=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));x.parentNode!=l;)x=x.parentNode;var _=n.measure,T=_.maps;function H(Te,Ne,De){for(var $e=-1;$e<(T?T.length:0);$e++)for(var Fe=$e<0?_.map:T[$e],Ze=0;Ze<Fe.length;Ze+=3){var Ge=Fe[Ze+2];if(Ge==Te||Ge==Ne){var lt=E($e<0?n.line:n.rest[$e]),Tt=Fe[Ze]+De;return(De<0||Ge!=Te)&&(Tt=Fe[Ze+(De?1:0)]),fe(lt,Tt)}}}var V=H(y,x,a);if(V)return As(V,u);for(var le=x.nextSibling,re=y?y.nodeValue.length-a:0;le;le=le.nextSibling){if(V=H(le,le.firstChild,0),V)return As(fe(V.line,V.ch-re),u);re+=le.textContent.length}for(var pe=x.previousSibling,we=a;pe;pe=pe.previousSibling){if(V=H(pe,pe.firstChild,-1),V)return As(fe(V.line,V.ch+we),u);we+=pe.textContent.length}}var Bt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new ae,this.hasSelection=!1,this.composing=null,this.resetting=!1};Bt.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),R&&(u.style.width="0px"),Ye(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Ye(u,"paste",function(y){Rt(l,y)||Km(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Rt(l,y)){if(l.somethingSelected())Oc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=Ym(l);Oc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,te):(a.prevInput="",u.value=x.text.join(`
40
+ `),Ae(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Ye(u,"cut",g),Ye(u,"copy",g),Ye(n.scroller,"paste",function(y){if(!(ui(n,y)||Rt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),Ye(n.lineSpace,"selectstart",function(y){ui(n,y)||fn(y)}),Ye(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"})}}),Ye(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Bt.prototype.createField=function(n){this.wrapper=Zm(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;bd(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Bt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Bt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=jg(n);if(n.options.moveInputWithCursor){var u=Cr(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},Bt.prototype.showSelection=function(n){var i=this.cm,a=i.display;S(a.cursorDiv,n.cursors),S(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Bt.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&&Ae(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Bt.prototype.getField=function(){return this.textarea},Bt.prototype.supportsTouch=function(){return!1},Bt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||ve(He(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Bt.prototype.blur=function(){this.textarea.blur()},Bt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Bt.prototype.receivedFocus=function(){this.slowPoll()},Bt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Bt.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)},Bt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Hi(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||I&&/[\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,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return qn(i,function(){yd(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
41
+ `)>-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},Bt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Bt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Bt.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||O)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&tn(a,dn)(a.doc,Ui(g),te);var _=u.style.cssText,T=i.wrapper.style.cssText,H=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
42
+ top: `+(n.clientY-H.top-5)+"px; left: "+(n.clientX-H.left-5)+`px;
43
+ z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
44
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var V;m&&(V=u.ownerDocument.defaultView.scrollY),l.input.focus(),m&&u.ownerDocument.defaultView.scrollTo(null,V),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=re,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function le(){if(u.selectionStart!=null){var we=a.somethingSelected(),Te="​"+(we?u.value:"");u.value="⇚",u.value=Te,i.prevInput=we?"":"​",u.selectionStart=1,u.selectionEnd=Te.length,l.selForContextMenu=a.doc.sel}}function re(){if(i.contextMenuPending==re&&(i.contextMenuPending=!1,i.wrapper.style.cssText=T,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&le();var we=0,Te=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?tn(a,ym)(a):we++<10?l.detectingSelectAll=setTimeout(Te,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&le(),K){zi(n);var pe=function(){un(window,"mouseup",pe),setTimeout(re,20)};Ye(window,"mouseup",pe)}else setTimeout(re,50)},Bt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Bt.prototype.setUneditable=function(){},Bt.prototype.needsContentAttribute=!1;function tS(n,i){if(i=i?J(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(He(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Ye(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(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(un(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=At(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return x}function nS(n){n.off=un,n.on=Ye,n.wheelEventPixels=c_,n.Doc=An,n.splitLines=hr,n.countColumn=ie,n.findColumn=ge,n.isWordChar=Qe,n.Pass=j,n.signal=Pt,n.Line=ds,n.changeEnd=Vi,n.scrollbarModel=Kg,n.Pos=fe,n.cmpPos=Ie,n.modes=ss,n.mimeModes=_r,n.resolveMode=ls,n.getMode=as,n.modeExtensions=Bi,n.extendMode=cs,n.copyState=qr,n.startState=us,n.innerMode=yl,n.commands=jl,n.keyMap=di,n.keyName=Pm,n.isModifierKey=$m,n.lookupKey=Ts,n.normalizeKeyMap=N_,n.StringStream=It,n.SharedTextMarker=Fl,n.TextMarker=Ki,n.LineWidget=zl,n.e_preventDefault=fn,n.e_stopPropagation=is,n.e_stop=zi,n.addClass=_e,n.contains=Y,n.rmClass=P,n.keyNames=Xi}G_(At),Z_(At);var rS="iter insert remove copy getEditor constructor".split(" ");for(var Rc in An.prototype)An.prototype.hasOwnProperty(Rc)&&ce(rS,Rc)<0&&(At.prototype[Rc]=(function(n){return function(){return n.apply(this.doc,arguments)}})(An.prototype[Rc]));return wr(An),At.inputStyles={textarea:Bt,contenteditable:bt},At.defineMode=function(n){!At.defaults.mode&&n!="null"&&(At.defaults.mode=n),Sr.apply(this,arguments)},At.defineMIME=Eo,At.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),At.defineMIME("text/plain","null"),At.defineExtension=function(n,i){At.prototype[n]=i},At.defineDocExtension=function(n,i){An.prototype[n]=i},At.fromTextArea=tS,nS(At),At.version="5.65.18",At}))})(au)),au.exports}var yM=To();const bM=Nx(yM);var Hd={},Lr={};const wM="Á",xM="á",kM="Ă",_M="ă",SM="∾",TM="∿",CM="∾̳",EM="Â",AM="â",LM="´",MM="А",NM="а",$M="Æ",OM="æ",PM="⁡",RM="𝔄",IM="𝔞",DM="À",zM="à",FM="ℵ",HM="ℵ",BM="Α",jM="α",WM="Ā",qM="ā",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="∢",mN="Å",vN="⍼",yN="Ą",bN="ą",wN="𝔸",xN="𝕒",kN="⩯",_N="≈",SN="⩰",TN="≊",CN="≋",EN="'",AN="⁡",LN="≈",MN="≊",NN="Å",$N="å",ON="𝒜",PN="𝒶",RN="≔",IN="*",DN="≈",zN="≍",FN="Ã",HN="ã",BN="Ä",jN="ä",WN="∳",qN="⨑",UN="≌",VN="϶",GN="‵",KN="∽",XN="⋍",YN="∖",ZN="⫧",JN="⊽",QN="⌅",e$="⌆",t$="⌅",n$="⎵",r$="⎶",i$="≌",o$="Б",s$="б",l$="„",a$="∵",c$="∵",u$="∵",f$="⦰",d$="϶",h$="ℬ",p$="ℬ",g$="Β",m$="β",v$="ℶ",y$="≬",b$="𝔅",w$="𝔟",x$="⋂",k$="◯",_$="⋃",S$="⨀",T$="⨁",C$="⨂",E$="⨆",A$="★",L$="▽",M$="△",N$="⨄",$$="⋁",O$="⋀",P$="⤍",R$="⧫",I$="▪",D$="▴",z$="▾",F$="◂",H$="▸",B$="␣",j$="▒",W$="░",q$="▓",U$="█",V$="=⃥",G$="≡⃥",K$="⫭",X$="⌐",Y$="𝔹",Z$="𝕓",J$="⊥",Q$="⊥",eO="⋈",tO="⧉",nO="┐",rO="╕",iO="╖",oO="╗",sO="┌",lO="╒",aO="╓",cO="╔",uO="─",fO="═",dO="┬",hO="╤",pO="╥",gO="╦",mO="┴",vO="╧",yO="╨",bO="╩",wO="⊟",xO="⊞",kO="⊠",_O="┘",SO="╛",TO="╜",CO="╝",EO="└",AO="╘",LO="╙",MO="╚",NO="│",$O="║",OO="┼",PO="╪",RO="╫",IO="╬",DO="┤",zO="╡",FO="╢",HO="╣",BO="├",jO="╞",WO="╟",qO="╠",UO="‵",VO="˘",GO="˘",KO="¦",XO="𝒷",YO="ℬ",ZO="⁏",JO="∽",QO="⋍",eP="⧅",tP="\\",nP="⟈",rP="•",iP="•",oP="≎",sP="⪮",lP="≏",aP="≎",cP="≏",uP="Ć",fP="ć",dP="⩄",hP="⩉",pP="⩋",gP="∩",mP="⋒",vP="⩇",yP="⩀",bP="ⅅ",wP="∩︀",xP="⁁",kP="ˇ",_P="ℭ",SP="⩍",TP="Č",CP="č",EP="Ç",AP="ç",LP="Ĉ",MP="ĉ",NP="∰",$P="⩌",OP="⩐",PP="Ċ",RP="ċ",IP="¸",DP="¸",zP="⦲",FP="¢",HP="·",BP="·",jP="𝔠",WP="ℭ",qP="Ч",UP="ч",VP="✓",GP="✓",KP="Χ",XP="χ",YP="ˆ",ZP="≗",JP="↺",QP="↻",e2="⊛",t2="⊚",n2="⊝",r2="⊙",i2="®",o2="Ⓢ",s2="⊖",l2="⊕",a2="⊗",c2="○",u2="⧃",f2="≗",d2="⨐",h2="⫯",p2="⧂",g2="∲",m2="”",v2="’",y2="♣",b2="♣",w2=":",x2="∷",k2="⩴",_2="≔",S2="≔",T2=",",C2="@",E2="∁",A2="∘",L2="∁",M2="ℂ",N2="≅",$2="⩭",O2="≡",P2="∮",R2="∯",I2="∮",D2="𝕔",z2="ℂ",F2="∐",H2="∐",B2="©",j2="©",W2="℗",q2="∳",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="∪︀",mR="↷",vR="⤼",yR="⋞",bR="⋟",wR="⋎",xR="⋏",kR="¤",_R="↶",SR="↷",TR="⋎",CR="⋏",ER="∲",AR="∱",LR="⌭",MR="†",NR="‡",$R="ℸ",OR="↓",PR="↡",RR="⇓",IR="‐",DR="⫤",zR="⊣",FR="⤏",HR="˝",BR="Ď",jR="ď",WR="Д",qR="д",UR="‡",VR="⇊",GR="ⅅ",KR="ⅆ",XR="⤑",YR="⩷",ZR="°",JR="∇",QR="Δ",eI="δ",tI="⦱",nI="⥿",rI="𝔇",iI="𝔡",oI="⥥",sI="⇃",lI="⇂",aI="´",cI="˙",uI="˝",fI="`",dI="˜",hI="⋄",pI="⋄",gI="⋄",mI="♦",vI="♦",yI="¨",bI="ⅆ",wI="ϝ",xI="⋲",kI="÷",_I="÷",SI="⋇",TI="⋇",CI="Ђ",EI="ђ",AI="⌞",LI="⌍",MI="$",NI="𝔻",$I="𝕕",OI="¨",PI="˙",RI="⃜",II="≐",DI="≑",zI="≐",FI="∸",HI="∔",BI="⊡",jI="⌆",WI="∯",qI="¨",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="↽",mD="⥟",vD="⥗",yD="⇁",bD="↧",wD="⊤",xD="⤐",kD="⌟",_D="⌌",SD="𝒟",TD="𝒹",CD="Ѕ",ED="ѕ",AD="⧶",LD="Đ",MD="đ",ND="⋱",$D="▿",OD="▾",PD="⇵",RD="⥯",ID="⦦",DD="Џ",zD="џ",FD="⟿",HD="É",BD="é",jD="⩮",WD="Ě",qD="ě",UD="Ê",VD="ê",GD="≖",KD="≕",XD="Э",YD="э",ZD="⩷",JD="Ė",QD="ė",ez="≑",tz="ⅇ",nz="≒",rz="𝔈",iz="𝔢",oz="⪚",sz="È",lz="è",az="⪖",cz="⪘",uz="⪙",fz="∈",dz="⏧",hz="ℓ",pz="⪕",gz="⪗",mz="Ē",vz="ē",yz="∅",bz="∅",wz="◻",xz="∅",kz="▫",_z=" ",Sz=" ",Tz=" ",Cz="Ŋ",Ez="ŋ",Az=" ",Lz="Ę",Mz="ę",Nz="𝔼",$z="𝕖",Oz="⋕",Pz="⧣",Rz="⩱",Iz="ε",Dz="Ε",zz="ε",Fz="ϵ",Hz="≖",Bz="≕",jz="≂",Wz="⪖",qz="⪕",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="∃",mF="ℰ",vF="ⅇ",yF="ⅇ",bF="≒",wF="Ф",xF="ф",kF="♀",_F="ffi",SF="ff",TF="ffl",CF="𝔉",EF="𝔣",AF="fi",LF="◼",MF="▪",NF="fj",$F="♭",OF="fl",PF="▱",RF="ƒ",IF="𝔽",DF="𝕗",zF="∀",FF="∀",HF="⋔",BF="⫙",jF="ℱ",WF="⨍",qF="½",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="Ğ",mH="ğ",vH="Ģ",yH="Ĝ",bH="ĝ",wH="Г",xH="г",kH="Ġ",_H="ġ",SH="≥",TH="≧",CH="⪌",EH="⋛",AH="≥",LH="≧",MH="⩾",NH="⪩",$H="⩾",OH="⪀",PH="⪂",RH="⪄",IH="⋛︀",DH="⪔",zH="𝔊",FH="𝔤",HH="≫",BH="⋙",jH="⋙",WH="ℷ",qH="Ѓ",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="≳",m3="⪎",v3="⪐",y3="⪧",b3="⩺",w3=">",x3=">",k3="≫",_3="⋗",S3="⦕",T3="⩼",C3="⪆",E3="⥸",A3="⋗",L3="⋛",M3="⪌",N3="≷",$3="≳",O3="≩︀",P3="≩︀",R3="ˇ",I3=" ",D3="½",z3="ℋ",F3="Ъ",H3="ъ",B3="⥈",j3="↔",W3="⇔",q3="↭",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="Ħ",mB="ħ",vB="≎",yB="≏",bB="⁃",wB="‐",xB="Í",kB="í",_B="⁣",SB="Î",TB="î",CB="И",EB="и",AB="İ",LB="Е",MB="е",NB="¡",$B="⇔",OB="𝔦",PB="ℑ",RB="Ì",IB="ì",DB="ⅈ",zB="⨌",FB="∭",HB="⧜",BB="℩",jB="IJ",WB="ij",qB="Ī",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="⁢",m5="Ё",v5="ё",y5="Į",b5="į",w5="𝕀",x5="𝕚",k5="Ι",_5="ι",S5="⨼",T5="¿",C5="𝒾",E5="ℐ",A5="∈",L5="⋵",M5="⋹",N5="⋴",$5="⋳",O5="∈",P5="⁢",R5="Ĩ",I5="ĩ",D5="І",z5="і",F5="Ï",H5="ï",B5="Ĵ",j5="ĵ",W5="Й",q5="й",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="ќ",m8="𝕂",v8="𝕜",y8="𝒦",b8="𝓀",w8="⇚",x8="Ĺ",k8="ĺ",_8="⦴",S8="ℒ",T8="Λ",C8="λ",E8="⟨",A8="⟪",L8="⦑",M8="⟨",N8="⪅",$8="ℒ",O8="«",P8="⇤",R8="⤟",I8="←",D8="↞",z8="⇐",F8="⤝",H8="↩",B8="↫",j8="⤹",W8="⥳",q8="↢",U8="⤙",V8="⤛",G8="⪫",K8="⪭",X8="⪭︀",Y8="⤌",Z8="⤎",J8="❲",Q8="{",ej="[",tj="⦋",nj="⦏",rj="⦍",ij="Ľ",oj="ľ",sj="Ļ",lj="ļ",aj="⌈",cj="{",uj="Л",fj="л",dj="⤶",hj="“",pj="„",gj="⥧",mj="⥋",vj="↲",yj="≤",bj="≦",wj="⟨",xj="⇤",kj="←",_j="←",Sj="⇐",Tj="⇆",Cj="↢",Ej="⌈",Aj="⟦",Lj="⥡",Mj="⥙",Nj="⇃",$j="⌊",Oj="↽",Pj="↼",Rj="⇇",Ij="↔",Dj="↔",zj="⇔",Fj="⇆",Hj="⇋",Bj="↭",jj="⥎",Wj="↤",qj="⊣",Uj="⥚",Vj="⋋",Gj="⧏",Kj="⊲",Xj="⊴",Yj="⥑",Zj="⥠",Jj="⥘",Qj="↿",eW="⥒",tW="↼",nW="⪋",rW="⋚",iW="≤",oW="≦",sW="⩽",lW="⪨",aW="⩽",cW="⩿",uW="⪁",fW="⪃",dW="⋚︀",hW="⪓",pW="⪅",gW="⋖",mW="⋚",vW="⪋",yW="⋚",bW="≦",wW="≶",xW="≶",kW="⪡",_W="≲",SW="⩽",TW="≲",CW="⥼",EW="⌊",AW="𝔏",LW="𝔩",MW="≶",NW="⪑",$W="⥢",OW="↽",PW="↼",RW="⥪",IW="▄",DW="Љ",zW="љ",FW="⇇",HW="≪",BW="⋘",jW="⌞",WW="⇚",qW="⥫",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="⟹",m4="↫",v4="↬",y4="⦅",b4="𝕃",w4="𝕝",x4="⨭",k4="⨴",_4="∗",S4="_",T4="↙",C4="↘",E4="◊",A4="◊",L4="⧫",M4="(",N4="⦓",$4="⇆",O4="⌟",P4="⇋",R4="⥭",I4="‎",D4="⊿",z4="‹",F4="𝓁",H4="ℒ",B4="↰",j4="↰",W4="≲",q4="⪍",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="¯",mq="♂",vq="✠",yq="✠",bq="↦",wq="↦",xq="↧",kq="↤",_q="↥",Sq="▮",Tq="⨩",Cq="М",Eq="м",Aq="—",Lq="∺",Mq="∡",Nq=" ",$q="ℳ",Oq="𝔐",Pq="𝔪",Rq="℧",Iq="µ",Dq="*",zq="⫰",Fq="∣",Hq="·",Bq="⊟",jq="−",Wq="∸",qq="⨪",Uq="∓",Vq="⫛",Gq="…",Kq="∓",Xq="⊧",Yq="𝕄",Zq="𝕞",Jq="∓",Qq="𝓂",e6="ℳ",t6="∾",n6="Μ",r6="μ",i6="⊸",o6="⊸",s6="∇",l6="Ń",a6="ń",c6="∠⃒",u6="≉",f6="⩰̸",d6="≋̸",h6="ʼn",p6="≉",g6="♮",m6="ℕ",v6="♮",y6=" ",b6="≎̸",w6="≏̸",x6="⩃",k6="Ň",_6="ň",S6="Ņ",T6="ņ",C6="≇",E6="⩭̸",A6="⩂",L6="Н",M6="н",N6="–",$6="⤤",O6="↗",P6="⇗",R6="↗",I6="≠",D6="≐̸",z6="​",F6="​",H6="​",B6="​",j6="≢",W6="⤨",q6="≂̸",U6="≫",V6="≪",G6=`
45
+ `,K6="∄",X6="∄",Y6="𝔑",Z6="𝔫",J6="≧̸",Q6="≱",eU="≱",tU="≧̸",nU="⩾̸",rU="⩾̸",iU="⋙̸",oU="≵",sU="≫⃒",lU="≯",aU="≯",cU="≫̸",uU="↮",fU="⇎",dU="⫲",hU="∋",pU="⋼",gU="⋺",mU="∋",vU="Њ",yU="њ",bU="↚",wU="⇍",xU="‥",kU="≦̸",_U="≰",SU="↚",TU="⇍",CU="↮",EU="⇎",AU="≰",LU="≦̸",MU="⩽̸",NU="⩽̸",$U="≮",OU="⋘̸",PU="≴",RU="≪⃒",IU="≮",DU="⋪",zU="⋬",FU="≪̸",HU="∤",BU="⁠",jU=" ",WU="𝕟",qU="ℕ",UU="⫬",VU="¬",GU="≢",KU="≭",XU="∦",YU="∉",ZU="≠",JU="≂̸",QU="∄",eV="≯",tV="≱",nV="≧̸",rV="≫̸",iV="≹",oV="⩾̸",sV="≵",lV="≎̸",aV="≏̸",cV="∉",uV="⋵̸",fV="⋹̸",dV="∉",hV="⋷",pV="⋶",gV="⧏̸",mV="⋪",vV="⋬",yV="≮",bV="≰",wV="≸",xV="≪̸",kV="⩽̸",_V="≴",SV="⪢̸",TV="⪡̸",CV="∌",EV="∌",AV="⋾",LV="⋽",MV="⊀",NV="⪯̸",$V="⋠",OV="∌",PV="⧐̸",RV="⋫",IV="⋭",DV="⊏̸",zV="⋢",FV="⊐̸",HV="⋣",BV="⊂⃒",jV="⊈",WV="⊁",qV="⪰̸",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="⇏",mG="⋫",vG="⋭",yG="⊁",bG="⋡",wG="⪰̸",xG="𝒩",kG="𝓃",_G="∤",SG="∦",TG="≁",CG="≄",EG="≄",AG="∤",LG="∦",MG="⋢",NG="⋣",$G="⊄",OG="⫅̸",PG="⊈",RG="⊂⃒",IG="⊈",DG="⫅̸",zG="⊁",FG="⪰̸",HG="⊅",BG="⫆̸",jG="⊉",WG="⊃⃒",qG="⊉",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="≤⃒",m9="<⃒",v9="⊴⃒",y9="⤃",b9="⊵⃒",w9="∼⃒",x9="⤣",k9="↖",_9="⇖",S9="↖",T9="⤧",C9="Ó",E9="ó",A9="⊛",L9="Ô",M9="ô",N9="⊚",$9="О",O9="о",P9="⊝",R9="Ő",I9="ő",D9="⨸",z9="⊙",F9="⦼",H9="Œ",B9="œ",j9="⦿",W9="𝔒",q9="𝔬",U9="˛",V9="Ò",G9="ò",K9="⧁",X9="⦵",Y9="Ω",Z9="∮",J9="↺",Q9="⦾",eK="⦻",tK="‾",nK="⧀",rK="Ō",iK="ō",oK="Ω",sK="ω",lK="Ο",aK="ο",cK="⦶",uK="⊖",fK="𝕆",dK="𝕠",hK="⦷",pK="“",gK="‘",mK="⦹",vK="⊕",yK="↻",bK="⩔",wK="∨",xK="⩝",kK="ℴ",_K="ℴ",SK="ª",TK="º",CK="⊶",EK="⩖",AK="⩗",LK="⩛",MK="Ⓢ",NK="𝒪",$K="ℴ",OK="Ø",PK="ø",RK="⊘",IK="Õ",DK="õ",zK="⨶",FK="⨷",HK="⊗",BK="Ö",jK="ö",WK="⌽",qK="‾",UK="⏞",VK="⎴",GK="⏜",KK="¶",XK="∥",YK="∥",ZK="⫳",JK="⫽",QK="∂",e7="∂",t7="П",n7="п",r7="%",i7=".",o7="‰",s7="⊥",l7="‱",a7="𝔓",c7="𝔭",u7="Φ",f7="φ",d7="ϕ",h7="ℳ",p7="☎",g7="Π",m7="π",v7="⋔",y7="ϖ",b7="ℏ",w7="ℎ",x7="ℏ",k7="⨣",_7="⊞",S7="⨢",T7="+",C7="∔",E7="⨥",A7="⩲",L7="±",M7="±",N7="⨦",$7="⨧",O7="±",P7="ℌ",R7="⨕",I7="𝕡",D7="ℙ",z7="£",F7="⪷",H7="⪻",B7="≺",j7="≼",W7="⪷",q7="≺",U7="≼",V7="≺",G7="⪯",K7="≼",X7="≾",Y7="⪯",Z7="⪹",J7="⪵",Q7="⋨",eX="⪯",tX="⪳",nX="≾",rX="′",iX="″",oX="ℙ",sX="⪹",lX="⪵",aX="⋨",cX="∏",uX="∏",fX="⌮",dX="⌒",hX="⌓",pX="∝",gX="∝",mX="∷",vX="∝",yX="≾",bX="⊰",wX="𝒫",xX="𝓅",kX="Ψ",_X="ψ",SX=" ",TX="𝔔",CX="𝔮",EX="⨌",AX="𝕢",LX="ℚ",MX="⁗",NX="𝒬",$X="𝓆",OX="ℍ",PX="⨖",RX="?",IX="≟",DX='"',zX='"',FX="⇛",HX="∽̱",BX="Ŕ",jX="ŕ",WX="√",qX="⦳",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="ℚ",mY="⤍",vY="⤏",yY="⤐",bY="❳",wY="}",xY="]",kY="⦌",_Y="⦎",SY="⦐",TY="Ř",CY="ř",EY="Ŗ",AY="ŗ",LY="⌉",MY="}",NY="Р",$Y="р",OY="⤷",PY="⥩",RY="”",IY="”",DY="↳",zY="ℜ",FY="ℛ",HY="ℜ",BY="ℝ",jY="ℜ",WY="▭",qY="®",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="⥝",mZ="⥕",vZ="⇂",yZ="⌋",bZ="⇁",wZ="⇀",xZ="⇄",kZ="⇌",_Z="⇉",SZ="↝",TZ="↦",CZ="⊢",EZ="⥛",AZ="⋌",LZ="⧐",MZ="⊳",NZ="⊵",$Z="⥏",OZ="⥜",PZ="⥔",RZ="↾",IZ="⥓",DZ="⇀",zZ="˚",FZ="≓",HZ="⇄",BZ="⇌",jZ="‏",WZ="⎱",qZ="⎱",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="⋊",mJ="▹",vJ="⊵",yJ="▸",bJ="⧎",wJ="⧴",xJ="⥨",kJ="℞",_J="Ś",SJ="ś",TJ="‚",CJ="⪸",EJ="Š",AJ="š",LJ="⪼",MJ="≻",NJ="≽",$J="⪰",OJ="⪴",PJ="Ş",RJ="ş",IJ="Ŝ",DJ="ŝ",zJ="⪺",FJ="⪶",HJ="⋩",BJ="⨓",jJ="≿",WJ="С",qJ="с",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="∥",mQ="→",vQ="↑",yQ="­",bQ="Σ",wQ="σ",xQ="ς",kQ="ς",_Q="∼",SQ="⩪",TQ="≃",CQ="≃",EQ="⪞",AQ="⪠",LQ="⪝",MQ="⪟",NQ="≆",$Q="⨤",OQ="⥲",PQ="←",RQ="∘",IQ="∖",DQ="⨳",zQ="⧤",FQ="∣",HQ="⌣",BQ="⪪",jQ="⪬",WQ="⪬︀",qQ="Ь",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="⊓",mee="⊏",vee="⊑",yee="⊐",bee="⊒",wee="⊔",xee="▪",kee="□",_ee="▪",See="→",Tee="𝒮",Cee="𝓈",Eee="∖",Aee="⌣",Lee="⋆",Mee="⋆",Nee="☆",$ee="★",Oee="ϵ",Pee="ϕ",Ree="¯",Iee="⊂",Dee="⋐",zee="⪽",Fee="⫅",Hee="⊆",Bee="⫃",jee="⫁",Wee="⫋",qee="⊊",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="∋",mte="∑",vte="∑",yte="♪",bte="¹",wte="²",xte="³",kte="⊃",_te="⋑",Ste="⪾",Tte="⫘",Cte="⫆",Ete="⊇",Ate="⫄",Lte="⊃",Mte="⊇",Nte="⟉",$te="⫗",Ote="⥻",Pte="⫂",Rte="⫌",Ite="⊋",Dte="⫀",zte="⊃",Fte="⋑",Hte="⊇",Bte="⫆",jte="⊋",Wte="⫌",qte="⫈",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="∴",mne="∴",vne="Θ",yne="θ",bne="ϑ",wne="ϑ",xne="≈",kne="∼",_ne="  ",Sne=" ",Tne=" ",Cne="≈",Ene="∼",Ane="Þ",Lne="þ",Mne="˜",Nne="∼",$ne="≃",One="≅",Pne="≈",Rne="⨱",Ine="⊠",Dne="×",zne="⨰",Fne="∭",Hne="⤨",Bne="⌶",jne="⫱",Wne="⊤",qne="𝕋",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="ц",mre="Ћ",vre="ћ",yre="Ŧ",bre="ŧ",wre="≬",xre="↞",kre="↠",_re="Ú",Sre="ú",Tre="↑",Cre="↟",Ere="⇑",Are="⥉",Lre="Ў",Mre="ў",Nre="Ŭ",$re="ŭ",Ore="Û",Pre="û",Rre="У",Ire="у",Dre="⇅",zre="Ű",Fre="ű",Hre="⥮",Bre="⥾",jre="𝔘",Wre="𝔲",qre="Ù",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="↑",mie="⇑",vie="⇅",yie="↕",bie="↕",wie="⇕",xie="⥮",kie="↿",_ie="↾",Sie="⊎",Tie="↖",Cie="↗",Eie="υ",Aie="ϒ",Lie="ϒ",Mie="Υ",Nie="υ",$ie="↥",Oie="⊥",Pie="⇈",Rie="⌝",Iie="⌝",Die="⌎",zie="Ů",Fie="ů",Hie="◹",Bie="𝒰",jie="𝓊",Wie="⋰",qie="Ũ",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="⊳",moe="⫨",voe="⫫",yoe="⫩",boe="В",woe="в",xoe="⊢",koe="⊨",_oe="⊩",Soe="⊫",Toe="⫦",Coe="⊻",Eoe="∨",Aoe="⋁",Loe="≚",Moe="⋮",Noe="|",$oe="‖",Ooe="|",Poe="‖",Roe="∣",Ioe="|",Doe="❘",zoe="≀",Foe=" ",Hoe="𝔙",Boe="𝔳",joe="⊲",Woe="⊂⃒",qoe="⊃⃒",Uoe="𝕍",Voe="𝕧",Goe="∝",Koe="⊳",Xoe="𝒱",Yoe="𝓋",Zoe="⫋︀",Joe="⊊︀",Qoe="⫌︀",ese="⊋︀",tse="⊪",nse="⦚",rse="Ŵ",ise="ŵ",ose="⩟",sse="∧",lse="⋀",ase="≙",cse="℘",use="𝔚",fse="𝔴",dse="𝕎",hse="𝕨",pse="℘",gse="≀",mse="≀",vse="𝒲",yse="𝓌",bse="⋂",wse="◯",xse="⋃",kse="▽",_se="𝔛",Sse="𝔵",Tse="⟷",Cse="⟺",Ese="Ξ",Ase="ξ",Lse="⟵",Mse="⟸",Nse="⟼",$se="⋻",Ose="⨀",Pse="𝕏",Rse="𝕩",Ise="⨁",Dse="⨂",zse="⟶",Fse="⟹",Hse="𝒳",Bse="𝓍",jse="⨆",Wse="⨄",qse="△",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="ź",mle="Ž",vle="ž",yle="З",ble="з",wle="Ż",xle="ż",kle="ℨ",_le="​",Sle="Ζ",Tle="ζ",Cle="𝔷",Ele="ℨ",Ale="Ж",Lle="ж",Mle="⇝",Nle="𝕫",$le="ℤ",Ole="𝒵",Ple="𝓏",Rle="‍",Ile="‌",$x={Aacute:wM,aacute:xM,Abreve:kM,abreve:_M,ac:SM,acd:TM,acE:CM,Acirc:EM,acirc:AM,acute:LM,Acy:MM,acy:NM,AElig:$M,aelig:OM,af:PM,Afr:RM,afr:IM,Agrave:DM,agrave:zM,alefsym:FM,aleph:HM,Alpha:BM,alpha:jM,Amacr:WM,amacr:qM,amalg:UM,amp:VM,AMP:GM,andand:KM,And:XM,and:YM,andd:ZM,andslope:JM,andv:QM,ang:eN,ange:tN,angle:nN,angmsdaa:rN,angmsdab:iN,angmsdac:oN,angmsdad:sN,angmsdae:lN,angmsdaf:aN,angmsdag:cN,angmsdah:uN,angmsd:fN,angrt:dN,angrtvb:hN,angrtvbd:pN,angsph:gN,angst:mN,angzarr:vN,Aogon:yN,aogon:bN,Aopf:wN,aopf:xN,apacir:kN,ap:_N,apE:SN,ape:TN,apid:CN,apos:EN,ApplyFunction:AN,approx:LN,approxeq:MN,Aring:NN,aring:$N,Ascr:ON,ascr:PN,Assign:RN,ast:IN,asymp:DN,asympeq:zN,Atilde:FN,atilde:HN,Auml:BN,auml:jN,awconint:WN,awint:qN,backcong:UN,backepsilon:VN,backprime:GN,backsim:KN,backsimeq:XN,Backslash:YN,Barv:ZN,barvee:JN,barwed:QN,Barwed:e$,barwedge:t$,bbrk:n$,bbrktbrk:r$,bcong:i$,Bcy:o$,bcy:s$,bdquo:l$,becaus:a$,because:c$,Because:u$,bemptyv:f$,bepsi:d$,bernou:h$,Bernoullis:p$,Beta:g$,beta:m$,beth:v$,between:y$,Bfr:b$,bfr:w$,bigcap:x$,bigcirc:k$,bigcup:_$,bigodot:S$,bigoplus:T$,bigotimes:C$,bigsqcup:E$,bigstar:A$,bigtriangledown:L$,bigtriangleup:M$,biguplus:N$,bigvee:$$,bigwedge:O$,bkarow:P$,blacklozenge:R$,blacksquare:I$,blacktriangle:D$,blacktriangledown:z$,blacktriangleleft:F$,blacktriangleright:H$,blank:B$,blk12:j$,blk14:W$,blk34:q$,block:U$,bne:V$,bnequiv:G$,bNot:K$,bnot:X$,Bopf:Y$,bopf:Z$,bot:J$,bottom:Q$,bowtie:eO,boxbox:tO,boxdl:nO,boxdL:rO,boxDl:iO,boxDL:oO,boxdr:sO,boxdR:lO,boxDr:aO,boxDR:cO,boxh:uO,boxH:fO,boxhd:dO,boxHd:hO,boxhD:pO,boxHD:gO,boxhu:mO,boxHu:vO,boxhU:yO,boxHU:bO,boxminus:wO,boxplus:xO,boxtimes:kO,boxul:_O,boxuL:SO,boxUl:TO,boxUL:CO,boxur:EO,boxuR:AO,boxUr:LO,boxUR:MO,boxv:NO,boxV:$O,boxvh:OO,boxvH:PO,boxVh:RO,boxVH:IO,boxvl:DO,boxvL:zO,boxVl:FO,boxVL:HO,boxvr:BO,boxvR:jO,boxVr:WO,boxVR:qO,bprime:UO,breve:VO,Breve:GO,brvbar:KO,bscr:XO,Bscr:YO,bsemi:ZO,bsim:JO,bsime:QO,bsolb:eP,bsol:tP,bsolhsub:nP,bull:rP,bullet:iP,bump:oP,bumpE:sP,bumpe:lP,Bumpeq:aP,bumpeq:cP,Cacute:uP,cacute:fP,capand:dP,capbrcup:hP,capcap:pP,cap:gP,Cap:mP,capcup:vP,capdot:yP,CapitalDifferentialD:bP,caps:wP,caret:xP,caron:kP,Cayleys:_P,ccaps:SP,Ccaron:TP,ccaron:CP,Ccedil:EP,ccedil:AP,Ccirc:LP,ccirc:MP,Cconint:NP,ccups:$P,ccupssm:OP,Cdot:PP,cdot:RP,cedil:IP,Cedilla:DP,cemptyv:zP,cent:FP,centerdot:HP,CenterDot:BP,cfr:jP,Cfr:WP,CHcy:qP,chcy:UP,check:VP,checkmark:GP,Chi:KP,chi:XP,circ:YP,circeq:ZP,circlearrowleft:JP,circlearrowright:QP,circledast:e2,circledcirc:t2,circleddash:n2,CircleDot:r2,circledR:i2,circledS:o2,CircleMinus:s2,CirclePlus:l2,CircleTimes:a2,cir:c2,cirE:u2,cire:f2,cirfnint:d2,cirmid:h2,cirscir:p2,ClockwiseContourIntegral:g2,CloseCurlyDoubleQuote:m2,CloseCurlyQuote:v2,clubs:y2,clubsuit:b2,colon:w2,Colon:x2,Colone:k2,colone:_2,coloneq:S2,comma:T2,commat:C2,comp:E2,compfn:A2,complement:L2,complexes:M2,cong:N2,congdot:$2,Congruent:O2,conint:P2,Conint:R2,ContourIntegral:I2,copf:D2,Copf:z2,coprod:F2,Coproduct:H2,copy:B2,COPY:j2,copysr:W2,CounterClockwiseContourIntegral:q2,crarr:U2,cross:V2,Cross:G2,Cscr:K2,cscr:X2,csub:Y2,csube:Z2,csup:J2,csupe:Q2,ctdot:eR,cudarrl:tR,cudarrr:nR,cuepr:rR,cuesc:iR,cularr:oR,cularrp:sR,cupbrcap:lR,cupcap:aR,CupCap:cR,cup:uR,Cup:fR,cupcup:dR,cupdot:hR,cupor:pR,cups:gR,curarr:mR,curarrm:vR,curlyeqprec:yR,curlyeqsucc:bR,curlyvee:wR,curlywedge:xR,curren:kR,curvearrowleft:_R,curvearrowright:SR,cuvee:TR,cuwed:CR,cwconint:ER,cwint:AR,cylcty:LR,dagger:MR,Dagger:NR,daleth:$R,darr:OR,Darr:PR,dArr:RR,dash:IR,Dashv:DR,dashv:zR,dbkarow:FR,dblac:HR,Dcaron:BR,dcaron:jR,Dcy:WR,dcy:qR,ddagger:UR,ddarr:VR,DD:GR,dd:KR,DDotrahd:XR,ddotseq:YR,deg:ZR,Del:JR,Delta:QR,delta:eI,demptyv:tI,dfisht:nI,Dfr:rI,dfr:iI,dHar:oI,dharl:sI,dharr:lI,DiacriticalAcute:aI,DiacriticalDot:cI,DiacriticalDoubleAcute:uI,DiacriticalGrave:fI,DiacriticalTilde:dI,diam:hI,diamond:pI,Diamond:gI,diamondsuit:mI,diams:vI,die:yI,DifferentialD:bI,digamma:wI,disin:xI,div:kI,divide:_I,divideontimes:SI,divonx:TI,DJcy:CI,djcy:EI,dlcorn:AI,dlcrop:LI,dollar:MI,Dopf:NI,dopf:$I,Dot:OI,dot:PI,DotDot:RI,doteq:II,doteqdot:DI,DotEqual:zI,dotminus:FI,dotplus:HI,dotsquare:BI,doublebarwedge:jI,DoubleContourIntegral:WI,DoubleDot:qI,DoubleDownArrow:UI,DoubleLeftArrow:VI,DoubleLeftRightArrow:GI,DoubleLeftTee:KI,DoubleLongLeftArrow:XI,DoubleLongLeftRightArrow:YI,DoubleLongRightArrow:ZI,DoubleRightArrow:JI,DoubleRightTee:QI,DoubleUpArrow:eD,DoubleUpDownArrow:tD,DoubleVerticalBar:nD,DownArrowBar:rD,downarrow:iD,DownArrow:oD,Downarrow:sD,DownArrowUpArrow:lD,DownBreve:aD,downdownarrows:cD,downharpoonleft:uD,downharpoonright:fD,DownLeftRightVector:dD,DownLeftTeeVector:hD,DownLeftVectorBar:pD,DownLeftVector:gD,DownRightTeeVector:mD,DownRightVectorBar:vD,DownRightVector:yD,DownTeeArrow:bD,DownTee:wD,drbkarow:xD,drcorn:kD,drcrop:_D,Dscr:SD,dscr:TD,DScy:CD,dscy:ED,dsol:AD,Dstrok:LD,dstrok:MD,dtdot:ND,dtri:$D,dtrif:OD,duarr:PD,duhar:RD,dwangle:ID,DZcy:DD,dzcy:zD,dzigrarr:FD,Eacute:HD,eacute:BD,easter:jD,Ecaron:WD,ecaron:qD,Ecirc:UD,ecirc:VD,ecir:GD,ecolon:KD,Ecy:XD,ecy:YD,eDDot:ZD,Edot:JD,edot:QD,eDot:ez,ee:tz,efDot:nz,Efr:rz,efr:iz,eg:oz,Egrave:sz,egrave:lz,egs:az,egsdot:cz,el:uz,Element:fz,elinters:dz,ell:hz,els:pz,elsdot:gz,Emacr:mz,emacr:vz,empty:yz,emptyset:bz,EmptySmallSquare:wz,emptyv:xz,EmptyVerySmallSquare:kz,emsp13:_z,emsp14:Sz,emsp:Tz,ENG:Cz,eng:Ez,ensp:Az,Eogon:Lz,eogon:Mz,Eopf:Nz,eopf:$z,epar:Oz,eparsl:Pz,eplus:Rz,epsi:Iz,Epsilon:Dz,epsilon:zz,epsiv:Fz,eqcirc:Hz,eqcolon:Bz,eqsim:jz,eqslantgtr:Wz,eqslantless:qz,Equal:Uz,equals:Vz,EqualTilde:Gz,equest:Kz,Equilibrium:Xz,equiv:Yz,equivDD:Zz,eqvparsl:Jz,erarr:Qz,erDot:eF,escr:tF,Escr:nF,esdot:rF,Esim:iF,esim:oF,Eta:sF,eta:lF,ETH:aF,eth:cF,Euml:uF,euml:fF,euro:dF,excl:hF,exist:pF,Exists:gF,expectation:mF,exponentiale:vF,ExponentialE:yF,fallingdotseq:bF,Fcy:wF,fcy:xF,female:kF,ffilig:_F,fflig:SF,ffllig:TF,Ffr:CF,ffr:EF,filig:AF,FilledSmallSquare:LF,FilledVerySmallSquare:MF,fjlig:NF,flat:$F,fllig:OF,fltns:PF,fnof:RF,Fopf:IF,fopf:DF,forall:zF,ForAll:FF,fork:HF,forkv:BF,Fouriertrf:jF,fpartint:WF,frac12:qF,frac13:UF,frac14:VF,frac15:GF,frac16:KF,frac18:XF,frac23:YF,frac25:ZF,frac34:JF,frac35:QF,frac38:eH,frac45:tH,frac56:nH,frac58:rH,frac78:iH,frasl:oH,frown:sH,fscr:lH,Fscr:aH,gacute:cH,Gamma:uH,gamma:fH,Gammad:dH,gammad:hH,gap:pH,Gbreve:gH,gbreve:mH,Gcedil:vH,Gcirc:yH,gcirc:bH,Gcy:wH,gcy:xH,Gdot:kH,gdot:_H,ge:SH,gE:TH,gEl:CH,gel:EH,geq:AH,geqq:LH,geqslant:MH,gescc:NH,ges:$H,gesdot:OH,gesdoto:PH,gesdotol:RH,gesl:IH,gesles:DH,Gfr:zH,gfr:FH,gg:HH,Gg:BH,ggg:jH,gimel:WH,GJcy:qH,gjcy:UH,gla:VH,gl:GH,glE:KH,glj:XH,gnap:YH,gnapprox:ZH,gne:JH,gnE:QH,gneq:e3,gneqq:t3,gnsim:n3,Gopf:r3,gopf:i3,grave:o3,GreaterEqual:s3,GreaterEqualLess:l3,GreaterFullEqual:a3,GreaterGreater:c3,GreaterLess:u3,GreaterSlantEqual:f3,GreaterTilde:d3,Gscr:h3,gscr:p3,gsim:g3,gsime:m3,gsiml:v3,gtcc:y3,gtcir:b3,gt:w3,GT:x3,Gt:k3,gtdot:_3,gtlPar:S3,gtquest:T3,gtrapprox:C3,gtrarr:E3,gtrdot:A3,gtreqless:L3,gtreqqless:M3,gtrless:N3,gtrsim:$3,gvertneqq:O3,gvnE:P3,Hacek:R3,hairsp:I3,half:D3,hamilt:z3,HARDcy:F3,hardcy:H3,harrcir:B3,harr:j3,hArr:W3,harrw:q3,Hat:U3,hbar:V3,Hcirc:G3,hcirc:K3,hearts:X3,heartsuit:Y3,hellip:Z3,hercon:J3,hfr:Q3,Hfr:eB,HilbertSpace:tB,hksearow:nB,hkswarow:rB,hoarr:iB,homtht:oB,hookleftarrow:sB,hookrightarrow:lB,hopf:aB,Hopf:cB,horbar:uB,HorizontalLine:fB,hscr:dB,Hscr:hB,hslash:pB,Hstrok:gB,hstrok:mB,HumpDownHump:vB,HumpEqual:yB,hybull:bB,hyphen:wB,Iacute:xB,iacute:kB,ic:_B,Icirc:SB,icirc:TB,Icy:CB,icy:EB,Idot:AB,IEcy:LB,iecy:MB,iexcl:NB,iff:$B,ifr:OB,Ifr:PB,Igrave:RB,igrave:IB,ii:DB,iiiint:zB,iiint:FB,iinfin:HB,iiota:BB,IJlig:jB,ijlig:WB,Imacr:qB,imacr:UB,image:VB,ImaginaryI:GB,imagline:KB,imagpart:XB,imath:YB,Im:ZB,imof:JB,imped:QB,Implies:e5,incare:t5,in:"∈",infin:n5,infintie:r5,inodot:i5,intcal:o5,int:s5,Int:l5,integers:a5,Integral:c5,intercal:u5,Intersection:f5,intlarhk:d5,intprod:h5,InvisibleComma:p5,InvisibleTimes:g5,IOcy:m5,iocy:v5,Iogon:y5,iogon:b5,Iopf:w5,iopf:x5,Iota:k5,iota:_5,iprod:S5,iquest:T5,iscr:C5,Iscr:E5,isin:A5,isindot:L5,isinE:M5,isins:N5,isinsv:$5,isinv:O5,it:P5,Itilde:R5,itilde:I5,Iukcy:D5,iukcy:z5,Iuml:F5,iuml:H5,Jcirc:B5,jcirc:j5,Jcy:W5,jcy:q5,Jfr:U5,jfr:V5,jmath:G5,Jopf:K5,jopf:X5,Jscr:Y5,jscr:Z5,Jsercy:J5,jsercy:Q5,Jukcy:e8,jukcy:t8,Kappa:n8,kappa:r8,kappav:i8,Kcedil:o8,kcedil:s8,Kcy:l8,kcy:a8,Kfr:c8,kfr:u8,kgreen:f8,KHcy:d8,khcy:h8,KJcy:p8,kjcy:g8,Kopf:m8,kopf:v8,Kscr:y8,kscr:b8,lAarr:w8,Lacute:x8,lacute:k8,laemptyv:_8,lagran:S8,Lambda:T8,lambda:C8,lang:E8,Lang:A8,langd:L8,langle:M8,lap:N8,Laplacetrf:$8,laquo:O8,larrb:P8,larrbfs:R8,larr:I8,Larr:D8,lArr:z8,larrfs:F8,larrhk:H8,larrlp:B8,larrpl:j8,larrsim:W8,larrtl:q8,latail:U8,lAtail:V8,lat:G8,late:K8,lates:X8,lbarr:Y8,lBarr:Z8,lbbrk:J8,lbrace:Q8,lbrack:ej,lbrke:tj,lbrksld:nj,lbrkslu:rj,Lcaron:ij,lcaron:oj,Lcedil:sj,lcedil:lj,lceil:aj,lcub:cj,Lcy:uj,lcy:fj,ldca:dj,ldquo:hj,ldquor:pj,ldrdhar:gj,ldrushar:mj,ldsh:vj,le:yj,lE:bj,LeftAngleBracket:wj,LeftArrowBar:xj,leftarrow:kj,LeftArrow:_j,Leftarrow:Sj,LeftArrowRightArrow:Tj,leftarrowtail:Cj,LeftCeiling:Ej,LeftDoubleBracket:Aj,LeftDownTeeVector:Lj,LeftDownVectorBar:Mj,LeftDownVector:Nj,LeftFloor:$j,leftharpoondown:Oj,leftharpoonup:Pj,leftleftarrows:Rj,leftrightarrow:Ij,LeftRightArrow:Dj,Leftrightarrow:zj,leftrightarrows:Fj,leftrightharpoons:Hj,leftrightsquigarrow:Bj,LeftRightVector:jj,LeftTeeArrow:Wj,LeftTee:qj,LeftTeeVector:Uj,leftthreetimes:Vj,LeftTriangleBar:Gj,LeftTriangle:Kj,LeftTriangleEqual:Xj,LeftUpDownVector:Yj,LeftUpTeeVector:Zj,LeftUpVectorBar:Jj,LeftUpVector:Qj,LeftVectorBar:eW,LeftVector:tW,lEg:nW,leg:rW,leq:iW,leqq:oW,leqslant:sW,lescc:lW,les:aW,lesdot:cW,lesdoto:uW,lesdotor:fW,lesg:dW,lesges:hW,lessapprox:pW,lessdot:gW,lesseqgtr:mW,lesseqqgtr:vW,LessEqualGreater:yW,LessFullEqual:bW,LessGreater:wW,lessgtr:xW,LessLess:kW,lesssim:_W,LessSlantEqual:SW,LessTilde:TW,lfisht:CW,lfloor:EW,Lfr:AW,lfr:LW,lg:MW,lgE:NW,lHar:$W,lhard:OW,lharu:PW,lharul:RW,lhblk:IW,LJcy:DW,ljcy:zW,llarr:FW,ll:HW,Ll:BW,llcorner:jW,Lleftarrow:WW,llhard:qW,lltri:UW,Lmidot:VW,lmidot:GW,lmoustache:KW,lmoust:XW,lnap:YW,lnapprox:ZW,lne:JW,lnE:QW,lneq:e4,lneqq:t4,lnsim:n4,loang:r4,loarr:i4,lobrk:o4,longleftarrow:s4,LongLeftArrow:l4,Longleftarrow:a4,longleftrightarrow:c4,LongLeftRightArrow:u4,Longleftrightarrow:f4,longmapsto:d4,longrightarrow:h4,LongRightArrow:p4,Longrightarrow:g4,looparrowleft:m4,looparrowright:v4,lopar:y4,Lopf:b4,lopf:w4,loplus:x4,lotimes:k4,lowast:_4,lowbar:S4,LowerLeftArrow:T4,LowerRightArrow:C4,loz:E4,lozenge:A4,lozf:L4,lpar:M4,lparlt:N4,lrarr:$4,lrcorner:O4,lrhar:P4,lrhard:R4,lrm:I4,lrtri:D4,lsaquo:z4,lscr:F4,Lscr:H4,lsh:B4,Lsh:j4,lsim:W4,lsime:q4,lsimg:U4,lsqb:V4,lsquo:G4,lsquor:K4,Lstrok:X4,lstrok:Y4,ltcc:Z4,ltcir:J4,lt:Q4,LT:eq,Lt:tq,ltdot:nq,lthree:rq,ltimes:iq,ltlarr:oq,ltquest:sq,ltri:lq,ltrie:aq,ltrif:cq,ltrPar:uq,lurdshar:fq,luruhar:dq,lvertneqq:hq,lvnE:pq,macr:gq,male:mq,malt:vq,maltese:yq,Map:"⤅",map:bq,mapsto:wq,mapstodown:xq,mapstoleft:kq,mapstoup:_q,marker:Sq,mcomma:Tq,Mcy:Cq,mcy:Eq,mdash:Aq,mDDot:Lq,measuredangle:Mq,MediumSpace:Nq,Mellintrf:$q,Mfr:Oq,mfr:Pq,mho:Rq,micro:Iq,midast:Dq,midcir:zq,mid:Fq,middot:Hq,minusb:Bq,minus:jq,minusd:Wq,minusdu:qq,MinusPlus:Uq,mlcp:Vq,mldr:Gq,mnplus:Kq,models:Xq,Mopf:Yq,mopf:Zq,mp:Jq,mscr:Qq,Mscr:e6,mstpos:t6,Mu:n6,mu:r6,multimap:i6,mumap:o6,nabla:s6,Nacute:l6,nacute:a6,nang:c6,nap:u6,napE:f6,napid:d6,napos:h6,napprox:p6,natural:g6,naturals:m6,natur:v6,nbsp:y6,nbump:b6,nbumpe:w6,ncap:x6,Ncaron:k6,ncaron:_6,Ncedil:S6,ncedil:T6,ncong:C6,ncongdot:E6,ncup:A6,Ncy:L6,ncy:M6,ndash:N6,nearhk:$6,nearr:O6,neArr:P6,nearrow:R6,ne:I6,nedot:D6,NegativeMediumSpace:z6,NegativeThickSpace:F6,NegativeThinSpace:H6,NegativeVeryThinSpace:B6,nequiv:j6,nesear:W6,nesim:q6,NestedGreaterGreater:U6,NestedLessLess:V6,NewLine:G6,nexist:K6,nexists:X6,Nfr:Y6,nfr:Z6,ngE:J6,nge:Q6,ngeq:eU,ngeqq:tU,ngeqslant:nU,nges:rU,nGg:iU,ngsim:oU,nGt:sU,ngt:lU,ngtr:aU,nGtv:cU,nharr:uU,nhArr:fU,nhpar:dU,ni:hU,nis:pU,nisd:gU,niv:mU,NJcy:vU,njcy:yU,nlarr:bU,nlArr:wU,nldr:xU,nlE:kU,nle:_U,nleftarrow:SU,nLeftarrow:TU,nleftrightarrow:CU,nLeftrightarrow:EU,nleq:AU,nleqq:LU,nleqslant:MU,nles:NU,nless:$U,nLl:OU,nlsim:PU,nLt:RU,nlt:IU,nltri:DU,nltrie:zU,nLtv:FU,nmid:HU,NoBreak:BU,NonBreakingSpace:jU,nopf:WU,Nopf:qU,Not:UU,not:VU,NotCongruent:GU,NotCupCap:KU,NotDoubleVerticalBar:XU,NotElement:YU,NotEqual:ZU,NotEqualTilde:JU,NotExists:QU,NotGreater:eV,NotGreaterEqual:tV,NotGreaterFullEqual:nV,NotGreaterGreater:rV,NotGreaterLess:iV,NotGreaterSlantEqual:oV,NotGreaterTilde:sV,NotHumpDownHump:lV,NotHumpEqual:aV,notin:cV,notindot:uV,notinE:fV,notinva:dV,notinvb:hV,notinvc:pV,NotLeftTriangleBar:gV,NotLeftTriangle:mV,NotLeftTriangleEqual:vV,NotLess:yV,NotLessEqual:bV,NotLessGreater:wV,NotLessLess:xV,NotLessSlantEqual:kV,NotLessTilde:_V,NotNestedGreaterGreater:SV,NotNestedLessLess:TV,notni:CV,notniva:EV,notnivb:AV,notnivc:LV,NotPrecedes:MV,NotPrecedesEqual:NV,NotPrecedesSlantEqual:$V,NotReverseElement:OV,NotRightTriangleBar:PV,NotRightTriangle:RV,NotRightTriangleEqual:IV,NotSquareSubset:DV,NotSquareSubsetEqual:zV,NotSquareSuperset:FV,NotSquareSupersetEqual:HV,NotSubset:BV,NotSubsetEqual:jV,NotSucceeds:WV,NotSucceedsEqual:qV,NotSucceedsSlantEqual:UV,NotSucceedsTilde:VV,NotSuperset:GV,NotSupersetEqual:KV,NotTilde:XV,NotTildeEqual:YV,NotTildeFullEqual:ZV,NotTildeTilde:JV,NotVerticalBar:QV,nparallel:eG,npar:tG,nparsl:nG,npart:rG,npolint:iG,npr:oG,nprcue:sG,nprec:lG,npreceq:aG,npre:cG,nrarrc:uG,nrarr:fG,nrArr:dG,nrarrw:hG,nrightarrow:pG,nRightarrow:gG,nrtri:mG,nrtrie:vG,nsc:yG,nsccue:bG,nsce:wG,Nscr:xG,nscr:kG,nshortmid:_G,nshortparallel:SG,nsim:TG,nsime:CG,nsimeq:EG,nsmid:AG,nspar:LG,nsqsube:MG,nsqsupe:NG,nsub:$G,nsubE:OG,nsube:PG,nsubset:RG,nsubseteq:IG,nsubseteqq:DG,nsucc:zG,nsucceq:FG,nsup:HG,nsupE:BG,nsupe:jG,nsupset:WG,nsupseteq:qG,nsupseteqq:UG,ntgl:VG,Ntilde:GG,ntilde:KG,ntlg:XG,ntriangleleft:YG,ntrianglelefteq:ZG,ntriangleright:JG,ntrianglerighteq:QG,Nu:e9,nu:t9,num:n9,numero:r9,numsp:i9,nvap:o9,nvdash:s9,nvDash:l9,nVdash:a9,nVDash:c9,nvge:u9,nvgt:f9,nvHarr:d9,nvinfin:h9,nvlArr:p9,nvle:g9,nvlt:m9,nvltrie:v9,nvrArr:y9,nvrtrie:b9,nvsim:w9,nwarhk:x9,nwarr:k9,nwArr:_9,nwarrow:S9,nwnear:T9,Oacute:C9,oacute:E9,oast:A9,Ocirc:L9,ocirc:M9,ocir:N9,Ocy:$9,ocy:O9,odash:P9,Odblac:R9,odblac:I9,odiv:D9,odot:z9,odsold:F9,OElig:H9,oelig:B9,ofcir:j9,Ofr:W9,ofr:q9,ogon:U9,Ograve:V9,ograve:G9,ogt:K9,ohbar:X9,ohm:Y9,oint:Z9,olarr:J9,olcir:Q9,olcross:eK,oline:tK,olt:nK,Omacr:rK,omacr:iK,Omega:oK,omega:sK,Omicron:lK,omicron:aK,omid:cK,ominus:uK,Oopf:fK,oopf:dK,opar:hK,OpenCurlyDoubleQuote:pK,OpenCurlyQuote:gK,operp:mK,oplus:vK,orarr:yK,Or:bK,or:wK,ord:xK,order:kK,orderof:_K,ordf:SK,ordm:TK,origof:CK,oror:EK,orslope:AK,orv:LK,oS:MK,Oscr:NK,oscr:$K,Oslash:OK,oslash:PK,osol:RK,Otilde:IK,otilde:DK,otimesas:zK,Otimes:FK,otimes:HK,Ouml:BK,ouml:jK,ovbar:WK,OverBar:qK,OverBrace:UK,OverBracket:VK,OverParenthesis:GK,para:KK,parallel:XK,par:YK,parsim:ZK,parsl:JK,part:QK,PartialD:e7,Pcy:t7,pcy:n7,percnt:r7,period:i7,permil:o7,perp:s7,pertenk:l7,Pfr:a7,pfr:c7,Phi:u7,phi:f7,phiv:d7,phmmat:h7,phone:p7,Pi:g7,pi:m7,pitchfork:v7,piv:y7,planck:b7,planckh:w7,plankv:x7,plusacir:k7,plusb:_7,pluscir:S7,plus:T7,plusdo:C7,plusdu:E7,pluse:A7,PlusMinus:L7,plusmn:M7,plussim:N7,plustwo:$7,pm:O7,Poincareplane:P7,pointint:R7,popf:I7,Popf:D7,pound:z7,prap:F7,Pr:H7,pr:B7,prcue:j7,precapprox:W7,prec:q7,preccurlyeq:U7,Precedes:V7,PrecedesEqual:G7,PrecedesSlantEqual:K7,PrecedesTilde:X7,preceq:Y7,precnapprox:Z7,precneqq:J7,precnsim:Q7,pre:eX,prE:tX,precsim:nX,prime:rX,Prime:iX,primes:oX,prnap:sX,prnE:lX,prnsim:aX,prod:cX,Product:uX,profalar:fX,profline:dX,profsurf:hX,prop:pX,Proportional:gX,Proportion:mX,propto:vX,prsim:yX,prurel:bX,Pscr:wX,pscr:xX,Psi:kX,psi:_X,puncsp:SX,Qfr:TX,qfr:CX,qint:EX,qopf:AX,Qopf:LX,qprime:MX,Qscr:NX,qscr:$X,quaternions:OX,quatint:PX,quest:RX,questeq:IX,quot:DX,QUOT:zX,rAarr:FX,race:HX,Racute:BX,racute:jX,radic:WX,raemptyv:qX,rang:UX,Rang:VX,rangd:GX,range:KX,rangle:XX,raquo:YX,rarrap:ZX,rarrb:JX,rarrbfs:QX,rarrc:eY,rarr:tY,Rarr:nY,rArr:rY,rarrfs:iY,rarrhk:oY,rarrlp:sY,rarrpl:lY,rarrsim:aY,Rarrtl:cY,rarrtl:uY,rarrw:fY,ratail:dY,rAtail:hY,ratio:pY,rationals:gY,rbarr:mY,rBarr:vY,RBarr:yY,rbbrk:bY,rbrace:wY,rbrack:xY,rbrke:kY,rbrksld:_Y,rbrkslu:SY,Rcaron:TY,rcaron:CY,Rcedil:EY,rcedil:AY,rceil:LY,rcub:MY,Rcy:NY,rcy:$Y,rdca:OY,rdldhar:PY,rdquo:RY,rdquor:IY,rdsh:DY,real:zY,realine:FY,realpart:HY,reals:BY,Re:jY,rect:WY,reg:qY,REG:UY,ReverseElement:VY,ReverseEquilibrium:GY,ReverseUpEquilibrium:KY,rfisht:XY,rfloor:YY,rfr:ZY,Rfr:JY,rHar:QY,rhard:eZ,rharu:tZ,rharul:nZ,Rho:rZ,rho:iZ,rhov:oZ,RightAngleBracket:sZ,RightArrowBar:lZ,rightarrow:aZ,RightArrow:cZ,Rightarrow:uZ,RightArrowLeftArrow:fZ,rightarrowtail:dZ,RightCeiling:hZ,RightDoubleBracket:pZ,RightDownTeeVector:gZ,RightDownVectorBar:mZ,RightDownVector:vZ,RightFloor:yZ,rightharpoondown:bZ,rightharpoonup:wZ,rightleftarrows:xZ,rightleftharpoons:kZ,rightrightarrows:_Z,rightsquigarrow:SZ,RightTeeArrow:TZ,RightTee:CZ,RightTeeVector:EZ,rightthreetimes:AZ,RightTriangleBar:LZ,RightTriangle:MZ,RightTriangleEqual:NZ,RightUpDownVector:$Z,RightUpTeeVector:OZ,RightUpVectorBar:PZ,RightUpVector:RZ,RightVectorBar:IZ,RightVector:DZ,ring:zZ,risingdotseq:FZ,rlarr:HZ,rlhar:BZ,rlm:jZ,rmoustache:WZ,rmoust:qZ,rnmid:UZ,roang:VZ,roarr:GZ,robrk:KZ,ropar:XZ,ropf:YZ,Ropf:ZZ,roplus:JZ,rotimes:QZ,RoundImplies:eJ,rpar:tJ,rpargt:nJ,rppolint:rJ,rrarr:iJ,Rrightarrow:oJ,rsaquo:sJ,rscr:lJ,Rscr:aJ,rsh:cJ,Rsh:uJ,rsqb:fJ,rsquo:dJ,rsquor:hJ,rthree:pJ,rtimes:gJ,rtri:mJ,rtrie:vJ,rtrif:yJ,rtriltri:bJ,RuleDelayed:wJ,ruluhar:xJ,rx:kJ,Sacute:_J,sacute:SJ,sbquo:TJ,scap:CJ,Scaron:EJ,scaron:AJ,Sc:LJ,sc:MJ,sccue:NJ,sce:$J,scE:OJ,Scedil:PJ,scedil:RJ,Scirc:IJ,scirc:DJ,scnap:zJ,scnE:FJ,scnsim:HJ,scpolint:BJ,scsim:jJ,Scy:WJ,scy:qJ,sdotb:UJ,sdot:VJ,sdote:GJ,searhk:KJ,searr:XJ,seArr:YJ,searrow:ZJ,sect:JJ,semi:QJ,seswar:eQ,setminus:tQ,setmn:nQ,sext:rQ,Sfr:iQ,sfr:oQ,sfrown:sQ,sharp:lQ,SHCHcy:aQ,shchcy:cQ,SHcy:uQ,shcy:fQ,ShortDownArrow:dQ,ShortLeftArrow:hQ,shortmid:pQ,shortparallel:gQ,ShortRightArrow:mQ,ShortUpArrow:vQ,shy:yQ,Sigma:bQ,sigma:wQ,sigmaf:xQ,sigmav:kQ,sim:_Q,simdot:SQ,sime:TQ,simeq:CQ,simg:EQ,simgE:AQ,siml:LQ,simlE:MQ,simne:NQ,simplus:$Q,simrarr:OQ,slarr:PQ,SmallCircle:RQ,smallsetminus:IQ,smashp:DQ,smeparsl:zQ,smid:FQ,smile:HQ,smt:BQ,smte:jQ,smtes:WQ,SOFTcy:qQ,softcy:UQ,solbar:VQ,solb:GQ,sol:KQ,Sopf:XQ,sopf:YQ,spades:ZQ,spadesuit:JQ,spar:QQ,sqcap:eee,sqcaps:tee,sqcup:nee,sqcups:ree,Sqrt:iee,sqsub:oee,sqsube:see,sqsubset:lee,sqsubseteq:aee,sqsup:cee,sqsupe:uee,sqsupset:fee,sqsupseteq:dee,square:hee,Square:pee,SquareIntersection:gee,SquareSubset:mee,SquareSubsetEqual:vee,SquareSuperset:yee,SquareSupersetEqual:bee,SquareUnion:wee,squarf:xee,squ:kee,squf:_ee,srarr:See,Sscr:Tee,sscr:Cee,ssetmn:Eee,ssmile:Aee,sstarf:Lee,Star:Mee,star:Nee,starf:$ee,straightepsilon:Oee,straightphi:Pee,strns:Ree,sub:Iee,Sub:Dee,subdot:zee,subE:Fee,sube:Hee,subedot:Bee,submult:jee,subnE:Wee,subne:qee,subplus:Uee,subrarr:Vee,subset:Gee,Subset:Kee,subseteq:Xee,subseteqq:Yee,SubsetEqual:Zee,subsetneq:Jee,subsetneqq:Qee,subsim:ete,subsub:tte,subsup:nte,succapprox:rte,succ:ite,succcurlyeq:ote,Succeeds:ste,SucceedsEqual:lte,SucceedsSlantEqual:ate,SucceedsTilde:cte,succeq:ute,succnapprox:fte,succneqq:dte,succnsim:hte,succsim:pte,SuchThat:gte,sum:mte,Sum:vte,sung:yte,sup1:bte,sup2:wte,sup3:xte,sup:kte,Sup:_te,supdot:Ste,supdsub:Tte,supE:Cte,supe:Ete,supedot:Ate,Superset:Lte,SupersetEqual:Mte,suphsol:Nte,suphsub:$te,suplarr:Ote,supmult:Pte,supnE:Rte,supne:Ite,supplus:Dte,supset:zte,Supset:Fte,supseteq:Hte,supseteqq:Bte,supsetneq:jte,supsetneqq:Wte,supsim:qte,supsub:Ute,supsup:Vte,swarhk:Gte,swarr:Kte,swArr:Xte,swarrow:Yte,swnwar:Zte,szlig:Jte,Tab:Qte,target:ene,Tau:tne,tau:nne,tbrk:rne,Tcaron:ine,tcaron:one,Tcedil:sne,tcedil:lne,Tcy:ane,tcy:cne,tdot:une,telrec:fne,Tfr:dne,tfr:hne,there4:pne,therefore:gne,Therefore:mne,Theta:vne,theta:yne,thetasym:bne,thetav:wne,thickapprox:xne,thicksim:kne,ThickSpace:_ne,ThinSpace:Sne,thinsp:Tne,thkap:Cne,thksim:Ene,THORN:Ane,thorn:Lne,tilde:Mne,Tilde:Nne,TildeEqual:$ne,TildeFullEqual:One,TildeTilde:Pne,timesbar:Rne,timesb:Ine,times:Dne,timesd:zne,tint:Fne,toea:Hne,topbot:Bne,topcir:jne,top:Wne,Topf:qne,topf:Une,topfork:Vne,tosa:Gne,tprime:Kne,trade:Xne,TRADE:Yne,triangle:Zne,triangledown:Jne,triangleleft:Qne,trianglelefteq:ere,triangleq:tre,triangleright:nre,trianglerighteq:rre,tridot:ire,trie:ore,triminus:sre,TripleDot:lre,triplus:are,trisb:cre,tritime:ure,trpezium:fre,Tscr:dre,tscr:hre,TScy:pre,tscy:gre,TSHcy:mre,tshcy:vre,Tstrok:yre,tstrok:bre,twixt:wre,twoheadleftarrow:xre,twoheadrightarrow:kre,Uacute:_re,uacute:Sre,uarr:Tre,Uarr:Cre,uArr:Ere,Uarrocir:Are,Ubrcy:Lre,ubrcy:Mre,Ubreve:Nre,ubreve:$re,Ucirc:Ore,ucirc:Pre,Ucy:Rre,ucy:Ire,udarr:Dre,Udblac:zre,udblac:Fre,udhar:Hre,ufisht:Bre,Ufr:jre,ufr:Wre,Ugrave:qre,ugrave:Ure,uHar:Vre,uharl:Gre,uharr:Kre,uhblk:Xre,ulcorn:Yre,ulcorner:Zre,ulcrop:Jre,ultri:Qre,Umacr:eie,umacr:tie,uml:nie,UnderBar:rie,UnderBrace:iie,UnderBracket:oie,UnderParenthesis:sie,Union:lie,UnionPlus:aie,Uogon:cie,uogon:uie,Uopf:fie,uopf:die,UpArrowBar:hie,uparrow:pie,UpArrow:gie,Uparrow:mie,UpArrowDownArrow:vie,updownarrow:yie,UpDownArrow:bie,Updownarrow:wie,UpEquilibrium:xie,upharpoonleft:kie,upharpoonright:_ie,uplus:Sie,UpperLeftArrow:Tie,UpperRightArrow:Cie,upsi:Eie,Upsi:Aie,upsih:Lie,Upsilon:Mie,upsilon:Nie,UpTeeArrow:$ie,UpTee:Oie,upuparrows:Pie,urcorn:Rie,urcorner:Iie,urcrop:Die,Uring:zie,uring:Fie,urtri:Hie,Uscr:Bie,uscr:jie,utdot:Wie,Utilde:qie,utilde:Uie,utri:Vie,utrif:Gie,uuarr:Kie,Uuml:Xie,uuml:Yie,uwangle:Zie,vangrt:Jie,varepsilon:Qie,varkappa:eoe,varnothing:toe,varphi:noe,varpi:roe,varpropto:ioe,varr:ooe,vArr:soe,varrho:loe,varsigma:aoe,varsubsetneq:coe,varsubsetneqq:uoe,varsupsetneq:foe,varsupsetneqq:doe,vartheta:hoe,vartriangleleft:poe,vartriangleright:goe,vBar:moe,Vbar:voe,vBarv:yoe,Vcy:boe,vcy:woe,vdash:xoe,vDash:koe,Vdash:_oe,VDash:Soe,Vdashl:Toe,veebar:Coe,vee:Eoe,Vee:Aoe,veeeq:Loe,vellip:Moe,verbar:Noe,Verbar:$oe,vert:Ooe,Vert:Poe,VerticalBar:Roe,VerticalLine:Ioe,VerticalSeparator:Doe,VerticalTilde:zoe,VeryThinSpace:Foe,Vfr:Hoe,vfr:Boe,vltri:joe,vnsub:Woe,vnsup:qoe,Vopf:Uoe,vopf:Voe,vprop:Goe,vrtri:Koe,Vscr:Xoe,vscr:Yoe,vsubnE:Zoe,vsubne:Joe,vsupnE:Qoe,vsupne:ese,Vvdash:tse,vzigzag:nse,Wcirc:rse,wcirc:ise,wedbar:ose,wedge:sse,Wedge:lse,wedgeq:ase,weierp:cse,Wfr:use,wfr:fse,Wopf:dse,wopf:hse,wp:pse,wr:gse,wreath:mse,Wscr:vse,wscr:yse,xcap:bse,xcirc:wse,xcup:xse,xdtri:kse,Xfr:_se,xfr:Sse,xharr:Tse,xhArr:Cse,Xi:Ese,xi:Ase,xlarr:Lse,xlArr:Mse,xmap:Nse,xnis:$se,xodot:Ose,Xopf:Pse,xopf:Rse,xoplus:Ise,xotime:Dse,xrarr:zse,xrArr:Fse,Xscr:Hse,xscr:Bse,xsqcup:jse,xuplus:Wse,xutri:qse,xvee:Use,xwedge:Vse,Yacute:Gse,yacute:Kse,YAcy:Xse,yacy:Yse,Ycirc:Zse,ycirc:Jse,Ycy:Qse,ycy:ele,yen:tle,Yfr:nle,yfr:rle,YIcy:ile,yicy:ole,Yopf:sle,yopf:lle,Yscr:ale,yscr:cle,YUcy:ule,yucy:fle,yuml:dle,Yuml:hle,Zacute:ple,zacute:gle,Zcaron:mle,zcaron:vle,Zcy:yle,zcy:ble,Zdot:wle,zdot:xle,zeetrf:kle,ZeroWidthSpace:_le,Zeta:Sle,zeta:Tle,zfr:Cle,Zfr:Ele,ZHcy:Ale,zhcy:Lle,zigrarr:Mle,zopf:Nle,Zopf:$le,Zscr:Ole,zscr:Ple,zwj:Rle,zwnj:Ile},Dle="Á",zle="á",Fle="Â",Hle="â",Ble="´",jle="Æ",Wle="æ",qle="À",Ule="à",Vle="&",Gle="&",Kle="Å",Xle="å",Yle="Ã",Zle="ã",Jle="Ä",Qle="ä",eae="¦",tae="Ç",nae="ç",rae="¸",iae="¢",oae="©",sae="©",lae="¤",aae="°",cae="÷",uae="É",fae="é",dae="Ê",hae="ê",pae="È",gae="è",mae="Ð",vae="ð",yae="Ë",bae="ë",wae="½",xae="¼",kae="¾",_ae=">",Sae=">",Tae="Í",Cae="í",Eae="Î",Aae="î",Lae="¡",Mae="Ì",Nae="ì",$ae="¿",Oae="Ï",Pae="ï",Rae="«",Iae="<",Dae="<",zae="¯",Fae="µ",Hae="·",Bae=" ",jae="¬",Wae="Ñ",qae="ñ",Uae="Ó",Vae="ó",Gae="Ô",Kae="ô",Xae="Ò",Yae="ò",Zae="ª",Jae="º",Qae="Ø",ece="ø",tce="Õ",nce="õ",rce="Ö",ice="ö",oce="¶",sce="±",lce="£",ace='"',cce='"',uce="»",fce="®",dce="®",hce="§",pce="­",gce="¹",mce="²",vce="³",yce="ß",bce="Þ",wce="þ",xce="×",kce="Ú",_ce="ú",Sce="Û",Tce="û",Cce="Ù",Ece="ù",Ace="¨",Lce="Ü",Mce="ü",Nce="Ý",$ce="ý",Oce="¥",Pce="ÿ",Rce={Aacute:Dle,aacute:zle,Acirc:Fle,acirc:Hle,acute:Ble,AElig:jle,aelig:Wle,Agrave:qle,agrave:Ule,amp:Vle,AMP:Gle,Aring:Kle,aring:Xle,Atilde:Yle,atilde:Zle,Auml:Jle,auml:Qle,brvbar:eae,Ccedil:tae,ccedil:nae,cedil:rae,cent:iae,copy:oae,COPY:sae,curren:lae,deg:aae,divide:cae,Eacute:uae,eacute:fae,Ecirc:dae,ecirc:hae,Egrave:pae,egrave:gae,ETH:mae,eth:vae,Euml:yae,euml:bae,frac12:wae,frac14:xae,frac34:kae,gt:_ae,GT:Sae,Iacute:Tae,iacute:Cae,Icirc:Eae,icirc:Aae,iexcl:Lae,Igrave:Mae,igrave:Nae,iquest:$ae,Iuml:Oae,iuml:Pae,laquo:Rae,lt:Iae,LT:Dae,macr:zae,micro:Fae,middot:Hae,nbsp:Bae,not:jae,Ntilde:Wae,ntilde:qae,Oacute:Uae,oacute:Vae,Ocirc:Gae,ocirc:Kae,Ograve:Xae,ograve:Yae,ordf:Zae,ordm:Jae,Oslash:Qae,oslash:ece,Otilde:tce,otilde:nce,Ouml:rce,ouml:ice,para:oce,plusmn:sce,pound:lce,quot:ace,QUOT:cce,raquo:uce,reg:fce,REG:dce,sect:hce,shy:pce,sup1:gce,sup2:mce,sup3:vce,szlig:yce,THORN:bce,thorn:wce,times:xce,Uacute:kce,uacute:_ce,Ucirc:Sce,ucirc:Tce,Ugrave:Cce,ugrave:Ece,uml:Ace,Uuml:Lce,uuml:Mce,Yacute:Nce,yacute:$ce,yen:Oce,yuml:Pce},Ice="&",Dce="'",zce=">",Fce="<",Hce='"',Ox={amp:Ice,apos:Dce,gt:zce,lt:Fce,quot:Hce};var $s={};const Bce={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 N0;function jce(){if(N0)return $s;N0=1;var e=$s&&$s.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty($s,"__esModule",{value:!0});var t=e(Bce),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 $s.default=o,$s}var $0;function O0(){if($0)return Lr;$0=1;var e=Lr&&Lr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.decodeHTML=Lr.decodeHTMLStrict=Lr.decodeXML=void 0;var t=e($x),r=e(Rce),o=e(Ox),s=e(jce()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Lr.decodeXML=f(o.default),Lr.decodeHTMLStrict=f(t.default);function f(p){var m=h(p);return function(v){return String(v).replace(c,m)}}var d=function(p,m){return p<m?1:-1};Lr.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),m=Object.keys(t.default).sort(d),v=0,b=0;v<m.length;v++)p[b]===m[v]?(m[v]+=";?",b++):m[v]+=";";var w=new RegExp("&(?:"+m.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),O=h(t.default);function A(N){return N.substr(-1)!==";"&&(N+=";"),O(N)}return function(N){return String(N).replace(w,A)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var b=v.charAt(2);return b==="X"||b==="x"?s.default(parseInt(v.substr(3),16)):s.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Lr}var $n={},P0;function R0(){if(P0)return $n;P0=1;var e=$n&&$n.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty($n,"__esModule",{value:!0}),$n.escapeUTF8=$n.escape=$n.encodeNonAsciiHTML=$n.encodeHTML=$n.encodeXML=void 0;var t=e(Ox),r=d(t.default),o=h(r);$n.encodeXML=N(r);var s=e($x),c=d(s.default),f=h(c);$n.encodeHTML=b(c,f),$n.encodeNonAsciiHTML=N(c);function d(L){return Object.keys(L).sort().reduce(function(R,z){return R[L[z]]="&"+z+";",R},{})}function h(L){for(var R=[],z=[],C=0,I=Object.keys(L);C<I.length;C++){var W=I[C];W.length===1?R.push("\\"+W):z.push(W)}R.sort();for(var Z=0;Z<R.length-1;Z++){for(var se=Z;se<R.length-1&&R[se].charCodeAt(1)+1===R[se+1].charCodeAt(1);)se+=1;var Q=1+se-Z;Q<3||R.splice(Z,Q,R[Z]+"-"+R[se])}return z.unshift("["+R.join("")+"]"),new RegExp(z.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,m=String.prototype.codePointAt!=null?function(L){return L.codePointAt(0)}:function(L){return(L.charCodeAt(0)-55296)*1024+L.charCodeAt(1)-56320+65536};function v(L){return"&#x"+(L.length>1?m(L):L.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(L,R){return function(z){return z.replace(R,function(C){return L[C]}).replace(p,v)}}var w=new RegExp(o.source+"|"+p.source,"g");function O(L){return L.replace(w,v)}$n.escape=O;function A(L){return L.replace(o,v)}$n.escapeUTF8=A;function N(L){return function(R){return R.replace(w,function(z){return L[z]||v(z)})}}return $n}var I0;function Wce(){return I0||(I0=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=O0(),r=R0();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=R0();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=O0();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}})})(Hd)),Hd}var Bd,D0;function qce(){if(D0)return Bd;D0=1;function e(P,$){if(!(P instanceof $))throw new TypeError("Cannot call a class as a function")}function t(P,$){for(var S=0;S<$.length;S++){var k=$[S];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(P,k.key,k)}}function r(P,$,S){return $&&t(P.prototype,$),P}function o(P,$){var S=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!S){if(Array.isArray(P)||(S=s(P))||$){S&&(P=S);var k=0,M=function(){};return{s:M,n:function(){return k>=P.length?{done:!0}:{done:!1,value:P[k++]}},e:function(Be){throw Be},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,Y=!1,ve;return{s:function(){S=S.call(P)},n:function(){var Be=S.next();return B=Be.done,Be},e:function(Be){Y=!0,ve=Be},f:function(){try{!B&&S.return!=null&&S.return()}finally{if(Y)throw ve}}}}function s(P,$){if(P){if(typeof P=="string")return c(P,$);var S=Object.prototype.toString.call(P).slice(8,-1);if(S==="Object"&&P.constructor&&(S=P.constructor.name),S==="Map"||S==="Set")return Array.from(P);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return c(P,$)}}function c(P,$){($==null||$>P.length)&&($=P.length);for(var S=0,k=new Array($);S<$;S++)k[S]=P[S];return k}var f=Wce(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={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 N(0,5).forEach(function($){N(0,5).forEach(function(S){N(0,5).forEach(function(k){return p($,S,k,P)})})}),N(0,23).forEach(function($){var S=$+232,k=m($*10+8);P[S]="#"+k+k+k}),P}function p(P,$,S,k){var M=16+P*36+$*6+S,B=P>0?P*40+55:0,Y=$>0?$*40+55:0,ve=S>0?S*40+55:0;k[M]=v([B,Y,ve])}function m(P){for(var $=P.toString(16);$.length<2;)$="0"+$;return $}function v(P){var $=[],S=o(P),k;try{for(S.s();!(k=S.n()).done;){var M=k.value;$.push(m(M))}}catch(B){S.e(B)}finally{S.f()}return"#"+$.join("")}function b(P,$,S,k){var M;return $==="text"?M=z(S,k):$==="display"?M=O(P,S,k):$==="xterm256Foreground"?M=W(P,k.colors[S]):$==="xterm256Background"?M=Z(P,k.colors[S]):$==="rgb"&&(M=w(P,S)),M}function w(P,$){$=$.substring(2).slice(0,-1);var S=+$.substr(0,2),k=$.substring(5).split(";"),M=k.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return I(P,(S===38?"color:#":"background-color:#")+M)}function O(P,$,S){$=parseInt($,10);var k={"-1":function(){return"<br/>"},0:function(){return P.length&&A(P)},1:function(){return C(P,"b")},3:function(){return C(P,"i")},4:function(){return C(P,"u")},8:function(){return I(P,"display:none")},9:function(){return C(P,"strike")},22:function(){return I(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return se(P,"i")},24:function(){return se(P,"u")},39:function(){return W(P,S.fg)},49:function(){return Z(P,S.bg)},53:function(){return I(P,"text-decoration:overline")}},M;return k[$]?M=k[$]():4<$&&$<7?M=C(P,"blink"):29<$&&$<38?M=W(P,S.colors[$-30]):39<$&&$<48?M=Z(P,S.colors[$-40]):89<$&&$<98?M=W(P,S.colors[8+($-90)]):99<$&&$<108&&(M=Z(P,S.colors[8+($-100)])),M}function A(P){var $=P.slice(0);return P.length=0,$.reverse().map(function(S){return"</"+S+">"}).join("")}function N(P,$){for(var S=[],k=P;k<=$;k++)S.push(k);return S}function L(P){return function($){return(P===null||$.category!==P)&&P!=="all"}}function R(P){P=parseInt(P,10);var $=null;return P===0?$="all":P===1?$="bold":2<P&&P<5?$="underline":4<P&&P<7?$="blink":P===8?$="hide":P===9?$="strike":29<P&&P<38||P===39||89<P&&P<98?$="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&($="background-color"),$}function z(P,$){return $.escapeXML?f.encodeXML(P):P}function C(P,$,S){return S||(S=""),P.push($),"<".concat($).concat(S?' style="'.concat(S,'"'):"",">")}function I(P,$){return C(P,"span",$)}function W(P,$){return C(P,"span","color:"+$)}function Z(P,$){return C(P,"span","background-color:"+$)}function se(P,$){var S;if(P.slice(-1)[0]===$&&(S=P.pop()),S)return"</"+$+">"}function Q(P,$,S){var k=!1,M=3;function B(){return""}function Y(j,te){return S("xterm256Foreground",te),""}function ve(j,te){return S("xterm256Background",te),""}function _e(j){return $.newline?S("display",-1):S("text",j),""}function Be(j,te){k=!0,te.trim().length===0&&(te="0"),te=te.trimRight(";").split(";");var de=o(te),he;try{for(de.s();!(he=de.n()).done;){var ge=he.value;S("display",ge)}}catch(Ce){de.e(Ce)}finally{de.f()}return""}function Ae(j){return S("text",j),""}function Ke(j){return S("rgb",j),""}var Ue=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ke},{pattern:/^\x1b\[38;5;(\d+)m/,sub:Y},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Be},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ae}];function He(j,te){te>M&&k||(k=!1,P=P.replace(j.pattern,j.sub))}var Pe=[],F=P,J=F.length;e:for(;J>0;){for(var ie=0,ae=0,ce=Ue.length;ae<ce;ie=++ae){var D=Ue[ie];if(He(D,ie),P.length!==J){J=P.length;continue e}}if(P.length===J)break;Pe.push(0),J=P.length}return Pe}function K(P,$,S){return $!=="text"&&(P=P.filter(L(R(S))),P.push({token:$,data:S,category:R(S)})),P}var G=(function(){function P($){e(this,P),$=$||{},$.colors&&($.colors=Object.assign({},d.colors,$.colors)),this.options=Object.assign({},d,$),this.stack=[],this.stickyStack=[]}return r(P,[{key:"toHtml",value:function(S){var k=this;S=typeof S=="string"?[S]:S;var M=this.stack,B=this.options,Y=[];return this.stickyStack.forEach(function(ve){var _e=b(M,ve.token,ve.data,B);_e&&Y.push(_e)}),Q(S.join(""),B,function(ve,_e){var Be=b(M,ve,_e,B);Be&&Y.push(Be),B.stream&&(k.stickyStack=K(k.stickyStack,ve,_e))}),M.length&&Y.push(A(M)),Y.join("")}}]),P})();return Bd=G,Bd}var Uce=qce();const Vce=Nx(Uce);function ga(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Gce(e,t){return t&&e.endsWith(t)}async function $p(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Op(e){return new Vce({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Kce(e){return e===null||typeof e!="function"&&typeof e!="object"}function Px(e){let t=e;if(Kce(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=YA(t.stack||"",{ignoreStackEntries:[]}),t}function Xce(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(ga(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(ga(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(ga(t.stack))}`),r.length>0?r:null}function Rx(e,t){const r=Op(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>Xce(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const Qa=yA("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),ko=rs(Qa,"file"),gn=rs(Qa,"view"),Ix=rs(Qa,"line"),Dx=rs(Qa,"column"),Ti=rs(Qa,"test");var z0={exports:{}},F0;function Pp(){return F0||(F0=1,(function(e,t){(function(r){r(To())})(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,m=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function E(Qt){return{type:Qt,style:"keyword"}}var U=E("keyword a"),ye=E("keyword b"),Se=E("keyword c"),fe=E("keyword d"),Ie=E("operator"),pt={type:"atom",style:"atom"};return{if:E("if"),while:U,with:U,else:ye,do:ye,try:ye,finally:ye,return:fe,break:fe,continue:fe,new:E("new"),delete:Se,void:Se,throw:Se,debugger:E("debugger"),var:E("var"),const:E("var"),let:E("var"),function:E("function"),catch:E("catch"),for:E("for"),switch:E("switch"),case:E("case"),default:E("default"),in:Ie,typeof:Ie,instanceof:Ie,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:E("this"),class:E("class"),super:E("atom"),yield:Se,export:E("export"),import:E("import"),extends:Se,await:Se}})(),w=/[+\-*&%=<>!?|~^@]/,O=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(E){for(var U=!1,ye,Se=!1;(ye=E.next())!=null;){if(!U){if(ye=="/"&&!Se)return;ye=="["?Se=!0:Se&&ye=="]"&&(Se=!1)}U=!U&&ye=="\\"}}var N,L;function R(E,U,ye){return N=E,L=ye,U}function z(E,U){var ye=E.next();if(ye=='"'||ye=="'")return U.tokenize=C(ye),U.tokenize(E,U);if(ye=="."&&E.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return R("number","number");if(ye=="."&&E.match(".."))return R("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ye))return R(ye);if(ye=="="&&E.eat(">"))return R("=>","operator");if(ye=="0"&&E.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return R("number","number");if(/\d/.test(ye))return E.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),R("number","number");if(ye=="/")return E.eat("*")?(U.tokenize=I,I(E,U)):E.eat("/")?(E.skipToEnd(),R("comment","comment")):er(E,U,1)?(A(E),E.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),R("regexp","string-2")):(E.eat("="),R("operator","operator",E.current()));if(ye=="`")return U.tokenize=W,W(E,U);if(ye=="#"&&E.peek()=="!")return E.skipToEnd(),R("meta","meta");if(ye=="#"&&E.eatWhile(v))return R("variable","property");if(ye=="<"&&E.match("!--")||ye=="-"&&E.match("->")&&!/\S/.test(E.string.slice(0,E.start)))return E.skipToEnd(),R("comment","comment");if(w.test(ye))return(ye!=">"||!U.lexical||U.lexical.type!=">")&&(E.eat("=")?(ye=="!"||ye=="=")&&E.eat("="):/[<>*+\-|&?]/.test(ye)&&(E.eat(ye),ye==">"&&E.eat(ye))),ye=="?"&&E.eat(".")?R("."):R("operator","operator",E.current());if(v.test(ye)){E.eatWhile(v);var Se=E.current();if(U.lastType!="."){if(b.propertyIsEnumerable(Se)){var fe=b[Se];return R(fe.type,fe.style,Se)}if(Se=="async"&&E.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return R("async","keyword",Se)}return R("variable","variable",Se)}}function C(E){return function(U,ye){var Se=!1,fe;if(d&&U.peek()=="@"&&U.match(O))return ye.tokenize=z,R("jsonld-keyword","meta");for(;(fe=U.next())!=null&&!(fe==E&&!Se);)Se=!Se&&fe=="\\";return Se||(ye.tokenize=z),R("string","string")}}function I(E,U){for(var ye=!1,Se;Se=E.next();){if(Se=="/"&&ye){U.tokenize=z;break}ye=Se=="*"}return R("comment","comment")}function W(E,U){for(var ye=!1,Se;(Se=E.next())!=null;){if(!ye&&(Se=="`"||Se=="$"&&E.eat("{"))){U.tokenize=z;break}ye=!ye&&Se=="\\"}return R("quasi","string-2",E.current())}var Z="([{}])";function se(E,U){U.fatArrowAt&&(U.fatArrowAt=null);var ye=E.string.indexOf("=>",E.start);if(!(ye<0)){if(m){var Se=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(E.string.slice(E.start,ye));Se&&(ye=Se.index)}for(var fe=0,Ie=!1,pt=ye-1;pt>=0;--pt){var Qt=E.string.charAt(pt),Cn=Z.indexOf(Qt);if(Cn>=0&&Cn<3){if(!fe){++pt;break}if(--fe==0){Qt=="("&&(Ie=!0);break}}else if(Cn>=3&&Cn<6)++fe;else if(v.test(Qt))Ie=!0;else if(/["'\/`]/.test(Qt))for(;;--pt){if(pt==0)return;var fs=E.string.charAt(pt-1);if(fs==Qt&&E.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ie&&!fe){++pt;break}}Ie&&!fe&&(U.fatArrowAt=pt)}}var Q={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(E,U,ye,Se,fe,Ie){this.indented=E,this.column=U,this.type=ye,this.prev=fe,this.info=Ie,Se!=null&&(this.align=Se)}function G(E,U){if(!p)return!1;for(var ye=E.localVars;ye;ye=ye.next)if(ye.name==U)return!0;for(var Se=E.context;Se;Se=Se.prev)for(var ye=Se.vars;ye;ye=ye.next)if(ye.name==U)return!0}function P(E,U,ye,Se,fe){var Ie=E.cc;for($.state=E,$.stream=fe,$.marked=null,$.cc=Ie,$.style=U,E.lexical.hasOwnProperty("align")||(E.lexical.align=!0);;){var pt=Ie.length?Ie.pop():h?ce:ie;if(pt(ye,Se)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return $.marked?$.marked:ye=="variable"&&G(E,Se)?"variable-2":U}}}var $={state:null,marked:null,cc:null};function S(){for(var E=arguments.length-1;E>=0;E--)$.cc.push(arguments[E])}function k(){return S.apply(null,arguments),!0}function M(E,U){for(var ye=U;ye;ye=ye.next)if(ye.name==E)return!0;return!1}function B(E){var U=$.state;if($.marked="def",!!p){if(U.context){if(U.lexical.info=="var"&&U.context&&U.context.block){var ye=Y(E,U.context);if(ye!=null){U.context=ye;return}}else if(!M(E,U.localVars)){U.localVars=new Be(E,U.localVars);return}}s.globalVars&&!M(E,U.globalVars)&&(U.globalVars=new Be(E,U.globalVars))}}function Y(E,U){if(U)if(U.block){var ye=Y(E,U.prev);return ye?ye==U.prev?U:new _e(ye,U.vars,!0):null}else return M(E,U.vars)?U:new _e(U.prev,new Be(E,U.vars),!1);else return null}function ve(E){return E=="public"||E=="private"||E=="protected"||E=="abstract"||E=="readonly"}function _e(E,U,ye){this.prev=E,this.vars=U,this.block=ye}function Be(E,U){this.name=E,this.next=U}var Ae=new Be("this",new Be("arguments",null));function Ke(){$.state.context=new _e($.state.context,$.state.localVars,!1),$.state.localVars=Ae}function Ue(){$.state.context=new _e($.state.context,$.state.localVars,!0),$.state.localVars=null}Ke.lex=Ue.lex=!0;function He(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}He.lex=!0;function Pe(E,U){var ye=function(){var Se=$.state,fe=Se.indented;if(Se.lexical.type=="stat")fe=Se.lexical.indented;else for(var Ie=Se.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;Se.lexical=new K(fe,$.stream.column(),E,null,Se.lexical,U)};return ye.lex=!0,ye}function F(){var E=$.state;E.lexical.prev&&(E.lexical.type==")"&&(E.indented=E.lexical.indented),E.lexical=E.lexical.prev)}F.lex=!0;function J(E){function U(ye){return ye==E?k():E==";"||ye=="}"||ye==")"||ye=="]"?S():k(U)}return U}function ie(E,U){return E=="var"?k(Pe("vardef",U),is,J(";"),F):E=="keyword a"?k(Pe("form"),j,ie,F):E=="keyword b"?k(Pe("form"),ie,F):E=="keyword d"?$.stream.match(/^\s*$/,!1)?k():k(Pe("stat"),de,J(";"),F):E=="debugger"?k(J(";")):E=="{"?k(Pe("}"),Ue,qt,F,He):E==";"?k():E=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==F&&$.state.cc.pop()(),k(Pe("form"),j,ie,F,os)):E=="function"?k(hr):E=="for"?k(Pe("form"),Ue,ic,ie,He,F):E=="class"||m&&U=="interface"?($.marked="keyword",k(Pe("form",E=="class"?E:U),ss,F)):E=="variable"?m&&U=="declare"?($.marked="keyword",k(ie)):m&&(U=="module"||U=="enum"||U=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",U=="enum"?k(We):U=="type"?k(oc,J("operator"),at,J(";")):k(Pe("form"),Tn,J("{"),Pe("}"),qt,F,F)):m&&U=="namespace"?($.marked="keyword",k(Pe("form"),ce,ie,F)):m&&U=="abstract"?($.marked="keyword",k(ie)):k(Pe("stat"),Re):E=="switch"?k(Pe("form"),j,J("{"),Pe("}","switch"),Ue,qt,F,F,He):E=="case"?k(ce,J(":")):E=="default"?k(J(":")):E=="catch"?k(Pe("form"),Ke,ae,ie,F,He):E=="export"?k(Pe("stat"),ls,F):E=="import"?k(Pe("stat"),Bi,F):E=="async"?k(ie):U=="@"?k(ce,ie):S(Pe("stat"),ce,J(";"),F)}function ae(E){if(E=="(")return k(kr,J(")"))}function ce(E,U){return te(E,U,!1)}function D(E,U){return te(E,U,!0)}function j(E){return E!="("?S():k(Pe(")"),de,J(")"),F)}function te(E,U,ye){if($.state.fatArrowAt==$.stream.start){var Se=ye?be:xe;if(E=="(")return k(Ke,Pe(")"),ut(kr,")"),F,J("=>"),Se,He);if(E=="variable")return S(Ke,Tn,J("=>"),Se,He)}var fe=ye?ge:he;return Q.hasOwnProperty(E)?k(fe):E=="function"?k(hr,fe):E=="class"||m&&U=="interface"?($.marked="keyword",k(Pe("form"),Lf,F)):E=="keyword c"||E=="async"?k(ye?D:ce):E=="("?k(Pe(")"),de,J(")"),F,fe):E=="operator"||E=="spread"?k(ye?D:ce):E=="["?k(Pe("]"),It,F,fe):E=="{"?Jt(ct,"}",null,fe):E=="quasi"?S(Ce,fe):E=="new"?k(ee(ye)):k()}function de(E){return E.match(/[;\}\)\],]/)?S():S(ce)}function he(E,U){return E==","?k(de):ge(E,U,!1)}function ge(E,U,ye){var Se=ye==!1?he:ge,fe=ye==!1?ce:D;if(E=="=>")return k(Ke,ye?be:xe,He);if(E=="operator")return/\+\+|--/.test(U)||m&&U=="!"?k(Se):m&&U=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Pe(">"),ut(at,">"),F,Se):U=="?"?k(ce,J(":"),fe):k(fe);if(E=="quasi")return S(Ce,Se);if(E!=";"){if(E=="(")return Jt(D,")","call",Se);if(E==".")return k(Qe,Se);if(E=="[")return k(Pe("]"),de,J("]"),F,Se);if(m&&U=="as")return $.marked="keyword",k(at,Se);if(E=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),k(fe)}}function Ce(E,U){return E!="quasi"?S():U.slice(U.length-2)!="${"?k(Ce):k(de,Ee)}function Ee(E){if(E=="}")return $.marked="string-2",$.state.tokenize=W,k(Ce)}function xe(E){return se($.stream,$.state),S(E=="{"?ie:ce)}function be(E){return se($.stream,$.state),S(E=="{"?ie:D)}function ee(E){return function(U){return U=="."?k(E?oe:ue):U=="variable"&&m?k(Wn,E?ge:he):S(E?D:ce)}}function ue(E,U){if(U=="target")return $.marked="keyword",k(he)}function oe(E,U){if(U=="target")return $.marked="keyword",k(ge)}function Re(E){return E==":"?k(F,ie):S(he,J(";"),F)}function Qe(E){if(E=="variable")return $.marked="property",k()}function ct(E,U){if(E=="async")return $.marked="property",k(ct);if(E=="variable"||$.style=="keyword"){if($.marked="property",U=="get"||U=="set")return k(dt);var ye;return m&&$.state.fatArrowAt==$.stream.start&&(ye=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+ye[0].length),k(Nt)}else{if(E=="number"||E=="string")return $.marked=d?"property":$.style+" property",k(Nt);if(E=="jsonld-keyword")return k(Nt);if(m&&ve(U))return $.marked="keyword",k(ct);if(E=="[")return k(ce,Bn,J("]"),Nt);if(E=="spread")return k(D,Nt);if(U=="*")return $.marked="keyword",k(ct);if(E==":")return S(Nt)}}function dt(E){return E!="variable"?S(Nt):($.marked="property",k(hr))}function Nt(E){if(E==":")return k(D);if(E=="(")return S(hr)}function ut(E,U,ye){function Se(fe,Ie){if(ye?ye.indexOf(fe)>-1:fe==","){var pt=$.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),k(function(Qt,Cn){return Qt==U||Cn==U?S():S(E)},Se)}return fe==U||Ie==U?k():ye&&ye.indexOf(";")>-1?S(E):k(J(U))}return function(fe,Ie){return fe==U||Ie==U?k():S(E,Se)}}function Jt(E,U,ye){for(var Se=3;Se<arguments.length;Se++)$.cc.push(arguments[Se]);return k(Pe(U,ye),ut(E,U),F)}function qt(E){return E=="}"?k():S(ie,qt)}function Bn(E,U){if(m){if(E==":")return k(at);if(U=="?")return k(Bn)}}function Wr(E,U){if(m&&(E==":"||U=="in"))return k(at)}function Ht(E){if(m&&E==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?k(ce,jn,at):k(at)}function jn(E,U){if(U=="is")return $.marked="keyword",k()}function at(E,U){if(U=="keyof"||U=="typeof"||U=="infer"||U=="readonly")return $.marked="keyword",k(U=="typeof"?D:at);if(E=="variable"||U=="void")return $.marked="type",k(dr);if(U=="|"||U=="&")return k(at);if(E=="string"||E=="number"||E=="atom")return k(dr);if(E=="[")return k(Pe("]"),ut(at,"]",","),F,dr);if(E=="{")return k(Pe("}"),Ye,F,dr);if(E=="(")return k(ut(Rt,")"),Co,dr);if(E=="<")return k(ut(at,">"),at);if(E=="quasi")return S(un,dr)}function Co(E){if(E=="=>")return k(at)}function Ye(E){return E.match(/[\}\)\]]/)?k():E==","||E==";"?k(Ye):S(si,Ye)}function si(E,U){if(E=="variable"||$.style=="keyword")return $.marked="property",k(si);if(U=="?"||E=="number"||E=="string")return k(si);if(E==":")return k(at);if(E=="[")return k(J("variable"),Wr,J("]"),si);if(E=="(")return S(Hi,si);if(!E.match(/[;\}\)\],]/))return k()}function un(E,U){return E!="quasi"?S():U.slice(U.length-2)!="${"?k(un):k(at,Pt)}function Pt(E){if(E=="}")return $.marked="string-2",$.state.tokenize=W,k(un)}function Rt(E,U){return E=="variable"&&$.stream.match(/^\s*[?:]/,!1)||U=="?"?k(Rt):E==":"?k(at):E=="spread"?k(Rt):S(at)}function dr(E,U){if(U=="<")return k(Pe(">"),ut(at,">"),F,dr);if(U=="|"||E=="."||U=="&")return k(at);if(E=="[")return k(at,J("]"),dr);if(U=="extends"||U=="implements")return $.marked="keyword",k(at);if(U=="?")return k(at,J(":"),at)}function Wn(E,U){if(U=="<")return k(Pe(">"),ut(at,">"),F,dr)}function wr(){return S(at,fn)}function fn(E,U){if(U=="=")return k(at)}function is(E,U){return U=="enum"?($.marked="keyword",k(We)):S(Tn,Bn,xr,Af)}function Tn(E,U){if(m&&ve(U))return $.marked="keyword",k(Tn);if(E=="variable")return B(U),k();if(E=="spread")return k(Tn);if(E=="[")return Jt(ml,"]");if(E=="{")return Jt(zi,"}")}function zi(E,U){return E=="variable"&&!$.stream.match(/^\s*:/,!1)?(B(U),k(xr)):(E=="variable"&&($.marked="property"),E=="spread"?k(Tn):E=="}"?S():E=="["?k(ce,J("]"),J(":"),zi):k(J(":"),Tn,xr))}function ml(){return S(Tn,xr)}function xr(E,U){if(U=="=")return k(D)}function Af(E){if(E==",")return k(is)}function os(E,U){if(E=="keyword b"&&U=="else")return k(Pe("form","else"),ie,F)}function ic(E,U){if(U=="await")return k(ic);if(E=="(")return k(Pe(")"),vl,F)}function vl(E){return E=="var"?k(is,Fi):E=="variable"?k(Fi):S(Fi)}function Fi(E,U){return E==")"?k():E==";"?k(Fi):U=="in"||U=="of"?($.marked="keyword",k(ce,Fi)):S(ce,Fi)}function hr(E,U){if(U=="*")return $.marked="keyword",k(hr);if(E=="variable")return B(U),k(hr);if(E=="(")return k(Ke,Pe(")"),ut(kr,")"),F,Ht,ie,He);if(m&&U=="<")return k(Pe(">"),ut(wr,">"),F,hr)}function Hi(E,U){if(U=="*")return $.marked="keyword",k(Hi);if(E=="variable")return B(U),k(Hi);if(E=="(")return k(Ke,Pe(")"),ut(kr,")"),F,Ht,He);if(m&&U=="<")return k(Pe(">"),ut(wr,">"),F,Hi)}function oc(E,U){if(E=="keyword"||E=="variable")return $.marked="type",k(oc);if(U=="<")return k(Pe(">"),ut(wr,">"),F)}function kr(E,U){return U=="@"&&k(ce,kr),E=="spread"?k(kr):m&&ve(U)?($.marked="keyword",k(kr)):m&&E=="this"?k(Bn,xr):S(Tn,Bn,xr)}function Lf(E,U){return E=="variable"?ss(E,U):_r(E,U)}function ss(E,U){if(E=="variable")return B(U),k(_r)}function _r(E,U){if(U=="<")return k(Pe(">"),ut(wr,">"),F,_r);if(U=="extends"||U=="implements"||m&&E==",")return U=="implements"&&($.marked="keyword"),k(m?at:ce,_r);if(E=="{")return k(Pe("}"),Sr,F)}function Sr(E,U){if(E=="async"||E=="variable"&&(U=="static"||U=="get"||U=="set"||m&&ve(U))&&$.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return $.marked="keyword",k(Sr);if(E=="variable"||$.style=="keyword")return $.marked="property",k(Eo,Sr);if(E=="number"||E=="string")return k(Eo,Sr);if(E=="[")return k(ce,Bn,J("]"),Eo,Sr);if(U=="*")return $.marked="keyword",k(Sr);if(m&&E=="(")return S(Hi,Sr);if(E==";"||E==",")return k(Sr);if(E=="}")return k();if(U=="@")return k(ce,Sr)}function Eo(E,U){if(U=="!"||U=="?")return k(Eo);if(E==":")return k(at,xr);if(U=="=")return k(D);var ye=$.state.lexical.prev,Se=ye&&ye.info=="interface";return S(Se?Hi:hr)}function ls(E,U){return U=="*"?($.marked="keyword",k(us,J(";"))):U=="default"?($.marked="keyword",k(ce,J(";"))):E=="{"?k(ut(as,"}"),us,J(";")):S(ie)}function as(E,U){if(U=="as")return $.marked="keyword",k(J("variable"));if(E=="variable")return S(D,as)}function Bi(E){return E=="string"?k():E=="("?S(ce):E=="."?S(he):S(cs,qr,us)}function cs(E,U){return E=="{"?Jt(cs,"}"):(E=="variable"&&B(U),U=="*"&&($.marked="keyword"),k(yl))}function qr(E){if(E==",")return k(cs,qr)}function yl(E,U){if(U=="as")return $.marked="keyword",k(cs)}function us(E,U){if(U=="from")return $.marked="keyword",k(ce)}function It(E){return E=="]"?k():S(ut(D,"]"))}function We(){return S(Pe("form"),Tn,J("{"),Pe("}"),ut(li,"}"),F,F)}function li(){return S(Tn,xr)}function bl(E,U){return E.lastType=="operator"||E.lastType==","||w.test(U.charAt(0))||/[,.]/.test(U.charAt(0))}function er(E,U,ye){return U.tokenize==z&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(U.lastType)||U.lastType=="quasi"&&/\{\s*$/.test(E.string.slice(0,E.pos-(ye||0)))}return{startState:function(E){var U={tokenize:z,lastType:"sof",cc:[],lexical:new K((E||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new _e(null,null,!1),indented:E||0};return s.globalVars&&typeof s.globalVars=="object"&&(U.globalVars=s.globalVars),U},token:function(E,U){if(E.sol()&&(U.lexical.hasOwnProperty("align")||(U.lexical.align=!1),U.indented=E.indentation(),se(E,U)),U.tokenize!=I&&E.eatSpace())return null;var ye=U.tokenize(E,U);return N=="comment"?ye:(U.lastType=N=="operator"&&(L=="++"||L=="--")?"incdec":N,P(U,ye,N,L,E))},indent:function(E,U){if(E.tokenize==I||E.tokenize==W)return r.Pass;if(E.tokenize!=z)return 0;var ye=U&&U.charAt(0),Se=E.lexical,fe;if(!/^\s*else\b/.test(U))for(var Ie=E.cc.length-1;Ie>=0;--Ie){var pt=E.cc[Ie];if(pt==F)Se=Se.prev;else if(pt!=os&&pt!=He)break}for(;(Se.type=="stat"||Se.type=="form")&&(ye=="}"||(fe=E.cc[E.cc.length-1])&&(fe==he||fe==ge)&&!/^[,\.=+\-*:?[\(]/.test(U));)Se=Se.prev;f&&Se.type==")"&&Se.prev.type=="stat"&&(Se=Se.prev);var Qt=Se.type,Cn=ye==Qt;return Qt=="vardef"?Se.indented+(E.lastType=="operator"||E.lastType==","?Se.info.length+1:0):Qt=="form"&&ye=="{"?Se.indented:Qt=="form"?Se.indented+c:Qt=="stat"?Se.indented+(bl(E,U)?f||c:0):Se.info=="switch"&&!Cn&&s.doubleIndentSwitch!=!1?Se.indented+(/^(?:case|default)\b/.test(U)?c:2*c):Se.align?Se.column+(Cn?0:1):Se.indented+(Cn?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:er,skipExpression:function(E){P(E,"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})})})()),z0.exports}Pp();var H0={exports:{}},B0;function Rp(){return B0||(B0=1,(function(e,t){(function(r){r(To())})(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 m in p)h[m]=p[m];for(var m in f)h[m]=f[m];var v,b;function w(k,M){function B(_e){return M.tokenize=_e,_e(k,M)}var Y=k.next();if(Y=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?B(N("atom","]]>")):null:k.match("--")?B(N("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),B(L(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),M.tokenize=N("meta","?>"),"meta"):(v=k.eat("/")?"closeTag":"openTag",M.tokenize=O,"tag bracket");if(Y=="&"){var ve;return k.eat("#")?k.eat("x")?ve=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ve=k.eatWhile(/[\d]/)&&k.eat(";"):ve=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ve?"atom":"error"}else return k.eatWhile(/[^&<]/),null}w.isInText=!0;function O(k,M){var B=k.next();if(B==">"||B=="/"&&k.eat(">"))return M.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){M.tokenize=w,M.state=W,M.tagName=M.tagStart=null;var Y=M.tokenize(k,M);return Y?Y+" tag error":"tag error"}else return/[\'\"]/.test(B)?(M.tokenize=A(B),M.stringStartCol=k.column(),M.tokenize(k,M)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var M=function(B,Y){for(;!B.eol();)if(B.next()==k){Y.tokenize=O;break}return"string"};return M.isInAttribute=!0,M}function N(k,M){return function(B,Y){for(;!B.eol();){if(B.match(M)){Y.tokenize=w;break}B.next()}return k}}function L(k){return function(M,B){for(var Y;(Y=M.next())!=null;){if(Y=="<")return B.tokenize=L(k+1),B.tokenize(M,B);if(Y==">")if(k==1){B.tokenize=w;break}else return B.tokenize=L(k-1),B.tokenize(M,B)}return"meta"}}function R(k){return k&&k.toLowerCase()}function z(k,M,B){this.prev=k.context,this.tagName=M||"",this.indent=k.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(M)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function C(k){k.context&&(k.context=k.context.prev)}function I(k,M){for(var B;;){if(!k.context||(B=k.context.tagName,!h.contextGrabbers.hasOwnProperty(R(B))||!h.contextGrabbers[R(B)].hasOwnProperty(R(M))))return;C(k)}}function W(k,M,B){return k=="openTag"?(B.tagStart=M.column(),Z):k=="closeTag"?se:W}function Z(k,M,B){return k=="word"?(B.tagName=M.current(),b="tag",G):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",G(k,M,B)):(b="error",Z)}function se(k,M,B){if(k=="word"){var Y=M.current();return B.context&&B.context.tagName!=Y&&h.implicitlyClosed.hasOwnProperty(R(B.context.tagName))&&C(B),B.context&&B.context.tagName==Y||h.matchClosing===!1?(b="tag",Q):(b="tag error",K)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",Q(k,M,B)):(b="error",K)}function Q(k,M,B){return k!="endTag"?(b="error",Q):(C(B),W)}function K(k,M,B){return b="error",Q(k,M,B)}function G(k,M,B){if(k=="word")return b="attribute",P;if(k=="endTag"||k=="selfcloseTag"){var Y=B.tagName,ve=B.tagStart;return B.tagName=B.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(R(Y))?I(B,Y):(I(B,Y),B.context=new z(B,Y,ve==B.indented)),W}return b="error",G}function P(k,M,B){return k=="equals"?$:(h.allowMissing||(b="error"),G(k,M,B))}function $(k,M,B){return k=="string"?S:k=="word"&&h.allowUnquoted?(b="string",G):(b="error",G(k,M,B))}function S(k,M,B){return k=="string"?S:G(k,M,B)}return{startState:function(k){var M={tokenize:w,state:W,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(M.baseIndent=k),M},token:function(k,M){if(!M.tagName&&k.sol()&&(M.indented=k.indentation()),k.eatSpace())return null;v=null;var B=M.tokenize(k,M);return(B||v)&&B!="comment"&&(b=null,M.state=M.state(v||B,k,M),b&&(B=b=="error"?B+" error":b)),B},indent:function(k,M,B){var Y=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(Y&&Y.noIndent)return r.Pass;if(k.tokenize!=O&&k.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(M))return 0;var ve=M&&/^<(\/)?([\w_:\.-]*)/.exec(M);if(ve&&ve[1])for(;Y;)if(Y.tagName==ve[2]){Y=Y.prev;break}else if(h.implicitlyClosed.hasOwnProperty(R(Y.tagName)))Y=Y.prev;else break;else if(ve)for(;Y;){var _e=h.contextGrabbers[R(Y.tagName)];if(_e&&_e.hasOwnProperty(R(ve[2])))Y=Y.prev;else break}for(;Y&&Y.prev&&!Y.startOfLine;)Y=Y.prev;return Y?Y.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==$&&(k.state=G)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var M=[],B=k.context;B;B=B.prev)M.push(B.tagName);return M.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),H0.exports}Rp();var j0={exports:{}},W0={exports:{}},q0;function Yce(){return q0||(q0=1,(function(e,t){(function(r){r(To())})(function(r){r.defineMode("css",function(K,G){var P=G.inline;G.propertyKeywords||(G=r.resolveMode("text/css"));var $=K.indentUnit,S=G.tokenHooks,k=G.documentTypes||{},M=G.mediaTypes||{},B=G.mediaFeatures||{},Y=G.mediaValueKeywords||{},ve=G.propertyKeywords||{},_e=G.nonStandardPropertyKeywords||{},Be=G.fontProperties||{},Ae=G.counterDescriptors||{},Ke=G.colorKeywords||{},Ue=G.valueKeywords||{},He=G.allowNested,Pe=G.lineComment,F=G.supportsAtComponent===!0,J=K.highlightNonStandardPropertyKeywords!==!1,ie,ae;function ce(ee,ue){return ie=ue,ee}function D(ee,ue){var oe=ee.next();if(S[oe]){var Re=S[oe](ee,ue);if(Re!==!1)return Re}if(oe=="@")return ee.eatWhile(/[\w\\\-]/),ce("def",ee.current());if(oe=="="||(oe=="~"||oe=="|")&&ee.eat("="))return ce(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=j(oe),ue.tokenize(ee,ue);if(oe=="#")return ee.eatWhile(/[\w\\\-]/),ce("atom","hash");if(oe=="!")return ee.match(/^\s*\w*/),ce("keyword","important");if(/\d/.test(oe)||oe=="."&&ee.eat(/\d/))return ee.eatWhile(/[\w.%]/),ce("number","unit");if(oe==="-"){if(/[\d.]/.test(ee.peek()))return ee.eatWhile(/[\w.%]/),ce("number","unit");if(ee.match(/^-[\w\\\-]*/))return ee.eatWhile(/[\w\\\-]/),ee.match(/^\s*:/,!1)?ce("variable-2","variable-definition"):ce("variable-2","variable");if(ee.match(/^\w+-/))return ce("meta","meta")}else return/[,+>*\/]/.test(oe)?ce(null,"select-op"):oe=="."&&ee.match(/^-?[_a-z][_a-z0-9-]*/i)?ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ce(null,oe):ee.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(ee.current())&&(ue.tokenize=te),ce("variable callee","variable")):/[\w\\\-]/.test(oe)?(ee.eatWhile(/[\w\\\-]/),ce("property","word")):ce(null,null)}function j(ee){return function(ue,oe){for(var Re=!1,Qe;(Qe=ue.next())!=null;){if(Qe==ee&&!Re){ee==")"&&ue.backUp(1);break}Re=!Re&&Qe=="\\"}return(Qe==ee||!Re&&ee!=")")&&(oe.tokenize=null),ce("string","string")}}function te(ee,ue){return ee.next(),ee.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=j(")"),ce(null,"(")}function de(ee,ue,oe){this.type=ee,this.indent=ue,this.prev=oe}function he(ee,ue,oe,Re){return ee.context=new de(oe,ue.indentation()+(Re===!1?0:$),ee.context),oe}function ge(ee){return ee.context.prev&&(ee.context=ee.context.prev),ee.context.type}function Ce(ee,ue,oe){return be[oe.context.type](ee,ue,oe)}function Ee(ee,ue,oe,Re){for(var Qe=Re||1;Qe>0;Qe--)oe.context=oe.context.prev;return Ce(ee,ue,oe)}function xe(ee){var ue=ee.current().toLowerCase();Ue.hasOwnProperty(ue)?ae="atom":Ke.hasOwnProperty(ue)?ae="keyword":ae="variable"}var be={};return be.top=function(ee,ue,oe){if(ee=="{")return he(oe,ue,"block");if(ee=="}"&&oe.context.prev)return ge(oe);if(F&&/@component/i.test(ee))return he(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(ee))return he(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(ee))return he(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(ee))return oe.stateArg=ee,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(ee))return"keyframes";if(ee&&ee.charAt(0)=="@")return he(oe,ue,"at");if(ee=="hash")ae="builtin";else if(ee=="word")ae="tag";else{if(ee=="variable-definition")return"maybeprop";if(ee=="interpolation")return he(oe,ue,"interpolation");if(ee==":")return"pseudo";if(He&&ee=="(")return he(oe,ue,"parens")}return oe.context.type},be.block=function(ee,ue,oe){if(ee=="word"){var Re=ue.current().toLowerCase();return ve.hasOwnProperty(Re)?(ae="property","maybeprop"):_e.hasOwnProperty(Re)?(ae=J?"string-2":"property","maybeprop"):He?(ae=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ae+=" error","maybeprop")}else return ee=="meta"?"block":!He&&(ee=="hash"||ee=="qualifier")?(ae="error","block"):be.top(ee,ue,oe)},be.maybeprop=function(ee,ue,oe){return ee==":"?he(oe,ue,"prop"):Ce(ee,ue,oe)},be.prop=function(ee,ue,oe){if(ee==";")return ge(oe);if(ee=="{"&&He)return he(oe,ue,"propBlock");if(ee=="}"||ee=="{")return Ee(ee,ue,oe);if(ee=="(")return he(oe,ue,"parens");if(ee=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))ae+=" error";else if(ee=="word")xe(ue);else if(ee=="interpolation")return he(oe,ue,"interpolation");return"prop"},be.propBlock=function(ee,ue,oe){return ee=="}"?ge(oe):ee=="word"?(ae="property","maybeprop"):oe.context.type},be.parens=function(ee,ue,oe){return ee=="{"||ee=="}"?Ee(ee,ue,oe):ee==")"?ge(oe):ee=="("?he(oe,ue,"parens"):ee=="interpolation"?he(oe,ue,"interpolation"):(ee=="word"&&xe(ue),"parens")},be.pseudo=function(ee,ue,oe){return ee=="meta"?"pseudo":ee=="word"?(ae="variable-3",oe.context.type):Ce(ee,ue,oe)},be.documentTypes=function(ee,ue,oe){return ee=="word"&&k.hasOwnProperty(ue.current())?(ae="tag",oe.context.type):be.atBlock(ee,ue,oe)},be.atBlock=function(ee,ue,oe){if(ee=="(")return he(oe,ue,"atBlock_parens");if(ee=="}"||ee==";")return Ee(ee,ue,oe);if(ee=="{")return ge(oe)&&he(oe,ue,He?"block":"top");if(ee=="interpolation")return he(oe,ue,"interpolation");if(ee=="word"){var Re=ue.current().toLowerCase();Re=="only"||Re=="not"||Re=="and"||Re=="or"?ae="keyword":M.hasOwnProperty(Re)?ae="attribute":B.hasOwnProperty(Re)?ae="property":Y.hasOwnProperty(Re)?ae="keyword":ve.hasOwnProperty(Re)?ae="property":_e.hasOwnProperty(Re)?ae=J?"string-2":"property":Ue.hasOwnProperty(Re)?ae="atom":Ke.hasOwnProperty(Re)?ae="keyword":ae="error"}return oe.context.type},be.atComponentBlock=function(ee,ue,oe){return ee=="}"?Ee(ee,ue,oe):ee=="{"?ge(oe)&&he(oe,ue,He?"block":"top",!1):(ee=="word"&&(ae="error"),oe.context.type)},be.atBlock_parens=function(ee,ue,oe){return ee==")"?ge(oe):ee=="{"||ee=="}"?Ee(ee,ue,oe,2):be.atBlock(ee,ue,oe)},be.restricted_atBlock_before=function(ee,ue,oe){return ee=="{"?he(oe,ue,"restricted_atBlock"):ee=="word"&&oe.stateArg=="@counter-style"?(ae="variable","restricted_atBlock_before"):Ce(ee,ue,oe)},be.restricted_atBlock=function(ee,ue,oe){return ee=="}"?(oe.stateArg=null,ge(oe)):ee=="word"?(oe.stateArg=="@font-face"&&!Be.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ae.hasOwnProperty(ue.current().toLowerCase())?ae="error":ae="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(ee,ue,oe){return ee=="word"?(ae="variable","keyframes"):ee=="{"?he(oe,ue,"top"):Ce(ee,ue,oe)},be.at=function(ee,ue,oe){return ee==";"?ge(oe):ee=="{"||ee=="}"?Ee(ee,ue,oe):(ee=="word"?ae="tag":ee=="hash"&&(ae="builtin"),"at")},be.interpolation=function(ee,ue,oe){return ee=="}"?ge(oe):ee=="{"||ee==";"?Ee(ee,ue,oe):(ee=="word"?ae="variable":ee!="variable"&&ee!="("&&ee!=")"&&(ae="error"),"interpolation")},{startState:function(ee){return{tokenize:null,state:P?"block":"top",stateArg:null,context:new de(P?"block":"top",ee||0,null)}},token:function(ee,ue){if(!ue.tokenize&&ee.eatSpace())return null;var oe=(ue.tokenize||D)(ee,ue);return oe&&typeof oe=="object"&&(ie=oe[1],oe=oe[0]),ae=oe,ie!="comment"&&(ue.state=be[ue.state](ie,ee,ue)),ae},indent:function(ee,ue){var oe=ee.context,Re=ue&&ue.charAt(0),Qe=oe.indent;return oe.type=="prop"&&(Re=="}"||Re==")")&&(oe=oe.prev),oe.prev&&(Re=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,Qe=oe.indent):(Re==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||Re=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(Qe=Math.max(0,oe.indent-$))),Qe},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Pe,fold:"brace"}});function o(K){for(var G={},P=0;P<K.length;++P)G[K[P].toLowerCase()]=!0;return G}var s=["domain","regexp","url","url-prefix"],c=o(s),f=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],d=o(f),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=o(h),m=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=o(m),b=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=o(b),O=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],A=o(O),N=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],L=o(N),R=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],z=o(R),C=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],I=o(C),W=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],Z=o(W),se=s.concat(f).concat(h).concat(m).concat(b).concat(O).concat(C).concat(W);r.registerHelper("hintWords","css",se);function Q(K,G){for(var P=!1,$;($=K.next())!=null;){if(P&&$=="/"){G.tokenize=null;break}P=$=="*"}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:c,mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:A,fontProperties:L,counterDescriptors:z,colorKeywords:I,valueKeywords:Z,tokenHooks:{"/":function(K,G){return K.eat("*")?(G.tokenize=Q,Q(K,G)):!1}},name:"css"}),r.defineMIME("text/x-scss",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:A,colorKeywords:I,valueKeywords:Z,fontProperties:L,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(K,G){return K.eat("/")?(K.skipToEnd(),["comment","comment"]):K.eat("*")?(G.tokenize=Q,Q(K,G)):["operator","operator"]},":":function(K){return K.match(/^\s*\{/,!1)?[null,null]:!1},$:function(K){return K.match(/^[\w-]+/),K.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(K){return K.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),r.defineMIME("text/x-less",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:A,colorKeywords:I,valueKeywords:Z,fontProperties:L,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(K,G){return K.eat("/")?(K.skipToEnd(),["comment","comment"]):K.eat("*")?(G.tokenize=Q,Q(K,G)):["operator","operator"]},"@":function(K){return K.eat("{")?[null,"interpolation"]:K.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(K.eatWhile(/[\w\\\-]/),K.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),r.defineMIME("text/x-gss",{documentTypes:c,mediaTypes:d,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:A,fontProperties:L,counterDescriptors:z,colorKeywords:I,valueKeywords:Z,supportsAtComponent:!0,tokenHooks:{"/":function(K,G){return K.eat("*")?(G.tokenize=Q,Q(K,G)):!1}},name:"css",helperType:"gss"})})})()),W0.exports}var U0;function Zce(){return U0||(U0=1,(function(e,t){(function(r){r(To(),Rp(),Pp(),Yce())})(function(r){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function s(v,b,w){var O=v.current(),A=O.search(b);return A>-1?v.backUp(O.length-A):O.match(/<\/?$/)&&(v.backUp(O.length),v.match(b,!1)||v.match(O)),w}var c={};function f(v){var b=c[v];return b||(c[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(v,b){var w=v.match(f(b));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,b){return new RegExp((b?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,b){for(var w in v)for(var O=b[w]||(b[w]=[]),A=v[w],N=A.length-1;N>=0;N--)O.unshift(A[N])}function m(v,b){for(var w=0;w<v.length;w++){var O=v[w];if(!O[0]||O[1].test(d(b,O[0])))return O[2]}}r.defineMode("htmlmixed",function(v,b){var w=r.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:b.multilineTagIndentFactor,multilineTagIndentPastTag:b.multilineTagIndentPastTag,allowMissingTagName:b.allowMissingTagName}),O={},A=b&&b.tags,N=b&&b.scriptTypes;if(p(o,O),A&&p(A,O),N)for(var L=N.length-1;L>=0;L--)O.script.unshift(["type",N[L].matches,N[L].mode]);function R(z,C){var I=w.token(z,C.htmlState),W=/\btag\b/.test(I),Z;if(W&&!/[<>\s\/]/.test(z.current())&&(Z=C.htmlState.tagName&&C.htmlState.tagName.toLowerCase())&&O.hasOwnProperty(Z))C.inTag=Z+" ";else if(C.inTag&&W&&/>$/.test(z.current())){var se=/^([\S]+) (.*)/.exec(C.inTag);C.inTag=null;var Q=z.current()==">"&&m(O[se[1]],se[2]),K=r.getMode(v,Q),G=h(se[1],!0),P=h(se[1],!1);C.token=function($,S){return $.match(G,!1)?(S.token=R,S.localState=S.localMode=null,null):s($,P,S.localMode.token($,S.localState))},C.localMode=K,C.localState=r.startState(K,w.indent(C.htmlState,"",""))}else C.inTag&&(C.inTag+=z.current(),z.eol()&&(C.inTag+=" "));return I}return{startState:function(){var z=r.startState(w);return{token:R,inTag:null,localMode:null,localState:null,htmlState:z}},copyState:function(z){var C;return z.localState&&(C=r.copyState(z.localMode,z.localState)),{token:z.token,inTag:z.inTag,localMode:z.localMode,localState:C,htmlState:r.copyState(w,z.htmlState)}},token:function(z,C){return C.token(z,C)},indent:function(z,C,I){return!z.localMode||/^\s*<\//.test(C)?w.indent(z.htmlState,C,I):z.localMode.indent?z.localMode.indent(z.localState,C,I):r.Pass},innerMode:function(z){return{state:z.localState||z.htmlState,mode:z.localMode||w}}}},"xml","javascript","css"),r.defineMIME("text/html","htmlmixed")})})()),j0.exports}Zce();var V0={exports:{}},G0;function Jce(){return G0||(G0=1,(function(e,t){(function(r){r(To(),Rp(),Pp())})(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(w){var O=w.tagName;w.tagName=null;var A=d.indent(w,"","");return w.tagName=O,A}function m(w,O){return O.context.mode==d?v(w,O,O.context):b(w,O,O.context)}function v(w,O,A){if(A.depth==2)return w.match(/^.*?\*\//)?A.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(A.state);var N=p(A.state),L=A.state.context;if(L&&w.match(/^[^>]*>\s*$/,!1)){for(;L.prev&&!L.startOfLine;)L=L.prev;L.startOfLine?N-=c.indentUnit:A.prev.state.lexical&&(N=A.prev.state.lexical.indented)}else A.depth==1&&(N+=c.indentUnit);return O.context=new o(r.startState(h,N),h,0,O.context),null}if(A.depth==1){if(w.peek()=="<")return d.skipAttribute(A.state),O.context=new o(r.startState(d,p(A.state)),d,0,O.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return A.depth=2,m(w,O)}var R=d.token(w,A.state),z=w.current(),C;return/\btag\b/.test(R)?/>$/.test(z)?A.state.context?A.depth=0:O.context=O.context.prev:/^</.test(z)&&(A.depth=1):!R&&(C=z.indexOf("{"))>-1&&w.backUp(z.length-C),R}function b(w,O,A){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,A.state))return O.context=new o(r.startState(d,h.indent(A.state,"","")),d,0,O.context),h.skipExpression(A.state),null;var N=h.token(w,A.state);if(!N&&A.depth!=null){var L=w.current();L=="{"?A.depth++:L=="}"&&--A.depth==0&&(O.context=O.context.prev)}return N}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:m,indent:function(w,O,A){return w.context.mode.indent(w.context.state,O,A)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),V0.exports}Jce();var K0={exports:{}},X0;function Qce(){return X0||(X0=1,(function(e,t){(function(r){r(To())})(function(r){r.defineOption("placeholder","",function(p,m,v){var b=v&&v!=r.Init;if(m&&!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(!m&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}m&&!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 m=p.state.placeholder=document.createElement("pre");m.style.cssText="height: 0; overflow: visible",m.style.direction=p.getOption("direction"),m.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),m.appendChild(v),p.display.lineSpace.insertBefore(m,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var m=!1;if(p.lineCount()==1){var v=p.getInputField();m=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}m?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var m=p.getWrapperElement(),v=h(p);m.className=m.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),K0.exports}Qce();var Y0={exports:{}},Z0;function eue(){return Z0||(Z0=1,(function(e,t){(function(r){r(To())})(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(v){if(v.which!=1)return;r.e_preventDefault(v);var b=p.orientation=="horizontal"?"pageX":"pageY",w=v[b],O=p.pos;function A(){r.off(document,"mousemove",N),r.off(document,"mouseup",A)}function N(L){if(L.which!=1)return A();p.moveTo(O+(L[b]-w)*(p.total/p.size))}r.on(document,"mousemove",N),r.on(document,"mouseup",A)}),r.on(this.node,"click",function(v){r.e_preventDefault(v);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<b.left?-1:v.clientX>b.right?1:0:w=v.clientY<b.top?-1:v.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function m(v){var b=r.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(v)}r.on(this.node,"mousewheel",m),r.on(this.node,"DOMMouseScroll",m)}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 m=this.screen*(this.size/this.total);m<s&&(this.size-=s-m,m=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=m+"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,m=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=m?"block":"none",this.horiz.node.style.display=p?"block":"none",m&&(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-(m?h:0)-f.barLeft),this.horiz.node.style.right=m?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:m?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)}})})()),Y0.exports}eue();const Pn=Wt();function tue(e,t,r={}){const o=bM.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),vt(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}),Ga(()=>{Pn.value=void 0}),rf(o)}async function zx(e){Ra({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function nue(e,t){Ra({file:e,column:t.column-1,line:t.line,view:"editor",test:Ti.value})}function rue(e,t){if(!t)return;const{line:r,column:o,file:s}=t;if(e.file.filepath!==s)return $p(s,r,o);Ra({file:e.file.id,column:o-1,line:r,view:"editor",test:Ti.value})}const yr=Ve(),Xs=Ve(!0),_o=Ve(!1),zu=Ve(!0),Fx=ke(()=>_t.value?.coverage),Lh=ke(()=>Fx.value?.enabled),ta=ke(()=>Lh.value&&!!Fx.value?.htmlDir),Ys=Ya("vitest-ui_splitpanes-mainSizes",[33,67]),Jo=Ya("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?nr.value[0]/window.outerWidth*100:33,67]),Ai=Ya("vitest-ui_details-panel-visible",!0),kn=Ve("right");Ct(()=>{vt(_t,()=>{_t.value?.browser?.detailsPanelPosition&&(kn.value=_t.value.browser.detailsPanelPosition)})});function iue(){setTimeout(()=>{Ai.value=!1},0)}function oue(){Ai.value=!0}const an=sr({navigation:Ys.value[0],details:{size:Ys.value[1],browser:Jo.value[0],main:Jo.value[1]}});vt(xf,e=>{zu.value=e==="running"},{immediate:!0});function sue(){const e=ko.value;if(e&&e.length>0){const t=br(e);t?(yr.value=t,Xs.value=!1,_o.value=!1):ZE(()=>ft.state.getFiles(),()=>{yr.value=br(e),Xs.value=!1,_o.value=!1})}return Xs}function Fu(e){Xs.value=e,_o.value=!1,e&&(yr.value=void 0,ko.value="")}function Ra({file:e,line:t,view:r,test:o,column:s}){ko.value=e,Ix.value=t,Dx.value=s,gn.value=r,Ti.value=o,yr.value=br(e),Fu(!1)}function lue(e){e.type==="test"?gn.value==="editor"?zx(e):Ra({file:e.file.id,line:null,column:null,view:gn.value,test:e.id}):Ra({file:e.file.id,test:null,line:null,view:gn.value,column:null})}function aue(){_o.value=!0,Xs.value=!1,yr.value=void 0,ko.value=""}function cue(){if(cr?.provider==="webdriverio"){const e=window.outerWidth*(an.details.size/100);return(nr.value[0]+20)/e*100}return 33}function uue(){an.navigation=33,an.details.size=67,Ys.value=[33,67]}function Hx(){an.details.main!==0&&(an.details.browser=cue(),an.details.main=100-an.details.browser,Jo.value=[an.details.browser,an.details.main])}function fue(){kn.value=kn.value==="right"?"bottom":"right";const e=kn.value==="bottom"?33:50;Jo.value=[e,100-e],an.details.browser=e,an.details.main=100-e}const due={setCurrentFileId(e){ko.value=e,yr.value=br(e),Fu(!1)},async setIframeViewport(e,t){nr.value=[e,t],cr?.provider==="webdriverio"&&Hx(),await new Promise(r=>requestAnimationFrame(r))}},hue=location.port,pue=[location.hostname,hue].filter(Boolean).join(":"),gue=`${location.protocol==="https:"?"wss:":"ws:"}//${pue}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,ar=!!window.METADATA_PATH;var ir=Uint8Array,Hs=Uint16Array,mue=Int32Array,Bx=new ir([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]),jx=new ir([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]),vue=new ir([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Wx=function(e,t){for(var r=new Hs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new mue(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}},qx=Wx(Bx,2),Ux=qx.b,yue=qx.r;Ux[28]=258,yue[258]=28;var bue=Wx(jx,0),wue=bue.b,Mh=new Hs(32768);for(var Lt=0;Lt<32768;++Lt){var Ji=(Lt&43690)>>1|(Lt&21845)<<1;Ji=(Ji&52428)>>2|(Ji&13107)<<2,Ji=(Ji&61680)>>4|(Ji&3855)<<4,Mh[Lt]=((Ji&65280)>>8|(Ji&255)<<8)>>1}var ma=(function(e,t,r){for(var o=e.length,s=0,c=new Hs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Hs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Hs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],m=t-e[s],v=f[e[s]-1]++<<m,b=v|(1<<m)-1;v<=b;++v)d[Mh[v]>>h]=p}else for(d=new Hs(o),s=0;s<o;++s)e[s]&&(d[s]=Mh[f[e[s]-1]++]>>15-e[s]);return d}),ec=new ir(288);for(var Lt=0;Lt<144;++Lt)ec[Lt]=8;for(var Lt=144;Lt<256;++Lt)ec[Lt]=9;for(var Lt=256;Lt<280;++Lt)ec[Lt]=7;for(var Lt=280;Lt<288;++Lt)ec[Lt]=8;var Vx=new ir(32);for(var Lt=0;Lt<32;++Lt)Vx[Lt]=5;var xue=ma(ec,9,1),kue=ma(Vx,5,1),jd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Mr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},Wd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},_ue=function(e){return(e+7)/8|0},Gx=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new ir(e.subarray(t,r))},Sue=["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"],Gn=function(e,t,r){var o=new Error(t||Sue[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Gn),!r)throw o;return o},Ip=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new ir(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new ir(s*3));var p=function(ce){var D=r.length;if(ce>D){var j=new ir(Math.max(D*2,ce));j.set(r),r=j}},m=t.f||0,v=t.p||0,b=t.b||0,w=t.l,O=t.d,A=t.m,N=t.n,L=s*8;do{if(!w){m=Mr(e,v,1);var R=Mr(e,v+1,3);if(v+=3,R)if(R==1)w=xue,O=kue,A=9,N=5;else if(R==2){var W=Mr(e,v,31)+257,Z=Mr(e,v+10,15)+4,se=W+Mr(e,v+5,31)+1;v+=14;for(var Q=new ir(se),K=new ir(19),G=0;G<Z;++G)K[vue[G]]=Mr(e,v+G*3,7);v+=Z*3;for(var P=jd(K),$=(1<<P)-1,S=ma(K,P,1),G=0;G<se;){var k=S[Mr(e,v,$)];v+=k&15;var z=k>>4;if(z<16)Q[G++]=z;else{var M=0,B=0;for(z==16?(B=3+Mr(e,v,3),v+=2,M=Q[G-1]):z==17?(B=3+Mr(e,v,7),v+=3):z==18&&(B=11+Mr(e,v,127),v+=7);B--;)Q[G++]=M}}var Y=Q.subarray(0,W),ve=Q.subarray(W);A=jd(Y),N=jd(ve),w=ma(Y,A,1),O=ma(ve,N,1)}else Gn(1);else{var z=_ue(v)+4,C=e[z-4]|e[z-3]<<8,I=z+C;if(I>s){h&&Gn(0);break}d&&p(b+C),r.set(e.subarray(z,I),b),t.b=b+=C,t.p=v=I*8,t.f=m;continue}if(v>L){h&&Gn(0);break}}d&&p(b+131072);for(var _e=(1<<A)-1,Be=(1<<N)-1,Ae=v;;Ae=v){var M=w[Wd(e,v)&_e],Ke=M>>4;if(v+=M&15,v>L){h&&Gn(0);break}if(M||Gn(2),Ke<256)r[b++]=Ke;else if(Ke==256){Ae=v,w=null;break}else{var Ue=Ke-254;if(Ke>264){var G=Ke-257,He=Bx[G];Ue=Mr(e,v,(1<<He)-1)+Ux[G],v+=He}var Pe=O[Wd(e,v)&Be],F=Pe>>4;Pe||Gn(3),v+=Pe&15;var ve=wue[F];if(F>3){var He=jx[F];ve+=Wd(e,v)&(1<<He)-1,v+=He}if(v>L){h&&Gn(0);break}d&&p(b+131072);var J=b+Ue;if(b<ve){var ie=c-ve,ae=Math.min(ve,J);for(ie+b<0&&Gn(3);b<ae;++b)r[b]=o[ie+b]}for(;b<J;++b)r[b]=r[b-ve]}}t.l=w,t.p=Ae,t.b=b,t.f=m,w&&(m=1,t.m=A,t.d=O,t.n=N)}while(!m);return b!=r.length&&f?Gx(r,0,b):r.subarray(0,b)},Tue=new ir(0),Cue=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Gn(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)},Eue=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Aue=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Gn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Gn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Lue(e,t){return Ip(e,{i:2},t,t)}function Mue(e,t){var r=Cue(e);return r+8>e.length&&Gn(6,"invalid gzip data"),Ip(e.subarray(r,-8),{i:2},new ir(Eue(e)),t)}function Nue(e,t){return Ip(e.subarray(Aue(e),-4),{i:2},t,t)}function $ue(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Mue(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Lue(e,t):Nue(e,t)}var Nh=typeof TextDecoder<"u"&&new TextDecoder,Oue=0;try{Nh.decode(Tue,{stream:!0}),Oue=1}catch{}var Pue=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:Gx(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 J0(e,t){var r;if(Nh)return Nh.decode(e);var o=Pue(e),s=o.s,r=o.r;return r.length&&Gn(8),s}const Q0=()=>{},pn=()=>Promise.resolve();function Rue(){const e=sr({state:new bx,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=sr(e.state.filesMap),e.state.idMap=sr(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,getExternalResult:pn,getTransformResult:pn,onDone:Q0,writeFile:pn,rerun:pn,rerunTask:pn,updateSnapshot:pn,resolveSnapshotPath:pn,snapshotSaved:pn,onAfterSuiteRun:pn,onCancel:pn,getCountOfFailedTests:()=>0,sendLog:pn,resolveSnapshotRawPath:pn,readSnapshotFile:pn,saveSnapshotFile:pn,readTestFile:async d=>t.sources[d],removeSnapshotFile:pn,onUnhandledError:Q0,saveTestFile:pn,getProvidedContext:()=>({}),getTestFiles:pn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=new Uint8Array(await d.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const m=J0($ue(h));t=_h(m)}else t=_h(J0(h));const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ft=(function(){return ar?Rue():OL(gue,{reactive:(t,r)=>r==="state"?sr(t):Wt(t),handlers:{onTestAnnotate(t,r){Me.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Me.recordTestArtifact(t,r)},onTaskUpdate(t,r){Me.resumeRun(t,r),xf.value="running"},onSpecsCollected(t,r){Me.startTime=r||performance.now()},onFinished(t,r,o,s){Me.endRun(s),lo.value=(r||[]).map(Px)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),_t=Wt({}),Bs=Ve("CONNECTING"),Dp=Wt([]),Gt=ke(()=>{const e=ko.value;return e?br(e):void 0}),Kx=ke(()=>Ep(Gt.value).map(e=>e?.logs||[]).flat()||[]);function br(e){const t=ft.state.idMap.get(e);return t||void 0}const Iue=ke(()=>Bs.value==="OPEN"),qd=ke(()=>Bs.value==="CONNECTING");function Due(){return zp(ft.state.getFiles())}function Xx(e){delete e.result;const t=Me.nodes.get(e.id);if(t&&(t.state=void 0,e.mode="run",t.duration=void 0,Za(e)))for(const r of e.tasks)Xx(r)}function zue(e){const t=Me.nodes;e.forEach(r=>{delete r.result,Ep(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.mode="run",c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.mode="run",o.duration=void 0,zn(o)&&(o.collectDuration=void 0))})}function zp(e){return zue(e),Me.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function Fue(e){return Xx(e),Me.startRun(),ft.rpc.rerunTask(e.id)}const cr=window.__vitest_browser_runner__;window.__vitest_ui_api__=due;vt(()=>ft.ws,e=>{Bs.value=ar?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Bs.value="OPEN",ft.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=cx(h,d,f);return p.mode="skip",p})),Dp.value=s.map(c=>c.name),Me.loadFiles(t,s),ft.state.collectFiles(t),Me.startRun(),lo.value=(o||[]).map(Px),_t.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Bs.value==="CONNECTING"&&(Bs.value="CLOSED")},1e3)})},{immediate:!0});const Hue=["aria-label","opacity","disabled","hover"],kt=et({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ne(),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:it(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[zt(t.$slots,"default",{},()=>[X("span",{class:it(e.icon),ma:"",block:""},null,2)])],10,Hue))}}),Bue={h:"full",flex:"~ col"},jue={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Wue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},que={class:"pointer-events-none","text-sm":""},Uue={key:0},Vue={id:"tester-container",relative:""},Gue=["data-scale"],ey=20,Kue=100,Xue=et({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const m=t[p];return nr.value[0]===m[0]&&nr.value[1]===m[1]}const{width:o,height:s}=nx();async function c(p){nr.value=t[p],cr?.provider==="webdriverio"&&Hx()}const f=ke(()=>{if(cr?.provider==="webdriverio"){const[w,O]=nr.value;return{width:w,height:O}}const v=o.value*(an.details.size/100)*(an.details.browser/100)-ey,b=s.value-Kue;return{width:v,height:b}}),d=ke(()=>{if(cr?.provider==="webdriverio")return 1;const[p,m]=nr.value,{width:v,height:b}=f.value,w=v>p?1:v/p,O=b>m?1:b/m;return Math.min(1,w,O)}),h=ke(()=>{const p=f.value.width,m=nr.value[0];return`${Math.trunc((p+ey-m)/2)}px`});return(p,m)=>{const v=Qn("tooltip");return ne(),me("div",Bue,[X("div",jue,[st(Le(kt,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:m[0]||(m[0]=b=>q(uue)())},null,512),[[fo,q(an).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),m[5]||(m[5]=X("div",{class:"i-carbon-content-delivery-network"},null,-1)),m[6]||(m[6]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),st(Le(kt,{title:"Show Details Panel",icon:"i-carbon:side-panel-close",onClick:m[1]||(m[1]=b=>Ai.value=!0)},null,512),[[fo,q(kn)==="right"&&!q(Ai)],[v,"Show Details Panel",void 0,{bottom:!0}]])]),X("div",Wue,[st(Le(kt,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:m[2]||(m[2]=b=>c("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),st(Le(kt,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:m[3]||(m[3]=b=>c("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),st(Le(kt,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:m[4]||(m[4]=b=>c("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),X("span",que,[Je(Oe(q(nr)[0])+"x"+Oe(q(nr)[1])+"px ",1),d.value<1?(ne(),me("span",Uue,"("+Oe((d.value*100).toFixed(0))+"%)",1)):ze("",!0)])]),X("div",Vue,[X("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:Ot({"--viewport-width":`${q(nr)[0]}px`,"--viewport-height":`${q(nr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,Gue)])])}}}),Yue=Di(Xue,[["__scopeId","data-v-f70ca3ae"]]),kf=et({__name:"DetailsHeaderButtons",setup(e){function t(r){return kn.value==="right"?r==="hide"?"rotate-180":"":r==="hide"?"-rotate-90":"rotate-90"}return(r,o)=>{const s=Qn("tooltip");return ne(),me(tt,null,[st(Le(kt,{title:`Switch panel position (${q(kn)==="bottom"?"right":"bottom"})`,icon:"i-carbon-split-screen",class:it({"rotate-90":q(kn)==="right"}),onClick:q(fue)},null,8,["title","class","onClick"]),[[s,`Switch panel position (${q(kn)==="bottom"?"right":"bottom"})`,void 0,{bottom:!0}]]),q(Ai)?st((ne(),qe(kt,{key:0,title:q(kn)==="right"?"Hide Right Panel":"Hide Bottom Panel",icon:"i-carbon:side-panel-close",class:it(t("hide")),onClick:q(iue)},null,8,["title","class","onClick"])),[[s,q(kn)==="right"?"Hide Right Panel":"Hide Bottom Panel",void 0,{bottom:!0}]]):ze("",!0),st(Le(kt,{title:q(kn)==="right"?"Show Right Panel":"Show Bottom Panel",icon:"i-carbon:side-panel-close",class:it(t("show")),onClick:q(oue)},null,8,["title","class","onClick"]),[[fo,!q(Ai)],[s,q(kn)==="right"?"Show Right Panel":"Show Bottom Panel",void 0,{bottom:!0}]])],64)}}}),Zue={p:"2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Jue=et({__name:"ClosedDetailsHeader",setup(e){return(t,r)=>(ne(),me("div",Zue,[r[0]||(r[0]=X("div",{"flex-1":""},null,-1)),Le(kf)]))}}),Que={"text-2xl":""},efe={"text-lg":"",op50:""},tfe=et({__name:"ConnectionOverlay",setup(e){return(t,r)=>q(Iue)?ze("",!0):(ne(),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)=>q(ft).reconnect&&q(ft).reconnect(...o))},[X("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:it(q(qd)?"animate-pulse":"")},[X("div",{text:"5xl",class:it(q(qd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),X("div",Que,Oe(q(qd)?"Connecting...":"Disconnected"),1),X("div",efe," Check your terminal or start a new server with `"+Oe(q(cr)?`vitest --browser=${q(cr).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),nfe={h:"full",flex:"~ col"},rfe={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},ty=et({__name:"Coverage",setup(e){return(t,r)=>(ne(),me("div",nfe,[X("div",rfe,[r[0]||(r[0]=X("div",{class:"i-carbon:folder-details-reference"},null,-1)),r[1]||(r[1]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage",-1)),q(cr)?(ne(),qe(kf,{key:0})):ze("",!0)]),r[2]||(r[2]=X("div",{"flex-auto":"","py-1":"","bg-white":""},[X("iframe",{id:"vitest-ui-coverage",src:"./coverage/index.html"})],-1))]))}}),ife={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},ofe={"font-bold":""},sfe={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},lfe=["font-bold"],afe={text:"red500/70"},cfe={key:1,text:"sm","mb-2":""},ufe={"font-bold":""},ffe={key:2,text:"sm","mb-2":""},dfe={"font-bold":""},hfe=et({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(ne(),me(tt,null,[X("h4",ife,[X("span",ofe,[Je(Oe(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(ne(),me(tt,{key:0},[Je(":")],64)):ze("",!0)]),Je(" "+Oe(e.error.message),1)]),e.error.stacks?.length?(ne(),me("p",sfe,[(ne(!0),me(tt,null,yn(e.error.stacks,(o,s)=>(ne(),me("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[Je("❯ "+Oe(o.method)+" "+Oe(o.file)+":",1),X("span",afe,Oe(o.line)+":"+Oe(o.column),1),r[0]||(r[0]=X("br",null,null,-1))],8,lfe))),128))])):ze("",!0),e.error.VITEST_TEST_PATH?(ne(),me("p",cfe,[r[1]||(r[1]=Je(" This error originated in ",-1)),X("span",ufe,Oe(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=Je(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):ze("",!0),e.error.VITEST_TEST_NAME?(ne(),me("div",ffe,[r[3]||(r[3]=Je(" The latest test that might've caused the error is ",-1)),X("span",dfe,Oe(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=Je(". It might mean one of the following:",-1)),r[5]||(r[5]=X("br",null,null,-1)),r[6]||(r[6]=X("ul",null,[X("li",null," The error was thrown, while Vitest was running this test. "),X("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):ze("",!0)],64))}}),pfe={"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:""},gfe={class:"number","data-testid":"num-files"},mfe={class:"number"},vfe={class:"number","text-red5":""},yfe={class:"number","text-red5":""},bfe={class:"number","text-red5":""},wfe={class:"number","data-testid":"run-time"},xfe={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},kfe={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},_fe={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Sfe=et({__name:"TestFilesEntry",setup(e){return(t,r)=>(ne(),me(tt,null,[X("div",pfe,[r[8]||(r[8]=X("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=X("div",null,"Files",-1)),X("div",gfe,Oe(q(Me).summary.files),1),q(Me).summary.filesSuccess?(ne(),me(tt,{key:0},[r[0]||(r[0]=X("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=X("div",null,"Pass",-1)),X("div",mfe,Oe(q(Me).summary.filesSuccess),1)],64)):ze("",!0),q(Me).summary.filesFailed?(ne(),me(tt,{key:1},[r[2]||(r[2]=X("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=X("div",null," Fail ",-1)),X("div",vfe,Oe(q(Me).summary.filesFailed),1)],64)):ze("",!0),q(Me).summary.filesSnapshotFailed?(ne(),me(tt,{key:2},[r[4]||(r[4]=X("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=X("div",null," Snapshot Fail ",-1)),X("div",yfe,Oe(q(Me).summary.filesSnapshotFailed),1)],64)):ze("",!0),q(lo).length?(ne(),me(tt,{key:3},[r[6]||(r[6]=X("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=X("div",null," Errors ",-1)),X("div",bfe,Oe(q(lo).length),1)],64)):ze("",!0),r[10]||(r[10]=X("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=X("div",null,"Time",-1)),X("div",wfe,Oe(q(Me).summary.time),1)]),q(lo).length?(ne(),me("div",xfe,[r[15]||(r[15]=X("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),X("p",kfe,[Je(" Vitest caught "+Oe(q(lo).length)+" error"+Oe(q(lo).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=X("br",null,null,-1)),r[13]||(r[13]=Je(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),X("details",_fe,[r[14]||(r[14]=X("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ne(!0),me(tt,null,yn(q(lo),(o,s)=>(ne(),qe(hfe,{key:s,error:o},null,8,["error"]))),128))])])):ze("",!0)],64))}}),Tfe=Di(Sfe,[["__scopeId","data-v-1bd0f2ea"]]),Cfe={"p-2":"","text-center":"",flex:""},Efe={"text-4xl":"","min-w-2em":""},Afe={"text-md":""},Os=et({__name:"DashboardEntry",setup(e){return(t,r)=>(ne(),me("div",Cfe,[X("div",null,[X("div",Efe,[zt(t.$slots,"body")]),X("div",Afe,[zt(t.$slots,"header")])])]))}}),Lfe={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Mfe=et({__name:"TestsEntry",setup(e){function t(r){ot.success=!1,ot.failed=!1,ot.skipped=!1,r!=="total"&&(ot[r]=!0)}return(r,o)=>(ne(),me("div",Lfe,[Le(Os,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:je(()=>[...o[4]||(o[4]=[Je(" Pass ",-1)])]),body:je(()=>[Je(Oe(q(Me).summary.testsSuccess),1)]),_:1}),Le(Os,{class:it({"text-red5":q(Me).summary.testsFailed,op50:!q(Me).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:je(()=>[...o[5]||(o[5]=[Je(" Fail ",-1)])]),body:je(()=>[Je(Oe(q(Me).summary.testsFailed),1)]),_:1},8,["class"]),q(Me).summary.testsExpectedFail?(ne(),qe(Os,{key:0,"text-cyan5":"","data-testid":"expected-fail-entry"},{header:je(()=>[...o[6]||(o[6]=[Je(" Expected Fail ",-1)])]),body:je(()=>[Je(Oe(q(Me).summary.testsExpectedFail),1)]),_:1})):ze("",!0),q(Me).summary.testsSkipped?(ne(),qe(Os,{key:1,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:je(()=>[...o[7]||(o[7]=[Je(" Skip ",-1)])]),body:je(()=>[Je(Oe(q(Me).summary.testsSkipped),1)]),_:1})):ze("",!0),q(Me).summary.testsTodo?(ne(),qe(Os,{key:2,op50:"","data-testid":"todo-entry"},{header:je(()=>[...o[8]||(o[8]=[Je(" Todo ",-1)])]),body:je(()=>[Je(Oe(q(Me).summary.testsTodo),1)]),_:1})):ze("",!0),Le(Os,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:je(()=>[...o[9]||(o[9]=[Je(" Total ",-1)])]),body:je(()=>[Je(Oe(q(Me).summary.totalTests),1)]),_:1})]))}}),Nfe={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},$fe={key:0,class:"text-gray-5"},Ofe={"aria-labelledby":"tests",m:"y-4 x-2"},Pfe=et({__name:"TestsFilesContainer",setup(e){return(t,r)=>(ne(),me("div",Nfe,[q(Me).summary.files===0&&q(Fs)?(ne(),me("div",$fe," No tests found ")):ze("",!0),X("section",Ofe,[Le(Mfe)]),Le(Tfe)]))}}),Rfe={h:"full",flex:"~ col"},Ife={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Dfe={class:"scrolls","flex-auto":"","py-1":""},ny=et({__name:"Dashboard",setup(e){return(t,r)=>(ne(),me("div",Rfe,[X("div",Ife,[r[0]||(r[0]=X("div",{class:"i-carbon-dashboard"},null,-1)),r[1]||(r[1]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard",-1)),q(cr)?(ne(),qe(kf,{key:0})):ze("",!0)]),X("div",Dfe,[Le(Pfe)])]))}});function zfe(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var $h="http://www.w3.org/1999/xhtml";const ry={svg:"http://www.w3.org/2000/svg",xhtml:$h,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _f(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),ry.hasOwnProperty(t)?{space:ry[t],local:e}:e}function Ffe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===$h&&t.documentElement.namespaceURI===$h?t.createElement(e):t.createElementNS(r,e)}}function Hfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Yx(e){var t=_f(e);return(t.local?Hfe:Ffe)(t)}function Bfe(){}function Fp(e){return e==null?Bfe:function(){return this.querySelector(e)}}function jfe(e){typeof e!="function"&&(e=Fp(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,m=0;m<f;++m)(h=c[m])&&(p=e.call(h,h.__data__,m,c))&&("__data__"in h&&(p.__data__=h.__data__),d[m]=p);return new fr(o,this._parents)}function Wfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function qfe(){return[]}function Zx(e){return e==null?qfe:function(){return this.querySelectorAll(e)}}function Ufe(e){return function(){return Wfe(e.apply(this,arguments))}}function Vfe(e){typeof e=="function"?e=Ufe(e):e=Zx(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 fr(o,s)}function Jx(e){return function(){return this.matches(e)}}function Qx(e){return function(t){return t.matches(e)}}var Gfe=Array.prototype.find;function Kfe(e){return function(){return Gfe.call(this.children,e)}}function Xfe(){return this.firstElementChild}function Yfe(e){return this.select(e==null?Xfe:Kfe(typeof e=="function"?e:Qx(e)))}var Zfe=Array.prototype.filter;function Jfe(){return Array.from(this.children)}function Qfe(e){return function(){return Zfe.call(this.children,e)}}function ede(e){return this.selectAll(e==null?Jfe:Qfe(typeof e=="function"?e:Qx(e)))}function tde(e){typeof e!="function"&&(e=Jx(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 fr(o,this._parents)}function e1(e){return new Array(e.length)}function nde(){return new fr(this._enter||this._groups.map(e1),this._parents)}function Hu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Hu.prototype={constructor:Hu,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 rde(e){return function(){return e}}function ide(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 Hu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function ode(e,t,r,o,s,c,f){var d,h,p=new Map,m=t.length,v=c.length,b=new Array(m),w;for(d=0;d<m;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<v;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new Hu(e,c[d]);for(d=0;d<m;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function sde(e){return e.__data__}function lde(e,t){if(!arguments.length)return Array.from(this,sde);var r=t?ode:ide,o=this._parents,s=this._groups;typeof e!="function"&&(e=rde(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var m=o[p],v=s[p],b=v.length,w=ade(e.call(m,m&&m.__data__,p,o)),O=w.length,A=d[p]=new Array(O),N=f[p]=new Array(O),L=h[p]=new Array(b);r(m,v,A,N,L,w,t);for(var R=0,z=0,C,I;R<O;++R)if(C=A[R]){for(R>=z&&(z=R+1);!(I=N[z])&&++z<O;);C._next=I||null}}return f=new fr(f,o),f._enter=d,f._exit=h,f}function ade(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cde(){return new fr(this._exit||this._groups.map(e1),this._parents)}function ude(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 fde(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],m=o[h],v=p.length,b=d[h]=new Array(v),w,O=0;O<v;++O)(w=p[O]||m[O])&&(b[O]=w);for(;h<s;++h)d[h]=r[h];return new fr(d,this._parents)}function dde(){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 hde(e){e||(e=pde);function t(v,b){return v&&b?e(v.__data__,b.__data__):!v-!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,m=0;m<d;++m)(p=f[m])&&(h[m]=p);h.sort(t)}return new fr(s,this._parents).order()}function pde(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function gde(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function mde(){return Array.from(this)}function vde(){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 yde(){let e=0;for(const t of this)++e;return e}function bde(){return!this.node()}function wde(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 xde(e){return function(){this.removeAttribute(e)}}function kde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _de(e,t){return function(){this.setAttribute(e,t)}}function Sde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Tde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Cde(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 Ede(e,t){var r=_f(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?kde:xde:typeof t=="function"?r.local?Cde:Tde:r.local?Sde:_de)(r,t))}function t1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ade(e){return function(){this.style.removeProperty(e)}}function Lde(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Mde(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Nde(e,t,r){return arguments.length>1?this.each((t==null?Ade:typeof t=="function"?Mde:Lde)(e,t,r??"")):al(this.node(),e)}function al(e,t){return e.style.getPropertyValue(t)||t1(e).getComputedStyle(e,null).getPropertyValue(t)}function $de(e){return function(){delete this[e]}}function Ode(e,t){return function(){this[e]=t}}function Pde(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Rde(e,t){return arguments.length>1?this.each((t==null?$de:typeof t=="function"?Pde:Ode)(e,t)):this.node()[e]}function n1(e){return e.trim().split(/^|\s+/)}function Hp(e){return e.classList||new r1(e)}function r1(e){this._node=e,this._names=n1(e.getAttribute("class")||"")}r1.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 i1(e,t){for(var r=Hp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function o1(e,t){for(var r=Hp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Ide(e){return function(){i1(this,e)}}function Dde(e){return function(){o1(this,e)}}function zde(e,t){return function(){(t.apply(this,arguments)?i1:o1)(this,e)}}function Fde(e,t){var r=n1(e+"");if(arguments.length<2){for(var o=Hp(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?zde:t?Ide:Dde)(r,t))}function Hde(){this.textContent=""}function Bde(e){return function(){this.textContent=e}}function jde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Wde(e){return arguments.length?this.each(e==null?Hde:(typeof e=="function"?jde:Bde)(e)):this.node().textContent}function qde(){this.innerHTML=""}function Ude(e){return function(){this.innerHTML=e}}function Vde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Gde(e){return arguments.length?this.each(e==null?qde:(typeof e=="function"?Vde:Ude)(e)):this.node().innerHTML}function Kde(){this.nextSibling&&this.parentNode.appendChild(this)}function Xde(){return this.each(Kde)}function Yde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zde(){return this.each(Yde)}function Jde(e){var t=typeof e=="function"?e:Yx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Qde(){return null}function ehe(e,t){var r=typeof e=="function"?e:Yx(e),o=t==null?Qde:typeof t=="function"?t:Fp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function the(){var e=this.parentNode;e&&e.removeChild(this)}function nhe(){return this.each(the)}function rhe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ihe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ohe(e){return this.select(e?ihe:rhe)}function she(e){return arguments.length?this.property("__data__",e):this.node().__data__}function lhe(e){return function(t){e.call(this,t,this.__data__)}}function ahe(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 che(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 uhe(e,t,r){return function(){var o=this.__on,s,c=lhe(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 fhe(e,t,r){var o=ahe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,m;h<p;++h)for(s=0,m=d[h];s<c;++s)if((f=o[s]).type===m.type&&f.name===m.name)return m.value}return}for(d=t?uhe:che,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function s1(e,t,r){var o=t1(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 dhe(e,t){return function(){return s1(this,e,t)}}function hhe(e,t){return function(){return s1(this,e,t.apply(this,arguments))}}function phe(e,t){return this.each((typeof t=="function"?hhe:dhe)(e,t))}function*ghe(){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 l1=[null];function fr(e,t){this._groups=e,this._parents=t}function tc(){return new fr([[document.documentElement]],l1)}function mhe(){return this}fr.prototype=tc.prototype={constructor:fr,select:jfe,selectAll:Vfe,selectChild:Yfe,selectChildren:ede,filter:tde,data:lde,enter:nde,exit:cde,join:ude,merge:fde,selection:mhe,order:dde,sort:hde,call:gde,nodes:mde,node:vde,size:yde,empty:bde,each:wde,attr:Ede,style:Nde,property:Rde,classed:Fde,text:Wde,html:Gde,raise:Xde,lower:Zde,append:Jde,insert:ehe,remove:nhe,clone:ohe,datum:she,on:fhe,dispatch:phe,[Symbol.iterator]:ghe};function Xn(e){return typeof e=="string"?new fr([[document.querySelector(e)]],[document.documentElement]):new fr([[e]],l1)}function vhe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function wi(e,t){if(e=vhe(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 cl=class yi{x;y;static of([t,r]){return new yi(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new yi(this.x+t.x,this.y+t.y)}subtract(t){return new yi(this.x-t.x,this.y-t.y)}multiply(t){return new yi(this.x*t,this.y*t)}divide(t){return new yi(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 yi(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 yi(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new yi(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},yhe={value:()=>{}};function nc(){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 cu(r)}function cu(e){this._=e}function bhe(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}})}cu.prototype=nc.prototype={constructor:cu,on:function(e,t){var r=this._,o=bhe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=whe(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]=iy(r[s],e.name,t);else if(t==null)for(s in r)r[s]=iy(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 cu(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 whe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function iy(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=yhe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const xhe={passive:!1},Ia={capture:!0,passive:!1};function Ud(e){e.stopImmediatePropagation()}function Zs(e){e.preventDefault(),e.stopImmediatePropagation()}function a1(e){var t=e.document.documentElement,r=Xn(e).on("dragstart.drag",Zs,Ia);"onselectstart"in t?r.on("selectstart.drag",Zs,Ia):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function c1(e,t){var r=e.document.documentElement,o=Xn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Zs,Ia),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 Gc=e=>()=>e;function Oh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:m}){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:m}})}Oh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function khe(e){return!e.ctrlKey&&!e.button}function _he(){return this.parentNode}function She(e,t){return t??{x:e.x,y:e.y}}function The(){return navigator.maxTouchPoints||"ontouchstart"in this}function Che(){var e=khe,t=_he,r=She,o=The,s={},c=nc("start","drag","end"),f=0,d,h,p,m,v=0;function b(C){C.on("mousedown.drag",w).filter(o).on("touchstart.drag",N).on("touchmove.drag",L,xhe).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(C,I){if(!(m||!e.call(this,C,I))){var W=z(this,t.call(this,C,I),C,I,"mouse");W&&(Xn(C.view).on("mousemove.drag",O,Ia).on("mouseup.drag",A,Ia),a1(C.view),Ud(C),p=!1,d=C.clientX,h=C.clientY,W("start",C))}}function O(C){if(Zs(C),!p){var I=C.clientX-d,W=C.clientY-h;p=I*I+W*W>v}s.mouse("drag",C)}function A(C){Xn(C.view).on("mousemove.drag mouseup.drag",null),c1(C.view,p),Zs(C),s.mouse("end",C)}function N(C,I){if(e.call(this,C,I)){var W=C.changedTouches,Z=t.call(this,C,I),se=W.length,Q,K;for(Q=0;Q<se;++Q)(K=z(this,Z,C,I,W[Q].identifier,W[Q]))&&(Ud(C),K("start",C,W[Q]))}}function L(C){var I=C.changedTouches,W=I.length,Z,se;for(Z=0;Z<W;++Z)(se=s[I[Z].identifier])&&(Zs(C),se("drag",C,I[Z]))}function R(C){var I=C.changedTouches,W=I.length,Z,se;for(m&&clearTimeout(m),m=setTimeout(function(){m=null},500),Z=0;Z<W;++Z)(se=s[I[Z].identifier])&&(Ud(C),se("end",C,I[Z]))}function z(C,I,W,Z,se,Q){var K=c.copy(),G=wi(Q||W,I),P,$,S;if((S=r.call(C,new Oh("beforestart",{sourceEvent:W,target:b,identifier:se,active:f,x:G[0],y:G[1],dx:0,dy:0,dispatch:K}),Z))!=null)return P=S.x-G[0]||0,$=S.y-G[1]||0,function k(M,B,Y){var ve=G,_e;switch(M){case"start":s[se]=k,_e=f++;break;case"end":delete s[se],--f;case"drag":G=wi(Y||B,I),_e=f;break}K.call(M,C,new Oh(M,{sourceEvent:B,subject:S,target:b,identifier:se,active:_e,x:G[0]+P,y:G[1]+$,dx:G[0]-ve[0],dy:G[1]-ve[1],dispatch:K}),Z)}}return b.filter=function(C){return arguments.length?(e=typeof C=="function"?C:Gc(!!C),b):e},b.container=function(C){return arguments.length?(t=typeof C=="function"?C:Gc(C),b):t},b.subject=function(C){return arguments.length?(r=typeof C=="function"?C:Gc(C),b):r},b.touchable=function(C){return arguments.length?(o=typeof C=="function"?C:Gc(!!C),b):o},b.on=function(){var C=c.on.apply(c,arguments);return C===c?b:C},b.clickDistance=function(C){return arguments.length?(v=(C=+C)*C,b):Math.sqrt(v)},b}function Bp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function u1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function rc(){}var Da=.7,Bu=1/Da,Js="\\s*([+-]?\\d+)\\s*",za="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ni="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ehe=/^#([0-9a-f]{3,8})$/,Ahe=new RegExp(`^rgb\\(${Js},${Js},${Js}\\)$`),Lhe=new RegExp(`^rgb\\(${ni},${ni},${ni}\\)$`),Mhe=new RegExp(`^rgba\\(${Js},${Js},${Js},${za}\\)$`),Nhe=new RegExp(`^rgba\\(${ni},${ni},${ni},${za}\\)$`),$he=new RegExp(`^hsl\\(${za},${ni},${ni}\\)$`),Ohe=new RegExp(`^hsla\\(${za},${ni},${ni},${za}\\)$`),oy={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};Bp(rc,Fa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sy,formatHex:sy,formatHex8:Phe,formatHsl:Rhe,formatRgb:ly,toString:ly});function sy(){return this.rgb().formatHex()}function Phe(){return this.rgb().formatHex8()}function Rhe(){return f1(this).formatHsl()}function ly(){return this.rgb().formatRgb()}function Fa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ehe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ay(t):r===3?new Zn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Kc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Kc(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=Ahe.exec(e))?new Zn(t[1],t[2],t[3],1):(t=Lhe.exec(e))?new Zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Mhe.exec(e))?Kc(t[1],t[2],t[3],t[4]):(t=Nhe.exec(e))?Kc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$he.exec(e))?fy(t[1],t[2]/100,t[3]/100,1):(t=Ohe.exec(e))?fy(t[1],t[2]/100,t[3]/100,t[4]):oy.hasOwnProperty(e)?ay(oy[e]):e==="transparent"?new Zn(NaN,NaN,NaN,0):null}function ay(e){return new Zn(e>>16&255,e>>8&255,e&255,1)}function Kc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Zn(e,t,r,o)}function Ihe(e){return e instanceof rc||(e=Fa(e)),e?(e=e.rgb(),new Zn(e.r,e.g,e.b,e.opacity)):new Zn}function Ph(e,t,r,o){return arguments.length===1?Ihe(e):new Zn(e,t,r,o??1)}function Zn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Bp(Zn,Ph,u1(rc,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Da:Math.pow(Da,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zn(Qo(this.r),Qo(this.g),Qo(this.b),ju(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:cy,formatHex:cy,formatHex8:Dhe,formatRgb:uy,toString:uy}));function cy(){return`#${Go(this.r)}${Go(this.g)}${Go(this.b)}`}function Dhe(){return`#${Go(this.r)}${Go(this.g)}${Go(this.b)}${Go((isNaN(this.opacity)?1:this.opacity)*255)}`}function uy(){const e=ju(this.opacity);return`${e===1?"rgb(":"rgba("}${Qo(this.r)}, ${Qo(this.g)}, ${Qo(this.b)}${e===1?")":`, ${e})`}`}function ju(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Go(e){return e=Qo(e),(e<16?"0":"")+e.toString(16)}function fy(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Pr(e,t,r,o)}function f1(e){if(e instanceof Pr)return new Pr(e.h,e.s,e.l,e.opacity);if(e instanceof rc||(e=Fa(e)),!e)return new Pr;if(e instanceof Pr)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 Pr(f,d,h,e.opacity)}function zhe(e,t,r,o){return arguments.length===1?f1(e):new Pr(e,t,r,o??1)}function Pr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Bp(Pr,zhe,u1(rc,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new Pr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Da:Math.pow(Da,e),new Pr(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 Zn(Vd(e>=240?e-240:e+120,s,o),Vd(e,s,o),Vd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Pr(dy(this.h),Xc(this.s),Xc(this.l),ju(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=ju(this.opacity);return`${e===1?"hsl(":"hsla("}${dy(this.h)}, ${Xc(this.s)*100}%, ${Xc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dy(e){return e=(e||0)%360,e<0?e+360:e}function Xc(e){return Math.max(0,Math.min(1,e||0))}function Vd(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 d1=e=>()=>e;function Fhe(e,t){return function(r){return e+r*t}}function Hhe(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 Bhe(e){return(e=+e)==1?h1:function(t,r){return r-t?Hhe(t,r,e):d1(isNaN(t)?r:t)}}function h1(e,t){var r=t-e;return r?Fhe(e,r):d1(isNaN(e)?t:e)}const hy=(function e(t){var r=Bhe(t);function o(s,c){var f=r((s=Ph(s)).r,(c=Ph(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=h1(s.opacity,c.opacity);return function(m){return s.r=f(m),s.g=d(m),s.b=h(m),s.opacity=p(m),s+""}}return o.gamma=e,o})(1);function ao(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Rh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gd=new RegExp(Rh.source,"g");function jhe(e){return function(){return e}}function Whe(e){return function(t){return e(t)+""}}function qhe(e,t){var r=Rh.lastIndex=Gd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Rh.exec(e))&&(s=Gd.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:ao(o,s)})),r=Gd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Whe(h[0].x):jhe(t):(t=h.length,function(p){for(var m=0,v;m<t;++m)d[(v=h[m]).i]=v.x(p);return d.join("")})}var py=180/Math.PI,Ih={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function p1(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)*py,skewX:Math.atan(h)*py,scaleX:f,scaleY:d}}var Yc;function Uhe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ih:p1(t.a,t.b,t.c,t.d,t.e,t.f)}function Vhe(e){return e==null||(Yc||(Yc=document.createElementNS("http://www.w3.org/2000/svg","g")),Yc.setAttribute("transform",e),!(e=Yc.transform.baseVal.consolidate()))?Ih:(e=e.matrix,p1(e.a,e.b,e.c,e.d,e.e,e.f))}function g1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,m,v,b,w,O){if(p!==v||m!==b){var A=w.push("translate(",null,t,null,r);O.push({i:A-4,x:ao(p,v)},{i:A-2,x:ao(m,b)})}else(v||b)&&w.push("translate("+v+t+b+r)}function f(p,m,v,b){p!==m?(p-m>180?m+=360:m-p>180&&(p+=360),b.push({i:v.push(s(v)+"rotate(",null,o)-2,x:ao(p,m)})):m&&v.push(s(v)+"rotate("+m+o)}function d(p,m,v,b){p!==m?b.push({i:v.push(s(v)+"skewX(",null,o)-2,x:ao(p,m)}):m&&v.push(s(v)+"skewX("+m+o)}function h(p,m,v,b,w,O){if(p!==v||m!==b){var A=w.push(s(w)+"scale(",null,",",null,")");O.push({i:A-4,x:ao(p,v)},{i:A-2,x:ao(m,b)})}else(v!==1||b!==1)&&w.push(s(w)+"scale("+v+","+b+")")}return function(p,m){var v=[],b=[];return p=e(p),m=e(m),c(p.translateX,p.translateY,m.translateX,m.translateY,v,b),f(p.rotate,m.rotate,v,b),d(p.skewX,m.skewX,v,b),h(p.scaleX,p.scaleY,m.scaleX,m.scaleY,v,b),p=m=null,function(w){for(var O=-1,A=b.length,N;++O<A;)v[(N=b[O]).i]=N.x(w);return v.join("")}}}var Ghe=g1(Uhe,"px, ","px)","deg)"),Khe=g1(Vhe,", ",")",")"),Xhe=1e-12;function gy(e){return((e=Math.exp(e))+1/e)/2}function Yhe(e){return((e=Math.exp(e))-1/e)/2}function Zhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const Jhe=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],m=f[0],v=f[1],b=f[2],w=m-d,O=v-h,A=w*w+O*O,N,L;if(A<Xhe)L=Math.log(b/p)/t,N=function(Z){return[d+Z*w,h+Z*O,p*Math.exp(t*Z*L)]};else{var R=Math.sqrt(A),z=(b*b-p*p+o*A)/(2*p*r*R),C=(b*b-p*p-o*A)/(2*b*r*R),I=Math.log(Math.sqrt(z*z+1)-z),W=Math.log(Math.sqrt(C*C+1)-C);L=(W-I)/t,N=function(Z){var se=Z*L,Q=gy(I),K=p/(r*R)*(Q*Zhe(t*se+I)-Yhe(I));return[d+K*w,h+K*O,p*Q/gy(t*se+I)]}}return N.duration=L*1e3*t/Math.SQRT2,N}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 ul=0,na=0,Zl=0,m1=1e3,Wu,ra,qu=0,ts=0,Sf=0,Ha=typeof performance=="object"&&performance.now?performance:Date,v1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jp(){return ts||(v1(Qhe),ts=Ha.now()+Sf)}function Qhe(){ts=0}function Uu(){this._call=this._time=this._next=null}Uu.prototype=Wp.prototype={constructor:Uu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?jp():+r)+(t==null?0:+t),!this._next&&ra!==this&&(ra?ra._next=this:Wu=this,ra=this),this._call=e,this._time=r,Dh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Dh())}};function Wp(e,t,r){var o=new Uu;return o.restart(e,t,r),o}function epe(){jp(),++ul;for(var e=Wu,t;e;)(t=ts-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ul}function my(){ts=(qu=Ha.now())+Sf,ul=na=0;try{epe()}finally{ul=0,npe(),ts=0}}function tpe(){var e=Ha.now(),t=e-qu;t>m1&&(Sf-=t,qu=e)}function npe(){for(var e,t=Wu,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:Wu=r);ra=e,Dh(o)}function Dh(e){if(!ul){na&&(na=clearTimeout(na));var t=e-ts;t>24?(e<1/0&&(na=setTimeout(my,e-Ha.now()-Sf)),Zl&&(Zl=clearInterval(Zl))):(Zl||(qu=Ha.now(),Zl=setInterval(tpe,m1)),ul=1,v1(my))}}function vy(e,t,r){var o=new Uu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var rpe=nc("start","end","cancel","interrupt"),ipe=[],y1=0,yy=1,zh=2,uu=3,by=4,Fh=5,fu=6;function Tf(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;ope(e,r,{name:t,index:o,group:s,on:rpe,tween:ipe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:y1})}function qp(e,t){var r=jr(e,t);if(r.state>y1)throw new Error("too late; already scheduled");return r}function oi(e,t){var r=jr(e,t);if(r.state>uu)throw new Error("too late; already running");return r}function jr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function ope(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Wp(c,0,r.time);function c(p){r.state=yy,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var m,v,b,w;if(r.state!==yy)return h();for(m in o)if(w=o[m],w.name===r.name){if(w.state===uu)return vy(f);w.state===by?(w.state=fu,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[m]):+m<t&&(w.state=fu,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[m])}if(vy(function(){r.state===uu&&(r.state=by,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=zh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===zh){for(r.state=uu,s=new Array(b=r.tween.length),m=0,v=-1;m<b;++m)(w=r.tween[m].value.call(e,e.__data__,r.index,r.group))&&(s[++v]=w);s.length=v+1}}function d(p){for(var m=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Fh,1),v=-1,b=s.length;++v<b;)s[v].call(e,m);r.state===Fh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=fu,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function du(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>zh&&o.state<Fh,o.state=fu,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function spe(e){return this.each(function(){du(this,e)})}function lpe(e,t){var r,o;return function(){var s=oi(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 ape(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=oi(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 cpe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=jr(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?lpe:ape)(r,e,t))}function Up(e,t,r){var o=e._id;return e.each(function(){var s=oi(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return jr(s,o).value[t]}}function b1(e,t){var r;return(typeof t=="number"?ao:t instanceof Fa?hy:(r=Fa(t))?(t=r,hy):qhe)(e,t)}function upe(e){return function(){this.removeAttribute(e)}}function fpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function dpe(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 hpe(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 ppe(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 gpe(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 mpe(e,t){var r=_f(e),o=r==="transform"?Khe:b1;return this.attrTween(e,typeof t=="function"?(r.local?gpe:ppe)(r,o,Up(this,"attr."+e,t)):t==null?(r.local?fpe:upe)(r):(r.local?hpe:dpe)(r,o,t))}function vpe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function ype(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function bpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&ype(e,c)),r}return s._value=t,s}function wpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&vpe(e,c)),r}return s._value=t,s}function xpe(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=_f(e);return this.tween(r,(o.local?bpe:wpe)(o,t))}function kpe(e,t){return function(){qp(this,e).delay=+t.apply(this,arguments)}}function _pe(e,t){return t=+t,function(){qp(this,e).delay=t}}function Spe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?kpe:_pe)(t,e)):jr(this.node(),t).delay}function Tpe(e,t){return function(){oi(this,e).duration=+t.apply(this,arguments)}}function Cpe(e,t){return t=+t,function(){oi(this,e).duration=t}}function Epe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Tpe:Cpe)(t,e)):jr(this.node(),t).duration}function Ape(e,t){if(typeof t!="function")throw new Error;return function(){oi(this,e).ease=t}}function Lpe(e){var t=this._id;return arguments.length?this.each(Ape(t,e)):jr(this.node(),t).ease}function Mpe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;oi(this,e).ease=r}}function Npe(e){if(typeof e!="function")throw new Error;return this.each(Mpe(this._id,e))}function $pe(e){typeof e!="function"&&(e=Jx(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 Oi(o,this._parents,this._name,this._id)}function Ope(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],m=h.length,v=f[d]=new Array(m),b,w=0;w<m;++w)(b=h[w]||p[w])&&(v[w]=b);for(;d<o;++d)f[d]=t[d];return new Oi(f,this._parents,this._name,this._id)}function Ppe(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 Rpe(e,t,r){var o,s,c=Ppe(t)?qp:oi;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Ipe(e,t){var r=this._id;return arguments.length<2?jr(this.node(),r).on.on(e):this.each(Rpe(r,e,t))}function Dpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function zpe(){return this.on("end.remove",Dpe(this._id))}function Fpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Fp(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),m,v,b=0;b<h;++b)(m=d[b])&&(v=e.call(m,m.__data__,b,d))&&("__data__"in m&&(v.__data__=m.__data__),p[b]=v,Tf(p[b],t,r,b,p,jr(m,r)));return new Oi(c,this._parents,t,r)}function Hpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,m,v=0;v<p;++v)if(m=h[v]){for(var b=e.call(m,m.__data__,v,h),w,O=jr(m,r),A=0,N=b.length;A<N;++A)(w=b[A])&&Tf(w,t,r,A,b,O);c.push(b),f.push(m)}return new Oi(c,f,t,r)}var Bpe=tc.prototype.constructor;function jpe(){return new Bpe(this._groups,this._parents)}function Wpe(e,t){var r,o,s;return function(){var c=al(this,e),f=(this.style.removeProperty(e),al(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function w1(e){return function(){this.style.removeProperty(e)}}function qpe(e,t,r){var o,s=r+"",c;return function(){var f=al(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Upe(e,t,r){var o,s,c;return function(){var f=al(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),al(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function Vpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=oi(this,e),p=h.on,m=h.value[c]==null?d||(d=w1(t)):void 0;(p!==r||s!==m)&&(o=(r=p).copy()).on(f,s=m),h.on=o}}function Gpe(e,t,r){var o=(e+="")=="transform"?Ghe:b1;return t==null?this.styleTween(e,Wpe(e,o)).on("end.style."+e,w1(e)):typeof t=="function"?this.styleTween(e,Upe(e,o,Up(this,"style."+e,t))).each(Vpe(this._id,e)):this.styleTween(e,qpe(e,o,t),r).on("end.style."+e,null)}function Kpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Xpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Kpe(e,f,r)),o}return c._value=t,c}function Ype(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,Xpe(e,t,r??""))}function Zpe(e){return function(){this.textContent=e}}function Jpe(e){return function(){var t=e(this);this.textContent=t??""}}function Qpe(e){return this.tween("text",typeof e=="function"?Jpe(Up(this,"text",e)):Zpe(e==null?"":e+""))}function ege(e){return function(t){this.textContent=e.call(this,t)}}function tge(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&ege(s)),t}return o._value=e,o}function nge(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,tge(e))}function rge(){for(var e=this._name,t=this._id,r=x1(),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 m=jr(h,t);Tf(h,e,r,p,f,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new Oi(o,this._parents,e,r)}function ige(){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=oi(this,o),m=p.on;m!==e&&(t=(e=m).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var oge=0;function Oi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function x1(){return++oge}var mi=tc.prototype;Oi.prototype={constructor:Oi,select:Fpe,selectAll:Hpe,selectChild:mi.selectChild,selectChildren:mi.selectChildren,filter:$pe,merge:Ope,selection:jpe,transition:rge,call:mi.call,nodes:mi.nodes,node:mi.node,size:mi.size,empty:mi.empty,each:mi.each,on:Ipe,attr:mpe,attrTween:xpe,style:Gpe,styleTween:Ype,text:Qpe,textTween:nge,remove:zpe,tween:cpe,delay:Spe,duration:Epe,ease:Lpe,easeVarying:Npe,end:ige,[Symbol.iterator]:mi[Symbol.iterator]};function sge(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var lge={time:null,delay:0,duration:250,ease:sge};function age(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 cge(e){var t,r;e instanceof Oi?(t=e._id,e=e._name):(t=x1(),(r=lge).time=jp(),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])&&Tf(h,e,t,p,f,r||age(h,t));return new Oi(o,this._parents,e,t)}tc.prototype.interrupt=spe;tc.prototype.transition=cge;const Zc=e=>()=>e;function uge(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 Ci(e,t,r){this.k=e,this.x=t,this.y=r}Ci.prototype={constructor:Ci,scale:function(e){return e===1?this:new Ci(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ci(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 Ci(1,0,0);Ci.prototype;function Kd(e){e.stopImmediatePropagation()}function Jl(e){e.preventDefault(),e.stopImmediatePropagation()}function fge(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function dge(){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 wy(){return this.__zoom||Vp}function hge(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function pge(){return navigator.maxTouchPoints||"ontouchstart"in this}function gge(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 mge(){var e=fge,t=dge,r=gge,o=hge,s=pge,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Jhe,p=nc("start","zoom","end"),m,v,b,w=500,O=150,A=0,N=10;function L(S){S.property("__zoom",wy).on("wheel.zoom",se,{passive:!1}).on("mousedown.zoom",Q).on("dblclick.zoom",K).filter(s).on("touchstart.zoom",G).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}L.transform=function(S,k,M,B){var Y=S.selection?S.selection():S;Y.property("__zoom",wy),S!==Y?I(S,k,M,B):Y.interrupt().each(function(){W(this,arguments).event(B).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},L.scaleBy=function(S,k,M,B){L.scaleTo(S,function(){var Y=this.__zoom.k,ve=typeof k=="function"?k.apply(this,arguments):k;return Y*ve},M,B)},L.scaleTo=function(S,k,M,B){L.transform(S,function(){var Y=t.apply(this,arguments),ve=this.__zoom,_e=M==null?C(Y):typeof M=="function"?M.apply(this,arguments):M,Be=ve.invert(_e),Ae=typeof k=="function"?k.apply(this,arguments):k;return r(z(R(ve,Ae),_e,Be),Y,f)},M,B)},L.translateBy=function(S,k,M,B){L.transform(S,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof M=="function"?M.apply(this,arguments):M),t.apply(this,arguments),f)},null,B)},L.translateTo=function(S,k,M,B,Y){L.transform(S,function(){var ve=t.apply(this,arguments),_e=this.__zoom,Be=B==null?C(ve):typeof B=="function"?B.apply(this,arguments):B;return r(Vp.translate(Be[0],Be[1]).scale(_e.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof M=="function"?-M.apply(this,arguments):-M),ve,f)},B,Y)};function R(S,k){return k=Math.max(c[0],Math.min(c[1],k)),k===S.k?S:new Ci(k,S.x,S.y)}function z(S,k,M){var B=k[0]-M[0]*S.k,Y=k[1]-M[1]*S.k;return B===S.x&&Y===S.y?S:new Ci(S.k,B,Y)}function C(S){return[(+S[0][0]+ +S[1][0])/2,(+S[0][1]+ +S[1][1])/2]}function I(S,k,M,B){S.on("start.zoom",function(){W(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(B).end()}).tween("zoom",function(){var Y=this,ve=arguments,_e=W(Y,ve).event(B),Be=t.apply(Y,ve),Ae=M==null?C(Be):typeof M=="function"?M.apply(Y,ve):M,Ke=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),Ue=Y.__zoom,He=typeof k=="function"?k.apply(Y,ve):k,Pe=h(Ue.invert(Ae).concat(Ke/Ue.k),He.invert(Ae).concat(Ke/He.k));return function(F){if(F===1)F=He;else{var J=Pe(F),ie=Ke/J[2];F=new Ci(ie,Ae[0]-J[0]*ie,Ae[1]-J[1]*ie)}_e.zoom(null,F)}})}function W(S,k,M){return!M&&S.__zooming||new Z(S,k)}function Z(S,k){this.that=S,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(S,k),this.taps=0}Z.prototype={event:function(S){return S&&(this.sourceEvent=S),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(S,k){return this.mouse&&S!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&S!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&S!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(S){var k=Xn(this.that).datum();p.call(S,this.that,new uge(S,{sourceEvent:this.sourceEvent,target:L,transform:this.that.__zoom,dispatch:p}),k)}};function se(S,...k){if(!e.apply(this,arguments))return;var M=W(this,k).event(S),B=this.__zoom,Y=Math.max(c[0],Math.min(c[1],B.k*Math.pow(2,o.apply(this,arguments)))),ve=wi(S);if(M.wheel)(M.mouse[0][0]!==ve[0]||M.mouse[0][1]!==ve[1])&&(M.mouse[1]=B.invert(M.mouse[0]=ve)),clearTimeout(M.wheel);else{if(B.k===Y)return;M.mouse=[ve,B.invert(ve)],du(this),M.start()}Jl(S),M.wheel=setTimeout(_e,O),M.zoom("mouse",r(z(R(B,Y),M.mouse[0],M.mouse[1]),M.extent,f));function _e(){M.wheel=null,M.end()}}function Q(S,...k){if(b||!e.apply(this,arguments))return;var M=S.currentTarget,B=W(this,k,!0).event(S),Y=Xn(S.view).on("mousemove.zoom",Ae,!0).on("mouseup.zoom",Ke,!0),ve=wi(S,M),_e=S.clientX,Be=S.clientY;a1(S.view),Kd(S),B.mouse=[ve,this.__zoom.invert(ve)],du(this),B.start();function Ae(Ue){if(Jl(Ue),!B.moved){var He=Ue.clientX-_e,Pe=Ue.clientY-Be;B.moved=He*He+Pe*Pe>A}B.event(Ue).zoom("mouse",r(z(B.that.__zoom,B.mouse[0]=wi(Ue,M),B.mouse[1]),B.extent,f))}function Ke(Ue){Y.on("mousemove.zoom mouseup.zoom",null),c1(Ue.view,B.moved),Jl(Ue),B.event(Ue).end()}}function K(S,...k){if(e.apply(this,arguments)){var M=this.__zoom,B=wi(S.changedTouches?S.changedTouches[0]:S,this),Y=M.invert(B),ve=M.k*(S.shiftKey?.5:2),_e=r(z(R(M,ve),B,Y),t.apply(this,k),f);Jl(S),d>0?Xn(this).transition().duration(d).call(I,_e,B,S):Xn(this).call(L.transform,_e,B,S)}}function G(S,...k){if(e.apply(this,arguments)){var M=S.touches,B=M.length,Y=W(this,k,S.changedTouches.length===B).event(S),ve,_e,Be,Ae;for(Kd(S),_e=0;_e<B;++_e)Be=M[_e],Ae=wi(Be,this),Ae=[Ae,this.__zoom.invert(Ae),Be.identifier],Y.touch0?!Y.touch1&&Y.touch0[2]!==Ae[2]&&(Y.touch1=Ae,Y.taps=0):(Y.touch0=Ae,ve=!0,Y.taps=1+!!m);m&&(m=clearTimeout(m)),ve&&(Y.taps<2&&(v=Ae[0],m=setTimeout(function(){m=null},w)),du(this),Y.start())}}function P(S,...k){if(this.__zooming){var M=W(this,k).event(S),B=S.changedTouches,Y=B.length,ve,_e,Be,Ae;for(Jl(S),ve=0;ve<Y;++ve)_e=B[ve],Be=wi(_e,this),M.touch0&&M.touch0[2]===_e.identifier?M.touch0[0]=Be:M.touch1&&M.touch1[2]===_e.identifier&&(M.touch1[0]=Be);if(_e=M.that.__zoom,M.touch1){var Ke=M.touch0[0],Ue=M.touch0[1],He=M.touch1[0],Pe=M.touch1[1],F=(F=He[0]-Ke[0])*F+(F=He[1]-Ke[1])*F,J=(J=Pe[0]-Ue[0])*J+(J=Pe[1]-Ue[1])*J;_e=R(_e,Math.sqrt(F/J)),Be=[(Ke[0]+He[0])/2,(Ke[1]+He[1])/2],Ae=[(Ue[0]+Pe[0])/2,(Ue[1]+Pe[1])/2]}else if(M.touch0)Be=M.touch0[0],Ae=M.touch0[1];else return;M.zoom("touch",r(z(_e,Be,Ae),M.extent,f))}}function $(S,...k){if(this.__zooming){var M=W(this,k).event(S),B=S.changedTouches,Y=B.length,ve,_e;for(Kd(S),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),ve=0;ve<Y;++ve)_e=B[ve],M.touch0&&M.touch0[2]===_e.identifier?delete M.touch0:M.touch1&&M.touch1[2]===_e.identifier&&delete M.touch1;if(M.touch1&&!M.touch0&&(M.touch0=M.touch1,delete M.touch1),M.touch0)M.touch0[1]=this.__zoom.invert(M.touch0[0]);else if(M.end(),M.taps===2&&(_e=wi(_e,this),Math.hypot(v[0]-_e[0],v[1]-_e[1])<N)){var Be=Xn(this).on("dblclick.zoom");Be&&Be.apply(this,arguments)}}}return L.wheelDelta=function(S){return arguments.length?(o=typeof S=="function"?S:Zc(+S),L):o},L.filter=function(S){return arguments.length?(e=typeof S=="function"?S:Zc(!!S),L):e},L.touchable=function(S){return arguments.length?(s=typeof S=="function"?S:Zc(!!S),L):s},L.extent=function(S){return arguments.length?(t=typeof S=="function"?S:Zc([[+S[0][0],+S[0][1]],[+S[1][0],+S[1][1]]]),L):t},L.scaleExtent=function(S){return arguments.length?(c[0]=+S[0],c[1]=+S[1],L):[c[0],c[1]]},L.translateExtent=function(S){return arguments.length?(f[0][0]=+S[0][0],f[1][0]=+S[1][0],f[0][1]=+S[0][1],f[1][1]=+S[1][1],L):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},L.constrain=function(S){return arguments.length?(r=S,L):r},L.duration=function(S){return arguments.length?(d=+S,L):d},L.interpolate=function(S){return arguments.length?(h=S,L):h},L.on=function(){var S=p.on.apply(p,arguments);return S===p?L:S},L.clickDistance=function(S){return arguments.length?(A=(S=+S)*S,L):Math.sqrt(A)},L.tapDistance=function(S){return arguments.length?(N=+S,L):N},L}function vge(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return k1(this.cover(t,r),t,r,e)}function k1(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,m=e._y1,v,b,w,O,A,N,L,R;if(!c)return e._root=f,e;for(;c.length;)if((A=t>=(v=(d+p)/2))?d=v:p=v,(N=r>=(b=(h+m)/2))?h=b:m=b,s=c,!(c=c[L=N<<1|A]))return s[L]=f,e;if(w=+e._x.call(null,c.data),O=+e._y.call(null,c.data),t===w&&r===O)return f.next=c,s?s[L]=f:e._root=f,e;do s=s?s[L]=new Array(4):e._root=new Array(4),(A=t>=(v=(d+p)/2))?d=v:p=v,(N=r>=(b=(h+m)/2))?h=b:m=b;while((L=N<<1|A)===(R=(O>=b)<<1|w>=v));return s[R]=c,s[L]=f,e}function yge(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,m=-1/0,v=-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>m&&(m=s),c<p&&(p=c),c>v&&(v=c));if(h>m||p>v)return this;for(this.cover(h,p).cover(m,v),r=0;r<o;++r)k1(this,f[r],d[r],e[r]);return this}function bge(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 wge(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function xge(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 Dn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function kge(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,m=this._x1,v=this._y1,b=[],w=this._root,O,A;for(w&&b.push(new Dn(w,s,c,m,v)),r==null?r=1/0:(s=e-r,c=t-r,m=e+r,v=t+r,r*=r);O=b.pop();)if(!(!(w=O.node)||(f=O.x0)>m||(d=O.y0)>v||(h=O.x1)<s||(p=O.y1)<c))if(w.length){var N=(f+h)/2,L=(d+p)/2;b.push(new Dn(w[3],N,L,h,p),new Dn(w[2],f,L,N,p),new Dn(w[1],N,d,h,L),new Dn(w[0],f,d,N,L)),(A=(t>=L)<<1|e>=N)&&(O=b[b.length-1],b[b.length-1]=b[b.length-1-A],b[b.length-1-A]=O)}else{var R=e-+this._x.call(null,w.data),z=t-+this._y.call(null,w.data),C=R*R+z*z;if(C<r){var I=Math.sqrt(r=C);s=e-I,c=t-I,m=e+I,v=t+I,o=w.data}}return o}function _ge(e){if(isNaN(m=+this._x.call(null,e))||isNaN(v=+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,m,v,b,w,O,A,N,L;if(!r)return this;if(r.length)for(;;){if((O=m>=(b=(f+h)/2))?f=b:h=b,(A=v>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[N=A<<1|O]))return this;if(!r.length)break;(t[N+1&3]||t[N+2&3]||t[N+3&3])&&(o=t,L=N)}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[N]=c:delete t[N],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[L]=r:this._root=r),this):(this._root=c,this)}function Sge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Tge(){return this._root}function Cge(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Ege(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Dn(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,m=(f+h)/2;(s=o[3])&&t.push(new Dn(s,p,m,d,h)),(s=o[2])&&t.push(new Dn(s,c,m,p,h)),(s=o[1])&&t.push(new Dn(s,p,f,d,m)),(s=o[0])&&t.push(new Dn(s,c,f,p,m))}return this}function Age(e){var t=[],r=[],o;for(this._root&&t.push(new Dn(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,m=(f+h)/2,v=(d+p)/2;(c=s[0])&&t.push(new Dn(c,f,d,m,v)),(c=s[1])&&t.push(new Dn(c,m,d,h,v)),(c=s[2])&&t.push(new Dn(c,f,v,m,p)),(c=s[3])&&t.push(new Dn(c,m,v,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Lge(e){return e[0]}function Mge(e){return arguments.length?(this._x=e,this):this._x}function Nge(e){return e[1]}function $ge(e){return arguments.length?(this._y=e,this):this._y}function Gp(e,t,r){var o=new Kp(t??Lge,r??Nge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Kp(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 xy(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Hn=Gp.prototype=Kp.prototype;Hn.copy=function(){var e=new Kp(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=xy(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]=xy(o));return e};Hn.add=vge;Hn.addAll=yge;Hn.cover=bge;Hn.data=wge;Hn.extent=xge;Hn.find=kge;Hn.remove=_ge;Hn.removeAll=Sge;Hn.root=Tge;Hn.size=Cge;Hn.visit=Ege;Hn.visitAfter=Age;Hn.x=Mge;Hn.y=$ge;function Fn(e){return function(){return e}}function ho(e){return(e()-.5)*1e-6}function Oge(e){return e.x+e.vx}function Pge(e){return e.y+e.vy}function Rge(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Fn(e==null?1:+e));function f(){for(var p,m=t.length,v,b,w,O,A,N,L=0;L<c;++L)for(v=Gp(t,Oge,Pge).visitAfter(d),p=0;p<m;++p)b=t[p],A=r[b.index],N=A*A,w=b.x+b.vx,O=b.y+b.vy,v.visit(R);function R(z,C,I,W,Z){var se=z.data,Q=z.r,K=A+Q;if(se){if(se.index>b.index){var G=w-se.x-se.vx,P=O-se.y-se.vy,$=G*G+P*P;$<K*K&&(G===0&&(G=ho(o),$+=G*G),P===0&&(P=ho(o),$+=P*P),$=(K-($=Math.sqrt($)))/$*s,b.vx+=(G*=$)*(K=(Q*=Q)/(N+Q)),b.vy+=(P*=$)*K,se.vx-=G*(K=1-K),se.vy-=P*K)}return}return C>w+K||W<w-K||I>O+K||Z<O-K}}function d(p){if(p.data)return p.r=r[p.data.index];for(var m=p.r=0;m<4;++m)p[m]&&p[m].r>p.r&&(p.r=p[m].r)}function h(){if(t){var p,m=t.length,v;for(r=new Array(m),p=0;p<m;++p)v=t[p],r[v.index]=+e(v,p,t)}}return f.initialize=function(p,m){t=p,o=m,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:Fn(+p),h(),f):e},f}function Ige(e){return e.index}function ky(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Dge(e){var t=Ige,r=v,o,s=Fn(30),c,f,d,h,p,m=1;e==null&&(e=[]);function v(N){return 1/Math.min(d[N.source.index],d[N.target.index])}function b(N){for(var L=0,R=e.length;L<m;++L)for(var z=0,C,I,W,Z,se,Q,K;z<R;++z)C=e[z],I=C.source,W=C.target,Z=W.x+W.vx-I.x-I.vx||ho(p),se=W.y+W.vy-I.y-I.vy||ho(p),Q=Math.sqrt(Z*Z+se*se),Q=(Q-c[z])/Q*N*o[z],Z*=Q,se*=Q,W.vx-=Z*(K=h[z]),W.vy-=se*K,I.vx+=Z*(K=1-K),I.vy+=se*K}function w(){if(f){var N,L=f.length,R=e.length,z=new Map(f.map((I,W)=>[t(I,W,f),I])),C;for(N=0,d=new Array(L);N<R;++N)C=e[N],C.index=N,typeof C.source!="object"&&(C.source=ky(z,C.source)),typeof C.target!="object"&&(C.target=ky(z,C.target)),d[C.source.index]=(d[C.source.index]||0)+1,d[C.target.index]=(d[C.target.index]||0)+1;for(N=0,h=new Array(R);N<R;++N)C=e[N],h[N]=d[C.source.index]/(d[C.source.index]+d[C.target.index]);o=new Array(R),O(),c=new Array(R),A()}}function O(){if(f)for(var N=0,L=e.length;N<L;++N)o[N]=+r(e[N],N,e)}function A(){if(f)for(var N=0,L=e.length;N<L;++N)c[N]=+s(e[N],N,e)}return b.initialize=function(N,L){f=N,p=L,w()},b.links=function(N){return arguments.length?(e=N,w(),b):e},b.id=function(N){return arguments.length?(t=N,b):t},b.iterations=function(N){return arguments.length?(m=+N,b):m},b.strength=function(N){return arguments.length?(r=typeof N=="function"?N:Fn(+N),O(),b):r},b.distance=function(N){return arguments.length?(s=typeof N=="function"?N:Fn(+N),A(),b):s},b}const zge=1664525,Fge=1013904223,_y=4294967296;function Hge(){let e=1;return()=>(e=(zge*e+Fge)%_y)/_y}function Bge(e){return e.x}function jge(e){return e.y}var Wge=10,qge=Math.PI*(3-Math.sqrt(5));function Uge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Wp(v),p=nc("tick","end"),m=Hge();e==null&&(e=[]);function v(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(A){var N,L=e.length,R;A===void 0&&(A=1);for(var z=0;z<A;++z)for(r+=(c-r)*s,d.forEach(function(C){C(r)}),N=0;N<L;++N)R=e[N],R.fx==null?R.x+=R.vx*=f:(R.x=R.fx,R.vx=0),R.fy==null?R.y+=R.vy*=f:(R.y=R.fy,R.vy=0);return t}function w(){for(var A=0,N=e.length,L;A<N;++A){if(L=e[A],L.index=A,L.fx!=null&&(L.x=L.fx),L.fy!=null&&(L.y=L.fy),isNaN(L.x)||isNaN(L.y)){var R=Wge*Math.sqrt(.5+A),z=A*qge;L.x=R*Math.cos(z),L.y=R*Math.sin(z)}(isNaN(L.vx)||isNaN(L.vy))&&(L.vx=L.vy=0)}}function O(A){return A.initialize&&A.initialize(e,m),A}return w(),t={tick:b,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(A){return arguments.length?(e=A,w(),d.forEach(O),t):e},alpha:function(A){return arguments.length?(r=+A,t):r},alphaMin:function(A){return arguments.length?(o=+A,t):o},alphaDecay:function(A){return arguments.length?(s=+A,t):+s},alphaTarget:function(A){return arguments.length?(c=+A,t):c},velocityDecay:function(A){return arguments.length?(f=1-A,t):1-f},randomSource:function(A){return arguments.length?(m=A,d.forEach(O),t):m},force:function(A,N){return arguments.length>1?(N==null?d.delete(A):d.set(A,O(N)),t):d.get(A)},find:function(A,N,L){var R=0,z=e.length,C,I,W,Z,se;for(L==null?L=1/0:L*=L,R=0;R<z;++R)Z=e[R],C=A-Z.x,I=N-Z.y,W=C*C+I*I,W<L&&(se=Z,L=W);return se},on:function(A,N){return arguments.length>1?(p.on(A,N),t):p.on(A)}}}function Vge(){var e,t,r,o,s=Fn(-30),c,f=1,d=1/0,h=.81;function p(w){var O,A=e.length,N=Gp(e,Bge,jge).visitAfter(v);for(o=w,O=0;O<A;++O)t=e[O],N.visit(b)}function m(){if(e){var w,O=e.length,A;for(c=new Array(O),w=0;w<O;++w)A=e[w],c[A.index]=+s(A,w,e)}}function v(w){var O=0,A,N,L=0,R,z,C;if(w.length){for(R=z=C=0;C<4;++C)(A=w[C])&&(N=Math.abs(A.value))&&(O+=A.value,L+=N,R+=N*A.x,z+=N*A.y);w.x=R/L,w.y=z/L}else{A=w,A.x=A.data.x,A.y=A.data.y;do O+=c[A.data.index];while(A=A.next)}w.value=O}function b(w,O,A,N){if(!w.value)return!0;var L=w.x-t.x,R=w.y-t.y,z=N-O,C=L*L+R*R;if(z*z/h<C)return C<d&&(L===0&&(L=ho(r),C+=L*L),R===0&&(R=ho(r),C+=R*R),C<f&&(C=Math.sqrt(f*C)),t.vx+=L*w.value*o/C,t.vy+=R*w.value*o/C),!0;if(w.length||C>=d)return;(w.data!==t||w.next)&&(L===0&&(L=ho(r),C+=L*L),R===0&&(R=ho(r),C+=R*R),C<f&&(C=Math.sqrt(f*C)));do w.data!==t&&(z=c[w.data.index]*o/C,t.vx+=L*z,t.vy+=R*z);while(w=w.next)}return p.initialize=function(w,O){e=w,r=O,m()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Fn(+w),m(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Gge(e){var t=Fn(.1),r,o,s;typeof e!="function"&&(e=Fn(e==null?0:+e));function c(d){for(var h=0,p=r.length,m;h<p;++h)m=r[h],m.vx+=(s[h]-m.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:Fn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Fn(+d),f(),c):e},c}function Kge(e){var t=Fn(.1),r,o,s;typeof e!="function"&&(e=Fn(e==null?0:+e));function c(d){for(var h=0,p=r.length,m;h<p;++h)m=r[h],m.vy+=(s[h]-m.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:Fn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Fn(+d),f(),c):e},c}function Xge(){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 Sy(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 po(...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]=po.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:Sy(t[o])&&Sy(r[o])?t[o]=po(t[o],r[o]):t[o]=r[o])}),t},{})}const _1={mergeArrays:!0};po.options=_1;po.withOptions=(e,...t)=>{po.options={mergeArrays:!0,...e};const r=po(...t);return po.options=_1,r};var Yge=po;function Zge(){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 Jge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function S1(e){e.preventDefault(),e.stopPropagation()}function T1(e){return typeof e=="number"}function So(e,t){return T1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Qge(e){return`${e.source.id}-${e.target.id}`}function C1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function eme(e){return`url(#${C1(e.color)})`}function tme(e){return{size:e,padding:(t,r)=>So(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const E1={Arrow:e=>tme(e)},nme=(e,t,r)=>[t/2,r/2],rme=(e,t,r)=>[Ty(0,t),Ty(0,r)];function Ty(e,t){return Math.random()*(t-e)+e}const Hh={Centered:nme,Randomized:rme};function ime(){return{autoResize:!1,callbacks:{},hooks:{},initial:Jge(),nodeRadius:16,marker:E1.Arrow(4),modifiers:{},positionInitializer:Hh.Centered,simulation:{alphas:Xge(),forces:Zge()},zoom:{initial:1,min:.1,max:2}}}function ome(e={}){return Yge.withOptions({mergeArrays:!1},ime(),e)}function sme({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",m=>S1(m)).on("dblclick",m=>r?.(m)).on("dblclick.zoom",null).on("pointermove",m=>o?.(m)).on("pointerup",m=>s?.(m)).style("cursor","grab");return e&&p.call(h.transform,Vp.translate(c,f).scale(d)),p.append("g")}function lme({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function ame({config:e,onDragStart:t,onDragEnd:r}){const o=Che().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),Xn(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),Xn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function cme({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}:ume({links:c},r)}function ume(e,t){const r=[...fme(e,t),...dme(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function fme(e,t){return A1(e,t,(r,o)=>r.target.id===o.id)}function dme(e,t){return A1(e,t,(r,o)=>r.source.id===o.id)}function A1(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 Bh(e){return e.x??0}function jh(e){return e.y??0}function Xp({source:e,target:t}){const r=new cl(Bh(e),jh(e)),o=new cl(Bh(t),jh(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 L1({center:e,node:t}){const r=new cl(Bh(t),jh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new cl(0,1))),{n:r,c:o}}function M1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=Xp({source:t,target:r});return{start:o.add(c.multiply(So(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function hme(e){const{start:t,end:r}=M1(e);return`M${t.x},${t.y}
47
+ L${r.x},${r.y}`}function pme(e){const{start:t,end:r}=M1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function gme({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=Xp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(So(e,t)-1).add(o),m=d.rotateByDegrees(h).multiply(So(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*c;return`M${p.x},${p.y}
48
+ A${v},${v},0,0,1,${m.x},${m.y}`}function mme({center:e,config:t,node:r}){const{n:o,c:s}=L1({center:e,node:r}),c=So(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),m=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
49
+ A${c},${c},0,1,0,${m.x},${m.y}`}function vme({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=Xp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function yme({center:e,config:t,node:r}){const{n:o,c:s}=L1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*So(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Qs={line:{labelTransform:pme,path:hme},arc:{labelTransform:vme,path:gme},reflexive:{labelTransform:yme,path:mme}};function bme(e){return e.append("g").classed("links",!0).selectAll("path")}function wme({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>Qge(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>eme(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 xme(e){kme(e),_me(e)}function kme({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?Qs.reflexive.path({config:t,node:s.source,center:e}):N1(r,s.source,s.target)?Qs.arc.path({config:t,source:s.source,target:s.target}):Qs.line.path({config:t,source:s.source,target:s.target}))}function _me({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?Qs.reflexive.labelTransform({config:e,node:s.source,center:t}):N1(r,s.source,s.target)?Qs.arc.labelTransform({config:e,source:s.source,target:s.target}):Qs.line.labelTransform({config:e,source:s.source,target:s.target}))}function N1(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 Sme(e){return e.append("defs").selectAll("marker")}function Tme({config:e,graph:t,selection:r}){return r?.data(Cme(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>C1(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",Eme(e.marker.path)),s})}function Cme(e){return[...new Set(e.links.map(t=>t.color))]}function Eme(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 Ame(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Lme({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 m=p.append("circle").classed("node",!0).attr("r",b=>So(e,b)).on("contextmenu",(b,w)=>{S1(b),o(w)}).on("pointerdown",(b,w)=>Nme(b,w,s??o)).style("fill",b=>b.color);e.modifiers.node?.(m);const v=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?.(v),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const Mme=500;function Nme(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>Mme){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function $me(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Ome({center:e,config:t,graph:r,onTick:o}){const s=Uge(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",Gge(()=>e().x).strength(p)).force("y",Kge(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",Vge().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",Rge().radius(p=>d.radiusMultiplier*So(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Dge(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 Pme({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=mge().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 Rme=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(zfe(()=>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 cl.of([this.width,this.height]).divide(2).subtract(cl.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(T1(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=Tme({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=wme({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Lme({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=Ome({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=Pme({config:this.config,canvasContainer:()=>Xn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=sme({applyZoom:this.scale!==1,container:Xn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=bme(this.canvas),this.nodeSelection=Ame(this.canvas),this.markerSelection=Sme(this.canvas),this.drag=ame({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(){$me(this.nodeSelection),xme({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Xn(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(){lme({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=cme({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function Cy({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Ime(e){return{...e}}function Yp(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Ey(e){const t=e.map(o=>wx(o)),r=IL(t);return t.map(({raw:o,id:s,splitted:c})=>Yp({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:s.includes("node_modules")?r.get(o)??o:c[c.length-1]},isFocused:!1,id:s,type:"external"}))}function Dme(e,t){return Yp({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 zme(e,t){if(!e)return Cy({});const r=_t.value.experimental?.viteModuleRunner?Ey(e.externalized):Ey([...e.inlined,...e.externalized]),o=_t.value.experimental?.viteModuleRunner?e.inlined.map(d=>Dme(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 m=c[d],v=c[p];if(!(m===void 0||v===void 0))return Ime({source:m,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return Cy({nodes:s,links:f})}const Fme={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Hme={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Bme={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},jme={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Wme={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},qme={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},$1=et({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Qn("tooltip");return e.state==="pass"?(ne(),me("div",Fme)):e.failedSnapshot?st((ne(),me("div",Hme,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(ne(),me("div",Bme)):e.mode==="todo"?st((ne(),me("div",jme,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?st((ne(),me("div",Wme,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ne(),me("div",qme))}}}),Ume={border:"b base","p-4":""},Vme=["innerHTML"],Gme=et({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ne(),me("div",Ume,[X("div",{"text-xs":"","mb-1":"",class:it(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Oe(t(e.time))+" | "+Oe(e.taskName)+" | "+Oe(e.type),3),X("pre",{"data-type":"html",innerHTML:e.content},null,8,Vme)]))}}),Kme={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Xme={key:1,p6:""},Yme=et({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Kx.value;if(o){const s=Op(xo.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ga(h))}))}});function r(o){const s=o&&ft.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?bL(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(ne(),me("div",Kme,[(ne(!0),me(tt,null,yn(t.value,({taskId:c,type:f,time:d,content:h})=>(ne(),me("div",{key:c,"font-mono":""},[Le(Gme,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(ne(),me("div",Xme,[...s[0]||(s[0]=[Je(" Log something in your test and it would print here. (e.g. ",-1),X("pre",{inline:""},"console.log(foo)",-1),Je(") ",-1)])]))}}),O1={"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(O1);var gr=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)},Ds,ia,Uo;class Zme{constructor(...t){Ds.set(this,new Map),ia.set(this,new Map),Uo.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()),gr(this,Uo,"f").has(o)||gr(this,Uo,"f").set(o,new Set);const c=gr(this,Uo,"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&&gr(this,ia,"f").set(o,d),f=!1,h)continue;const p=gr(this,Ds,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);gr(this,Ds,"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:gr(this,Ds,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&gr(this,ia,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:gr(this,Uo,"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 gr(this,Uo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:gr(this,Ds,"f"),extensions:gr(this,ia,"f")}}}Ds=new WeakMap,ia=new WeakMap,Uo=new WeakMap;const Jme=new Zme(O1)._freeze();function fl(e){const t=e.contentType??"application/octet-stream";return e.path?ar?`./data/${cL(e.path)}`:`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function P1(e,t){const r=t?Jme.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function R1(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Wh(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:fl(e)}const hu=et({__name:"CodeMirrorContainer",props:ka({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:ka(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=cf(e,"modelValue"),s=yT(),c={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",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 Ii(async()=>{const d=tue(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.on("refresh",()=>{r("codemirror",d)}),d.on("change",()=>{r("codemirror",d)}),d.setSize("100%","100%"),d.clearHistory(),Pn.value=d,setTimeout(()=>Pn.value?.refresh(),100)}),(d,h)=>(ne(),me("div",{relative:"","font-mono":"","text-sm":"",class:it(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[X("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Qme=et({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ve(""),c=Wt(void 0),f=Ve(!1),d=Ve(!0),h=Ve(!1),p=Ve();vt(()=>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 ft.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Q){console.error("cannot fetch file",Q)}await Ct(),d.value=!1}},{immediate:!0}),vt(()=>[d.value,h.value,r.file,Ix.value,Dx.value],([Q,K,G,P,$])=>{!Q&&!K&&(P!=null?Ct(()=>{const S=p.value,k=S??{line:(P??1)-1,ch:$??0};S?p.value=void 0:(Pn.value?.scrollIntoView(k,100),Ct(()=>{Pn.value?.focus(),Pn.value?.setCursor(k)}))}):Ct(()=>{Pn.value?.focus()}))},{flush:"post"});const m=ke(()=>r.file?.filepath?.split(/\./g).pop()||"js"),v=Ve(),b=ke(()=>{const Q=[];function K(G){G.result?.errors&&Q.push(...G.result.errors),G.type==="suite"&&G.tasks.forEach(K)}return r.file?.tasks.forEach(K),Q}),w=ke(()=>{const Q=[];function K(G){G.type==="test"&&Q.push(...G.annotations),G.type==="suite"&&G.tasks.forEach(K)}return r.file?.tasks.forEach(K),Q}),O=[],A=[],N=[],L=Ve(!1);function R(){N.forEach(([Q,K,G])=>{Q.removeEventListener("click",K),G()}),N.length=0}tx(v,()=>{Pn.value?.refresh()});function z(){f.value=c.value!==Pn.value.getValue()}vt(f,Q=>{o("draft",Q)},{immediate:!0});function C(Q){const G=(Q?.stacks||[]).filter(M=>M.file&&M.file===r.file?.filepath)?.[0];if(!G)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const $=document.createElement("pre");$.className="c-red-600 dark:c-red-400",$.textContent=`${" ".repeat(G.column)}^ ${Q.name}: ${Q?.message||""}`,P.appendChild($);const S=document.createElement("span");S.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",S.tabIndex=0,S.ariaLabel="Open in Editor",Fw(S,{content:"Open in Editor",placement:"bottom"},!1);const k=async()=>{await $p(G.file,G.line,G.column)};S.addEventListener("click",k),P.appendChild(S),N.push([S,k,()=>xp(S)]),A.push(Pn.value.addLineClass(G.line-1,"wrap","bg-red-500/10")),O.push(Pn.value.addLineWidget(G.line-1,P))}function I(Q){if(!Q.location)return;const{line:K,file:G}=Q.location;if(G!==r.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const $=document.createElement("div");$.classList.add("block","text-black","dark:text-white");const S=document.createElement("span");S.textContent=`${Q.type}: `,S.classList.add("font-bold");const k=document.createElement("span");k.classList.add("whitespace-pre"),k.textContent=Q.message.replace(/[^\r]\n/,`\r
50
+ `),$.append(S,k),P.append($);const M=Q.attachment;if(M?.path||M?.body)if(M.contentType?.startsWith("image/")){const B=document.createElement("a"),Y=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const ve=M.path||M.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(Y.setAttribute("src",ve),B.referrerPolicy="no-referrer"):Y.setAttribute("src",fl(M)),B.target="_blank",B.href=Y.src,B.append(Y),P.append(B)}else{const B=document.createElement("a");B.href=fl(M),B.download=P1(Q.message,M.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const Y=document.createElement("div");Y.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",B.append(Y,ve),P.append(B)}O.push(Pn.value.addLineWidget(K-1,P))}const{pause:W,resume:Z}=vt([Pn,b,w,Fs],([Q,K,G,P])=>{if(!Q){O.length=0,A.length=0,R();return}P&&(Q.off("changes",z),R(),O.forEach($=>$.clear()),A.forEach($=>Q?.removeLineClass($,"wrap")),O.length=0,A.length=0,setTimeout(()=>{K.forEach(C),G.forEach(I),L.value||Q.clearHistory(),Q.on("changes",z)},100))},{flush:"post"});Vw(()=>[Fs.value,h.value,p.value],([Q,K],G)=>{Q&&!K&&G&&G[2]&&Pn.value?.setCursor(G[2])},{debounce:100,flush:"post"});async function se(Q){if(h.value)return;W(),h.value=!0,await Ct();const K=Pn.value;K&&(K.setOption("readOnly",!0),await Ct(),K.refresh()),p.value=K?.getCursor(),K?.off("changes",z),R(),O.forEach(G=>G.clear()),A.forEach(G=>K?.removeLineClass(G,"wrap")),O.length=0,A.length=0;try{L.value=!0,await ft.rpc.saveTestFile(r.file.filepath,Q),c.value=Q,f.value=!1}catch(G){console.error("error saving file",G)}L.value||K?.clearHistory();try{await a0(Fs).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await a0(Fs).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(C),w.value.forEach(I),K?.on("changes",z),h.value=!1,await Ct(),K&&(K.setOption("readOnly",!1),await Ct(),K.refresh()),Z()}return Va(R),(Q,K)=>(ne(),qe(hu,Qr({ref_key:"editor",ref:v,modelValue:s.value,"onUpdate:modelValue":K[0]||(K[0]=G=>s.value=G),"h-full":""},{lineNumbers:!0,readOnly:q(ar)||!q(_t).api?.allowWrite,saving:h.value},{mode:m.value,"data-testid":"code-mirror",onSave:se}),null,16,["modelValue","mode"]))}}),I1=et({__name:"Modal",props:ka({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=cf(e,"modelValue"),r=ke(()=>{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=ke(()=>{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)=>(ne(),me("div",{class:it(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[X("div",{class:it(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),X("div",{class:it(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:Ot(t.value?{}:{transform:o.value})},[zt(c.$slots,"default")],6)],2))}}),eve={class:"overflow-auto max-h-120"},tve={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},nve=["onClick"],rve=et({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const r=t,o=ke(()=>{const f=yr.value?.importDurations,d=_t.value.root;if(!f||!d)return[];const h=[];for(const p in f){const m=f[p],v=m.external?DL(p):bf(d,p);h.push({importedFile:p,relativeFile:s(v),selfTime:m.selfTime,totalTime:m.totalTime,formattedSelfTime:Vo(m.selfTime),formattedTotalTime:Vo(m.totalTime),selfTimeClass:Ru(m.selfTime),totalTimeClass:Ru(m.totalTime),external:m.external})}return h.sort((p,m)=>m.totalTime-p.totalTime)});function s(c){return c.length<=45?c:`...${c.slice(-45)}`}return(c,f)=>(ne(),me("div",eve,[f[1]||(f[1]=X("h1",{"my-2":"","mx-4":""},[Je(" Import Duration Breakdown "),X("span",{"op-70":""},"(ordered by Total Time)")],-1)),X("table",tve,[f[0]||(f[0]=X("thead",null,[X("tr",null,[X("th",null," Module "),X("th",null," Self "),X("th",null," Total "),X("th",null," % ")])],-1)),X("tbody",null,[(ne(!0),me(tt,null,yn(o.value,d=>(ne(),me("tr",{key:d.importedFile},[X("td",{class:"cursor-pointer pr-2",style:Ot({color:d.external?"var(--color-node-external)":void 0}),onClick:h=>r("select",d.importedFile,d.external?"external":"inline")},Oe(d.relativeFile),13,nve),X("td",{"pr-2":"",class:it(d.selfTimeClass)},Oe(d.formattedSelfTime),3),X("td",{"pr-2":"",class:it(d.totalTimeClass)},Oe(d.formattedTotalTime),3),X("td",{"pr-2":"",class:it(d.totalTimeClass)},Oe(Math.round(d.totalTime/o.value[0].totalTime*100))+"% ",3)]))),128))])])]))}}),Ps=et({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,r)=>(ne(),me("span",{class:it(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[zt(t.$slots,"default")],2))}}),ive={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},ove={"p-4":"",relative:""},sve={flex:"","justify-between":""},lve={"mr-8":"",flex:"","gap-2":"","items-center":""},ave={op50:"","font-mono":"","text-sm":""},cve={key:0,"p-5":""},uve={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},fve={key:0},dve={p:"x3 y-1","bg-overlay":"",border:"base b t"},hve=et({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const r=e,o=t,s=QE(()=>{if(yr.value?.id){if(r.type==="inline")return ft.rpc.getTransformResult(r.projectName,r.id,yr.value.id,!!cr);if(r.type==="external")return ft.rpc.getExternalResult(r.id,yr.value.id)}}),c=ke(()=>{const z=yr.value?.importDurations||{};return z[r.id]||z[lL("/@fs/",r.id)]||{}}),f=ke(()=>r.id?.split(/\./g).pop()||"js"),d=ke(()=>s.value?.source?.trim()||""),h=ke(()=>!s.value||!("code"in s.value)||!_t.value.experimental?.fsModuleCache?void 0:s.value.code.lastIndexOf("vitestCache=")!==-1),p=ke(()=>!s.value||!("code"in s.value)?null:s.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),m=ke(()=>!s.value||!("map"in s.value)?{mappings:""}:{mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}),v=[],b=[],w=[];function O(z,C){const I=z.coordsChar({left:C.clientX,top:C.clientY}),W=z.findMarksAt(I);if(W.length!==1)return;const Z=W[0].title;if(Z){const se=W[0].attributes?.["data-external"]==="true"?"external":"inline";o("select",Z,se)}}function A(z){const C=document.createElement("div");C.classList.add("mb-5");const I=_t.value.root;if(I)return z.forEach(({resolvedId:W,totalTime:Z,external:se})=>{const Q=document.createElement("div");Q.append(document.createTextNode("import "));const K=document.createElement("span"),G=bf(I,W);K.textContent=`"/${G}"`,K.className="hover:underline decoration-gray cursor-pointer select-none",Q.append(K),K.addEventListener("click",()=>{o("select",W,se?"external":"inline")});const P=document.createElement("span");P.textContent=` ${Vo(Z)}`;const $=Ru(Z);$&&P.classList.add($),Q.append(P),C.append(Q)}),C}function N(z){const C=document.createElement("div");C.className="flex ml-2",C.textContent=Vo(z);const I=Ru(z);return I&&C.classList.add(I),C}function L(z){if(w.forEach(C=>C.clear()),w.length=0,v.forEach(C=>C.remove()),v.length=0,b.forEach(C=>C.clear()),b.length=0,s.value&&"modules"in s.value){z.off("mousedown",O),z.on("mousedown",O);const C=s.value.untrackedModules;if(C?.length){const I=A(C);if(!I)return;v.push(I),w.push(z.addLineWidget(0,I,{above:!0}))}s.value.modules?.forEach(I=>{const W={line:I.start.line-1,ch:I.start.column},Z={line:I.end.line-1,ch:I.end.column},se=z.markText(W,Z,{title:I.resolvedId,attributes:{"data-external":String(I.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});b.push(se);const Q=N(I.totalTime+(I.transformTime||0));C?.length||Q.classList.add("-mt-5"),v.push(Q),z.addWidget({line:I.end.line-1,ch:I.end.column+1},Q,!1)})}}function R(){o("back")}return Xw("Escape",()=>{o("close")}),(z,C)=>{const I=Qn("tooltip");return ne(),me("div",ive,[X("div",ove,[X("div",sve,[X("p",null,[e.canUndo?st((ne(),qe(kt,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:C[0]||(C[0]=W=>R())},null,512)),[[I,"Go Back",void 0,{bottom:!0}]]):ze("",!0),C[7]||(C[7]=Je(" Module Info ",-1)),Le(q(so),{class:"inline","cursor-help":""},{popper:je(()=>[Je(" This is module is "+Oe(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(ne(),me(tt,{key:0},[Je(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(ne(),me(tt,{key:1},[Je(" It means that the module was processed by Vite plugins. ")],64))]),default:je(()=>[Le(Ps,{type:"custom","ml-1":"",style:Ot({backgroundColor:`var(--color-node-${e.type})`})},{default:je(()=>[Je(Oe(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(ne(),qe(q(so),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[...C[4]||(C[4]=[Je(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:je(()=>[Le(Ps,{type:"tip","ml-2":""},{default:je(()=>[...C[3]||(C[3]=[Je(" cached ",-1)])]),_:1})]),_:1})):ze("",!0),h.value===!1?(ne(),qe(q(so),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[...C[6]||(C[6]=[X("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),X("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:je(()=>[Le(Ps,{type:"warning","ml-2":""},{default:je(()=>[...C[5]||(C[5]=[Je(" not cached ",-1)])]),_:1})]),_:1})):ze("",!0)]),X("div",lve,[c.value.selfTime!=null&&c.value.external!==!0?(ne(),qe(q(so),{key:0,class:"inline","cursor-help":""},{popper:je(()=>[Je(" It took "+Oe(q(Fd)(c.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:je(()=>[Le(Ps,{type:q(su)(c.value.selfTime)},{default:je(()=>[Je(" self: "+Oe(q(Vo)(c.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):ze("",!0),c.value.totalTime!=null?(ne(),qe(q(so),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[Je(" It took "+Oe(q(Fd)(c.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:je(()=>[Le(Ps,{type:q(su)(c.value.totalTime)},{default:je(()=>[Je(" total: "+Oe(q(Vo)(c.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):ze("",!0),q(s)&&"transformTime"in q(s)&&q(s).transformTime?(ne(),qe(q(so),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[Je(" It took "+Oe(q(Fd)(q(s).transformTime))+" to transform this module by Vite plugins. ",1)]),default:je(()=>[Le(Ps,{type:q(su)(q(s).transformTime)},{default:je(()=>[Je(" transform: "+Oe(q(Vo)(q(s).transformTime)),1)]),_:1},8,["type"])]),_:1})):ze("",!0)])]),X("p",ave,Oe(e.id),1),Le(kt,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:C[1]||(C[1]=W=>o("close"))})]),q(s)?(ne(),me(tt,{key:1},[X("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:it({"cols-2":p.value!=null})},[C[8]||(C[8]=X("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(ne(),me("div",uve," Transformed ")):ze("",!0),(ne(),qe(hu,Qr({key:e.id,"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:f.value,onCodemirror:C[2]||(C[2]=W=>L(W))}),null,16,["model-value","mode"])),p.value!=null?(ne(),qe(hu,Qr({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):ze("",!0)],2),m.value.mappings!==""?(ne(),me("div",fve,[X("div",dve," Source map (v"+Oe(m.value.version)+") ",1),Le(hu,Qr({"model-value":m.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):ze("",!0)],64)):(ne(),me("div",cve," No transform result found for this module. "))])}}}),pve={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},gve={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},mve={flex:"~ gap-1","items-center":"","select-none":""},vve={class:"pr-2"},yve=["id","checked","onChange"],bve=["for"],wve={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},xve=et({__name:"ViewModuleGraph",props:ka({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=cf(e,"modelValue"),{graph:o}=HS(t),s=Ve(),c=Ve(!1),f=Ve(),d=vA(f),h=Ve(),p=Ve(null),m=Wt(o.value),v=ke(()=>{let G="";const P=yr.value?.importDurations,$=_t.value.experimental?.importDurations.thresholds;if(!P||!$)return G;for(const S in P){const{totalTime:k}=P[S];if(k>=$.danger){G="text-red";break}else k>=$.warn&&(G="text-orange")}return G}),b=Ve(v.value==="text-red");Ii(()=>{m.value=A(o.value,null,2),Z()}),Ga(()=>{h.value?.shutdown()}),vt(o,()=>{m.value=A(o.value,p.value,2),Z()});function w(){m.value=o.value,Z()}function O(){b.value=!b.value}function A(G,P,$=2){if(!G.nodes.length||G.nodes.length<=50)return G;const S=new Map;G.nodes.forEach(Ae=>S.set(Ae.id,new Set)),G.links.forEach(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),Ue=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);S.get(Ke)?.add(Ue),S.get(Ue)?.add(Ke)});let k;if(P)k=[P];else{const Ae=new Set(G.links.map(Ue=>typeof Ue.target=="object"?Ue.target.id:String(Ue.target))),Ke=G.nodes.filter(Ue=>Ue.type==="inline"&&!Ae.has(Ue.id));k=Ke.length>0?[Ke[0].id]:[G.nodes[0].id]}const M=new Set,B=k.map(Ae=>({id:Ae,level:0}));for(;B.length>0;){const{id:Ae,level:Ke}=B.shift();M.has(Ae)||Ke>$||(M.add(Ae),Ke<$&&(S.get(Ae)||new Set).forEach(He=>{M.has(He)||B.push({id:He,level:Ke+1})}))}const Y=new Map(G.nodes.map(Ae=>[Ae.id,Ae])),ve=Array.from(M).map(Ae=>Y.get(Ae)).filter(Ae=>Ae!==void 0),_e=new Map(ve.map(Ae=>[Ae.id,Ae])),Be=G.links.map(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),Ue=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);if(M.has(Ke)&&M.has(Ue)){const He=_e.get(Ke),Pe=_e.get(Ue);if(He&&Pe)return{...Ae,source:He,target:Pe}}return null}).filter(Ae=>Ae!==null);return{nodes:ve,links:Be}}function N(G,P){h.value?.filterNodesByType(P,G)}function L(G,P){f.value={id:G,type:P},c.value=!0}function R(){d.undo()}function z(){c.value=!1,d.clear()}function C(G){p.value=G,m.value=A(o.value,G,2),W(),Z()}function I(){p.value=null,m.value=A(o.value,null,2),W(),Z()}function W(){const G=m.value.nodes.map(S=>{let k,M;return S.id===p.value?(k="var(--color-node-focused)",M="var(--color-node-focused)"):S.type==="inline"?(k=S.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",M=k):(k="var(--color-node-external)",M="var(--color-node-external)"),Yp({...S,color:k,label:S.label?{...S.label,color:M}:S.label})}),P=new Map(G.map(S=>[S.id,S])),$=m.value.links.map(S=>{const k=typeof S.source=="object"?S.source.id:String(S.source),M=typeof S.target=="object"?S.target.id:String(S.target);return{...S,source:P.get(k),target:P.get(M)}});m.value={nodes:G,links:$}}function Z(G=!1){if(h.value?.shutdown(),G&&!r.value){r.value=!0;return}if(!m.value||!s.value)return;const P=m.value.nodes.length;let $=1,S=.5;P>300?($=.3,S=.2):P>200?($=.4,S=.3):P>100?($=.5,S=.3):P>50&&($=.7,$=.4),h.value=new Rme(s.value,m.value,ome({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:k,newWidth:M})=>k===0&&M===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:E1.Arrow(2),modifiers:{node:K},positionInitializer:o.value.nodes.length===1?Hh.Centered:Hh.Randomized,zoom:{initial:$,min:S,max:1.5}}))}const se=G=>G.button===0,Q=G=>G.button===2;function K(G){if(ar)return;let P=0,$=0,S=0,k=!1;G.on("pointerdown",(M,B)=>{!B.x||!B.y||(k=Q(M),!(!se(M)&&!k)&&(P=B.x,$=B.y,S=Date.now()))}).on("pointerup",(M,B)=>{if(!B.x||!B.y)return;const Y=Q(M);if(!se(M)&&!Y||Date.now()-S>500)return;const ve=B.x-P,_e=B.y-$;ve**2+_e**2<100&&(!Y&&!M.shiftKey?L(B.id,B.type):(Y||M.shiftKey)&&(M.preventDefault(),B.type==="inline"&&C(B.id)))}).on("contextmenu",M=>{M.preventDefault()})}return(G,P)=>{const $=Qn("tooltip");return ne(),me("div",pve,[X("div",null,[X("div",gve,[X("div",mve,[X("div",vve,Oe(m.value.nodes.length)+"/"+Oe(q(o).nodes.length)+" "+Oe(m.value.nodes.length===1?"module":"modules"),1),st(X("input",{id:"hide-node-modules","onUpdate:modelValue":P[0]||(P[0]=S=>r.value=S),type:"checkbox"},null,512),[[vw,r.value]]),P[9]||(P[9]=X("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))]),(ne(!0),me(tt,null,yn(h.value?.nodeTypes.sort(),S=>(ne(),me("div",{key:S,flex:"~ gap-1","items-center":"","select-none":""},[X("input",{id:`type-${S}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(S),onChange:k=>N(S,k.target.checked)},null,40,yve),X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${S}`,"border-b-2":"",style:Ot({"border-color":`var(--color-node-${S})`})},Oe(S)+" Modules",13,bve)]))),128)),P[10]||(P[10]=X("div",{"flex-auto":""},null,-1)),P[11]||(P[11]=X("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[X("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),X("div",null,[st(Le(kt,{icon:"i-carbon-notebook",class:it(v.value),onClick:P[1]||(P[1]=S=>O())},null,8,["class"]),[[$,`${b.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),X("div",null,[st(Le(kt,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:P[2]||(P[2]=S=>w())},null,512),[[$,"Show Full Graph",void 0,{bottom:!0}]])]),X("div",null,[st(Le(kt,{icon:"i-carbon-reset",onClick:P[3]||(P[3]=S=>I())},null,512),[[$,"Reset",void 0,{bottom:!0}]])])])]),b.value?(ne(),me("div",wve,[Le(rve,{onSelect:P[4]||(P[4]=(S,k)=>L(S,k))})])):ze("",!0),X("div",{ref_key:"el",ref:s},null,512),Le(I1,{modelValue:c.value,"onUpdate:modelValue":P[8]||(P[8]=S=>c.value=S),direction:"right"},{default:je(()=>[f.value?(ne(),qe(WT,{key:0},{default:je(()=>[Le(hve,{id:f.value.id,"project-name":e.projectName,type:f.value.type,"can-undo":q(d).undoStack.value.length>1,onClose:P[5]||(P[5]=S=>z()),onSelect:P[6]||(P[6]=(S,k)=>L(S,k)),onBack:P[7]||(P[7]=S=>R())},null,8,["id","project-name","type","can-undo"])]),_:1})):ze("",!0)]),_:1},8,["modelValue"])])}}}),kve={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},_ve={"p-4":"",relative:"",border:"base b"},Sve={op50:"","font-mono":"","text-sm":""},Tve={op50:"","font-mono":"","text-sm":""},Cve={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Eve=["src","alt"],Ave={key:1},Lve=et({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Xw("Escape",()=>{r("close")}),(o,s)=>(ne(),me("div",kve,[X("div",_ve,[s[1]||(s[1]=X("p",null,"Screenshot error",-1)),X("p",Sve,Oe(e.file),1),X("p",Tve,Oe(e.name),1),Le(kt,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),X("div",Cve,[e.url?(ne(),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,Eve)):(ne(),me("div",Ave," Something was wrong, the image cannot be resolved. "))])]))}}),Mve=Di(Lve,[["__scopeId","data-v-08ce44b7"]]),Nve={flex:"~ gap-2 items-center"},D1=et({__name:"FailureScreenshot",props:{task:{}},setup(e){const t=Ve(!1),r=ke(()=>{if(e.task.type==="test"){const c=e.task.artifacts.find(f=>f.type==="internal:failureScreenshot");if(c!==void 0)return c}return null}),o=ke(()=>r.value&&r.value.attachments.length&&fl(r.value.attachments[0]));function s(){if(r.value===null||r.value.attachments.length===0)return;const c=r.value.attachments[0].originalPath;fetch(`/__open-in-editor?file=${encodeURIComponent(c)}`)}return(c,f)=>{const d=Qn("tooltip");return o.value?(ne(),me(tt,{key:0},[X("div",Nve,[st(Le(kt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:f[0]||(f[0]=h=>t.value=!0)},null,512),[[d,"View screenshot error",void 0,{bottom:!0}]]),q(ar)?ze("",!0):st((ne(),qe(kt,{key:0,class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:s},null,512)),[[d,"Open screenshot error in editor",void 0,{bottom:!0}]])]),(ne(),qe(I1,{key:o.value,modelValue:t.value,"onUpdate:modelValue":f[2]||(f[2]=h=>t.value=h),direction:"right"},{default:je(()=>[Le(Mve,{file:e.task.file.filepath,name:e.task.name,url:o.value,onClose:f[1]||(f[1]=h=>t.value=!1)},null,8,["file","name","url"])]),_:1},8,["modelValue"]))],64)):ze("",!0)}}}),$ve={class:"scrolls scrolls-rounded task-error"},Ove=["onClickPassive"],Pve=["innerHTML"],Rve=et({__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=ke(()=>Op(xo.value)),s=ke(()=>!!t.error?.diff),c=ke(()=>t.error.diff?o.value.toHtml(ga(t.error.diff)):void 0);function f(d){return Gce(d.file,t.filename)?nue(t.fileId,d):$p(d.file,d.line,d.column)}return(d,h)=>{const p=Qn("tooltip");return ne(),me("div",$ve,[X("pre",null,[X("b",null,Oe(e.error.name),1),Je(": "+Oe(e.error.message),1)]),(ne(!0),me(tt,null,yn(e.error.stacks,(m,v)=>(ne(),me("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[X("pre",null," - "+Oe(r(m.file))+":"+Oe(m.line)+":"+Oe(m.column),1),st(X("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(m)},null,40,Ove),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(ne(),me("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,Pve)):ze("",!0)])}}}),z1=Di(Rve,[["__scopeId","data-v-1fcfe7a4"]]),Ive={"h-full":"",class:"scrolls"},Dve=["id"],zve={flex:"~ gap-2 items-center"},Fve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Hve=["innerHTML"],Bve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},jve=et({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(s,c){return s.result?.state!=="fail"?[]:s.type==="test"?[{...s,level:c}]:[{...s,level:c},...s.tasks.flatMap(f=>r(f,c+1))]}const o=ke(()=>{const s=t.file,c=s.tasks?.flatMap(h=>r(h,0))??[],f=s.result;if(f?.errors?.[0]){const h={id:s.id,file:s,name:s.name,fullName:s.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:f};c.unshift(h)}return c.length>0?Rx(xo.value,c):c});return(s,c)=>(ne(),me("div",Ive,[o.value.length?(ne(!0),me(tt,{key:0},yn(o.value,f=>(ne(),me("div",{id:f.id,key:f.id},[X("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Ot({"margin-left":`${f.result?.htmlError?.5:2*f.level+.5}rem`})},[X("div",zve,[X("span",null,Oe(f.name),1),Le(D1,{task:f},null,8,["task"])]),f.result?.htmlError?(ne(),me("div",Fve,[X("pre",{innerHTML:f.result.htmlError},null,8,Hve)])):f.result?.errors&&q(_t).root?(ne(!0),me(tt,{key:1},yn(f.result.errors,(d,h)=>(ne(),qe(z1,{key:h,error:d,filename:e.file.name,root:q(_t).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):ze("",!0)],4)],8,Dve))),128)):(ne(),me("div",Bve," All tests passed in this file "))]))}}),Wve=Di(jve,[["__scopeId","data-v-13572615"]]);function F1(e,t){return rue(e,t)}function Vu(e){const t=_t.value.root;return`${t?bf(t,e.file):e.file}:${e.line}:${e.column}`}const qve=["href","referrerPolicy"],Uve=["src"],Vve=et({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=ke(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:fl(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(ne(),me("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:q(R1)(e.annotation.attachment)?"no-referrer":void 0},[X("img",{src:r.value},null,8,Uve)],8,qve)):ze("",!0)}}),Gve={class:"flex flex-col gap-4"},Kve={key:0},Xve=et({__name:"ArtifactTemplate",setup(e){const t=Hb();return(r,o)=>(ne(),me("article",Gve,[X("h1",null,[zt(r.$slots,"title")]),q(t).message?(ne(),me("p",Kve,[zt(r.$slots,"message")])):ze("",!0),zt(r.$slots,"default")]))}}),H1=Symbol("tabContext"),Gu={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},Yve={class:"flex flex-col items-center gap-6"},Zve={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},Jve=["id","aria-selected","aria-controls","onClick"],Qve=et({__name:"SmallTabs",setup(e){const t=Ve(null),r=Ve([]),o=up();return mr(H1,{id:o,activeTab:t,registerTab:s=>{r.value.some(({id:c})=>c===s.id)||r.value.push(s),r.value.length===1&&(t.value=s.id)},unregisterTab:s=>{const c=r.value.findIndex(({id:f})=>f===s.id);c>-1&&r.value.splice(c,1),t.value===s.id&&(t.value=r.value[0]?.id??null)}}),(s,c)=>(ne(),me("div",Yve,[X("div",Zve,[(ne(!0),me(tt,null,yn(r.value,f=>(ne(),me("button",{id:q(Gu).tab(f.id,q(o)),key:f.id,role:"tab","aria-selected":t.value===f.id,"aria-controls":q(Gu).tabpanel(f.id,q(o)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:d=>t.value=f.id},Oe(f.title),9,Jve))),128))]),zt(s.$slots,"default")]))}}),e0e=["id","aria-labelledby","hidden"],Jc=et({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,r=mn(H1);if(!r)throw new Error("TabPane must be used within Tabs");const o=up(),s=ke(()=>r.activeTab.value===o);return Ii(()=>{r.registerTab({...t,id:o})}),Ga(()=>{r.unregisterTab({...t,id:o})}),(c,f)=>(ne(),me("div",{id:q(Gu).tabpanel(q(o),q(r).id),role:"tabpanel","aria-labelledby":q(Gu).tab(q(o),q(r).id),hidden:!s.value,class:"max-w-full"},[zt(c.$slots,"default")],8,e0e))}}),B1=et({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(r,o)=>(ne(),me("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Ot({backgroundImage:t})},[zt(r.$slots,"default")],4))}}),t0e=["href","referrerPolicy"],n0e=["src"],Xd=et({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=ke(()=>Wh(e.attachment));return(r,o)=>(ne(),qe(B1,null,{default:je(()=>[X("a",{target:"_blank",href:t.value,referrerPolicy:q(R1)(e.attachment)?"no-referrer":void 0},[X("img",{src:t.value},null,8,n0e)],8,t0e)]),_:1}))}}),r0e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},i0e=["src"],o0e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},s0e=["src"],l0e=["id"],a0e=["for"],c0e=et({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=ke(()=>Wh(e.reference)),r=ke(()=>Wh(e.actual)),o=ke(()=>Math.max(e.reference.width,e.actual.width)),s=ke(()=>Math.max(e.reference.height,e.actual.height)),c=Ve(50),f=up();return(d,h)=>(ne(),qe(B1,null,{default:je(()=>[X("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Ot({"--split":`${c.value}%`,aspectRatio:`${o.value} / ${s.value}`,width:`${o.value}px`})},[X("div",r0e,[X("img",{src:t.value},null,8,i0e)]),X("div",o0e,[X("img",{src:r.value},null,8,s0e)]),h[1]||(h[1]=X("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),st(X("input",{id:q(f),"onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,l0e),[[mw,c.value]]),X("output",{for:q(f),class:"sr-only"}," Showing "+Oe(c.value)+"% reference, "+Oe(100-c.value)+"% actual ",9,a0e)],4)]),_:1}))}}),u0e=et({__name:"VisualRegression",props:{regression:{}},setup(e){const t=ke(()=>({diff:e.regression.attachments.find(r=>r.name==="diff"),reference:e.regression.attachments.find(r=>r.name==="reference"),actual:e.regression.attachments.find(r=>r.name==="actual")}));return(r,o)=>(ne(),qe(Xve,null,{title:je(()=>[...o[0]||(o[0]=[Je(" Visual Regression ",-1)])]),message:je(()=>[Je(Oe(e.regression.message),1)]),default:je(()=>[Le(Qve,null,{default:je(()=>[t.value.diff?(ne(),qe(Jc,{key:t.value.diff.path,title:"Diff"},{default:je(()=>[Le(Xd,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):ze("",!0),t.value.reference?(ne(),qe(Jc,{key:t.value.reference.path,title:"Reference"},{default:je(()=>[Le(Xd,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):ze("",!0),t.value.actual?(ne(),qe(Jc,{key:t.value.actual.path,title:"Actual"},{default:je(()=>[Le(Xd,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):ze("",!0),t.value.reference&&t.value.actual?(ne(),qe(Jc,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:je(()=>[Le(c0e,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):ze("",!0)]),_:1})]),_:1}))}}),f0e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},d0e=["onClick"],h0e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},p0e=et({__name:"Artifacts",props:{test:{}},setup(e){const t=ke(()=>{const r=[];for(const o of e.test.artifacts)switch(o.type){case"internal:toMatchScreenshot":{o.kind==="visual-regression"&&r.push({artifact:o,component:u0e,props:{regression:o}});continue}}return r});return(r,o)=>{const s=Qn("tooltip");return t.value.length?(ne(),me(tt,{key:0},[o[0]||(o[0]=X("h1",{"m-2":""}," Test Artifacts ",-1)),(ne(!0),me(tt,null,yn(t.value,({artifact:c,component:f,props:d},h)=>(ne(),me("div",{key:c.type+h,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",f0e,[X("div",null,[c.location&&c.location.file===e.test.file.filepath?st((ne(),me("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>q(F1)(e.test,c.location)},[Je(Oe(q(Vu)(c.location)),1)],8,d0e)),[[s,"Open in Editor",void 0,{bottom:!0}]]):c.location&&c.location.file!==e.test.file.filepath?(ne(),me("span",h0e,Oe(q(Vu)(c.location)),1)):ze("",!0)])]),(ne(),qe(xu(f),Qr({ref_for:!0},d),null,16))]))),128))],64)):ze("",!0)}}}),g0e={"h-full":"",class:"scrolls"},m0e={key:0},v0e={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},y0e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},b0e=["innerHTML"],w0e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},x0e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},k0e={class:"flex gap-2","overflow-hidden":""},_0e={class:"font-bold","ws-nowrap":"",truncate:""},S0e=["href","download"],T0e=["onClick"],C0e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},E0e={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},A0e={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":""},L0e={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},M0e={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},N0e=et({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=ke(()=>!t.test.result||!t.test.result.errors?.length?null:Rx(xo.value,[t.test])[0]),o=new Set(["benchmark","typecheck"]),s=ke(()=>Object.entries(t.test.meta).filter(([c])=>!o.has(c)));return(c,f)=>{const d=Qn("tooltip");return ne(),me("div",g0e,[r.value?(ne(),me("div",m0e,[X("div",v0e,[Le(D1,{task:e.test},null,8,["task"]),e.test.result?.htmlError?(ne(),me("div",y0e,[X("pre",{innerHTML:e.test.result.htmlError},null,8,b0e)])):e.test.result?.errors&&q(_t).root?(ne(!0),me(tt,{key:1},yn(e.test.result.errors,(h,p)=>(ne(),qe(z1,{key:p,"file-id":e.test.file.id,error:h,filename:e.test.file.name,root:q(_t).root},null,8,["file-id","error","filename","root"]))),128)):ze("",!0)])])):(ne(),me("div",w0e," The test has passed without any errors ")),e.test.annotations.length?(ne(),me(tt,{key:2},[f[1]||(f[1]=X("h1",{"m-2":""}," Test Annotations ",-1)),(ne(!0),me(tt,null,yn(e.test.annotations,h=>(ne(),me("div",{key:h.type+h.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",x0e,[X("div",k0e,[X("span",_0e,Oe(h.type),1),h.attachment&&!h.attachment.contentType?.startsWith("image/")?(ne(),me("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:q(fl)(h.attachment),download:q(P1)(h.message,h.attachment.contentType)},[...f[0]||(f[0]=[X("span",{class:"i-carbon:download block"},null,-1),Je(" Download ",-1)])],8,S0e)):ze("",!0)]),X("div",null,[h.location&&h.location.file===e.test.file.filepath?st((ne(),me("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>q(F1)(e.test,h.location)},[Je(Oe(q(Vu)(h.location)),1)],8,T0e)),[[d,"Open in Editor",void 0,{bottom:!0}]]):h.location&&h.location.file!==e.test.file.filepath?(ne(),me("span",C0e,Oe(q(Vu)(h.location)),1)):ze("",!0)])]),X("div",E0e,Oe(h.message),1),Le(Vve,{annotation:h},null,8,["annotation"])]))),128))],64)):ze("",!0),Le(p0e,{test:e.test},null,8,["test"]),s.value.length?(ne(),me(tt,{key:3},[f[2]||(f[2]=X("h1",{"m-2":""}," Test Meta ",-1)),X("div",A0e,[(ne(!0),me(tt,null,yn(s.value,([h,p])=>(ne(),me(tt,{key:h},[X("div",L0e,Oe(h),1),X("pre",M0e,Oe(p),1)],64))),128))])],64)):ze("",!0)])}}}),$0e=Di(N0e,[["__scopeId","data-v-da767a0b"]]),O0e={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},P0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},R0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},I0e={"flex-1":"","font-light":"","overflow-hidden":"","text-sm":"",flex:""},D0e={"op-50":"",truncate:""},z0e=["title"],F0e={class:"flex text-lg"},H0e={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},B0e={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},j0e={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},W0e={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},q0e=["flex-1"],Ay=et({__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=ke(()=>Ti.value?ft.state.idMap.get(Ti.value):void 0),h=ke(()=>{const I=Gt.value;if(!(!I||!I.filepath))return{filepath:I.filepath,projectName:I.file.projectName||""}}),p=ke(()=>Gt.value&&Np(Gt.value)),m=ke(()=>!!Gt.value?.meta?.typecheck);function v(){const I=Gt.value?.filepath;I&&fetch(`/__open-in-editor?file=${encodeURIComponent(I)}`)}function b(I){I==="graph"&&(o.value=!0),gn.value=I}const w=ke(()=>Kx.value?.reduce((I,{size:W})=>I+W,0)??0);function O(I){r.value=I}const A=/[/\\]node_modules[/\\]/;async function N(I=!1){if(!(s.value||h.value?.filepath===c.value&&!I)){s.value=!0,await Ct();try{const W=h.value;if(!W){s.value=!1;return}if(I||!c.value||W.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let Z=await ft.rpc.getModuleGraph(W.projectName,W.filepath,!!cr);f.value&&(ar&&(Z=typeof window.structuredClone<"u"?window.structuredClone(Z):$L(Z)),Z.inlined=Z.inlined.filter(se=>!A.test(se)),Z.externalized=Z.externalized.filter(se=>!A.test(se))),t.value=zme(Z,W.filepath),c.value=W.filepath}b("graph")}finally{await new Promise(W=>setTimeout(W,100)),s.value=!1}}}Gw(()=>[h.value,gn.value,f.value],([,I,W],Z)=>{I==="graph"&&N(Z&&W!==Z[2])},{debounce:100,immediate:!0});const L=ke(()=>{const I=Gt.value?.file.projectName||"";return Me.colors.get(I)||lu(Gt.value?.file.projectName)}),R=ke(()=>xx(L.value)),z=ke(()=>{const I=Ti.value;if(!I)return Gt.value?.name;const W=[];let Z=ft.state.idMap.get(I);for(;Z;)W.push(Z.name),Z=Z.suite;return W.reverse().join(" > ")}),C=ke(()=>{const I=Ti.value;return I?(ft.state.idMap.get(I)?.tags||[]).map(Z=>({name:Z,description:YL.value[Z]?.description,bg:lu(Z,!0),border:lu(Z),text:"white"})):[]});return(I,W)=>{const Z=Qn("tooltip");return q(Gt)?(ne(),me("div",O0e,[X("div",null,[X("div",P0e,[Le($1,{state:q(Gt).result?.state,mode:q(Gt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),m.value?st((ne(),me("div",R0e,null,512)),[[Z,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):ze("",!0),q(Gt)?.file.projectName?(ne(),me("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Ot({backgroundColor:L.value,color:R.value}),"cursor-default":""},Oe(q(Gt).file.projectName),5)):ze("",!0),X("div",I0e,[X("span",D0e,Oe(z.value),1),(ne(!0),me(tt,null,yn(C.value,se=>st((ne(),me("span",{key:se.name,class:"rounded-full ml-2 px-2 text-xs font-light",style:Ot({backgroundColor:se.bg,color:se.text,border:`1px solid ${se.border}`}),title:se.description,"cursor-default":"",flex:"","items-center":""},[Je(Oe(se.name),1)],12,z0e)),[[Z,se.description,void 0,{bottom:!0}]])),128))]),X("div",F0e,[q(ar)?ze("",!0):st((ne(),qe(kt,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!q(Gt)?.filepath,onClick:v},null,8,["disabled"])),[[Z,"Open in editor",void 0,{bottom:!0}]]),q(cr)?(ne(),qe(kf,{key:1})):ze("",!0)])]),X("div",H0e,[X("button",{"tab-button":"",class:it(["flex items-center gap-2",{"tab-button-active":q(gn)==null}]),"data-testid":"btn-report",onClick:W[0]||(W[0]=se=>b(null))},[...W[5]||(W[5]=[X("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Je(" Report ",-1)])],2),X("button",{"tab-button":"","data-testid":"btn-graph",class:it(["flex items-center gap-2",{"tab-button-active":q(gn)==="graph"}]),onClick:W[1]||(W[1]=se=>b("graph"))},[s.value?(ne(),me("span",B0e)):(ne(),me("span",j0e)),W[6]||(W[6]=Je(" Module Graph ",-1))],2),X("button",{"tab-button":"","data-testid":"btn-code",class:it(["flex items-center gap-2",{"tab-button-active":q(gn)==="editor"}]),onClick:W[2]||(W[2]=se=>b("editor"))},[W[7]||(W[7]=X("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Je(" "+Oe(r.value?"* ":"")+"Code ",1)],2),X("button",{"tab-button":"","data-testid":"btn-console",class:it(["flex items-center gap-2",{"tab-button-active":q(gn)==="console",op20:q(gn)!=="console"&&w.value===0}]),onClick:W[3]||(W[3]=se=>b("console"))},[W[8]||(W[8]=X("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Je(" Console ("+Oe(w.value)+") ",1)],2)])]),X("div",W0e,[o.value?(ne(),me("div",{key:0,"flex-1":q(gn)==="graph"&&""},[st(Le(xve,{modelValue:f.value,"onUpdate:modelValue":W[4]||(W[4]=se=>f.value=se),graph:t.value,"data-testid":"graph","project-name":q(Gt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[fo,q(gn)==="graph"&&!s.value]])],8,q0e)):ze("",!0),q(gn)==="editor"?(ne(),qe(Qme,{key:q(Gt).id,file:q(Gt),"data-testid":"editor",onDraft:O},null,8,["file"])):q(gn)==="console"?(ne(),qe(Yme,{key:2,file:q(Gt),"data-testid":"console"},null,8,["file"])):!q(gn)&&!d.value&&q(Gt)?(ne(),qe(Wve,{key:3,file:q(Gt),"data-testid":"report"},null,8,["file"])):!q(gn)&&d.value?(ne(),qe($0e,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):ze("",!0)])])):ze("",!0)}}}),U0e=""+new URL("../favicon.svg",import.meta.url).href;function V0e(){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 pu;function qh(){qh.init||(qh.init=!0,pu=V0e()!==-1)}var Cf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){qh(),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",pu&&this.$el.appendChild(e),e.data="about:blank",pu||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&&(!pu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const G0e=Cb();Sb("data-v-b329ee4c");const K0e={class:"resize-observer",tabindex:"-1"};Tb();const X0e=G0e((e,t,r,o,s,c)=>(ne(),qe("div",K0e)));Cf.render=X0e;Cf.__scopeId="data-v-b329ee4c";Cf.__file="src/components/ResizeObserver.vue";function gu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gu=function(t){return typeof t}:gu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gu(e)}function Y0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z0e(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 J0e(e,t,r){return t&&Z0e(e.prototype,t),e}function Ly(e){return Q0e(e)||eye(e)||tye(e)||nye()}function Q0e(e){if(Array.isArray(e))return Uh(e)}function eye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function tye(e,t){if(e){if(typeof e=="string")return Uh(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 Uh(e,t)}}function Uh(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 nye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
51
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function iye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,m=new Array(p>1?p-1:0),v=1;v<p;v++)m[v-1]=arguments[v];if(c=m,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(Ly(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(Ly(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function j1(e,t){if(e===t)return!0;if(gu(e)==="object"){for(var r in e)if(!j1(e[r],t[r]))return!1;return!0}return!1}var oye=(function(){function e(t,r,o){Y0e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return J0e(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=rye(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=iye(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(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var m=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(m===s.oldResult)return;s.oldResult=m,s.callback(m,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 W1(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 oye(e,o,r);e._vue_visibilityState=s}}function sye(e,t,r){var o=t.value,s=t.oldValue;if(!j1(o,s)){var c=e._vue_visibilityState;if(!o){q1(e);return}c?c.createObserver(o,r):W1(e,{value:o},r)}}function q1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var lye={beforeMount:W1,updated:sye,unmounted:q1},aye={itemsLimit:1e3},cye=/(auto|scroll)/;function U1(e,t){return e.parentNode===null?t:U1(e.parentNode,t.concat([e]))}var Yd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},uye=function(t){return Yd(t,"overflow")+Yd(t,"overflow-y")+Yd(t,"overflow-x")},fye=function(t){return cye.test(uye(t))};function My(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=U1(e.parentNode,[]),r=0;r<t.length;r+=1)if(fye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function Vh(e){"@babel/helpers - typeof";return Vh=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},Vh(e)}var dye={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 hye(){return this.items.length&&Vh(this.items[0])!=="object"}var Gh=!1;if(typeof window<"u"){Gh=!1;try{var pye=Object.defineProperty({},"passive",{get:function(){Gh=!0}});window.addEventListener("test",null,pye)}catch{}}let gye=0;var Zp={name:"RecycleScroller",components:{ResizeObserver:Cf},directives:{ObserveVisibility:lye},props:{...dye,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:hye,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=rf({id:gye++,index:t,used:!0,key:o,type:s}),f=lp({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,m=this.sizes,v=this.$_views,b=this.$_unusedViews,w=this.pool,O=this.itemIndexByKey;let A,N,L,R,z;if(!p)A=N=R=z=L=0;else if(this.$_prerender)A=R=0,N=z=Math.min(this.prerender,h.length),L=null;else{const K=this.getScroll();if(t){let $=K.start-this.$_lastUpdateScrollPosition;if($<0&&($=-$),r===null&&$<c||$<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=K.start;const G=this.buffer;K.start-=G,K.end+=G;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,K.start-=P),this.$refs.after){const $=this.$refs.after.scrollHeight;K.end+=$}if(r===null){let $,S=0,k=p-1,M=~~(p/2),B;do B=M,$=m[M].accumulator,$<K.start?S=M:M<p-1&&m[M+1].accumulator>K.start&&(k=M),M=~~((S+k)/2);while(M!==B);for(M<0&&(M=0),A=M,L=m[p-1].accumulator,N=M;N<p&&m[N].accumulator<K.end;N++);for(N===-1?N=h.length-1:(N++,N>p&&(N=p)),R=A;R<p&&P+m[R].accumulator<K.start;R++);for(z=R;z<p&&P+m[z].accumulator<K.end;z++);}else{A=~~(K.start/r*o);const $=A%o;A-=$,N=Math.ceil(K.end/r*o),R=Math.max(0,Math.floor((K.start-P)/r*o)),z=Math.floor((K.end-P)/r*o),A<0&&(A=0),N>p&&(N=p),R<0&&(R=0),z>p&&(z=p),L=Math.ceil(p/o)*r}}N-A>aye.itemsLimit&&this.itemsLimitError(),this.totalSize=L;let C;const I=A<=this.$_endIndex&&N>=this.$_startIndex;if(I)for(let K=0,G=w.length;K<G;K++)C=w[K],C.nr.used&&(e&&(C.nr.index=O[C.item[d]]),(C.nr.index==null||C.nr.index<A||C.nr.index>=N)&&this.unuseView(C));const W=I?null:new Map;let Z,se,Q;for(let K=A;K<N;K++){Z=h[K];const G=d?Z[d]:Z;if(G==null)throw new Error(`Key is ${G} on item (keyField is '${d}')`);if(C=v.get(G),!r&&!m[K].size){C&&this.unuseView(C);continue}se=Z[f];let P=b.get(se),$=!1;if(!C)I?P&&P.length?C=P.pop():C=this.addView(w,K,Z,G,se):(Q=W.get(se)||0,(!P||Q>=P.length)&&(C=this.addView(w,K,Z,G,se),this.unuseView(C,!0),P=b.get(se)),C=P[Q],W.set(se,Q+1)),v.delete(C.nr.key),C.nr.used=!0,C.nr.index=K,C.nr.key=G,C.nr.type=se,v.set(G,C),$=!0;else if(!C.nr.used&&(C.nr.used=!0,$=!0,P)){const S=P.indexOf(C);S!==-1&&P.splice(S,1)}C.item=Z,$&&(K===h.length-1&&this.$emit("scroll-end"),K===0&&this.$emit("scroll-start")),r===null?(C.position=m[K-1].accumulator,C.offset=0):(C.position=Math.floor(K/o)*r,C.offset=K%o*s)}return this.$_startIndex=A,this.$_endIndex=N,this.emitUpdate&&this.$emit("update",A,N,R,z),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=My(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,Gh?{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=My(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 mye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},vye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function yye(e,t,r,o,s,c){const f=es("ResizeObserver"),d=Qn("observe-visibility");return st((ne(),me("div",{class:it(["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?(ne(),me("div",mye,[zt(e.$slots,"before")],512)):ze("v-if",!0),(ne(),qe(xu(r.listTag),{ref:"wrapper",style:Ot({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:it(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:je(()=>[(ne(!0),me(tt,null,yn(s.pool,h=>(ne(),qe(xu(r.itemTag),Qr({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}]]},mT(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:je(()=>[zt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),zt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(ne(),me("div",vye,[zt(e.$slots,"after")],512)):ze("v-if",!0),Le(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}Zp.render=yye;Zp.__file="src/components/RecycleScroller.vue";function bye(e,t,r){const o=ke(()=>Ch.value?!1:!ot.onlyTests),s=ke(()=>Or.value===""),c=Ve(Or.value),f=ke(()=>Nr.value==="default");vt(()=>Th.value,w=>{!w&&(Nr.value==="asc"||Nr.value==="desc")&&(Nr.value="default")}),Gw(()=>Or.value,w=>{c.value=w?.trim()??""},{debounce:256});function d(w){Or.value="",w&&e.value?.focus()}function h(w){ot.failed=!1,ot.success=!1,ot.skipped=!1,ot.onlyTests=!1,w&&e.value?.focus()}function p(w){Ks.value=gl,w&&t.value?.focus()}function m(w){Nr.value="default",w&&r.value?.focus()}function v(){h(!1),d(!0),p(!1),m(!1)}function b(w,O,A,N,L,R,z){ll.value&&(Kt.value.search=w?.trim()??"",Kt.value.failed=O,Kt.value.success=A,Kt.value.skipped=N,Kt.value.onlyTests=L,Kt.value.project=R,Kt.value.projectSort=z==="default"?void 0:z)}return vt(()=>[c.value,ot.failed,ot.success,ot.skipped,ot.onlyTests,Ks.value,Nr.value],([w,O,A,N,L,R,z])=>{b(w,O,A,N,L,R,z),Me.filterNodes()},{flush:"post"}),vt(()=>Hr.value.length,w=>{w&&(Kt.value.expandAll=void 0)},{flush:"post"}),{initialized:ll,filter:ot,search:Or,disableFilter:o,isFiltered:_x,isFilteredByStatus:Ch,disableClearSearch:s,clearAll:v,clearSearch:d,clearFilter:h,filteredFiles:wf,testsTotal:jL,uiEntries:Jn,searchMatcher:no,enableProjects:Th,disableClearProjects:zL,currentProject:Ks,currentProjectName:Ap,clearProject:p,projectSort:Nr,clearProjectSort:m,disableClearProjectSort:f}}const wye=["disabled"],xye={"flex-1":"","ms-2":"","select-none":""},Qc=et({__name:"FilterStatus",props:ka({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=cf(e,"modelValue");function r(){e.disabled||(t.value=!t.value)}return(o,s)=>(ne(),me("label",Qr({class:["font-light text-sm checkbox flex items-center py-1 text-sm w-full gap-y-1 mb-1px",e.disabled?"cursor-not-allowed op50":"cursor-pointer"]},o.$attrs,{onClick:iu(r,["prevent"])}),[X("span",{class:it([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),st(X("input",{"onUpdate:modelValue":s[0]||(s[0]=c=>t.value=c),type:"checkbox",disabled:e.disabled,"sr-only":""},null,8,wye),[[vw,t.value]]),X("span",xye,Oe(e.label),1)],16))}}),kye=["open"],_ye=et({__name:"ResultsPanel",props:{color:{}},setup(e){const t=Ve(!0);return(r,o)=>(ne(),me("div",{open:t.value,class:"results-panel","data-testid":"results-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[X("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:it(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),zt(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),zt(r.$slots,"default")],40,kye))}}),Sye={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Tye=et({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(ne(),me("button",Sye,[X("span",{block:"",class:it([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),Cye=["aria-label","data-current"],Eye={key:1,"w-4":""},Aye={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Lye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Mye={"text-sm":"",truncate:"","font-light":""},Nye=["text","innerHTML"],$ye={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Oye={"gap-1":"","justify-end":"","items-center":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Pye={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Rye={key:1},Iye=et({__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=ke(()=>ft.state.idMap.get(e.taskId)),r=ke(()=>{if(ar)return!1;const N=t.value;return N&&Np(N)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Me.collapseNode(e.taskId):Me.expandNode(e.taskId)}async function s(N){e.onItemClick?.(N),ta.value&&(zu.value=!0,await Ct()),e.type==="file"?await zp([N.file]):await Fue(N)}function c(N){return ft.rpc.updateSnapshot(N.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(N,L)=>`${e.taskId}-${L}`)),d=ke(()=>{const N=f.value,L=[];return(e.type==="file"||e.type==="suite")&&L.push("min-content"),L.push("min-content"),e.type==="suite"&&e.typecheck&&L.push("min-content"),L.push("minmax(0, 1fr)"),L.push("min-content"),`grid-template-columns: ${N.map(()=>"1rem").join(" ")} ${L.join(" ")};`}),h=ke(()=>_t.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>kx(e.name)),m=ke(()=>{const N=BL.value,L=p.value;return N?L.replace(N,R=>`<span class="highlight">${R}</span>`):L}),v=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>v.value?"color-red5 dark:color-#f43f5e":null);function O(){const N=t.value;e.type==="file"?e.onItemClick?.(N):zx(N)}const A=ke(()=>xx(e.projectNameColor));return(N,L)=>{const R=Qn("tooltip");return t.value?(ne(),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:Ot(d.value),"aria-label":e.name,"data-current":e.current,"data-testid":"explorer-item",onClick:L[2]||(L[2]=z=>o())},[e.indent>0?(ne(!0),me(tt,{key:0},yn(f.value,z=>(ne(),me("div",{key:z,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):ze("",!0),e.type==="file"||e.type==="suite"?(ne(),me("div",Eye,[X("div",{class:it(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):ze("",!0),Le($1,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),X("div",Aye,[e.type==="file"&&e.typecheck?st((ne(),me("div",Lye,null,512)),[[R,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):ze("",!0),X("span",Mye,[e.type==="file"&&e.projectName?(ne(),me("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Ot({backgroundColor:e.projectNameColor,color:A.value})},Oe(e.projectName),5)):ze("",!0),X("span",{text:e.state==="fail"?"red-500":"",innerHTML:m.value},null,8,Nye)]),typeof e.duration=="number"?(ne(),me("span",$ye,Oe(e.duration>0?e.duration:"< 1")+"ms ",1)):ze("",!0)]),X("div",Oye,[!q(ar)&&r.value&&q(_t).api?.allowExec&&q(_t).api?.allowWrite?st((ne(),qe(Tye,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:L[0]||(L[0]=iu(z=>c(t.value),["prevent","stop"]))},null,512)),[[R,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):ze("",!0),Le(q(so),{placement:"bottom",class:it(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:je(()=>[v.value?(ne(),me("div",Pye,[L[5]||(L[5]=X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),X("div",null,[Je(Oe(b.value)+": this feature is not available, you have disabled ",1),L[3]||(L[3]=X("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),L[4]||(L[4]=Je(" in your configuration file.",-1))]),L[6]||(L[6]=X("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))])):(ne(),me("div",Rye,Oe(b.value),1))]),default:je(()=>[Le(kt,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:iu(O,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),q(ar)?ze("",!0):st((ne(),qe(kt,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",disabled:q(_t).api?.allowExec===!1,onClick:L[1]||(L[1]=iu(z=>s(t.value),["prevent","stop"]))},null,8,["title","disabled"])),[[R,h.value,void 0,{bottom:!0}]])])],12,Cye)):ze("",!0)}}}),Dye=Di(Iye,[["__scopeId","data-v-d0b87fc2"]]),zye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Fye={key:0,p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2 gap-y-1","items-center":""},Hye={class:"relative flex-1"},Bye=["value"],jye=["value"],Wye={p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2","items-center":""},qye={class:"relative flex-1"},Uye={key:0,value:"asc",class:"text-base bg-base"},Vye={key:1,value:"desc",class:"text-base bg-base"},Gye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Kye=["op"],Xye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Yye={"text-red5":""},Zye={"text-yellow5":""},Jye={"text-green5":""},Qye={class:"text-purple5:50"},ebe={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},tbe={key:0,"text-red":"","text-center":""},nbe={key:1,op30:""},rbe=["disabled"],ibe=["disabled"],obe={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},sbe=et({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>_t.value.includeTaskLocation),s=Ve(),c=Ve(),f=Ve(),{initialized:d,filter:h,search:p,disableFilter:m,isFiltered:v,isFilteredByStatus:b,disableClearSearch:w,clearAll:O,clearSearch:A,clearFilter:N,filteredFiles:L,testsTotal:R,uiEntries:z,enableProjects:C,disableClearProjects:I,currentProject:W,currentProjectName:Z,clearProject:se,clearProjectSort:Q,disableClearProjectSort:K,searchMatcher:G}=bye(s,c,f),P=Ve("grid-cols-2"),$=Ve("grid-col-span-2"),S=Ve();return tx(()=>S.value,([{contentRect:k}])=>{k.width<420?(P.value="grid-cols-2",$.value="grid-col-span-2"):(P.value="grid-cols-4",$.value="grid-col-span-4")}),(k,M)=>{const B=Qn("tooltip");return ne(),me("div",{ref_key:"testExplorerRef",ref:S,h:"full",flex:"~ col"},[X("div",null,[X("div",zye,[zt(k.$slots,"header",{filteredFiles:q(v)||q(b)?q(L):void 0})]),q(C)?(ne(),me("div",Fye,[M[18]||(M[18]=X("div",{class:"i-carbon:workspace","flex-shrink-0":""},null,-1)),M[19]||(M[19]=X("label",{for:"project-select","text-sm":""}," Projects ",-1)),X("div",Hye,[st(X("select",{id:"project-select",ref_key:"selectProjectRef",ref:c,"onUpdate:modelValue":M[0]||(M[0]=Y=>Mt(W)?W.value=Y:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[X("option",{value:q(gl),class:"text-base bg-base"}," All Projects ",8,Bye),(ne(!0),me(tt,null,yn(q(Dp),Y=>(ne(),me("option",{key:Y,value:Y,class:"text-base bg-base"},Oe(Y),9,jye))),128))],512),[[Iv,q(W)]]),M[17]||(M[17]=X("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Le(kt,{disabled:q(I),title:"Clear project filter",icon:"i-carbon:filter-remove",onClickPassive:M[1]||(M[1]=Y=>q(se)(!0))},null,8,["disabled"]),[[B,"Clear project filter",void 0,{bottom:!0}]])])):ze("",!0),X("div",Wye,[M[24]||(M[24]=X("div",{class:"i-carbon:arrows-vertical","flex-shrink-0":""},null,-1)),M[25]||(M[25]=X("label",{for:"project-sort","text-sm":""}," Sort by ",-1)),X("div",qye,[st(X("select",{id:"project-sort",ref_key:"sortProjectRef",ref:f,"onUpdate:modelValue":M[2]||(M[2]=Y=>Mt(Nr)?Nr.value=Y:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[M[20]||(M[20]=X("option",{value:"default",class:"text-base bg-base"}," Default ",-1)),M[21]||(M[21]=X("option",{value:"duration-desc",class:"text-base bg-base"}," Slowest first ",-1)),M[22]||(M[22]=X("option",{value:"duration-asc",class:"text-base bg-base"}," Fastest first ",-1)),q(C)?(ne(),me("option",Uye," Project A-Z ")):ze("",!0),q(C)?(ne(),me("option",Vye," Project Z-A ")):ze("",!0)],512),[[Iv,q(Nr)]]),M[23]||(M[23]=X("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Le(kt,{disabled:q(K),title:"Reset sort",icon:"i-carbon:filter-reset",onClickPassive:M[3]||(M[3]=Y=>q(Q)(!0))},null,8,["disabled"]),[[B,"Reset sort",void 0,{bottom:!0}]])]),X("div",Gye,[M[26]||(M[26]=X("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),st(X("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":M[4]||(M[4]=Y=>Mt(p)?p.value=Y:null),placeholder:"Search... (e.g. test name, tag:expression)",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:q(p).length?"100":"50",onKeydown:[M[5]||(M[5]=ph(Y=>q(A)(!1),["esc"])),M[6]||(M[6]=ph(Y=>r("run",q(v)||q(b)?q(L):void 0),["enter"]))]},null,40,Kye),[[mw,q(p)]]),st(Le(kt,{disabled:q(w),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:M[7]||(M[7]=Y=>q(A)(!0))},null,8,["disabled"]),[[B,"Clear search",void 0,{bottom:!0}]])]),X("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:it(P.value)},[X("div",{class:it($.value),flex:"~ gap-2 items-center"},[M[27]||(M[27]=X("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),M[28]||(M[28]=X("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),st(Le(kt,{disabled:q(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:M[8]||(M[8]=Y=>q(N)(!1))},null,8,["disabled"]),[[B,"Clear Filter",void 0,{bottom:!0}]])],2),Le(Qc,{modelValue:q(h).failed,"onUpdate:modelValue":M[9]||(M[9]=Y=>q(h).failed=Y),label:"Fail"},null,8,["modelValue"]),Le(Qc,{modelValue:q(h).success,"onUpdate:modelValue":M[10]||(M[10]=Y=>q(h).success=Y),label:"Pass"},null,8,["modelValue"]),Le(Qc,{modelValue:q(h).skipped,"onUpdate:modelValue":M[11]||(M[11]=Y=>q(h).skipped=Y),label:"Skip"},null,8,["modelValue"]),Le(Qc,{modelValue:q(h).onlyTests,"onUpdate:modelValue":M[12]||(M[12]=Y=>q(h).onlyTests=Y),label:"Only Tests"},null,8,["modelValue"])],2)]),X("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:M[16]||(M[16]=(...Y)=>q(i0)&&q(i0)(...Y))},[Le(_ye,null,gT({default:je(()=>[(q(v)||q(b)||q(Z))&&q(z).length===0?(ne(),me(tt,{key:0},[q(d)?(ne(),me("div",ebe,[q(G).error?(ne(),me("div",tbe,Oe(q(G).error),1)):(ne(),me("div",nbe," No matched test ")),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(q(w)?null:"hover:op100"),disabled:q(w),onClickPassive:M[13]||(M[13]=Y=>q(A)(!0))}," Clear Search ",42,rbe),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(q(m)?null:"hover:op100"),disabled:q(m),onClickPassive:M[14]||(M[14]=Y=>q(N)(!0))}," Clear Filter ",42,ibe),X("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:M[15]||(M[15]=(...Y)=>q(O)&&q(O)(...Y))}," Clear All ",32)])):(ne(),me("div",obe,[...M[31]||(M[31]=[X("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),X("div",{op30:""}," Loading... ",-1)])]))],64)):(ne(),qe(q(Zp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:q(z),buffer:100},{default:je(({item:Y})=>[Le(Dye,{class:it(["h-28px m-0 p-0",q(Ti)===Y.id||!q(Ti)&&q(ko)===Y.id?"bg-active":""]),"task-id":Y.id,expandable:Y.expandable,type:Y.type,current:q(ko)===Y.id,indent:Y.indent,name:Y.name,typecheck:Y.typecheck===!0,"project-name":Y.projectName??"","project-name-color":Y.projectNameColor??"",state:Y.state,duration:Y.duration,opened:Y.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},[q(d)?{name:"summary",fn:je(()=>[X("div",Xye,[X("span",Yye," FAIL ("+Oe(q(R).failed)+") ",1),M[29]||(M[29]=X("span",null,"/",-1)),X("span",Zye," RUNNING ("+Oe(q(R).running)+") ",1),X("span",Jye," PASS ("+Oe(q(R).success)+") ",1),M[30]||(M[30]=X("span",null,"/",-1)),X("span",Qye," SKIP ("+Oe(q(h).onlyTests?q(R).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),lbe={class:"flex text-lg"},abe=et({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const r=ke(()=>xo.value?"light":"dark");async function o(d){_t.value.api?.allowExec!==!1&&(ta.value&&(zu.value=!0,await Ct(),_o.value&&(Fu(!0),await Ct())),d?.length?await zp(d):await Due())}function s(){Me.collapseAllNodes()}function c(){Me.expandAllNodes()}function f(d){return _t.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":d?d.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all"}return(d,h)=>{const p=Qn("tooltip");return ne(),qe(sbe,{border:"r base","on-item-click":q(lue),nested:!0,onRun:o},{header:je(({filteredFiles:m})=>[h[8]||(h[8]=X("img",{"w-6":"","h-6":"",src:U0e,alt:"Vitest logo"},null,-1)),h[9]||(h[9]=X("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),X("div",lbe,[st(Le(kt,{title:"Collapse tests",disabled:!q(ll),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:h[0]||(h[0]=v=>s())},null,8,["disabled"]),[[fo,!q(C0)],[p,"Collapse tests",void 0,{bottom:!0}]]),st(Le(kt,{disabled:!q(ll),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:h[1]||(h[1]=v=>c())},null,8,["disabled"]),[[fo,q(C0)],[p,"Expand tests",void 0,{bottom:!0}]]),st(Le(kt,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[2]||(h[2]=v=>q(Fu)(!0))},null,512),[[fo,q(Lh)&&!q(ta)||!q(Xs)],[p,"Dashboard",void 0,{bottom:!0}]]),q(Lh)&&!q(ta)?(ne(),qe(q(so),{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:je(()=>[...h[6]||(h[6]=[X("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),X("div",null,"Coverage enabled but missing html reporter."),X("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:je(()=>[h[7]||(h[7]=X("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):ze("",!0),q(ta)?st((ne(),qe(kt,{key:1,disabled:q(zu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[3]||(h[3]=v=>q(aue)())},null,8,["disabled"])),[[fo,!q(_o)],[p,"Coverage",void 0,{bottom:!0}]]):ze("",!0),q(Me).summary.failedSnapshot&&!q(ar)&&q(_t).api?.allowExec&&q(_t).api?.allowWrite?st((ne(),qe(kt,{key:2,icon:"i-carbon:result-old",disabled:!q(Me).summary.failedSnapshotEnabled,onClick:h[4]||(h[4]=v=>q(Me).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[p,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):ze("",!0),q(ar)?ze("",!0):st((ne(),qe(kt,{key:3,disabled:m?.length===0||!q(_t).api?.allowExec,icon:"i-carbon:play","data-testid":"btn-run-all",onClick:v=>o(m)},null,8,["disabled","onClick"])),[[p,f(m),void 0,{bottom:!0}]]),st(Le(kt,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[5]||(h[5]=v=>q(PL)())},null,512),[[p,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),cbe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},ube=et({__name:"ProgressBar",setup(e){const{width:t}=nx(),r=ke(()=>[Me.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Fs.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Me.summary.files;return d>0?t.value*Me.summary.filesSuccess/d:0}),s=ke(()=>{const d=Me.summary.files;return d>0?t.value*Me.summary.filesFailed/d:0}),c=ke(()=>Me.summary.files-Me.summary.filesFailed-Me.summary.filesSuccess),f=ke(()=>{const d=Me.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(ne(),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:it(r.value)},[X("div",cbe,[X("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:it(r.value),style:Ot(`width: ${s.value}px;`)},"   ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:it(r.value),style:Ot(`left: ${s.value}px; width: ${o.value}px;`)},"   ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:it(r.value),style:Ot(`left: ${o.value+s.value}px; width: ${f.value}px;`)},"   ",6)])],2))}}),fbe=Di(ube,[["__scopeId","data-v-5320005b"]]),dbe={"h-screen":"","w-screen":"",overflow:"hidden"},hbe={key:1,flex:"~ col","h-full":""},pbe={"h-full":"","overflow-hidden":""},gbe=et({__name:"index",setup(e){const t=sue(),r=jc(({panes:m})=>{h(),d(m)},0),o=jc(({panes:m})=>{m.forEach((v,b)=>{Ys.value[b]=v.size}),f(m),p()},0),s=jc(({panes:m})=>{m.forEach((v,b)=>{Jo.value[b]=v.size}),d(m),p()},0),c=jc(({panes:m})=>{f(m),h()},0);function f(m){an.navigation=m[0].size,m[1]&&(an.details.size=m[1].size)}function d(m){an.details.browser=m[0].size,m[1]&&(an.details.main=m[1].size)}function h(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,v)=>(ne(),me(tt,null,[Le(fbe),X("div",dbe,[Le(q(u0),{class:"pt-4px",onResized:q(o),onResize:q(c)},{default:je(()=>[Le(q(Uc),{size:q(Ys)[0]},{default:je(()=>[Le(abe)]),_:1},8,["size"]),Le(q(Uc),{size:q(Ys)[1]},{default:je(()=>[q(cr)?(ne(),me("div",hbe,[Le(q(u0),{id:"details-splitpanes",key:"browser-detail",horizontal:q(kn)==="bottom",class:it(q(kn)==="bottom"&&!q(Ai)?"flex-1 min-h-0 overflow-hidden":"h-full"),onResize:q(r),onResized:q(s)},{default:je(()=>[Le(q(Uc),{size:q(Jo)[0],"min-size":"10"},{default:je(()=>[v[0]||(rl(-1,!0),(v[0]=Le(Yue)).cacheIndex=0,rl(1),v[0])]),_:1},8,["size"]),q(Ai)?(ne(),qe(q(Uc),{key:0,size:q(Jo)[1],"min-size":"10"},{default:je(()=>[X("div",pbe,[q(t)?(ne(),qe(ny,{key:"summary"})):q(_o)?(ne(),qe(ty,{key:"coverage"})):(ne(),qe(Ay,{key:"details"}))])]),_:1},8,["size"])):ze("",!0)]),_:1},8,["horizontal","class","onResize","onResized"]),q(kn)==="bottom"&&!q(Ai)?(ne(),qe(Jue,{key:0})):ze("",!0)])):(ne(),qe(fC,{key:"ui-detail"},{default:je(()=>[q(t)?(ne(),qe(ny,{key:"summary"})):q(_o)?(ne(),qe(ty,{key:"coverage"})):(ne(),qe(Ay,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Le(tfe)],64))}}),mbe=[{name:"index",path:"/",component:gbe,props:!0}];/*!
52
+ * vue-router v5.0.2
53
+ * (c) 2026 Eduardo San Martin Morote
54
+ * @license MIT
55
+ */const zs=typeof document<"u";function V1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vbe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&V1(e.default)}const wt=Object.assign;function Zd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Br(s)?s.map(e):e(s)}return r}const va=()=>{},Br=Array.isArray;function Ny(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}let jt=(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 G1=Symbol("");jt.MATCHER_NOT_FOUND+"",jt.NAVIGATION_GUARD_REDIRECT+"",jt.NAVIGATION_ABORTED+"",jt.NAVIGATION_CANCELLED+"",jt.NAVIGATION_DUPLICATED+"";function dl(e,t){return wt(new Error,{type:e,[G1]:!0},t)}function vi(e,t){return e instanceof Error&&G1 in e&&(t==null||!!(e.type&t))}const ybe=["params","query","hash"];function bbe(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of ybe)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}const wbe=Symbol(""),$y=Symbol(""),Jp=Symbol(""),K1=Symbol(""),Kh=Symbol("");/*!
56
+ * vue-router v5.0.2
57
+ * (c) 2026 Eduardo San Martin Morote
58
+ * @license MIT
59
+ */const X1=/#/g,xbe=/&/g,kbe=/\//g,_be=/=/g,Sbe=/\?/g,Y1=/\+/g,Tbe=/%5B/g,Cbe=/%5D/g,Z1=/%5E/g,Ebe=/%60/g,J1=/%7B/g,Abe=/%7C/g,Q1=/%7D/g,Lbe=/%20/g;function Qp(e){return e==null?"":encodeURI(""+e).replace(Abe,"|").replace(Tbe,"[").replace(Cbe,"]")}function Mbe(e){return Qp(e).replace(J1,"{").replace(Q1,"}").replace(Z1,"^")}function Xh(e){return Qp(e).replace(Y1,"%2B").replace(Lbe,"+").replace(X1,"%23").replace(xbe,"%26").replace(Ebe,"`").replace(J1,"{").replace(Q1,"}").replace(Z1,"^")}function Nbe(e){return Xh(e).replace(_be,"%3D")}function $be(e){return Qp(e).replace(X1,"%23").replace(Sbe,"%3F")}function Obe(e){return $be(e).replace(kbe,"%2F")}function Ba(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Pbe=/\/$/,Rbe=e=>e.replace(Pbe,"");function Jd(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=Fbe(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:Ba(f)}}function Ibe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Oy(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Dbe(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&hl(t.matched[o],r.matched[s])&&ek(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function hl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ek(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!zbe(e[r],t[r]))return!1;return!0}function zbe(e,t){return Br(e)?Py(e,t):Br(t)?Py(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Py(e,t){return Br(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function Fbe(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 Yh=(function(e){return e.pop="pop",e.push="push",e})({}),Qd=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Hbe(e){if(!e)if(zs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Rbe(e)}const Bbe=/^[^#]+#/;function jbe(e,t){return e.replace(Bbe,"#")+t}function Wbe(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 Ef=()=>({left:window.scrollX,top:window.scrollY});function qbe(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=Wbe(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 Ry(e,t){return(history.state?history.state.position-t:-1)+e}const Zh=new Map;function Ube(e,t){Zh.set(e,t)}function Vbe(e){const t=Zh.get(e);return Zh.delete(e),t}function Gbe(e){return typeof e=="string"||e&&typeof e=="object"}function tk(e){return typeof e=="string"||typeof e=="symbol"}function Kbe(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(Y1," "),c=s.indexOf("="),f=Ba(c<0?s:s.slice(0,c)),d=c<0?null:Ba(s.slice(c+1));if(f in t){let h=t[f];Br(h)||(h=t[f]=[h]),h.push(d)}else t[f]=d}return t}function Iy(e){let t="";for(let r in e){const o=e[r];if(r=Nbe(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Br(o)?o.map(s=>s&&Xh(s)):[o&&Xh(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function Xbe(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Br(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}function Ql(){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 co(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(dl(jt.NAVIGATION_ABORTED,{from:r,to:t})):b instanceof Error?h(b):Gbe(b)?h(dl(jt.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},m=c(()=>e.call(o&&o.instances[s],t,r,p));let v=Promise.resolve(m);e.length<3&&(v=v.then(p)),v.catch(b=>h(b))})}function eh(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(V1(h)){const p=(h.__vccOpts||h)[t];p&&c.push(co(p,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(m=>{if(!m)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const v=vbe(m)?m.default:m;f.mods[d]=m,f.components[d]=v;const b=(v.__vccOpts||v)[t];return b&&co(b,r,o,f,d,s)()}))}}return c}function Ybe(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=>hl(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>hl(p,h))||s.push(h))}return[r,o,s]}/*!
60
+ * vue-router v5.0.2
61
+ * (c) 2026 Eduardo San Martin Morote
62
+ * @license MIT
63
+ */let Zbe=()=>location.protocol+"//"+location.host;function nk(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),Oy(d,"")}return Oy(r,e)+o+s}function Jbe(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=nk(e,location),O=r.value,A=t.value;let N=0;if(b){if(r.value=w,t.value=b,f&&f===O){f=null;return}N=A?b.position-A.position:0}else o(w);s.forEach(L=>{L(r.value,O,{delta:N,type:Yh.pop,direction:N?N>0?Qd.forward:Qd.back:Qd.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const O=s.indexOf(b);O>-1&&s.splice(O,1)};return c.push(w),w}function m(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(wt({},b.state,{scroll:Ef()}),"")}}function v(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",m),document.removeEventListener("visibilitychange",m)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",m),document.addEventListener("visibilitychange",m),{pauseListeners:h,listen:p,destroy:v}}function Dy(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Ef():null}}function Qbe(e){const{history:t,location:r}=window,o={value:nk(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,m){const v=e.indexOf("#"),b=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+h:Zbe()+e+h;try{t[m?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[m?"replace":"assign"](b)}}function f(h,p){c(h,wt({},t.state,Dy(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const m=wt({},s.value,t.state,{forward:h,scroll:Ef()});c(m.current,m,!0),c(h,wt({},Dy(o.value,h,null),{position:m.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function ewe(e){e=Hbe(e);const t=Qbe(e),r=Jbe(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=wt({location:"",base:e,go:o,createHref:jbe.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 twe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ewe(e)}let Ko=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var sn=(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})(sn||{});const nwe={type:Ko.Static,value:""},rwe=/[a-zA-Z0-9_]/;function iwe(e){if(!e)return[[]];if(e==="/")return[[nwe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=sn.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",m="";function v(){p&&(r===sn.Static?c.push({type:Ko.Static,value:p}):r===sn.Param||r===sn.ParamRegExp||r===sn.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:Ko.Param,value:p,regexp:m,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!==sn.ParamRegExp){o=r,r=sn.EscapeNext;continue}switch(r){case sn.Static:h==="/"?(p&&v(),f()):h===":"?(v(),r=sn.Param):b();break;case sn.EscapeNext:b(),r=o;break;case sn.Param:h==="("?r=sn.ParamRegExp:rwe.test(h)?b():(v(),r=sn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case sn.ParamRegExp:h===")"?m[m.length-1]=="\\"?m=m.slice(0,-1)+h:r=sn.ParamRegExpEnd:m+=h;break;case sn.ParamRegExpEnd:v(),r=sn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,m="";break;default:t("Unknown state");break}}return r===sn.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),f(),s}const zy="[^/]+?",owe={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 swe=/[.+*?^${}()[\]/\\]/g;function lwe(e,t){const r=wt({},owe,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const m=p.length?[]:[Rn.Root];r.strict&&!p.length&&(s+="/");for(let v=0;v<p.length;v++){const b=p[v];let w=Rn.Segment+(r.sensitive?Rn.BonusCaseSensitive:0);if(b.type===Ko.Static)v||(s+="/"),s+=b.value.replace(swe,"\\$&"),w+=Rn.Static;else if(b.type===Ko.Param){const{value:O,repeatable:A,optional:N,regexp:L}=b;c.push({name:O,repeatable:A,optional:N});const R=L||zy;if(R!==zy){w+=Rn.BonusCustomRegExp;try{new RegExp(`(${R})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${O}" (${R}): `+C.message)}}let z=A?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;v||(z=N&&p.length<2?`(?:/${z})`:"/"+z),N&&(z+="?"),s+=z,w+=Rn.Dynamic,N&&(w+=Rn.BonusOptional),A&&(w+=Rn.BonusRepeatable),R===".*"&&(w+=Rn.BonusWildcard)}m.push(w)}o.push(m)}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 m=p.match(f),v={};if(!m)return null;for(let b=1;b<m.length;b++){const w=m[b]||"",O=c[b-1];v[O.name]=w&&O.repeatable?w.split("/"):w}return v}function h(p){let m="",v=!1;for(const b of e){(!v||!m.endsWith("/"))&&(m+="/"),v=!1;for(const w of b)if(w.type===Ko.Static)m+=w.value;else if(w.type===Ko.Param){const{value:O,repeatable:A,optional:N}=w,L=O in p?p[O]:"";if(Br(L)&&!A)throw new Error(`Provided param "${O}" is an array but it is not repeatable (* or + modifiers)`);const R=Br(L)?L.join("/"):L;if(!R)if(N)b.length<2&&(m.endsWith("/")?m=m.slice(0,-1):v=!0);else throw new Error(`Missing required param "${O}"`);m+=R}}return m||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function awe(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 rk(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=awe(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(Fy(o))return 1;if(Fy(s))return-1}return s.length-o.length}function Fy(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const cwe={strict:!1,end:!0,sensitive:!1};function uwe(e,t,r){const o=lwe(iwe(e.path),r),s=wt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function fwe(e,t){const r=[],o=new Map;t=Ny(cwe,t);function s(v){return o.get(v)}function c(v,b,w){const O=!w,A=By(v);A.aliasOf=w&&w.record;const N=Ny(t,v),L=[A];if("alias"in v){const C=typeof v.alias=="string"?[v.alias]:v.alias;for(const I of C)L.push(By(wt({},A,{components:w?w.record.components:A.components,path:I,aliasOf:w?w.record:A})))}let R,z;for(const C of L){const{path:I}=C;if(b&&I[0]!=="/"){const W=b.record.path,Z=W[W.length-1]==="/"?"":"/";C.path=b.record.path+(I&&Z+I)}if(R=uwe(C,b,N),w?w.alias.push(R):(z=z||R,z!==R&&z.alias.push(R),O&&v.name&&!jy(R)&&f(v.name)),ik(R)&&h(R),A.children){const W=A.children;for(let Z=0;Z<W.length;Z++)c(W[Z],R,w&&w.children[Z])}w=w||R}return z?()=>{f(z)}:va}function f(v){if(tk(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function d(){return r}function h(v){const b=pwe(v,r);r.splice(b,0,v),v.record.name&&!jy(v)&&o.set(v.record.name,v)}function p(v,b){let w,O={},A,N;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw dl(jt.MATCHER_NOT_FOUND,{location:v});N=w.record.name,O=wt(Hy(b.params,w.keys.filter(z=>!z.optional).concat(w.parent?w.parent.keys.filter(z=>z.optional):[]).map(z=>z.name)),v.params&&Hy(v.params,w.keys.map(z=>z.name))),A=w.stringify(O)}else if(v.path!=null)A=v.path,w=r.find(z=>z.re.test(A)),w&&(O=w.parse(A),N=w.record.name);else{if(w=b.name?o.get(b.name):r.find(z=>z.re.test(b.path)),!w)throw dl(jt.MATCHER_NOT_FOUND,{location:v,currentLocation:b});N=w.record.name,O=wt({},b.params,v.params),A=w.stringify(O)}const L=[];let R=w;for(;R;)L.unshift(R.record),R=R.parent;return{name:N,path:A,params:O,matched:L,meta:hwe(L)}}e.forEach(v=>c(v));function m(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:m,getRoutes:d,getRecordMatcher:s}}function Hy(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function By(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dwe(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 dwe(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 jy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hwe(e){return e.reduce((t,r)=>wt(t,r.meta),{})}function pwe(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;rk(e,t[c])<0?o=c:r=c+1}const s=gwe(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function gwe(e){let t=e;for(;t=t.parent;)if(ik(t)&&rk(e,t)===0)return t}function ik({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Wy(e){const t=mn(Jp),r=mn(K1),o=ke(()=>{const h=q(e.to);return t.resolve(h)}),s=ke(()=>{const{matched:h}=o.value,{length:p}=h,m=h[p-1],v=r.matched;if(!m||!v.length)return-1;const b=v.findIndex(hl.bind(null,m));if(b>-1)return b;const w=qy(h[p-2]);return p>1&&qy(m)===w&&v[v.length-1].path!==w?v.findIndex(hl.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&wwe(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&ek(r.params,o.value.params));function d(h={}){if(bwe(h)){const p=t[q(e.replace)?"replace":"push"](q(e.to)).catch(va);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function mwe(e){return e.length===1?e[0]:e}const vwe=et({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:Wy,setup(e,{slots:t}){const r=sr(Wy(e)),{options:o}=mn(Jp),s=ke(()=>({[Uy(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Uy(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&mwe(t.default(r));return e.custom?c:Xa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),ywe=vwe;function bwe(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 wwe(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(!Br(s)||s.length!==o.length||o.some((c,f)=>c.valueOf()!==s[f].valueOf()))return!1}return!0}function qy(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Uy=(e,t,r)=>e??t??r,xwe=et({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=mn(Kh),s=ke(()=>e.route||o.value),c=mn($y,0),f=ke(()=>{let p=q(c);const{matched:m}=s.value;let v;for(;(v=m[p])&&!v.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);mr($y,ke(()=>f.value+1)),mr(wbe,d),mr(Kh,s);const h=Ve();return vt(()=>[h.value,d.value,e.name],([p,m,v],[b,w,O])=>{m&&(m.instances[v]=p,w&&w!==m&&p&&p===b&&(m.leaveGuards.size||(m.leaveGuards=w.leaveGuards),m.updateGuards.size||(m.updateGuards=w.updateGuards))),p&&m&&(!w||!hl(m,w)||!b)&&(m.enterCallbacks[v]||[]).forEach(A=>A(p))},{flush:"post"}),()=>{const p=s.value,m=e.name,v=d.value,b=v&&v.components[m];if(!b)return Vy(r.default,{Component:b,route:p});const w=v.props[m],O=w?w===!0?p.params:typeof w=="function"?w(p):w:null,N=Xa(b,wt({},O,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(v.instances[m]=null)},ref:h}));return Vy(r.default,{Component:N,route:p})||N}}});function Vy(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const kwe=xwe;function _we(e){const t=fwe(e.routes,e),r=e.parseQuery||Kbe,o=e.stringifyQuery||Iy,s=e.history,c=Ql(),f=Ql(),d=Ql(),h=Wt(Qi);let p=Qi;zs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=Zd.bind(null,F=>""+F),v=Zd.bind(null,Obe),b=Zd.bind(null,Ba);function w(F,J){let ie,ae;return tk(F)?(ie=t.getRecordMatcher(F),ae=J):ae=F,t.addRoute(ae,ie)}function O(F){const J=t.getRecordMatcher(F);J&&t.removeRoute(J)}function A(){return t.getRoutes().map(F=>F.record)}function N(F){return!!t.getRecordMatcher(F)}function L(F,J){if(J=wt({},J||h.value),typeof F=="string"){const te=Jd(r,F,J.path),de=t.resolve({path:te.path},J),he=s.createHref(te.fullPath);return wt(te,de,{params:b(de.params),hash:Ba(te.hash),redirectedFrom:void 0,href:he})}let ie;if(F.path!=null)ie=wt({},F,{path:Jd(r,F.path,J.path).path});else{const te=wt({},F.params);for(const de in te)te[de]==null&&delete te[de];ie=wt({},F,{params:v(te)}),J.params=v(J.params)}const ae=t.resolve(ie,J),ce=F.hash||"";ae.params=m(b(ae.params));const D=Ibe(o,wt({},F,{hash:Mbe(ce),path:ae.path})),j=s.createHref(D);return wt({fullPath:D,hash:ce,query:o===Iy?Xbe(F.query):F.query||{}},ae,{redirectedFrom:void 0,href:j})}function R(F){return typeof F=="string"?Jd(r,F,h.value.path):wt({},F)}function z(F,J){if(p!==F)return dl(jt.NAVIGATION_CANCELLED,{from:J,to:F})}function C(F){return Z(F)}function I(F){return C(wt(R(F),{replace:!0}))}function W(F,J){const ie=F.matched[F.matched.length-1];if(ie&&ie.redirect){const{redirect:ae}=ie;let ce=typeof ae=="function"?ae(F,J):ae;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=R(ce):{path:ce},ce.params={}),wt({query:F.query,hash:F.hash,params:ce.path!=null?{}:F.params},ce)}}function Z(F,J){const ie=p=L(F),ae=h.value,ce=F.state,D=F.force,j=F.replace===!0,te=W(ie,ae);if(te)return Z(wt(R(te),{state:typeof te=="object"?wt({},ce,te.state):ce,force:D,replace:j}),J||ie);const de=ie;de.redirectedFrom=J;let he;return!D&&Dbe(o,ae,ie)&&(he=dl(jt.NAVIGATION_DUPLICATED,{to:de,from:ae}),Be(ae,ae,!0,!1)),(he?Promise.resolve(he):K(de,ae)).catch(ge=>vi(ge)?vi(ge,jt.NAVIGATION_GUARD_REDIRECT)?ge:_e(ge):Y(ge,de,ae)).then(ge=>{if(ge){if(vi(ge,jt.NAVIGATION_GUARD_REDIRECT))return Z(wt({replace:j},R(ge.to),{state:typeof ge.to=="object"?wt({},ce,ge.to.state):ce,force:D}),J||de)}else ge=P(de,ae,!0,j,ce);return G(de,ae,ge),ge})}function se(F,J){const ie=z(F,J);return ie?Promise.reject(ie):Promise.resolve()}function Q(F){const J=Ue.values().next().value;return J&&typeof J.runWithContext=="function"?J.runWithContext(F):F()}function K(F,J){let ie;const[ae,ce,D]=Ybe(F,J);ie=eh(ae.reverse(),"beforeRouteLeave",F,J);for(const te of ae)te.leaveGuards.forEach(de=>{ie.push(co(de,F,J))});const j=se.bind(null,F,J);return ie.push(j),Pe(ie).then(()=>{ie=[];for(const te of c.list())ie.push(co(te,F,J));return ie.push(j),Pe(ie)}).then(()=>{ie=eh(ce,"beforeRouteUpdate",F,J);for(const te of ce)te.updateGuards.forEach(de=>{ie.push(co(de,F,J))});return ie.push(j),Pe(ie)}).then(()=>{ie=[];for(const te of D)if(te.beforeEnter)if(Br(te.beforeEnter))for(const de of te.beforeEnter)ie.push(co(de,F,J));else ie.push(co(te.beforeEnter,F,J));return ie.push(j),Pe(ie)}).then(()=>(F.matched.forEach(te=>te.enterCallbacks={}),ie=eh(D,"beforeRouteEnter",F,J,Q),ie.push(j),Pe(ie))).then(()=>{ie=[];for(const te of f.list())ie.push(co(te,F,J));return ie.push(j),Pe(ie)}).catch(te=>vi(te,jt.NAVIGATION_CANCELLED)?te:Promise.reject(te))}function G(F,J,ie){d.list().forEach(ae=>Q(()=>ae(F,J,ie)))}function P(F,J,ie,ae,ce){const D=z(F,J);if(D)return D;const j=J===Qi,te=zs?history.state:{};ie&&(ae||j?s.replace(F.fullPath,wt({scroll:j&&te&&te.scroll},ce)):s.push(F.fullPath,ce)),h.value=F,Be(F,J,ie,j),_e()}let $;function S(){$||($=s.listen((F,J,ie)=>{if(!He.listening)return;const ae=L(F),ce=W(ae,He.currentRoute.value);if(ce){Z(wt(ce,{replace:!0,force:!0}),ae).catch(va);return}p=ae;const D=h.value;zs&&Ube(Ry(D.fullPath,ie.delta),Ef()),K(ae,D).catch(j=>vi(j,jt.NAVIGATION_ABORTED|jt.NAVIGATION_CANCELLED)?j:vi(j,jt.NAVIGATION_GUARD_REDIRECT)?(Z(wt(R(j.to),{force:!0}),ae).then(te=>{vi(te,jt.NAVIGATION_ABORTED|jt.NAVIGATION_DUPLICATED)&&!ie.delta&&ie.type===Yh.pop&&s.go(-1,!1)}).catch(va),Promise.reject()):(ie.delta&&s.go(-ie.delta,!1),Y(j,ae,D))).then(j=>{j=j||P(ae,D,!1),j&&(ie.delta&&!vi(j,jt.NAVIGATION_CANCELLED)?s.go(-ie.delta,!1):ie.type===Yh.pop&&vi(j,jt.NAVIGATION_ABORTED|jt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),G(ae,D,j)}).catch(va)}))}let k=Ql(),M=Ql(),B;function Y(F,J,ie){_e(F);const ae=M.list();return ae.length?ae.forEach(ce=>ce(F,J,ie)):console.error(F),Promise.reject(F)}function ve(){return B&&h.value!==Qi?Promise.resolve():new Promise((F,J)=>{k.add([F,J])})}function _e(F){return B||(B=!F,S(),k.list().forEach(([J,ie])=>F?ie(F):J()),k.reset()),F}function Be(F,J,ie,ae){const{scrollBehavior:ce}=e;if(!zs||!ce)return Promise.resolve();const D=!ie&&Vbe(Ry(F.fullPath,0))||(ae||!ie)&&history.state&&history.state.scroll||null;return Ct().then(()=>ce(F,J,D)).then(j=>j&&qbe(j)).catch(j=>Y(j,F,J))}const Ae=F=>s.go(F);let Ke;const Ue=new Set,He={currentRoute:h,listening:!0,addRoute:w,removeRoute:O,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:A,resolve:L,options:e,push:C,replace:I,go:Ae,back:()=>Ae(-1),forward:()=>Ae(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:M.add,isReady:ve,install(F){F.component("RouterLink",ywe),F.component("RouterView",kwe),F.config.globalProperties.$router=He,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>q(h)}),zs&&!Ke&&h.value===Qi&&(Ke=!0,C(s.location).catch(ae=>{}));const J={};for(const ae in Qi)Object.defineProperty(J,ae,{get:()=>h.value[ae],enumerable:!0});F.provide(Jp,He),F.provide(K1,lp(J)),F.provide(Kh,h);const ie=F.unmount;Ue.add(F),F.unmount=function(){Ue.delete(F),Ue.size<1&&(p=Qi,$&&$(),$=null,h.value=Qi,Ke=!1,B=!1),ie()}}};function Pe(F){return F.reduce((J,ie)=>J.then(()=>Q(ie)),Promise.resolve())}return He}const Swe={tooltip:BE};Hw.options.instantMove=!0;Hw.options.distance=10;function Twe(){return _we({history:twe(),routes:mbe})}const Cwe=[Twe],eg=bw(HC);Cwe.forEach(e=>{eg.use(e())});Object.entries(Swe).forEach(([e,t])=>{eg.directive(e,t)});eg.mount("#app");