@vitest/browser 4.0.0-beta.10 → 4.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,53 +0,0 @@
1
- var oS=Object.defineProperty;var sS=(e,t,r)=>t in e?oS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var bt=(e,t,r)=>sS(e,typeof t!="symbol"?t+"":t,r);(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.20
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function yh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const mt={},ks=[],Gr=()=>{},J0=()=>!1,xu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bh=e=>e.startsWith("onUpdate:"),rn=Object.assign,wh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},lS=Object.prototype.hasOwnProperty,xt=(e,t)=>lS.call(e,t),Be=Array.isArray,Ts=e=>_a(e)==="[object Map]",_u=e=>_a(e)==="[object Set]",mv=e=>_a(e)==="[object Date]",Ge=e=>typeof e=="function",Dt=e=>typeof e=="string",$r=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",Q0=e=>(kt(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch),ey=Object.prototype.toString,_a=e=>ey.call(e),aS=e=>_a(e).slice(8,-1),ty=e=>_a(e)==="[object Object]",xh=e=>Dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fl=yh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Su=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},cS=/-(\w)/g,ir=Su(e=>e.replace(cS,(t,r)=>r?r.toUpperCase():"")),uS=/\B([A-Z])/g,ki=Su(e=>e.replace(uS,"-$1").toLowerCase()),ku=Su(e=>e.charAt(0).toUpperCase()+e.slice(1)),Nc=Su(e=>e?`on${ku(e)}`:""),Vn=(e,t)=>!Object.is(e,t),Oc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},ny=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},kd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ry=e=>{const t=Dt(e)?Number(e):NaN;return isNaN(t)?e:t};let yv;const Tu=()=>yv||(yv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tn(e){if(Be(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Dt(o)?pS(o):tn(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Dt(e)||kt(e))return e}const fS=/;(?![^(]*\))/g,dS=/:([^]+)/,hS=/\/\*[^]*?\*\//g;function pS(e){const t={};return e.replace(hS,"").split(fS).forEach(r=>{if(r){const o=r.split(dS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ot(e){let t="";if(Dt(e))t=e;else if(Be(e))for(let r=0;r<e.length;r++){const o=ot(e[r]);o&&(t+=o+" ")}else if(kt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function gS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Dt(t)&&(e.class=ot(t)),r&&(e.style=tn(r)),e}const vS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",mS=yh(vS);function iy(e){return!!e||e===""}function yS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=Cu(e[o],t[o]);return r}function Cu(e,t){if(e===t)return!0;let r=mv(e),o=mv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=$r(e),o=$r(t),r||o)return e===t;if(r=Be(e),o=Be(t),r||o)return r&&o?yS(e,t):!1;if(r=kt(e),o=kt(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||!Cu(e[f],t[f]))return!1}}return String(e)===String(t)}function oy(e,t){return e.findIndex(r=>Cu(r,t))}const sy=e=>!!(e&&e.__v_isRef===!0),ze=e=>Dt(e)?e:e==null?"":Be(e)||kt(e)&&(e.toString===ey||!Ge(e.toString))?sy(e)?ze(e.value):JSON.stringify(e,ly,2):String(e),ly=(e,t)=>sy(t)?ly(e,t.value):Ts(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Kf(o,c)+" =>"]=s,r),{})}:_u(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Kf(r))}:$r(t)?Kf(t):kt(t)&&!Be(t)&&!ty(t)?String(t):t,Kf=(e,t="")=>{var r;return $r(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6
- * @vue/reactivity v3.5.20
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let mn;class bS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=mn,!t&&mn&&(this.index=(mn.scopes||(mn.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=mn;try{return mn=this,t()}finally{mn=r}}}on(){++this._on===1&&(this.prevScope=mn,mn=this)}off(){this._on>0&&--this._on===0&&(mn=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 ay(){return mn}function wS(e,t=!1){mn&&mn.cleanups.push(e)}let Ct;const Xf=new WeakSet;class cy{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,mn&&mn.active&&mn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xf.has(this)&&(Xf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fy(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,bv(this),dy(this);const t=Ct,r=Lr;Ct=this,Lr=!0;try{return this.fn()}finally{hy(this),Ct=t,Lr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)kh(t);this.deps=this.depsTail=void 0,bv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Td(this)&&this.run()}get dirty(){return Td(this)}}let uy=0,Hl,Bl;function fy(e,t=!1){if(e.flags|=8,t){e.next=Bl,Bl=e;return}e.next=Hl,Hl=e}function _h(){uy++}function Sh(){if(--uy>0)return;if(Bl){let t=Bl;for(Bl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Hl;){let t=Hl;for(Hl=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 dy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hy(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),kh(o),xS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function Td(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(py(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function py(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ql)||(e.globalVersion=Ql,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Td(e))))return;e.flags|=2;const t=e.dep,r=Ct,o=Lr;Ct=e,Lr=!0;try{dy(e);const s=e.fn(e._value);(t.version===0||Vn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ct=r,Lr=o,hy(e),e.flags&=-3}}function kh(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)kh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function xS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Lr=!0;const gy=[];function wi(){gy.push(Lr),Lr=!1}function xi(){const e=gy.pop();Lr=e===void 0?!0:e}function bv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Ct;Ct=void 0;try{t()}finally{Ct=r}}}let Ql=0;class _S{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 Eu{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(!Ct||!Lr||Ct===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Ct)r=this.activeLink=new _S(Ct,this),Ct.deps?(r.prevDep=Ct.depsTail,Ct.depsTail.nextDep=r,Ct.depsTail=r):Ct.deps=Ct.depsTail=r,vy(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=Ct.depsTail,r.nextDep=void 0,Ct.depsTail.nextDep=r,Ct.depsTail=r,Ct.deps===r&&(Ct.deps=o)}return r}trigger(t){this.version++,Ql++,this.notify(t)}notify(t){_h();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Sh()}}}function vy(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)vy(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Uc=new WeakMap,zo=Symbol(""),Cd=Symbol(""),ea=Symbol("");function yn(e,t,r){if(Lr&&Ct){let o=Uc.get(e);o||Uc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Eu),s.map=o,s.key=r),s.track()}}function vi(e,t,r,o,s,c){const f=Uc.get(e);if(!f){Ql++;return}const d=h=>{h&&h.trigger()};if(_h(),t==="clear")f.forEach(d);else{const h=Be(e),p=h&&xh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===ea||!$r(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ea)),t){case"add":h?p&&d(f.get("length")):(d(f.get(zo)),Ts(e)&&d(f.get(Cd)));break;case"delete":h||(d(f.get(zo)),Ts(e)&&d(f.get(Cd)));break;case"set":Ts(e)&&d(f.get(zo));break}}Sh()}function SS(e,t){const r=Uc.get(e);return r&&r.get(t)}function gs(e){const t=vt(e);return t===e?t:(yn(t,"iterate",ea),fr(e)?t:t.map(fn))}function Au(e){return yn(e=vt(e),"iterate",ea),e}const kS={__proto__:null,[Symbol.iterator](){return Yf(this,Symbol.iterator,fn)},concat(...e){return gs(this).concat(...e.map(t=>Be(t)?gs(t):t))},entries(){return Yf(this,"entries",e=>(e[1]=fn(e[1]),e))},every(e,t){return ci(this,"every",e,t,void 0,arguments)},filter(e,t){return ci(this,"filter",e,t,r=>r.map(fn),arguments)},find(e,t){return ci(this,"find",e,t,fn,arguments)},findIndex(e,t){return ci(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ci(this,"findLast",e,t,fn,arguments)},findLastIndex(e,t){return ci(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ci(this,"forEach",e,t,void 0,arguments)},includes(...e){return Zf(this,"includes",e)},indexOf(...e){return Zf(this,"indexOf",e)},join(e){return gs(this).join(e)},lastIndexOf(...e){return Zf(this,"lastIndexOf",e)},map(e,t){return ci(this,"map",e,t,void 0,arguments)},pop(){return Al(this,"pop")},push(...e){return Al(this,"push",e)},reduce(e,...t){return wv(this,"reduce",e,t)},reduceRight(e,...t){return wv(this,"reduceRight",e,t)},shift(){return Al(this,"shift")},some(e,t){return ci(this,"some",e,t,void 0,arguments)},splice(...e){return Al(this,"splice",e)},toReversed(){return gs(this).toReversed()},toSorted(e){return gs(this).toSorted(e)},toSpliced(...e){return gs(this).toSpliced(...e)},unshift(...e){return Al(this,"unshift",e)},values(){return Yf(this,"values",fn)}};function Yf(e,t,r){const o=Au(e),s=o[t]();return o!==e&&!fr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const TS=Array.prototype;function ci(e,t,r,o,s,c){const f=Au(e),d=f!==e&&!fr(e),h=f[t];if(h!==TS[t]){const m=h.apply(e,c);return d?fn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,fn(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function wv(e,t,r,o){const s=Au(e);let c=r;return s!==e&&(fr(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,fn(d),h,e)}),s[t](c,...o)}function Zf(e,t,r){const o=vt(e);yn(o,"iterate",ea);const s=o[t](...r);return(s===-1||s===!1)&&Ah(r[0])?(r[0]=vt(r[0]),o[t](...r)):s}function Al(e,t,r=[]){wi(),_h();const o=vt(e)[t].apply(e,r);return Sh(),xi(),o}const CS=yh("__proto__,__v_isRef,__isVue"),my=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($r));function ES(e){$r(e)||(e=String(e));const t=vt(this);return yn(t,"has",e),t.hasOwnProperty(e)}class yy{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?IS:_y:c?xy:wy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Be(t);if(!s){let h;if(f&&(h=kS[r]))return h;if(r==="hasOwnProperty")return ES}const d=Reflect.get(t,r,Tt(t)?t:o);return($r(r)?my.has(r):CS(r))||(s||yn(t,"get",r),c)?d:Tt(d)?f&&xh(r)?d:d.value:kt(d)?s?Sa(d):rr(d):d}}class by extends yy{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=ro(c);if(!fr(o)&&!ro(o)&&(c=vt(c),o=vt(o)),!Be(t)&&Tt(c)&&!Tt(o))return h||(c.value=o),!0}const f=Be(t)&&xh(r)?Number(r)<t.length:xt(t,r),d=Reflect.set(t,r,o,Tt(t)?t:s);return t===vt(s)&&(f?Vn(o,c)&&vi(t,"set",r,o):vi(t,"add",r,o)),d}deleteProperty(t,r){const o=xt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&vi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!$r(r)||!my.has(r))&&yn(t,"has",r),o}ownKeys(t){return yn(t,"iterate",Be(t)?"length":zo),Reflect.ownKeys(t)}}class AS extends yy{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const LS=new by,MS=new AS,$S=new by(!0);const Ed=e=>e,gc=e=>Reflect.getPrototypeOf(e);function NS(e,t,r){return function(...o){const s=this.__v_raw,c=vt(s),f=Ts(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?Ed:t?Vc:fn;return!t&&yn(c,"iterate",h?Cd:zo),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function vc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function OS(e,t){const r={get(s){const c=this.__v_raw,f=vt(c),d=vt(s);e||(Vn(s,d)&&yn(f,"get",s),yn(f,"get",d));const{has:h}=gc(f),p=t?Ed:e?Vc:fn;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&&yn(vt(s),"iterate",zo),s.size},has(s){const c=this.__v_raw,f=vt(c),d=vt(s);return e||(Vn(s,d)&&yn(f,"has",s),yn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=vt(d),p=t?Ed:e?Vc:fn;return!e&&yn(h,"iterate",zo),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return rn(r,e?{add:vc("add"),set:vc("set"),delete:vc("delete"),clear:vc("clear")}:{add(s){!t&&!fr(s)&&!ro(s)&&(s=vt(s));const c=vt(this);return gc(c).has.call(c,s)||(c.add(s),vi(c,"add",s,s)),this},set(s,c){!t&&!fr(c)&&!ro(c)&&(c=vt(c));const f=vt(this),{has:d,get:h}=gc(f);let p=d.call(f,s);p||(s=vt(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?Vn(c,v)&&vi(f,"set",s,c):vi(f,"add",s,c),this},delete(s){const c=vt(this),{has:f,get:d}=gc(c);let h=f.call(c,s);h||(s=vt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&vi(c,"delete",s,void 0),p},clear(){const s=vt(this),c=s.size!==0,f=s.clear();return c&&vi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=NS(s,e,t)}),r}function Th(e,t){const r=OS(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 PS={get:Th(!1,!1)},RS={get:Th(!1,!0)},zS={get:Th(!0,!1)};const wy=new WeakMap,xy=new WeakMap,_y=new WeakMap,IS=new WeakMap;function DS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function FS(e){return e.__v_skip||!Object.isExtensible(e)?0:DS(aS(e))}function rr(e){return ro(e)?e:Eh(e,!1,LS,PS,wy)}function Ch(e){return Eh(e,!1,$S,RS,xy)}function Sa(e){return Eh(e,!0,MS,zS,_y)}function Eh(e,t,r,o,s){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=FS(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 Cs(e){return ro(e)?Cs(e.__v_raw):!!(e&&e.__v_isReactive)}function ro(e){return!!(e&&e.__v_isReadonly)}function fr(e){return!!(e&&e.__v_isShallow)}function Ah(e){return e?!!e.__v_raw:!1}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function Lh(e){return!xt(e,"__v_skip")&&Object.isExtensible(e)&&ny(e,"__v_skip",!0),e}const fn=e=>kt(e)?rr(e):e,Vc=e=>kt(e)?Sa(e):e;function Tt(e){return e?e.__v_isRef===!0:!1}function Ue(e){return Sy(e,!1)}function nn(e){return Sy(e,!0)}function Sy(e,t){return Tt(e)?e:new HS(e,t)}class HS{constructor(t,r){this.dep=new Eu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:vt(t),this._value=r?t:fn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||fr(t)||ro(t);t=o?t:vt(t),Vn(t,r)&&(this._rawValue=t,this._value=o?t:fn(t),this.dep.trigger())}}function B(e){return Tt(e)?e.value:e}function Gt(e){return Ge(e)?e():B(e)}const BS={get:(e,t,r)=>t==="__v_raw"?e:B(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Tt(s)&&!Tt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function ky(e){return Cs(e)?e:new Proxy(e,BS)}class WS{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Eu,{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 Ty(e){return new WS(e)}function qS(e){const t=Be(e)?new Array(e.length):{};for(const r in e)t[r]=Cy(e,r);return t}class jS{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return SS(vt(this._object),this._key)}}class US{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 Ks(e,t,r){return Tt(e)?e:Ge(e)?new US(e):kt(e)&&arguments.length>1?Cy(e,t,r):Ue(e)}function Cy(e,t,r){const o=e[t];return Tt(o)?o:new jS(e,t,r)}class VS{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Eu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ql-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Ct!==this)return fy(this,!0),!0}get value(){const t=this.dep.track();return py(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function GS(e,t,r=!1){let o,s;return Ge(e)?o=e:(o=e.get,s=e.set),new VS(o,s,r)}const mc={},Gc=new WeakMap;let Mo;function KS(e,t=!1,r=Mo){if(r){let o=Gc.get(r);o||Gc.set(r,o=[]),o.push(e)}}function XS(e,t,r=mt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=T=>s?T:fr(T)||s===!1||s===0?mi(T,1):mi(T);let v,m,b,w,A=!1,L=!1;if(Tt(e)?(m=()=>e.value,A=fr(e)):Cs(e)?(m=()=>p(e),A=!0):Be(e)?(L=!0,A=e.some(T=>Cs(T)||fr(T)),m=()=>e.map(T=>{if(Tt(T))return T.value;if(Cs(T))return p(T);if(Ge(T))return h?h(T,2):T()})):Ge(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){wi();try{b()}finally{xi()}}const T=Mo;Mo=v;try{return h?h(e,3,[w]):e(w)}finally{Mo=T}}:m=Gr,t&&s){const T=m,I=s===!0?1/0:s;m=()=>mi(T(),I)}const E=ay(),M=()=>{v.stop(),E&&E.active&&wh(E.effects,v)};if(c&&t){const T=t;t=(...I)=>{T(...I),M()}}let $=L?new Array(e.length).fill(mc):mc;const R=T=>{if(!(!(v.flags&1)||!v.dirty&&!T))if(t){const I=v.run();if(s||A||(L?I.some((F,re)=>Vn(F,$[re])):Vn(I,$))){b&&b();const F=Mo;Mo=v;try{const re=[I,$===mc?void 0:L&&$[0]===mc?[]:$,w];$=I,h?h(t,3,re):t(...re)}finally{Mo=F}}}else v.run()};return d&&d(R),v=new cy(m),v.scheduler=f?()=>f(R,!1):R,w=T=>KS(T,!1,v),b=v.onStop=()=>{const T=Gc.get(v);if(T){if(h)h(T,4);else for(const I of T)I();Gc.delete(v)}},t?o?R(!0):$=v.run():f?f(R.bind(null,!0),!0):v.run(),M.pause=v.pause.bind(v),M.resume=v.resume.bind(v),M.stop=M,M}function mi(e,t=1/0,r){if(t<=0||!kt(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Tt(e))mi(e.value,t,r);else if(Be(e))for(let o=0;o<e.length;o++)mi(e[o],t,r);else if(_u(e)||Ts(e))e.forEach(o=>{mi(o,t,r)});else if(ty(e)){for(const o in e)mi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&mi(e[o],t,r)}return e}/**
10
- * @vue/runtime-core v3.5.20
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function ka(e,t,r,o){try{return o?e(...o):e()}catch(s){Ta(s,t,r)}}function Nr(e,t,r,o){if(Ge(e)){const s=ka(e,t,r,o);return s&&Q0(s)&&s.catch(c=>{Ta(c,t,r)}),s}if(Be(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Nr(e[c],t,r,o));return s}}function Ta(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||mt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){wi(),ka(c,null,10,[e,h,p]),xi();return}}YS(e,r,s,o,f)}function YS(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const On=[];let Ur=-1;const Es=[];let Ui=null,ms=0;const Ey=Promise.resolve();let Kc=null;function At(e){const t=Kc||Ey;return e?t.then(this?e.bind(this):e):t}function ZS(e){let t=Ur+1,r=On.length;for(;t<r;){const o=t+r>>>1,s=On[o],c=ta(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Mh(e){if(!(e.flags&1)){const t=ta(e),r=On[On.length-1];!r||!(e.flags&2)&&t>=ta(r)?On.push(e):On.splice(ZS(t),0,e),e.flags|=1,Ay()}}function Ay(){Kc||(Kc=Ey.then(My))}function Ad(e){Be(e)?Es.push(...e):Ui&&e.id===-1?Ui.splice(ms+1,0,e):e.flags&1||(Es.push(e),e.flags|=1),Ay()}function xv(e,t,r=Ur+1){for(;r<On.length;r++){const o=On[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;On.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Ly(e){if(Es.length){const t=[...new Set(Es)].sort((r,o)=>ta(r)-ta(o));if(Es.length=0,Ui){Ui.push(...t);return}for(Ui=t,ms=0;ms<Ui.length;ms++){const r=Ui[ms];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Ui=null,ms=0}}const ta=e=>e.id==null?e.flags&2?-1:1/0:e.id;function My(e){try{for(Ur=0;Ur<On.length;Ur++){const t=On[Ur];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ka(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ur<On.length;Ur++){const t=On[Ur];t&&(t.flags&=-2)}Ur=-1,On.length=0,Ly(),Kc=null,(On.length||Es.length)&&My()}}let hn=null,Lu=null;function Xc(e){const t=hn;return hn=e,Lu=e&&e.type.__scopeId||null,t}function $y(e){Lu=e}function Ny(){Lu=null}const Oy=e=>it;function it(e,t=hn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Jc(-1);const c=Xc(t);let f;try{f=e(...s)}finally{Xc(c),o._d&&Jc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function ct(e,t){if(hn===null)return e;const r=Iu(hn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=mt]=t[s];c&&(Ge(c)&&(c={mounted:c,updated:c}),c.deep&&mi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function To(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(wi(),Nr(h,r,8,[e.el,d,e,t]),xi())}}const JS=Symbol("_vte"),Py=e=>e.__isTeleport,gi=Symbol("_leaveCb"),yc=Symbol("_enterCb");function QS(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fo(()=>{e.isMounted=!0}),Ca(()=>{e.isUnmounting=!0}),e}const ar=[Function,Array],Ry={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ar,onEnter:ar,onAfterEnter:ar,onEnterCancelled:ar,onBeforeLeave:ar,onLeave:ar,onAfterLeave:ar,onLeaveCancelled:ar,onBeforeAppear:ar,onAppear:ar,onAfterAppear:ar,onAppearCancelled:ar},zy=e=>{const t=e.subTree;return t.component?zy(t.component):t},ek={name:"BaseTransition",props:Ry,setup(e,{slots:t}){const r=Ci(),o=QS();return()=>{const s=t.default&&Fy(t.default(),!0);if(!s||!s.length)return;const c=Iy(s),f=vt(e),{mode:d}=f;if(o.isLeaving)return Jf(c);const h=_v(c);if(!h)return Jf(c);let p=Ld(h,f,o,r,m=>p=m);h.type!==sn&&na(h,p);let v=r.subTree&&_v(r.subTree);if(v&&v.type!==sn&&!Vr(h,v)&&zy(r).type!==sn){let m=Ld(v,f,o,r);if(na(v,m),d==="out-in"&&h.type!==sn)return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete m.afterLeave,v=void 0},Jf(c);d==="in-out"&&h.type!==sn?m.delayLeave=(b,w,A)=>{const L=Dy(o,v);L[String(v.key)]=v,b[gi]=()=>{w(),b[gi]=void 0,delete p.delayedLeave,v=void 0},p.delayedLeave=()=>{A(),delete p.delayedLeave,v=void 0}}:v=void 0}else v&&(v=void 0);return c}}};function Iy(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==sn){t=r;break}}return t}const tk=ek;function Dy(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 Ld(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:w,onAfterLeave:A,onLeaveCancelled:L,onBeforeAppear:E,onAppear:M,onAfterAppear:$,onAppearCancelled:R}=t,T=String(e.key),I=Dy(r,e),F=(J,G)=>{J&&Nr(J,o,9,G)},re=(J,G)=>{const K=G[1];F(J,G),Be(J)?J.every(N=>N.length<=1)&&K():J.length<=1&&K()},se={mode:f,persisted:d,beforeEnter(J){let G=h;if(!r.isMounted)if(c)G=E||h;else return;J[gi]&&J[gi](!0);const K=I[T];K&&Vr(e,K)&&K.el[gi]&&K.el[gi](),F(G,[J])},enter(J){let G=p,K=v,N=m;if(!r.isMounted)if(c)G=M||p,K=$||v,N=R||m;else return;let O=!1;const P=J[yc]=S=>{O||(O=!0,S?F(N,[J]):F(K,[J]),se.delayedLeave&&se.delayedLeave(),J[yc]=void 0)};G?re(G,[J,P]):P()},leave(J,G){const K=String(e.key);if(J[yc]&&J[yc](!0),r.isUnmounting)return G();F(b,[J]);let N=!1;const O=J[gi]=P=>{N||(N=!0,G(),P?F(L,[J]):F(A,[J]),J[gi]=void 0,I[K]===e&&delete I[K])};I[K]=e,w?re(w,[J,O]):O()},clone(J){const G=Ld(J,t,r,o,s);return s&&s(G),G}};return se}function Jf(e){if(Mu(e))return e=io(e),e.children=null,e}function _v(e){if(!Mu(e))return Py(e.type)&&e.children?Iy(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&&Ge(r.default))return r.default()}}function na(e,t){e.shapeFlag&6&&e.component?(e.transition=t,na(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 Fy(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===nt?(f.patchFlag&128&&s++,o=o.concat(Fy(f.children,t,d))):(t||f.type!==sn)&&o.push(d!=null?io(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function at(e,t){return Ge(e)?rn({name:e.name},t,{setup:e}):e}function Hy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Wl(e,t,r,o,s=!1){if(Be(e)){e.forEach((A,L)=>Wl(A,t&&(Be(t)?t[L]:t),r,o,s));return}if(As(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Wl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Iu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===mt?d.refs={}:d.refs,m=d.setupState,b=vt(m),w=m===mt?J0:A=>xt(b,A);if(p!=null&&p!==h){if(Dt(p))v[p]=null,w(p)&&(m[p]=null);else if(Tt(p)){p.value=null;const A=t;A.k&&(v[A.k]=null)}}if(Ge(h))ka(h,d,12,[f,v]);else{const A=Dt(h),L=Tt(h);if(A||L){const E=()=>{if(e.f){const M=A?w(h)?m[h]:v[h]:h.value;if(s)Be(M)&&wh(M,c);else if(Be(M))M.includes(c)||M.push(c);else if(A)v[h]=[c],w(h)&&(m[h]=v[h]);else{const $=[c];h.value=$,e.k&&(v[e.k]=$)}}else A?(v[h]=f,w(h)&&(m[h]=f)):L&&(h.value=f,e.k&&(v[e.k]=f))};f?(E.id=-1,Qn(E,r)):E()}}}Tu().requestIdleCallback;Tu().cancelIdleCallback;const As=e=>!!e.type.__asyncLoader,Mu=e=>e.type.__isKeepAlive;function nk(e,t){By(e,"a",t)}function rk(e,t){By(e,"da",t)}function By(e,t,r=wn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if($u(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Mu(s.parent.vnode)&&ik(o,t,r,s),s=s.parent}}function ik(e,t,r,o){const s=$u(t,e,o,!0);Nu(()=>{wh(o[t],s)},r)}function $u(e,t,r=wn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{wi();const d=Ea(r),h=Nr(t,r,e,f);return d(),xi(),h});return o?s.unshift(c):s.push(c),c}}const Ti=e=>(t,r=wn)=>{(!oa||e==="sp")&&$u(e,(...o)=>t(...o),r)},ok=Ti("bm"),fo=Ti("m"),sk=Ti("bu"),lk=Ti("u"),Ca=Ti("bum"),Nu=Ti("um"),ak=Ti("sp"),ck=Ti("rtg"),uk=Ti("rtc");function fk(e,t=wn){$u("ec",e,t)}const $h="components",dk="directives";function Fo(e,t){return Nh($h,e,!0,t)||e}const Wy=Symbol.for("v-ndc");function Md(e){return Dt(e)?Nh($h,e,!1)||e:e||Wy}function zr(e){return Nh(dk,e)}function Nh(e,t,r=!0,o=!1){const s=hn||wn;if(s){const c=s.type;if(e===$h){const d=iT(c,!1);if(d&&(d===t||d===ir(t)||d===ku(ir(t))))return c}const f=Sv(s[e]||c[e],t)||Sv(s.appContext[e],t);return!f&&o?c:f}}function Sv(e,t){return e&&(e[t]||e[ir(t)]||e[ku(ir(t))])}function dr(e,t,r,o){let s;const c=r,f=Be(e);if(f||Dt(e)){const d=f&&Cs(e);let h=!1,p=!1;d&&(h=!fr(e),p=ro(e),e=Au(e)),s=new Array(e.length);for(let v=0,m=e.length;v<m;v++)s[v]=t(h?p?Vc(fn(e[v])):fn(e[v]):e[v],v,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(kt(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function hk(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Be(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 xn(e,t,r={},o,s){if(hn.ce||hn.parent&&As(hn.parent)&&hn.parent.ce)return t!=="default"&&(r.name=t),ie(),Ze(nt,null,[Oe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),ie();const f=c&&qy(c(r)),d=r.key||f&&f.key,h=Ze(nt,{key:(d&&!$r(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 qy(e){return e.some(t=>Fs(t)?!(t.type===sn||t.type===nt&&!qy(t.children)):!0)?e:null}function pk(e,t){const r={};for(const o in e)r[Nc(o)]=e[o];return r}const $d=e=>e?pb(e)?Iu(e):$d(e.parent):null,ql=rn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$d(e.parent),$root:e=>$d(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vy(e),$forceUpdate:e=>e.f||(e.f=()=>{Mh(e.update)}),$nextTick:e=>e.n||(e.n=At.bind(e.proxy)),$watch:e=>Dk.bind(e)}),Qf=(e,t)=>e!==mt&&!e.__isScriptSetup&&xt(e,t),gk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const w=f[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Qf(o,t))return f[t]=1,o[t];if(s!==mt&&xt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&xt(p,t))return f[t]=3,c[t];if(r!==mt&&xt(r,t))return f[t]=4,r[t];Nd&&(f[t]=0)}}const v=ql[t];let m,b;if(v)return t==="$attrs"&&yn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==mt&&xt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,xt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Qf(s,t)?(s[t]=r,!0):o!==mt&&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,propsOptions:c,type:f}},d){let h,p;return!!(r[d]||e!==mt&&d[0]!=="$"&&xt(e,d)||Qf(t,d)||(h=c[0])&&xt(h,d)||xt(o,d)||xt(ql,d)||xt(s.config.globalProperties,d)||(p=f.__cssModules)&&p[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 vk(){return jy().slots}function mk(){return jy().attrs}function jy(e){const t=Ci();return t.setupContext||(t.setupContext=vb(t))}function Yc(e){return Be(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function ra(e,t){return!e||!t?e||t:Be(e)&&Be(t)?e.concat(t):rn({},Yc(e),Yc(t))}let Nd=!0;function yk(e){const t=Vy(e),r=e.proxy,o=e.ctx;Nd=!1,t.beforeCreate&&kv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:w,updated:A,activated:L,deactivated:E,beforeDestroy:M,beforeUnmount:$,destroyed:R,unmounted:T,render:I,renderTracked:F,renderTriggered:re,errorCaptured:se,serverPrefetch:J,expose:G,inheritAttrs:K,components:N,directives:O,filters:P}=t;if(p&&bk(p,o,null),f)for(const V in f){const oe=f[V];Ge(oe)&&(o[V]=oe.bind(r))}if(s){const V=s.call(r,r);kt(V)&&(e.data=rr(V))}if(Nd=!0,c)for(const V in c){const oe=c[V],ve=Ge(oe)?oe.bind(r,r):Ge(oe.get)?oe.get.bind(r,r):Gr,we=!Ge(oe)&&Ge(oe.set)?oe.set.bind(r):Gr,Pe=Se({get:ve,set:we});Object.defineProperty(o,V,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:je=>Pe.value=je})}if(d)for(const V in d)Uy(d[V],o,r,V);if(h){const V=Ge(h)?h.call(r):h;Reflect.ownKeys(V).forEach(oe=>{Cr(oe,V[oe])})}v&&kv(v,e,"c");function H(V,oe){Be(oe)?oe.forEach(ve=>V(ve.bind(r))):oe&&V(oe.bind(r))}if(H(ok,m),H(fo,b),H(sk,w),H(lk,A),H(nk,L),H(rk,E),H(fk,se),H(uk,F),H(ck,re),H(Ca,$),H(Nu,T),H(ak,J),Be(G))if(G.length){const V=e.exposed||(e.exposed={});G.forEach(oe=>{Object.defineProperty(V,oe,{get:()=>r[oe],set:ve=>r[oe]=ve,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===Gr&&(e.render=I),K!=null&&(e.inheritAttrs=K),N&&(e.components=N),O&&(e.directives=O),J&&Hy(e)}function bk(e,t,r=Gr){Be(e)&&(e=Od(e));for(const o in e){const s=e[o];let c;kt(s)?"default"in s?c=bn(s.from||o,s.default,!0):c=bn(s.from||o):c=bn(s),Tt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function kv(e,t,r){Nr(Be(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Uy(e,t,r,o){let s=o.includes(".")?ob(r,o):()=>r[o];if(Dt(e)){const c=t[e];Ge(c)&&St(s,c)}else if(Ge(e))St(s,e.bind(r));else if(kt(e))if(Be(e))e.forEach(c=>Uy(c,t,r,o));else{const c=Ge(e.handler)?e.handler.bind(r):t[e.handler];Ge(c)&&St(s,c,e)}}function Vy(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=>Zc(h,p,f,!0)),Zc(h,t,f)),kt(t)&&c.set(t,h),h}function Zc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Zc(e,c,r,!0),s&&s.forEach(f=>Zc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=wk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const wk={data:Tv,props:Cv,emits:Cv,methods:Rl,computed:Rl,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:Rl,directives:Rl,watch:_k,provide:Tv,inject:xk};function Tv(e,t){return t?e?function(){return rn(Ge(e)?e.call(this,this):e,Ge(t)?t.call(this,this):t)}:t:e}function xk(e,t){return Rl(Od(e),Od(t))}function Od(e){if(Be(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Mn(e,t){return e?[...new Set([].concat(e,t))]:t}function Rl(e,t){return e?rn(Object.create(null),e,t):t}function Cv(e,t){return e?Be(e)&&Be(t)?[...new Set([...e,...t])]:rn(Object.create(null),Yc(e),Yc(t??{})):t}function _k(e,t){if(!e)return t;if(!t)return e;const r=rn(Object.create(null),e);for(const o in t)r[o]=Mn(e[o],t[o]);return r}function Gy(){return{app:null,config:{isNativeTag:J0,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 Sk=0;function kk(e,t){return function(o,s=null){Ge(o)||(o=rn({},o)),s!=null&&!kt(s)&&(s=null);const c=Gy(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:Sk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:sT,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ge(v.install)?(f.add(v),v.install(p,...m)):Ge(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const w=p._ceVNode||Oe(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(w,v,b),h=!0,p._container=v,v.__vue_app__=p,Iu(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Nr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=Io;Io=p;try{return v()}finally{Io=m}}};return p}}let Io=null;function Cr(e,t){if(wn){let r=wn.provides;const o=wn.parent&&wn.parent.provides;o===r&&(r=wn.provides=Object.create(o)),r[e]=t}}function bn(e,t,r=!1){const o=Ci();if(o||Io){let s=Io?Io._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&&Ge(t)?t.call(o&&o.proxy):t}}function Ky(){return!!(Ci()||Io)}const Xy={},Yy=()=>Object.create(Xy),Zy=e=>Object.getPrototypeOf(e)===Xy;function Tk(e,t,r,o=!1){const s={},c=Yy();e.propsDefaults=Object.create(null),Jy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:Ch(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function Ck(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=vt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Ru(e.emitsOptions,b))continue;const w=t[b];if(h)if(xt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const A=ir(b);s[A]=Pd(h,d,A,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{Jy(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!xt(t,m)&&((v=ki(m))===m||!xt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=Pd(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!xt(t,m))&&(delete c[m],p=!0)}p&&vi(e.attrs,"set","")}function Jy(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Fl(h))continue;const p=t[h];let v;s&&xt(s,v=ir(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Ru(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=vt(r),p=d||mt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Pd(s,h,m,p[m],e,!xt(p,m))}}return f}function Pd(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&&Ge(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=Ea(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===ki(r))&&(o=!0))}return o}const Ek=new WeakMap;function Qy(e,t,r=!1){const o=r?Ek:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ge(e)){const v=m=>{h=!0;const[b,w]=Qy(m,t,!0);rn(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return kt(e)&&o.set(e,ks),ks;if(Be(c))for(let v=0;v<c.length;v++){const m=ir(c[v]);Ev(m)&&(f[m]=mt)}else if(c)for(const v in c){const m=ir(v);if(Ev(m)){const b=c[v],w=f[m]=Be(b)||Ge(b)?{type:b}:rn({},b),A=w.type;let L=!1,E=!0;if(Be(A))for(let M=0;M<A.length;++M){const $=A[M],R=Ge($)&&$.name;if(R==="Boolean"){L=!0;break}else R==="String"&&(E=!1)}else L=Ge(A)&&A.name==="Boolean";w[0]=L,w[1]=E,(L||xt(w,"default"))&&d.push(m)}}const p=[f,d];return kt(e)&&o.set(e,p),p}function Ev(e){return e[0]!=="$"&&!Fl(e)}const Oh=e=>e==="_"||e==="_ctx"||e==="$stable",Ph=e=>Be(e)?e.map(Er):[Er(e)],Ak=(e,t,r)=>{if(t._n)return t;const o=it((...s)=>Ph(t(...s)),r);return o._c=!1,o},eb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Oh(s))continue;const c=e[s];if(Ge(c))t[s]=Ak(s,c,o);else if(c!=null){const f=Ph(c);t[s]=()=>f}}},tb=(e,t)=>{const r=Ph(t);e.slots.default=()=>r},nb=(e,t,r)=>{for(const o in t)(r||!Oh(o))&&(e[o]=t[o])},Lk=(e,t,r)=>{const o=e.slots=Yy();if(e.vnode.shapeFlag&32){const s=t._;s?(nb(o,t,r),r&&ny(o,"_",s,!0)):eb(t,o)}else t&&tb(e,t)},Mk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=mt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:nb(s,t,r):(c=!t.$stable,eb(t,s)),f=t}else t&&(tb(e,t),f={default:1});if(c)for(const d in s)!Oh(d)&&f[d]==null&&delete s[d]},Qn=Xk;function $k(e){return Nk(e)}function Nk(e,t){const r=Tu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:w=Gr,insertStaticContent:A}=e,L=(z,U,Y,ue=null,he=null,fe=null,Ce=void 0,Ee=null,me=!!U.dynamicChildren)=>{if(z===U)return;z&&!Vr(z,U)&&(ue=W(z),je(z,he,fe,!0),z=null),U.patchFlag===-2&&(me=!1,U.dynamicChildren=null);const{type:be,ref:We,shapeFlag:$e}=U;switch(be){case zu:E(z,U,Y,ue);break;case sn:M(z,U,Y,ue);break;case td:z==null&&$(U,Y,ue,Ce);break;case nt:N(z,U,Y,ue,he,fe,Ce,Ee,me);break;default:$e&1?I(z,U,Y,ue,he,fe,Ce,Ee,me):$e&6?O(z,U,Y,ue,he,fe,Ce,Ee,me):($e&64||$e&128)&&be.process(z,U,Y,ue,he,fe,Ce,Ee,me,ae)}We!=null&&he?Wl(We,z&&z.ref,fe,U||z,!U):We==null&&z&&z.ref!=null&&Wl(z.ref,null,fe,z,!0)},E=(z,U,Y,ue)=>{if(z==null)o(U.el=d(U.children),Y,ue);else{const he=U.el=z.el;U.children!==z.children&&p(he,U.children)}},M=(z,U,Y,ue)=>{z==null?o(U.el=h(U.children||""),Y,ue):U.el=z.el},$=(z,U,Y,ue)=>{[z.el,z.anchor]=A(z.children,U,Y,ue,z.el,z.anchor)},R=({el:z,anchor:U},Y,ue)=>{let he;for(;z&&z!==U;)he=b(z),o(z,Y,ue),z=he;o(U,Y,ue)},T=({el:z,anchor:U})=>{let Y;for(;z&&z!==U;)Y=b(z),s(z),z=Y;s(U)},I=(z,U,Y,ue,he,fe,Ce,Ee,me)=>{U.type==="svg"?Ce="svg":U.type==="math"&&(Ce="mathml"),z==null?F(U,Y,ue,he,fe,Ce,Ee,me):J(z,U,he,fe,Ce,Ee,me)},F=(z,U,Y,ue,he,fe,Ce,Ee)=>{let me,be;const{props:We,shapeFlag:$e,transition:De,dirs:Ve}=z;if(me=z.el=f(z.type,fe,We&&We.is,We),$e&8?v(me,z.children):$e&16&&se(z.children,me,null,ue,he,ed(z,fe),Ce,Ee),Ve&&To(z,null,ue,"created"),re(me,z,z.scopeId,Ce,ue),We){for(const st in We)st!=="value"&&!Fl(st)&&c(me,st,null,We[st],fe,ue);"value"in We&&c(me,"value",null,We.value,fe),(be=We.onVnodeBeforeMount)&&jr(be,ue,z)}Ve&&To(z,null,ue,"beforeMount");const rt=Ok(he,De);rt&&De.beforeEnter(me),o(me,U,Y),((be=We&&We.onVnodeMounted)||rt||Ve)&&Qn(()=>{be&&jr(be,ue,z),rt&&De.enter(me),Ve&&To(z,null,ue,"mounted")},he)},re=(z,U,Y,ue,he)=>{if(Y&&w(z,Y),ue)for(let fe=0;fe<ue.length;fe++)w(z,ue[fe]);if(he){let fe=he.subTree;if(U===fe||ab(fe.type)&&(fe.ssContent===U||fe.ssFallback===U)){const Ce=he.vnode;re(z,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},se=(z,U,Y,ue,he,fe,Ce,Ee,me=0)=>{for(let be=me;be<z.length;be++){const We=z[be]=Ee?Vi(z[be]):Er(z[be]);L(null,We,U,Y,ue,he,fe,Ce,Ee)}},J=(z,U,Y,ue,he,fe,Ce)=>{const Ee=U.el=z.el;let{patchFlag:me,dynamicChildren:be,dirs:We}=U;me|=z.patchFlag&16;const $e=z.props||mt,De=U.props||mt;let Ve;if(Y&&Co(Y,!1),(Ve=De.onVnodeBeforeUpdate)&&jr(Ve,Y,U,z),We&&To(U,z,Y,"beforeUpdate"),Y&&Co(Y,!0),($e.innerHTML&&De.innerHTML==null||$e.textContent&&De.textContent==null)&&v(Ee,""),be?G(z.dynamicChildren,be,Ee,Y,ue,ed(U,he),fe):Ce||oe(z,U,Ee,null,Y,ue,ed(U,he),fe,!1),me>0){if(me&16)K(Ee,$e,De,Y,he);else if(me&2&&$e.class!==De.class&&c(Ee,"class",null,De.class,he),me&4&&c(Ee,"style",$e.style,De.style,he),me&8){const rt=U.dynamicProps;for(let st=0;st<rt.length;st++){const ut=rt[st],$t=$e[ut],lt=De[ut];(lt!==$t||ut==="value")&&c(Ee,ut,$t,lt,he,Y)}}me&1&&z.children!==U.children&&v(Ee,U.children)}else!Ce&&be==null&&K(Ee,$e,De,Y,he);((Ve=De.onVnodeUpdated)||We)&&Qn(()=>{Ve&&jr(Ve,Y,U,z),We&&To(U,z,Y,"updated")},ue)},G=(z,U,Y,ue,he,fe,Ce)=>{for(let Ee=0;Ee<U.length;Ee++){const me=z[Ee],be=U[Ee],We=me.el&&(me.type===nt||!Vr(me,be)||me.shapeFlag&198)?m(me.el):Y;L(me,be,We,null,ue,he,fe,Ce,!0)}},K=(z,U,Y,ue,he)=>{if(U!==Y){if(U!==mt)for(const fe in U)!Fl(fe)&&!(fe in Y)&&c(z,fe,U[fe],null,he,ue);for(const fe in Y){if(Fl(fe))continue;const Ce=Y[fe],Ee=U[fe];Ce!==Ee&&fe!=="value"&&c(z,fe,Ee,Ce,he,ue)}"value"in Y&&c(z,"value",U.value,Y.value,he)}},N=(z,U,Y,ue,he,fe,Ce,Ee,me)=>{const be=U.el=z?z.el:d(""),We=U.anchor=z?z.anchor:d("");let{patchFlag:$e,dynamicChildren:De,slotScopeIds:Ve}=U;Ve&&(Ee=Ee?Ee.concat(Ve):Ve),z==null?(o(be,Y,ue),o(We,Y,ue),se(U.children||[],Y,We,he,fe,Ce,Ee,me)):$e>0&&$e&64&&De&&z.dynamicChildren?(G(z.dynamicChildren,De,Y,he,fe,Ce,Ee),(U.key!=null||he&&U===he.subTree)&&rb(z,U,!0)):oe(z,U,Y,We,he,fe,Ce,Ee,me)},O=(z,U,Y,ue,he,fe,Ce,Ee,me)=>{U.slotScopeIds=Ee,z==null?U.shapeFlag&512?he.ctx.activate(U,Y,ue,Ce,me):P(U,Y,ue,he,fe,Ce,me):S(z,U,me)},P=(z,U,Y,ue,he,fe,Ce)=>{const Ee=z.component=eT(z,ue,he);if(Mu(z)&&(Ee.ctx.renderer=ae),tT(Ee,!1,Ce),Ee.asyncDep){if(he&&he.registerDep(Ee,H,Ce),!z.el){const me=Ee.subTree=Oe(sn);M(null,me,U,Y),z.placeholder=me.el}}else H(Ee,z,U,Y,he,fe,Ce)},S=(z,U,Y)=>{const ue=U.component=z.component;if(qk(z,U,Y))if(ue.asyncDep&&!ue.asyncResolved){V(ue,U,Y);return}else ue.next=U,ue.update();else U.el=z.el,ue.vnode=U},H=(z,U,Y,ue,he,fe,Ce)=>{const Ee=()=>{if(z.isMounted){let{next:$e,bu:De,u:Ve,parent:rt,vnode:st}=z;{const Bt=ib(z);if(Bt){$e&&($e.el=st.el,V(z,$e,Ce)),Bt.asyncDep.then(()=>{z.isUnmounted||Ee()});return}}let ut=$e,$t;Co(z,!1),$e?($e.el=st.el,V(z,$e,Ce)):$e=st,De&&Oc(De),($t=$e.props&&$e.props.onVnodeBeforeUpdate)&&jr($t,rt,$e,st),Co(z,!0);const lt=Lv(z),Kt=z.subTree;z.subTree=lt,L(Kt,lt,m(Kt.el),W(Kt),z,he,fe),$e.el=lt.el,ut===null&&zh(z,lt.el),Ve&&Qn(Ve,he),($t=$e.props&&$e.props.onVnodeUpdated)&&Qn(()=>jr($t,rt,$e,st),he)}else{let $e;const{el:De,props:Ve}=U,{bm:rt,m:st,parent:ut,root:$t,type:lt}=z,Kt=As(U);Co(z,!1),rt&&Oc(rt),!Kt&&($e=Ve&&Ve.onVnodeBeforeMount)&&jr($e,ut,U),Co(z,!0);{$t.ce&&$t.ce._def.shadowRoot!==!1&&$t.ce._injectChildStyle(lt);const Bt=z.subTree=Lv(z);L(null,Bt,Y,ue,z,he,fe),U.el=Bt.el}if(st&&Qn(st,he),!Kt&&($e=Ve&&Ve.onVnodeMounted)){const Bt=U;Qn(()=>jr($e,ut,Bt),he)}(U.shapeFlag&256||ut&&As(ut.vnode)&&ut.vnode.shapeFlag&256)&&z.a&&Qn(z.a,he),z.isMounted=!0,U=Y=ue=null}};z.scope.on();const me=z.effect=new cy(Ee);z.scope.off();const be=z.update=me.run.bind(me),We=z.job=me.runIfDirty.bind(me);We.i=z,We.id=z.uid,me.scheduler=()=>Mh(We),Co(z,!0),be()},V=(z,U,Y)=>{U.component=z;const ue=z.vnode.props;z.vnode=U,z.next=null,Ck(z,U.props,ue,Y),Mk(z,U.children,Y),wi(),xv(z),xi()},oe=(z,U,Y,ue,he,fe,Ce,Ee,me=!1)=>{const be=z&&z.children,We=z?z.shapeFlag:0,$e=U.children,{patchFlag:De,shapeFlag:Ve}=U;if(De>0){if(De&128){we(be,$e,Y,ue,he,fe,Ce,Ee,me);return}else if(De&256){ve(be,$e,Y,ue,he,fe,Ce,Ee,me);return}}Ve&8?(We&16&&ne(be,he,fe),$e!==be&&v(Y,$e)):We&16?Ve&16?we(be,$e,Y,ue,he,fe,Ce,Ee,me):ne(be,he,fe,!0):(We&8&&v(Y,""),Ve&16&&se($e,Y,ue,he,fe,Ce,Ee,me))},ve=(z,U,Y,ue,he,fe,Ce,Ee,me)=>{z=z||ks,U=U||ks;const be=z.length,We=U.length,$e=Math.min(be,We);let De;for(De=0;De<$e;De++){const Ve=U[De]=me?Vi(U[De]):Er(U[De]);L(z[De],Ve,Y,null,he,fe,Ce,Ee,me)}be>We?ne(z,he,fe,!0,!1,$e):se(U,Y,ue,he,fe,Ce,Ee,me,$e)},we=(z,U,Y,ue,he,fe,Ce,Ee,me)=>{let be=0;const We=U.length;let $e=z.length-1,De=We-1;for(;be<=$e&&be<=De;){const Ve=z[be],rt=U[be]=me?Vi(U[be]):Er(U[be]);if(Vr(Ve,rt))L(Ve,rt,Y,null,he,fe,Ce,Ee,me);else break;be++}for(;be<=$e&&be<=De;){const Ve=z[$e],rt=U[De]=me?Vi(U[De]):Er(U[De]);if(Vr(Ve,rt))L(Ve,rt,Y,null,he,fe,Ce,Ee,me);else break;$e--,De--}if(be>$e){if(be<=De){const Ve=De+1,rt=Ve<We?U[Ve].el:ue;for(;be<=De;)L(null,U[be]=me?Vi(U[be]):Er(U[be]),Y,rt,he,fe,Ce,Ee,me),be++}}else if(be>De)for(;be<=$e;)je(z[be],he,fe,!0),be++;else{const Ve=be,rt=be,st=new Map;for(be=rt;be<=De;be++){const Ft=U[be]=me?Vi(U[be]):Er(U[be]);Ft.key!=null&&st.set(Ft.key,be)}let ut,$t=0;const lt=De-rt+1;let Kt=!1,Bt=0;const Dn=new Array(lt);for(be=0;be<lt;be++)Dn[be]=0;for(be=Ve;be<=$e;be++){const Ft=z[be];if($t>=lt){je(Ft,he,fe,!0);continue}let Fn;if(Ft.key!=null)Fn=st.get(Ft.key);else for(ut=rt;ut<=De;ut++)if(Dn[ut-rt]===0&&Vr(Ft,U[ut])){Fn=ut;break}Fn===void 0?je(Ft,he,fe,!0):(Dn[Fn-rt]=be+1,Fn>=Bt?Bt=Fn:Kt=!0,L(Ft,U[Fn],Y,null,he,fe,Ce,Ee,me),$t++)}const Dr=Kt?Pk(Dn):ks;for(ut=Dr.length-1,be=lt-1;be>=0;be--){const Ft=rt+be,Fn=U[Ft],tt=U[Ft+1],ho=Ft+1<We?tt.el||tt.placeholder:ue;Dn[be]===0?L(null,Fn,Y,ho,he,fe,Ce,Ee,me):Kt&&(ut<0||be!==Dr[ut]?Pe(Fn,Y,ho,2):ut--)}}},Pe=(z,U,Y,ue,he=null)=>{const{el:fe,type:Ce,transition:Ee,children:me,shapeFlag:be}=z;if(be&6){Pe(z.component.subTree,U,Y,ue);return}if(be&128){z.suspense.move(U,Y,ue);return}if(be&64){Ce.move(z,U,Y,ae);return}if(Ce===nt){o(fe,U,Y);for(let $e=0;$e<me.length;$e++)Pe(me[$e],U,Y,ue);o(z.anchor,U,Y);return}if(Ce===td){R(z,U,Y);return}if(ue!==2&&be&1&&Ee)if(ue===0)Ee.beforeEnter(fe),o(fe,U,Y),Qn(()=>Ee.enter(fe),he);else{const{leave:$e,delayLeave:De,afterLeave:Ve}=Ee,rt=()=>{z.ctx.isUnmounted?s(fe):o(fe,U,Y)},st=()=>{fe._isLeaving&&fe[gi](!0),$e(fe,()=>{rt(),Ve&&Ve()})};De?De(fe,rt,st):st()}else o(fe,U,Y)},je=(z,U,Y,ue=!1,he=!1)=>{const{type:fe,props:Ce,ref:Ee,children:me,dynamicChildren:be,shapeFlag:We,patchFlag:$e,dirs:De,cacheIndex:Ve}=z;if($e===-2&&(he=!1),Ee!=null&&(wi(),Wl(Ee,null,Y,z,!0),xi()),Ve!=null&&(U.renderCache[Ve]=void 0),We&256){U.ctx.deactivate(z);return}const rt=We&1&&De,st=!As(z);let ut;if(st&&(ut=Ce&&Ce.onVnodeBeforeUnmount)&&jr(ut,U,z),We&6)Ye(z.component,Y,ue);else{if(We&128){z.suspense.unmount(Y,ue);return}rt&&To(z,null,U,"beforeUnmount"),We&64?z.type.remove(z,U,Y,ae,ue):be&&!be.hasOnce&&(fe!==nt||$e>0&&$e&64)?ne(be,U,Y,!1,!0):(fe===nt&&$e&384||!he&&We&16)&&ne(me,U,Y),ue&&Je(z)}(st&&(ut=Ce&&Ce.onVnodeUnmounted)||rt)&&Qn(()=>{ut&&jr(ut,U,z),rt&&To(z,null,U,"unmounted")},Y)},Je=z=>{const{type:U,el:Y,anchor:ue,transition:he}=z;if(U===nt){Xe(Y,ue);return}if(U===td){T(z);return}const fe=()=>{s(Y),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(z.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ee}=he,me=()=>Ce(Y,fe);Ee?Ee(z.el,fe,me):me()}else fe()},Xe=(z,U)=>{let Y;for(;z!==U;)Y=b(z),s(z),z=Y;s(U)},Ye=(z,U,Y)=>{const{bum:ue,scope:he,job:fe,subTree:Ce,um:Ee,m:me,a:be}=z;Av(me),Av(be),ue&&Oc(ue),he.stop(),fe&&(fe.flags|=8,je(Ce,z,U,Y)),Ee&&Qn(Ee,U),Qn(()=>{z.isUnmounted=!0},U)},ne=(z,U,Y,ue=!1,he=!1,fe=0)=>{for(let Ce=fe;Ce<z.length;Ce++)je(z[Ce],U,Y,ue,he)},W=z=>{if(z.shapeFlag&6)return W(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const U=b(z.anchor||z.el),Y=U&&U[JS];return Y?b(Y):U};let Q=!1;const X=(z,U,Y)=>{z==null?U._vnode&&je(U._vnode,null,null,!0):L(U._vnode||null,z,U,null,null,null,Y),U._vnode=z,Q||(Q=!0,xv(),Ly(),Q=!1)},ae={p:L,um:je,m:Pe,r:Je,mt:P,mc:se,pc:oe,pbc:G,n:W,o:e};return{render:X,hydrate:void 0,createApp:kk(X)}}function ed({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Co({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ok(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rb(e,t,r=!1){const o=e.children,s=t.children;if(Be(o)&&Be(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]=Vi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&rb(f,d)),d.type===zu&&d.patchFlag!==-1&&(d.el=f.el),d.type===sn&&!d.el&&(d.el=f.el)}}function Pk(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 ib(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ib(t)}function Av(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Rk=Symbol.for("v-scx"),zk=()=>bn(Rk);function Rh(e,t){return Ou(e,null,t)}function Ik(e,t){return Ou(e,null,{flush:"sync"})}function St(e,t,r){return Ou(e,t,r)}function Ou(e,t,r=mt){const{immediate:o,deep:s,flush:c,once:f}=r,d=rn({},r),h=t&&o||!t&&c!=="post";let p;if(oa){if(c==="sync"){const w=zk();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Gr,w.resume=Gr,w.pause=Gr,w}}const v=wn;d.call=(w,A,L)=>Nr(w,v,A,L);let m=!1;c==="post"?d.scheduler=w=>{Qn(w,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(w,A)=>{A?w():Mh(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};const b=XS(e,t,d);return oa&&(p?p.push(b):h&&b()),b}function Dk(e,t,r){const o=this.proxy,s=Dt(e)?e.includes(".")?ob(o,e):()=>o[e]:e.bind(o,o);let c;Ge(t)?c=t:(c=t.handler,r=t);const f=Ea(this),d=Ou(s,c.bind(o),r);return f(),d}function ob(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Pu(e,t,r=mt){const o=Ci(),s=ir(t),c=ki(t),f=sb(e,s),d=Ty((h,p)=>{let v,m=mt,b;return Ik(()=>{const w=e[s];Vn(v,w)&&(v=w,p())}),{get(){return h(),r.get?r.get(v):v},set(w){const A=r.set?r.set(w):w;if(!Vn(A,v)&&!(m!==mt&&Vn(w,m)))return;const L=o.vnode.props;L&&(t in L||s in L||c in L)&&(`onUpdate:${t}`in L||`onUpdate:${s}`in L||`onUpdate:${c}`in L)||(v=w,p()),o.emit(`update:${t}`,A),Vn(w,A)&&Vn(w,m)&&!Vn(A,b)&&p(),m=w,b=A}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||mt:d,done:!1}:{done:!0}}}},d}const sb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ir(t)}Modifiers`]||e[`${ki(t)}Modifiers`];function Fk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||mt;let s=r;const c=t.startsWith("update:"),f=c&&sb(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Dt(v)?v.trim():v)),f.number&&(s=r.map(kd)));let d,h=o[d=Nc(t)]||o[d=Nc(ir(t))];!h&&c&&(h=o[d=Nc(ki(t))]),h&&Nr(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,Nr(p,e,6,s)}}function lb(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ge(e)){const h=p=>{const v=lb(p,t,!0);v&&(d=!0,rn(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(kt(e)&&o.set(e,null),null):(Be(c)?c.forEach(h=>f[h]=null):rn(f,c),kt(e)&&o.set(e,f),f)}function Ru(e,t){return!e||!xu(t)?!1:(t=t.slice(2).replace(/Once$/,""),xt(e,t[0].toLowerCase()+t.slice(1))||xt(e,ki(t))||xt(e,t))}function Lv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:w,ctx:A,inheritAttrs:L}=e,E=Xc(e);let M,$;try{if(r.shapeFlag&4){const T=s||o,I=T;M=Er(p.call(I,T,v,m,w,b,A)),$=d}else{const T=t;M=Er(T.length>1?T(m,{attrs:d,slots:f,emit:h}):T(m,null)),$=t.props?d:Bk(d)}}catch(T){jl.length=0,Ta(T,e,1),M=Oe(sn)}let R=M;if($&&L!==!1){const T=Object.keys($),{shapeFlag:I}=R;T.length&&I&7&&(c&&T.some(bh)&&($=Wk($,c)),R=io(R,$,!1,!0))}return r.dirs&&(R=io(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&na(R,r.transition),M=R,Xc(E),M}function Hk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Fs(s)){if(s.type!==sn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const Bk=e=>{let t;for(const r in e)(r==="class"||r==="style"||xu(r))&&((t||(t={}))[r]=e[r]);return t},Wk=(e,t)=>{const r={};for(const o in e)(!bh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function qk(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?Mv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!Ru(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Mv(o,f,p):!0:!!f;return!1}function Mv(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]&&!Ru(r,c))return!0}return!1}function zh({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 ab=e=>e.__isSuspense;let Rd=0;const jk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Uk(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}Vk(e,t,r,o,s,f,d,h,p)}},hydrate:Gk,normalize:Kk},Ih=jk;function ia(e,t){const r=e.props&&e.props[t];Ge(r)&&r()}function Uk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=cb(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(ia(e,"onPending"),ia(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Ls(b,e.ssFallback)):b.resolve(!1,!0)}function Vk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:A,pendingBranch:L,isInFallback:E,isHydrating:M}=m;if(L)m.pendingBranch=b,Vr(b,L)?(h(L,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():E&&(M||(h(A,w,r,o,s,null,c,f,d),Ls(m,w)))):(m.pendingId=Rd++,M?(m.isHydrating=!1,m.activeBranch=L):p(L,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),E?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(A,w,r,o,s,null,c,f,d),Ls(m,w))):A&&Vr(b,A)?(h(A,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(A&&Vr(b,A))h(A,b,r,o,s,m,c,f,d),Ls(m,b);else if(ia(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Rd++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:$,pendingId:R}=m;$>0?setTimeout(()=>{m.pendingId===R&&m.fallback(w)},$):$===0&&m.fallback(w)}}function cb(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:w,n:A,o:{parentNode:L,remove:E}}=p;let M;const $=Yk(e);$&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const R=e.props?ry(e.props.timeout):void 0,T=c,I={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Rd++,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(F=!1,re=!1){const{vnode:se,activeBranch:J,pendingBranch:G,pendingId:K,effects:N,parentComponent:O,container:P}=I;let S=!1;I.isHydrating?I.isHydrating=!1:F||(S=J&&G.transition&&G.transition.mode==="out-in",S&&(J.transition.afterLeave=()=>{K===I.pendingId&&(b(G,P,c===T?A(J):c,0),Ad(N))}),J&&(L(J.el)===P&&(c=A(J)),w(J,O,I,!0)),S||b(G,P,c,0)),Ls(I,G),I.pendingBranch=null,I.isInFallback=!1;let H=I.parent,V=!1;for(;H;){if(H.pendingBranch){H.effects.push(...N),V=!0;break}H=H.parent}!V&&!S&&Ad(N),I.effects=[],$&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!re&&t.resolve()),ia(se,"onResolve")},fallback(F){if(!I.pendingBranch)return;const{vnode:re,activeBranch:se,parentComponent:J,container:G,namespace:K}=I;ia(re,"onFallback");const N=A(se),O=()=>{I.isInFallback&&(m(null,F,G,N,J,null,K,d,h),Ls(I,F))},P=F.transition&&F.transition.mode==="out-in";P&&(se.transition.afterLeave=O),I.isInFallback=!0,w(se,J,null,!0),P||O()},move(F,re,se){I.activeBranch&&b(I.activeBranch,F,re,se),I.container=F},next(){return I.activeBranch&&A(I.activeBranch)},registerDep(F,re,se){const J=!!I.pendingBranch;J&&I.deps++;const G=F.vnode.el;F.asyncDep.catch(K=>{Ta(K,F,0)}).then(K=>{if(F.isUnmounted||I.isUnmounted||I.pendingId!==F.suspenseId)return;F.asyncResolved=!0;const{vnode:N}=F;Id(F,K),G&&(N.el=G);const O=!G&&F.subTree.el;re(F,N,L(G||F.subTree.el),G?null:A(F.subTree),I,f,se),O&&E(O),zh(F,N.el),J&&--I.deps===0&&I.resolve()})},unmount(F,re){I.isUnmounted=!0,I.activeBranch&&w(I.activeBranch,r,F,re),I.pendingBranch&&w(I.pendingBranch,r,F,re)}};return I}function Gk(e,t,r,o,s,c,f,d,h){const p=t.suspense=cb(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function Kk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=$v(o?r.default:r),e.ssFallback=o?$v(r.fallback):Oe(sn)}function $v(e){let t;if(Ge(e)){const r=Ds&&e._c;r&&(e._d=!1,ie()),e=e(),r&&(e._d=!0,t=Kn,ub())}return Be(e)&&(e=Hk(e)),e=Er(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Xk(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):Ad(e)}function Ls(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,zh(o,s))}function Yk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),zu=Symbol.for("v-txt"),sn=Symbol.for("v-cmt"),td=Symbol.for("v-stc"),jl=[];let Kn=null;function ie(e=!1){jl.push(Kn=e?null:[])}function ub(){jl.pop(),Kn=jl[jl.length-1]||null}let Ds=1;function Jc(e,t=!1){Ds+=e,e<0&&Kn&&t&&(Kn.hasOnce=!0)}function fb(e){return e.dynamicChildren=Ds>0?Kn||ks:null,ub(),Ds>0&&Kn&&Kn.push(e),e}function ye(e,t,r,o,s,c){return fb(ee(e,t,r,o,s,c,!0))}function Ze(e,t,r,o,s){return fb(Oe(e,t,r,o,s,!0))}function Fs(e){return e?e.__v_isVNode===!0:!1}function Vr(e,t){return e.type===t.type&&e.key===t.key}const db=({key:e})=>e??null,Pc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Dt(e)||Tt(e)||Ge(e)?{i:hn,r:e,k:t,f:!!r}:e:null);function ee(e,t=null,r=null,o=0,s=null,c=e===nt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&db(t),ref:t&&Pc(t),scopeId:Lu,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:hn};return d?(Dh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Dt(r)?8:16),Ds>0&&!f&&Kn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Kn.push(h),h}const Oe=Zk;function Zk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Wy)&&(e=sn),Fs(e)){const d=io(e,t,!0);return r&&Dh(d,r),Ds>0&&!c&&Kn&&(d.shapeFlag&6?Kn[Kn.indexOf(e)]=d:Kn.push(d)),d.patchFlag=-2,d}if(oT(e)&&(e=e.__vccOpts),t){t=hb(t);let{class:d,style:h}=t;d&&!Dt(d)&&(t.class=ot(d)),kt(h)&&(Ah(h)&&!Be(h)&&(h=rn({},h)),t.style=tn(h))}const f=Dt(e)?1:ab(e)?128:Py(e)?64:kt(e)?4:Ge(e)?2:0;return ee(e,t,r,o,s,f,c,!0)}function hb(e){return e?Ah(e)||Zy(e)?rn({},e):e:null}function io(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?bi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&db(p),ref:t&&t.ref?r&&c?Be(c)?c.concat(Pc(t)):[c,Pc(t)]:Pc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&io(e.ssContent),ssFallback:e.ssFallback&&io(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&na(v,h.clone(v)),v}function dt(e=" ",t=0){return Oe(zu,null,e,t)}function qe(e="",t=!1){return t?(ie(),Ze(sn,null,e)):Oe(sn,null,e)}function Er(e){return e==null||typeof e=="boolean"?Oe(sn):Be(e)?Oe(nt,null,e.slice()):Fs(e)?Vi(e):Oe(zu,null,String(e))}function Vi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:io(e)}function Dh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Be(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Dh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Zy(t)?t._ctx=hn:s===3&&hn&&(hn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ge(t)?(t={default:t,_ctx:hn},r=32):(t=String(t),o&64?(r=16,t=[dt(t)]):r=8);e.children=t,e.shapeFlag|=r}function bi(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=ot([t.class,o.class]));else if(s==="style")t.style=tn([t.style,o.style]);else if(xu(s)){const c=t[s],f=o[s];f&&c!==f&&!(Be(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function jr(e,t,r,o=null){Nr(e,t,7,[r,o])}const Jk=Gy();let Qk=0;function eT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Jk,c={uid:Qk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new bS(!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:Qy(o,s),emitsOptions:lb(o,s),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:o.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=Fk.bind(null,c),e.ce&&e.ce(c),c}let wn=null;const Ci=()=>wn||hn;let Qc,zd;{const e=Tu(),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)}};Qc=t("__VUE_INSTANCE_SETTERS__",r=>wn=r),zd=t("__VUE_SSR_SETTERS__",r=>oa=r)}const Ea=e=>{const t=wn;return Qc(e),e.scope.on(),()=>{e.scope.off(),Qc(t)}},Nv=()=>{wn&&wn.scope.off(),Qc(null)};function pb(e){return e.vnode.shapeFlag&4}let oa=!1;function tT(e,t=!1,r=!1){t&&zd(t);const{props:o,children:s}=e.vnode,c=pb(e);Tk(e,o,c,t),Lk(e,s,r||t);const f=c?nT(e,t):void 0;return t&&zd(!1),f}function nT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,gk);const{setup:o}=r;if(o){wi();const s=e.setupContext=o.length>1?vb(e):null,c=Ea(e),f=ka(o,e,0,[e.props,s]),d=Q0(f);if(xi(),c(),(d||e.sp)&&!As(e)&&Hy(e),d){if(f.then(Nv,Nv),t)return f.then(h=>{Id(e,h)}).catch(h=>{Ta(h,e,0)});e.asyncDep=f}else Id(e,f)}else gb(e)}function Id(e,t,r){Ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=ky(t)),gb(e)}function gb(e,t,r){const o=e.type;e.render||(e.render=o.render||Gr);{const s=Ea(e);wi();try{yk(e)}finally{xi(),s()}}}const rT={get(e,t){return yn(e,"get",""),e[t]}};function vb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,rT),slots:e.slots,emit:e.emit,expose:t}}function Iu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ky(Lh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in ql)return ql[r](e)},has(t,r){return r in t||r in ql}})):e.proxy}function iT(e,t=!0){return Ge(e)?e.displayName||e.name:e.name||t&&e.__name}function oT(e){return Ge(e)&&"__vccOpts"in e}const Se=(e,t)=>GS(e,t,oa);function Aa(e,t,r){const o=arguments.length;return o===2?kt(t)&&!Be(t)?Fs(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Fs(r)&&(r=[r]),Oe(e,t,r))}const sT="3.5.20";/**
14
- * @vue/runtime-dom v3.5.20
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/let Dd;const Ov=typeof window<"u"&&window.trustedTypes;if(Ov)try{Dd=Ov.createPolicy("vue",{createHTML:e=>e})}catch{}const mb=Dd?e=>Dd.createHTML(e):e=>e,lT="http://www.w3.org/2000/svg",aT="http://www.w3.org/1998/Math/MathML",hi=typeof document<"u"?document:null,Pv=hi&&hi.createElement("template"),cT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?hi.createElementNS(lT,e):t==="mathml"?hi.createElementNS(aT,e):r?hi.createElement(e,{is:r}):hi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>hi.createTextNode(e),createComment:e=>hi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Pv.innerHTML=mb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Pv.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]}},Hi="transition",Ll="animation",sa=Symbol("_vtc"),yb={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},uT=rn({},Ry,yb),fT=e=>(e.displayName="Transition",e.props=uT,e),dT=fT((e,{slots:t})=>Aa(tk,hT(e),t)),Eo=(e,t=[])=>{Be(e)?e.forEach(r=>r(...t)):e&&e(...t)},Rv=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function hT(e){const t={};for(const N in e)N in yb||(t[N]=e[N]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,A=pT(s),L=A&&A[0],E=A&&A[1],{onBeforeEnter:M,onEnter:$,onEnterCancelled:R,onLeave:T,onLeaveCancelled:I,onBeforeAppear:F=M,onAppear:re=$,onAppearCancelled:se=R}=t,J=(N,O,P,S)=>{N._enterCancelled=S,Ao(N,O?v:d),Ao(N,O?p:f),P&&P()},G=(N,O)=>{N._isLeaving=!1,Ao(N,m),Ao(N,w),Ao(N,b),O&&O()},K=N=>(O,P)=>{const S=N?re:$,H=()=>J(O,N,P);Eo(S,[O,H]),zv(()=>{Ao(O,N?h:c),ui(O,N?v:d),Rv(S)||Iv(O,o,L,H)})};return rn(t,{onBeforeEnter(N){Eo(M,[N]),ui(N,c),ui(N,f)},onBeforeAppear(N){Eo(F,[N]),ui(N,h),ui(N,p)},onEnter:K(!1),onAppear:K(!0),onLeave(N,O){N._isLeaving=!0;const P=()=>G(N,O);ui(N,m),N._enterCancelled?(ui(N,b),Hv()):(Hv(),ui(N,b)),zv(()=>{N._isLeaving&&(Ao(N,m),ui(N,w),Rv(T)||Iv(N,o,E,P))}),Eo(T,[N,P])},onEnterCancelled(N){J(N,!1,void 0,!0),Eo(R,[N])},onAppearCancelled(N){J(N,!0,void 0,!0),Eo(se,[N])},onLeaveCancelled(N){G(N),Eo(I,[N])}})}function pT(e){if(e==null)return null;if(kt(e))return[nd(e.enter),nd(e.leave)];{const t=nd(e);return[t,t]}}function nd(e){return ry(e)}function ui(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[sa]||(e[sa]=new Set)).add(t)}function Ao(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[sa];r&&(r.delete(t),r.size||(e[sa]=void 0))}function zv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gT=0;function Iv(e,t,r,o){const s=e._endId=++gT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=vT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function vT(e,t){const r=window.getComputedStyle(e),o=A=>(r[A]||"").split(", "),s=o(`${Hi}Delay`),c=o(`${Hi}Duration`),f=Dv(s,c),d=o(`${Ll}Delay`),h=o(`${Ll}Duration`),p=Dv(d,h);let v=null,m=0,b=0;t===Hi?f>0&&(v=Hi,m=f,b=c.length):t===Ll?p>0&&(v=Ll,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Hi:Ll:null,b=v?v===Hi?c.length:h.length:0);const w=v===Hi&&/\b(transform|all)(,|$)/.test(o(`${Hi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:w}}function Dv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Fv(r)+Fv(e[o])))}function Fv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Hv(){return document.body.offsetHeight}function mT(e,t,r){const o=e[sa];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const eu=Symbol("_vod"),bb=Symbol("_vsh"),Yi={name:"show",beforeMount(e,{value:t},{transition:r}){e[eu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Ml(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),Ml(e,!0),o.enter(e)):o.leave(e,()=>{Ml(e,!1)}):Ml(e,t))},beforeUnmount(e,{value:t}){Ml(e,t)}};function Ml(e,t){e.style.display=t?e[eu]:"none",e[bb]=!t}const yT=Symbol(""),bT=/(^|;)\s*display\s*:/;function wT(e,t,r){const o=e.style,s=Dt(r);let c=!1;if(r&&!s){if(t)if(Dt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Rc(o,d,"")}else for(const f in t)r[f]==null&&Rc(o,f,"");for(const f in r)f==="display"&&(c=!0),Rc(o,f,r[f])}else if(s){if(t!==r){const f=o[yT];f&&(r+=";"+f),o.cssText=r,c=bT.test(r)}}else t&&e.removeAttribute("style");eu in e&&(e[eu]=c?o.display:"",e[bb]&&(o.display="none"))}const Bv=/\s*!important$/;function Rc(e,t,r){if(Be(r))r.forEach(o=>Rc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=xT(e,t);Bv.test(r)?e.setProperty(ki(o),r.replace(Bv,""),"important"):e[o]=r}}const Wv=["Webkit","Moz","ms"],rd={};function xT(e,t){const r=rd[t];if(r)return r;let o=ir(t);if(o!=="filter"&&o in e)return rd[t]=o;o=ku(o);for(let s=0;s<Wv.length;s++){const c=Wv[s]+o;if(c in e)return rd[t]=c}return t}const qv="http://www.w3.org/1999/xlink";function jv(e,t,r,o,s,c=mS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(qv,t.slice(6,t.length)):e.setAttributeNS(qv,t,r):r==null||c&&!iy(r)?e.removeAttribute(t):e.setAttribute(t,c?"":$r(r)?String(r):r)}function Uv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?mb(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=iy(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 Oo(e,t,r,o){e.addEventListener(t,r,o)}function _T(e,t,r,o){e.removeEventListener(t,r,o)}const Vv=Symbol("_vei");function ST(e,t,r,o,s=null){const c=e[Vv]||(e[Vv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=kT(t);if(o){const p=c[t]=ET(o,s);Oo(e,d,p,h)}else f&&(_T(e,d,f,h),c[t]=void 0)}}const Gv=/(?:Once|Passive|Capture)$/;function kT(e){let t;if(Gv.test(e)){t={};let o;for(;o=e.match(Gv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ki(e.slice(2)),t]}let id=0;const TT=Promise.resolve(),CT=()=>id||(TT.then(()=>id=0),id=Date.now());function ET(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Nr(AT(o,r.value),t,5,[o])};return r.value=e,r.attached=CT(),r}function AT(e,t){if(Be(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 Kv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,LT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?mT(e,o,f):t==="style"?wT(e,r,o):xu(t)?bh(t)||ST(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):MT(e,t,o,f))?(Uv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&jv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Dt(o))?Uv(e,ir(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),jv(e,t,o,f))};function MT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Kv(t)&&Ge(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 Kv(t)&&Dt(r)?!1:t in e}const tu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?r=>Oc(t,r):t};function $T(e){e.target.composing=!0}function Xv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ms=Symbol("_assign"),NT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Ms]=tu(s);const c=o||s.props&&s.props.type==="number";Oo(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=kd(d)),e[Ms](d)}),r&&Oo(e,"change",()=>{e.value=e.value.trim()}),t||(Oo(e,"compositionstart",$T),Oo(e,"compositionend",Xv),Oo(e,"change",Xv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Ms]=tu(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?kd(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))}},wb={deep:!0,created(e,t,r){e[Ms]=tu(r),Oo(e,"change",()=>{const o=e._modelValue,s=OT(e),c=e.checked,f=e[Ms];if(Be(o)){const d=oy(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(_u(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(xb(e,c))})},mounted:Yv,beforeUpdate(e,t,r){e[Ms]=tu(r),Yv(e,t,r)}};function Yv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Be(t))s=oy(t,o.props.value)>-1;else if(_u(t))s=t.has(o.props.value);else{if(t===r)return;s=Cu(t,xb(e,!0))}e.checked!==s&&(e.checked=s)}function OT(e){return"_value"in e?e._value:e.value}function xb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const PT=["ctrl","shift","alt","meta"],RT={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)=>PT.some(r=>e[`${r}Key`]&&!t.includes(r))},zc=(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=RT[t[f]];if(d&&d(s,t))return}return e(s,...c)})},zT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Fd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=ki(s.key);if(t.some(f=>f===c||zT[f]===c))return e(s)})},IT=rn({patchProp:LT},cT);let Zv;function DT(){return Zv||(Zv=$k(IT))}const _b=(...e)=>{const t=DT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=HT(o);if(!s)return;const c=t._component;!Ge(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,FT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function FT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function HT(e){return Dt(e)?document.querySelector(e):e}const Jr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},BT={};function WT(e,t){const r=Fo("RouterView");return ie(),Ze(r)}const qT=Jr(BT,[["render",WT]]),jT=["top","right","bottom","left"],Jv=["start","end"],Qv=jT.reduce((e,t)=>e.concat(t,t+"-"+Jv[0],t+"-"+Jv[1]),[]),la=Math.min,$o=Math.max,UT={left:"right",right:"left",bottom:"top",top:"bottom"},VT={start:"end",end:"start"};function Hd(e,t,r){return $o(e,la(t,r))}function Bo(e,t){return typeof e=="function"?e(t):e}function Zr(e){return e.split("-")[0]}function Mr(e){return e.split("-")[1]}function Sb(e){return e==="x"?"y":"x"}function Fh(e){return e==="y"?"height":"width"}function La(e){return["top","bottom"].includes(Zr(e))?"y":"x"}function Hh(e){return Sb(La(e))}function kb(e,t,r){r===void 0&&(r=!1);const o=Mr(e),s=Hh(e),c=Fh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=ru(f)),[f,ru(f)]}function GT(e){const t=ru(e);return[nu(e),t,nu(t)]}function nu(e){return e.replace(/start|end/g,t=>VT[t])}function KT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function XT(e,t,r,o){const s=Mr(e);let c=KT(Zr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(nu)))),c}function ru(e){return e.replace(/left|right|bottom|top/g,t=>UT[t])}function YT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tb(e){return typeof e!="number"?YT(e):{top:e,right:e,bottom:e,left:e}}function Ul(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function em(e,t,r){let{reference:o,floating:s}=e;const c=La(t),f=Hh(t),d=Fh(f),h=Zr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:v,y:o.y-s.height};break;case"bottom":w={x:v,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:m};break;case"left":w={x:o.x-s.width,y:m};break;default:w={x:o.x,y:o.y}}switch(Mr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const ZT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=em(p,o,h),b=o,w={},A=0;for(let L=0;L<d.length;L++){const{name:E,fn:M}=d[L],{x:$,y:R,data:T,reset:I}=await M({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=$??v,m=R??m,w={...w,[E]:{...w[E],...T}},I&&A<=50&&(A++,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:v,y:m}=em(p,b,h)),L=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function Du(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=Bo(t,e),A=Tb(w),E=d[b?m==="floating"?"reference":"floating":m],M=Ul(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(E)))==null||r?E:E.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),$=m==="floating"?{...f.floating,x:o,y:s}:f.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),T=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},I=Ul(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:$,offsetParent:R,strategy:h}):$);return{top:(M.top-I.top+A.top)/T.y,bottom:(I.bottom-M.bottom+A.bottom)/T.y,left:(M.left-I.left+A.left)/T.x,right:(I.right-M.right+A.right)/T.x}}const JT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=Bo(e,t)||{};if(p==null)return{};const m=Tb(v),b={x:r,y:o},w=Hh(s),A=Fh(w),L=await f.getDimensions(p),E=w==="y",M=E?"top":"left",$=E?"bottom":"right",R=E?"clientHeight":"clientWidth",T=c.reference[A]+c.reference[w]-b[w]-c.floating[A],I=b[w]-c.reference[w],F=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let re=F?F[R]:0;(!re||!await(f.isElement==null?void 0:f.isElement(F)))&&(re=d.floating[R]||c.floating[A]);const se=T/2-I/2,J=re/2-L[A]/2-1,G=la(m[M],J),K=la(m[$],J),N=G,O=re-L[A]-K,P=re/2-L[A]/2+se,S=Hd(N,P,O),H=!h.arrow&&Mr(s)!=null&&P!==S&&c.reference[A]/2-(P<N?G:K)-L[A]/2<0,V=H?P<N?P-N:P-O:0;return{[w]:b[w]+V,data:{[w]:S,centerOffset:P-S-V,...H&&{alignmentOffset:V}},reset:H}}});function QT(e,t,r){return(e?[...r.filter(s=>Mr(s)===e),...r.filter(s=>Mr(s)!==e)]:r.filter(s=>Zr(s)===s)).filter(s=>e?Mr(s)===e||(t?nu(s)!==s:!1):!0)}const eC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=Qv,autoAlignment:w=!0,...A}=Bo(e,t),L=m!==void 0||b===Qv?QT(m||null,w,b):b,E=await Du(t,A),M=((r=f.autoPlacement)==null?void 0:r.index)||0,$=L[M];if($==null)return{};const R=kb($,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==$)return{reset:{placement:L[0]}};const T=[E[Zr($)],E[R[0]],E[R[1]]],I=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:T}],F=L[M+1];if(F)return{data:{index:M+1,overflows:I},reset:{placement:F}};const re=I.map(G=>{const K=Mr(G.placement);return[G.placement,K&&v?G.overflows.slice(0,2).reduce((N,O)=>N+O,0):G.overflows[0],G.overflows]}).sort((G,K)=>G[1]-K[1]),J=((s=re.filter(G=>G[2].slice(0,Mr(G[0])?2:3).every(K=>K<=0))[0])==null?void 0:s[0])||re[0][0];return J!==d?{data:{index:M+1,overflows:I},reset:{placement:J}}:{}}}},tC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:L=!0,...E}=Bo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Zr(s),$=Zr(d)===d,R=await(h.isRTL==null?void 0:h.isRTL(p.floating)),T=b||($||!L?[ru(d)]:GT(d));!b&&A!=="none"&&T.push(...XT(d,L,A,R));const I=[d,...T],F=await Du(t,E),re=[];let se=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&re.push(F[M]),m){const N=kb(s,f,R);re.push(F[N[0]],F[N[1]])}if(se=[...se,{placement:s,overflows:re}],!re.every(N=>N<=0)){var J,G;const N=(((J=c.flip)==null?void 0:J.index)||0)+1,O=I[N];if(O)return{data:{index:N,overflows:se},reset:{placement:O}};let P=(G=se.filter(S=>S.overflows[0]<=0).sort((S,H)=>S.overflows[1]-H.overflows[1])[0])==null?void 0:G.placement;if(!P)switch(w){case"bestFit":{var K;const S=(K=se.map(H=>[H.placement,H.overflows.filter(V=>V>0).reduce((V,oe)=>V+oe,0)]).sort((H,V)=>H[1]-V[1])[0])==null?void 0:K[0];S&&(P=S);break}case"initialPlacement":P=d;break}if(s!==P)return{reset:{placement:P}}}return{}}}};async function nC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Zr(r),d=Mr(r),h=La(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Bo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:A}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof A=="number"&&(w=d==="end"?A*-1:A),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const rC=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 nC(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}}}}},iC=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:E=>{let{x:M,y:$}=E;return{x:M,y:$}}},...h}=Bo(e,t),p={x:r,y:o},v=await Du(t,h),m=La(Zr(s)),b=Sb(m);let w=p[b],A=p[m];if(c){const E=b==="y"?"top":"left",M=b==="y"?"bottom":"right",$=w+v[E],R=w-v[M];w=Hd($,w,R)}if(f){const E=m==="y"?"top":"left",M=m==="y"?"bottom":"right",$=A+v[E],R=A-v[M];A=Hd($,A,R)}const L=d.fn({...t,[b]:w,[m]:A});return{...L,data:{x:L.x-r,y:L.y-o}}}}},oC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Bo(e,t),h=await Du(t,d),p=Zr(r),v=Mr(r),m=La(r)==="y",{width:b,height:w}=o.floating;let A,L;p==="top"||p==="bottom"?(A=p,L=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(L=p,A=v==="end"?"top":"bottom");const E=w-h[A],M=b-h[L],$=!t.middlewareData.shift;let R=E,T=M;if(m){const F=b-h.left-h.right;T=v||$?la(M,F):F}else{const F=w-h.top-h.bottom;R=v||$?la(E,F):F}if($&&!v){const F=$o(h.left,0),re=$o(h.right,0),se=$o(h.top,0),J=$o(h.bottom,0);m?T=b-2*(F!==0||re!==0?F+re:$o(h.left,h.right)):R=w-2*(se!==0||J!==0?se+J:$o(h.top,h.bottom))}await f({...t,availableWidth:T,availableHeight:R});const I=await s.getDimensions(c.floating);return b!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function ur(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kr(e){return ur(e).getComputedStyle(e)}const tm=Math.min,Vl=Math.max,iu=Math.round;function Cb(e){const t=Kr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=iu(r)!==s||iu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function oo(e){return Ab(e)?(e.nodeName||"").toLowerCase():""}let bc;function Eb(){if(bc)return bc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(bc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),bc):navigator.userAgent}function Xr(e){return e instanceof ur(e).HTMLElement}function Qi(e){return e instanceof ur(e).Element}function Ab(e){return e instanceof ur(e).Node}function nm(e){return typeof ShadowRoot>"u"?!1:e instanceof ur(e).ShadowRoot||e instanceof ShadowRoot}function Fu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Kr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function sC(e){return["table","td","th"].includes(oo(e))}function Bd(e){const t=/firefox/i.test(Eb()),r=Kr(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 Lb(){return!/^((?!chrome|android).)*safari/i.test(Eb())}function Bh(e){return["html","body","#document"].includes(oo(e))}function Mb(e){return Qi(e)?e:e.contextElement}const $b={x:1,y:1};function $s(e){const t=Mb(e);if(!Xr(t))return $b;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=Cb(t);let f=(c?iu(r.width):r.width)/o,d=(c?iu(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=Mb(e);let h=$b;t&&(o?Qi(o)&&(h=$s(o)):h=$s(e));const p=d?ur(d):window,v=!Lb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,A=f.height/h.y;if(d){const L=ur(d),E=o&&Qi(o)?ur(o):o;let M=L.frameElement;for(;M&&o&&E!==L;){const $=$s(M),R=M.getBoundingClientRect(),T=getComputedStyle(M);R.x+=(M.clientLeft+parseFloat(T.paddingLeft))*$.x,R.y+=(M.clientTop+parseFloat(T.paddingTop))*$.y,m*=$.x,b*=$.y,w*=$.x,A*=$.y,m+=R.x,b+=R.y,M=ur(M).frameElement}}return{width:w,height:A,top:b,right:m+w,bottom:b+A,left:m,x:m,y:b}}function eo(e){return((Ab(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hu(e){return Qi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nb(e){return aa(eo(e)).left+Hu(e).scrollLeft}function ca(e){if(oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nm(e)&&e.host||eo(e);return nm(t)?t.host:t}function Ob(e){const t=ca(e);return Bh(t)?t.ownerDocument.body:Xr(t)&&Fu(t)?t:Ob(t)}function ou(e,t){var r;t===void 0&&(t=[]);const o=Ob(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=ur(o);return s?t.concat(c,c.visualViewport||[],Fu(o)?o:[]):t.concat(o,ou(o))}function rm(e,t,r){return t==="viewport"?Ul(function(o,s){const c=ur(o),f=eo(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=Lb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Qi(t)?Ul(function(o,s){const c=aa(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Xr(o)?$s(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)):Ul(function(o){const s=eo(o),c=Hu(o),f=o.ownerDocument.body,d=Vl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Vl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Nb(o);const v=-c.scrollTop;return Kr(f).direction==="rtl"&&(p+=Vl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(eo(e)))}function im(e){return Xr(e)&&Kr(e).position!=="fixed"?e.offsetParent:null}function om(e){const t=ur(e);let r=im(e);for(;r&&sC(r)&&Kr(r).position==="static";)r=im(r);return r&&(oo(r)==="html"||oo(r)==="body"&&Kr(r).position==="static"&&!Bd(r))?t:r||function(o){let s=ca(o);for(;Xr(s)&&!Bh(s);){if(Bd(s))return s;s=ca(s)}return null}(e)||t}function lC(e,t,r){const o=Xr(t),s=eo(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((oo(t)!=="body"||Fu(s))&&(f=Hu(t)),Xr(t)){const h=aa(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Nb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const aC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=ou(p).filter(E=>Qi(E)&&oo(E)!=="body"),w=null;const A=Kr(p).position==="fixed";let L=A?ca(p):p;for(;Qi(L)&&!Bh(L);){const E=Kr(L),M=Bd(L);(A?M||w:M||E.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=E:b=b.filter($=>$!==L),L=ca(L)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=rm(t,v,s);return p.top=Vl(m.top,p.top),p.right=tm(m.right,p.right),p.bottom=tm(m.bottom,p.bottom),p.left=Vl(m.left,p.left),p},rm(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=Xr(r),c=eo(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")&&((oo(r)!=="body"||Fu(c))&&(f=Hu(r)),Xr(r))){const p=aa(r);d=$s(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:Qi,getDimensions:function(e){return Xr(e)?Cb(e):e.getBoundingClientRect()},getOffsetParent:om,getDocumentElement:eo,getScale:$s,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||om,c=this.getDimensions;return{reference:lC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Kr(e).direction==="rtl"},cC=(e,t,r)=>{const o=new Map,s={platform:aC,...r},c={...s.platform,_c:o};return ZT(e,t,{...s,platform:c})},to={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 ua(e,t){let r=to.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=to.themes[r.$extend]||{}:(r=null,o=to[t]):r=null;while(r);return o}function uC(e){const t=[e];let r=to.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=to.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function sm(e){const t=[e];let r=to.themes[e]||{};do r.$extend?(t.push(r.$extend),r=to.themes[r.$extend]||{}):r=null;while(r);return t}let fa=!1;if(typeof window<"u"){fa=!1;try{const e=Object.defineProperty({},"passive",{get(){fa=!0}});window.addEventListener("test",null,e)}catch{}}let Pb=!1;typeof window<"u"&&typeof navigator<"u"&&(Pb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Rb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),lm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},am={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function cm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function od(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const tr=[];let Lo=null;const um={};function fm(e){let t=um[e];return t||(t=um[e]=[]),t}let Wd=function(){};typeof window<"u"&&(Wd=window.Element);function ft(e){return function(t){return ua(t.theme,e)}}const sd="__floating-vue__popper",zb=()=>at({name:"VPopper",provide(){return{[sd]:{parentPopper:this}}},inject:{[sd]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>Rb.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,Wd,Boolean],default:ft("container")},boundary:{type:[String,Wd],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[sd])==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(rC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(eC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(iC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(tC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(JT({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(oC({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 cC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Lo&&this.instantMove&&Lo.instantMove&&Lo!==this.parentPopper){Lo.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Lo=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await od(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ou(this.$_referenceNode),...ou(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<tr.length;r++)t=tr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}tr.push(this),document.body.classList.add("v-popper--some-open");for(const t of sm(this.theme))fm(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 od(),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,cm(tr,this),tr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of sm(this.theme)){const o=fm(r);cm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Lo===this&&(Lo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await od(),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,lm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],lm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,am,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],am,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,fa?{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(Gl>=e.left&&Gl<=e.right&&Kl>=e.top&&Kl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Gl-qi,o=Kl-ji,s=t.left+t.width/2-qi+(t.top+t.height/2)-ji+t.width+t.height,c=qi+r*s,f=ji+o*s;return wc(qi,ji,c,f,t.left,t.top,t.left,t.bottom)||wc(qi,ji,c,f,t.left,t.top,t.right,t.top)||wc(qi,ji,c,f,t.right,t.top,t.right,t.bottom)||wc(qi,ji,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(Pb){const e=fa?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>dm(t),e),document.addEventListener("touchend",t=>hm(t,!0),e)}else window.addEventListener("mousedown",e=>dm(e),!0),window.addEventListener("click",e=>hm(e,!1),!0);window.addEventListener("resize",hC)}function dm(e,t){for(let r=0;r<tr.length;r++){const o=tr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function hm(e,t){fC(e,t)}function fC(e,t){const r={};for(let o=tr.length-1;o>=0;o--){const s=tr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&pm(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&&pm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function pm(e,t,r){return r.closeAllPopover||r.closePopover&&t||dC(e,r)&&!t}function dC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function hC(){for(let e=0;e<tr.length;e++)tr[e].$_computePosition()}function gm(){for(let e=0;e<tr.length;e++)tr[e].hide()}let qi=0,ji=0,Gl=0,Kl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{qi=Gl,ji=Kl,Gl=e.clientX,Kl=e.clientY},fa?{passive:!0}:void 0);function wc(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 pC={extends:zb()},Bu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function gC(e,t,r,o,s,c){return ie(),ye("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[xn(e.$slots,"default",gS(hb(e.slotData)))],2)}const vC=Bu(pC,[["render",gC]]);function mC(){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 Ic;function qd(){qd.init||(qd.init=!0,Ic=mC()!==-1)}var Wu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){qd(),At(()=>{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",Ic&&this.$el.appendChild(e),e.data="about:blank",Ic||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&&(!Ic&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const yC=Oy();$y("data-v-b329ee4c");const bC={class:"resize-observer",tabindex:"-1"};Ny();const wC=yC((e,t,r,o,s,c)=>(ie(),Ze("div",bC)));Wu.render=wC;Wu.__scopeId="data-v-b329ee4c";Wu.__file="src/components/ResizeObserver.vue";const Ib=(e="theme")=>({computed:{themeClass(){return uC(this[e])}}}),xC=at({name:"VPopperContent",components:{ResizeObserver:Wu},mixins:[Ib()],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}}}),_C=["id","aria-hidden","tabindex","data-popper-placement"],SC={ref:"inner",class:"v-popper__inner"},kC=ee("div",{class:"v-popper__arrow-outer"},null,-1),TC=ee("div",{class:"v-popper__arrow-inner"},null,-1),CC=[kC,TC];function EC(e,t,r,o,s,c){const f=Fo("ResizeObserver");return ie(),ye("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:tn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Fd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[ee("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),ee("div",{class:"v-popper__wrapper",style:tn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ee("div",SC,[e.mounted?(ie(),ye(nt,{key:0},[ee("div",null,[xn(e.$slots,"default")]),e.handleResize?(ie(),Ze(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):qe("",!0)],64)):qe("",!0)],512),ee("div",{ref:"arrow",class:"v-popper__arrow-container",style:tn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},CC,4)],4)],46,_C)}const Db=Bu(xC,[["render",EC]]),Fb={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 jd=function(){};typeof window<"u"&&(jd=window.Element);const AC=at({name:"VPopperWrapper",components:{Popper:vC,PopperContent:Db},mixins:[Fb,Ib("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,jd,Boolean],default:void 0},boundary:{type:[String,jd],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 LC(e,t,r,o,s,c){const f=Fo("PopperContent"),d=Fo("Popper");return ie(),Ze(d,bi({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:w,hide:A,handleResize:L,onResize:E,classes:M,result:$})=>[xn(e.$slots,"default",{shown:p,show:w,hide:A}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":L,classes:M,result:$,onHide:A,onResize:E},{default:it(()=>[xn(e.$slots,"popper",{shown:p,hide:A})]),_: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 Wh=Bu(AC,[["render",LC]]);({...Wh});({...Wh});const MC={...Wh,name:"VTooltip",vPopperTheme:"tooltip"},$C=at({name:"VTooltipDirective",components:{Popper:zb(),PopperContent:Db},mixins:[Fb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ua(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ua(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}}}),NC=["innerHTML"],OC=["textContent"];function PC(e,t,r,o,s,c){const f=Fo("PopperContent"),d=Fo("Popper");return ie(),Ze(d,bi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:w,handleResize:A,onResize:L,classes:E,result:M})=>[Oe(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":A,classes:E,result:M,onHide:w,onResize:L},{default:it(()=>[e.html?(ie(),ye("div",{key:0,innerHTML:e.finalContent},null,8,NC)):(ie(),ye("div",{key:1,textContent:ze(e.finalContent)},null,8,OC))]),_: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 RC=Bu($C,[["render",PC]]),Hb="v-popper--has-tooltip";function zC(e,t){let r=e.placement;if(!r&&t)for(const o of Rb)t[o]&&(r=o);return r||(r=ua(e.theme||"tooltip","placement")),r}function Bb(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=zC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let ld,da,IC=0;function DC(){if(ld)return;da=Ue([]),ld=_b({name:"VTooltipDirectiveApp",setup(){return{directives:da}},render(){return this.directives.map(t=>Aa(RC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ld.mount(e)}function Wb(e,t,r){DC();const o=Ue(Bb(e,t,r)),s=Ue(!1),c={id:IC++,options:o,shown:s};return da.value.push(c),e.classList&&e.classList.add(Hb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function qh(e){if(e.$_popper){const t=da.value.indexOf(e.$_popper.item);t!==-1&&da.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Hb)}function vm(e,{value:t,modifiers:r}){const o=Bb(e,t,r);if(!o.content||ua(o.theme||"tooltip","disabled"))qh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Wb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const FC={beforeMount:vm,updated:vm,beforeUnmount(e){qh(e)}},HC=FC,qb=MC,jb={options:to};function Ub(e){return e!=null}function jh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const BC=/^[A-Za-z]:\//;function WC(e=""){return e&&e.replace(/\\/g,"/").replace(BC,t=>t.toUpperCase())}const qC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function jC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const UC=function(...e){e=e.map(o=>WC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:jC();!s||s.length===0||(t=`${s}/${t}`,r=mm(s))}return t=VC(t,!r),r&&!mm(t)?`/${t}`:t.length>0?t:"."};function VC(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 mm=function(e){return qC.test(e)},GC=44,ym="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",KC=new Uint8Array(64),Vb=new Uint8Array(128);for(let e=0;e<ym.length;e++){const t=ym.charCodeAt(e);KC[e]=t,Vb[t]=e}function $l(e,t){let r=0,o=0,s=0;do{const f=e.next();s=Vb[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function bm(e,t){return e.pos>=t?!1:e.peek()!==GC}class XC{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function YC(e){const{length:t}=e,r=new XC(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let w;s=$l(r,s),s<b&&(m=!1),b=s,bm(r,p)?(c=$l(r,c),f=$l(r,f),d=$l(r,d),bm(r,p)?(h=$l(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],v.push(w),r.pos++}m||ZC(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function ZC(e){e.sort(JC)}function JC(e,t){return e[0]-t[0]}const QC=/^[\w+.-]+:\/\//,eE=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,tE=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Ut;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Ut||(Ut={}));function nE(e){return QC.test(e)}function rE(e){return e.startsWith("//")}function Gb(e){return e.startsWith("/")}function iE(e){return e.startsWith("file:")}function wm(e){return/^[.?#]/.test(e)}function xc(e){const t=eE.exec(e);return Kb(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function oE(e){const t=tE.exec(e),r=t[2];return Kb("file:","",t[1]||"","",Gb(r)?r:"/"+r,t[3]||"",t[4]||"")}function Kb(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:Ut.Absolute}}function xm(e){if(rE(e)){const r=xc("http:"+e);return r.scheme="",r.type=Ut.SchemeRelative,r}if(Gb(e)){const r=xc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Ut.AbsolutePath,r}if(iE(e))return oE(e);if(nE(e))return xc(e);const t=xc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Ut.Query:e.startsWith("#")?Ut.Hash:Ut.RelativePath:Ut.Empty,t}function sE(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function lE(e,t){Xb(t,t.type),e.path==="/"?e.path=t.path:e.path=sE(t.path)+e.path}function Xb(e,t){const r=t<=Ut.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function aE(e,t){if(!e&&!t)return"";const r=xm(e);let o=r.type;if(t&&o!==Ut.Absolute){const c=xm(t),f=c.type;switch(o){case Ut.Empty:r.hash=c.hash;case Ut.Hash:r.query=c.query;case Ut.Query:case Ut.RelativePath:lE(r,c);case Ut.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case Ut.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}Xb(r,o);const s=r.query+r.hash;switch(o){case Ut.Hash:case Ut.Query:return s;case Ut.RelativePath:{const c=r.path.slice(1);return c?wm(t||e)&&!wm(c)?"./"+c+s:c+s:s||"."}case Ut.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function cE(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}function uE(e,t){const r=cE(e),o=t?t+"/":"";return s=>aE(o+(s||""),r)}var so=0,fE=1,dE=2,hE=3,pE=4;function gE(e,t){const r=_m(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=_m(e,o+1))e[o]=mE(e[o],t);return e}function _m(e,t){for(let r=t;r<e.length;r++)if(!vE(e[r]))return r;return e.length}function vE(e){for(let t=1;t<e.length;t++)if(e[t][so]<e[t-1][so])return!1;return!0}function mE(e,t){return t||(e=e.slice()),e.sort(yE)}function yE(e,t){return e[so]-t[so]}var su=!1;function bE(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][so]-t;if(c===0)return su=!0,s;c<0?r=s+1:o=s-1}return su=!1,r-1}function wE(e,t,r){for(let o=r+1;o<e.length&&e[o][so]===t;r=o++);return r}function xE(e,t,r){for(let o=r-1;o>=0&&e[o][so]===t;r=o--);return r}function _E(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function SE(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 su=f!==-1&&e[f][so]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=bE(e,t,d,h)}function kE(e){return typeof e=="string"?JSON.parse(e):e}var TE="`line` must be greater than 0 (lines start at line 1)",CE="`column` must be greater than or equal to 0 (columns start at column 0)",Sm=-1,EE=1,AE=class{constructor(e,t){const r=typeof e=="string";if(!r&&e._decodedMemo)return e;const o=kE(e),{version:s,file:c,names:f,sourceRoot:d,sources:h,sourcesContent:p}=o;this.version=s,this.file=c,this.names=f||[],this.sourceRoot=d,this.sources=h,this.sourcesContent=p,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const v=uE(t,d);this.resolvedSources=h.map(v);const{mappings:m}=o;if(typeof m=="string")this._encoded=m,this._decoded=void 0;else if(Array.isArray(m))this._encoded=void 0,this._decoded=gE(m,r);else throw o.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(o)}`);this._decodedMemo=_E(),this._bySources=void 0,this._bySourceMemos=void 0}};function LE(e){var t;return(t=e)._decoded||(t._decoded=YC(e._encoded))}function ME(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(TE);if(o<0)throw new Error(CE);const c=LE(e);if(r>=c.length)return _c(null,null,null,null);const f=c[r],d=$E(f,e._decodedMemo,r,o,s||EE);if(d===-1)return _c(null,null,null,null);const h=f[d];if(h.length===1)return _c(null,null,null,null);const{names:p,resolvedSources:v}=e;return _c(v[h[fE]],h[dE]+1,h[hE],h.length===5?p[h[pE]]:null)}function _c(e,t,r,o){return{source:e,line:t,column:r,name:o}}function $E(e,t,r,o,s){let c=SE(e,o,t,r);return su?c=(s===Sm?wE:xE)(e,o,c):s===Sm&&c++,c===-1||c===e.length?-1:c}const Yb=/^\s*at .*(?:\S:\d+|\(native\))/m,NE=/^(?:eval@)?(?:\[native code\])?$/,OE=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Zb(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function PE(e){let t=e.trim();if(NE.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=Zb(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function RE(e){let t=e.trim();if(!Yb.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]=Zb(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:UC(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function zE(e,t={}){const{ignoreStackEntries:r=OE}=t;return(Yb.test(e)?DE(e):IE(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return km(r,s.file)?null:s;const d=new AE(f),{line:h,column:p,source:v,name:m}=ME(d,s);let b=s.file;if(v){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,A=f.sourceRoot?new URL(f.sourceRoot,w):w;b=new URL(v,A).pathname,b.match(/\/\w:\//)&&(b=b.slice(1))}return km(r,b)?null:h!=null&&p!=null?{line:h,column:p,file:b,method:m||s.method}:s}).filter(s=>s!=null)}function km(e,t){return e.some(r=>t.match(r))}function IE(e){return e.split(`
18
- `).map(t=>PE(t)).filter(Ub)}function DE(e){return e.split(`
19
- `).map(t=>RE(t)).filter(Ub)}const FE=/^[A-Za-z]:\//;function HE(e=""){return e&&e.replace(/\\/g,"/").replace(FE,t=>t.toUpperCase())}const BE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Tm=/^\/([A-Za-z]:)?$/;function WE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Cm=function(...e){e=e.map(o=>HE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:WE();!s||s.length===0||(t=`${s}/${t}`,r=Em(s))}return t=qE(t,!r),r&&!Em(t)?`/${t}`:t.length>0?t:"."};function qE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Em=function(e){return BE.test(e)},Jb=function(e,t){const r=Cm(e).replace(Tm,"$1").split("/"),o=Cm(t).replace(Tm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function jE(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 Qb(e,t,r,o){const s=Jb(t,e),c={id:UE(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function UE(e,t){return jE(`${e}${t||""}`)}function Hs(e){return e.type==="test"}function ew(e){const t=[],r=jh(e);for(const o of r)if(Hs(o))t.push(o);else for(const s of o.tasks)if(Hs(s))t.push(s);else{const c=ew(s);for(const f of c)t.push(f)}return t}function Uh(e=[]){return jh(e).flatMap(t=>Hs(t)?[t]:[t,...Uh(t.tasks)])}function VE(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const Am="q",Lm="s",GE=6e4;function tw(e){return e}const KE=tw,{clearTimeout:XE,setTimeout:YE}=globalThis,ZE=Math.random.bind(Math);function JE(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=tw,deserialize:d=KE,resolver:h,bind:p="rpc",timeout:v=GE}=t,m=new Map;let b,w=!1;const A=new Proxy({},{get($,R){if(R==="$functions")return e;if(R==="$close")return L;if(R==="$rejectPendingCalls")return E;if(R==="$closed")return w;if(R==="then"&&!c.includes("then")&&!("then"in e))return;const T=(...F)=>{r(f({m:R,a:F,t:Am}))};if(c.includes(R))return T.asEvent=T,T;const I=async(...F)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${R}"`);if(b)try{await b}finally{b=void 0}return new Promise((re,se)=>{var K;const J=eA();let G;v>=0&&(G=YE(()=>{var N;try{if(((N=t.onTimeoutError)==null?void 0:N.call(t,R,F))!==!0)throw new Error(`[birpc] timeout on calling "${R}"`)}catch(O){se(O)}m.delete(J)},v),typeof G=="object"&&(G=(K=G.unref)==null?void 0:K.call(G))),m.set(J,{resolve:re,reject:se,timeoutId:G,method:R}),r(f({m:R,a:F,i:J,t:"q"}))})};return I.asEvent=T,I}});function L($){w=!0,m.forEach(({reject:R,method:T})=>{const I=new Error(`[birpc] rpc is closed, cannot call "${T}"`);if($)return $.cause??($.cause=I),R($);R(I)}),m.clear(),s(M)}function E($){const T=Array.from(m.values()).map(({method:I,reject:F})=>$?$({method:I,reject:F}):F(new Error(`[birpc]: rejected pending call "${I}".`)));return m.clear(),T}async function M($,...R){var I,F,re;let T;try{T=d($)}catch(se){if(((I=t.onGeneralError)==null?void 0:I.call(t,se))!==!0)throw se;return}if(T.t===Am){const{m:se,a:J}=T;let G,K;const N=h?h(se,e[se]):e[se];if(!N)K=new Error(`[birpc] function "${se}" not found`);else try{G=await N.apply(p==="rpc"?A:e,J)}catch(O){K=O}if(T.i){if(K&&t.onError&&t.onError(K,se,J),K&&t.onFunctionError&&t.onFunctionError(K,se,J)===!0)return;if(!K)try{r(f({t:Lm,i:T.i,r:G}),...R);return}catch(O){if(K=O,((F=t.onGeneralError)==null?void 0:F.call(t,O,se,J))!==!0)throw O}try{r(f({t:Lm,i:T.i,e:K}),...R)}catch(O){if(((re=t.onGeneralError)==null?void 0:re.call(t,O,se,J))!==!0)throw O}}}else{const{i:se,r:J,e:G}=T,K=m.get(se);K&&(XE(K.timeoutId),G?K.reject(G):K.resolve(J)),m.delete(se)}}return b=o(M),A}const QE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function eA(e=21){let t="",r=e;for(;r--;)t+=QE[ZE()*64|0];return t}const{parse:nw,stringify:tA}=JSON,{keys:nA}=Object,ha=String,rw="string",Mm={},lu="object",iw=(e,t)=>t,rA=e=>e instanceof ha?ha(e):e,iA=(e,t)=>typeof t===rw?new ha(t):t,ow=(e,t,r,o)=>{const s=[];for(let c=nA(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ha){const v=e[p];typeof v===lu&&!t.has(v)?(t.add(v),r[h]=Mm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Mm&&(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,ow.apply(null,h))}return r},$m=(e,t,r)=>{const o=ha(t.push(r)-1);return e.set(r,o),o},Ud=(e,t)=>{const r=nw(e,iA).map(rA),o=r[0],s=t||iw,c=typeof o===lu&&o?ow(r,new Set,o,s):o;return s.call({"":c},"",c)},sw=(e,t,r)=>{const o=t&&typeof t===lu?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||iw,s=new Map,c=[],f=[];let d=+$m(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=tA(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case lu:if(b===null)return b;case rw:return s.get(b)||$m(s,c,b)}return b}},oA=e=>nw(sw(e));class lw{constructor(){bt(this,"filesMap",new Map);bt(this,"pathsSet",new Set);bt(this,"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=>{var r;return((r=t.result)==null?void 0:r.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=Qb(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==null?void 0: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 sA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=$=>$,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new lw,waitForConnection:M,reconnect:L},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onTestAnnotate($,R){var T;(T=r.onTestAnnotate)==null||T.call(r,$,R)},onSpecsCollected($){var R;$==null||$.forEach(([T,I])=>{v.state.clearFiles({config:T},[I])}),(R=r.onSpecsCollected)==null||R.call(r,$)},onPathsCollected($){var R;v.state.collectPaths($),(R=r.onPathsCollected)==null||R.call(r,$)},onCollected($){var R;v.state.collectFiles($),(R=r.onCollected)==null||R.call(r,$)},onTaskUpdate($,R){var T;v.state.updateTasks($),(T=r.onTaskUpdate)==null||T.call(r,$,R)},onUserConsoleLog($){var R;v.state.updateUserLog($),(R=r.onUserConsoleLog)==null||R.call(r,$)},onFinished($,R){var T;(T=r.onFinished)==null||T.call(r,$,R)},onFinishedReportCoverage(){var $;($=r.onFinishedReportCoverage)==null||$.call(r)}},w={post:$=>v.ws.send($),on:$=>m=$,serialize:$=>sw($,(R,T)=>T instanceof Error?{name:T.name,message:T.message,stack:T.stack}:T),deserialize:Ud,timeout:-1};v.rpc=JE(b,w);let A;function L($=!1){$&&(p=c),v.ws=new h(e),E()}function E(){A=new Promise(($,R)=>{var I,F;const T=(F=(I=setTimeout(()=>{R(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:I.unref)==null?void 0:F.call(I);v.ws.OPEN===v.ws.readyState&&$(),v.ws.addEventListener("open",()=>{p=c,$(),clearTimeout(T)})}),v.ws.addEventListener("message",$=>{m($.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}E();function M(){return A}return v}function Vh(e){return ay()?(wS(e),!0):!1}const ad=new WeakMap,lA=(...e)=>{var t;const r=e[0],o=(t=Ci())==null?void 0:t.proxy;if(o==null&&!Ky())throw new Error("injectLocal must be called in setup");return o&&ad.has(o)&&r in ad.get(o)?ad.get(o)[r]:bn(...e)},aA=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const cA=Object.prototype.toString,uA=e=>cA.call(e)==="[object Object]",au=()=>{};function aw(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 cw=e=>e();function uw(e,t={}){let r,o,s=au;const c=h=>{clearTimeout(h),s(),s=au};let f;return h=>{const p=Gt(e),v=Gt(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function fA(e=cw,t={}){const{initialState:r="active"}=t,o=fw(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Sa(o),pause:s,resume:c,eventFilter:f}}function Nm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function Om(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function dA(e){return Ci()}function cd(e){return Array.isArray(e)?e:[e]}function fw(...e){if(e.length!==1)return Ks(...e);const t=e[0];return typeof t=="function"?Sa(Ty(()=>({get:t,set:au}))):Ue(t)}function Sc(e,t=200,r={}){return aw(uw(t,r),e)}function dw(e,t,r={}){const{eventFilter:o=cw,...s}=r;return St(e,aw(o,t),s)}function hw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=fA(o,{initialState:s});return{stop:dw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Gh(e,t=!0,r){dA()?fo(e,r):t?e():At(e)}function Vd(e,t=!1){function r(m,{flush:b="sync",deep:w=!1,timeout:A,throwOnTimeout:L}={}){let E=null;const $=[new Promise(R=>{E=St(e,T=>{m(T)!==t&&(E?E():At(()=>E==null?void 0:E()),R(T))},{flush:b,deep:w,immediate:!0})})];return A!=null&&$.push(Nm(A,L).then(()=>Gt(e)).finally(()=>E==null?void 0:E())),Promise.race($)}function o(m,b){if(!Tt(m))return r(T=>T===m,b);const{flush:w="sync",deep:A=!1,timeout:L,throwOnTimeout:E}=b??{};let M=null;const R=[new Promise(T=>{M=St([e,m],([I,F])=>{t!==(I===F)&&(M?M():At(()=>M==null?void 0:M()),T(I))},{flush:w,deep:A,immediate:!0})})];return L!=null&&R.push(Nm(L,E).then(()=>Gt(e)).finally(()=>(M==null||M(),Gt(e)))),Promise.race(R)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(w=>{const A=Array.from(w);return A.includes(m)||A.includes(Gt(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let w=-1;return r(()=>(w+=1,w>=m),b)}return Array.isArray(Gt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Vd(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Vd(e,!t)}}}function Pm(e){return Vd(e)}function hA(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Tt(e),c=nn(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Gt(r);return c.value=c.value===h?Gt(o):h,c.value}}return s?f:[c,f]}function Kh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return dw(e,t,{...c,eventFilter:uw(o,{maxWait:s})})}function pA(e,t,r){return St(e,t,{...r,immediate:!0})}function gA(e,t,r){const o=St(e,(...s)=>(At(()=>o()),t(...s)),r);return o}function vA(e,t,r){let o;Tt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=au}=o,h=nn(!s),p=f?nn(t):Ue(t);let v=0;return Rh(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const A=await e(L=>{m(()=>{c&&(c.value=!1),w||L()})});b===v&&(p.value=A)}catch(A){d(A)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?Se(()=>(h.value=!0,p.value)):p}const Or=aA?window:void 0;function cu(e){var t;const r=Gt(e);return(t=r==null?void 0:r.$el)!=null?t:r}function lo(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=Se(()=>{const d=cd(Gt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=pA(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>cu(p)))!=null?h:[Or].filter(p=>p!=null),cd(Gt(s.value?e[1]:e[0])),cd(B(s.value?e[2]:e[1])),Gt(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!(d!=null&&d.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const m=uA(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(A=>o(b,w,A,m)))))},{flush:"post"}),f=()=>{c(),r()};return Vh(r),f}function mA(){const e=nn(!1),t=Ci();return t&&fo(()=>{e.value=!0},t),e}function pw(e){const t=mA();return Se(()=>(t.value,!!e()))}function yA(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function gw(...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=yA(t);return lo(s,c,v=>{v.repeat&&Gt(d)||h(v)&&r(v)},f)}function bA(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Or,once:c=!1}=t,f=nn(!1),d=Se(()=>o?1e3/Gt(o):null);let h=0,p=null;function v(w){if(!f.value||!s)return;h||(h=w);const A=w-h;if(d.value&&A<d.value){p=s.requestAnimationFrame(v);return}if(h=w,e({delta:A,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),Vh(b),{isActive:Sa(f),pause:b,resume:m}}const wA=Symbol("vueuse-ssr-width");function xA(){const e=Ky()?lA(wA,null):null;return typeof e=="number"?e:void 0}function vw(e,t={}){const{window:r=Or,ssrWidth:o=xA()}=t,s=pw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=nn(typeof o=="number"),f=nn(),d=nn(!1),h=p=>{d.value=p.matches};return Rh(()=>{if(c.value){c.value=!s.value;const p=Gt(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let A=!!(b||w);return b&&A&&(A=o>=Om(b[1])),w&&A&&(A=o<=Om(w[1])),m?!A:A});return}s.value&&(f.value=r.matchMedia(Gt(e)),d.value=f.value.matches)}),lo(f,"change",h,{passive:!0}),Se(()=>d.value)}const kc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Tc="__vueuse_ssr_handlers__",_A=SA();function SA(){return Tc in kc||(kc[Tc]=kc[Tc]||{}),kc[Tc]}function mw(e,t){return _A[e]||t}function kA(e){return vw("(prefers-color-scheme: dark)",e)}function TA(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()}},Rm="vueuse-storage";function yw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Or,eventFilter:b,onError:w=K=>{console.error(K)},initOnMounted:A}=o,L=(v?nn:Ue)(typeof t=="function"?t():t),E=Se(()=>Gt(e));if(!r)try{r=mw("getDefaultStorage",()=>{var K;return(K=Or)==null?void 0:K.localStorage})()}catch(K){w(K)}if(!r)return L;const M=Gt(t),$=TA(M),R=(s=o.serializer)!=null?s:CA[$],{pause:T,resume:I}=hw(L,()=>re(L.value),{flush:c,deep:f,eventFilter:b});St(E,()=>J(),{flush:c}),m&&d&&Gh(()=>{r instanceof Storage?lo(m,"storage",J,{passive:!0}):lo(m,Rm,G),A&&J()}),A||J();function F(K,N){if(m){const O={key:E.value,oldValue:K,newValue:N,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Rm,{detail:O}))}}function re(K){try{const N=r.getItem(E.value);if(K==null)F(N,null),r.removeItem(E.value);else{const O=R.write(K);N!==O&&(r.setItem(E.value,O),F(N,O))}}catch(N){w(N)}}function se(K){const N=K?K.newValue:r.getItem(E.value);if(N==null)return h&&M!=null&&r.setItem(E.value,R.write(M)),M;if(!K&&p){const O=R.read(N);return typeof p=="function"?p(O,M):$==="object"&&!Array.isArray(O)?{...M,...O}:O}else return typeof N!="string"?N:R.read(N)}function J(K){if(!(K&&K.storageArea!==r)){if(K&&K.key==null){L.value=M;return}if(!(K&&K.key!==E.value)){T();try{(K==null?void 0:K.newValue)!==R.write(L.value)&&(L.value=se(K))}catch(N){w(N)}finally{K?At(I):I()}}}}function G(K){J(K.detail)}return L}const EA="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function AA(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:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=kA({window:s}),w=Se(()=>b.value?"dark":"light"),A=h||(f==null?fw(o):yw(f,o,c,{window:s,listenToStorageChanges:d})),L=Se(()=>A.value==="auto"?w.value:A.value),E=mw("updateHTMLAttrs",(T,I,F)=>{const re=typeof T=="string"?s==null?void 0:s.document.querySelector(T):cu(T);if(!re)return;const se=new Set,J=new Set;let G=null;if(I==="class"){const N=F.split(/\s/g);Object.values(m).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{N.includes(O)?se.add(O):J.add(O)})}else G={key:I,value:F};if(se.size===0&&J.size===0&&G===null)return;let K;v&&(K=s.document.createElement("style"),K.appendChild(document.createTextNode(EA)),s.document.head.appendChild(K));for(const N of se)re.classList.add(N);for(const N of J)re.classList.remove(N);G&&re.setAttribute(G.key,G.value),v&&(s.getComputedStyle(K).opacity,document.head.removeChild(K))});function M(T){var I;E(t,r,(I=m[T])!=null?I:T)}function $(T){e.onChanged?e.onChanged(T,M):M(T)}St(L,$,{flush:"post",immediate:!0}),Gh(()=>$(L.value));const R=Se({get(){return p?A.value:L.value},set(T){A.value=T}});return Object.assign(R,{store:A,system:w,state:L})}function LA(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=AA({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=Se(()=>o.system.value);return Se({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function bw(e,t,r={}){const{window:o=Or,...s}=r;let c;const f=pw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Se(()=>{const m=Gt(e);return Array.isArray(m)?m.map(b=>cu(b)):[cu(m)]}),p=St(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Vh(v),{isSupported:f,stop:v}}function qu(e,t,r={}){const{window:o=Or}=r;return yw(e,t,o==null?void 0:o.localStorage,r)}function MA(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Or}=t;if(!d)return rr(r);const h=rr({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const R=d.location.hash||"",T=R.indexOf("?");return T>0?R.slice(T):""}else return(d.location.hash||"").replace(/^#/,"")}function v(R){const T=R.toString();if(e==="history")return`${T?`?${T}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${T?`#${T}`:""}`;const I=d.location.hash||"#",F=I.indexOf("?");return F>0?`${d.location.search||""}${I.slice(0,F)}${T?`?${T}`:""}`:`${d.location.search||""}${I}${T?`?${T}`:""}`}function m(){return new URLSearchParams(p())}function b(R){const T=new Set(Object.keys(h));for(const I of R.keys()){const F=R.getAll(I);h[I]=F.length>1?F:R.get(I)||"",T.delete(I)}Array.from(T).forEach(I=>delete h[I])}const{pause:w,resume:A}=hw(h,()=>{const R=new URLSearchParams("");Object.keys(h).forEach(T=>{const I=h[T];Array.isArray(I)?I.forEach(F=>R.append(T,F)):o&&I==null||s&&!I?R.delete(T):R.set(T,I)}),L(R,!1)},{deep:!0});function L(R,T){w(),T&&b(R),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(R)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(R)),A()}function E(){c&&L(m(),!0)}const M={passive:!0};lo(d,"popstate",E,M),e!=="history"&&lo(d,"hashchange",E,M);const $=m();return $.keys().next().value?b($):Object.assign(h,r),h}function ww(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=nn(r),h=nn(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:w}=t.visualViewport;d.value=Math.round(m*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(),Gh(p);const v={passive:!0};if(lo("resize",p,v),t&&f==="visual"&&t.visualViewport&&lo(t.visualViewport,"resize",p,v),s){const m=vw("(orientation: portrait)");St(m,()=>p())}return{width:d,height:h}}const Gd=nn([]),Yn=nn([]),Pr=qu("vitest-ui_task-tree-opened",[],{shallow:!0}),uu=Se(()=>new Set(Pr.value)),dn=qu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Un=Ue(dn.value.search),$A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function xw(e){return e.replace(/[&<>"']/g,t=>$A[t])}const NA=Se(()=>{const e=Un.value.toLowerCase();return e.length?new RegExp(`(${xw(e)})`,"gi"):null}),_w=Se(()=>Un.value.trim()!==""),et=rr({failed:dn.value.failed,success:dn.value.success,skipped:dn.value.skipped,onlyTests:dn.value.onlyTests}),Kd=Se(()=>!!(et.failed||et.success||et.skipped)),ju=nn([]),Bs=Ue(!1),zm=Se(()=>{const e=dn.value.expandAll;return Pr.value.length>0?e!==!0:e!==!1}),OA=Se(()=>{const e=_w.value,t=Kd.value,r=et.onlyTests,o=Ae.summary.filesFailed,s=Ae.summary.filesSuccess,c=Ae.summary.filesSkipped,f=Ae.summary.filesRunning,d=ju.value;return Ae.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ma(e){return Object.hasOwn(e,"tasks")}function PA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Sw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function kw(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function RA(e){return e.type==="test"}function zA(e){return e.mode==="run"&&e.type==="test"}function Rn(e){return e.type==="file"}function _i(e){return e.type==="file"||e.type==="suite"}function IA(e=Ae.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function pa(e,t=!1){var o,s,c,f,d;let r=Ae.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:uu.value.size>0&&uu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ae.colors.get(e.projectName||"")||Sw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Ae.nodes.set(e.id,r),Ae.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)$a(e.id,e.tasks[h],!0)}function Tw(e,t){const r=Ae.nodes.get(e);if(!r||!_i(r))return;const o=ht.state.idMap.get(e);if(!(!o||!Ma(o)))return $a(r.parentId,o,t&&o.tasks.length>0),[r,o]}function DA(e){const t=Ae.nodes.get(e);if(!t)return;const r=ht.state.idMap.get(e);!r||!Hs(r)||$a(t.parentId,r,!1)}function $a(e,t,r){var f,d,h,p,v;const o=Ae.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Ae.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=(h=t.result)==null?void 0:h.state):(Hs(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:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:uu.value.size>0&&uu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Ae.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ma(t)))for(let m=0;m<t.tasks.length;m++)$a(s.id,t.tasks[m],r)}function FA(e){const t=Ae.nodes.get(e);if(!t||!_i(t))return;const r=new Set(Pr.value);r.delete(t.id);const o=[...BA(t)];Pr.value=Array.from(r),Yn.value=o}function HA(){Xd(Ae.root.tasks);const e=[...Yn.value.filter(Rn)];Xd(e),Pr.value=[],dn.value.expandAll=!0,Yn.value=e}function Xd(e){for(const t of e)_i(t)&&(t.expanded=!1,Xd(t.tasks))}function*Cw(e,t){if(t&&(yield e.id),_i(e))for(let r=0;r<e.tasks.length;r++)yield*Cw(e.tasks[r],!0)}function*BA(e){const t=e.id,r=new Set(Cw(e,!1));for(let o=0;o<Yn.value.length;o++){const s=Yn.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 Uu=Ue("idle"),ws=Se(()=>Uu.value==="idle"),Gi=Ue([]);function WA(e,t,r){return e?Lw(e,t,r):!1}function Xh(e,t){const r=[...Ew(e,t)];Yn.value=r,ju.value=r.filter(Rn).map(o=>pr(o.id))}function*Ew(e,t){for(const r of IA())yield*Aw(r,e,t)}function*Aw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Yd(e,o,w=>Im(w,t,r)))c.push([m,b]);else{for(const[m,b]of Yd(e,o,w=>Im(w,t,r)))_i(b)?(s.set(b.id,m),Rn(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!Rn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...jA(c,r.onlyTests,o,d,f)].reverse(),p=Ae.nodes,v=new Set(h.filter(m=>{var b;return Rn(m)||_i(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Rn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function qA(e,t,r,o,s){if(o){if(Rn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ae.nodes.get(t.parentId);return c&&Rn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ae.nodes.get(t.parentId);return c&&Rn(c)&&s.add(c.id),t}}function*jA(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=Ae.nodes.get(d.parentId);for(;p;)r.add(p.id),Rn(p)&&o.add(p.id),p=Ae.nodes.get(p.parentId);yield d;continue}if(h){const p=qA(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ae.nodes.get(d.parentId);p&&Rn(p)&&o.add(p.id),yield d}}}function UA(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Lw(e,t,r){if(t.length===0||PA(e.name,t))if(r.success||r.failed||r.skipped){if(UA(e,r))return!0}else return!0;return!1}function*Yd(e,t,r){const o=r(e);if(o)if(RA(e)){let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}else if(Rn(e))t.add(e.id);else{t.add(e.id);let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}if(yield[o,e],_i(e))for(let s=0;s<e.tasks.length;s++)yield*Yd(e.tasks[s],t,r)}function Im(e,t,r){const o=ht.state.idMap.get(e.id);return o?Lw(o,t,r):!1}function VA(e,t,r){const o=Tw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)$a(s.id,p,!1);s.expanded=!0;const f=new Set(Pr.value);f.add(s.id);const d=new Set(Aw(s,t,r)),h=[...XA(s,d)];Pr.value=Array.from(f),Yn.value=h}function GA(e,t){Yh(Ae.root.tasks,!1);const r=[...Ew(e,t)];dn.value.expandAll=!1,Pr.value=[],Yn.value=r,ju.value=r.filter(Rn).map(o=>pr(o.id))}function KA(e,t){if(e.size)for(const r of Yn.value)e.has(r.id)&&(r.expanded=!0);else t&&Yh(Yn.value.filter(Rn),!0)}function Yh(e,t){for(const r of e)_i(r)&&(r.expanded=!0,Yh(r.tasks,!1));t&&(dn.value.expandAll=!1,Pr.value=[])}function*XA(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Yn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Zh(e){return ew(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function YA(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>pa(s,t)),Gd.value=[...Ae.root.tasks],Xh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function ZA(e){queueMicrotask(()=>{const t=Ae.pendingTasks,r=ht.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 JA(e,t){const r=Ae.pendingTasks,s=ht.state.idMap.get(e);if((s==null?void 0:s.type)==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),s.annotations.push(t)}}function Dm(e,t,r,o,s){e&&iL(r);const c=!e;queueMicrotask(()=>{t?tL(c):nL(c)}),queueMicrotask(()=>{oL(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Gd.value&&Zh(Gd.value.map(f=>pr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{rL(o,s,t)})}function*QA(){yield*Yn.value.filter(zA)}function eL(){const e=ht.state.idMap;let t;for(const r of QA())t=e.get(r.parentId),t&&Ma(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function tL(e){const t=ht.state.getFiles(),r=Ae.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)pa(o[c],e),fu(o[c].tasks);const s=Ae.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=pr(f.id);if(!d)continue;pa(d,e);const h=d.tasks;h!=null&&h.length&&fu(d.tasks)}}function nL(e){const t=new Map(Ae.pendingTasks.entries());Ae.pendingTasks.clear();const r=Ae.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>pr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],pa(s,!1),fu(s.tasks),t.delete(s.id);const c=ht.state.idMap,f=Ae.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=pr(h.id);if(!p)continue;const v=t.get(p.id);v&&(pa(p,e),fu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function rL(e,t,r=!1){const o=dn.value.expandAll,s=o!==!0,c=new Set(Pr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Fm(e,t,r)}),Bs.value||queueMicrotask(()=>{(Yn.value.length||r)&&(Bs.value=!0)}),f&&(queueMicrotask(()=>{KA(c,r),s&&(dn.value.expandAll=!1)}),queueMicrotask(()=>{Fm(e,t,r)}))}function Fm(e,t,r){Xh(e,t),r&&(eL(),Uu.value="idle")}function fu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ma(t)?Tw(t.id,!0):DA(t.id)}function iL(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function oL(e){var f,d,h,p,v,m;const t=ht.state.idMap,r=new Map(Ae.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,pr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};let c=0;for(const[b,w]of o){if(!w)continue;const A=r.get(b);A&&(A.mode=w.mode,A.setupDuration=w.setupDuration,A.prepareDuration=w.prepareDuration,A.environmentLoad=w.environmentLoad,A.collectDuration=w.collectDuration,A.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,A.state=(h=w.result)==null?void 0:h.state),c+=Math.max(0,w.collectDuration||0),c+=Math.max(0,w.setupDuration||0),c+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),c+=Math.max(0,w.environmentLoad||0),c+=Math.max(0,w.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=w.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((m=w.result)==null?void 0:m.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:L,success:E,skipped:M,total:$,ignored:R,todo:T}=Mw(w);s.totalTests+=$,s.testsFailed+=L,s.testsSuccess+=E,s.testsSkipped+=M,s.testsTodo+=T,s.testsIgnore+=R}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function Mw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of $w(e))(!r||WA(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function sL(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>Mw(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*$w(e){const t=jh(e);let r;for(let o=0;o<t.length;o++)r=t[o],Hs(r)?yield r:yield*$w(r.tasks)}class lL{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=rr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){bt(this,"rafCollector");bt(this,"resumeEndRunId");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=bA(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}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])),YA(t,!0,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}annotateTest(t,r){JA(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){ZA(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{Dm(t,r,this.summary,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}):Dm(t,r,this.summary,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collectTestsTotal(t,r,o,s){return sL(t,r,o,s,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collapseNode(t){queueMicrotask(()=>{FA(t)})}expandNode(t){queueMicrotask(()=>{VA(t,Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{HA()})}expandAllNodes(){queueMicrotask(()=>{GA(Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}filterNodes(){queueMicrotask(()=>{Xh(Un.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}}const Ae=new lL,er=Ue([414,896]),Na=MA("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),ao=Ks(Na,"file"),qn=Ks(Na,"view"),Nw=Ks(Na,"line"),Ow=Ks(Na,"column"),Ns=Ks(Na,"test"),Ws=Ue(),Os=Ue(!0),co=Ue(!1),du=Ue(!0),xs=Se(()=>{var e;return(e=qs.value)==null?void 0:e.coverage}),Zd=Se(()=>{var e;return(e=xs.value)==null?void 0:e.enabled}),_s=Se(()=>Zd.value&&!!xs.value.htmlReporter),Ps=qu("vitest-ui_splitpanes-mainSizes",[33,67]);var Z0;const no=qu("vitest-ui_splitpanes-detailSizes",[((Z0=window.__vitest_browser_runner__)==null?void 0:Z0.provider)==="webdriverio"?er.value[0]/window.outerWidth*100:33,67]),Lt=rr({navigation:Ps.value[0],details:{size:Ps.value[1],browser:no.value[0],main:no.value[1]}}),Hm=Se(()=>{var e;if(_s.value){const t=xs.value.reportsDirectory.lastIndexOf("/"),r=(e=xs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${xs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${xs.value.reportsDirectory.slice(t+1)}/index.html`}});St(Uu,e=>{du.value=e==="running"},{immediate:!0});function aL(){const e=ao.value;if(e&&e.length>0){const t=pr(e);t?(Ws.value=t,Os.value=!1,co.value=!1):gA(()=>ht.state.getFiles(),()=>{Ws.value=pr(e),Os.value=!1,co.value=!1})}return Os}function hu(e){Os.value=e,co.value=!1,e&&(Ws.value=void 0,ao.value="")}function Vu({file:e,line:t,view:r,test:o,column:s}){ao.value=e,Nw.value=t,Ow.value=s,qn.value=r,Ns.value=o,Ws.value=pr(e),hu(!1)}function cL(e){Vu({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null,column:null})}function uL(){co.value=!0,Os.value=!1,Ws.value=void 0,ao.value=""}function fL(){Lt.details.browser=100,Lt.details.main=0,no.value=[100,0]}function Pw(){if((Ot==null?void 0:Ot.provider)==="webdriverio"){const e=window.outerWidth*(Lt.details.size/100);return(er.value[0]+20)/e*100}return 33}function dL(){Lt.details.browser=Pw(),Lt.details.main=100-Lt.details.browser,no.value=[Lt.details.browser,Lt.details.main]}function hL(){Lt.navigation=33,Lt.details.size=67,Ps.value=[33,67]}function Rw(){Lt.details.main!==0&&(Lt.details.browser=Pw(),Lt.details.main=100-Lt.details.browser,no.value=[Lt.details.browser,Lt.details.main])}const pL={setCurrentFileId(e){ao.value=e,Ws.value=pr(e),hu(!1)},async setIframeViewport(e,t){er.value=[e,t],(Ot==null?void 0:Ot.provider)==="webdriverio"&&Rw(),await new Promise(r=>requestAnimationFrame(r))}},gL=location.port,vL=[location.hostname,gL].filter(Boolean).join(":"),mL=`${location.protocol==="https:"?"wss:":"ws:"}//${vL}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,hr=!!window.METADATA_PATH;function zw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ud={},kr={};const yL="Á",bL="á",wL="Ă",xL="ă",_L="∾",SL="∿",kL="∾̳",TL="Â",CL="â",EL="´",AL="А",LL="а",ML="Æ",$L="æ",NL="⁡",OL="𝔄",PL="𝔞",RL="À",zL="à",IL="ℵ",DL="ℵ",FL="Α",HL="α",BL="Ā",WL="ā",qL="⨿",jL="&",UL="&",VL="⩕",GL="⩓",KL="∧",XL="⩜",YL="⩘",ZL="⩚",JL="∠",QL="⦤",eM="∠",tM="⦨",nM="⦩",rM="⦪",iM="⦫",oM="⦬",sM="⦭",lM="⦮",aM="⦯",cM="∡",uM="∟",fM="⊾",dM="⦝",hM="∢",pM="Å",gM="⍼",vM="Ą",mM="ą",yM="𝔸",bM="𝕒",wM="⩯",xM="≈",_M="⩰",SM="≊",kM="≋",TM="'",CM="⁡",EM="≈",AM="≊",LM="Å",MM="å",$M="𝒜",NM="𝒶",OM="≔",PM="*",RM="≈",zM="≍",IM="Ã",DM="ã",FM="Ä",HM="ä",BM="∳",WM="⨑",qM="≌",jM="϶",UM="‵",VM="∽",GM="⋍",KM="∖",XM="⫧",YM="⊽",ZM="⌅",JM="⌆",QM="⌅",e$="⎵",t$="⎶",n$="≌",r$="Б",i$="б",o$="„",s$="∵",l$="∵",a$="∵",c$="⦰",u$="϶",f$="ℬ",d$="ℬ",h$="Β",p$="β",g$="ℶ",v$="≬",m$="𝔅",y$="𝔟",b$="⋂",w$="◯",x$="⋃",_$="⨀",S$="⨁",k$="⨂",T$="⨆",C$="★",E$="▽",A$="△",L$="⨄",M$="⋁",$$="⋀",N$="⤍",O$="⧫",P$="▪",R$="▴",z$="▾",I$="◂",D$="▸",F$="␣",H$="▒",B$="░",W$="▓",q$="█",j$="=⃥",U$="≡⃥",V$="⫭",G$="⌐",K$="𝔹",X$="𝕓",Y$="⊥",Z$="⊥",J$="⋈",Q$="⧉",eN="┐",tN="╕",nN="╖",rN="╗",iN="┌",oN="╒",sN="╓",lN="╔",aN="─",cN="═",uN="┬",fN="╤",dN="╥",hN="╦",pN="┴",gN="╧",vN="╨",mN="╩",yN="⊟",bN="⊞",wN="⊠",xN="┘",_N="╛",SN="╜",kN="╝",TN="└",CN="╘",EN="╙",AN="╚",LN="│",MN="║",$N="┼",NN="╪",ON="╫",PN="╬",RN="┤",zN="╡",IN="╢",DN="╣",FN="├",HN="╞",BN="╟",WN="╠",qN="‵",jN="˘",UN="˘",VN="¦",GN="𝒷",KN="ℬ",XN="⁏",YN="∽",ZN="⋍",JN="⧅",QN="\\",e2="⟈",t2="•",n2="•",r2="≎",i2="⪮",o2="≏",s2="≎",l2="≏",a2="Ć",c2="ć",u2="⩄",f2="⩉",d2="⩋",h2="∩",p2="⋒",g2="⩇",v2="⩀",m2="ⅅ",y2="∩︀",b2="⁁",w2="ˇ",x2="ℭ",_2="⩍",S2="Č",k2="č",T2="Ç",C2="ç",E2="Ĉ",A2="ĉ",L2="∰",M2="⩌",$2="⩐",N2="Ċ",O2="ċ",P2="¸",R2="¸",z2="⦲",I2="¢",D2="·",F2="·",H2="𝔠",B2="ℭ",W2="Ч",q2="ч",j2="✓",U2="✓",V2="Χ",G2="χ",K2="ˆ",X2="≗",Y2="↺",Z2="↻",J2="⊛",Q2="⊚",eO="⊝",tO="⊙",nO="®",rO="Ⓢ",iO="⊖",oO="⊕",sO="⊗",lO="○",aO="⧃",cO="≗",uO="⨐",fO="⫯",dO="⧂",hO="∲",pO="”",gO="’",vO="♣",mO="♣",yO=":",bO="∷",wO="⩴",xO="≔",_O="≔",SO=",",kO="@",TO="∁",CO="∘",EO="∁",AO="ℂ",LO="≅",MO="⩭",$O="≡",NO="∮",OO="∯",PO="∮",RO="𝕔",zO="ℂ",IO="∐",DO="∐",FO="©",HO="©",BO="℗",WO="∳",qO="↵",jO="✗",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="⤼",vP="⋞",mP="⋟",yP="⋎",bP="⋏",wP="¤",xP="↶",_P="↷",SP="⋎",kP="⋏",TP="∲",CP="∱",EP="⌭",AP="†",LP="‡",MP="ℸ",$P="↓",NP="↡",OP="⇓",PP="‐",RP="⫤",zP="⊣",IP="⤏",DP="˝",FP="Ď",HP="ď",BP="Д",WP="д",qP="‡",jP="⇊",UP="ⅅ",VP="ⅆ",GP="⤑",KP="⩷",XP="°",YP="∇",ZP="Δ",JP="δ",QP="⦱",eR="⥿",tR="𝔇",nR="𝔡",rR="⥥",iR="⇃",oR="⇂",sR="´",lR="˙",aR="˝",cR="`",uR="˜",fR="⋄",dR="⋄",hR="⋄",pR="♦",gR="♦",vR="¨",mR="ⅆ",yR="ϝ",bR="⋲",wR="÷",xR="÷",_R="⋇",SR="⋇",kR="Ђ",TR="ђ",CR="⌞",ER="⌍",AR="$",LR="𝔻",MR="𝕕",$R="¨",NR="˙",OR="⃜",PR="≐",RR="≑",zR="≐",IR="∸",DR="∔",FR="⊡",HR="⌆",BR="∯",WR="¨",qR="⇓",jR="⇐",UR="⇔",VR="⫤",GR="⟸",KR="⟺",XR="⟹",YR="⇒",ZR="⊨",JR="⇑",QR="⇕",ez="∥",tz="⤓",nz="↓",rz="↓",iz="⇓",oz="⇵",sz="̑",lz="⇊",az="⇃",cz="⇂",uz="⥐",fz="⥞",dz="⥖",hz="↽",pz="⥟",gz="⥗",vz="⇁",mz="↧",yz="⊤",bz="⤐",wz="⌟",xz="⌌",_z="𝒟",Sz="𝒹",kz="Ѕ",Tz="ѕ",Cz="⧶",Ez="Đ",Az="đ",Lz="⋱",Mz="▿",$z="▾",Nz="⇵",Oz="⥯",Pz="⦦",Rz="Џ",zz="џ",Iz="⟿",Dz="É",Fz="é",Hz="⩮",Bz="Ě",Wz="ě",qz="Ê",jz="ê",Uz="≖",Vz="≕",Gz="Э",Kz="э",Xz="⩷",Yz="Ė",Zz="ė",Jz="≑",Qz="ⅇ",eI="≒",tI="𝔈",nI="𝔢",rI="⪚",iI="È",oI="è",sI="⪖",lI="⪘",aI="⪙",cI="∈",uI="⏧",fI="ℓ",dI="⪕",hI="⪗",pI="Ē",gI="ē",vI="∅",mI="∅",yI="◻",bI="∅",wI="▫",xI=" ",_I=" ",SI=" ",kI="Ŋ",TI="ŋ",CI=" ",EI="Ę",AI="ę",LI="𝔼",MI="𝕖",$I="⋕",NI="⧣",OI="⩱",PI="ε",RI="Ε",zI="ε",II="ϵ",DI="≖",FI="≕",HI="≂",BI="⪖",WI="⪕",qI="⩵",jI="=",UI="≂",VI="≟",GI="⇌",KI="≡",XI="⩸",YI="⧥",ZI="⥱",JI="≓",QI="ℯ",eD="ℰ",tD="≐",nD="⩳",rD="≂",iD="Η",oD="η",sD="Ð",lD="ð",aD="Ë",cD="ë",uD="€",fD="!",dD="∃",hD="∃",pD="ℰ",gD="ⅇ",vD="ⅇ",mD="≒",yD="Ф",bD="ф",wD="♀",xD="ffi",_D="ff",SD="ffl",kD="𝔉",TD="𝔣",CD="fi",ED="◼",AD="▪",LD="fj",MD="♭",$D="fl",ND="▱",OD="ƒ",PD="𝔽",RD="𝕗",zD="∀",ID="∀",DD="⋔",FD="⫙",HD="ℱ",BD="⨍",WD="½",qD="⅓",jD="¼",UD="⅕",VD="⅙",GD="⅛",KD="⅔",XD="⅖",YD="¾",ZD="⅗",JD="⅜",QD="⅘",eF="⅚",tF="⅝",nF="⅞",rF="⁄",iF="⌢",oF="𝒻",sF="ℱ",lF="ǵ",aF="Γ",cF="γ",uF="Ϝ",fF="ϝ",dF="⪆",hF="Ğ",pF="ğ",gF="Ģ",vF="Ĝ",mF="ĝ",yF="Г",bF="г",wF="Ġ",xF="ġ",_F="≥",SF="≧",kF="⪌",TF="⋛",CF="≥",EF="≧",AF="⩾",LF="⪩",MF="⩾",$F="⪀",NF="⪂",OF="⪄",PF="⋛︀",RF="⪔",zF="𝔊",IF="𝔤",DF="≫",FF="⋙",HF="⋙",BF="ℷ",WF="Ѓ",qF="ѓ",jF="⪥",UF="≷",VF="⪒",GF="⪤",KF="⪊",XF="⪊",YF="⪈",ZF="≩",JF="⪈",QF="≩",eH="⋧",tH="𝔾",nH="𝕘",rH="`",iH="≥",oH="⋛",sH="≧",lH="⪢",aH="≷",cH="⩾",uH="≳",fH="𝒢",dH="ℊ",hH="≳",pH="⪎",gH="⪐",vH="⪧",mH="⩺",yH=">",bH=">",wH="≫",xH="⋗",_H="⦕",SH="⩼",kH="⪆",TH="⥸",CH="⋗",EH="⋛",AH="⪌",LH="≷",MH="≳",$H="≩︀",NH="≩︀",OH="ˇ",PH=" ",RH="½",zH="ℋ",IH="Ъ",DH="ъ",FH="⥈",HH="↔",BH="⇔",WH="↭",qH="^",jH="ℏ",UH="Ĥ",VH="ĥ",GH="♥",KH="♥",XH="…",YH="⊹",ZH="𝔥",JH="ℌ",QH="ℋ",e3="⤥",t3="⤦",n3="⇿",r3="∻",i3="↩",o3="↪",s3="𝕙",l3="ℍ",a3="―",c3="─",u3="𝒽",f3="ℋ",d3="ℏ",h3="Ħ",p3="ħ",g3="≎",v3="≏",m3="⁃",y3="‐",b3="Í",w3="í",x3="⁣",_3="Î",S3="î",k3="И",T3="и",C3="İ",E3="Е",A3="е",L3="¡",M3="⇔",$3="𝔦",N3="ℑ",O3="Ì",P3="ì",R3="ⅈ",z3="⨌",I3="∭",D3="⧜",F3="℩",H3="IJ",B3="ij",W3="Ī",q3="ī",j3="ℑ",U3="ⅈ",V3="ℐ",G3="ℑ",K3="ı",X3="ℑ",Y3="⊷",Z3="Ƶ",J3="⇒",Q3="℅",eB="∞",tB="⧝",nB="ı",rB="⊺",iB="∫",oB="∬",sB="ℤ",lB="∫",aB="⊺",cB="⋂",uB="⨗",fB="⨼",dB="⁣",hB="⁢",pB="Ё",gB="ё",vB="Į",mB="į",yB="𝕀",bB="𝕚",wB="Ι",xB="ι",_B="⨼",SB="¿",kB="𝒾",TB="ℐ",CB="∈",EB="⋵",AB="⋹",LB="⋴",MB="⋳",$B="∈",NB="⁢",OB="Ĩ",PB="ĩ",RB="І",zB="і",IB="Ï",DB="ï",FB="Ĵ",HB="ĵ",BB="Й",WB="й",qB="𝔍",jB="𝔧",UB="ȷ",VB="𝕁",GB="𝕛",KB="𝒥",XB="𝒿",YB="Ј",ZB="ј",JB="Є",QB="є",e5="Κ",t5="κ",n5="ϰ",r5="Ķ",i5="ķ",o5="К",s5="к",l5="𝔎",a5="𝔨",c5="ĸ",u5="Х",f5="х",d5="Ќ",h5="ќ",p5="𝕂",g5="𝕜",v5="𝒦",m5="𝓀",y5="⇚",b5="Ĺ",w5="ĺ",x5="⦴",_5="ℒ",S5="Λ",k5="λ",T5="⟨",C5="⟪",E5="⦑",A5="⟨",L5="⪅",M5="ℒ",$5="«",N5="⇤",O5="⤟",P5="←",R5="↞",z5="⇐",I5="⤝",D5="↩",F5="↫",H5="⤹",B5="⥳",W5="↢",q5="⤙",j5="⤛",U5="⪫",V5="⪭",G5="⪭︀",K5="⤌",X5="⤎",Y5="❲",Z5="{",J5="[",Q5="⦋",e8="⦏",t8="⦍",n8="Ľ",r8="ľ",i8="Ļ",o8="ļ",s8="⌈",l8="{",a8="Л",c8="л",u8="⤶",f8="“",d8="„",h8="⥧",p8="⥋",g8="↲",v8="≤",m8="≦",y8="⟨",b8="⇤",w8="←",x8="←",_8="⇐",S8="⇆",k8="↢",T8="⌈",C8="⟦",E8="⥡",A8="⥙",L8="⇃",M8="⌊",$8="↽",N8="↼",O8="⇇",P8="↔",R8="↔",z8="⇔",I8="⇆",D8="⇋",F8="↭",H8="⥎",B8="↤",W8="⊣",q8="⥚",j8="⋋",U8="⧏",V8="⊲",G8="⊴",K8="⥑",X8="⥠",Y8="⥘",Z8="↿",J8="⥒",Q8="↼",e4="⪋",t4="⋚",n4="≤",r4="≦",i4="⩽",o4="⪨",s4="⩽",l4="⩿",a4="⪁",c4="⪃",u4="⋚︀",f4="⪓",d4="⪅",h4="⋖",p4="⋚",g4="⪋",v4="⋚",m4="≦",y4="≶",b4="≶",w4="⪡",x4="≲",_4="⩽",S4="≲",k4="⥼",T4="⌊",C4="𝔏",E4="𝔩",A4="≶",L4="⪑",M4="⥢",$4="↽",N4="↼",O4="⥪",P4="▄",R4="Љ",z4="љ",I4="⇇",D4="≪",F4="⋘",H4="⌞",B4="⇚",W4="⥫",q4="◺",j4="Ŀ",U4="ŀ",V4="⎰",G4="⎰",K4="⪉",X4="⪉",Y4="⪇",Z4="≨",J4="⪇",Q4="≨",eW="⋦",tW="⟬",nW="⇽",rW="⟦",iW="⟵",oW="⟵",sW="⟸",lW="⟷",aW="⟷",cW="⟺",uW="⟼",fW="⟶",dW="⟶",hW="⟹",pW="↫",gW="↬",vW="⦅",mW="𝕃",yW="𝕝",bW="⨭",wW="⨴",xW="∗",_W="_",SW="↙",kW="↘",TW="◊",CW="◊",EW="⧫",AW="(",LW="⦓",MW="⇆",$W="⌟",NW="⇋",OW="⥭",PW="‎",RW="⊿",zW="‹",IW="𝓁",DW="ℒ",FW="↰",HW="↰",BW="≲",WW="⪍",qW="⪏",jW="[",UW="‘",VW="‚",GW="Ł",KW="ł",XW="⪦",YW="⩹",ZW="<",JW="<",QW="≪",eq="⋖",tq="⋋",nq="⋉",rq="⥶",iq="⩻",oq="◃",sq="⊴",lq="◂",aq="⦖",cq="⥊",uq="⥦",fq="≨︀",dq="≨︀",hq="¯",pq="♂",gq="✠",vq="✠",mq="↦",yq="↦",bq="↧",wq="↤",xq="↥",_q="▮",Sq="⨩",kq="М",Tq="м",Cq="—",Eq="∺",Aq="∡",Lq=" ",Mq="ℳ",$q="𝔐",Nq="𝔪",Oq="℧",Pq="µ",Rq="*",zq="⫰",Iq="∣",Dq="·",Fq="⊟",Hq="−",Bq="∸",Wq="⨪",qq="∓",jq="⫛",Uq="…",Vq="∓",Gq="⊧",Kq="𝕄",Xq="𝕞",Yq="∓",Zq="𝓂",Jq="ℳ",Qq="∾",ej="Μ",tj="μ",nj="⊸",rj="⊸",ij="∇",oj="Ń",sj="ń",lj="∠⃒",aj="≉",cj="⩰̸",uj="≋̸",fj="ʼn",dj="≉",hj="♮",pj="ℕ",gj="♮",vj=" ",mj="≎̸",yj="≏̸",bj="⩃",wj="Ň",xj="ň",_j="Ņ",Sj="ņ",kj="≇",Tj="⩭̸",Cj="⩂",Ej="Н",Aj="н",Lj="–",Mj="⤤",$j="↗",Nj="⇗",Oj="↗",Pj="≠",Rj="≐̸",zj="​",Ij="​",Dj="​",Fj="​",Hj="≢",Bj="⤨",Wj="≂̸",qj="≫",jj="≪",Uj=`
20
- `,Vj="∄",Gj="∄",Kj="𝔑",Xj="𝔫",Yj="≧̸",Zj="≱",Jj="≱",Qj="≧̸",e6="⩾̸",t6="⩾̸",n6="⋙̸",r6="≵",i6="≫⃒",o6="≯",s6="≯",l6="≫̸",a6="↮",c6="⇎",u6="⫲",f6="∋",d6="⋼",h6="⋺",p6="∋",g6="Њ",v6="њ",m6="↚",y6="⇍",b6="‥",w6="≦̸",x6="≰",_6="↚",S6="⇍",k6="↮",T6="⇎",C6="≰",E6="≦̸",A6="⩽̸",L6="⩽̸",M6="≮",$6="⋘̸",N6="≴",O6="≪⃒",P6="≮",R6="⋪",z6="⋬",I6="≪̸",D6="∤",F6="⁠",H6=" ",B6="𝕟",W6="ℕ",q6="⫬",j6="¬",U6="≢",V6="≭",G6="∦",K6="∉",X6="≠",Y6="≂̸",Z6="∄",J6="≯",Q6="≱",eU="≧̸",tU="≫̸",nU="≹",rU="⩾̸",iU="≵",oU="≎̸",sU="≏̸",lU="∉",aU="⋵̸",cU="⋹̸",uU="∉",fU="⋷",dU="⋶",hU="⧏̸",pU="⋪",gU="⋬",vU="≮",mU="≰",yU="≸",bU="≪̸",wU="⩽̸",xU="≴",_U="⪢̸",SU="⪡̸",kU="∌",TU="∌",CU="⋾",EU="⋽",AU="⊀",LU="⪯̸",MU="⋠",$U="∌",NU="⧐̸",OU="⋫",PU="⋭",RU="⊏̸",zU="⋢",IU="⊐̸",DU="⋣",FU="⊂⃒",HU="⊈",BU="⊁",WU="⪰̸",qU="⋡",jU="≿̸",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="⋭",vV="⊁",mV="⋡",yV="⪰̸",bV="𝒩",wV="𝓃",xV="∤",_V="∦",SV="≁",kV="≄",TV="≄",CV="∤",EV="∦",AV="⋢",LV="⋣",MV="⊄",$V="⫅̸",NV="⊈",OV="⊂⃒",PV="⊈",RV="⫅̸",zV="⊁",IV="⪰̸",DV="⊅",FV="⫆̸",HV="⊉",BV="⊃⃒",WV="⊉",qV="⫆̸",jV="≹",UV="Ñ",VV="ñ",GV="≸",KV="⋪",XV="⋬",YV="⋫",ZV="⋭",JV="Ν",QV="ν",e9="#",t9="№",n9=" ",r9="≍⃒",i9="⊬",o9="⊭",s9="⊮",l9="⊯",a9="≥⃒",c9=">⃒",u9="⤄",f9="⧞",d9="⤂",h9="≤⃒",p9="<⃒",g9="⊴⃒",v9="⤃",m9="⊵⃒",y9="∼⃒",b9="⤣",w9="↖",x9="⇖",_9="↖",S9="⤧",k9="Ó",T9="ó",C9="⊛",E9="Ô",A9="ô",L9="⊚",M9="О",$9="о",N9="⊝",O9="Ő",P9="ő",R9="⨸",z9="⊙",I9="⦼",D9="Œ",F9="œ",H9="⦿",B9="𝔒",W9="𝔬",q9="˛",j9="Ò",U9="ò",V9="⧁",G9="⦵",K9="Ω",X9="∮",Y9="↺",Z9="⦾",J9="⦻",Q9="‾",eG="⧀",tG="Ō",nG="ō",rG="Ω",iG="ω",oG="Ο",sG="ο",lG="⦶",aG="⊖",cG="𝕆",uG="𝕠",fG="⦷",dG="“",hG="‘",pG="⦹",gG="⊕",vG="↻",mG="⩔",yG="∨",bG="⩝",wG="ℴ",xG="ℴ",_G="ª",SG="º",kG="⊶",TG="⩖",CG="⩗",EG="⩛",AG="Ⓢ",LG="𝒪",MG="ℴ",$G="Ø",NG="ø",OG="⊘",PG="Õ",RG="õ",zG="⨶",IG="⨷",DG="⊗",FG="Ö",HG="ö",BG="⌽",WG="‾",qG="⏞",jG="⎴",UG="⏜",VG="¶",GG="∥",KG="∥",XG="⫳",YG="⫽",ZG="∂",JG="∂",QG="П",e7="п",t7="%",n7=".",r7="‰",i7="⊥",o7="‱",s7="𝔓",l7="𝔭",a7="Φ",c7="φ",u7="ϕ",f7="ℳ",d7="☎",h7="Π",p7="π",g7="⋔",v7="ϖ",m7="ℏ",y7="ℎ",b7="ℏ",w7="⨣",x7="⊞",_7="⨢",S7="+",k7="∔",T7="⨥",C7="⩲",E7="±",A7="±",L7="⨦",M7="⨧",$7="±",N7="ℌ",O7="⨕",P7="𝕡",R7="ℙ",z7="£",I7="⪷",D7="⪻",F7="≺",H7="≼",B7="⪷",W7="≺",q7="≼",j7="≺",U7="⪯",V7="≼",G7="≾",K7="⪯",X7="⪹",Y7="⪵",Z7="⋨",J7="⪯",Q7="⪳",eK="≾",tK="′",nK="″",rK="ℙ",iK="⪹",oK="⪵",sK="⋨",lK="∏",aK="∏",cK="⌮",uK="⌒",fK="⌓",dK="∝",hK="∝",pK="∷",gK="∝",vK="≾",mK="⊰",yK="𝒫",bK="𝓅",wK="Ψ",xK="ψ",_K=" ",SK="𝔔",kK="𝔮",TK="⨌",CK="𝕢",EK="ℚ",AK="⁗",LK="𝒬",MK="𝓆",$K="ℍ",NK="⨖",OK="?",PK="≟",RK='"',zK='"',IK="⇛",DK="∽̱",FK="Ŕ",HK="ŕ",BK="√",WK="⦳",qK="⟩",jK="⟫",UK="⦒",VK="⦥",GK="⟩",KK="»",XK="⥵",YK="⇥",ZK="⤠",JK="⤳",QK="→",eX="↠",tX="⇒",nX="⤞",rX="↪",iX="↬",oX="⥅",sX="⥴",lX="⤖",aX="↣",cX="↝",uX="⤚",fX="⤜",dX="∶",hX="ℚ",pX="⤍",gX="⤏",vX="⤐",mX="❳",yX="}",bX="]",wX="⦌",xX="⦎",_X="⦐",SX="Ř",kX="ř",TX="Ŗ",CX="ŗ",EX="⌉",AX="}",LX="Р",MX="р",$X="⤷",NX="⥩",OX="”",PX="”",RX="↳",zX="ℜ",IX="ℛ",DX="ℜ",FX="ℝ",HX="ℜ",BX="▭",WX="®",qX="®",jX="∋",UX="⇋",VX="⥯",GX="⥽",KX="⌋",XX="𝔯",YX="ℜ",ZX="⥤",JX="⇁",QX="⇀",eY="⥬",tY="Ρ",nY="ρ",rY="ϱ",iY="⟩",oY="⇥",sY="→",lY="→",aY="⇒",cY="⇄",uY="↣",fY="⌉",dY="⟧",hY="⥝",pY="⥕",gY="⇂",vY="⌋",mY="⇁",yY="⇀",bY="⇄",wY="⇌",xY="⇉",_Y="↝",SY="↦",kY="⊢",TY="⥛",CY="⋌",EY="⧐",AY="⊳",LY="⊵",MY="⥏",$Y="⥜",NY="⥔",OY="↾",PY="⥓",RY="⇀",zY="˚",IY="≓",DY="⇄",FY="⇌",HY="‏",BY="⎱",WY="⎱",qY="⫮",jY="⟭",UY="⇾",VY="⟧",GY="⦆",KY="𝕣",XY="ℝ",YY="⨮",ZY="⨵",JY="⥰",QY=")",eZ="⦔",tZ="⨒",nZ="⇉",rZ="⇛",iZ="›",oZ="𝓇",sZ="ℛ",lZ="↱",aZ="↱",cZ="]",uZ="’",fZ="’",dZ="⋌",hZ="⋊",pZ="▹",gZ="⊵",vZ="▸",mZ="⧎",yZ="⧴",bZ="⥨",wZ="℞",xZ="Ś",_Z="ś",SZ="‚",kZ="⪸",TZ="Š",CZ="š",EZ="⪼",AZ="≻",LZ="≽",MZ="⪰",$Z="⪴",NZ="Ş",OZ="ş",PZ="Ŝ",RZ="ŝ",zZ="⪺",IZ="⪶",DZ="⋩",FZ="⨓",HZ="≿",BZ="С",WZ="с",qZ="⊡",jZ="⋅",UZ="⩦",VZ="⤥",GZ="↘",KZ="⇘",XZ="↘",YZ="§",ZZ=";",JZ="⤩",QZ="∖",eJ="∖",tJ="✶",nJ="𝔖",rJ="𝔰",iJ="⌢",oJ="♯",sJ="Щ",lJ="щ",aJ="Ш",cJ="ш",uJ="↓",fJ="←",dJ="∣",hJ="∥",pJ="→",gJ="↑",vJ="­",mJ="Σ",yJ="σ",bJ="ς",wJ="ς",xJ="∼",_J="⩪",SJ="≃",kJ="≃",TJ="⪞",CJ="⪠",EJ="⪝",AJ="⪟",LJ="≆",MJ="⨤",$J="⥲",NJ="←",OJ="∘",PJ="∖",RJ="⨳",zJ="⧤",IJ="∣",DJ="⌣",FJ="⪪",HJ="⪬",BJ="⪬︀",WJ="Ь",qJ="ь",jJ="⌿",UJ="⧄",VJ="/",GJ="𝕊",KJ="𝕤",XJ="♠",YJ="♠",ZJ="∥",JJ="⊓",QJ="⊓︀",eQ="⊔",tQ="⊔︀",nQ="√",rQ="⊏",iQ="⊑",oQ="⊏",sQ="⊑",lQ="⊐",aQ="⊒",cQ="⊐",uQ="⊒",fQ="□",dQ="□",hQ="⊓",pQ="⊏",gQ="⊑",vQ="⊐",mQ="⊒",yQ="⊔",bQ="▪",wQ="□",xQ="▪",_Q="→",SQ="𝒮",kQ="𝓈",TQ="∖",CQ="⌣",EQ="⋆",AQ="⋆",LQ="☆",MQ="★",$Q="ϵ",NQ="ϕ",OQ="¯",PQ="⊂",RQ="⋐",zQ="⪽",IQ="⫅",DQ="⊆",FQ="⫃",HQ="⫁",BQ="⫋",WQ="⊊",qQ="⪿",jQ="⥹",UQ="⊂",VQ="⋐",GQ="⊆",KQ="⫅",XQ="⊆",YQ="⊊",ZQ="⫋",JQ="⫇",QQ="⫕",eee="⫓",tee="⪸",nee="≻",ree="≽",iee="≻",oee="⪰",see="≽",lee="≿",aee="⪰",cee="⪺",uee="⪶",fee="⋩",dee="≿",hee="∋",pee="∑",gee="∑",vee="♪",mee="¹",yee="²",bee="³",wee="⊃",xee="⋑",_ee="⪾",See="⫘",kee="⫆",Tee="⊇",Cee="⫄",Eee="⊃",Aee="⊇",Lee="⟉",Mee="⫗",$ee="⥻",Nee="⫂",Oee="⫌",Pee="⊋",Ree="⫀",zee="⊃",Iee="⋑",Dee="⊇",Fee="⫆",Hee="⊋",Bee="⫌",Wee="⫈",qee="⫔",jee="⫖",Uee="⤦",Vee="↙",Gee="⇙",Kee="↙",Xee="⤪",Yee="ß",Zee=" ",Jee="⌖",Qee="Τ",ete="τ",tte="⎴",nte="Ť",rte="ť",ite="Ţ",ote="ţ",ste="Т",lte="т",ate="⃛",cte="⌕",ute="𝔗",fte="𝔱",dte="∴",hte="∴",pte="∴",gte="Θ",vte="θ",mte="ϑ",yte="ϑ",bte="≈",wte="∼",xte="  ",_te=" ",Ste=" ",kte="≈",Tte="∼",Cte="Þ",Ete="þ",Ate="˜",Lte="∼",Mte="≃",$te="≅",Nte="≈",Ote="⨱",Pte="⊠",Rte="×",zte="⨰",Ite="∭",Dte="⤨",Fte="⌶",Hte="⫱",Bte="⊤",Wte="𝕋",qte="𝕥",jte="⫚",Ute="⤩",Vte="‴",Gte="™",Kte="™",Xte="▵",Yte="▿",Zte="◃",Jte="⊴",Qte="≜",ene="▹",tne="⊵",nne="◬",rne="≜",ine="⨺",one="⃛",sne="⨹",lne="⧍",ane="⨻",cne="⏢",une="𝒯",fne="𝓉",dne="Ц",hne="ц",pne="Ћ",gne="ћ",vne="Ŧ",mne="ŧ",yne="≬",bne="↞",wne="↠",xne="Ú",_ne="ú",Sne="↑",kne="↟",Tne="⇑",Cne="⥉",Ene="Ў",Ane="ў",Lne="Ŭ",Mne="ŭ",$ne="Û",Nne="û",One="У",Pne="у",Rne="⇅",zne="Ű",Ine="ű",Dne="⥮",Fne="⥾",Hne="𝔘",Bne="𝔲",Wne="Ù",qne="ù",jne="⥣",Une="↿",Vne="↾",Gne="▀",Kne="⌜",Xne="⌜",Yne="⌏",Zne="◸",Jne="Ū",Qne="ū",ere="¨",tre="_",nre="⏟",rre="⎵",ire="⏝",ore="⋃",sre="⊎",lre="Ų",are="ų",cre="𝕌",ure="𝕦",fre="⤒",dre="↑",hre="↑",pre="⇑",gre="⇅",vre="↕",mre="↕",yre="⇕",bre="⥮",wre="↿",xre="↾",_re="⊎",Sre="↖",kre="↗",Tre="υ",Cre="ϒ",Ere="ϒ",Are="Υ",Lre="υ",Mre="↥",$re="⊥",Nre="⇈",Ore="⌝",Pre="⌝",Rre="⌎",zre="Ů",Ire="ů",Dre="◹",Fre="𝒰",Hre="𝓊",Bre="⋰",Wre="Ũ",qre="ũ",jre="▵",Ure="▴",Vre="⇈",Gre="Ü",Kre="ü",Xre="⦧",Yre="⦜",Zre="ϵ",Jre="ϰ",Qre="∅",eie="ϕ",tie="ϖ",nie="∝",rie="↕",iie="⇕",oie="ϱ",sie="ς",lie="⊊︀",aie="⫋︀",cie="⊋︀",uie="⫌︀",fie="ϑ",die="⊲",hie="⊳",pie="⫨",gie="⫫",vie="⫩",mie="В",yie="в",bie="⊢",wie="⊨",xie="⊩",_ie="⊫",Sie="⫦",kie="⊻",Tie="∨",Cie="⋁",Eie="≚",Aie="⋮",Lie="|",Mie="‖",$ie="|",Nie="‖",Oie="∣",Pie="|",Rie="❘",zie="≀",Iie=" ",Die="𝔙",Fie="𝔳",Hie="⊲",Bie="⊂⃒",Wie="⊃⃒",qie="𝕍",jie="𝕧",Uie="∝",Vie="⊳",Gie="𝒱",Kie="𝓋",Xie="⫋︀",Yie="⊊︀",Zie="⫌︀",Jie="⊋︀",Qie="⊪",eoe="⦚",toe="Ŵ",noe="ŵ",roe="⩟",ioe="∧",ooe="⋀",soe="≙",loe="℘",aoe="𝔚",coe="𝔴",uoe="𝕎",foe="𝕨",doe="℘",hoe="≀",poe="≀",goe="𝒲",voe="𝓌",moe="⋂",yoe="◯",boe="⋃",woe="▽",xoe="𝔛",_oe="𝔵",Soe="⟷",koe="⟺",Toe="Ξ",Coe="ξ",Eoe="⟵",Aoe="⟸",Loe="⟼",Moe="⋻",$oe="⨀",Noe="𝕏",Ooe="𝕩",Poe="⨁",Roe="⨂",zoe="⟶",Ioe="⟹",Doe="𝒳",Foe="𝓍",Hoe="⨆",Boe="⨄",Woe="△",qoe="⋁",joe="⋀",Uoe="Ý",Voe="ý",Goe="Я",Koe="я",Xoe="Ŷ",Yoe="ŷ",Zoe="Ы",Joe="ы",Qoe="¥",ese="𝔜",tse="𝔶",nse="Ї",rse="ї",ise="𝕐",ose="𝕪",sse="𝒴",lse="𝓎",ase="Ю",cse="ю",use="ÿ",fse="Ÿ",dse="Ź",hse="ź",pse="Ž",gse="ž",vse="З",mse="з",yse="Ż",bse="ż",wse="ℨ",xse="​",_se="Ζ",Sse="ζ",kse="𝔷",Tse="ℨ",Cse="Ж",Ese="ж",Ase="⇝",Lse="𝕫",Mse="ℤ",$se="𝒵",Nse="𝓏",Ose="‍",Pse="‌",Iw={Aacute:yL,aacute:bL,Abreve:wL,abreve:xL,ac:_L,acd:SL,acE:kL,Acirc:TL,acirc:CL,acute:EL,Acy:AL,acy:LL,AElig:ML,aelig:$L,af:NL,Afr:OL,afr:PL,Agrave:RL,agrave:zL,alefsym:IL,aleph:DL,Alpha:FL,alpha:HL,Amacr:BL,amacr:WL,amalg:qL,amp:jL,AMP:UL,andand:VL,And:GL,and:KL,andd:XL,andslope:YL,andv:ZL,ang:JL,ange:QL,angle:eM,angmsdaa:tM,angmsdab:nM,angmsdac:rM,angmsdad:iM,angmsdae:oM,angmsdaf:sM,angmsdag:lM,angmsdah:aM,angmsd:cM,angrt:uM,angrtvb:fM,angrtvbd:dM,angsph:hM,angst:pM,angzarr:gM,Aogon:vM,aogon:mM,Aopf:yM,aopf:bM,apacir:wM,ap:xM,apE:_M,ape:SM,apid:kM,apos:TM,ApplyFunction:CM,approx:EM,approxeq:AM,Aring:LM,aring:MM,Ascr:$M,ascr:NM,Assign:OM,ast:PM,asymp:RM,asympeq:zM,Atilde:IM,atilde:DM,Auml:FM,auml:HM,awconint:BM,awint:WM,backcong:qM,backepsilon:jM,backprime:UM,backsim:VM,backsimeq:GM,Backslash:KM,Barv:XM,barvee:YM,barwed:ZM,Barwed:JM,barwedge:QM,bbrk:e$,bbrktbrk:t$,bcong:n$,Bcy:r$,bcy:i$,bdquo:o$,becaus:s$,because:l$,Because:a$,bemptyv:c$,bepsi:u$,bernou:f$,Bernoullis:d$,Beta:h$,beta:p$,beth:g$,between:v$,Bfr:m$,bfr:y$,bigcap:b$,bigcirc:w$,bigcup:x$,bigodot:_$,bigoplus:S$,bigotimes:k$,bigsqcup:T$,bigstar:C$,bigtriangledown:E$,bigtriangleup:A$,biguplus:L$,bigvee:M$,bigwedge:$$,bkarow:N$,blacklozenge:O$,blacksquare:P$,blacktriangle:R$,blacktriangledown:z$,blacktriangleleft:I$,blacktriangleright:D$,blank:F$,blk12:H$,blk14:B$,blk34:W$,block:q$,bne:j$,bnequiv:U$,bNot:V$,bnot:G$,Bopf:K$,bopf:X$,bot:Y$,bottom:Z$,bowtie:J$,boxbox:Q$,boxdl:eN,boxdL:tN,boxDl:nN,boxDL:rN,boxdr:iN,boxdR:oN,boxDr:sN,boxDR:lN,boxh:aN,boxH:cN,boxhd:uN,boxHd:fN,boxhD:dN,boxHD:hN,boxhu:pN,boxHu:gN,boxhU:vN,boxHU:mN,boxminus:yN,boxplus:bN,boxtimes:wN,boxul:xN,boxuL:_N,boxUl:SN,boxUL:kN,boxur:TN,boxuR:CN,boxUr:EN,boxUR:AN,boxv:LN,boxV:MN,boxvh:$N,boxvH:NN,boxVh:ON,boxVH:PN,boxvl:RN,boxvL:zN,boxVl:IN,boxVL:DN,boxvr:FN,boxvR:HN,boxVr:BN,boxVR:WN,bprime:qN,breve:jN,Breve:UN,brvbar:VN,bscr:GN,Bscr:KN,bsemi:XN,bsim:YN,bsime:ZN,bsolb:JN,bsol:QN,bsolhsub:e2,bull:t2,bullet:n2,bump:r2,bumpE:i2,bumpe:o2,Bumpeq:s2,bumpeq:l2,Cacute:a2,cacute:c2,capand:u2,capbrcup:f2,capcap:d2,cap:h2,Cap:p2,capcup:g2,capdot:v2,CapitalDifferentialD:m2,caps:y2,caret:b2,caron:w2,Cayleys:x2,ccaps:_2,Ccaron:S2,ccaron:k2,Ccedil:T2,ccedil:C2,Ccirc:E2,ccirc:A2,Cconint:L2,ccups:M2,ccupssm:$2,Cdot:N2,cdot:O2,cedil:P2,Cedilla:R2,cemptyv:z2,cent:I2,centerdot:D2,CenterDot:F2,cfr:H2,Cfr:B2,CHcy:W2,chcy:q2,check:j2,checkmark:U2,Chi:V2,chi:G2,circ:K2,circeq:X2,circlearrowleft:Y2,circlearrowright:Z2,circledast:J2,circledcirc:Q2,circleddash:eO,CircleDot:tO,circledR:nO,circledS:rO,CircleMinus:iO,CirclePlus:oO,CircleTimes:sO,cir:lO,cirE:aO,cire:cO,cirfnint:uO,cirmid:fO,cirscir:dO,ClockwiseContourIntegral:hO,CloseCurlyDoubleQuote:pO,CloseCurlyQuote:gO,clubs:vO,clubsuit:mO,colon:yO,Colon:bO,Colone:wO,colone:xO,coloneq:_O,comma:SO,commat:kO,comp:TO,compfn:CO,complement:EO,complexes:AO,cong:LO,congdot:MO,Congruent:$O,conint:NO,Conint:OO,ContourIntegral:PO,copf:RO,Copf:zO,coprod:IO,Coproduct:DO,copy:FO,COPY:HO,copysr:BO,CounterClockwiseContourIntegral:WO,crarr:qO,cross:jO,Cross:UO,Cscr:VO,cscr:GO,csub:KO,csube:XO,csup:YO,csupe:ZO,ctdot:JO,cudarrl:QO,cudarrr:eP,cuepr:tP,cuesc:nP,cularr:rP,cularrp:iP,cupbrcap:oP,cupcap:sP,CupCap:lP,cup:aP,Cup:cP,cupcup:uP,cupdot:fP,cupor:dP,cups:hP,curarr:pP,curarrm:gP,curlyeqprec:vP,curlyeqsucc:mP,curlyvee:yP,curlywedge:bP,curren:wP,curvearrowleft:xP,curvearrowright:_P,cuvee:SP,cuwed:kP,cwconint:TP,cwint:CP,cylcty:EP,dagger:AP,Dagger:LP,daleth:MP,darr:$P,Darr:NP,dArr:OP,dash:PP,Dashv:RP,dashv:zP,dbkarow:IP,dblac:DP,Dcaron:FP,dcaron:HP,Dcy:BP,dcy:WP,ddagger:qP,ddarr:jP,DD:UP,dd:VP,DDotrahd:GP,ddotseq:KP,deg:XP,Del:YP,Delta:ZP,delta:JP,demptyv:QP,dfisht:eR,Dfr:tR,dfr:nR,dHar:rR,dharl:iR,dharr:oR,DiacriticalAcute:sR,DiacriticalDot:lR,DiacriticalDoubleAcute:aR,DiacriticalGrave:cR,DiacriticalTilde:uR,diam:fR,diamond:dR,Diamond:hR,diamondsuit:pR,diams:gR,die:vR,DifferentialD:mR,digamma:yR,disin:bR,div:wR,divide:xR,divideontimes:_R,divonx:SR,DJcy:kR,djcy:TR,dlcorn:CR,dlcrop:ER,dollar:AR,Dopf:LR,dopf:MR,Dot:$R,dot:NR,DotDot:OR,doteq:PR,doteqdot:RR,DotEqual:zR,dotminus:IR,dotplus:DR,dotsquare:FR,doublebarwedge:HR,DoubleContourIntegral:BR,DoubleDot:WR,DoubleDownArrow:qR,DoubleLeftArrow:jR,DoubleLeftRightArrow:UR,DoubleLeftTee:VR,DoubleLongLeftArrow:GR,DoubleLongLeftRightArrow:KR,DoubleLongRightArrow:XR,DoubleRightArrow:YR,DoubleRightTee:ZR,DoubleUpArrow:JR,DoubleUpDownArrow:QR,DoubleVerticalBar:ez,DownArrowBar:tz,downarrow:nz,DownArrow:rz,Downarrow:iz,DownArrowUpArrow:oz,DownBreve:sz,downdownarrows:lz,downharpoonleft:az,downharpoonright:cz,DownLeftRightVector:uz,DownLeftTeeVector:fz,DownLeftVectorBar:dz,DownLeftVector:hz,DownRightTeeVector:pz,DownRightVectorBar:gz,DownRightVector:vz,DownTeeArrow:mz,DownTee:yz,drbkarow:bz,drcorn:wz,drcrop:xz,Dscr:_z,dscr:Sz,DScy:kz,dscy:Tz,dsol:Cz,Dstrok:Ez,dstrok:Az,dtdot:Lz,dtri:Mz,dtrif:$z,duarr:Nz,duhar:Oz,dwangle:Pz,DZcy:Rz,dzcy:zz,dzigrarr:Iz,Eacute:Dz,eacute:Fz,easter:Hz,Ecaron:Bz,ecaron:Wz,Ecirc:qz,ecirc:jz,ecir:Uz,ecolon:Vz,Ecy:Gz,ecy:Kz,eDDot:Xz,Edot:Yz,edot:Zz,eDot:Jz,ee:Qz,efDot:eI,Efr:tI,efr:nI,eg:rI,Egrave:iI,egrave:oI,egs:sI,egsdot:lI,el:aI,Element:cI,elinters:uI,ell:fI,els:dI,elsdot:hI,Emacr:pI,emacr:gI,empty:vI,emptyset:mI,EmptySmallSquare:yI,emptyv:bI,EmptyVerySmallSquare:wI,emsp13:xI,emsp14:_I,emsp:SI,ENG:kI,eng:TI,ensp:CI,Eogon:EI,eogon:AI,Eopf:LI,eopf:MI,epar:$I,eparsl:NI,eplus:OI,epsi:PI,Epsilon:RI,epsilon:zI,epsiv:II,eqcirc:DI,eqcolon:FI,eqsim:HI,eqslantgtr:BI,eqslantless:WI,Equal:qI,equals:jI,EqualTilde:UI,equest:VI,Equilibrium:GI,equiv:KI,equivDD:XI,eqvparsl:YI,erarr:ZI,erDot:JI,escr:QI,Escr:eD,esdot:tD,Esim:nD,esim:rD,Eta:iD,eta:oD,ETH:sD,eth:lD,Euml:aD,euml:cD,euro:uD,excl:fD,exist:dD,Exists:hD,expectation:pD,exponentiale:gD,ExponentialE:vD,fallingdotseq:mD,Fcy:yD,fcy:bD,female:wD,ffilig:xD,fflig:_D,ffllig:SD,Ffr:kD,ffr:TD,filig:CD,FilledSmallSquare:ED,FilledVerySmallSquare:AD,fjlig:LD,flat:MD,fllig:$D,fltns:ND,fnof:OD,Fopf:PD,fopf:RD,forall:zD,ForAll:ID,fork:DD,forkv:FD,Fouriertrf:HD,fpartint:BD,frac12:WD,frac13:qD,frac14:jD,frac15:UD,frac16:VD,frac18:GD,frac23:KD,frac25:XD,frac34:YD,frac35:ZD,frac38:JD,frac45:QD,frac56:eF,frac58:tF,frac78:nF,frasl:rF,frown:iF,fscr:oF,Fscr:sF,gacute:lF,Gamma:aF,gamma:cF,Gammad:uF,gammad:fF,gap:dF,Gbreve:hF,gbreve:pF,Gcedil:gF,Gcirc:vF,gcirc:mF,Gcy:yF,gcy:bF,Gdot:wF,gdot:xF,ge:_F,gE:SF,gEl:kF,gel:TF,geq:CF,geqq:EF,geqslant:AF,gescc:LF,ges:MF,gesdot:$F,gesdoto:NF,gesdotol:OF,gesl:PF,gesles:RF,Gfr:zF,gfr:IF,gg:DF,Gg:FF,ggg:HF,gimel:BF,GJcy:WF,gjcy:qF,gla:jF,gl:UF,glE:VF,glj:GF,gnap:KF,gnapprox:XF,gne:YF,gnE:ZF,gneq:JF,gneqq:QF,gnsim:eH,Gopf:tH,gopf:nH,grave:rH,GreaterEqual:iH,GreaterEqualLess:oH,GreaterFullEqual:sH,GreaterGreater:lH,GreaterLess:aH,GreaterSlantEqual:cH,GreaterTilde:uH,Gscr:fH,gscr:dH,gsim:hH,gsime:pH,gsiml:gH,gtcc:vH,gtcir:mH,gt:yH,GT:bH,Gt:wH,gtdot:xH,gtlPar:_H,gtquest:SH,gtrapprox:kH,gtrarr:TH,gtrdot:CH,gtreqless:EH,gtreqqless:AH,gtrless:LH,gtrsim:MH,gvertneqq:$H,gvnE:NH,Hacek:OH,hairsp:PH,half:RH,hamilt:zH,HARDcy:IH,hardcy:DH,harrcir:FH,harr:HH,hArr:BH,harrw:WH,Hat:qH,hbar:jH,Hcirc:UH,hcirc:VH,hearts:GH,heartsuit:KH,hellip:XH,hercon:YH,hfr:ZH,Hfr:JH,HilbertSpace:QH,hksearow:e3,hkswarow:t3,hoarr:n3,homtht:r3,hookleftarrow:i3,hookrightarrow:o3,hopf:s3,Hopf:l3,horbar:a3,HorizontalLine:c3,hscr:u3,Hscr:f3,hslash:d3,Hstrok:h3,hstrok:p3,HumpDownHump:g3,HumpEqual:v3,hybull:m3,hyphen:y3,Iacute:b3,iacute:w3,ic:x3,Icirc:_3,icirc:S3,Icy:k3,icy:T3,Idot:C3,IEcy:E3,iecy:A3,iexcl:L3,iff:M3,ifr:$3,Ifr:N3,Igrave:O3,igrave:P3,ii:R3,iiiint:z3,iiint:I3,iinfin:D3,iiota:F3,IJlig:H3,ijlig:B3,Imacr:W3,imacr:q3,image:j3,ImaginaryI:U3,imagline:V3,imagpart:G3,imath:K3,Im:X3,imof:Y3,imped:Z3,Implies:J3,incare:Q3,in:"∈",infin:eB,infintie:tB,inodot:nB,intcal:rB,int:iB,Int:oB,integers:sB,Integral:lB,intercal:aB,Intersection:cB,intlarhk:uB,intprod:fB,InvisibleComma:dB,InvisibleTimes:hB,IOcy:pB,iocy:gB,Iogon:vB,iogon:mB,Iopf:yB,iopf:bB,Iota:wB,iota:xB,iprod:_B,iquest:SB,iscr:kB,Iscr:TB,isin:CB,isindot:EB,isinE:AB,isins:LB,isinsv:MB,isinv:$B,it:NB,Itilde:OB,itilde:PB,Iukcy:RB,iukcy:zB,Iuml:IB,iuml:DB,Jcirc:FB,jcirc:HB,Jcy:BB,jcy:WB,Jfr:qB,jfr:jB,jmath:UB,Jopf:VB,jopf:GB,Jscr:KB,jscr:XB,Jsercy:YB,jsercy:ZB,Jukcy:JB,jukcy:QB,Kappa:e5,kappa:t5,kappav:n5,Kcedil:r5,kcedil:i5,Kcy:o5,kcy:s5,Kfr:l5,kfr:a5,kgreen:c5,KHcy:u5,khcy:f5,KJcy:d5,kjcy:h5,Kopf:p5,kopf:g5,Kscr:v5,kscr:m5,lAarr:y5,Lacute:b5,lacute:w5,laemptyv:x5,lagran:_5,Lambda:S5,lambda:k5,lang:T5,Lang:C5,langd:E5,langle:A5,lap:L5,Laplacetrf:M5,laquo:$5,larrb:N5,larrbfs:O5,larr:P5,Larr:R5,lArr:z5,larrfs:I5,larrhk:D5,larrlp:F5,larrpl:H5,larrsim:B5,larrtl:W5,latail:q5,lAtail:j5,lat:U5,late:V5,lates:G5,lbarr:K5,lBarr:X5,lbbrk:Y5,lbrace:Z5,lbrack:J5,lbrke:Q5,lbrksld:e8,lbrkslu:t8,Lcaron:n8,lcaron:r8,Lcedil:i8,lcedil:o8,lceil:s8,lcub:l8,Lcy:a8,lcy:c8,ldca:u8,ldquo:f8,ldquor:d8,ldrdhar:h8,ldrushar:p8,ldsh:g8,le:v8,lE:m8,LeftAngleBracket:y8,LeftArrowBar:b8,leftarrow:w8,LeftArrow:x8,Leftarrow:_8,LeftArrowRightArrow:S8,leftarrowtail:k8,LeftCeiling:T8,LeftDoubleBracket:C8,LeftDownTeeVector:E8,LeftDownVectorBar:A8,LeftDownVector:L8,LeftFloor:M8,leftharpoondown:$8,leftharpoonup:N8,leftleftarrows:O8,leftrightarrow:P8,LeftRightArrow:R8,Leftrightarrow:z8,leftrightarrows:I8,leftrightharpoons:D8,leftrightsquigarrow:F8,LeftRightVector:H8,LeftTeeArrow:B8,LeftTee:W8,LeftTeeVector:q8,leftthreetimes:j8,LeftTriangleBar:U8,LeftTriangle:V8,LeftTriangleEqual:G8,LeftUpDownVector:K8,LeftUpTeeVector:X8,LeftUpVectorBar:Y8,LeftUpVector:Z8,LeftVectorBar:J8,LeftVector:Q8,lEg:e4,leg:t4,leq:n4,leqq:r4,leqslant:i4,lescc:o4,les:s4,lesdot:l4,lesdoto:a4,lesdotor:c4,lesg:u4,lesges:f4,lessapprox:d4,lessdot:h4,lesseqgtr:p4,lesseqqgtr:g4,LessEqualGreater:v4,LessFullEqual:m4,LessGreater:y4,lessgtr:b4,LessLess:w4,lesssim:x4,LessSlantEqual:_4,LessTilde:S4,lfisht:k4,lfloor:T4,Lfr:C4,lfr:E4,lg:A4,lgE:L4,lHar:M4,lhard:$4,lharu:N4,lharul:O4,lhblk:P4,LJcy:R4,ljcy:z4,llarr:I4,ll:D4,Ll:F4,llcorner:H4,Lleftarrow:B4,llhard:W4,lltri:q4,Lmidot:j4,lmidot:U4,lmoustache:V4,lmoust:G4,lnap:K4,lnapprox:X4,lne:Y4,lnE:Z4,lneq:J4,lneqq:Q4,lnsim:eW,loang:tW,loarr:nW,lobrk:rW,longleftarrow:iW,LongLeftArrow:oW,Longleftarrow:sW,longleftrightarrow:lW,LongLeftRightArrow:aW,Longleftrightarrow:cW,longmapsto:uW,longrightarrow:fW,LongRightArrow:dW,Longrightarrow:hW,looparrowleft:pW,looparrowright:gW,lopar:vW,Lopf:mW,lopf:yW,loplus:bW,lotimes:wW,lowast:xW,lowbar:_W,LowerLeftArrow:SW,LowerRightArrow:kW,loz:TW,lozenge:CW,lozf:EW,lpar:AW,lparlt:LW,lrarr:MW,lrcorner:$W,lrhar:NW,lrhard:OW,lrm:PW,lrtri:RW,lsaquo:zW,lscr:IW,Lscr:DW,lsh:FW,Lsh:HW,lsim:BW,lsime:WW,lsimg:qW,lsqb:jW,lsquo:UW,lsquor:VW,Lstrok:GW,lstrok:KW,ltcc:XW,ltcir:YW,lt:ZW,LT:JW,Lt:QW,ltdot:eq,lthree:tq,ltimes:nq,ltlarr:rq,ltquest:iq,ltri:oq,ltrie:sq,ltrif:lq,ltrPar:aq,lurdshar:cq,luruhar:uq,lvertneqq:fq,lvnE:dq,macr:hq,male:pq,malt:gq,maltese:vq,Map:"⤅",map:mq,mapsto:yq,mapstodown:bq,mapstoleft:wq,mapstoup:xq,marker:_q,mcomma:Sq,Mcy:kq,mcy:Tq,mdash:Cq,mDDot:Eq,measuredangle:Aq,MediumSpace:Lq,Mellintrf:Mq,Mfr:$q,mfr:Nq,mho:Oq,micro:Pq,midast:Rq,midcir:zq,mid:Iq,middot:Dq,minusb:Fq,minus:Hq,minusd:Bq,minusdu:Wq,MinusPlus:qq,mlcp:jq,mldr:Uq,mnplus:Vq,models:Gq,Mopf:Kq,mopf:Xq,mp:Yq,mscr:Zq,Mscr:Jq,mstpos:Qq,Mu:ej,mu:tj,multimap:nj,mumap:rj,nabla:ij,Nacute:oj,nacute:sj,nang:lj,nap:aj,napE:cj,napid:uj,napos:fj,napprox:dj,natural:hj,naturals:pj,natur:gj,nbsp:vj,nbump:mj,nbumpe:yj,ncap:bj,Ncaron:wj,ncaron:xj,Ncedil:_j,ncedil:Sj,ncong:kj,ncongdot:Tj,ncup:Cj,Ncy:Ej,ncy:Aj,ndash:Lj,nearhk:Mj,nearr:$j,neArr:Nj,nearrow:Oj,ne:Pj,nedot:Rj,NegativeMediumSpace:zj,NegativeThickSpace:Ij,NegativeThinSpace:Dj,NegativeVeryThinSpace:Fj,nequiv:Hj,nesear:Bj,nesim:Wj,NestedGreaterGreater:qj,NestedLessLess:jj,NewLine:Uj,nexist:Vj,nexists:Gj,Nfr:Kj,nfr:Xj,ngE:Yj,nge:Zj,ngeq:Jj,ngeqq:Qj,ngeqslant:e6,nges:t6,nGg:n6,ngsim:r6,nGt:i6,ngt:o6,ngtr:s6,nGtv:l6,nharr:a6,nhArr:c6,nhpar:u6,ni:f6,nis:d6,nisd:h6,niv:p6,NJcy:g6,njcy:v6,nlarr:m6,nlArr:y6,nldr:b6,nlE:w6,nle:x6,nleftarrow:_6,nLeftarrow:S6,nleftrightarrow:k6,nLeftrightarrow:T6,nleq:C6,nleqq:E6,nleqslant:A6,nles:L6,nless:M6,nLl:$6,nlsim:N6,nLt:O6,nlt:P6,nltri:R6,nltrie:z6,nLtv:I6,nmid:D6,NoBreak:F6,NonBreakingSpace:H6,nopf:B6,Nopf:W6,Not:q6,not:j6,NotCongruent:U6,NotCupCap:V6,NotDoubleVerticalBar:G6,NotElement:K6,NotEqual:X6,NotEqualTilde:Y6,NotExists:Z6,NotGreater:J6,NotGreaterEqual:Q6,NotGreaterFullEqual:eU,NotGreaterGreater:tU,NotGreaterLess:nU,NotGreaterSlantEqual:rU,NotGreaterTilde:iU,NotHumpDownHump:oU,NotHumpEqual:sU,notin:lU,notindot:aU,notinE:cU,notinva:uU,notinvb:fU,notinvc:dU,NotLeftTriangleBar:hU,NotLeftTriangle:pU,NotLeftTriangleEqual:gU,NotLess:vU,NotLessEqual:mU,NotLessGreater:yU,NotLessLess:bU,NotLessSlantEqual:wU,NotLessTilde:xU,NotNestedGreaterGreater:_U,NotNestedLessLess:SU,notni:kU,notniva:TU,notnivb:CU,notnivc:EU,NotPrecedes:AU,NotPrecedesEqual:LU,NotPrecedesSlantEqual:MU,NotReverseElement:$U,NotRightTriangleBar:NU,NotRightTriangle:OU,NotRightTriangleEqual:PU,NotSquareSubset:RU,NotSquareSubsetEqual:zU,NotSquareSuperset:IU,NotSquareSupersetEqual:DU,NotSubset:FU,NotSubsetEqual:HU,NotSucceeds:BU,NotSucceedsEqual:WU,NotSucceedsSlantEqual:qU,NotSucceedsTilde:jU,NotSuperset:UU,NotSupersetEqual:VU,NotTilde:GU,NotTildeEqual:KU,NotTildeFullEqual:XU,NotTildeTilde:YU,NotVerticalBar:ZU,nparallel:JU,npar:QU,nparsl:eV,npart:tV,npolint:nV,npr:rV,nprcue:iV,nprec:oV,npreceq:sV,npre:lV,nrarrc:aV,nrarr:cV,nrArr:uV,nrarrw:fV,nrightarrow:dV,nRightarrow:hV,nrtri:pV,nrtrie:gV,nsc:vV,nsccue:mV,nsce:yV,Nscr:bV,nscr:wV,nshortmid:xV,nshortparallel:_V,nsim:SV,nsime:kV,nsimeq:TV,nsmid:CV,nspar:EV,nsqsube:AV,nsqsupe:LV,nsub:MV,nsubE:$V,nsube:NV,nsubset:OV,nsubseteq:PV,nsubseteqq:RV,nsucc:zV,nsucceq:IV,nsup:DV,nsupE:FV,nsupe:HV,nsupset:BV,nsupseteq:WV,nsupseteqq:qV,ntgl:jV,Ntilde:UV,ntilde:VV,ntlg:GV,ntriangleleft:KV,ntrianglelefteq:XV,ntriangleright:YV,ntrianglerighteq:ZV,Nu:JV,nu:QV,num:e9,numero:t9,numsp:n9,nvap:r9,nvdash:i9,nvDash:o9,nVdash:s9,nVDash:l9,nvge:a9,nvgt:c9,nvHarr:u9,nvinfin:f9,nvlArr:d9,nvle:h9,nvlt:p9,nvltrie:g9,nvrArr:v9,nvrtrie:m9,nvsim:y9,nwarhk:b9,nwarr:w9,nwArr:x9,nwarrow:_9,nwnear:S9,Oacute:k9,oacute:T9,oast:C9,Ocirc:E9,ocirc:A9,ocir:L9,Ocy:M9,ocy:$9,odash:N9,Odblac:O9,odblac:P9,odiv:R9,odot:z9,odsold:I9,OElig:D9,oelig:F9,ofcir:H9,Ofr:B9,ofr:W9,ogon:q9,Ograve:j9,ograve:U9,ogt:V9,ohbar:G9,ohm:K9,oint:X9,olarr:Y9,olcir:Z9,olcross:J9,oline:Q9,olt:eG,Omacr:tG,omacr:nG,Omega:rG,omega:iG,Omicron:oG,omicron:sG,omid:lG,ominus:aG,Oopf:cG,oopf:uG,opar:fG,OpenCurlyDoubleQuote:dG,OpenCurlyQuote:hG,operp:pG,oplus:gG,orarr:vG,Or:mG,or:yG,ord:bG,order:wG,orderof:xG,ordf:_G,ordm:SG,origof:kG,oror:TG,orslope:CG,orv:EG,oS:AG,Oscr:LG,oscr:MG,Oslash:$G,oslash:NG,osol:OG,Otilde:PG,otilde:RG,otimesas:zG,Otimes:IG,otimes:DG,Ouml:FG,ouml:HG,ovbar:BG,OverBar:WG,OverBrace:qG,OverBracket:jG,OverParenthesis:UG,para:VG,parallel:GG,par:KG,parsim:XG,parsl:YG,part:ZG,PartialD:JG,Pcy:QG,pcy:e7,percnt:t7,period:n7,permil:r7,perp:i7,pertenk:o7,Pfr:s7,pfr:l7,Phi:a7,phi:c7,phiv:u7,phmmat:f7,phone:d7,Pi:h7,pi:p7,pitchfork:g7,piv:v7,planck:m7,planckh:y7,plankv:b7,plusacir:w7,plusb:x7,pluscir:_7,plus:S7,plusdo:k7,plusdu:T7,pluse:C7,PlusMinus:E7,plusmn:A7,plussim:L7,plustwo:M7,pm:$7,Poincareplane:N7,pointint:O7,popf:P7,Popf:R7,pound:z7,prap:I7,Pr:D7,pr:F7,prcue:H7,precapprox:B7,prec:W7,preccurlyeq:q7,Precedes:j7,PrecedesEqual:U7,PrecedesSlantEqual:V7,PrecedesTilde:G7,preceq:K7,precnapprox:X7,precneqq:Y7,precnsim:Z7,pre:J7,prE:Q7,precsim:eK,prime:tK,Prime:nK,primes:rK,prnap:iK,prnE:oK,prnsim:sK,prod:lK,Product:aK,profalar:cK,profline:uK,profsurf:fK,prop:dK,Proportional:hK,Proportion:pK,propto:gK,prsim:vK,prurel:mK,Pscr:yK,pscr:bK,Psi:wK,psi:xK,puncsp:_K,Qfr:SK,qfr:kK,qint:TK,qopf:CK,Qopf:EK,qprime:AK,Qscr:LK,qscr:MK,quaternions:$K,quatint:NK,quest:OK,questeq:PK,quot:RK,QUOT:zK,rAarr:IK,race:DK,Racute:FK,racute:HK,radic:BK,raemptyv:WK,rang:qK,Rang:jK,rangd:UK,range:VK,rangle:GK,raquo:KK,rarrap:XK,rarrb:YK,rarrbfs:ZK,rarrc:JK,rarr:QK,Rarr:eX,rArr:tX,rarrfs:nX,rarrhk:rX,rarrlp:iX,rarrpl:oX,rarrsim:sX,Rarrtl:lX,rarrtl:aX,rarrw:cX,ratail:uX,rAtail:fX,ratio:dX,rationals:hX,rbarr:pX,rBarr:gX,RBarr:vX,rbbrk:mX,rbrace:yX,rbrack:bX,rbrke:wX,rbrksld:xX,rbrkslu:_X,Rcaron:SX,rcaron:kX,Rcedil:TX,rcedil:CX,rceil:EX,rcub:AX,Rcy:LX,rcy:MX,rdca:$X,rdldhar:NX,rdquo:OX,rdquor:PX,rdsh:RX,real:zX,realine:IX,realpart:DX,reals:FX,Re:HX,rect:BX,reg:WX,REG:qX,ReverseElement:jX,ReverseEquilibrium:UX,ReverseUpEquilibrium:VX,rfisht:GX,rfloor:KX,rfr:XX,Rfr:YX,rHar:ZX,rhard:JX,rharu:QX,rharul:eY,Rho:tY,rho:nY,rhov:rY,RightAngleBracket:iY,RightArrowBar:oY,rightarrow:sY,RightArrow:lY,Rightarrow:aY,RightArrowLeftArrow:cY,rightarrowtail:uY,RightCeiling:fY,RightDoubleBracket:dY,RightDownTeeVector:hY,RightDownVectorBar:pY,RightDownVector:gY,RightFloor:vY,rightharpoondown:mY,rightharpoonup:yY,rightleftarrows:bY,rightleftharpoons:wY,rightrightarrows:xY,rightsquigarrow:_Y,RightTeeArrow:SY,RightTee:kY,RightTeeVector:TY,rightthreetimes:CY,RightTriangleBar:EY,RightTriangle:AY,RightTriangleEqual:LY,RightUpDownVector:MY,RightUpTeeVector:$Y,RightUpVectorBar:NY,RightUpVector:OY,RightVectorBar:PY,RightVector:RY,ring:zY,risingdotseq:IY,rlarr:DY,rlhar:FY,rlm:HY,rmoustache:BY,rmoust:WY,rnmid:qY,roang:jY,roarr:UY,robrk:VY,ropar:GY,ropf:KY,Ropf:XY,roplus:YY,rotimes:ZY,RoundImplies:JY,rpar:QY,rpargt:eZ,rppolint:tZ,rrarr:nZ,Rrightarrow:rZ,rsaquo:iZ,rscr:oZ,Rscr:sZ,rsh:lZ,Rsh:aZ,rsqb:cZ,rsquo:uZ,rsquor:fZ,rthree:dZ,rtimes:hZ,rtri:pZ,rtrie:gZ,rtrif:vZ,rtriltri:mZ,RuleDelayed:yZ,ruluhar:bZ,rx:wZ,Sacute:xZ,sacute:_Z,sbquo:SZ,scap:kZ,Scaron:TZ,scaron:CZ,Sc:EZ,sc:AZ,sccue:LZ,sce:MZ,scE:$Z,Scedil:NZ,scedil:OZ,Scirc:PZ,scirc:RZ,scnap:zZ,scnE:IZ,scnsim:DZ,scpolint:FZ,scsim:HZ,Scy:BZ,scy:WZ,sdotb:qZ,sdot:jZ,sdote:UZ,searhk:VZ,searr:GZ,seArr:KZ,searrow:XZ,sect:YZ,semi:ZZ,seswar:JZ,setminus:QZ,setmn:eJ,sext:tJ,Sfr:nJ,sfr:rJ,sfrown:iJ,sharp:oJ,SHCHcy:sJ,shchcy:lJ,SHcy:aJ,shcy:cJ,ShortDownArrow:uJ,ShortLeftArrow:fJ,shortmid:dJ,shortparallel:hJ,ShortRightArrow:pJ,ShortUpArrow:gJ,shy:vJ,Sigma:mJ,sigma:yJ,sigmaf:bJ,sigmav:wJ,sim:xJ,simdot:_J,sime:SJ,simeq:kJ,simg:TJ,simgE:CJ,siml:EJ,simlE:AJ,simne:LJ,simplus:MJ,simrarr:$J,slarr:NJ,SmallCircle:OJ,smallsetminus:PJ,smashp:RJ,smeparsl:zJ,smid:IJ,smile:DJ,smt:FJ,smte:HJ,smtes:BJ,SOFTcy:WJ,softcy:qJ,solbar:jJ,solb:UJ,sol:VJ,Sopf:GJ,sopf:KJ,spades:XJ,spadesuit:YJ,spar:ZJ,sqcap:JJ,sqcaps:QJ,sqcup:eQ,sqcups:tQ,Sqrt:nQ,sqsub:rQ,sqsube:iQ,sqsubset:oQ,sqsubseteq:sQ,sqsup:lQ,sqsupe:aQ,sqsupset:cQ,sqsupseteq:uQ,square:fQ,Square:dQ,SquareIntersection:hQ,SquareSubset:pQ,SquareSubsetEqual:gQ,SquareSuperset:vQ,SquareSupersetEqual:mQ,SquareUnion:yQ,squarf:bQ,squ:wQ,squf:xQ,srarr:_Q,Sscr:SQ,sscr:kQ,ssetmn:TQ,ssmile:CQ,sstarf:EQ,Star:AQ,star:LQ,starf:MQ,straightepsilon:$Q,straightphi:NQ,strns:OQ,sub:PQ,Sub:RQ,subdot:zQ,subE:IQ,sube:DQ,subedot:FQ,submult:HQ,subnE:BQ,subne:WQ,subplus:qQ,subrarr:jQ,subset:UQ,Subset:VQ,subseteq:GQ,subseteqq:KQ,SubsetEqual:XQ,subsetneq:YQ,subsetneqq:ZQ,subsim:JQ,subsub:QQ,subsup:eee,succapprox:tee,succ:nee,succcurlyeq:ree,Succeeds:iee,SucceedsEqual:oee,SucceedsSlantEqual:see,SucceedsTilde:lee,succeq:aee,succnapprox:cee,succneqq:uee,succnsim:fee,succsim:dee,SuchThat:hee,sum:pee,Sum:gee,sung:vee,sup1:mee,sup2:yee,sup3:bee,sup:wee,Sup:xee,supdot:_ee,supdsub:See,supE:kee,supe:Tee,supedot:Cee,Superset:Eee,SupersetEqual:Aee,suphsol:Lee,suphsub:Mee,suplarr:$ee,supmult:Nee,supnE:Oee,supne:Pee,supplus:Ree,supset:zee,Supset:Iee,supseteq:Dee,supseteqq:Fee,supsetneq:Hee,supsetneqq:Bee,supsim:Wee,supsub:qee,supsup:jee,swarhk:Uee,swarr:Vee,swArr:Gee,swarrow:Kee,swnwar:Xee,szlig:Yee,Tab:Zee,target:Jee,Tau:Qee,tau:ete,tbrk:tte,Tcaron:nte,tcaron:rte,Tcedil:ite,tcedil:ote,Tcy:ste,tcy:lte,tdot:ate,telrec:cte,Tfr:ute,tfr:fte,there4:dte,therefore:hte,Therefore:pte,Theta:gte,theta:vte,thetasym:mte,thetav:yte,thickapprox:bte,thicksim:wte,ThickSpace:xte,ThinSpace:_te,thinsp:Ste,thkap:kte,thksim:Tte,THORN:Cte,thorn:Ete,tilde:Ate,Tilde:Lte,TildeEqual:Mte,TildeFullEqual:$te,TildeTilde:Nte,timesbar:Ote,timesb:Pte,times:Rte,timesd:zte,tint:Ite,toea:Dte,topbot:Fte,topcir:Hte,top:Bte,Topf:Wte,topf:qte,topfork:jte,tosa:Ute,tprime:Vte,trade:Gte,TRADE:Kte,triangle:Xte,triangledown:Yte,triangleleft:Zte,trianglelefteq:Jte,triangleq:Qte,triangleright:ene,trianglerighteq:tne,tridot:nne,trie:rne,triminus:ine,TripleDot:one,triplus:sne,trisb:lne,tritime:ane,trpezium:cne,Tscr:une,tscr:fne,TScy:dne,tscy:hne,TSHcy:pne,tshcy:gne,Tstrok:vne,tstrok:mne,twixt:yne,twoheadleftarrow:bne,twoheadrightarrow:wne,Uacute:xne,uacute:_ne,uarr:Sne,Uarr:kne,uArr:Tne,Uarrocir:Cne,Ubrcy:Ene,ubrcy:Ane,Ubreve:Lne,ubreve:Mne,Ucirc:$ne,ucirc:Nne,Ucy:One,ucy:Pne,udarr:Rne,Udblac:zne,udblac:Ine,udhar:Dne,ufisht:Fne,Ufr:Hne,ufr:Bne,Ugrave:Wne,ugrave:qne,uHar:jne,uharl:Une,uharr:Vne,uhblk:Gne,ulcorn:Kne,ulcorner:Xne,ulcrop:Yne,ultri:Zne,Umacr:Jne,umacr:Qne,uml:ere,UnderBar:tre,UnderBrace:nre,UnderBracket:rre,UnderParenthesis:ire,Union:ore,UnionPlus:sre,Uogon:lre,uogon:are,Uopf:cre,uopf:ure,UpArrowBar:fre,uparrow:dre,UpArrow:hre,Uparrow:pre,UpArrowDownArrow:gre,updownarrow:vre,UpDownArrow:mre,Updownarrow:yre,UpEquilibrium:bre,upharpoonleft:wre,upharpoonright:xre,uplus:_re,UpperLeftArrow:Sre,UpperRightArrow:kre,upsi:Tre,Upsi:Cre,upsih:Ere,Upsilon:Are,upsilon:Lre,UpTeeArrow:Mre,UpTee:$re,upuparrows:Nre,urcorn:Ore,urcorner:Pre,urcrop:Rre,Uring:zre,uring:Ire,urtri:Dre,Uscr:Fre,uscr:Hre,utdot:Bre,Utilde:Wre,utilde:qre,utri:jre,utrif:Ure,uuarr:Vre,Uuml:Gre,uuml:Kre,uwangle:Xre,vangrt:Yre,varepsilon:Zre,varkappa:Jre,varnothing:Qre,varphi:eie,varpi:tie,varpropto:nie,varr:rie,vArr:iie,varrho:oie,varsigma:sie,varsubsetneq:lie,varsubsetneqq:aie,varsupsetneq:cie,varsupsetneqq:uie,vartheta:fie,vartriangleleft:die,vartriangleright:hie,vBar:pie,Vbar:gie,vBarv:vie,Vcy:mie,vcy:yie,vdash:bie,vDash:wie,Vdash:xie,VDash:_ie,Vdashl:Sie,veebar:kie,vee:Tie,Vee:Cie,veeeq:Eie,vellip:Aie,verbar:Lie,Verbar:Mie,vert:$ie,Vert:Nie,VerticalBar:Oie,VerticalLine:Pie,VerticalSeparator:Rie,VerticalTilde:zie,VeryThinSpace:Iie,Vfr:Die,vfr:Fie,vltri:Hie,vnsub:Bie,vnsup:Wie,Vopf:qie,vopf:jie,vprop:Uie,vrtri:Vie,Vscr:Gie,vscr:Kie,vsubnE:Xie,vsubne:Yie,vsupnE:Zie,vsupne:Jie,Vvdash:Qie,vzigzag:eoe,Wcirc:toe,wcirc:noe,wedbar:roe,wedge:ioe,Wedge:ooe,wedgeq:soe,weierp:loe,Wfr:aoe,wfr:coe,Wopf:uoe,wopf:foe,wp:doe,wr:hoe,wreath:poe,Wscr:goe,wscr:voe,xcap:moe,xcirc:yoe,xcup:boe,xdtri:woe,Xfr:xoe,xfr:_oe,xharr:Soe,xhArr:koe,Xi:Toe,xi:Coe,xlarr:Eoe,xlArr:Aoe,xmap:Loe,xnis:Moe,xodot:$oe,Xopf:Noe,xopf:Ooe,xoplus:Poe,xotime:Roe,xrarr:zoe,xrArr:Ioe,Xscr:Doe,xscr:Foe,xsqcup:Hoe,xuplus:Boe,xutri:Woe,xvee:qoe,xwedge:joe,Yacute:Uoe,yacute:Voe,YAcy:Goe,yacy:Koe,Ycirc:Xoe,ycirc:Yoe,Ycy:Zoe,ycy:Joe,yen:Qoe,Yfr:ese,yfr:tse,YIcy:nse,yicy:rse,Yopf:ise,yopf:ose,Yscr:sse,yscr:lse,YUcy:ase,yucy:cse,yuml:use,Yuml:fse,Zacute:dse,zacute:hse,Zcaron:pse,zcaron:gse,Zcy:vse,zcy:mse,Zdot:yse,zdot:bse,zeetrf:wse,ZeroWidthSpace:xse,Zeta:_se,zeta:Sse,zfr:kse,Zfr:Tse,ZHcy:Cse,zhcy:Ese,zigrarr:Ase,zopf:Lse,Zopf:Mse,Zscr:$se,zscr:Nse,zwj:Ose,zwnj:Pse},Rse="Á",zse="á",Ise="Â",Dse="â",Fse="´",Hse="Æ",Bse="æ",Wse="À",qse="à",jse="&",Use="&",Vse="Å",Gse="å",Kse="Ã",Xse="ã",Yse="Ä",Zse="ä",Jse="¦",Qse="Ç",ele="ç",tle="¸",nle="¢",rle="©",ile="©",ole="¤",sle="°",lle="÷",ale="É",cle="é",ule="Ê",fle="ê",dle="È",hle="è",ple="Ð",gle="ð",vle="Ë",mle="ë",yle="½",ble="¼",wle="¾",xle=">",_le=">",Sle="Í",kle="í",Tle="Î",Cle="î",Ele="¡",Ale="Ì",Lle="ì",Mle="¿",$le="Ï",Nle="ï",Ole="«",Ple="<",Rle="<",zle="¯",Ile="µ",Dle="·",Fle=" ",Hle="¬",Ble="Ñ",Wle="ñ",qle="Ó",jle="ó",Ule="Ô",Vle="ô",Gle="Ò",Kle="ò",Xle="ª",Yle="º",Zle="Ø",Jle="ø",Qle="Õ",eae="õ",tae="Ö",nae="ö",rae="¶",iae="±",oae="£",sae='"',lae='"',aae="»",cae="®",uae="®",fae="§",dae="­",hae="¹",pae="²",gae="³",vae="ß",mae="Þ",yae="þ",bae="×",wae="Ú",xae="ú",_ae="Û",Sae="û",kae="Ù",Tae="ù",Cae="¨",Eae="Ü",Aae="ü",Lae="Ý",Mae="ý",$ae="¥",Nae="ÿ",Oae={Aacute:Rse,aacute:zse,Acirc:Ise,acirc:Dse,acute:Fse,AElig:Hse,aelig:Bse,Agrave:Wse,agrave:qse,amp:jse,AMP:Use,Aring:Vse,aring:Gse,Atilde:Kse,atilde:Xse,Auml:Yse,auml:Zse,brvbar:Jse,Ccedil:Qse,ccedil:ele,cedil:tle,cent:nle,copy:rle,COPY:ile,curren:ole,deg:sle,divide:lle,Eacute:ale,eacute:cle,Ecirc:ule,ecirc:fle,Egrave:dle,egrave:hle,ETH:ple,eth:gle,Euml:vle,euml:mle,frac12:yle,frac14:ble,frac34:wle,gt:xle,GT:_le,Iacute:Sle,iacute:kle,Icirc:Tle,icirc:Cle,iexcl:Ele,Igrave:Ale,igrave:Lle,iquest:Mle,Iuml:$le,iuml:Nle,laquo:Ole,lt:Ple,LT:Rle,macr:zle,micro:Ile,middot:Dle,nbsp:Fle,not:Hle,Ntilde:Ble,ntilde:Wle,Oacute:qle,oacute:jle,Ocirc:Ule,ocirc:Vle,Ograve:Gle,ograve:Kle,ordf:Xle,ordm:Yle,Oslash:Zle,oslash:Jle,Otilde:Qle,otilde:eae,Ouml:tae,ouml:nae,para:rae,plusmn:iae,pound:oae,quot:sae,QUOT:lae,raquo:aae,reg:cae,REG:uae,sect:fae,shy:dae,sup1:hae,sup2:pae,sup3:gae,szlig:vae,THORN:mae,thorn:yae,times:bae,Uacute:wae,uacute:xae,Ucirc:_ae,ucirc:Sae,Ugrave:kae,ugrave:Tae,uml:Cae,Uuml:Eae,uuml:Aae,Yacute:Lae,yacute:Mae,yen:$ae,yuml:Nae},Pae="&",Rae="'",zae=">",Iae="<",Dae='"',Dw={amp:Pae,apos:Rae,gt:zae,lt:Iae,quot:Dae};var vs={};const Fae={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 Bm;function Hae(){if(Bm)return vs;Bm=1;var e=vs&&vs.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(vs,"__esModule",{value:!0});var t=e(Fae),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 vs.default=o,vs}var Wm;function qm(){if(Wm)return kr;Wm=1;var e=kr&&kr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(kr,"__esModule",{value:!0}),kr.decodeHTML=kr.decodeHTMLStrict=kr.decodeXML=void 0;var t=e(Iw),r=e(Oae),o=e(Dw),s=e(Hae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;kr.decodeXML=f(o.default),kr.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};kr.decodeHTML=function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var w=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),A=h(t.default);function L(E){return E.substr(-1)!==";"&&(E+=";"),A(E)}return function(E){return String(E).replace(w,L)}}();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return kr}var Ln={},jm;function Um(){if(jm)return Ln;jm=1;var e=Ln&&Ln.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.escapeUTF8=Ln.escape=Ln.encodeNonAsciiHTML=Ln.encodeHTML=Ln.encodeXML=void 0;var t=e(Dw),r=d(t.default),o=h(r);Ln.encodeXML=E(r);var s=e(Iw),c=d(s.default),f=h(c);Ln.encodeHTML=b(c,f),Ln.encodeNonAsciiHTML=E(c);function d(M){return Object.keys(M).sort().reduce(function($,R){return $[M[R]]="&"+R+";",$},{})}function h(M){for(var $=[],R=[],T=0,I=Object.keys(M);T<I.length;T++){var F=I[T];F.length===1?$.push("\\"+F):R.push(F)}$.sort();for(var re=0;re<$.length-1;re++){for(var se=re;se<$.length-1&&$[se].charCodeAt(1)+1===$[se+1].charCodeAt(1);)se+=1;var J=1+se-re;J<3||$.splice(re,J,$[re]+"-"+$[se])}return R.unshift("["+$.join("")+"]"),new RegExp(R.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(M){return M.codePointAt(0)}:function(M){return(M.charCodeAt(0)-55296)*1024+M.charCodeAt(1)-56320+65536};function m(M){return"&#x"+(M.length>1?v(M):M.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(M,$){return function(R){return R.replace($,function(T){return M[T]}).replace(p,m)}}var w=new RegExp(o.source+"|"+p.source,"g");function A(M){return M.replace(w,m)}Ln.escape=A;function L(M){return M.replace(o,m)}Ln.escapeUTF8=L;function E(M){return function($){return $.replace(w,function(R){return M[R]||m(R)})}}return Ln}var Vm;function Bae(){return Vm||(Vm=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=qm(),r=Um();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=Um();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=qm();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}})}(ud)),ud}var fd,Gm;function Wae(){if(Gm)return fd;Gm=1;function e(N,O){if(!(N instanceof O))throw new TypeError("Cannot call a class as a function")}function t(N,O){for(var P=0;P<O.length;P++){var S=O[P];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(N,S.key,S)}}function r(N,O,P){return O&&t(N.prototype,O),N}function o(N,O){var P=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!P){if(Array.isArray(N)||(P=s(N))||O){P&&(N=P);var S=0,H=function(){};return{s:H,n:function(){return S>=N.length?{done:!0}:{done:!1,value:N[S++]}},e:function(Pe){throw Pe},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
21
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V=!0,oe=!1,ve;return{s:function(){P=P.call(N)},n:function(){var Pe=P.next();return V=Pe.done,Pe},e:function(Pe){oe=!0,ve=Pe},f:function(){try{!V&&P.return!=null&&P.return()}finally{if(oe)throw ve}}}}function s(N,O){if(N){if(typeof N=="string")return c(N,O);var P=Object.prototype.toString.call(N).slice(8,-1);if(P==="Object"&&N.constructor&&(P=N.constructor.name),P==="Map"||P==="Set")return Array.from(N);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return c(N,O)}}function c(N,O){(O==null||O>N.length)&&(O=N.length);for(var P=0,S=new Array(O);P<O;P++)S[P]=N[P];return S}var f=Bae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var N={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 E(0,5).forEach(function(O){E(0,5).forEach(function(P){E(0,5).forEach(function(S){return p(O,P,S,N)})})}),E(0,23).forEach(function(O){var P=O+232,S=v(O*10+8);N[P]="#"+S+S+S}),N}function p(N,O,P,S){var H=16+N*36+O*6+P,V=N>0?N*40+55:0,oe=O>0?O*40+55:0,ve=P>0?P*40+55:0;S[H]=m([V,oe,ve])}function v(N){for(var O=N.toString(16);O.length<2;)O="0"+O;return O}function m(N){var O=[],P=o(N),S;try{for(P.s();!(S=P.n()).done;){var H=S.value;O.push(v(H))}}catch(V){P.e(V)}finally{P.f()}return"#"+O.join("")}function b(N,O,P,S){var H;return O==="text"?H=R(P,S):O==="display"?H=A(N,P,S):O==="xterm256Foreground"?H=F(N,S.colors[P]):O==="xterm256Background"?H=re(N,S.colors[P]):O==="rgb"&&(H=w(N,P)),H}function w(N,O){O=O.substring(2).slice(0,-1);var P=+O.substr(0,2),S=O.substring(5).split(";"),H=S.map(function(V){return("0"+Number(V).toString(16)).substr(-2)}).join("");return I(N,(P===38?"color:#":"background-color:#")+H)}function A(N,O,P){O=parseInt(O,10);var S={"-1":function(){return"<br/>"},0:function(){return N.length&&L(N)},1:function(){return T(N,"b")},3:function(){return T(N,"i")},4:function(){return T(N,"u")},8:function(){return I(N,"display:none")},9:function(){return T(N,"strike")},22:function(){return I(N,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return se(N,"i")},24:function(){return se(N,"u")},39:function(){return F(N,P.fg)},49:function(){return re(N,P.bg)},53:function(){return I(N,"text-decoration:overline")}},H;return S[O]?H=S[O]():4<O&&O<7?H=T(N,"blink"):29<O&&O<38?H=F(N,P.colors[O-30]):39<O&&O<48?H=re(N,P.colors[O-40]):89<O&&O<98?H=F(N,P.colors[8+(O-90)]):99<O&&O<108&&(H=re(N,P.colors[8+(O-100)])),H}function L(N){var O=N.slice(0);return N.length=0,O.reverse().map(function(P){return"</"+P+">"}).join("")}function E(N,O){for(var P=[],S=N;S<=O;S++)P.push(S);return P}function M(N){return function(O){return(N===null||O.category!==N)&&N!=="all"}}function $(N){N=parseInt(N,10);var O=null;return N===0?O="all":N===1?O="bold":2<N&&N<5?O="underline":4<N&&N<7?O="blink":N===8?O="hide":N===9?O="strike":29<N&&N<38||N===39||89<N&&N<98?O="foreground-color":(39<N&&N<48||N===49||99<N&&N<108)&&(O="background-color"),O}function R(N,O){return O.escapeXML?f.encodeXML(N):N}function T(N,O,P){return P||(P=""),N.push(O),"<".concat(O).concat(P?' style="'.concat(P,'"'):"",">")}function I(N,O){return T(N,"span",O)}function F(N,O){return T(N,"span","color:"+O)}function re(N,O){return T(N,"span","background-color:"+O)}function se(N,O){var P;if(N.slice(-1)[0]===O&&(P=N.pop()),P)return"</"+O+">"}function J(N,O,P){var S=!1,H=3;function V(){return""}function oe(U,Y){return P("xterm256Foreground",Y),""}function ve(U,Y){return P("xterm256Background",Y),""}function we(U){return O.newline?P("display",-1):P("text",U),""}function Pe(U,Y){S=!0,Y.trim().length===0&&(Y="0"),Y=Y.trimRight(";").split(";");var ue=o(Y),he;try{for(ue.s();!(he=ue.n()).done;){var fe=he.value;P("display",fe)}}catch(Ce){ue.e(Ce)}finally{ue.f()}return""}function je(U){return P("text",U),""}function Je(U){return P("rgb",U),""}var Xe=[{pattern:/^\x08+/,sub:V},{pattern:/^\x1b\[[012]?K/,sub:V},{pattern:/^\x1b\[\(B/,sub:V},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Je},{pattern:/^\x1b\[38;5;(\d+)m/,sub:oe},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:we},{pattern:/^\r+\n/,sub:we},{pattern:/^\r/,sub:we},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Pe},{pattern:/^\x1b\[\d?J/,sub:V},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:V},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:V},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:je}];function Ye(U,Y){Y>H&&S||(S=!1,N=N.replace(U.pattern,U.sub))}var ne=[],W=N,Q=W.length;e:for(;Q>0;){for(var X=0,ae=0,pe=Xe.length;ae<pe;X=++ae){var z=Xe[X];if(Ye(z,X),N.length!==Q){Q=N.length;continue e}}if(N.length===Q)break;ne.push(0),Q=N.length}return ne}function G(N,O,P){return O!=="text"&&(N=N.filter(M($(P))),N.push({token:O,data:P,category:$(P)})),N}var K=function(){function N(O){e(this,N),O=O||{},O.colors&&(O.colors=Object.assign({},d.colors,O.colors)),this.options=Object.assign({},d,O),this.stack=[],this.stickyStack=[]}return r(N,[{key:"toHtml",value:function(P){var S=this;P=typeof P=="string"?[P]:P;var H=this.stack,V=this.options,oe=[];return this.stickyStack.forEach(function(ve){var we=b(H,ve.token,ve.data,V);we&&oe.push(we)}),J(P.join(""),V,function(ve,we){var Pe=b(H,ve,we,V);Pe&&oe.push(Pe),V.stream&&(S.stickyStack=G(S.stickyStack,ve,we))}),H.length&&oe.push(L(H)),oe.join("")}}]),N}();return fd=K,fd}var qae=Wae();const jae=zw(qae);function Xl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Uae(e,t){return t&&e.endsWith(t)}async function Jh(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Qh(e){return new jae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Vae(e){return e===null||typeof e!="function"&&typeof e!="object"}function Fw(e){let t=e;if(Vae(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=zE(t.stack||"",{ignoreStackEntries:[]}),t}function Gae(e,t){var s,c;let r="";return(s=t.message)!=null&&s.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(Xl(t.message))}`),((c=t.stack)==null?void 0:c.includes("\x1B"))&&(r.length>0?r+=e.toHtml(Xl(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(Xl(t.stack))}`),r.length>0?r:null}function Hw(e,t){const r=Qh(e);return t.map(o=>{var f;const s=o.result;if(!s||s.htmlError)return o;const c=(f=s.errors)==null?void 0:f.map(d=>Gae(r,d)).filter(d=>d!=null).join("<br><br>");return c!=null&&c.length&&(s.htmlError=c),o})}var nr=Uint8Array,Ss=Uint16Array,Kae=Int32Array,Bw=new nr([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]),Ww=new nr([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]),Xae=new nr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qw=function(e,t){for(var r=new Ss(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Kae(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}},jw=qw(Bw,2),Uw=jw.b,Yae=jw.r;Uw[28]=258,Yae[258]=28;var Zae=qw(Ww,0),Jae=Zae.b,Jd=new Ss(32768);for(var Mt=0;Mt<32768;++Mt){var Bi=(Mt&43690)>>1|(Mt&21845)<<1;Bi=(Bi&52428)>>2|(Bi&13107)<<2,Bi=(Bi&61680)>>4|(Bi&3855)<<4,Jd[Mt]=((Bi&65280)>>8|(Bi&255)<<8)>>1}var Yl=function(e,t,r){for(var o=e.length,s=0,c=new Ss(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Ss(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Ss(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Jd[m]>>h]=p}else for(d=new Ss(o),s=0;s<o;++s)e[s]&&(d[s]=Jd[f[e[s]-1]++]>>15-e[s]);return d},Oa=new nr(288);for(var Mt=0;Mt<144;++Mt)Oa[Mt]=8;for(var Mt=144;Mt<256;++Mt)Oa[Mt]=9;for(var Mt=256;Mt<280;++Mt)Oa[Mt]=7;for(var Mt=280;Mt<288;++Mt)Oa[Mt]=8;var Vw=new nr(32);for(var Mt=0;Mt<32;++Mt)Vw[Mt]=5;var Qae=Yl(Oa,9,1),ece=Yl(Vw,5,1),dd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Tr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},hd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},tce=function(e){return(e+7)/8|0},Gw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new nr(e.subarray(t,r))},nce=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],jn=function(e,t,r){var o=new Error(t||nce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,jn),!r)throw o;return o},ep=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new nr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new nr(s*3));var p=function(pe){var z=r.length;if(pe>z){var U=new nr(Math.max(z*2,pe));U.set(r),r=U}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,A=t.d,L=t.m,E=t.n,M=s*8;do{if(!w){v=Tr(e,m,1);var $=Tr(e,m+1,3);if(m+=3,$)if($==1)w=Qae,A=ece,L=9,E=5;else if($==2){var F=Tr(e,m,31)+257,re=Tr(e,m+10,15)+4,se=F+Tr(e,m+5,31)+1;m+=14;for(var J=new nr(se),G=new nr(19),K=0;K<re;++K)G[Xae[K]]=Tr(e,m+K*3,7);m+=re*3;for(var N=dd(G),O=(1<<N)-1,P=Yl(G,N,1),K=0;K<se;){var S=P[Tr(e,m,O)];m+=S&15;var R=S>>4;if(R<16)J[K++]=R;else{var H=0,V=0;for(R==16?(V=3+Tr(e,m,3),m+=2,H=J[K-1]):R==17?(V=3+Tr(e,m,7),m+=3):R==18&&(V=11+Tr(e,m,127),m+=7);V--;)J[K++]=H}}var oe=J.subarray(0,F),ve=J.subarray(F);L=dd(oe),E=dd(ve),w=Yl(oe,L,1),A=Yl(ve,E,1)}else jn(1);else{var R=tce(m)+4,T=e[R-4]|e[R-3]<<8,I=R+T;if(I>s){h&&jn(0);break}d&&p(b+T),r.set(e.subarray(R,I),b),t.b=b+=T,t.p=m=I*8,t.f=v;continue}if(m>M){h&&jn(0);break}}d&&p(b+131072);for(var we=(1<<L)-1,Pe=(1<<E)-1,je=m;;je=m){var H=w[hd(e,m)&we],Je=H>>4;if(m+=H&15,m>M){h&&jn(0);break}if(H||jn(2),Je<256)r[b++]=Je;else if(Je==256){je=m,w=null;break}else{var Xe=Je-254;if(Je>264){var K=Je-257,Ye=Bw[K];Xe=Tr(e,m,(1<<Ye)-1)+Uw[K],m+=Ye}var ne=A[hd(e,m)&Pe],W=ne>>4;ne||jn(3),m+=ne&15;var ve=Jae[W];if(W>3){var Ye=Ww[W];ve+=hd(e,m)&(1<<Ye)-1,m+=Ye}if(m>M){h&&jn(0);break}d&&p(b+131072);var Q=b+Xe;if(b<ve){var X=c-ve,ae=Math.min(ve,Q);for(X+b<0&&jn(3);b<ae;++b)r[b]=o[X+b]}for(;b<Q;++b)r[b]=r[b-ve]}}t.l=w,t.p=je,t.b=b,t.f=v,w&&(v=1,t.m=L,t.d=A,t.n=E)}while(!v);return b!=r.length&&f?Gw(r,0,b):r.subarray(0,b)},rce=new nr(0),ice=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&jn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},oce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},sce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&jn(6,"invalid zlib data"),(e[1]>>5&1)==1&&jn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function lce(e,t){return ep(e,{i:2},t,t)}function ace(e,t){var r=ice(e);return r+8>e.length&&jn(6,"invalid gzip data"),ep(e.subarray(r,-8),{i:2},new nr(oce(e)),t)}function cce(e,t){return ep(e.subarray(sce(e),-4),{i:2},t,t)}function uce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?ace(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?lce(e,t):cce(e,t)}var Qd=typeof TextDecoder<"u"&&new TextDecoder,fce=0;try{Qd.decode(rce,{stream:!0}),fce=1}catch{}var dce=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:Gw(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 hce(e,t){var r;if(Qd)return Qd.decode(e);var o=dce(e),s=o.s,r=o.r;return r.length&&jn(8),s}const pd=()=>{},vn=()=>Promise.resolve();function pce(){const e=rr({state:new lw,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=rr(e.state.filesMap),e.state.idMap=rr(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:vn,onDone:pd,onTaskUpdate:pd,writeFile:vn,rerun:vn,rerunTask:vn,updateSnapshot:vn,resolveSnapshotPath:vn,snapshotSaved:vn,onAfterSuiteRun:vn,onCancel:vn,getCountOfFailedTests:()=>0,sendLog:vn,resolveSnapshotRawPath:vn,readSnapshotFile:vn,saveSnapshotFile:vn,readTestFile:async d=>t.sources[d],removeSnapshotFile:vn,onUnhandledError:pd,saveTestFile:vn,getProvidedContext:()=>({}),getTestFiles:vn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),b=hce(uce(m));t=Ud(b)}else t=Ud(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ht=function(){return hr?pce():sA(mL,{reactive:(t,r)=>r==="state"?rr(t):nn(t),handlers:{onTestAnnotate(t,r){Ae.annotateTest(t,r)},onTaskUpdate(t,r){Ae.resumeRun(t,r),Uu.value="running"},onFinished(t,r){Ae.endRun(),Gi.value=(r||[]).map(Fw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),qs=nn({}),Po=Ue("CONNECTING"),jt=Se(()=>{const e=ao.value;return e?pr(e):void 0}),Kw=Se(()=>Uh(jt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function pr(e){const t=ht.state.idMap.get(e);return t||void 0}const gce=Se(()=>Po.value==="OPEN"),gd=Se(()=>Po.value==="CONNECTING");Se(()=>Po.value==="CLOSED");function vce(){return tp(ht.state.getFiles())}function Xw(e){delete e.result;const t=Ae.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ma(e)))for(const r of e.tasks)Xw(r)}function mce(e){const t=Ae.nodes;e.forEach(r=>{delete r.result,Uh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Rn(o)&&(o.collectDuration=void 0))})}function tp(e){return mce(e),Ae.startRun(),ht.rpc.rerun(e.map(t=>t.filepath),!0)}function yce(e){return Xw(e),Ae.startRun(),ht.rpc.rerunTask(e.id)}const Ot=window.__vitest_browser_runner__;window.__vitest_ui_api__=pL;St(()=>ht.ws,e=>{Po.value=hr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Po.value="OPEN",ht.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ht.rpc.getFiles(),ht.rpc.getConfig(),ht.rpc.getUnhandledErrors(),ht.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ht.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Qb(h,d,f);return p.mode="skip",p})),Ae.loadFiles(t,s),ht.state.collectFiles(t),Ae.startRun(),Gi.value=(o||[]).map(Fw),qs.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Po.value==="CONNECTING"&&(Po.value="CLOSED")},1e3)})},{immediate:!0});const bce={"text-2xl":""},wce={"text-lg":"",op50:""},xce=at({__name:"ConnectionOverlay",setup(e){return(t,r)=>B(gce)?qe("",!0):(ie(),ye("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)=>B(ht).reconnect&&B(ht).reconnect(...o))},[ee("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(B(gd)?"animate-pulse":"")},[ee("div",{text:"5xl",class:ot(B(gd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ee("div",bce,ze(B(gd)?"Connecting...":"Disconnected"),1),ee("div",wce," Check your terminal or start a new server with `"+ze(B(Ot)?`vitest --browser=${B(Ot).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),_ce=["aria-label","opacity","disabled","hover"],Qr=at({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ie(),ye("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[xn(t.$slots,"default",{},()=>[ee("span",{class:ot(t.icon),ma:"",block:""},null,2)])],10,_ce))}}),Sce={h:"full",flex:"~ col"},kce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Tce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Cce={class:"pointer-events-none","text-sm":""},Ece={key:0},Ace={id:"tester-container",relative:""},Lce=["data-scale"],Km=20,Mce=100,$ce=at({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return er.value[0]===v[0]&&er.value[1]===v[1]}const{width:o,height:s}=ww();async function c(p){er.value=t[p],(Ot==null?void 0:Ot.provider)==="webdriverio"&&Rw()}const f=Se(()=>{if((Ot==null?void 0:Ot.provider)==="webdriverio"){const[w,A]=er.value;return{width:w,height:A}}const m=o.value*(Lt.details.size/100)*(Lt.details.browser/100)-Km,b=s.value-Mce;return{width:m,height:b}}),d=Se(()=>{if((Ot==null?void 0:Ot.provider)==="webdriverio")return 1;const[p,v]=er.value,{width:m,height:b}=f.value,w=m>p?1:m/p,A=b>v?1:b/v;return Math.min(1,w,A)}),h=Se(()=>{const p=f.value.width,v=er.value[0];return`${Math.trunc((p+Km-v)/2)}px`});return(p,v)=>{const m=Qr,b=zr("tooltip");return ie(),ye("div",Sce,[ee("div",kce,[ct(Oe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>B(hL)())},null,512),[[Yi,B(Lt).navigation<=15],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=ee("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=ee("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ct(Oe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>B(fL)())},null,512),[[Yi,B(Lt).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),ct(Oe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>B(dL)())},null,512),[[Yi,B(Lt).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),ee("div",Tce,[ct(Oe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=w=>c("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),ct(Oe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=w=>c("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),ct(Oe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=w=>c("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),ee("span",Cce,[dt(ze(B(er)[0])+"x"+ze(B(er)[1])+"px ",1),B(d)<1?(ie(),ye("span",Ece,"("+ze((B(d)*100).toFixed(0))+"%)",1)):qe("",!0)])]),ee("div",Ace,[ee("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":B(d),style:tn({"--viewport-width":`${B(er)[0]}px`,"--viewport-height":`${B(er)[1]}px`,"--tester-transform":`scale(${B(d)})`,"--tester-margin-left":B(h)})}," Select a test to run ",12,Lce)])])}}}),Nce=Jr($ce,[["__scopeId","data-v-9fd23e63"]]),np=at({__name:"Modal",props:ra({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Pu(e,"modelValue"),r=Se(()=>{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=Se(()=>{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)=>(ie(),ye("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[ee("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),ee("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[B(r)]]),style:tn(t.value?{}:{transform:B(o)})},[xn(c.$slots,"default")],6)],2))}}),Oce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Pce={"p-4":"",relative:"",border:"base b"},Rce={op50:"","font-mono":"","text-sm":""},zce={op50:"","font-mono":"","text-sm":""},Ice={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Dce=["src","alt"],Fce={key:1},Hce=at({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return gw("Escape",()=>{r("close")}),(o,s)=>{const c=Qr;return ie(),ye("div",Oce,[ee("div",Pce,[s[1]||(s[1]=ee("p",null,"Screenshot error",-1)),ee("p",Rce,ze(o.file),1),ee("p",zce,ze(o.name),1),Oe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),ee("div",Ice,[o.url?(ie(),ye("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Dce)):(ie(),ye("div",Fce," Something was wrong, the image cannot be resolved. "))])])}}}),Yw=Jr(Hce,[["__scopeId","data-v-93900314"]]),Zw={"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(Zw);var cr=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)},ys,zl,No;class Bce{constructor(...t){ys.set(this,new Map),zl.set(this,new Map),No.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()),cr(this,No,"f").has(o)||cr(this,No,"f").set(o,new Set);const c=cr(this,No,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c==null||c.add(d),f&&cr(this,zl,"f").set(o,d),f=!1,h)continue;const p=cr(this,ys,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);cr(this,ys,"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:cr(this,ys,"f").get(o)??null}getExtension(t){var r;return typeof t!="string"?null:(t=(r=t==null?void 0:t.split)==null?void 0:r.call(t,";")[0],(t&&cr(this,zl,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:cr(this,No,"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 cr(this,No,"f").values())Object.freeze(t);return this}_getTestState(){return{types:cr(this,ys,"f"),extensions:cr(this,zl,"f")}}}ys=new WeakMap,zl=new WeakMap,No=new WeakMap;const Wce=new Bce(Zw)._freeze();function pu(e){if(hr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function Jw(e,t){const r=t?Wce.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function qce(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}const jce=["href","referrerPolicy"],Uce=["src"],Vce=at({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=Se(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:pu(o)});return(o,s)=>{var c;return o.annotation.attachment&&((c=o.annotation.attachment.contentType)!=null&&c.startsWith("image/"))?(ie(),ye("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:B(r),referrerPolicy:B(qce)(o.annotation.attachment)?"no-referrer":void 0},[ee("img",{src:B(r)},null,8,Uce)],8,jce)):qe("",!0)}}});var Dc={exports:{}},Gce=Dc.exports,Xm;function Xs(){return Xm||(Xm=1,function(e,t){(function(r,o){e.exports=o()})(Gce,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],A=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),$=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),T=$||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),I=$||/Mac/.test(o),F=/\bCrOS\b/.test(r),re=/win/i.test(o),se=A&&r.match(/Version\/(\d*\.\d*)/);se&&(se=Number(se[1])),se&&se>=15&&(A=!1,v=!0);var J=I&&(m||A&&(se==null||se<12.11)),G=s||h&&p>=9;function K(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var N=function(n,i){var a=n.className,l=K(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 O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function P(n,i){return O(n).appendChild(i)}function S(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function H(n,i,a,l){var u=S(n,i,a,l);return u.setAttribute("role","presentation"),u}var V;document.createRange?V=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:V=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 oe(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 we(n,i){var a=n.className;K(i).test(a)||(n.className+=(a?" ":"")+i)}function Pe(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!K(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};$?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function Je(n){return n.display.wrapper.ownerDocument}function Xe(n){return Ye(n.display.wrapper)}function Ye(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function ne(n){return Je(n).defaultView}function W(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Q(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 X(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=W(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 pe(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var z=50,U={toString:function(){return"CodeMirror.Pass"}},Y={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function fe(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(me(Ce)+" ");return Ce[n]}function me(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 We(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function $e(){}function De(n,i){var a;return Object.create?a=Object.create(n):($e.prototype=n,a=new $e),i&&Q(i,a),a}var Ve=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Ve.test(n))}function st(n,i){return i?i.source.indexOf("\\w")>-1&&rt(n)?!0:i.test(n):rt(n)}function ut(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var $t=/[\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 lt(n){return n.charCodeAt(0)>=768&&$t.test(n)}function Kt(n,i,a){for(;(a<0?i>0:i<n.length)&&lt(n.charAt(i));)i+=a;return i}function Bt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function Dn(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 Dr=null;function Ft(n,i,a){var l;Dr=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:Dr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Dr=u)}return l??Dr}var Fn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function _(k,D,j){this.level=k,this.from=D,this.to=j}return function(k,D){var j=D=="ltr"?"L":"R";if(k.length==0||D=="ltr"&&!l.test(k))return!1;for(var te=k.length,Z=[],ce=0;ce<te;++ce)Z.push(a(k.charCodeAt(ce)));for(var ge=0,_e=j;ge<te;++ge){var ke=Z[ge];ke=="m"?Z[ge]=_e:_e=ke}for(var Me=0,Te=j;Me<te;++Me){var Ne=Z[Me];Ne=="1"&&Te=="r"?Z[Me]="n":g.test(Ne)&&(Te=Ne,Ne=="r"&&(Z[Me]="R"))}for(var He=1,Ie=Z[0];He<te-1;++He){var Qe=Z[He];Qe=="+"&&Ie=="1"&&Z[He+1]=="1"?Z[He]="1":Qe==","&&Ie==Z[He+1]&&(Ie=="1"||Ie=="n")&&(Z[He]=Ie),Ie=Qe}for(var _t=0;_t<te;++_t){var Qt=Z[_t];if(Qt==",")Z[_t]="N";else if(Qt=="%"){var Nt=void 0;for(Nt=_t+1;Nt<te&&Z[Nt]=="%";++Nt);for(var Wn=_t&&Z[_t-1]=="!"||Nt<te&&Z[Nt]=="1"?"1":"N",Cn=_t;Cn<Nt;++Cn)Z[Cn]=Wn;_t=Nt-1}}for(var Wt=0,En=j;Wt<te;++Wt){var on=Z[Wt];En=="L"&&on=="1"?Z[Wt]="L":g.test(on)&&(En=on)}for(var Vt=0;Vt<te;++Vt)if(u.test(Z[Vt])){var qt=void 0;for(qt=Vt+1;qt<te&&u.test(Z[qt]);++qt);for(var It=(Vt?Z[Vt-1]:j)=="L",An=(qt<te?Z[qt]:j)=="L",hs=It==An?It?"L":"R":j,Fi=Vt;Fi<qt;++Fi)Z[Fi]=hs;Vt=qt-1}for(var un=[],qr,en=0;en<te;)if(y.test(Z[en])){var Vf=en;for(++en;en<te&&y.test(Z[en]);++en);un.push(new _(0,Vf,en))}else{var ai=en,So=un.length,ko=D=="rtl"?1:0;for(++en;en<te&&Z[en]!="L";++en);for(var gn=ai;gn<en;)if(x.test(Z[gn])){ai<gn&&(un.splice(So,0,new _(1,ai,gn)),So+=ko);var ps=gn;for(++gn;gn<en&&x.test(Z[gn]);++gn);un.splice(So,0,new _(2,ps,gn)),So+=ko,ai=gn}else++gn;ai<en&&un.splice(So,0,new _(1,ai,en))}return D=="ltr"&&(un[0].level==1&&(qr=k.match(/^\s+/))&&(un[0].from=qr[0].length,un.unshift(new _(0,0,qr[0].length))),me(un).level==1&&(qr=k.match(/\s+$/))&&(me(un).to-=qr[0].length,un.push(new _(0,te-qr[0].length,te)))),D=="rtl"?un.reverse():un}}();function tt(n,i){var a=n.order;return a==null&&(a=n.order=Fn(n.text,i)),a}var ho=[],Fe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||ho).concat(a)}};function ti(n,i){return n._handlers&&n._handlers[i]||ho}function ln(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=pe(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Pt(n,i){var a=ti(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),_n(i)||i.codemirrorIgnore}function sr(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)pe(a,i[l])==-1&&a.push(i[l])}function Hn(n,i){return ti(n,i).length>0}function gr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){ln(this,i,a)}}function an(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Wo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function _n(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Ei(n){an(n),Wo(n)}function Zs(n){return n.target||n.srcElement}function vr(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 Ju=function(){if(h&&p<9)return!1;var n=S("div");return"draggable"in n||"dragDrop"in n}(),qo;function Ia(n){if(qo==null){var i=S("span","​");P(n,S("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(qo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=qo?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Js;function Ai(n){if(Js!=null)return Js;var i=P(n,document.createTextNode("AخA")),a=V(i,0,1).getBoundingClientRect(),l=V(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:Js=l.right-a.right<3}var lr=`
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/)},Li=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},Da=function(){var n=S("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),mr=null;function Qu(n){if(mr!=null)return mr;var i=P(n,S("span","x")),a=i.getBoundingClientRect(),l=V(i,0,1).getBoundingClientRect();return mr=Math.abs(a.left-l.left)>1}var jo={},yr={};function br(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),jo[n]=i}function po(n,i){yr[n]=i}function Uo(n){if(typeof n=="string"&&yr.hasOwnProperty(n))n=yr[n];else if(n&&typeof n.name=="string"&&yr.hasOwnProperty(n.name)){var i=yr[n.name];typeof i=="string"&&(i={name:i}),n=De(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Uo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Uo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Vo(n,i){i=Uo(i);var a=jo[i.name];if(!a)return Vo(n,"text/plain");var l=a(n,i);if(Mi.hasOwnProperty(i.name)){var u=Mi[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 Mi={};function Go(n,i){var a=Mi.hasOwnProperty(n)?Mi[n]:Mi[n]={};Q(i,a)}function Fr(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 Qs(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 Ko(n,i,a){return n.startState?n.startState(i,a):!0}var zt=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};zt.prototype.eol=function(){return this.pos>=this.string.length},zt.prototype.sol=function(){return this.pos==this.lineStart},zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},zt.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},zt.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},zt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},zt.prototype.skipToEnd=function(){this.pos=this.string.length},zt.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},zt.prototype.backUp=function(n){this.pos-=n},zt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=X(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?X(this.string,this.lineStart,this.tabSize):0)},zt.prototype.indentation=function(){return X(this.string,null,this.tabSize)-(this.lineStart?X(this.string,this.lineStart,this.tabSize):0)},zt.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)}},zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},zt.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},zt.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},zt.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Re(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 ni(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 el(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Zn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=pe(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 q(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 de(n,i){return i>=n.first&&i<n.first+n.size}function xe(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function le(n,i,a){if(a===void 0&&(a=null),!(this instanceof le))return new le(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Le(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Le(n,i)==0}function Xt(n){return le(n.line,n.ch)}function Sn(n,i){return Le(n,i)<0?i:n}function Xo(n,i){return Le(n,i)<0?n:i}function yp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ke(n,i){if(i.line<n.first)return le(n.first,0);var a=n.first+n.size-1;return i.line>a?le(a,Re(n,a).text.length):s1(i,Re(n,i.line).text.length)}function s1(n,i){var a=n.ch;return a==null||a>i?le(n.line,i):a<0?le(n.line,0):n}function bp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ke(n,i[l]);return a}var Fa=function(n,i){this.state=n,this.lookAhead=i},Hr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Hr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Hr.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}},Hr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Hr.fromSaved=function(n,i,a){return i instanceof Fa?new Hr(n,Fr(n.mode,i.state),a,i.lookAhead):new Hr(n,Fr(n.mode,i),a)},Hr.prototype.save=function(n){var i=n!==!1?Fr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fa(i,this.maxLookAhead):i};function wp(n,i,a,l){var u=[n.state.modeGen],g={};Cp(n,i.text,n.doc.mode,a,function(k,D){return u.push(k,D)},g,l);for(var y=a.state,x=function(k){a.baseTokens=u;var D=n.state.overlays[k],j=1,te=0;a.state=!0,Cp(n,i.text,D.mode,a,function(Z,ce){for(var ge=j;te<Z;){var _e=u[j];_e>Z&&u.splice(j,1,Z,u[j+1],_e),j+=2,te=Math.min(Z,_e)}if(ce)if(D.opaque)u.splice(ge,j-ge,Z,"overlay "+ce),j=ge+2;else for(;ge<j;ge+=2){var ke=u[ge+1];u[ge+1]=(ke?ke+" ":"")+"overlay "+ce}},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 xp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=tl(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Fr(n.doc.mode,l.state),g=wp(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 tl(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Hr(l,!0,i);var g=l1(n,i,a),y=g>l.first&&Re(l,g-1).stateAfter,x=y?Hr.fromSaved(l,y,g):new Hr(l,Ko(l.mode),g);return l.iter(g,i,function(_){ef(n,_.text,x);var k=x.line;_.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function ef(n,i,a,l){var u=n.doc.mode,g=new zt(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&_p(u,a.state);!g.eol();)tf(u,g,a.state),g.start=g.pos}function _p(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Qs(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function tf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Qs(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 Sp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function kp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ke(u,i);var x=Re(u,i.line),_=tl(n,i.line,a),k=new zt(x.text,n.options.tabSize,_),D;for(l&&(D=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=tf(g,k,_.state),l&&D.push(new Sp(k,y,Fr(u.mode,_.state)));return l?D:new Sp(k,y,_.state)}function Tp(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 Cp(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var _=0,k=null,D=new zt(i,n.options.tabSize,l),j,te=n.options.addModeClass&&[null];for(i==""&&Tp(_p(a,l.state),g);!D.eol();){if(D.pos>n.options.maxHighlightLength?(x=!1,y&&ef(n,i,l,D.pos),D.pos=i.length,j=null):j=Tp(tf(a,D,l.state,te),g),te){var Z=te[0].name;Z&&(j="m-"+(j?Z+" "+j:Z))}if(!x||k!=j){for(;_<D.start;)_=Math.min(D.start,_+5e3),u(_,k);k=j}D.start=D.pos}for(;_<D.pos;){var ce=Math.min(D.pos,_+5e3);u(ce,k),_=ce}}function l1(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 _=Re(g,x-1),k=_.stateAfter;if(k&&(!a||x+(k instanceof Fa?k.lookAhead:0)<=g.modeFrontier))return x;var D=X(_.text,null,n.options.tabSize);(u==null||l>D)&&(u=x-1,l=D)}return u}function a1(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=Re(n,l).stateAfter;if(u&&(!(u instanceof Fa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Ep=!1,ri=!1;function c1(){Ep=!0}function u1(){ri=!0}function Ha(n,i,a){this.marker=n,this.from=i,this.to=a}function nl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function f1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function d1(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 h1(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 Ha(y,g.from,_?null:g.to))}}return l}function p1(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 Ha(y,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function nf(n,i){if(i.full)return null;var a=de(n,i.from.line)&&Re(n,i.from.line).markedSpans,l=de(n,i.to.line)&&Re(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Le(i.from,i.to)==0,x=h1(a,u,y),_=p1(l,g,y),k=i.text.length==1,D=me(i.text).length+(k?u:0);if(x)for(var j=0;j<x.length;++j){var te=x[j];if(te.to==null){var Z=nl(_,te.marker);Z?k&&(te.to=Z.to==null?null:Z.to+D):te.to=u}}if(_)for(var ce=0;ce<_.length;++ce){var ge=_[ce];if(ge.to!=null&&(ge.to+=D),ge.from==null){var _e=nl(x,ge.marker);_e||(ge.from=D,k&&(x||(x=[])).push(ge))}else ge.from+=D,k&&(x||(x=[])).push(ge)}x&&(x=Ap(x)),_&&_!=x&&(_=Ap(_));var ke=[x];if(!k){var Me=i.text.length-2,Te;if(Me>0&&x)for(var Ne=0;Ne<x.length;++Ne)x[Ne].to==null&&(Te||(Te=[])).push(new Ha(x[Ne].marker,null,null));for(var He=0;He<Me;++He)ke.push(Te);ke.push(_)}return ke}function Ap(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 g1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(Z){if(Z.markedSpans)for(var ce=0;ce<Z.markedSpans.length;++ce){var ge=Z.markedSpans[ce].marker;ge.readOnly&&(!l||pe(l,ge)==-1)&&(l||(l=[])).push(ge)}}),!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 k=u[_];if(!(Le(k.to,x.from)<0||Le(k.from,x.to)>0)){var D=[_,1],j=Le(k.from,x.from),te=Le(k.to,x.to);(j<0||!y.inclusiveLeft&&!j)&&D.push({from:k.from,to:x.from}),(te>0||!y.inclusiveRight&&!te)&&D.push({from:x.to,to:k.to}),u.splice.apply(u,D),_+=D.length-3}}return u}function Lp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Mp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ba(n){return n.inclusiveLeft?-1:0}function Wa(n){return n.inclusiveRight?1:0}function rf(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Le(l.from,u.from)||Ba(n)-Ba(i);if(g)return-g;var y=Le(l.to,u.to)||Wa(n)-Wa(i);return y||i.id-n.id}function $p(n,i){var a=ri&&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||rf(l,u.marker)<0)&&(l=u.marker);return l}function Np(n){return $p(n,!0)}function qa(n){return $p(n,!1)}function v1(n,i){var a=ri&&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||rf(l,g.marker)<0)&&(l=g.marker)}return l}function Op(n,i,a,l,u){var g=Re(n,i),y=ri&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var _=y[x];if(_.marker.collapsed){var k=_.marker.find(0),D=Le(k.from,a)||Ba(_.marker)-Ba(u),j=Le(k.to,l)||Wa(_.marker)-Wa(u);if(!(D>=0&&j<=0||D<=0&&j>=0)&&(D<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Le(k.to,a)>=0:Le(k.to,a)>0)||D>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Le(k.from,l)<=0:Le(k.from,l)<0)))return!0}}}function wr(n){for(var i;i=Np(n);)n=i.find(-1,!0).line;return n}function m1(n){for(var i;i=qa(n);)n=i.find(1,!0).line;return n}function y1(n){for(var i,a;i=qa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function of(n,i){var a=Re(n,i),l=wr(a);return a==l?i:C(l)}function Pp(n,i){if(i>n.lastLine())return i;var a=Re(n,i),l;if(!$i(n,a))return i;for(;l=qa(a);)a=l.find(1,!0).line;return C(a)+1}function $i(n,i){var a=ri&&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&&sf(n,i,l))return!0}}}function sf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return sf(n,l.line,nl(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)&&sf(n,i,u))return!0}function ii(n){n=wr(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 ja(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Np(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=qa(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 lf(n){var i=n.display,a=n.doc;i.maxLine=Re(a,a.first),i.maxLineLength=ja(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=ja(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Yo=function(n,i,a){this.text=n,Mp(this,i),this.height=a?a(this):1};Yo.prototype.lineNo=function(){return C(this)},gr(Yo);function b1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Lp(n),Mp(n,a);var u=l?l(n):1;u!=n.height&&Zn(n,u)}function w1(n){n.parent=null,Lp(n)}var x1={},_1={};function Rp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?_1:x1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function zp(n,i){var a=H("span",null,null,v?"padding-right: .1px":null),l={pre:H("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=k1,Ai(n.display.measure)&&(y=tt(g,n.doc.direction))&&(l.addToken=C1(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&C(g);E1(g,l,xp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Pe(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Pe(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ia(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=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=Pe(l.pre.className,l.textClass||"")),l}function S1(n){var i=S("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function k1(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?T1(i,n.trailingSpace):i,_=n.cm.state.specialChars,k=!1,D;if(!_.test(i))n.col+=i.length,D=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,D),h&&p<9&&(k=!0),n.pos+=i.length;else{D=document.createDocumentFragment();for(var j=0;;){_.lastIndex=j;var te=_.exec(i),Z=te?te.index-j:i.length-j;if(Z){var ce=document.createTextNode(x.slice(j,j+Z));h&&p<9?D.appendChild(S("span",[ce])):D.appendChild(ce),n.map.push(n.pos,n.pos+Z,ce),n.col+=Z,n.pos+=Z}if(!te)break;j+=Z+1;var ge=void 0;if(te[0]==" "){var _e=n.cm.options.tabSize,ke=_e-n.col%_e;ge=D.appendChild(S("span",Ee(ke),"cm-tab")),ge.setAttribute("role","presentation"),ge.setAttribute("cm-text"," "),n.col+=ke}else te[0]=="\r"||te[0]==`
25
- `?(ge=D.appendChild(S("span",te[0]=="\r"?"␍":"␤","cm-invalidchar")),ge.setAttribute("cm-text",te[0]),n.col+=1):(ge=n.cm.options.specialCharPlaceholder(te[0]),ge.setAttribute("cm-text",te[0]),h&&p<9?D.appendChild(S("span",[ge])):D.appendChild(ge),n.col+=1);n.map.push(n.pos,n.pos+1,ge),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Me=a||"";l&&(Me+=l),u&&(Me+=u);var Te=S("span",[D],Me,g);if(y)for(var Ne in y)y.hasOwnProperty(Ne)&&Ne!="style"&&Ne!="class"&&Te.setAttribute(Ne,y[Ne]);return n.content.appendChild(Te)}n.content.appendChild(D)}}function T1(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 C1(n,i){return function(a,l,u,g,y,x,_){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,D=k+l.length;;){for(var j=void 0,te=0;te<i.length&&(j=i[te],!(j.to>k&&j.from<=k));te++);if(j.to>=D)return n(a,l,u,g,y,x,_);n(a,l.slice(0,j.to-k),u,g,null,x,_),g=null,l=l.slice(j.to-k),k=j.to}}}function Ip(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 E1(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]),Rp(a[y+1],i.cm.options));return}for(var x=u.length,_=0,k=1,D="",j,te,Z=0,ce,ge,_e,ke,Me;;){if(Z==_){ce=ge=_e=te="",Me=null,ke=null,Z=1/0;for(var Te=[],Ne=void 0,He=0;He<l.length;++He){var Ie=l[He],Qe=Ie.marker;if(Qe.type=="bookmark"&&Ie.from==_&&Qe.widgetNode)Te.push(Qe);else if(Ie.from<=_&&(Ie.to==null||Ie.to>_||Qe.collapsed&&Ie.to==_&&Ie.from==_)){if(Ie.to!=null&&Ie.to!=_&&Z>Ie.to&&(Z=Ie.to,ge=""),Qe.className&&(ce+=" "+Qe.className),Qe.css&&(te=(te?te+";":"")+Qe.css),Qe.startStyle&&Ie.from==_&&(_e+=" "+Qe.startStyle),Qe.endStyle&&Ie.to==Z&&(Ne||(Ne=[])).push(Qe.endStyle,Ie.to),Qe.title&&((Me||(Me={})).title=Qe.title),Qe.attributes)for(var _t in Qe.attributes)(Me||(Me={}))[_t]=Qe.attributes[_t];Qe.collapsed&&(!ke||rf(ke.marker,Qe)<0)&&(ke=Ie)}else Ie.from>_&&Z>Ie.from&&(Z=Ie.from)}if(Ne)for(var Qt=0;Qt<Ne.length;Qt+=2)Ne[Qt+1]==Z&&(ge+=" "+Ne[Qt]);if(!ke||ke.from==_)for(var Nt=0;Nt<Te.length;++Nt)Ip(i,0,Te[Nt]);if(ke&&(ke.from||0)==_){if(Ip(i,(ke.to==null?x+1:ke.to)-_,ke.marker,ke.from==null),ke.to==null)return;ke.to==_&&(ke=!1)}}if(_>=x)break;for(var Wn=Math.min(x,Z);;){if(D){var Cn=_+D.length;if(!ke){var Wt=Cn>Wn?D.slice(0,Wn-_):D;i.addToken(i,Wt,j?j+ce:ce,_e,_+Wt.length==Z?ge:"",te,Me)}if(Cn>=Wn){D=D.slice(Wn-_),_=Wn;break}_=Cn,_e=""}D=u.slice(g,g=a[k++]),j=Rp(a[k++],i.cm.options)}}}function Dp(n,i,a){this.line=i,this.rest=y1(i),this.size=this.rest?C(me(this.rest))-a+1:1,this.node=this.text=null,this.hidden=$i(n,i)}function Ua(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Dp(n.doc,Re(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Zo=null;function A1(n){Zo?Zo.ops.push(n):n.ownsGroup=Zo={ops:[n],delayedCallbacks:[]}}function L1(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 M1(n,i){var a=n.ownsGroup;if(a)try{L1(a)}finally{Zo=null,i(a)}}var rl=null;function Yt(n,i){var a=ti(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Zo?u=Zo.delayedCallbacks:rl?u=rl:(u=rl=[],setTimeout($1,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function $1(){var n=rl;rl=null;for(var i=0;i<n.length;++i)n[i]()}function Fp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?O1(n,i):g=="gutter"?Bp(n,i,a,l):g=="class"?af(n,i):g=="widget"&&P1(n,i,l)}i.changes=null}function il(n){return n.node==n.text&&(n.node=S("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 N1(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=il(i);i.background=l.insertBefore(S("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Hp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):zp(n,i)}function O1(n,i){var a=i.text.className,l=Hp(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,af(n,i)):a&&(i.text.className=a)}function af(n,i){N1(n,i),i.line.wrapClass?il(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 Bp(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=il(i);i.gutterBackground=S("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=il(i),x=i.gutter=S("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(S("div",xe(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 k=n.display.gutterSpecs[_].className,D=g.hasOwnProperty(k)&&g[k];D&&x.appendChild(S("div",[D],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function P1(n,i,a){i.alignable&&(i.alignable=null);for(var l=K("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Wp(n,i,a)}function R1(n,i,a,l){var u=Hp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),af(n,i),Bp(n,i,a,l),Wp(n,i,l),i.node}function Wp(n,i,a){if(qp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)qp(n,i.rest[l],i,a,!1)}function qp(n,i,a,l,u){if(i.widgets)for(var g=il(a),y=0,x=i.widgets;y<x.length;++y){var _=x[y],k=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),z1(_,k,a,l),n.display.input.setUneditable(k),u&&_.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Yt(_,"redraw")}}function z1(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 ol(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!oe(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;"),P(i.display.measure,S("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function oi(n,i){for(var a=Zs(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 Va(n){return n.lineSpace.offsetTop}function cf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function jp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=P(n.measure,S("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 Br(n){return z-n.display.nativeBarWidth}function go(n){return n.display.scroller.clientWidth-Br(n)-n.display.barWidth}function uf(n){return n.display.scroller.clientHeight-Br(n)-n.display.barHeight}function I1(n,i,a){var l=n.options.lineWrapping,u=l&&go(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var _=y[x],k=y[x+1];Math.abs(_.bottom-k.bottom)>2&&g.push((_.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Up(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(C(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function D1(n,i){i=wr(i);var a=C(i),l=n.display.externalMeasured=new Dp(n.doc,i,a);l.lineN=a;var u=l.built=zp(n,l);return l.text=u.pre,P(n.display.lineMeasure,u.pre),l}function Vp(n,i,a,l){return Wr(n,Jo(n,i),a,l)}function ff(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[yo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Jo(n,i){var a=C(i),l=ff(n,a);l&&!l.text?l=null:l&&l.changes&&(Fp(n,l,a,vf(n)),n.curOp.forceUpdate=!0),l||(l=D1(n,i));var u=Up(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Wr(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||(I1(n,i.view,i.rect),i.hasHeights=!0),y=H1(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 Gp={left:0,right:0,top:0,bottom:0};function Kp(n,i,a){for(var l,u,g,y,x,_,k=0;k<n.length;k+=3)if(x=n[k],_=n[k+1],i<x?(u=0,g=1,y="left"):i<_?(u=i-x,g=u+1):(k==n.length-3||i==_&&n[k+3]>i)&&(g=_-x,u=g-1,i>=_&&(y="right")),u!=null){if(l=n[k+2],x==_&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)l=n[(k-=3)+2],y="left";if(a=="right"&&u==_-x)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)l=n[(k+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:x,coverEnd:_}}function F1(n,i){var a=Gp;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 H1(n,i,a,l){var u=Kp(i.map,a,l),g=u.node,y=u.start,x=u.end,_=u.collapse,k;if(g.nodeType==3){for(var D=0;D<4;D++){for(;y&&lt(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&lt(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=F1(V(g,y,x).getClientRects(),l),k.left||k.right||y==0)break;x=y,y=y-1,_="right"}h&&p<11&&(k=B1(n.display.measure,k))}else{y>0&&(_=l="right");var j;n.options.lineWrapping&&(j=g.getClientRects()).length>1?k=j[l=="right"?j.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var te=g.parentNode.getClientRects()[0];te?k={left:te.left,right:te.left+es(n.display),top:te.top,bottom:te.bottom}:k=Gp}for(var Z=k.top-i.rect.top,ce=k.bottom-i.rect.top,ge=(Z+ce)/2,_e=i.view.measure.heights,ke=0;ke<_e.length-1&&!(ge<_e[ke]);ke++);var Me=ke?_e[ke-1]:0,Te=_e[ke],Ne={left:(_=="right"?k.right:k.left)-i.rect.left,right:(_=="left"?k.left:k.right)-i.rect.left,top:Me,bottom:Te};return!k.left&&!k.right&&(Ne.bogus=!0),n.options.singleCursorHeightPerLine||(Ne.rtop=Z,Ne.rbottom=ce),Ne}function B1(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Qu(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 Xp(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 Yp(n){n.display.externalMeasure=null,O(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Xp(n.display.view[i])}function sl(n){Yp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Zp(n){return b&&R?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Jp(n){return b&&R?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function df(n){var i=wr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=ol(a[u]));return l}function Ga(n,i,a,l,u){if(!u){var g=df(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ii(i);if(l=="local"?y+=Va(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Jp(Je(n)));var _=x.left+(l=="window"?0:Zp(Je(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function Qp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Zp(Je(n)),u-=Jp(Je(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 Ka(n,i,a,l,u){return l||(l=Re(n.doc,i.line)),Ga(n,l,Vp(n,l,i.ch,u),a)}function xr(n,i,a,l,u,g){l=l||Re(n.doc,i.line),u||(u=Jo(n,l));function y(ce,ge){var _e=Wr(n,u,ce,ge?"right":"left",g);return ge?_e.left=_e.right:_e.right=_e.left,Ga(n,l,_e,a)}var x=tt(l,n.doc.direction),_=i.ch,k=i.sticky;if(_>=l.text.length?(_=l.text.length,k="before"):_<=0&&(_=0,k="after"),!x)return y(k=="before"?_-1:_,k=="before");function D(ce,ge,_e){var ke=x[ge],Me=ke.level==1;return y(_e?ce-1:ce,Me!=_e)}var j=Ft(x,_,k),te=Dr,Z=D(_,j,k=="before");return te!=null&&(Z.other=D(_,te,k!="before")),Z}function eg(n,i){var a=0;i=Ke(n.doc,i),n.options.lineWrapping||(a=es(n.display)*i.ch);var l=Re(n.doc,i.line),u=ii(l)+Va(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function hf(n,i,a,l,u){var g=le(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function pf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return hf(l.first,0,null,-1,-1);var u=q(l,a),g=l.first+l.size-1;if(u>g)return hf(l.first+l.size-1,Re(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Re(l,u);;){var x=W1(n,y,u,i,a),_=v1(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!_)return x;var k=_.find(1);if(k.line==u)return k;y=Re(l,u=k.line)}}function tg(n,i,a,l){l-=df(i);var u=i.text.length,g=Bt(function(y){return Wr(n,a,y-1).bottom<=l},u,0);return u=Bt(function(y){return Wr(n,a,y).top>l},g,u),{begin:g,end:u}}function ng(n,i,a,l){a||(a=Jo(n,i));var u=Ga(n,i,Wr(n,a,l),"line").top;return tg(n,i,a,u)}function gf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function W1(n,i,a,l,u){u-=ii(i);var g=Jo(n,i),y=df(i),x=0,_=i.text.length,k=!0,D=tt(i,n.doc.direction);if(D){var j=(n.options.lineWrapping?j1:q1)(n,i,a,g,D,l,u);k=j.level!=1,x=k?j.from:j.to-1,_=k?j.to:j.from-1}var te=null,Z=null,ce=Bt(function(He){var Ie=Wr(n,g,He);return Ie.top+=y,Ie.bottom+=y,gf(Ie,l,u,!1)?(Ie.top<=u&&Ie.left<=l&&(te=He,Z=Ie),!0):!1},x,_),ge,_e,ke=!1;if(Z){var Me=l-Z.left<Z.right-l,Te=Me==k;ce=te+(Te?0:1),_e=Te?"after":"before",ge=Me?Z.left:Z.right}else{!k&&(ce==_||ce==x)&&ce++,_e=ce==0?"after":ce==i.text.length?"before":Wr(n,g,ce-(k?1:0)).bottom+y<=u==k?"after":"before";var Ne=xr(n,le(a,ce,_e),"line",i,g);ge=Ne.left,ke=u<Ne.top?-1:u>=Ne.bottom?1:0}return ce=Kt(i.text,ce,1),hf(a,ce,_e,ke,l-ge)}function q1(n,i,a,l,u,g,y){var x=Bt(function(j){var te=u[j],Z=te.level!=1;return gf(xr(n,le(a,Z?te.to:te.from,Z?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),_=u[x];if(x>0){var k=_.level!=1,D=xr(n,le(a,k?_.from:_.to,k?"after":"before"),"line",i,l);gf(D,g,y,!0)&&D.top>y&&(_=u[x-1])}return _}function j1(n,i,a,l,u,g,y){var x=tg(n,i,l,y),_=x.begin,k=x.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var D=null,j=null,te=0;te<u.length;te++){var Z=u[te];if(!(Z.from>=k||Z.to<=_)){var ce=Z.level!=1,ge=Wr(n,l,ce?Math.min(k,Z.to)-1:Math.max(_,Z.from)).right,_e=ge<g?g-ge+1e9:ge-g;(!D||j>_e)&&(D=Z,j=_e)}}return D||(D=u[u.length-1]),D.from<_&&(D={from:_,to:D.to,level:D.level}),D.to>k&&(D={from:D.from,to:k,level:D.level}),D}var vo;function Qo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(vo==null){vo=S("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)vo.appendChild(document.createTextNode("x")),vo.appendChild(S("br"));vo.appendChild(document.createTextNode("x"))}P(n.measure,vo);var a=vo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function es(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=S("span","xxxxxxxxxx"),a=S("pre",[i],"CodeMirror-line-like");P(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function vf(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:mf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function mf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function rg(n){var i=Qo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/es(n.display)-3);return function(u){if($i(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 yf(n){var i=n.doc,a=rg(n);i.iter(function(l){var u=a(l);u!=l.height&&Zn(l,u)})}function mo(n,i,a,l){var u=n.display;if(!a&&Zs(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 _=pf(n,g,y),k;if(l&&_.xRel>0&&(k=Re(n.doc,_.line).text).length==_.ch){var D=X(k,k.length,n.options.tabSize)-k.length;_=le(_.line,Math.max(0,Math.round((g-jp(n.display).left)/es(n.display))-D))}return _}function yo(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function kn(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)ri&&of(n.doc,i)<u.viewTo&&Oi(n);else if(a<=u.viewFrom)ri&&Pp(n.doc,a+l)>u.viewFrom?Oi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Oi(n);else if(i<=u.viewFrom){var g=Xa(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Oi(n)}else if(a>=u.viewTo){var y=Xa(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Oi(n)}else{var x=Xa(n,i,i,-1),_=Xa(n,a,a+l,1);x&&_?(u.view=u.view.slice(0,x.index).concat(Ua(n,x.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):Oi(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Ni(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[yo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);pe(y,a)==-1&&y.push(a)}}}function Oi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Xa(n,i,a,l){var u=yo(n,i),g,y=n.display.view;if(!ri||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(;of(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 U1(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ua(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ua(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(yo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ua(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,yo(n,a)))),l.viewTo=a}function ig(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 ll(n){n.display.input.showSelection(n.display.input.prepareSelection())}function og(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 k=_.empty();if(y){var D=y(n,_);D&&bf(n,D,u)}else(k||n.options.showCursorWhenSelecting)&&bf(n,_.head,u);k||V1(n,_,g)}}return l}function bf(n,i,a){var l=xr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(S("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=Ka(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(S("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 Ya(n,i){return n.top-i.top||n.left-i.left}function V1(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=jp(n.display),x=y.left,_=Math.max(l.sizerWidth,go(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function D(Te,Ne,He,Ie){Ne<0&&(Ne=0),Ne=Math.round(Ne),Ie=Math.round(Ie),g.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
26
- top: `+Ne+"px; width: "+(He??_-Te)+`px;
27
- height: `+(Ie-Ne)+"px"))}function j(Te,Ne,He){var Ie=Re(u,Te),Qe=Ie.text.length,_t,Qt;function Nt(Wt,En){return Ka(n,le(Te,Wt),"div",Ie,En)}function Wn(Wt,En,on){var Vt=ng(n,Ie,null,Wt),qt=En=="ltr"==(on=="after")?"left":"right",It=on=="after"?Vt.begin:Vt.end-(/\s/.test(Ie.text.charAt(Vt.end-1))?2:1);return Nt(It,qt)[qt]}var Cn=tt(Ie,u.direction);return Dn(Cn,Ne||0,He??Qe,function(Wt,En,on,Vt){var qt=on=="ltr",It=Nt(Wt,qt?"left":"right"),An=Nt(En-1,qt?"right":"left"),hs=Ne==null&&Wt==0,Fi=He==null&&En==Qe,un=Vt==0,qr=!Cn||Vt==Cn.length-1;if(An.top-It.top<=3){var en=(k?hs:Fi)&&un,Vf=(k?Fi:hs)&&qr,ai=en?x:(qt?It:An).left,So=Vf?_:(qt?An:It).right;D(ai,It.top,So-ai,It.bottom)}else{var ko,gn,ps,Gf;qt?(ko=k&&hs&&un?x:It.left,gn=k?_:Wn(Wt,on,"before"),ps=k?x:Wn(En,on,"after"),Gf=k&&Fi&&qr?_:An.right):(ko=k?Wn(Wt,on,"before"):x,gn=!k&&hs&&un?_:It.right,ps=!k&&Fi&&qr?x:An.left,Gf=k?Wn(En,on,"after"):_),D(ko,It.top,gn-ko,It.bottom),It.bottom<An.top&&D(x,It.bottom,null,An.top),D(ps,An.top,Gf-ps,An.bottom)}(!_t||Ya(It,_t)<0)&&(_t=It),Ya(An,_t)<0&&(_t=An),(!Qt||Ya(It,Qt)<0)&&(Qt=It),Ya(An,Qt)<0&&(Qt=An)}),{start:_t,end:Qt}}var te=i.from(),Z=i.to();if(te.line==Z.line)j(te.line,te.ch,Z.ch);else{var ce=Re(u,te.line),ge=Re(u,Z.line),_e=wr(ce)==wr(ge),ke=j(te.line,te.ch,_e?ce.text.length+1:null).end,Me=j(Z.line,_e?0:null,Z.ch).start;_e&&(ke.top<Me.top-2?(D(ke.right,ke.top,null,ke.bottom),D(x,Me.top,Me.left,Me.bottom)):D(ke.right,ke.top,Me.left-ke.right,ke.bottom)),ke.bottom<Me.top&&D(x,ke.bottom,null,Me.top)}a.appendChild(g)}function wf(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()||ts(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function sg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||_f(n))}function xf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&ts(n))},100)}function _f(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,we(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),wf(n))}function ts(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Pt(n,"blur",n,i),n.state.focused=!1,N(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Za(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,k=void 0,D=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var j=x.node.offsetTop+x.node.offsetHeight;k=j-a,a=j}else{var te=x.node.getBoundingClientRect();k=te.bottom-te.top,!_&&x.text.firstChild&&(D=x.text.firstChild.getBoundingClientRect().right-te.left-1)}var Z=x.line.height-k;if((Z>.005||Z<-.005)&&(u<l&&(g-=Z),Zn(x.line,k),lg(x.line),x.rest))for(var ce=0;ce<x.rest.length;ce++)lg(x.rest[ce]);if(D>n.display.sizerWidth){var ge=Math.ceil(D/es(n.display));ge>n.display.maxLineLength&&(n.display.maxLineLength=ge,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function lg(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 Ja(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Va(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=q(i,l),y=q(i,u);if(a&&a.ensure){var x=a.ensure.from.line,_=a.ensure.to.line;x<g?(g=x,y=q(i,ii(Re(i,x))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(g=q(i,ii(Re(i,_))-n.wrapper.clientHeight),y=_)}return{from:g,to:Math.max(y,g+1)}}function G1(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&&!M){var y=S("div","​",null,`position: absolute;
28
- top: `+(i.top-a.viewOffset-Va(n.display))+`px;
29
- height: `+(i.bottom-i.top+Br(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 K1(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?le(i.line,i.ch+1,"before"):i,i=i.ch?le(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=xr(n,i),_=!a||a==i?x:xr(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 k=Sf(n,u),D=n.doc.scrollTop,j=n.doc.scrollLeft;if(k.scrollTop!=null&&(cl(n,k.scrollTop),Math.abs(n.doc.scrollTop-D)>1&&(y=!0)),k.scrollLeft!=null&&(bo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-j)>1&&(y=!0)),!y)break}return u}function X1(n,i){var a=Sf(n,i);a.scrollTop!=null&&cl(n,a.scrollTop),a.scrollLeft!=null&&bo(n,a.scrollLeft)}function Sf(n,i){var a=n.display,l=Qo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=uf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+cf(a),_=i.top<l,k=i.bottom>x-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+g){var D=Math.min(i.top,(k?x:i.bottom)-g);D!=u&&(y.scrollTop=D)}var j=n.options.fixedGutter?0:a.gutters.offsetWidth,te=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-j,Z=go(n)-a.gutters.offsetWidth,ce=i.right-i.left>Z;return ce&&(i.right=i.left+Z),i.left<10?y.scrollLeft=0:i.left<te?y.scrollLeft=Math.max(0,i.left+j-(ce?0:10)):i.right>Z+te-3&&(y.scrollLeft=i.right+(ce?0:10)-Z),y}function kf(n,i){i!=null&&(Qa(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function ns(n){Qa(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function al(n,i,a){(i!=null||a!=null)&&Qa(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Y1(n,i){Qa(n),n.curOp.scrollToPos=i}function Qa(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=eg(n,i.from),l=eg(n,i.to);ag(n,a,l,i.margin)}}function ag(n,i,a,l){var u=Sf(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});al(n,u.scrollLeft,u.scrollTop)}function cl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Cf(n,{top:i}),cg(n,i,!0),s&&Cf(n),dl(n,100))}function cg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function bo(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,pg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function ul(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+cf(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+Br(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var wo=function(n,i,a){this.cm=a;var l=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Fe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wo.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},wo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wo.prototype.zeroWidthHack=function(){var n=I&&!E?"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},wo.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},wo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var fl=function(){};fl.prototype.update=function(){return{bottom:0,right:0}},fl.prototype.setScrollLeft=function(){},fl.prototype.setScrollTop=function(){},fl.prototype.clear=function(){};function rs(n,i){i||(i=ul(n));var a=n.display.barWidth,l=n.display.barHeight;ug(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Za(n),ug(n,ul(n)),a=n.display.barWidth,l=n.display.barHeight}function ug(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 fg={native:wo,null:fl};function dg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&N(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new fg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Fe(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?bo(n,i):cl(n,i)},n),n.display.scrollbars.addClass&&we(n.display.wrapper,n.display.scrollbars.addClass)}var Z1=0;function xo(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Z1,markArrays:null},A1(n.curOp)}function _o(n){var i=n.curOp;i&&M1(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;J1(a)})}function J1(n){for(var i=n.ops,a=0;a<i.length;a++)Q1(i[a]);for(var l=0;l<i.length;l++)e_(i[l]);for(var u=0;u<i.length;u++)t_(i[u]);for(var g=0;g<i.length;g++)n_(i[g]);for(var y=0;y<i.length;y++)r_(i[y])}function Q1(n){var i=n.cm,a=i.display;o_(i),n.updateMaxLine&&lf(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 ec(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function e_(n){n.updatedDisplay=n.mustUpdate&&Tf(n.cm,n.update)}function t_(n){var i=n.cm,a=i.display;n.updatedDisplay&&Za(i),n.barMeasure=ul(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Vp(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+Br(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-go(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function n_(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&bo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ve(Xe(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&rs(i,n.barMeasure),n.updatedDisplay&&Af(i,n.barMeasure),n.selectionChanged&&wf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&sg(n.cm)}function r_(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&hg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&cg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&bo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=K1(i,Ke(l,n.scrollToPos.from),Ke(l,n.scrollToPos.to),n.scrollToPos.margin);G1(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 Bn(n,i){if(n.curOp)return i();xo(n);try{return i()}finally{_o(n)}}function Zt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);xo(n);try{return i.apply(n,arguments)}finally{_o(n)}}}function pn(n){return function(){if(this.curOp)return n.apply(this,arguments);xo(this);try{return n.apply(this,arguments)}finally{_o(this)}}}function Jt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);xo(i);try{return n.apply(this,arguments)}finally{_o(i)}}}function dl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,W(i_,n))}function i_(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=tl(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?Fr(i.mode,l.state):null,_=wp(n,g,l,!0);x&&(l.state=x),g.styles=_.styles;var k=g.styleClasses,D=_.classes;D?g.styleClasses=D:k&&(g.styleClasses=null);for(var j=!y||y.length!=g.styles.length||k!=D&&(!k||!D||k.bgClass!=D.bgClass||k.textClass!=D.textClass),te=0;!j&&te<y.length;++te)j=y[te]!=g.styles[te];j&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&ef(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return dl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Bn(n,function(){for(var g=0;g<u.length;g++)Ni(n,u[g],"text")})}}var ec=function(n,i,a){var l=n.display;this.viewport=i,this.visible=Ja(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=go(n),this.force=a,this.dims=vf(n),this.events=[]};ec.prototype.signal=function(n,i){Hn(n,i)&&this.events.push(arguments)},ec.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Pt.apply(null,this.events[n])};function o_(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Br(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Br(n)+"px",i.scrollbarsClipped=!0)}function s_(n){if(n.hasFocus())return null;var i=ve(Xe(n));if(!i||!oe(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=ne(n).getSelection();l.anchorNode&&l.extend&&oe(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function l_(n){if(!(!n||!n.activeElt||n.activeElt==ve(Ye(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&oe(document.body,n.anchorNode)&&oe(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 Tf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Oi(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&&ig(n)==0)return!1;gg(n)&&(Oi(n),i.dims=vf(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)),ri&&(g=of(n.doc,g),y=Pp(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;U1(n,g,y),a.viewOffset=ii(Re(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=ig(n);if(!x&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=s_(n);return _>4&&(a.lineDiv.style.display="none"),a_(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,l_(k),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,dl(n,400)),a.updateLineNumbers=null,!0}function hg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==go(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+cf(n.display)-uf(n),a.top)}),i.visible=Ja(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=Ja(n.display,n.doc,a));if(!Tf(n,i))break;Za(n);var u=ul(n);ll(n),rs(n,u),Af(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 Cf(n,i){var a=new ec(n,i);if(Tf(n,a)){Za(n),hg(n,a);var l=ul(n);ll(n),rs(n,l),Af(n,l),a.finish()}}function a_(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(ce){var ge=ce.nextSibling;return v&&I&&n.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),ge}for(var _=l.view,k=l.viewFrom,D=0;D<_.length;D++){var j=_[D];if(!j.hidden)if(!j.node||j.node.parentNode!=g){var te=R1(n,j,k,a);g.insertBefore(te,y)}else{for(;y!=j.node;)y=x(y);var Z=u&&i!=null&&i<=k&&j.lineNumber;j.changes&&(pe(j.changes,"gutter")>-1&&(Z=!1),Fp(n,j,k,a)),Z&&(O(j.lineNumber),j.lineNumber.appendChild(document.createTextNode(xe(n.options,k)))),y=j.node.nextSibling}k+=j.size}for(;y;)y=x(y)}function Ef(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Yt(n,"gutterChanged",n)}function Af(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+Br(n)+"px"}function pg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=mf(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 gg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=xe(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(S("div",[S("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",Ef(n.display),!0}return!1}function Lf(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 vg(n){var i=n.gutters,a=n.gutterSpecs;O(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(S("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",Ef(n)}function hl(n){vg(n.display),kn(n),pg(n)}function c_(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=H("div",null,"CodeMirror-code"),u.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=S("div",null,"CodeMirror-cursors"),u.measure=S("div",null,"CodeMirror-measure"),u.lineMeasure=S("div",null,"CodeMirror-measure"),u.lineSpace=H("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=H("div",[u.lineSpace],"CodeMirror-lines");u.mover=S("div",[g],null,"position: relative"),u.sizer=S("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=S("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),u.gutters=S("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=S("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=S("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),!v&&!(s&&T)&&(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=Lf(l.gutters,l.lineNumbers),vg(u),a.init(u)}var tc=0,si=null;h?si=-.53:s?si=15:b?si=-.7:L&&(si=-1/3);function mg(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 u_(n){var i=mg(n);return i.x*=si,i.y*=si,i}function yg(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=mg(i),l=a.x,u=a.y,g=si;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,x=y.scroller,_=x.scrollWidth>x.clientWidth,k=x.scrollHeight>x.clientHeight;if(l&&_||u&&k){if(u&&I&&v){e:for(var D=i.target,j=y.view;D!=x;D=D.parentNode)for(var te=0;te<j.length;te++)if(j[te].node==D){n.display.currentWheelTarget=D;break e}}if(l&&!s&&!A&&g!=null){u&&k&&cl(n,Math.max(0,x.scrollTop+u*g)),bo(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&k)&&an(i),y.wheelStartX=null;return}if(u&&g!=null){var Z=u*g,ce=n.doc.scrollTop,ge=ce+y.wrapper.clientHeight;Z<0?ce=Math.max(0,ce+Z-50):ge=Math.min(n.doc.height,ge+Z+50),Cf(n,{top:ce,bottom:ge})}tc<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 _e=x.scrollLeft-y.wheelStartX,ke=x.scrollTop-y.wheelStartY,Me=ke&&y.wheelDY&&ke/y.wheelDY||_e&&y.wheelDX&&_e/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Me&&(si=(si*tc+Me)/(tc+1),++tc)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Jn=function(n,i){this.ranges=n,this.primIndex=i};Jn.prototype.primary=function(){return this.ranges[this.primIndex]},Jn.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},Jn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Xt(this.ranges[i].anchor),Xt(this.ranges[i].head));return new Jn(n,this.primIndex)},Jn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Jn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Le(i,l.from())>=0&&Le(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return Xo(this.anchor,this.head)},gt.prototype.to=function(){return Sn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _r(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(te,Z){return Le(te.from(),Z.from())}),a=pe(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],_=Le(x.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var k=Xo(x.from(),y.from()),D=Sn(x.to(),y.to()),j=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new gt(j?D:k,j?k:D))}}return new Jn(i,a)}function Pi(n,i){return new Jn([new gt(n,i||n)],0)}function Ri(n){return n.text?le(n.from.line+n.text.length-1,me(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function bg(n,i){if(Le(n,i.from)<0)return n;if(Le(n,i.to)<=0)return Ri(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+=Ri(i).ch-i.to.ch),le(a,l)}function Mf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(bg(u.anchor,i),bg(u.head,i)))}return _r(n.cm,a,n.sel.primIndex)}function wg(n,i,a){return n.line==i.line?le(a.line,n.ch-i.ch+a.ch):le(a.line+(n.line-i.line),n.ch)}function f_(n,i,a){for(var l=[],u=le(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],_=wg(x.from,u,g),k=wg(Ri(x),u,g);if(u=x.to,g=k,a=="around"){var D=n.sel.ranges[y],j=Le(D.head,D.anchor)<0;l[y]=new gt(j?k:_,j?_:k)}else l[y]=new gt(_,_)}return new Jn(l,n.sel.primIndex)}function $f(n){n.doc.mode=Vo(n.options,n.doc.modeOption),pl(n)}function pl(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,dl(n,100),n.state.modeGen++,n.curOp&&kn(n)}function xg(n,i){return i.from.ch==0&&i.to.ch==0&&me(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Nf(n,i,a,l){function u(Me){return a?a[Me]:null}function g(Me,Te,Ne){b1(Me,Te,Ne,l),Yt(Me,"change",Me,i)}function y(Me,Te){for(var Ne=[],He=Me;He<Te;++He)Ne.push(new Yo(k[He],u(He),l));return Ne}var x=i.from,_=i.to,k=i.text,D=Re(n,x.line),j=Re(n,_.line),te=me(k),Z=u(k.length-1),ce=_.line-x.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(xg(n,i)){var ge=y(0,k.length-1);g(j,j.text,Z),ce&&n.remove(x.line,ce),ge.length&&n.insert(x.line,ge)}else if(D==j)if(k.length==1)g(D,D.text.slice(0,x.ch)+te+D.text.slice(_.ch),Z);else{var _e=y(1,k.length-1);_e.push(new Yo(te+D.text.slice(_.ch),Z,l)),g(D,D.text.slice(0,x.ch)+k[0],u(0)),n.insert(x.line+1,_e)}else if(k.length==1)g(D,D.text.slice(0,x.ch)+k[0]+j.text.slice(_.ch),u(0)),n.remove(x.line+1,ce);else{g(D,D.text.slice(0,x.ch)+k[0],u(0)),g(j,te+j.text.slice(_.ch),Z);var ke=y(1,k.length-1);ce>1&&n.remove(x.line+1,ce-1),n.insert(x.line+1,ke)}Yt(n,"change",n,i)}function zi(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 k=y&&_.sharedHist;a&&!k||(i(_.doc,k),l(_.doc,u,k))}}}l(n,null,!0)}function _g(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,yf(n),$f(n),Sg(n),n.options.direction=i.direction,n.options.lineWrapping||lf(n),n.options.mode=i.modeOption,kn(n)}function Sg(n){(n.doc.direction=="rtl"?we:N)(n.display.lineDiv,"CodeMirror-rtl")}function d_(n){Bn(n,function(){Sg(n),kn(n)})}function nc(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 Of(n,i){var a={from:Xt(i.from),to:Ri(i),text:ni(n,i.from,i.to)};return Cg(n,a,i.from.line,i.to.line+1),zi(n,function(l){return Cg(l,a,i.from.line,i.to.line+1)},!0),a}function kg(n){for(;n.length;){var i=me(n);if(i.ranges)n.pop();else break}}function h_(n,i){if(i)return kg(n.done),me(n.done);if(n.done.length&&!me(n.done).ranges)return me(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),me(n.done)}function Tg(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=h_(u,u.lastOp==l)))x=me(y.changes),Le(i.from,i.to)==0&&Le(i.from,x.to)==0?x.to=Ri(i):y.changes.push(Of(n,i));else{var _=me(u.done);for((!_||!_.ranges)&&rc(n.sel,u.done),y={changes:[Of(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 p_(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 g_(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||p_(n,g,me(u.done),i))?u.done[u.done.length-1]=i:rc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&kg(u.undone)}function rc(n,i){var a=me(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Cg(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 v_(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(v_(a[u]));return l}function Eg(n,i){var a=m_(n,i),l=nf(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],k=0;k<g.length;++k)if(g[k].marker==_.marker)continue e;g.push(_)}else y&&(a[u]=y)}return a}function is(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Jn.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var _=0;_<y.length;++_){var k=y[_],D=void 0;if(x.push({from:k.from,to:k.to,text:k.text}),i)for(var j in k)(D=j.match(/^spans_(\d+)$/))&&pe(i,Number(D[1]))>-1&&(me(x)[j]=k[j],delete k[j])}}return l}function Pf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Le(i,u)<0;g!=Le(a,u)<0?(u=i,i=a):g!=Le(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function ic(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),cn(n,new Jn([Pf(n.sel.primary(),i,a,u)],0),l)}function Ag(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]=Pf(n.sel.ranges[g],i[g],null,u);var y=_r(n.cm,l,n.sel.primIndex);cn(n,y,a)}function Rf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,cn(n,_r(n.cm,u,n.sel.primIndex),l)}function Lg(n,i,a,l){cn(n,Pi(i,a),l)}function y_(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(Ke(n,u[g].anchor),Ke(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?_r(n.cm,l.ranges,l.ranges.length-1):i}function Mg(n,i,a){var l=n.history.done,u=me(l);u&&u.ranges?(l[l.length-1]=i,oc(n,i,a)):cn(n,i,a)}function cn(n,i,a){oc(n,i,a),g_(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function oc(n,i,a){(Hn(n,"beforeSelectionChange")||n.cm&&Hn(n.cm,"beforeSelectionChange"))&&(i=y_(n,i,a));var l=a&&a.bias||(Le(i.primary().head,n.sel.primary().head)<0?-1:1);$g(n,Og(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&ns(n.cm)}function $g(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,sr(n.cm)),Yt(n,"cursorActivity",n))}function Ng(n){$g(n,Og(n,n.sel,null,!1))}function Og(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],_=sc(n,y.anchor,x&&x.anchor,a,l),k=y.head==y.anchor?_:sc(n,y.head,x&&x.head,a,l);(u||_!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new gt(_,k))}return u?_r(n.cm,u,i.primIndex):i}function os(n,i,a,l,u){var g=Re(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],_=x.marker,k="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,D="selectRight"in _?!_.selectRight:_.inclusiveRight;if((x.from==null||(k?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(D?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 j=_.find(l<0?1:-1),te=void 0;if((l<0?D:k)&&(j=Pg(n,j,-l,j&&j.line==i.line?g:null)),j&&j.line==i.line&&(te=Le(j,a))&&(l<0?te<0:te>0))return os(n,j,i,l,u)}var Z=_.find(l<0?-1:1);return(l<0?k:D)&&(Z=Pg(n,Z,l,Z.line==i.line?g:null)),Z?os(n,Z,i,l,u):null}}return i}function sc(n,i,a,l,u){var g=l||1,y=os(n,i,a,g,u)||!u&&os(n,i,a,g,!0)||os(n,i,a,-g,u)||!u&&os(n,i,a,-g,!0);return y||(n.cantEdit=!0,le(n.first,0))}function Pg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ke(n,le(i.line-1)):null:a>0&&i.ch==(l||Re(n,i.line)).text.length?i.line<n.first+n.size-1?le(i.line+1,0):null:new le(i.line,i.ch+a)}function Rg(n){n.setSelection(le(n.firstLine(),0),le(n.lastLine()),Y)}function zg(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=Ke(n,u)),g&&(l.to=Ke(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 ss(n,i,a){if(n.cm){if(!n.cm.curOp)return Zt(n.cm,ss)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Hn(n,"beforeChange")||n.cm&&Hn(n.cm,"beforeChange"))&&(i=zg(n,i,!0),!i))){var l=Ep&&!a&&g1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Ig(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Ig(n,i)}}function Ig(n,i){if(!(i.text.length==1&&i.text[0]==""&&Le(i.from,i.to)==0)){var a=Mf(n,i);Tg(n,i,a,n.cm?n.cm.curOp.id:NaN),gl(n,i,a,nf(n,i));var l=[];zi(n,function(u,g){!g&&pe(l,u.history)==-1&&(Bg(u.history,i),l.push(u.history)),gl(u,i,null,nf(u,i))})}}function lc(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,k=0;k<x.length&&(g=x[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=x.pop(),g.ranges){if(rc(g,_),a&&!g.equals(n.sel)){cn(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var D=[];rc(y,_),_.push({changes:D,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var j=Hn(n,"beforeChange")||n.cm&&Hn(n.cm,"beforeChange"),te=function(ge){var _e=g.changes[ge];if(_e.origin=i,j&&!zg(n,_e,!1))return x.length=0,{};D.push(Of(n,_e));var ke=ge?Mf(n,_e):me(x);gl(n,_e,ke,Eg(n,_e)),!ge&&n.cm&&n.cm.scrollIntoView({from:_e.from,to:Ri(_e)});var Me=[];zi(n,function(Te,Ne){!Ne&&pe(Me,Te.history)==-1&&(Bg(Te.history,_e),Me.push(Te.history)),gl(Te,_e,null,Eg(Te,_e))})},Z=g.changes.length-1;Z>=0;--Z){var ce=te(Z);if(ce)return ce.v}}}}function Dg(n,i){if(i!=0&&(n.first+=i,n.sel=new Jn(be(n.sel.ranges,function(u){return new gt(le(u.anchor.line+i,u.anchor.ch),le(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){kn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ni(n.cm,l,"gutter")}}function gl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Zt(n.cm,gl)(n,i,a,l);if(i.to.line<n.first){Dg(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);Dg(n,u),i={from:le(n.first,0),to:le(i.to.line+u,i.to.ch),text:[me(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:le(g,Re(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ni(n,i.from,i.to),a||(a=Mf(n,i)),n.cm?b_(n.cm,i,l):Nf(n,i,l),oc(n,a,Y),n.cantEdit&&sc(n,le(n.firstLine(),0))&&(n.cantEdit=!1)}}function b_(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,_=g.line;n.options.lineWrapping||(_=C(wr(Re(l,g.line))),l.iter(_,y.line+1,function(Z){if(Z==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&sr(n),Nf(l,i,a,rg(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(Z){var ce=ja(Z);ce>u.maxLineLength&&(u.maxLine=Z,u.maxLineLength=ce,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),a1(l,g.line),dl(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?kn(n):g.line==y.line&&i.text.length==1&&!xg(n.doc,i)?Ni(n,g.line,"text"):kn(n,g.line,y.line+1,k);var D=Hn(n,"changes"),j=Hn(n,"change");if(j||D){var te={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};j&&Yt(n,"change",n,te),D&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(te)}n.display.selForContextMenu=null}function ls(n,i,a,l,u){var g;l||(l=a),Le(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),ss(n,{from:a,to:l,text:i,origin:u})}function Fg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Hg(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++)Fg(g.ranges[x].anchor,i,a,l),Fg(g.ranges[x].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var k=g.changes[_];if(a<k.from.line)k.from=le(k.from.line+l,k.from.ch),k.to=le(k.to.line+l,k.to.ch);else if(i<=k.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Bg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Hg(n.done,a,l,u),Hg(n.undone,a,l,u)}function vl(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Re(n,yp(n,i)):u=C(i),u==null?null:(l(g,u)&&n.cm&&Ni(n.cm,u,a),g)}function ml(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}ml.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,w1(u),Yt(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 yl(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}yl.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 ml))){var x=[];this.collapse(x),this.children=[new ml(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 ml(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 yl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=pe(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new yl(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 bl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};bl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(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=ol(this);Zn(a,Math.max(0,a.height-g)),n&&(Bn(n,function(){Wg(n,a,-g),Ni(n,l,"widget")}),Yt(n,"lineWidgetCleared",n,this,l))}},bl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=ol(this)-i;u&&($i(this.doc,l)||Zn(l,l.height+u),a&&Bn(a,function(){a.curOp.forceUpdate=!0,Wg(a,l,u),Yt(a,"lineWidgetChanged",a,n,C(l))}))},gr(bl);function Wg(n,i,a){ii(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&kf(n,a)}function w_(n,i,a,l){var u=new bl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),vl(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&&!$i(n,y)){var _=ii(y)<n.scrollTop;Zn(y,y.height+ol(u)),_&&kf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Yt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:C(i)),u}var qg=0,Ii=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++qg};Ii.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&xo(n),Hn(this,"clear")){var a=this.find();a&&Yt(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=nl(y.markedSpans,this);n&&!this.collapsed?Ni(n,C(y),"text"):n&&(x.to!=null&&(u=C(y)),x.from!=null&&(l=C(y))),y.markedSpans=f1(y.markedSpans,x),x.from==null&&this.collapsed&&!$i(this.doc,y)&&n&&Zn(y,Qo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var k=wr(this.lines[_]),D=ja(k);D>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=D,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&kn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Ng(n.doc)),n&&Yt(n,"markerCleared",n,this,l,u),i&&_o(n),this.parent&&this.parent.clear()}},Ii.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=nl(g.markedSpans,this);if(y.from!=null&&(a=le(i?g:C(g),y.from),n==-1))return a;if(y.to!=null&&(l=le(i?g:C(g),y.to),n==1))return l}return a&&{from:a,to:l}},Ii.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Bn(l,function(){var u=i.line,g=C(i.line),y=ff(l,g);if(y&&(Xp(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!$i(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var _=ol(a)-x;_&&Zn(u,u.height+_)}Yt(l,"markerChanged",l,n)})},Ii.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||pe(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ii.prototype.detachLine=function(n){if(this.lines.splice(pe(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},gr(Ii);function as(n,i,a,l,u){if(l&&l.shared)return x_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Zt(n.cm,as)(n,i,a,l,u);var g=new Ii(n,u),y=Le(i,a);if(l&&Q(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=H("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Op(n,i.line,i,a,g)||i.line!=a.line&&Op(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");u1()}g.addToHistory&&Tg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,_=n.cm,k;if(n.iter(x,a.line+1,function(j){_&&g.collapsed&&!_.options.lineWrapping&&wr(j)==_.display.maxLine&&(k=!0),g.collapsed&&x!=i.line&&Zn(j,0),d1(j,new Ha(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(j){$i(n,j)&&Zn(j,0)}),g.clearOnEnter&&Fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(c1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++qg,g.atomic=!0),_){if(k&&(_.curOp.updateMaxLine=!0),g.collapsed)kn(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var D=i.line;D<=a.line;D++)Ni(_,D,"text");g.atomic&&Ng(_.doc),Yt(_,"markerAdded",_,g)}return g}var wl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};wl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Yt(this,"clear")}},wl.prototype.find=function(n,i){return this.primary.find(n,i)},gr(wl);function x_(n,i,a,l,u){l=Q(l),l.shared=!1;var g=[as(n,i,a,l,u)],y=g[0],x=l.widgetNode;return zi(n,function(_){x&&(l.widgetNode=x.cloneNode(!0)),g.push(as(_,Ke(_,i),Ke(_,a),l,u));for(var k=0;k<_.linked.length;++k)if(_.linked[k].isParent)return;y=me(g)}),new wl(g,y)}function jg(n){return n.findMarks(le(n.first,0),n.clipPos(le(n.lastLine())),function(i){return i.parent})}function __(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(Le(g,y)){var x=as(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function S_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];zi(u.primary.doc,function(_){return g.push(_)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];pe(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var k_=0,Tn=function(n,i,a,l,u){if(!(this instanceof Tn))return new Tn(n,i,a,l,u);a==null&&(a=0),yl.call(this,[new ml([new Yo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=le(a,0);this.sel=Pi(g),this.history=new nc(null),this.id=++k_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Nf(this,{from:g,to:g,text:n}),cn(this,Pi(g),Y)};Tn.prototype=De(yl.prototype,{constructor:Tn,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=el(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Jt(function(n){var i=le(this.first,0),a=this.first+this.size-1;ss(this,{from:i,to:le(a,Re(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&al(this.cm,0,0),cn(this,Pi(i),Y)}),replaceRange:function(n,i,a,l){i=Ke(this,i),a=a?Ke(this,a):i,ls(this,n,i,a,l)},getRange:function(n,i,a){var l=ni(this,Ke(this,n),Ke(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(de(this,n))return Re(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Re(this,n)),wr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ke(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:Jt(function(n,i,a){Lg(this,Ke(this,typeof n=="number"?le(n,i||0):n),null,a)}),setSelection:Jt(function(n,i,a){Lg(this,Ke(this,n),Ke(this,i||n),a)}),extendSelection:Jt(function(n,i,a){ic(this,Ke(this,n),i&&Ke(this,i),a)}),extendSelections:Jt(function(n,i){Ag(this,bp(this,n),i)}),extendSelectionsBy:Jt(function(n,i){var a=be(this.sel.ranges,n);Ag(this,bp(this,a),i)}),setSelections:Jt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(Ke(this,n[u].anchor),Ke(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),cn(this,_r(this.cm,l,i),a)}}),addSelection:Jt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(Ke(this,n),Ke(this,i||n))),cn(this,_r(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=ni(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=ni(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:Jt(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"&&f_(this,l,i),_=l.length-1;_>=0;_--)ss(this,l[_]);x?Mg(this,x):this.cm&&ns(this.cm)}),undo:Jt(function(){lc(this,"undo")}),redo:Jt(function(){lc(this,"redo")}),undoSelection:Jt(function(){lc(this,"undo",!0)}),redoSelection:Jt(function(){lc(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 nc(this.history),zi(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:is(this.history.done),undone:is(this.history.undone)}},setHistory:function(n){var i=this.history=new nc(this.history);i.done=is(n.done.slice(0),null,!0),i.undone=is(n.undone.slice(0),null,!0)},setGutterMarker:Jt(function(n,i,a){return vl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&ut(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Jt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&vl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,ut(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!de(this,n)||(i=n,n=Re(this,n),!n))return null}else if(i=C(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:Jt(function(n,i,a){return vl(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(K(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Jt(function(n,i,a){return vl(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(K(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:Jt(function(n,i,a){return w_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return as(this,Ke(this,n),Ke(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=Ke(this,n),as(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ke(this,n);var i=[],a=Re(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=Ke(this,n),i=Ke(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}),Ke(this,le(a,i))},indexFromPos:function(n){n=Ke(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 Tn(el(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 Tn(el(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}],__(l,jg(this)),l},unlinkDoc:function(n){if(n instanceof Et&&(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),S_(jg(this));break}}if(n.history==this.history){var l=[n.id];zi(n,function(u){return l.push(u.id)},!0),n.history=new nc(null),n.history.done=is(this.history.done,l),n.history.undone=is(this.history.undone,l)}},iterLinkedDocs:function(n){zi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):lr(n)},lineSeparator:function(){return this.lineSep||`
31
- `},setDirection:Jt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&d_(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var Ug=0;function T_(n){var i=this;if(Vg(i),!(Rt(i,n)||oi(i.display,n))){an(n),h&&(Ug=+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&&Zt(i,function(){a=Ke(i.doc,a);var Z={from:a,to:a,text:i.doc.splitLines(g.filter(function(ce){return ce!=null}).join(i.doc.lineSeparator())),origin:"paste"};ss(i.doc,Z),Mg(i.doc,Pi(Ke(i.doc,a),Ke(i.doc,Ri(Z))))})()},_=function(Z,ce){if(i.options.allowDropFileTypes&&pe(i.options.allowDropFileTypes,Z.type)==-1){x();return}var ge=new FileReader;ge.onerror=function(){return x()},ge.onload=function(){var _e=ge.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(_e)){x();return}g[ce]=_e,x()},ge.readAsText(Z)},k=0;k<l.length;k++)_(l[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var D=n.dataTransfer.getData("Text");if(D){var j;if(i.state.draggingText&&!i.state.draggingText.copy&&(j=i.listSelections()),oc(i.doc,Pi(a,a)),j)for(var te=0;te<j.length;++te)ls(i.doc,"",j[te].anchor,j[te].head,"drag");i.replaceSelection(D,"around","paste"),i.display.input.focus()}}catch{}}}}function C_(n,i){if(h&&(!n.state.draggingText||+new Date-Ug<100)){Ei(i);return}if(!(Rt(n,i)||oi(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!L)){var a=S("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",A&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),A&&a.parentNode.removeChild(a)}}function E_(n,i){var a=mo(n,i);if(a){var l=document.createDocumentFragment();bf(n,a,l),n.display.dragCursor||(n.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),P(n.display.dragCursor,l)}}function Vg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Gg(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 Kg=!1;function A_(){Kg||(L_(),Kg=!0)}function L_(){var n;Fe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Gg(M_)},100))}),Fe(window,"blur",function(){return Gg(ts)})}function M_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Di={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"},xl=0;xl<10;xl++)Di[xl+48]=Di[xl+96]=String(xl);for(var ac=65;ac<=90;ac++)Di[ac]=String.fromCharCode(ac);for(var _l=1;_l<=12;_l++)Di[_l+111]=Di[_l+63235]="F"+_l;var li={};li.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"},li.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"},li.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"},li.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"]},li.default=I?li.macDefault:li.pcDefault;function $_(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(" "),$_),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 k in i)n[k]=i[k];return n}function cs(n,i,a,l){i=cc(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 cs(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=cs(n,i.fallthrough[g],a,l);if(y)return y}}}function Xg(n){var i=typeof n=="string"?n:Di[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Yg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(J?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(J?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Zg(n,i){if(A&&n.keyCode==34&&n.char)return!1;var a=Di[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Yg(a,n,i))}function cc(n){return typeof n=="string"?li[n]:n}function us(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Le(g.from,me(l).to)<=0;){var y=l.pop();if(Le(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Bn(n,function(){for(var x=l.length-1;x>=0;x--)ls(n.doc,"",l[x].from,l[x].to,"+delete");ns(n)})}function zf(n,i,a){var l=Kt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function If(n,i,a){var l=zf(n,i.ch,a);return l==null?null:new le(i.line,l,a<0?"after":"before")}function Df(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=tt(a,i.doc.direction);if(g){var y=u<0?me(g):g[0],x=u<0==(y.level==1),_=x?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var D=Jo(i,a);k=u<0?a.text.length-1:0;var j=Wr(i,D,k).top;k=Bt(function(te){return Wr(i,D,te).top==j},u<0==(y.level==1)?y.from:y.to-1,k),_=="before"&&(k=zf(a,k,1))}else k=u<0?y.to:y.from;return new le(l,k,_)}}return new le(l,u<0?a.text.length:0,u<0?"before":"after")}function O_(n,i,a,l){var u=tt(i,n.doc.direction);if(!u)return If(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=Ft(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 If(i,a,l);var x=function(ke,Me){return zf(i,ke instanceof le?ke.ch:ke,Me)},_,k=function(ke){return n.options.lineWrapping?(_=_||Jo(n,i),ng(n,i,_,ke)):{begin:0,end:i.text.length}},D=k(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var j=y.level==1==l<0,te=x(a,j?1:-1);if(te!=null&&(j?te<=y.to&&te<=D.end:te>=y.from&&te>=D.begin)){var Z=j?"before":"after";return new le(a.line,te,Z)}}var ce=function(ke,Me,Te){for(var Ne=function(_t,Qt){return Qt?new le(a.line,x(_t,1),"before"):new le(a.line,_t,"after")};ke>=0&&ke<u.length;ke+=Me){var He=u[ke],Ie=Me>0==(He.level!=1),Qe=Ie?Te.begin:x(Te.end,-1);if(He.from<=Qe&&Qe<He.to||(Qe=Ie?He.from:x(He.to,-1),Te.begin<=Qe&&Qe<Te.end))return Ne(Qe,Ie)}},ge=ce(g+l,l,D);if(ge)return ge;var _e=l>0?D.end:x(D.begin,-1);return _e!=null&&!(l>0&&_e==i.text.length)&&(ge=ce(l>0?0:u.length-1,l,k(_e)),ge)?ge:null}var Sl={selectAll:Rg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Y)},killLine:function(n){return us(n,function(i){if(i.empty()){var a=Re(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:le(i.head.line+1,0)}:{from:i.head,to:le(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return us(n,function(i){return{from:le(i.from().line,0),to:Ke(n.doc,le(i.to().line+1,0))}})},delLineLeft:function(n){return us(n,function(i){return{from:le(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return us(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 us(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(le(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(le(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Jg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Qg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return P_(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/)?Qg(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=X(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 Bn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Re(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new le(u.line,u.ch-1)),u.ch>0)u=new le(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),le(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Re(n.doc,u.line-1).text;y&&(u=new le(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),le(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Bn(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);ns(n)})},openLine:function(n){return n.replaceSelection(`
32
- `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Jg(n,i){var a=Re(n.doc,i),l=wr(a);return l!=a&&(i=C(l)),Df(!0,n,l,i,1)}function P_(n,i){var a=Re(n.doc,i),l=m1(a);return l!=a&&(i=C(l)),Df(!0,n,a,i,-1)}function Qg(n,i){var a=Jg(n,i.line),l=Re(n.doc,a.line),u=tt(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return le(a.line,y?0:g,a.sticky)}return a}function uc(n,i,a){if(typeof i=="string"&&(i=Sl[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)!=U}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function R_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=cs(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&cs(i,n.options.extraKeys,a,n)||cs(i,n.options.keyMap,a,n)}var z_=new ae;function kl(n,i,a,l){var u=n.state.keySeq;if(u){if(Xg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:z_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),ev(n,u+" "+i,a,l))return!0}return ev(n,i,a,l)}function ev(n,i,a,l){var u=R_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Yt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(an(a),wf(n)),!!u}function tv(n,i){var a=Zg(i,!0);return a?i.shiftKey&&!n.state.keySeq?kl(n,"Shift-"+a,i,function(l){return uc(n,l,!0)})||kl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return uc(n,l)}):kl(n,a,i,function(l){return uc(n,l)}):!1}function I_(n,i,a){return kl(n,"'"+a+"'",i,function(l){return uc(n,l,!0)})}var Ff=null;function nv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ve(Xe(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=tv(i,n);A&&(Ff=l?a:null,!l&&a==88&&!Da&&(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;we(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(N(i,"CodeMirror-crosshair"),ln(document,"keyup",a),ln(document,"mouseover",a))}Fe(document,"keyup",a),Fe(document,"mouseover",a)}function rv(n){n.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,n)}function iv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(oi(i.display,n)||Rt(i,n)||n.ctrlKey&&!n.altKey||I&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(A&&a==Ff){Ff=null,an(n);return}if(!(A&&(!n.which||n.which<10)&&tv(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(I_(i,n,u)||i.display.input.onKeyPress(n))}}}var F_=400,Hf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Hf.prototype.compare=function(n,i,a){return this.time+F_>n&&Le(i,this.pos)==0&&a==this.button};var Tl,Cl;function H_(n,i){var a=+new Date;return Cl&&Cl.compare(a,n,i)?(Tl=Cl=null,"triple"):Tl&&Tl.compare(a,n,i)?(Cl=new Hf(a,n,i),Tl=null,"double"):(Tl=new Hf(a,n,i),Cl=null,"single")}function ov(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,oi(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Bf(i,n)){var l=mo(i,n),u=vr(n),g=l?H_(l,u):"single";ne(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&B_(i,u,l,g,n))&&(u==1?l?q_(i,l,g,n):Zs(n)==a.scroller&&an(n):u==2?(l&&ic(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):xf(i)))}}}function B_(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,kl(n,Yg(g,u),u,function(y){if(typeof y=="string"&&(y=Sl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=U}finally{n.state.suppressEdits=!1}return x})}function W_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=F?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 q_(n,i,a,l){h?setTimeout(W(sg,n),0):n.curOp.focus=ve(Xe(n));var u=W_(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Ju&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Le((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Le(y.to(),i)>0||i.xRel<0)?j_(n,l,i,u):U_(n,l,i,u)}function j_(n,i,a,l){var u=n.display,g=!1,y=Zt(n,function(k){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:xf(n)),ln(u.wrapper.ownerDocument,"mouseup",y),ln(u.wrapper.ownerDocument,"mousemove",x),ln(u.scroller,"dragstart",_),ln(u.scroller,"drop",y),g||(an(k),l.addNew||ic(n.doc,a,null,null,l.extend),v&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Fe(u.wrapper.ownerDocument,"mouseup",y),Fe(u.wrapper.ownerDocument,"mousemove",x),Fe(u.scroller,"dragstart",_),Fe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function sv(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(le(i.line,0),Ke(n.doc,le(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function U_(n,i,a,l){h&&xf(n);var u=n.display,g=n.doc;an(i);var y,x,_=g.sel,k=_.ranges;if(l.addNew&&!l.extend?(x=g.sel.contains(a),x>-1?y=k[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 D=sv(n,a,l.unit);l.extend?y=Pf(y,D.anchor,D.head,l.extend):y=D}l.addNew?x==-1?(x=k.length,cn(g,_r(n,k.concat([y]),x),{scroll:!1,origin:"*mouse"})):k.length>1&&k[x].empty()&&l.unit=="char"&&!l.extend?(cn(g,_r(n,k.slice(0,x).concat(k.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Rf(g,x,y,ue):(x=0,cn(g,new Jn([y],0),ue),_=g.sel);var j=a;function te(Te){if(Le(j,Te)!=0)if(j=Te,l.unit=="rectangle"){for(var Ne=[],He=n.options.tabSize,Ie=X(Re(g,a.line).text,a.ch,He),Qe=X(Re(g,Te.line).text,Te.ch,He),_t=Math.min(Ie,Qe),Qt=Math.max(Ie,Qe),Nt=Math.min(a.line,Te.line),Wn=Math.min(n.lastLine(),Math.max(a.line,Te.line));Nt<=Wn;Nt++){var Cn=Re(g,Nt).text,Wt=fe(Cn,_t,He);_t==Qt?Ne.push(new gt(le(Nt,Wt),le(Nt,Wt))):Cn.length>Wt&&Ne.push(new gt(le(Nt,Wt),le(Nt,fe(Cn,Qt,He))))}Ne.length||Ne.push(new gt(a,a)),cn(g,_r(n,_.ranges.slice(0,x).concat(Ne),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var En=y,on=sv(n,Te,l.unit),Vt=En.anchor,qt;Le(on.anchor,Vt)>0?(qt=on.head,Vt=Xo(En.from(),on.anchor)):(qt=on.anchor,Vt=Sn(En.to(),on.head));var It=_.ranges.slice(0);It[x]=V_(n,new gt(Ke(g,Vt),qt)),cn(g,_r(n,It,x),ue)}}var Z=u.wrapper.getBoundingClientRect(),ce=0;function ge(Te){var Ne=++ce,He=mo(n,Te,!0,l.unit=="rectangle");if(He)if(Le(He,j)!=0){n.curOp.focus=ve(Xe(n)),te(He);var Ie=Ja(u,g);(He.line>=Ie.to||He.line<Ie.from)&&setTimeout(Zt(n,function(){ce==Ne&&ge(Te)}),150)}else{var Qe=Te.clientY<Z.top?-20:Te.clientY>Z.bottom?20:0;Qe&&setTimeout(Zt(n,function(){ce==Ne&&(u.scroller.scrollTop+=Qe,ge(Te))}),50)}}function _e(Te){n.state.selectingText=!1,ce=1/0,Te&&(an(Te),u.input.focus()),ln(u.wrapper.ownerDocument,"mousemove",ke),ln(u.wrapper.ownerDocument,"mouseup",Me),g.history.lastSelOrigin=null}var ke=Zt(n,function(Te){Te.buttons===0||!vr(Te)?_e(Te):ge(Te)}),Me=Zt(n,_e);n.state.selectingText=Me,Fe(u.wrapper.ownerDocument,"mousemove",ke),Fe(u.wrapper.ownerDocument,"mouseup",Me)}function V_(n,i){var a=i.anchor,l=i.head,u=Re(n.doc,a.line);if(Le(a,l)==0&&a.sticky==l.sticky)return i;var g=tt(u);if(!g)return i;var y=Ft(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 k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var D=Ft(g,l.ch,l.sticky),j=D-y||(l.ch-a.ch)*(x.level==1?-1:1);D==_-1||D==_?k=j<0:k=j>0}var te=g[_+(k?-1:0)],Z=k==(te.level==1),ce=Z?te.from:te.to,ge=Z?"after":"before";return a.ch==ce&&a.sticky==ge?i:new gt(new le(a.line,ce,ge),l)}function lv(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&an(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!Hn(n,a))return _n(i);g-=x.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var k=y.gutters.childNodes[_];if(k&&k.getBoundingClientRect().right>=u){var D=q(n.doc,g),j=n.display.gutterSpecs[_];return Pt(n,a,n,D,j.className,i),_n(i)}}}function Bf(n,i){return lv(n,i,"gutterClick",!0)}function av(n,i){oi(n.display,i)||G_(n,i)||Rt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function G_(n,i){return Hn(n,"gutterContextMenu")?lv(n,i,"gutterContextMenu",!1):!1}function cv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),sl(n)}var fs={toString:function(){return"CodeMirror.Init"}},uv={},fc={};function K_(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,_,k){k!=fs&&g(x,_,k)}:g)}n.defineOption=a,n.Init=fs,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,$f(l)},!0),a("indentUnit",2,$f,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){pl(l),sl(l),kn(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 k=0;;){var D=_.text.indexOf(u,k);if(D==-1)break;k=D+u.length,g.push(le(y,D))}y++});for(var x=g.length-1;x>=0;x--)ls(l.doc,u,g[x],le(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!=fs&&l.refresh()}),a("specialCharPlaceholder",S1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",T?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!re),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){cv(l),hl(l)},!0),a("keyMap","default",function(l,u,g){var y=cc(u),x=g!=fs&&cc(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Y_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Lf(u,l.options.lineNumbers),hl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?mf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return rs(l)},!0),a("scrollbarStyle","native",function(l){dg(l),rs(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=Lf(l.options.gutters,u),hl(l)},!0),a("firstLineNumber",1,hl,!0),a("lineNumberFormatter",function(l){return l},hl,!0),a("showCursorWhenSelecting",!1,ll,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(ts(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,X_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,ll,!0),a("singleCursorHeightPerLine",!0,ll,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,pl,!0),a("addModeClass",!1,pl,!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,pl,!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 X_(n,i,a){var l=a&&a!=fs;if(!i!=!l){var u=n.display.dragFunctions,g=i?Fe:ln;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function Y_(n){n.options.lineWrapping?(we(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(N(n.display.wrapper,"CodeMirror-wrap"),lf(n)),yf(n),kn(n),sl(n),setTimeout(function(){return rs(n)},100)}function Et(n,i){var a=this;if(!(this instanceof Et))return new Et(n,i);this.options=i=i?Q(i):{},Q(uv,i,!1);var l=i.value;typeof l=="string"?l=new Tn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Et.inputStyles[i.inputStyle](this),g=this.display=new c_(n,l,u,i);g.wrapper.CodeMirror=this,cv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),dg(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&&!T&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),Z_(this),A_(),xo(this),this.curOp.forceUpdate=!0,_g(this,l),i.autofocus&&!T||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&_f(a)},20):ts(this);for(var y in fc)fc.hasOwnProperty(y)&&fc[y](this,i[y],fs);gg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<Wf.length;++x)Wf[x](this);_o(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Et.defaults=uv,Et.optionHandlers=fc;function Z_(n){var i=n.display;Fe(i.scroller,"mousedown",Zt(n,ov)),h&&p<11?Fe(i.scroller,"dblclick",Zt(n,function(_){if(!Rt(n,_)){var k=mo(n,_);if(!(!k||Bf(n,_)||oi(n.display,_))){an(_);var D=n.findWordAt(k);ic(n.doc,D.anchor,D.head)}}})):Fe(i.scroller,"dblclick",function(_){return Rt(n,_)||an(_)}),Fe(i.scroller,"contextmenu",function(_){return av(n,_)}),Fe(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||av(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 k=_.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(_,k){if(k.left==null)return!0;var D=k.left-_.left,j=k.top-_.top;return D*D+j*j>20*20}Fe(i.scroller,"touchstart",function(_){if(!Rt(n,_)&&!g(_)&&!Bf(n,_)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Fe(i.scroller,"touchend",function(_){var k=i.activeTouch;if(k&&!oi(i,_)&&k.left!=null&&!k.moved&&new Date-k.start<300){var D=n.coordsChar(i.activeTouch,"page"),j;!k.prev||y(k,k.prev)?j=new gt(D,D):!k.prev.prev||y(k,k.prev.prev)?j=n.findWordAt(D):j=new gt(le(D.line,0),Ke(n.doc,le(D.line+1,0))),n.setSelection(j.anchor,j.head),n.focus(),an(_)}u()}),Fe(i.scroller,"touchcancel",u),Fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(cl(n,i.scroller.scrollTop),bo(n,i.scroller.scrollLeft,!0),Pt(n,"scroll",n))}),Fe(i.scroller,"mousewheel",function(_){return yg(n,_)}),Fe(i.scroller,"DOMMouseScroll",function(_){return yg(n,_)}),Fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Rt(n,_)||Ei(_)},over:function(_){Rt(n,_)||(E_(n,_),Ei(_))},start:function(_){return C_(n,_)},drop:Zt(n,T_),leave:function(_){Rt(n,_)||Vg(n)}};var x=i.input.getField();Fe(x,"keyup",function(_){return rv.call(n,_)}),Fe(x,"keydown",Zt(n,nv)),Fe(x,"keypress",Zt(n,iv)),Fe(x,"focus",function(_){return _f(n,_)}),Fe(x,"blur",function(_){return ts(n,_)})}var Wf=[];Et.defineInitHook=function(n){return Wf.push(n)};function El(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=tl(n,i).state:a="prev");var y=n.options.tabSize,x=Re(u,i),_=X(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var k=x.text.match(/^\s*/)[0],D;if(!l&&!/\S/.test(x.text))D=0,a="not";else if(a=="smart"&&(D=u.mode.indent(g,x.text.slice(k.length),x.text),D==U||D>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?D=X(Re(u,i-1).text,null,y):D=0:a=="add"?D=_+n.options.indentUnit:a=="subtract"?D=_-n.options.indentUnit:typeof a=="number"&&(D=_+a),D=Math.max(0,D);var j="",te=0;if(n.options.indentWithTabs)for(var Z=Math.floor(D/y);Z;--Z)te+=y,j+=" ";if(te<D&&(j+=Ee(D-te)),j!=k)return ls(u,j,le(i,0),le(i,k.length),"+input"),x.stateAfter=null,!0;for(var ce=0;ce<u.sel.ranges.length;ce++){var ge=u.sel.ranges[ce];if(ge.head.line==i&&ge.head.ch<k.length){var _e=le(i,k.length);Rf(u,ce,new gt(_e,_e));break}}}var Sr=null;function dc(n){Sr=n}function qf(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,_=lr(i),k=null;if(x&&l.ranges.length>1)if(Sr&&Sr.text.join(`
33
- `)==i){if(l.ranges.length%Sr.text.length==0){k=[];for(var D=0;D<Sr.text.length;D++)k.push(g.splitLines(Sr.text[D]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=be(_,function(ke){return[ke]}));for(var j=n.curOp.updateInput,te=l.ranges.length-1;te>=0;te--){var Z=l.ranges[te],ce=Z.from(),ge=Z.to();Z.empty()&&(a&&a>0?ce=le(ce.line,ce.ch-a):n.state.overwrite&&!x?ge=le(ge.line,Math.min(Re(g,ge.line).text.length,ge.ch+me(_).length)):x&&Sr&&Sr.lineWise&&Sr.text.join(`
34
- `)==_.join(`
35
- `)&&(ce=ge=le(ce.line,0)));var _e={from:ce,to:ge,text:k?k[te%k.length]:_,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};ss(n.doc,_e),Yt(n,"inputRead",n,_e)}i&&!x&&dv(n,i),ns(n),n.curOp.updateInput<2&&(n.curOp.updateInput=j),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function fv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Bn(i,function(){return qf(i,a,0,null,"paste")}),!0}function dv(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=El(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Re(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=El(n,u.head.line,"smart"));y&&Yt(n,"electricInput",n,u.head.line)}}}function hv(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:le(u,0),head:le(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function jf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function pv(){var n=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=S("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),$&&(n.style.border="1px solid black"),i}function J_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){ne(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)&&Zt(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"](cc(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:pn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");We(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,kn(this)}),removeOverlay:pn(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++,kn(this);return}}}),indentLine:pn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),de(this.doc,l)&&El(this,l,u,g)}),indentSelection:pn(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&&(El(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&ns(this));else{var _=x.from(),k=x.to(),D=Math.max(g,_.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var j=D;j<g;++j)El(this,j,l);var te=this.doc.sel.ranges;_.ch==0&&u.length==te.length&&te[y].from().ch>0&&Rf(this.doc,y,new gt(_,te[y].to()),Y)}}}),getTokenAt:function(l,u){return kp(this,l,u)},getLineTokens:function(l,u){return kp(this,le(l),u,!0)},getTokenTypeAt:function(l){l=Ke(this.doc,l);var u=xp(this,Re(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,_;if(x==0)_=u[2];else for(;;){var k=g+y>>1;if((k?u[k*2-1]:0)>=x)y=k;else if(u[k*2+1]<x)g=k+1;else{_=u[k*2+2];break}}var D=_?_.indexOf("overlay "):-1;return D<0?_:D==0?null:_.slice(0,D-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],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 k=y[x[u][_]];k&&g.push(k)}else x.helperType&&y[x.helperType]?g.push(y[x.helperType]):y[x.name]&&g.push(y[x.name]);for(var D=0;D<y._global.length;D++){var j=y._global[D];j.pred(x,this)&&pe(g,j.val)==-1&&g.push(j.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=yp(g,l??g.first+g.size-1),tl(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=Ke(this.doc,l):g=l?y.from():y.to(),xr(this,g,u||"page")},charCoords:function(l,u){return Ka(this,Ke(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Qp(this,l,u||"page"),pf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Qp(this,{top:l,left:0},u||"page").top,q(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=Re(this.doc,l)}else x=l;return Ga(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ii(x):0)},defaultTextHeight:function(){return Qo(this.display)},defaultCharWidth:function(){return es(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var _=this.display;l=xr(this,Ke(this.doc,l));var k=l.bottom,D=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var j=Math.max(_.wrapper.clientHeight,this.doc.height),te=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>j)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=j&&(k=l.bottom),D+u.offsetWidth>te&&(D=te-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",x=="right"?(D=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?D=0:x=="middle"&&(D=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=D+"px"),g&&X1(this,{left:D,top:k,right:D+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:pn(nv),triggerOnKeyPress:pn(iv),triggerOnKeyUp:rv,triggerOnMouseDown:pn(ov),execCommand:function(l){if(Sl.hasOwnProperty(l))return Sl[l].call(null,this)},triggerElectric:pn(function(l){dv(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var _=Ke(this.doc,l),k=0;k<u&&(_=Uf(this.doc,_,x,g,y),!_.hitSide);++k);return _},moveH:pn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?Uf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:pn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):us(this,function(x){var _=Uf(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 k=Ke(this.doc,l),D=0;D<u;++D){var j=xr(this,k,"div");if(_==null?_=j.left:j.left=_,k=gv(this,j,x,g),k.hitSide)break}return k},moveV:pn(function(l,u){var g=this,y=this.doc,x=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(D){if(_)return l<0?D.from():D.to();var j=xr(g,D.head,"div");D.goalColumn!=null&&(j.left=D.goalColumn),x.push(j.left);var te=gv(g,j,l,u);return u=="page"&&D==y.sel.primary()&&kf(g,Ka(g,te,"div").top-j.top),te},he),x.length)for(var k=0;k<y.sel.ranges.length;k++)y.sel.ranges[k].goalColumn=x[k]}),findWordAt:function(l){var u=this.doc,g=Re(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 k=g.charAt(y),D=st(k,_)?function(j){return st(j,_)}:/\s/.test(k)?function(j){return/\s/.test(j)}:function(j){return!/\s/.test(j)&&!st(j)};y>0&&D(g.charAt(y-1));)--y;for(;x<g.length&&D(g.charAt(x));)++x}return new gt(le(l.line,y),le(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?we(this.display.cursorDiv,"CodeMirror-overwrite"):N(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ve(Xe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:pn(function(l,u){al(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Br(this)-this.display.barHeight,width:l.scrollWidth-Br(this)-this.display.barWidth,clientHeight:uf(this),clientWidth:go(this)}},scrollIntoView:pn(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:le(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?Y1(this,l):ag(this,l.from,l.to,l.margin)}),setSize:pn(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&&Yp(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(_){if(_.widgets){for(var k=0;k<_.widgets.length;k++)if(_.widgets[k].noHScroll){Ni(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Pt(this,"refresh",this)}),operation:function(l){return Bn(this,l)},startOperation:function(){return xo(this)},endOperation:function(){return _o(this)},refresh:pn(function(){var l=this.display.cachedTextHeight;kn(this),this.curOp.forceUpdate=!0,sl(this),al(this,this.doc.scrollLeft,this.doc.scrollTop),Ef(this.display),(l==null||Math.abs(l-Qo(this.display))>.5||this.options.lineWrapping)&&yf(this),Pt(this,"refresh",this)}),swapDoc:pn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),_g(this,l),sl(this),this.display.input.reset(),al(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Yt(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}},gr(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 Uf(n,i,a,l,u){var g=i,y=a,x=Re(n,i.line),_=u&&n.direction=="rtl"?-a:a;function k(){var Me=i.line+_;return Me<n.first||Me>=n.first+n.size?!1:(i=new le(Me,i.ch,i.sticky),x=Re(n,Me))}function D(Me){var Te;if(l=="codepoint"){var Ne=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Ne))Te=null;else{var He=a>0?Ne>=55296&&Ne<56320:Ne>=56320&&Ne<57343;Te=new le(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(He?2:1))),-a)}}else u?Te=O_(n.cm,x,i,a):Te=If(x,i,a);if(Te==null)if(!Me&&k())i=Df(u,n.cm,x,i.line,_);else return!1;else i=Te;return!0}if(l=="char"||l=="codepoint")D();else if(l=="column")D(!0);else if(l=="word"||l=="group")for(var j=null,te=l=="group",Z=n.cm&&n.cm.getHelper(i,"wordChars"),ce=!0;!(a<0&&!D(!ce));ce=!1){var ge=x.text.charAt(i.ch)||`
36
- `,_e=st(ge,Z)?"w":te&&ge==`
37
- `?"n":!te||/\s/.test(ge)?null:"p";if(te&&!ce&&!_e&&(_e="s"),j&&j!=_e){a<0&&(a=1,D(),i.sticky="after");break}if(_e&&(j=_e),a>0&&!D(!ce))break}var ke=sc(n,i,g,y,!0);return pt(g,ke)&&(ke.hitSide=!0),ke}function gv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,ne(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(x-.5*Qo(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 k;k=pf(n,g,y),!!k.outside;){if(a<0?y<=0:y>=u.height){k.hitSide=!0;break}y+=a*5}return k}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,jf(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}Fe(u,"paste",function(x){!g(x)||Rt(l,x)||fv(x,l)||p<=11&&setTimeout(Zt(l,function(){return i.updateFromDOM()}),20)}),Fe(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Fe(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Fe(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Fe(u,"touchstart",function(){return a.forceCompositionEnd()}),Fe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!g(x)||Rt(l,x))){if(l.somethingSelected())dc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=hv(l);dc({lineWise:!0,text:_.text}),x.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,Y),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var k=Sr.text.join(`
38
- `);if(x.clipboardData.setData("Text",k),x.clipboardData.getData("Text")==k){x.preventDefault();return}}var D=pv(),j=D.firstChild;jf(j),l.display.lineSpace.insertBefore(D,l.display.lineSpace.firstChild),j.value=Sr.text.join(`
39
- `);var te=ve(Ye(u));je(j),setTimeout(function(){l.display.lineSpace.removeChild(D),te.focus(),te==u&&a.showPrimarySelection()},50)}}Fe(u,"copy",y),Fe(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=og(this.cm,!1);return n.focus=ve(Ye(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=hc(i,n.anchorNode,n.anchorOffset),y=hc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Le(Xo(g,y),l)==0&&Le(Sn(g,y),u)==0)){var x=i.display.view,_=l.line>=i.display.viewFrom&&vv(i,l)||{node:x[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&vv(i,u);if(!k){var D=x[x.length-1].measure,j=D.maps?D.maps[D.maps.length-1]:D.map;k={node:j[j.length-1],offset:j[j.length-2]-j[j.length-3]}}if(!_||!k){n.removeAllRanges();return}var te=n.rangeCount&&n.getRangeAt(0),Z;try{Z=V(_.node,_.offset,k.offset,k.node)}catch{}Z&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),Z.collapsed||(n.removeAllRanges(),n.addRange(Z))):(n.removeAllRanges(),n.addRange(Z)),te&&n.anchorNode==null?n.addRange(te):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){P(this.cm.display.cursorDiv,n.cursors),P(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return oe(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ve(Ye(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Bn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(R&&b&&this.cm.display.gutterSpecs.length&&Q_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=hc(i,n.anchorNode,n.anchorOffset),l=hc(i,n.focusNode,n.focusOffset);a&&l&&Bn(i,function(){cn(i.doc,Pi(a,l),Y),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=le(l.line-1,Re(n.doc,l.line-1).length)),u.ch==Re(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=le(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,x;l.line==i.viewFrom||(g=yo(n,l.line))==0?(y=C(i.view[0].line),x=i.view[0].node):(y=C(i.view[g].line),x=i.view[g-1].node.nextSibling);var _=yo(n,u.line),k,D;if(_==i.view.length-1?(k=i.viewTo-1,D=i.lineDiv.lastChild):(k=C(i.view[_+1].line)-1,D=i.view[_+1].node.previousSibling),!x)return!1;for(var j=n.doc.splitLines(eS(n,x,D,y,k)),te=ni(n.doc,le(y,0),le(k,Re(n.doc,k).text.length));j.length>1&&te.length>1;)if(me(j)==me(te))j.pop(),te.pop(),k--;else if(j[0]==te[0])j.shift(),te.shift(),y++;else break;for(var Z=0,ce=0,ge=j[0],_e=te[0],ke=Math.min(ge.length,_e.length);Z<ke&&ge.charCodeAt(Z)==_e.charCodeAt(Z);)++Z;for(var Me=me(j),Te=me(te),Ne=Math.min(Me.length-(j.length==1?Z:0),Te.length-(te.length==1?Z:0));ce<Ne&&Me.charCodeAt(Me.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)++ce;if(j.length==1&&te.length==1&&y==l.line)for(;Z&&Z>l.ch&&Me.charCodeAt(Me.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)Z--,ce++;j[j.length-1]=Me.slice(0,Me.length-ce).replace(/^\u200b+/,""),j[0]=j[0].slice(Z).replace(/\u200b+$/,"");var He=le(y,Z),Ie=le(k,te.length?me(te).length-ce:0);if(j.length>1||j[0]||Le(He,Ie))return ls(n.doc,j,He,Ie,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Bn(this.cm,function(){return kn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Zt(this.cm,qf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function vv(n,i){var a=ff(n,i.line);if(!a||a.hidden)return null;var l=Re(n.doc,i.line),u=Up(a,l,i.line),g=tt(l,n.doc.direction),y="left";if(g){var x=Ft(g,i.ch);y=x%2?"right":"left"}var _=Kp(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function Q_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ds(n,i){return i&&(n.bad=!0),n}function eS(n,i,a,l,u){var g="",y=!1,x=n.doc.lineSeparator(),_=!1;function k(Z){return function(ce){return ce.id==Z}}function D(){y&&(g+=x,_&&(g+=x),y=_=!1)}function j(Z){Z&&(D(),g+=Z)}function te(Z){if(Z.nodeType==1){var ce=Z.getAttribute("cm-text");if(ce){j(ce);return}var ge=Z.getAttribute("cm-marker"),_e;if(ge){var ke=n.findMarks(le(l,0),le(u+1,0),k(+ge));ke.length&&(_e=ke[0].find(0))&&j(ni(n.doc,_e.from,_e.to).join(x));return}if(Z.getAttribute("contenteditable")=="false")return;var Me=/^(pre|div|p|li|table|br)$/i.test(Z.nodeName);if(!/^br$/i.test(Z.nodeName)&&Z.textContent.length==0)return;Me&&D();for(var Te=0;Te<Z.childNodes.length;Te++)te(Z.childNodes[Te]);/^(pre|p)$/i.test(Z.nodeName)&&(_=!0),Me&&(y=!0)}else Z.nodeType==3&&j(Z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;te(i),i!=a;)i=i.nextSibling,_=!1;return g}function hc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return ds(n.clipPos(le(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 tS(g,i,a)}}function tS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!oe(l,i))return ds(le(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?me(n.rest):n.line;return ds(le(C(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,k=_.maps;function D(_e,ke,Me){for(var Te=-1;Te<(k?k.length:0);Te++)for(var Ne=Te<0?_.map:k[Te],He=0;He<Ne.length;He+=3){var Ie=Ne[He+2];if(Ie==_e||Ie==ke){var Qe=C(Te<0?n.line:n.rest[Te]),_t=Ne[He]+Me;return(Me<0||Ie!=_e)&&(_t=Ne[He+(Me?1:0)]),le(Qe,_t)}}}var j=D(y,x,a);if(j)return ds(j,u);for(var te=x.nextSibling,Z=y?y.nodeValue.length-a:0;te;te=te.nextSibling){if(j=D(te,te.firstChild,0),j)return ds(le(j.line,j.ch-Z),u);Z+=te.textContent.length}for(var ce=x.previousSibling,ge=a;ce;ce=ce.previousSibling){if(j=D(ce,ce.firstChild,-1),j)return ds(le(j.line,j.ch+ge),u);ge+=ce.textContent.length}}var Ht=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new ae,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ht.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),$&&(u.style.width="0px"),Fe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Fe(u,"paste",function(y){Rt(l,y)||fv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Rt(l,y)){if(l.somethingSelected())dc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=hv(l);dc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,Y):(a.prevInput="",u.value=x.text.join(`
40
- `),je(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Fe(u,"cut",g),Fe(u,"copy",g),Fe(n.scroller,"paste",function(y){if(!(oi(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)}}),Fe(n.lineSpace,"selectstart",function(y){oi(n,y)||an(y)}),Fe(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"})}}),Fe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Ht.prototype.createField=function(n){this.wrapper=pv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;jf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ht.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Ht.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=og(n);if(n.options.moveInputWithCursor){var u=xr(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},Ht.prototype.showSelection=function(n){var i=this.cm,a=i.display;P(a.cursorDiv,n.cursors),P(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Ht.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ht.prototype.getField=function(){return this.textarea},Ht.prototype.supportsTouch=function(){return!1},Ht.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!T||ve(Ye(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ht.prototype.blur=function(){this.textarea.blur()},Ht.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ht.prototype.receivedFocus=function(){this.slowPoll()},Ht.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Ht.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)},Ht.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Li(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 Bn(i,function(){qf(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},Ht.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ht.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ht.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||A)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&Zt(a,cn)(a.doc,Pi(g),Y);var _=u.style.cssText,k=i.wrapper.style.cssText,D=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
42
- top: `+(n.clientY-D.top-5)+"px; left: "+(n.clientX-D.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 j;v&&(j=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,j),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=Z,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function te(){if(u.selectionStart!=null){var ge=a.somethingSelected(),_e="​"+(ge?u.value:"");u.value="⇚",u.value=_e,i.prevInput=ge?"":"​",u.selectionStart=1,u.selectionEnd=_e.length,l.selForContextMenu=a.doc.sel}}function Z(){if(i.contextMenuPending==Z&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&te();var ge=0,_e=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Zt(a,Rg)(a):ge++<10?l.detectingSelectAll=setTimeout(_e,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(_e,200)}}if(h&&p>=9&&te(),G){Ei(n);var ce=function(){ln(window,"mouseup",ce),setTimeout(Z,20)};Fe(window,"mouseup",ce)}else setTimeout(Z,50)},Ht.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Ht.prototype.setUneditable=function(){},Ht.prototype.needsContentAttribute=!1;function nS(n,i){if(i=i?Q(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(Ye(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Fe(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&&(ln(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Et(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return x}function rS(n){n.off=ln,n.on=Fe,n.wheelEventPixels=u_,n.Doc=Tn,n.splitLines=lr,n.countColumn=X,n.findColumn=fe,n.isWordChar=rt,n.Pass=U,n.signal=Pt,n.Line=Yo,n.changeEnd=Ri,n.scrollbarModel=fg,n.Pos=le,n.cmpPos=Le,n.modes=jo,n.mimeModes=yr,n.resolveMode=Uo,n.getMode=Vo,n.modeExtensions=Mi,n.extendMode=Go,n.copyState=Fr,n.startState=Ko,n.innerMode=Qs,n.commands=Sl,n.keyMap=li,n.keyName=Zg,n.isModifierKey=Xg,n.lookupKey=cs,n.normalizeKeyMap=N_,n.StringStream=zt,n.SharedTextMarker=wl,n.TextMarker=Ii,n.LineWidget=bl,n.e_preventDefault=an,n.e_stopPropagation=Wo,n.e_stop=Ei,n.addClass=we,n.contains=oe,n.rmClass=N,n.keyNames=Di}K_(Et),J_(Et);var iS="iter insert remove copy getEditor constructor".split(" ");for(var pc in Tn.prototype)Tn.prototype.hasOwnProperty(pc)&&pe(iS,pc)<0&&(Et.prototype[pc]=function(n){return function(){return n.apply(this.doc,arguments)}}(Tn.prototype[pc]));return gr(Tn),Et.inputStyles={textarea:Ht,contenteditable:yt},Et.defineMode=function(n){!Et.defaults.mode&&n!="null"&&(Et.defaults.mode=n),br.apply(this,arguments)},Et.defineMIME=po,Et.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Et.defineMIME("text/plain","null"),Et.defineExtension=function(n,i){Et.prototype[n]=i},Et.defineDocExtension=function(n,i){Tn.prototype[n]=i},Et.fromTextArea=nS,rS(Et),Et.version="5.65.18",Et})}(Dc)),Dc.exports}var Kce=Xs();const Xce=zw(Kce);var Ym={exports:{}},Zm;function Qw(){return Zm||(Zm=1,function(e,t){(function(r){r(Xs())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(Xt){return{type:Xt,style:"keyword"}}var q=C("keyword a"),de=C("keyword b"),xe=C("keyword c"),le=C("keyword d"),Le=C("operator"),pt={type:"atom",style:"atom"};return{if:C("if"),while:q,with:q,else:de,do:de,try:de,finally:de,return:le,break:le,continue:le,new:C("new"),delete:xe,void:xe,throw:xe,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Le,typeof:Le,instanceof:Le,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:C("this"),class:C("class"),super:C("atom"),yield:xe,export:C("export"),import:C("import"),extends:xe,await:xe}}(),w=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(C){for(var q=!1,de,xe=!1;(de=C.next())!=null;){if(!q){if(de=="/"&&!xe)return;de=="["?xe=!0:xe&&de=="]"&&(xe=!1)}q=!q&&de=="\\"}}var E,M;function $(C,q,de){return E=C,M=de,q}function R(C,q){var de=C.next();if(de=='"'||de=="'")return q.tokenize=T(de),q.tokenize(C,q);if(de=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return $("number","number");if(de=="."&&C.match(".."))return $("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(de))return $(de);if(de=="="&&C.eat(">"))return $("=>","operator");if(de=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return $("number","number");if(/\d/.test(de))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),$("number","number");if(de=="/")return C.eat("*")?(q.tokenize=I,I(C,q)):C.eat("/")?(C.skipToEnd(),$("comment","comment")):Zn(C,q,1)?(L(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),$("regexp","string-2")):(C.eat("="),$("operator","operator",C.current()));if(de=="`")return q.tokenize=F,F(C,q);if(de=="#"&&C.peek()=="!")return C.skipToEnd(),$("meta","meta");if(de=="#"&&C.eatWhile(m))return $("variable","property");if(de=="<"&&C.match("!--")||de=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),$("comment","comment");if(w.test(de))return(de!=">"||!q.lexical||q.lexical.type!=">")&&(C.eat("=")?(de=="!"||de=="=")&&C.eat("="):/[<>*+\-|&?]/.test(de)&&(C.eat(de),de==">"&&C.eat(de))),de=="?"&&C.eat(".")?$("."):$("operator","operator",C.current());if(m.test(de)){C.eatWhile(m);var xe=C.current();if(q.lastType!="."){if(b.propertyIsEnumerable(xe)){var le=b[xe];return $(le.type,le.style,xe)}if(xe=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return $("async","keyword",xe)}return $("variable","variable",xe)}}function T(C){return function(q,de){var xe=!1,le;if(d&&q.peek()=="@"&&q.match(A))return de.tokenize=R,$("jsonld-keyword","meta");for(;(le=q.next())!=null&&!(le==C&&!xe);)xe=!xe&&le=="\\";return xe||(de.tokenize=R),$("string","string")}}function I(C,q){for(var de=!1,xe;xe=C.next();){if(xe=="/"&&de){q.tokenize=R;break}de=xe=="*"}return $("comment","comment")}function F(C,q){for(var de=!1,xe;(xe=C.next())!=null;){if(!de&&(xe=="`"||xe=="$"&&C.eat("{"))){q.tokenize=R;break}de=!de&&xe=="\\"}return $("quasi","string-2",C.current())}var re="([{}])";function se(C,q){q.fatArrowAt&&(q.fatArrowAt=null);var de=C.string.indexOf("=>",C.start);if(!(de<0)){if(v){var xe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,de));xe&&(de=xe.index)}for(var le=0,Le=!1,pt=de-1;pt>=0;--pt){var Xt=C.string.charAt(pt),Sn=re.indexOf(Xt);if(Sn>=0&&Sn<3){if(!le){++pt;break}if(--le==0){Xt=="("&&(Le=!0);break}}else if(Sn>=3&&Sn<6)++le;else if(m.test(Xt))Le=!0;else if(/["'\/`]/.test(Xt))for(;;--pt){if(pt==0)return;var Xo=C.string.charAt(pt-1);if(Xo==Xt&&C.string.charAt(pt-2)!="\\"){pt--;break}}else if(Le&&!le){++pt;break}}Le&&!le&&(q.fatArrowAt=pt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(C,q,de,xe,le,Le){this.indented=C,this.column=q,this.type=de,this.prev=le,this.info=Le,xe!=null&&(this.align=xe)}function K(C,q){if(!p)return!1;for(var de=C.localVars;de;de=de.next)if(de.name==q)return!0;for(var xe=C.context;xe;xe=xe.prev)for(var de=xe.vars;de;de=de.next)if(de.name==q)return!0}function N(C,q,de,xe,le){var Le=C.cc;for(O.state=C,O.stream=le,O.marked=null,O.cc=Le,O.style=q,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var pt=Le.length?Le.pop():h?pe:X;if(pt(de,xe)){for(;Le.length&&Le[Le.length-1].lex;)Le.pop()();return O.marked?O.marked:de=="variable"&&K(C,xe)?"variable-2":q}}}var O={state:null,marked:null,cc:null};function P(){for(var C=arguments.length-1;C>=0;C--)O.cc.push(arguments[C])}function S(){return P.apply(null,arguments),!0}function H(C,q){for(var de=q;de;de=de.next)if(de.name==C)return!0;return!1}function V(C){var q=O.state;if(O.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var de=oe(C,q.context);if(de!=null){q.context=de;return}}else if(!H(C,q.localVars)){q.localVars=new Pe(C,q.localVars);return}}s.globalVars&&!H(C,q.globalVars)&&(q.globalVars=new Pe(C,q.globalVars))}}function oe(C,q){if(q)if(q.block){var de=oe(C,q.prev);return de?de==q.prev?q:new we(de,q.vars,!0):null}else return H(C,q.vars)?q:new we(q.prev,new Pe(C,q.vars),!1);else return null}function ve(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function we(C,q,de){this.prev=C,this.vars=q,this.block=de}function Pe(C,q){this.name=C,this.next=q}var je=new Pe("this",new Pe("arguments",null));function Je(){O.state.context=new we(O.state.context,O.state.localVars,!1),O.state.localVars=je}function Xe(){O.state.context=new we(O.state.context,O.state.localVars,!0),O.state.localVars=null}Je.lex=Xe.lex=!0;function Ye(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Ye.lex=!0;function ne(C,q){var de=function(){var xe=O.state,le=xe.indented;if(xe.lexical.type=="stat")le=xe.lexical.indented;else for(var Le=xe.lexical;Le&&Le.type==")"&&Le.align;Le=Le.prev)le=Le.indented;xe.lexical=new G(le,O.stream.column(),C,null,xe.lexical,q)};return de.lex=!0,de}function W(){var C=O.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}W.lex=!0;function Q(C){function q(de){return de==C?S():C==";"||de=="}"||de==")"||de=="]"?P():S(q)}return q}function X(C,q){return C=="var"?S(ne("vardef",q),Wo,Q(";"),W):C=="keyword a"?S(ne("form"),U,X,W):C=="keyword b"?S(ne("form"),X,W):C=="keyword d"?O.stream.match(/^\s*$/,!1)?S():S(ne("stat"),ue,Q(";"),W):C=="debugger"?S(Q(";")):C=="{"?S(ne("}"),Xe,Bt,W,Ye):C==";"?S():C=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==W&&O.state.cc.pop()(),S(ne("form"),U,X,W,qo)):C=="function"?S(lr):C=="for"?S(ne("form"),Xe,Ia,X,Ye,W):C=="class"||v&&q=="interface"?(O.marked="keyword",S(ne("form",C=="class"?C:q),jo,W)):C=="variable"?v&&q=="declare"?(O.marked="keyword",S(X)):v&&(q=="module"||q=="enum"||q=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",q=="enum"?S(Re):q=="type"?S(Da,Q("operator"),tt,Q(";")):S(ne("form"),_n,Q("{"),ne("}"),Bt,W,W)):v&&q=="namespace"?(O.marked="keyword",S(ne("form"),pe,X,W)):v&&q=="abstract"?(O.marked="keyword",S(X)):S(ne("stat"),Ve):C=="switch"?S(ne("form"),U,Q("{"),ne("}","switch"),Xe,Bt,W,W,Ye):C=="case"?S(pe,Q(":")):C=="default"?S(Q(":")):C=="catch"?S(ne("form"),Je,ae,X,W,Ye):C=="export"?S(ne("stat"),Uo,W):C=="import"?S(ne("stat"),Mi,W):C=="async"?S(X):q=="@"?S(pe,X):P(ne("stat"),pe,Q(";"),W)}function ae(C){if(C=="(")return S(mr,Q(")"))}function pe(C,q){return Y(C,q,!1)}function z(C,q){return Y(C,q,!0)}function U(C){return C!="("?P():S(ne(")"),ue,Q(")"),W)}function Y(C,q,de){if(O.state.fatArrowAt==O.stream.start){var xe=de?be:me;if(C=="(")return S(Je,ne(")"),lt(mr,")"),W,Q("=>"),xe,Ye);if(C=="variable")return P(Je,_n,Q("=>"),xe,Ye)}var le=de?fe:he;return J.hasOwnProperty(C)?S(le):C=="function"?S(lr,le):C=="class"||v&&q=="interface"?(O.marked="keyword",S(ne("form"),Qu,W)):C=="keyword c"||C=="async"?S(de?z:pe):C=="("?S(ne(")"),ue,Q(")"),W,le):C=="operator"||C=="spread"?S(de?z:pe):C=="["?S(ne("]"),zt,W,le):C=="{"?Kt(st,"}",null,le):C=="quasi"?P(Ce,le):C=="new"?S(We(de)):S()}function ue(C){return C.match(/[;\}\)\],]/)?P():P(pe)}function he(C,q){return C==","?S(ue):fe(C,q,!1)}function fe(C,q,de){var xe=de==!1?he:fe,le=de==!1?pe:z;if(C=="=>")return S(Je,de?be:me,Ye);if(C=="operator")return/\+\+|--/.test(q)||v&&q=="!"?S(xe):v&&q=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(ne(">"),lt(tt,">"),W,xe):q=="?"?S(pe,Q(":"),le):S(le);if(C=="quasi")return P(Ce,xe);if(C!=";"){if(C=="(")return Kt(z,")","call",xe);if(C==".")return S(rt,xe);if(C=="[")return S(ne("]"),ue,Q("]"),W,xe);if(v&&q=="as")return O.marked="keyword",S(tt,xe);if(C=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),S(le)}}function Ce(C,q){return C!="quasi"?P():q.slice(q.length-2)!="${"?S(Ce):S(ue,Ee)}function Ee(C){if(C=="}")return O.marked="string-2",O.state.tokenize=F,S(Ce)}function me(C){return se(O.stream,O.state),P(C=="{"?X:pe)}function be(C){return se(O.stream,O.state),P(C=="{"?X:z)}function We(C){return function(q){return q=="."?S(C?De:$e):q=="variable"&&v?S(Hn,C?fe:he):P(C?z:pe)}}function $e(C,q){if(q=="target")return O.marked="keyword",S(he)}function De(C,q){if(q=="target")return O.marked="keyword",S(fe)}function Ve(C){return C==":"?S(W,X):P(he,Q(";"),W)}function rt(C){if(C=="variable")return O.marked="property",S()}function st(C,q){if(C=="async")return O.marked="property",S(st);if(C=="variable"||O.style=="keyword"){if(O.marked="property",q=="get"||q=="set")return S(ut);var de;return v&&O.state.fatArrowAt==O.stream.start&&(de=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+de[0].length),S($t)}else{if(C=="number"||C=="string")return O.marked=d?"property":O.style+" property",S($t);if(C=="jsonld-keyword")return S($t);if(v&&ve(q))return O.marked="keyword",S(st);if(C=="[")return S(pe,Dn,Q("]"),$t);if(C=="spread")return S(z,$t);if(q=="*")return O.marked="keyword",S(st);if(C==":")return P($t)}}function ut(C){return C!="variable"?P($t):(O.marked="property",S(lr))}function $t(C){if(C==":")return S(z);if(C=="(")return P(lr)}function lt(C,q,de){function xe(le,Le){if(de?de.indexOf(le)>-1:le==","){var pt=O.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),S(function(Xt,Sn){return Xt==q||Sn==q?P():P(C)},xe)}return le==q||Le==q?S():de&&de.indexOf(";")>-1?P(C):S(Q(q))}return function(le,Le){return le==q||Le==q?S():P(C,xe)}}function Kt(C,q,de){for(var xe=3;xe<arguments.length;xe++)O.cc.push(arguments[xe]);return S(ne(q,de),lt(C,q),W)}function Bt(C){return C=="}"?S():P(X,Bt)}function Dn(C,q){if(v){if(C==":")return S(tt);if(q=="?")return S(Dn)}}function Dr(C,q){if(v&&(C==":"||q=="in"))return S(tt)}function Ft(C){if(v&&C==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?S(pe,Fn,tt):S(tt)}function Fn(C,q){if(q=="is")return O.marked="keyword",S()}function tt(C,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return O.marked="keyword",S(q=="typeof"?z:tt);if(C=="variable"||q=="void")return O.marked="type",S(sr);if(q=="|"||q=="&")return S(tt);if(C=="string"||C=="number"||C=="atom")return S(sr);if(C=="[")return S(ne("]"),lt(tt,"]",","),W,sr);if(C=="{")return S(ne("}"),Fe,W,sr);if(C=="(")return S(lt(Rt,")"),ho,sr);if(C=="<")return S(lt(tt,">"),tt);if(C=="quasi")return P(ln,sr)}function ho(C){if(C=="=>")return S(tt)}function Fe(C){return C.match(/[\}\)\]]/)?S():C==","||C==";"?S(Fe):P(ti,Fe)}function ti(C,q){if(C=="variable"||O.style=="keyword")return O.marked="property",S(ti);if(q=="?"||C=="number"||C=="string")return S(ti);if(C==":")return S(tt);if(C=="[")return S(Q("variable"),Dr,Q("]"),ti);if(C=="(")return P(Li,ti);if(!C.match(/[;\}\)\],]/))return S()}function ln(C,q){return C!="quasi"?P():q.slice(q.length-2)!="${"?S(ln):S(tt,Pt)}function Pt(C){if(C=="}")return O.marked="string-2",O.state.tokenize=F,S(ln)}function Rt(C,q){return C=="variable"&&O.stream.match(/^\s*[?:]/,!1)||q=="?"?S(Rt):C==":"?S(tt):C=="spread"?S(Rt):P(tt)}function sr(C,q){if(q=="<")return S(ne(">"),lt(tt,">"),W,sr);if(q=="|"||C=="."||q=="&")return S(tt);if(C=="[")return S(tt,Q("]"),sr);if(q=="extends"||q=="implements")return O.marked="keyword",S(tt);if(q=="?")return S(tt,Q(":"),tt)}function Hn(C,q){if(q=="<")return S(ne(">"),lt(tt,">"),W,sr)}function gr(){return P(tt,an)}function an(C,q){if(q=="=")return S(tt)}function Wo(C,q){return q=="enum"?(O.marked="keyword",S(Re)):P(_n,Dn,vr,Ju)}function _n(C,q){if(v&&ve(q))return O.marked="keyword",S(_n);if(C=="variable")return V(q),S();if(C=="spread")return S(_n);if(C=="[")return Kt(Zs,"]");if(C=="{")return Kt(Ei,"}")}function Ei(C,q){return C=="variable"&&!O.stream.match(/^\s*:/,!1)?(V(q),S(vr)):(C=="variable"&&(O.marked="property"),C=="spread"?S(_n):C=="}"?P():C=="["?S(pe,Q("]"),Q(":"),Ei):S(Q(":"),_n,vr))}function Zs(){return P(_n,vr)}function vr(C,q){if(q=="=")return S(z)}function Ju(C){if(C==",")return S(Wo)}function qo(C,q){if(C=="keyword b"&&q=="else")return S(ne("form","else"),X,W)}function Ia(C,q){if(q=="await")return S(Ia);if(C=="(")return S(ne(")"),Js,W)}function Js(C){return C=="var"?S(Wo,Ai):C=="variable"?S(Ai):P(Ai)}function Ai(C,q){return C==")"?S():C==";"?S(Ai):q=="in"||q=="of"?(O.marked="keyword",S(pe,Ai)):P(pe,Ai)}function lr(C,q){if(q=="*")return O.marked="keyword",S(lr);if(C=="variable")return V(q),S(lr);if(C=="(")return S(Je,ne(")"),lt(mr,")"),W,Ft,X,Ye);if(v&&q=="<")return S(ne(">"),lt(gr,">"),W,lr)}function Li(C,q){if(q=="*")return O.marked="keyword",S(Li);if(C=="variable")return V(q),S(Li);if(C=="(")return S(Je,ne(")"),lt(mr,")"),W,Ft,Ye);if(v&&q=="<")return S(ne(">"),lt(gr,">"),W,Li)}function Da(C,q){if(C=="keyword"||C=="variable")return O.marked="type",S(Da);if(q=="<")return S(ne(">"),lt(gr,">"),W)}function mr(C,q){return q=="@"&&S(pe,mr),C=="spread"?S(mr):v&&ve(q)?(O.marked="keyword",S(mr)):v&&C=="this"?S(Dn,vr):P(_n,Dn,vr)}function Qu(C,q){return C=="variable"?jo(C,q):yr(C,q)}function jo(C,q){if(C=="variable")return V(q),S(yr)}function yr(C,q){if(q=="<")return S(ne(">"),lt(gr,">"),W,yr);if(q=="extends"||q=="implements"||v&&C==",")return q=="implements"&&(O.marked="keyword"),S(v?tt:pe,yr);if(C=="{")return S(ne("}"),br,W)}function br(C,q){if(C=="async"||C=="variable"&&(q=="static"||q=="get"||q=="set"||v&&ve(q))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",S(br);if(C=="variable"||O.style=="keyword")return O.marked="property",S(po,br);if(C=="number"||C=="string")return S(po,br);if(C=="[")return S(pe,Dn,Q("]"),po,br);if(q=="*")return O.marked="keyword",S(br);if(v&&C=="(")return P(Li,br);if(C==";"||C==",")return S(br);if(C=="}")return S();if(q=="@")return S(pe,br)}function po(C,q){if(q=="!"||q=="?")return S(po);if(C==":")return S(tt,vr);if(q=="=")return S(z);var de=O.state.lexical.prev,xe=de&&de.info=="interface";return P(xe?Li:lr)}function Uo(C,q){return q=="*"?(O.marked="keyword",S(Ko,Q(";"))):q=="default"?(O.marked="keyword",S(pe,Q(";"))):C=="{"?S(lt(Vo,"}"),Ko,Q(";")):P(X)}function Vo(C,q){if(q=="as")return O.marked="keyword",S(Q("variable"));if(C=="variable")return P(z,Vo)}function Mi(C){return C=="string"?S():C=="("?P(pe):C=="."?P(he):P(Go,Fr,Ko)}function Go(C,q){return C=="{"?Kt(Go,"}"):(C=="variable"&&V(q),q=="*"&&(O.marked="keyword"),S(Qs))}function Fr(C){if(C==",")return S(Go,Fr)}function Qs(C,q){if(q=="as")return O.marked="keyword",S(Go)}function Ko(C,q){if(q=="from")return O.marked="keyword",S(pe)}function zt(C){return C=="]"?S():P(lt(z,"]"))}function Re(){return P(ne("form"),_n,Q("{"),ne("}"),lt(ni,"}"),W,W)}function ni(){return P(_n,vr)}function el(C,q){return C.lastType=="operator"||C.lastType==","||w.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Zn(C,q,de){return q.tokenize==R&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(de||0)))}return{startState:function(C){var q={tokenize:R,lastType:"sof",cc:[],lexical:new G((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new we(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(q.globalVars=s.globalVars),q},token:function(C,q){if(C.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=C.indentation(),se(C,q)),q.tokenize!=I&&C.eatSpace())return null;var de=q.tokenize(C,q);return E=="comment"?de:(q.lastType=E=="operator"&&(M=="++"||M=="--")?"incdec":E,N(q,de,E,M,C))},indent:function(C,q){if(C.tokenize==I||C.tokenize==F)return r.Pass;if(C.tokenize!=R)return 0;var de=q&&q.charAt(0),xe=C.lexical,le;if(!/^\s*else\b/.test(q))for(var Le=C.cc.length-1;Le>=0;--Le){var pt=C.cc[Le];if(pt==W)xe=xe.prev;else if(pt!=qo&&pt!=Ye)break}for(;(xe.type=="stat"||xe.type=="form")&&(de=="}"||(le=C.cc[C.cc.length-1])&&(le==he||le==fe)&&!/^[,\.=+\-*:?[\(]/.test(q));)xe=xe.prev;f&&xe.type==")"&&xe.prev.type=="stat"&&(xe=xe.prev);var Xt=xe.type,Sn=de==Xt;return Xt=="vardef"?xe.indented+(C.lastType=="operator"||C.lastType==","?xe.info.length+1:0):Xt=="form"&&de=="{"?xe.indented:Xt=="form"?xe.indented+c:Xt=="stat"?xe.indented+(el(C,q)?f||c:0):xe.info=="switch"&&!Sn&&s.doubleIndentSwitch!=!1?xe.indented+(/^(?:case|default)\b/.test(q)?c:2*c):xe.align?xe.column+(Sn?0:1):xe.indented+(Sn?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:Zn,skipExpression:function(C){N(C,"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})})}()),Ym.exports}Qw();var Jm={exports:{}},Qm;function ex(){return Qm||(Qm=1,function(e,t){(function(r){r(Xs())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function w(S,H){function V(we){return H.tokenize=we,we(S,H)}var oe=S.next();if(oe=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?V(E("atom","]]>")):null:S.match("--")?V(E("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),V(M(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),H.tokenize=E("meta","?>"),"meta"):(m=S.eat("/")?"closeTag":"openTag",H.tokenize=A,"tag bracket");if(oe=="&"){var ve;return S.eat("#")?S.eat("x")?ve=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ve=S.eatWhile(/[\d]/)&&S.eat(";"):ve=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ve?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function A(S,H){var V=S.next();if(V==">"||V=="/"&&S.eat(">"))return H.tokenize=w,m=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return m="equals",null;if(V=="<"){H.tokenize=w,H.state=F,H.tagName=H.tagStart=null;var oe=H.tokenize(S,H);return oe?oe+" tag error":"tag error"}else return/[\'\"]/.test(V)?(H.tokenize=L(V),H.stringStartCol=S.column(),H.tokenize(S,H)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(S){var H=function(V,oe){for(;!V.eol();)if(V.next()==S){oe.tokenize=A;break}return"string"};return H.isInAttribute=!0,H}function E(S,H){return function(V,oe){for(;!V.eol();){if(V.match(H)){oe.tokenize=w;break}V.next()}return S}}function M(S){return function(H,V){for(var oe;(oe=H.next())!=null;){if(oe=="<")return V.tokenize=M(S+1),V.tokenize(H,V);if(oe==">")if(S==1){V.tokenize=w;break}else return V.tokenize=M(S-1),V.tokenize(H,V)}return"meta"}}function $(S){return S&&S.toLowerCase()}function R(S,H,V){this.prev=S.context,this.tagName=H||"",this.indent=S.indented,this.startOfLine=V,(h.doNotIndent.hasOwnProperty(H)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function T(S){S.context&&(S.context=S.context.prev)}function I(S,H){for(var V;;){if(!S.context||(V=S.context.tagName,!h.contextGrabbers.hasOwnProperty($(V))||!h.contextGrabbers[$(V)].hasOwnProperty($(H))))return;T(S)}}function F(S,H,V){return S=="openTag"?(V.tagStart=H.column(),re):S=="closeTag"?se:F}function re(S,H,V){return S=="word"?(V.tagName=H.current(),b="tag",K):h.allowMissingTagName&&S=="endTag"?(b="tag bracket",K(S,H,V)):(b="error",re)}function se(S,H,V){if(S=="word"){var oe=H.current();return V.context&&V.context.tagName!=oe&&h.implicitlyClosed.hasOwnProperty($(V.context.tagName))&&T(V),V.context&&V.context.tagName==oe||h.matchClosing===!1?(b="tag",J):(b="tag error",G)}else return h.allowMissingTagName&&S=="endTag"?(b="tag bracket",J(S,H,V)):(b="error",G)}function J(S,H,V){return S!="endTag"?(b="error",J):(T(V),F)}function G(S,H,V){return b="error",J(S,H,V)}function K(S,H,V){if(S=="word")return b="attribute",N;if(S=="endTag"||S=="selfcloseTag"){var oe=V.tagName,ve=V.tagStart;return V.tagName=V.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty($(oe))?I(V,oe):(I(V,oe),V.context=new R(V,oe,ve==V.indented)),F}return b="error",K}function N(S,H,V){return S=="equals"?O:(h.allowMissing||(b="error"),K(S,H,V))}function O(S,H,V){return S=="string"?P:S=="word"&&h.allowUnquoted?(b="string",K):(b="error",K(S,H,V))}function P(S,H,V){return S=="string"?P:K(S,H,V)}return{startState:function(S){var H={tokenize:w,state:F,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(H.baseIndent=S),H},token:function(S,H){if(!H.tagName&&S.sol()&&(H.indented=S.indentation()),S.eatSpace())return null;m=null;var V=H.tokenize(S,H);return(V||m)&&V!="comment"&&(b=null,H.state=H.state(m||V,S,H),b&&(V=b=="error"?V+" error":b)),V},indent:function(S,H,V){var oe=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+d;if(oe&&oe.noIndent)return r.Pass;if(S.tokenize!=A&&S.tokenize!=w)return V?V.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(H))return 0;var ve=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(ve&&ve[1])for(;oe;)if(oe.tagName==ve[2]){oe=oe.prev;break}else if(h.implicitlyClosed.hasOwnProperty($(oe.tagName)))oe=oe.prev;else break;else if(ve)for(;oe;){var we=h.contextGrabbers[$(oe.tagName)];if(we&&we.hasOwnProperty($(ve[2])))oe=oe.prev;else break}for(;oe&&oe.prev&&!oe.startOfLine;)oe=oe.prev;return oe?oe.indent+d:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==O&&(S.state=K)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var H=[],V=S.context;V;V=V.prev)H.push(V.tagName);return H.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Jm.exports}ex();var e0={exports:{}},t0;function Yce(){return t0||(t0=1,function(e,t){(function(r){r(Xs(),ex(),Qw())})(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 A=w.tagName;w.tagName=null;var L=d.indent(w,"","");return w.tagName=A,L}function v(w,A){return A.context.mode==d?m(w,A,A.context):b(w,A,A.context)}function m(w,A,L){if(L.depth==2)return w.match(/^.*?\*\//)?L.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(L.state);var E=p(L.state),M=L.state.context;if(M&&w.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?E-=c.indentUnit:L.prev.state.lexical&&(E=L.prev.state.lexical.indented)}else L.depth==1&&(E+=c.indentUnit);return A.context=new o(r.startState(h,E),h,0,A.context),null}if(L.depth==1){if(w.peek()=="<")return d.skipAttribute(L.state),A.context=new o(r.startState(d,p(L.state)),d,0,A.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return L.depth=2,v(w,A)}var $=d.token(w,L.state),R=w.current(),T;return/\btag\b/.test($)?/>$/.test(R)?L.state.context?L.depth=0:A.context=A.context.prev:/^</.test(R)&&(L.depth=1):!$&&(T=R.indexOf("{"))>-1&&w.backUp(R.length-T),$}function b(w,A,L){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,L.state))return A.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,A.context),h.skipExpression(L.state),null;var E=h.token(w,L.state);if(!E&&L.depth!=null){var M=w.current();M=="{"?L.depth++:M=="}"&&--L.depth==0&&(A.context=A.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,A,L){return w.context.mode.indent(w.context.state,A,L)},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}})})}()),e0.exports}Yce();var n0={exports:{}},r0;function Zce(){return r0||(r0=1,function(e,t){(function(r){r(Xs())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),n0.exports}Zce();var i0={exports:{}},o0;function Jce(){return o0||(o0=1,function(e,t){(function(r){r(Xs())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",w=m[b],A=p.pos;function L(){r.off(document,"mousemove",E),r.off(document,"mouseup",L)}function E(M){if(M.which!=1)return L();p.moveTo(A+(M[b]-w)*(p.total/p.size))}r.on(document,"mousemove",E),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<b.left?-1:m.clientX>b.right?1:0:w=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})}()),i0.exports}Jce();const $n=nn();function Qce(e,t,r={}){const o=Xce.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),St(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}),Nu(()=>{$n.value=void 0}),Lh(o)}async function eue(e){var t;Vu({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null,column:null})}function tue(e,t){Vu({file:e,column:t.column-1,line:t.line,view:"editor",test:Ns.value})}function nue(e,t){if(!t.location)return;const{line:r,column:o,file:s}=t.location;if(e.file.filepath!==s)return Jh(s,r,o);Vu({file:e.file.id,column:o-1,line:r,view:"editor",test:Ns.value})}const Ys=LA(),rue=hA(Ys),iue={class:"scrolls scrolls-rounded task-error"},oue=["onClickPassive"],sue=["innerHTML"],lue=at({__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=Se(()=>Qh(Ys.value)),s=Se(()=>{var d;return!!((d=t.error)!=null&&d.diff)}),c=Se(()=>t.error.diff?o.value.toHtml(Xl(t.error.diff)):void 0);function f(d){return Uae(d.file,t.filename)?tue(t.fileId,d):Jh(d.file,d.line,d.column)}return(d,h)=>{const p=zr("tooltip");return ie(),ye("div",iue,[ee("pre",null,[ee("b",null,ze(d.error.name),1),dt(": "+ze(d.error.message),1)]),(ie(!0),ye(nt,null,dr(d.error.stacks,(v,m)=>(ie(),ye("div",{key:m,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ee("pre",null," - "+ze(r(v.file))+":"+ze(v.line)+":"+ze(v.column),1),ct(ee("div",{class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(v)},null,40,oue),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),B(s)?(ie(),ye("pre",{key:0,"data-testid":"diff",innerHTML:B(c)},null,8,sue)):qe("",!0)])}}}),tx=Jr(lue,[["__scopeId","data-v-e0212169"]]);function nx(e){var r;const t=(r=e.meta)==null?void 0:r.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function rx(){const e=Ue(!1),t=Ue(Date.now()),r=Ue(),o=Se(()=>{var d;const c=(d=r.value)==null?void 0:d.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const aue={"h-full":"",class:"scrolls"},cue={key:0},uue={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},fue={flex:"~ gap-2 items-center"},due={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},hue=["innerHTML"],pue={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},gue={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},vue={class:"flex gap-2","overflow-hidden":""},mue={class:"font-bold","ws-nowrap":"",truncate:""},yue=["href","download"],bue=["onClick"],wue={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},xue={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},_ue={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":""},Sue={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},kue={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},Tue=at({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=Se(()=>{var m;return!t.test.result||!((m=t.test.result.errors)!=null&&m.length)?null:Hw(Ys.value,[t.test])[0]});function o(m){return nue(t.test,m)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=rx();function h(m){return`${Jb(qs.value.root,m.file)}:${m.line}:${m.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),v=Se(()=>Object.entries(t.test.meta).filter(([m])=>!p.has(m)));return(m,b)=>{var R,T,I;const w=Qr,A=tx,L=Vce,E=Yw,M=np,$=zr("tooltip");return ie(),ye("div",aue,[B(r)?(ie(),ye("div",cue,[ee("div",uue,[ee("div",fue,[B(Ot)&&((R=m.test.meta)!=null&&R.failScreenshotPath)?(ie(),ye(nt,{key:0},[ct(Oe(w,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=F=>B(f)(m.test))},null,512),[[$,"View screenshot error",void 0,{bottom:!0}]]),ct(Oe(w,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=F=>B(nx)(m.test))},null,512),[[$,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):qe("",!0)]),(T=m.test.result)!=null&&T.htmlError?(ie(),ye("div",due,[ee("pre",{innerHTML:m.test.result.htmlError},null,8,hue)])):(I=m.test.result)!=null&&I.errors?(ie(!0),ye(nt,{key:1},dr(m.test.result.errors,(F,re)=>(ie(),Ze(A,{key:re,"file-id":m.test.file.id,error:F,filename:m.test.file.name,root:B(qs).root},null,8,["file-id","error","filename","root"]))),128)):qe("",!0)])])):(ie(),ye("div",pue," All tests passed in this file ")),m.test.annotations.length?(ie(),ye(nt,{key:2},[b[5]||(b[5]=ee("h1",{"m-2":""}," Test Annotations ",-1)),(ie(!0),ye(nt,null,dr(m.test.annotations,F=>{var re;return ie(),ye("div",{key:F.type+F.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[ee("div",gue,[ee("div",vue,[ee("span",mue,ze(F.type),1),F.attachment&&!((re=F.attachment.contentType)!=null&&re.startsWith("image/"))?(ie(),ye("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:B(pu)(F.attachment),download:B(Jw)(F.message,F.attachment.contentType)},[...b[4]||(b[4]=[ee("span",{class:"i-carbon:download block"},null,-1),dt(" Download ",-1)])],8,yue)):qe("",!0)]),ee("div",null,[F.location&&F.location.file===m.test.file.filepath?ct((ie(),ye("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:se=>o(F)},[dt(ze(h(F.location)),1)],8,bue)),[[$,"Open in Editor",void 0,{bottom:!0}]]):F.location&&F.location.file!==m.test.file.filepath?(ie(),ye("span",wue,ze(h(F.location)),1)):qe("",!0)])]),ee("div",xue,ze(F.message),1),Oe(L,{annotation:F},null,8,["annotation"])])}),128))],64)):qe("",!0),B(v).length?(ie(),ye(nt,{key:3},[b[6]||(b[6]=ee("h1",{"m-2":""}," Test Meta ",-1)),ee("div",_ue,[(ie(!0),ye(nt,null,dr(B(v),([F,re])=>(ie(),ye(nt,{key:F},[ee("div",Sue,ze(F),1),ee("pre",kue,ze(re),1)],64))),128))])],64)):qe("",!0),B(Ot)?(ie(),Ze(M,{key:4,modelValue:B(c),"onUpdate:modelValue":b[3]||(b[3]=F=>Tt(c)?c.value=F:null),direction:"right"},{default:it(()=>[B(s)?(ie(),Ze(Ih,{key:0},{default:it(()=>[Oe(E,{file:B(s).file.filepath,name:B(s).name,url:B(d),onClose:b[2]||(b[2]=F=>c.value=!1)},null,8,["file","name","url"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])):qe("",!0)])}}}),Cue=Jr(Tue,[["__scopeId","data-v-efadcc09"]]),Eue={"h-full":"",class:"scrolls"},Aue=["id"],Lue={flex:"~ gap-2 items-center"},Mue={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},$ue=["innerHTML"],Nue={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Oue=at({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){var v;return((v=h.result)==null?void 0:v.state)!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(m=>r(m,p+1))]}const o=Se(()=>{var b,w;const h=t.file,p=((b=h.tasks)==null?void 0:b.flatMap(A=>r(A,0)))??[],v=h.result;if((w=v==null?void 0:v.errors)==null?void 0:w[0]){const A={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:v};p.unshift(A)}return p.length>0?Hw(Ys.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=rx();return(h,p)=>{const v=Qr,m=tx,b=Yw,w=np,A=zr("tooltip");return ie(),ye("div",Eue,[B(o).length?(ie(!0),ye(nt,{key:0},dr(B(o),L=>{var E,M,$,R;return ie(),ye("div",{id:L.id,key:L.id},[ee("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:tn({"margin-left":`${(E=L.result)!=null&&E.htmlError?.5:2*L.level+.5}rem`})},[ee("div",Lue,[ee("span",null,ze(L.name),1),B(Ot)&&((M=L.meta)!=null&&M.failScreenshotPath)?(ie(),ye(nt,{key:0},[ct(Oe(v,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:T=>B(f)(L)},null,8,["onClick"]),[[A,"View screenshot error",void 0,{bottom:!0}]]),ct(Oe(v,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:T=>B(nx)(L)},null,8,["onClick"]),[[A,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):qe("",!0)]),($=L.result)!=null&&$.htmlError?(ie(),ye("div",Mue,[ee("pre",{innerHTML:L.result.htmlError},null,8,$ue)])):(R=L.result)!=null&&R.errors?(ie(!0),ye(nt,{key:1},dr(L.result.errors,(T,I)=>(ie(),Ze(m,{key:I,error:T,filename:h.file.name,root:B(qs).root,"file-id":h.file.id},null,8,["error","filename","root","file-id"]))),128)):qe("",!0)],4)],8,Aue)}),128)):(ie(),ye("div",Nue," All tests passed in this file ")),B(Ot)?(ie(),Ze(w,{key:2,modelValue:B(c),"onUpdate:modelValue":p[1]||(p[1]=L=>Tt(c)?c.value=L:null),direction:"right"},{default:it(()=>[B(s)?(ie(),Ze(Ih,{key:0},{default:it(()=>[Oe(b,{file:B(s).file.filepath,name:B(s).name,url:B(d),onClose:p[0]||(p[0]=L=>c.value=!1)},null,8,["file","name","url"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])):qe("",!0)])}}}),Pue=Jr(Oue,[["__scopeId","data-v-d1b5950e"]]),Rue={border:"b base","p-4":""},zue=["innerHTML"],Iue=at({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ie(),ye("div",Rue,[ee("div",{"text-xs":"","mb-1":"",class:ot(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},ze(t(r.time))+" | "+ze(r.taskName)+" | "+ze(r.type),3),ee("pre",{"data-type":"html",innerHTML:r.content},null,8,zue)]))}}),Due={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Fue={key:1,p6:""},Hue=at({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const o=Kw.value;if(o){const s=Qh(Ys.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Xl(h))}))}});function r(o){const s=o&&ht.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?VE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=Iue;return(f=B(t))!=null&&f.length?(ie(),ye("div",Due,[(ie(!0),ye(nt,null,dr(B(t),({taskId:d,type:h,time:p,content:v})=>(ie(),ye("div",{key:d,"font-mono":""},[Oe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(ie(),ye("div",Fue,[...s[0]||(s[0]=[dt(" Log something in your test and it would print here. (e.g. ",-1),ee("pre",{inline:""},"console.log(foo)",-1),dt(") ",-1)])]))}}}),ix=at({__name:"CodeMirrorContainer",props:ra({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:ra(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Pu(e,"modelValue"),s=mk(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ue();return fo(async()=>{const d=Qce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),$n.value=d,setTimeout(()=>$n.value.refresh(),100)}),(d,h)=>(ie(),ye("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[ee("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Bue=at({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ue(""),c=nn(void 0),f=Ue(!1),d=Ue(!0),h=Ue(!1),p=Ue();St(()=>r.file,async()=>{var J;if(!h.value){d.value=!0;try{if(!r.file||!((J=r.file)!=null&&J.filepath)){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await ht.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(G){console.error("cannot fetch file",G)}await At(),d.value=!1}},{immediate:!0}),St(()=>[d.value,h.value,r.file,Nw.value,Ow.value],([J,G,K,N,O])=>{!J&&!G&&(N!=null?At(()=>{var H;const P=p.value,S=P??{line:(N??1)-1,ch:O??0};P?p.value=void 0:((H=$n.value)==null||H.scrollIntoView(S,100),At(()=>{var V,oe;(V=$n.value)==null||V.focus(),(oe=$n.value)==null||oe.setCursor(S)}))}):At(()=>{var P;(P=$n.value)==null||P.focus()}))},{flush:"post"});const v=Se(()=>{var J,G;return((G=(J=r.file)==null?void 0:J.filepath)==null?void 0:G.split(/\./g).pop())||"js"}),m=Ue(),b=Se(()=>{var K;const J=[];function G(N){var O;(O=N.result)!=null&&O.errors&&J.push(...N.result.errors),N.type==="suite"&&N.tasks.forEach(G)}return(K=r.file)==null||K.tasks.forEach(G),J}),w=Se(()=>{var K;const J=[];function G(N){N.type==="test"&&J.push(...N.annotations),N.type==="suite"&&N.tasks.forEach(G)}return(K=r.file)==null||K.tasks.forEach(G),J}),A=[],L=[],E=[],M=Ue(!1);function $(){E.forEach(([J,G,K])=>{J.removeEventListener("click",G),K()}),E.length=0}bw(m,()=>{var J;(J=$n.value)==null||J.refresh()});function R(){f.value=c.value!==$n.value.getValue()}St(f,J=>{o("draft",J)},{immediate:!0});function T(J){const G=((J==null?void 0:J.stacks)||[]).filter(H=>{var V;return H.file&&H.file===((V=r.file)==null?void 0:V.filepath)}),K=G==null?void 0:G[0];if(!K)return;const N=document.createElement("div");N.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-600 dark:c-red-400",O.textContent=`${" ".repeat(K.column)}^ ${J.name}: ${(J==null?void 0:J.message)||""}`,N.appendChild(O);const P=document.createElement("span");P.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",P.tabIndex=0,P.ariaLabel="Open in Editor",Wb(P,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Jh(K.file,K.line,K.column)};P.addEventListener("click",S),N.appendChild(P),E.push([P,S,()=>qh(P)]),L.push($n.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),A.push($n.value.addLineWidget(K.line-1,N))}function I(J){var V,oe;if(!J.location)return;const{line:G,file:K}=J.location;if(K!==((V=r.file)==null?void 0:V.filepath))return;const N=document.createElement("div");N.classList.add("wrap","bg-active","py-3","px-6","my-1"),N.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const P=document.createElement("span");P.textContent=`${J.type}: `,P.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=J.message.replace(/[^\r]\n/,`\r
45
- `),O.append(P,S),N.append(O);const H=J.attachment;if(H!=null&&H.path||H!=null&&H.body)if((oe=H.contentType)!=null&&oe.startsWith("image/")){const ve=document.createElement("a"),we=document.createElement("img");ve.classList.add("inline-block","mt-3"),ve.style.maxWidth="50vw";const Pe=H.path||H.body;typeof Pe=="string"&&(Pe.startsWith("http://")||Pe.startsWith("https://"))?(we.setAttribute("src",Pe),ve.referrerPolicy="no-referrer"):we.setAttribute("src",pu(H)),ve.target="_blank",ve.href=we.src,ve.append(we),N.append(ve)}else{const ve=document.createElement("a");ve.href=pu(H),ve.download=Jw(J.message,H.contentType),ve.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const we=document.createElement("div");we.classList.add("i-carbon:download","block");const Pe=document.createElement("span");Pe.textContent="Download",ve.append(we,Pe),N.append(ve)}A.push($n.value.addLineWidget(G-1,N))}const{pause:F,resume:re}=St([$n,b,w,ws],([J,G,K,N])=>{if(!J){A.length=0,L.length=0,$();return}N&&(J.off("changes",R),$(),A.forEach(O=>O.clear()),L.forEach(O=>J==null?void 0:J.removeLineClass(O,"wrap")),A.length=0,L.length=0,setTimeout(()=>{G.forEach(T),K.forEach(I),M.value||J.clearHistory(),J.on("changes",R)},100))},{flush:"post"});Kh(()=>[ws.value,h.value,p.value],([J,G],K)=>{var N;J&&!G&&K&&K[2]&&((N=$n.value)==null||N.setCursor(K[2]))},{debounce:100,flush:"post"});async function se(J){if(h.value)return;F(),h.value=!0,await At();const G=$n.value;G&&(G.setOption("readOnly",!0),await At(),G.refresh()),p.value=G==null?void 0:G.getCursor(),G==null||G.off("changes",R),$(),A.forEach(K=>K.clear()),L.forEach(K=>G==null?void 0:G.removeLineClass(K,"wrap")),A.length=0,L.length=0;try{M.value=!0,await ht.rpc.saveTestFile(r.file.filepath,J),c.value=J,f.value=!1}catch(K){console.error("error saving file",K)}M.value||G==null||G.clearHistory();try{await Pm(ws).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Pm(ws).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(T),w.value.forEach(I),G==null||G.on("changes",R),h.value=!1,await At(),G&&(G.setOption("readOnly",!1),await At(),G.refresh()),re()}return Ca($),(J,G)=>{const K=ix;return ie(),Ze(K,bi({ref_key:"editor",ref:m,modelValue:B(s),"onUpdate:modelValue":G[0]||(G[0]=N=>Tt(s)?s.value=N:null),"h-full":""},{lineNumbers:!0,readOnly:B(hr),saving:B(h)},{mode:B(v),"data-testid":"code-mirror",onSave:se}),null,16,["modelValue","mode"])}}}),Wue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},que={"p-4":"",relative:""},jue={op50:"","font-mono":"","text-sm":""},Uue={key:0,"p-5":""},Vue={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Gue={key:0},Kue={p:"x3 y-1","bg-overlay":"",border:"base b t"},Xue=at({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=vA(()=>ht.rpc.getTransformResult(r.projectName,r.id,!!Ot)),c=Se(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Se(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Se(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Se(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return gw("Escape",()=>{o("close")}),(p,v)=>{const m=Qr,b=ix;return ie(),ye("div",Wue,[ee("div",que,[v[1]||(v[1]=ee("p",null,"Module Info",-1)),ee("p",jue,ze(p.id),1),Oe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=w=>o("close"))})]),B(s)?(ie(),ye(nt,{key:1},[ee("div",Vue,[v[2]||(v[2]=ee("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=ee("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Oe(b,bi({"h-full":"","model-value":B(f),"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"]),Oe(b,bi({"h-full":"","model-value":B(d),"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"])]),B(h).mappings!==""?(ie(),ye("div",Gue,[ee("div",Kue," Source map (v"+ze(B(h).version)+") ",1),Oe(b,bi({"model-value":B(h).mappings,"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"])])):qe("",!0)],64)):(ie(),ye("div",Uue," No transform result found for this module. "))])}}});function Yue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var eh="http://www.w3.org/1999/xhtml";const s0={svg:"http://www.w3.org/2000/svg",xhtml:eh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),s0.hasOwnProperty(t)?{space:s0[t],local:e}:e}function Zue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===eh&&t.documentElement.namespaceURI===eh?t.createElement(e):t.createElementNS(r,e)}}function Jue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ox(e){var t=Gu(e);return(t.local?Jue:Zue)(t)}function Que(){}function rp(e){return e==null?Que:function(){return this.querySelector(e)}}function efe(e){typeof e!="function"&&(e=rp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new or(o,this._parents)}function tfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function nfe(){return[]}function sx(e){return e==null?nfe:function(){return this.querySelectorAll(e)}}function rfe(e){return function(){return tfe(e.apply(this,arguments))}}function ife(e){typeof e=="function"?e=rfe(e):e=sx(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 or(o,s)}function lx(e){return function(){return this.matches(e)}}function ax(e){return function(t){return t.matches(e)}}var ofe=Array.prototype.find;function sfe(e){return function(){return ofe.call(this.children,e)}}function lfe(){return this.firstElementChild}function afe(e){return this.select(e==null?lfe:sfe(typeof e=="function"?e:ax(e)))}var cfe=Array.prototype.filter;function ufe(){return Array.from(this.children)}function ffe(e){return function(){return cfe.call(this.children,e)}}function dfe(e){return this.selectAll(e==null?ufe:ffe(typeof e=="function"?e:ax(e)))}function hfe(e){typeof e!="function"&&(e=lx(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 or(o,this._parents)}function cx(e){return new Array(e.length)}function pfe(){return new or(this._enter||this._groups.map(cx),this._parents)}function gu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}gu.prototype={constructor:gu,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 gfe(e){return function(){return e}}function vfe(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 gu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function mfe(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),w;for(d=0;d<v;++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<m;++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 gu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function yfe(e){return e.__data__}function bfe(e,t){if(!arguments.length)return Array.from(this,yfe);var r=t?mfe:vfe,o=this._parents,s=this._groups;typeof e!="function"&&(e=gfe(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,w=wfe(e.call(v,v&&v.__data__,p,o)),A=w.length,L=d[p]=new Array(A),E=f[p]=new Array(A),M=h[p]=new Array(b);r(v,m,L,E,M,w,t);for(var $=0,R=0,T,I;$<A;++$)if(T=L[$]){for($>=R&&(R=$+1);!(I=E[R])&&++R<A;);T._next=I||null}}return f=new or(f,o),f._enter=d,f._exit=h,f}function wfe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xfe(){return new or(this._exit||this._groups.map(cx),this._parents)}function _fe(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 Sfe(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),w,A=0;A<m;++A)(w=p[A]||v[A])&&(b[A]=w);for(;h<s;++h)d[h]=r[h];return new or(d,this._parents)}function kfe(){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 Tfe(e){e||(e=Cfe);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new or(s,this._parents).order()}function Cfe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Efe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Afe(){return Array.from(this)}function Lfe(){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 Mfe(){let e=0;for(const t of this)++e;return e}function $fe(){return!this.node()}function Nfe(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 Ofe(e){return function(){this.removeAttribute(e)}}function Pfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Rfe(e,t){return function(){this.setAttribute(e,t)}}function zfe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ife(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Dfe(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 Ffe(e,t){var r=Gu(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?Pfe:Ofe:typeof t=="function"?r.local?Dfe:Ife:r.local?zfe:Rfe)(r,t))}function ux(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Hfe(e){return function(){this.style.removeProperty(e)}}function Bfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Wfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function qfe(e,t,r){return arguments.length>1?this.each((t==null?Hfe:typeof t=="function"?Wfe:Bfe)(e,t,r??"")):js(this.node(),e)}function js(e,t){return e.style.getPropertyValue(t)||ux(e).getComputedStyle(e,null).getPropertyValue(t)}function jfe(e){return function(){delete this[e]}}function Ufe(e,t){return function(){this[e]=t}}function Vfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Gfe(e,t){return arguments.length>1?this.each((t==null?jfe:typeof t=="function"?Vfe:Ufe)(e,t)):this.node()[e]}function fx(e){return e.trim().split(/^|\s+/)}function ip(e){return e.classList||new dx(e)}function dx(e){this._node=e,this._names=fx(e.getAttribute("class")||"")}dx.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 hx(e,t){for(var r=ip(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function px(e,t){for(var r=ip(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Kfe(e){return function(){hx(this,e)}}function Xfe(e){return function(){px(this,e)}}function Yfe(e,t){return function(){(t.apply(this,arguments)?hx:px)(this,e)}}function Zfe(e,t){var r=fx(e+"");if(arguments.length<2){for(var o=ip(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Yfe:t?Kfe:Xfe)(r,t))}function Jfe(){this.textContent=""}function Qfe(e){return function(){this.textContent=e}}function ede(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function tde(e){return arguments.length?this.each(e==null?Jfe:(typeof e=="function"?ede:Qfe)(e)):this.node().textContent}function nde(){this.innerHTML=""}function rde(e){return function(){this.innerHTML=e}}function ide(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function ode(e){return arguments.length?this.each(e==null?nde:(typeof e=="function"?ide:rde)(e)):this.node().innerHTML}function sde(){this.nextSibling&&this.parentNode.appendChild(this)}function lde(){return this.each(sde)}function ade(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cde(){return this.each(ade)}function ude(e){var t=typeof e=="function"?e:ox(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function fde(){return null}function dde(e,t){var r=typeof e=="function"?e:ox(e),o=t==null?fde:typeof t=="function"?t:rp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function hde(){var e=this.parentNode;e&&e.removeChild(this)}function pde(){return this.each(hde)}function gde(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function vde(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function mde(e){return this.select(e?vde:gde)}function yde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function bde(e){return function(t){e.call(this,t,this.__data__)}}function wde(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 xde(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 _de(e,t,r){return function(){var o=this.__on,s,c=bde(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 Sde(e,t,r){var o=wde(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?_de:xde,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function gx(e,t,r){var o=ux(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 kde(e,t){return function(){return gx(this,e,t)}}function Tde(e,t){return function(){return gx(this,e,t.apply(this,arguments))}}function Cde(e,t){return this.each((typeof t=="function"?Tde:kde)(e,t))}function*Ede(){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 vx=[null];function or(e,t){this._groups=e,this._parents=t}function Pa(){return new or([[document.documentElement]],vx)}function Ade(){return this}or.prototype=Pa.prototype={constructor:or,select:efe,selectAll:ife,selectChild:afe,selectChildren:dfe,filter:hfe,data:bfe,enter:pfe,exit:xfe,join:_fe,merge:Sfe,selection:Ade,order:kfe,sort:Tfe,call:Efe,nodes:Afe,node:Lfe,size:Mfe,empty:$fe,each:Nfe,attr:Ffe,style:qfe,property:Gfe,classed:Zfe,text:tde,html:ode,raise:lde,lower:cde,append:ude,insert:dde,remove:pde,clone:mde,datum:yde,on:Sde,dispatch:Cde,[Symbol.iterator]:Ede};function Gn(e){return typeof e=="string"?new or([[document.querySelector(e)]],[document.documentElement]):new or([[e]],vx)}function Lde(e){let t;for(;t=e.sourceEvent;)e=t;return e}function pi(e,t){if(e=Lde(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 Mde=Object.defineProperty,$de=(e,t,r)=>t in e?Mde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l0=(e,t,r)=>$de(e,typeof t!="symbol"?t+"":t,r);class Nn{constructor(t,r){l0(this,"x"),l0(this,"y"),this.x=t,this.y=r}static of([t,r]){return new Nn(t,r)}add(t){return new Nn(this.x+t.x,this.y+t.y)}subtract(t){return new Nn(this.x-t.x,this.y-t.y)}multiply(t){return new Nn(this.x*t,this.y*t)}divide(t){return new Nn(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 Nn(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 Nn(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new Nn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var Nde={value:()=>{}};function Ra(){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 Fc(r)}function Fc(e){this._=e}function Ode(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}})}Fc.prototype=Ra.prototype={constructor:Fc,on:function(e,t){var r=this._,o=Ode(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Pde(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]=a0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=a0(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 Fc(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 Pde(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function a0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Nde,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Rde={passive:!1},ga={capture:!0,passive:!1};function vd(e){e.stopImmediatePropagation()}function Rs(e){e.preventDefault(),e.stopImmediatePropagation()}function mx(e){var t=e.document.documentElement,r=Gn(e).on("dragstart.drag",Rs,ga);"onselectstart"in t?r.on("selectstart.drag",Rs,ga):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function yx(e,t){var r=e.document.documentElement,o=Gn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Rs,ga),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 Cc=e=>()=>e;function th(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}th.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function zde(e){return!e.ctrlKey&&!e.button}function Ide(){return this.parentNode}function Dde(e,t){return t??{x:e.x,y:e.y}}function Fde(){return navigator.maxTouchPoints||"ontouchstart"in this}function Hde(){var e=zde,t=Ide,r=Dde,o=Fde,s={},c=Ra("start","drag","end"),f=0,d,h,p,v,m=0;function b(T){T.on("mousedown.drag",w).filter(o).on("touchstart.drag",E).on("touchmove.drag",M,Rde).on("touchend.drag touchcancel.drag",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(T,I){if(!(v||!e.call(this,T,I))){var F=R(this,t.call(this,T,I),T,I,"mouse");F&&(Gn(T.view).on("mousemove.drag",A,ga).on("mouseup.drag",L,ga),mx(T.view),vd(T),p=!1,d=T.clientX,h=T.clientY,F("start",T))}}function A(T){if(Rs(T),!p){var I=T.clientX-d,F=T.clientY-h;p=I*I+F*F>m}s.mouse("drag",T)}function L(T){Gn(T.view).on("mousemove.drag mouseup.drag",null),yx(T.view,p),Rs(T),s.mouse("end",T)}function E(T,I){if(e.call(this,T,I)){var F=T.changedTouches,re=t.call(this,T,I),se=F.length,J,G;for(J=0;J<se;++J)(G=R(this,re,T,I,F[J].identifier,F[J]))&&(vd(T),G("start",T,F[J]))}}function M(T){var I=T.changedTouches,F=I.length,re,se;for(re=0;re<F;++re)(se=s[I[re].identifier])&&(Rs(T),se("drag",T,I[re]))}function $(T){var I=T.changedTouches,F=I.length,re,se;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),re=0;re<F;++re)(se=s[I[re].identifier])&&(vd(T),se("end",T,I[re]))}function R(T,I,F,re,se,J){var G=c.copy(),K=pi(J||F,I),N,O,P;if((P=r.call(T,new th("beforestart",{sourceEvent:F,target:b,identifier:se,active:f,x:K[0],y:K[1],dx:0,dy:0,dispatch:G}),re))!=null)return N=P.x-K[0]||0,O=P.y-K[1]||0,function S(H,V,oe){var ve=K,we;switch(H){case"start":s[se]=S,we=f++;break;case"end":delete s[se],--f;case"drag":K=pi(oe||V,I),we=f;break}G.call(H,T,new th(H,{sourceEvent:V,subject:P,target:b,identifier:se,active:we,x:K[0]+N,y:K[1]+O,dx:K[0]-ve[0],dy:K[1]-ve[1],dispatch:G}),re)}}return b.filter=function(T){return arguments.length?(e=typeof T=="function"?T:Cc(!!T),b):e},b.container=function(T){return arguments.length?(t=typeof T=="function"?T:Cc(T),b):t},b.subject=function(T){return arguments.length?(r=typeof T=="function"?T:Cc(T),b):r},b.touchable=function(T){return arguments.length?(o=typeof T=="function"?T:Cc(!!T),b):o},b.on=function(){var T=c.on.apply(c,arguments);return T===c?b:T},b.clickDistance=function(T){return arguments.length?(m=(T=+T)*T,b):Math.sqrt(m)},b}function op(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function bx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function za(){}var va=.7,vu=1/va,zs="\\s*([+-]?\\d+)\\s*",ma="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bde=/^#([0-9a-f]{3,8})$/,Wde=new RegExp(`^rgb\\(${zs},${zs},${zs}\\)$`),qde=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),jde=new RegExp(`^rgba\\(${zs},${zs},${zs},${ma}\\)$`),Ude=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${ma}\\)$`),Vde=new RegExp(`^hsl\\(${ma},${Yr},${Yr}\\)$`),Gde=new RegExp(`^hsla\\(${ma},${Yr},${Yr},${ma}\\)$`),c0={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};op(za,ya,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:u0,formatHex:u0,formatHex8:Kde,formatHsl:Xde,formatRgb:f0,toString:f0});function u0(){return this.rgb().formatHex()}function Kde(){return this.rgb().formatHex8()}function Xde(){return wx(this).formatHsl()}function f0(){return this.rgb().formatRgb()}function ya(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Bde.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?d0(t):r===3?new Xn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ec(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ec(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=Wde.exec(e))?new Xn(t[1],t[2],t[3],1):(t=qde.exec(e))?new Xn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jde.exec(e))?Ec(t[1],t[2],t[3],t[4]):(t=Ude.exec(e))?Ec(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Vde.exec(e))?g0(t[1],t[2]/100,t[3]/100,1):(t=Gde.exec(e))?g0(t[1],t[2]/100,t[3]/100,t[4]):c0.hasOwnProperty(e)?d0(c0[e]):e==="transparent"?new Xn(NaN,NaN,NaN,0):null}function d0(e){return new Xn(e>>16&255,e>>8&255,e&255,1)}function Ec(e,t,r,o){return o<=0&&(e=t=r=NaN),new Xn(e,t,r,o)}function Yde(e){return e instanceof za||(e=ya(e)),e?(e=e.rgb(),new Xn(e.r,e.g,e.b,e.opacity)):new Xn}function nh(e,t,r,o){return arguments.length===1?Yde(e):new Xn(e,t,r,o??1)}function Xn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}op(Xn,nh,bx(za,{brighter(e){return e=e==null?vu:Math.pow(vu,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?va:Math.pow(va,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xn(Do(this.r),Do(this.g),Do(this.b),mu(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:h0,formatHex:h0,formatHex8:Zde,formatRgb:p0,toString:p0}));function h0(){return`#${Ro(this.r)}${Ro(this.g)}${Ro(this.b)}`}function Zde(){return`#${Ro(this.r)}${Ro(this.g)}${Ro(this.b)}${Ro((isNaN(this.opacity)?1:this.opacity)*255)}`}function p0(){const e=mu(this.opacity);return`${e===1?"rgb(":"rgba("}${Do(this.r)}, ${Do(this.g)}, ${Do(this.b)}${e===1?")":`, ${e})`}`}function mu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Do(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ro(e){return e=Do(e),(e<16?"0":"")+e.toString(16)}function g0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ar(e,t,r,o)}function wx(e){if(e instanceof Ar)return new Ar(e.h,e.s,e.l,e.opacity);if(e instanceof za||(e=ya(e)),!e)return new Ar;if(e instanceof Ar)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 Ar(f,d,h,e.opacity)}function Jde(e,t,r,o){return arguments.length===1?wx(e):new Ar(e,t,r,o??1)}function Ar(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}op(Ar,Jde,bx(za,{brighter(e){return e=e==null?vu:Math.pow(vu,e),new Ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?va:Math.pow(va,e),new Ar(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Xn(md(e>=240?e-240:e+120,s,o),md(e,s,o),md(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Ar(v0(this.h),Ac(this.s),Ac(this.l),mu(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=mu(this.opacity);return`${e===1?"hsl(":"hsla("}${v0(this.h)}, ${Ac(this.s)*100}%, ${Ac(this.l)*100}%${e===1?")":`, ${e})`}`}}));function v0(e){return e=(e||0)%360,e<0?e+360:e}function Ac(e){return Math.max(0,Math.min(1,e||0))}function md(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 xx=e=>()=>e;function Qde(e,t){return function(r){return e+r*t}}function ehe(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 the(e){return(e=+e)==1?_x:function(t,r){return r-t?ehe(t,r,e):xx(isNaN(t)?r:t)}}function _x(e,t){var r=t-e;return r?Qde(e,r):xx(isNaN(e)?t:e)}const m0=function e(t){var r=the(t);function o(s,c){var f=r((s=nh(s)).r,(c=nh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=_x(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function Ki(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var rh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yd=new RegExp(rh.source,"g");function nhe(e){return function(){return e}}function rhe(e){return function(t){return e(t)+""}}function ihe(e,t){var r=rh.lastIndex=yd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=rh.exec(e))&&(s=yd.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:Ki(o,s)})),r=yd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?rhe(h[0].x):nhe(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var y0=180/Math.PI,ih={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Sx(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)*y0,skewX:Math.atan(h)*y0,scaleX:f,scaleY:d}}var Lc;function ohe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ih:Sx(t.a,t.b,t.c,t.d,t.e,t.f)}function she(e){return e==null||(Lc||(Lc=document.createElementNS("http://www.w3.org/2000/svg","g")),Lc.setAttribute("transform",e),!(e=Lc.transform.baseVal.consolidate()))?ih:(e=e.matrix,Sx(e.a,e.b,e.c,e.d,e.e,e.f))}function kx(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,A){if(p!==m||v!==b){var L=w.push("translate(",null,t,null,r);A.push({i:L-4,x:Ki(p,m)},{i:L-2,x:Ki(v,b)})}else(m||b)&&w.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Ki(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Ki(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,w,A){if(p!==m||v!==b){var L=w.push(s(w)+"scale(",null,",",null,")");A.push({i:L-4,x:Ki(p,m)},{i:L-2,x:Ki(v,b)})}else(m!==1||b!==1)&&w.push(s(w)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(w){for(var A=-1,L=b.length,E;++A<L;)m[(E=b[A]).i]=E.x(w);return m.join("")}}}var lhe=kx(ohe,"px, ","px)","deg)"),ahe=kx(she,", ",")",")"),che=1e-12;function b0(e){return((e=Math.exp(e))+1/e)/2}function uhe(e){return((e=Math.exp(e))-1/e)/2}function fhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const dhe=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],w=v-d,A=m-h,L=w*w+A*A,E,M;if(L<che)M=Math.log(b/p)/t,E=function(re){return[d+re*w,h+re*A,p*Math.exp(t*re*M)]};else{var $=Math.sqrt(L),R=(b*b-p*p+o*L)/(2*p*r*$),T=(b*b-p*p-o*L)/(2*b*r*$),I=Math.log(Math.sqrt(R*R+1)-R),F=Math.log(Math.sqrt(T*T+1)-T);M=(F-I)/t,E=function(re){var se=re*M,J=b0(I),G=p/(r*$)*(J*fhe(t*se+I)-uhe(I));return[d+G*w,h+G*A,p*J/b0(t*se+I)]}}return E.duration=M*1e3*t/Math.SQRT2,E}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 Us=0,Il=0,Nl=0,Tx=1e3,yu,Dl,bu=0,Ho=0,Ku=0,ba=typeof performance=="object"&&performance.now?performance:Date,Cx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function sp(){return Ho||(Cx(hhe),Ho=ba.now()+Ku)}function hhe(){Ho=0}function wu(){this._call=this._time=this._next=null}wu.prototype=lp.prototype={constructor:wu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?sp():+r)+(t==null?0:+t),!this._next&&Dl!==this&&(Dl?Dl._next=this:yu=this,Dl=this),this._call=e,this._time=r,oh()},stop:function(){this._call&&(this._call=null,this._time=1/0,oh())}};function lp(e,t,r){var o=new wu;return o.restart(e,t,r),o}function phe(){sp(),++Us;for(var e=yu,t;e;)(t=Ho-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Us}function w0(){Ho=(bu=ba.now())+Ku,Us=Il=0;try{phe()}finally{Us=0,vhe(),Ho=0}}function ghe(){var e=ba.now(),t=e-bu;t>Tx&&(Ku-=t,bu=e)}function vhe(){for(var e,t=yu,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:yu=r);Dl=e,oh(o)}function oh(e){if(!Us){Il&&(Il=clearTimeout(Il));var t=e-Ho;t>24?(e<1/0&&(Il=setTimeout(w0,e-ba.now()-Ku)),Nl&&(Nl=clearInterval(Nl))):(Nl||(bu=ba.now(),Nl=setInterval(ghe,Tx)),Us=1,Cx(w0))}}function x0(e,t,r){var o=new wu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var mhe=Ra("start","end","cancel","interrupt"),yhe=[],Ex=0,_0=1,sh=2,Hc=3,S0=4,lh=5,Bc=6;function Xu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;bhe(e,r,{name:t,index:o,group:s,on:mhe,tween:yhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:Ex})}function ap(e,t){var r=Ir(e,t);if(r.state>Ex)throw new Error("too late; already scheduled");return r}function ei(e,t){var r=Ir(e,t);if(r.state>Hc)throw new Error("too late; already running");return r}function Ir(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function bhe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=lp(c,0,r.time);function c(p){r.state=_0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,w;if(r.state!==_0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===Hc)return x0(f);w.state===S0?(w.state=Bc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Bc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(x0(function(){r.state===Hc&&(r.state=S0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=sh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===sh){for(r.state=Hc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(w=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=lh,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===lh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Bc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Wc(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>sh&&o.state<lh,o.state=Bc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function whe(e){return this.each(function(){Wc(this,e)})}function xhe(e,t){var r,o;return function(){var s=ei(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 _he(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=ei(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 She(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Ir(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?xhe:_he)(r,e,t))}function cp(e,t,r){var o=e._id;return e.each(function(){var s=ei(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Ir(s,o).value[t]}}function Ax(e,t){var r;return(typeof t=="number"?Ki:t instanceof ya?m0:(r=ya(t))?(t=r,m0):ihe)(e,t)}function khe(e){return function(){this.removeAttribute(e)}}function The(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Che(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 Ehe(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 Ahe(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 Lhe(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 Mhe(e,t){var r=Gu(e),o=r==="transform"?ahe:Ax;return this.attrTween(e,typeof t=="function"?(r.local?Lhe:Ahe)(r,o,cp(this,"attr."+e,t)):t==null?(r.local?The:khe)(r):(r.local?Ehe:Che)(r,o,t))}function $he(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Nhe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ohe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Nhe(e,c)),r}return s._value=t,s}function Phe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&$he(e,c)),r}return s._value=t,s}function Rhe(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=Gu(e);return this.tween(r,(o.local?Ohe:Phe)(o,t))}function zhe(e,t){return function(){ap(this,e).delay=+t.apply(this,arguments)}}function Ihe(e,t){return t=+t,function(){ap(this,e).delay=t}}function Dhe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?zhe:Ihe)(t,e)):Ir(this.node(),t).delay}function Fhe(e,t){return function(){ei(this,e).duration=+t.apply(this,arguments)}}function Hhe(e,t){return t=+t,function(){ei(this,e).duration=t}}function Bhe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Fhe:Hhe)(t,e)):Ir(this.node(),t).duration}function Whe(e,t){if(typeof t!="function")throw new Error;return function(){ei(this,e).ease=t}}function qhe(e){var t=this._id;return arguments.length?this.each(Whe(t,e)):Ir(this.node(),t).ease}function jhe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ei(this,e).ease=r}}function Uhe(e){if(typeof e!="function")throw new Error;return this.each(jhe(this._id,e))}function Vhe(e){typeof e!="function"&&(e=lx(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 Si(o,this._parents,this._name,this._id)}function Ghe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,w=0;w<v;++w)(b=h[w]||p[w])&&(m[w]=b);for(;d<o;++d)f[d]=t[d];return new Si(f,this._parents,this._name,this._id)}function Khe(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 Xhe(e,t,r){var o,s,c=Khe(t)?ap:ei;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Yhe(e,t){var r=this._id;return arguments.length<2?Ir(this.node(),r).on.on(e):this.each(Xhe(r,e,t))}function Zhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Jhe(){return this.on("end.remove",Zhe(this._id))}function Qhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=rp(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Xu(p[b],t,r,b,p,Ir(v,r)));return new Si(c,this._parents,t,r)}function epe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=sx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),w,A=Ir(v,r),L=0,E=b.length;L<E;++L)(w=b[L])&&Xu(w,t,r,L,b,A);c.push(b),f.push(v)}return new Si(c,f,t,r)}var tpe=Pa.prototype.constructor;function npe(){return new tpe(this._groups,this._parents)}function rpe(e,t){var r,o,s;return function(){var c=js(this,e),f=(this.style.removeProperty(e),js(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function Lx(e){return function(){this.style.removeProperty(e)}}function ipe(e,t,r){var o,s=r+"",c;return function(){var f=js(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function ope(e,t,r){var o,s,c;return function(){var f=js(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),js(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function spe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=ei(this,e),p=h.on,v=h.value[c]==null?d||(d=Lx(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function lpe(e,t,r){var o=(e+="")=="transform"?lhe:Ax;return t==null?this.styleTween(e,rpe(e,o)).on("end.style."+e,Lx(e)):typeof t=="function"?this.styleTween(e,ope(e,o,cp(this,"style."+e,t))).each(spe(this._id,e)):this.styleTween(e,ipe(e,o,t),r).on("end.style."+e,null)}function ape(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function cpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&ape(e,f,r)),o}return c._value=t,c}function upe(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,cpe(e,t,r??""))}function fpe(e){return function(){this.textContent=e}}function dpe(e){return function(){var t=e(this);this.textContent=t??""}}function hpe(e){return this.tween("text",typeof e=="function"?dpe(cp(this,"text",e)):fpe(e==null?"":e+""))}function ppe(e){return function(t){this.textContent=e.call(this,t)}}function gpe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&ppe(s)),t}return o._value=e,o}function vpe(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,gpe(e))}function mpe(){for(var e=this._name,t=this._id,r=Mx(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Ir(h,t);Xu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Si(o,this._parents,e,r)}function ype(){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=ei(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var bpe=0;function Si(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function Mx(){return++bpe}var fi=Pa.prototype;Si.prototype={constructor:Si,select:Qhe,selectAll:epe,selectChild:fi.selectChild,selectChildren:fi.selectChildren,filter:Vhe,merge:Ghe,selection:npe,transition:mpe,call:fi.call,nodes:fi.nodes,node:fi.node,size:fi.size,empty:fi.empty,each:fi.each,on:Yhe,attr:Mhe,attrTween:Rhe,style:lpe,styleTween:upe,text:hpe,textTween:vpe,remove:Jhe,tween:She,delay:Dhe,duration:Bhe,ease:qhe,easeVarying:Uhe,end:ype,[Symbol.iterator]:fi[Symbol.iterator]};function wpe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var xpe={time:null,delay:0,duration:250,ease:wpe};function _pe(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 Spe(e){var t,r;e instanceof Si?(t=e._id,e=e._name):(t=Mx(),(r=xpe).time=sp(),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])&&Xu(h,e,t,p,f,r||_pe(h,t));return new Si(o,this._parents,e,t)}Pa.prototype.interrupt=whe;Pa.prototype.transition=Spe;const Mc=e=>()=>e;function kpe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function yi(e,t,r){this.k=e,this.x=t,this.y=r}yi.prototype={constructor:yi,scale:function(e){return e===1?this:new yi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new yi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var up=new yi(1,0,0);yi.prototype;function bd(e){e.stopImmediatePropagation()}function Ol(e){e.preventDefault(),e.stopImmediatePropagation()}function Tpe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Cpe(){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 k0(){return this.__zoom||up}function Epe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ape(){return navigator.maxTouchPoints||"ontouchstart"in this}function Lpe(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 Mpe(){var e=Tpe,t=Cpe,r=Lpe,o=Epe,s=Ape,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=dhe,p=Ra("start","zoom","end"),v,m,b,w=500,A=150,L=0,E=10;function M(P){P.property("__zoom",k0).on("wheel.zoom",se,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",K).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(P,S,H,V){var oe=P.selection?P.selection():P;oe.property("__zoom",k0),P!==oe?I(P,S,H,V):oe.interrupt().each(function(){F(this,arguments).event(V).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},M.scaleBy=function(P,S,H,V){M.scaleTo(P,function(){var oe=this.__zoom.k,ve=typeof S=="function"?S.apply(this,arguments):S;return oe*ve},H,V)},M.scaleTo=function(P,S,H,V){M.transform(P,function(){var oe=t.apply(this,arguments),ve=this.__zoom,we=H==null?T(oe):typeof H=="function"?H.apply(this,arguments):H,Pe=ve.invert(we),je=typeof S=="function"?S.apply(this,arguments):S;return r(R($(ve,je),we,Pe),oe,f)},H,V)},M.translateBy=function(P,S,H,V){M.transform(P,function(){return r(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof H=="function"?H.apply(this,arguments):H),t.apply(this,arguments),f)},null,V)},M.translateTo=function(P,S,H,V,oe){M.transform(P,function(){var ve=t.apply(this,arguments),we=this.__zoom,Pe=V==null?T(ve):typeof V=="function"?V.apply(this,arguments):V;return r(up.translate(Pe[0],Pe[1]).scale(we.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof H=="function"?-H.apply(this,arguments):-H),ve,f)},V,oe)};function $(P,S){return S=Math.max(c[0],Math.min(c[1],S)),S===P.k?P:new yi(S,P.x,P.y)}function R(P,S,H){var V=S[0]-H[0]*P.k,oe=S[1]-H[1]*P.k;return V===P.x&&oe===P.y?P:new yi(P.k,V,oe)}function T(P){return[(+P[0][0]+ +P[1][0])/2,(+P[0][1]+ +P[1][1])/2]}function I(P,S,H,V){P.on("start.zoom",function(){F(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){F(this,arguments).event(V).end()}).tween("zoom",function(){var oe=this,ve=arguments,we=F(oe,ve).event(V),Pe=t.apply(oe,ve),je=H==null?T(Pe):typeof H=="function"?H.apply(oe,ve):H,Je=Math.max(Pe[1][0]-Pe[0][0],Pe[1][1]-Pe[0][1]),Xe=oe.__zoom,Ye=typeof S=="function"?S.apply(oe,ve):S,ne=h(Xe.invert(je).concat(Je/Xe.k),Ye.invert(je).concat(Je/Ye.k));return function(W){if(W===1)W=Ye;else{var Q=ne(W),X=Je/Q[2];W=new yi(X,je[0]-Q[0]*X,je[1]-Q[1]*X)}we.zoom(null,W)}})}function F(P,S,H){return!H&&P.__zooming||new re(P,S)}function re(P,S){this.that=P,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(P,S),this.taps=0}re.prototype={event:function(P){return P&&(this.sourceEvent=P),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(P,S){return this.mouse&&P!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&P!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&P!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(P){var S=Gn(this.that).datum();p.call(P,this.that,new kpe(P,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),S)}};function se(P,...S){if(!e.apply(this,arguments))return;var H=F(this,S).event(P),V=this.__zoom,oe=Math.max(c[0],Math.min(c[1],V.k*Math.pow(2,o.apply(this,arguments)))),ve=pi(P);if(H.wheel)(H.mouse[0][0]!==ve[0]||H.mouse[0][1]!==ve[1])&&(H.mouse[1]=V.invert(H.mouse[0]=ve)),clearTimeout(H.wheel);else{if(V.k===oe)return;H.mouse=[ve,V.invert(ve)],Wc(this),H.start()}Ol(P),H.wheel=setTimeout(we,A),H.zoom("mouse",r(R($(V,oe),H.mouse[0],H.mouse[1]),H.extent,f));function we(){H.wheel=null,H.end()}}function J(P,...S){if(b||!e.apply(this,arguments))return;var H=P.currentTarget,V=F(this,S,!0).event(P),oe=Gn(P.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",Je,!0),ve=pi(P,H),we=P.clientX,Pe=P.clientY;mx(P.view),bd(P),V.mouse=[ve,this.__zoom.invert(ve)],Wc(this),V.start();function je(Xe){if(Ol(Xe),!V.moved){var Ye=Xe.clientX-we,ne=Xe.clientY-Pe;V.moved=Ye*Ye+ne*ne>L}V.event(Xe).zoom("mouse",r(R(V.that.__zoom,V.mouse[0]=pi(Xe,H),V.mouse[1]),V.extent,f))}function Je(Xe){oe.on("mousemove.zoom mouseup.zoom",null),yx(Xe.view,V.moved),Ol(Xe),V.event(Xe).end()}}function G(P,...S){if(e.apply(this,arguments)){var H=this.__zoom,V=pi(P.changedTouches?P.changedTouches[0]:P,this),oe=H.invert(V),ve=H.k*(P.shiftKey?.5:2),we=r(R($(H,ve),V,oe),t.apply(this,S),f);Ol(P),d>0?Gn(this).transition().duration(d).call(I,we,V,P):Gn(this).call(M.transform,we,V,P)}}function K(P,...S){if(e.apply(this,arguments)){var H=P.touches,V=H.length,oe=F(this,S,P.changedTouches.length===V).event(P),ve,we,Pe,je;for(bd(P),we=0;we<V;++we)Pe=H[we],je=pi(Pe,this),je=[je,this.__zoom.invert(je),Pe.identifier],oe.touch0?!oe.touch1&&oe.touch0[2]!==je[2]&&(oe.touch1=je,oe.taps=0):(oe.touch0=je,ve=!0,oe.taps=1+!!v);v&&(v=clearTimeout(v)),ve&&(oe.taps<2&&(m=je[0],v=setTimeout(function(){v=null},w)),Wc(this),oe.start())}}function N(P,...S){if(this.__zooming){var H=F(this,S).event(P),V=P.changedTouches,oe=V.length,ve,we,Pe,je;for(Ol(P),ve=0;ve<oe;++ve)we=V[ve],Pe=pi(we,this),H.touch0&&H.touch0[2]===we.identifier?H.touch0[0]=Pe:H.touch1&&H.touch1[2]===we.identifier&&(H.touch1[0]=Pe);if(we=H.that.__zoom,H.touch1){var Je=H.touch0[0],Xe=H.touch0[1],Ye=H.touch1[0],ne=H.touch1[1],W=(W=Ye[0]-Je[0])*W+(W=Ye[1]-Je[1])*W,Q=(Q=ne[0]-Xe[0])*Q+(Q=ne[1]-Xe[1])*Q;we=$(we,Math.sqrt(W/Q)),Pe=[(Je[0]+Ye[0])/2,(Je[1]+Ye[1])/2],je=[(Xe[0]+ne[0])/2,(Xe[1]+ne[1])/2]}else if(H.touch0)Pe=H.touch0[0],je=H.touch0[1];else return;H.zoom("touch",r(R(we,Pe,je),H.extent,f))}}function O(P,...S){if(this.__zooming){var H=F(this,S).event(P),V=P.changedTouches,oe=V.length,ve,we;for(bd(P),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),ve=0;ve<oe;++ve)we=V[ve],H.touch0&&H.touch0[2]===we.identifier?delete H.touch0:H.touch1&&H.touch1[2]===we.identifier&&delete H.touch1;if(H.touch1&&!H.touch0&&(H.touch0=H.touch1,delete H.touch1),H.touch0)H.touch0[1]=this.__zoom.invert(H.touch0[0]);else if(H.end(),H.taps===2&&(we=pi(we,this),Math.hypot(m[0]-we[0],m[1]-we[1])<E)){var Pe=Gn(this).on("dblclick.zoom");Pe&&Pe.apply(this,arguments)}}}return M.wheelDelta=function(P){return arguments.length?(o=typeof P=="function"?P:Mc(+P),M):o},M.filter=function(P){return arguments.length?(e=typeof P=="function"?P:Mc(!!P),M):e},M.touchable=function(P){return arguments.length?(s=typeof P=="function"?P:Mc(!!P),M):s},M.extent=function(P){return arguments.length?(t=typeof P=="function"?P:Mc([[+P[0][0],+P[0][1]],[+P[1][0],+P[1][1]]]),M):t},M.scaleExtent=function(P){return arguments.length?(c[0]=+P[0],c[1]=+P[1],M):[c[0],c[1]]},M.translateExtent=function(P){return arguments.length?(f[0][0]=+P[0][0],f[1][0]=+P[1][0],f[0][1]=+P[0][1],f[1][1]=+P[1][1],M):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},M.constrain=function(P){return arguments.length?(r=P,M):r},M.duration=function(P){return arguments.length?(d=+P,M):d},M.interpolate=function(P){return arguments.length?(h=P,M):h},M.on=function(){var P=p.on.apply(p,arguments);return P===p?M:P},M.clickDistance=function(P){return arguments.length?(L=(P=+P)*P,M):Math.sqrt(L)},M.tapDistance=function(P){return arguments.length?(E=+P,M):E},M}function $pe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return $x(this.cover(t,r),t,r,e)}function $x(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,w,A,L,E,M,$;if(!c)return e._root=f,e;for(;c.length;)if((L=t>=(m=(d+p)/2))?d=m:p=m,(E=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[M=E<<1|L]))return s[M]=f,e;if(w=+e._x.call(null,c.data),A=+e._y.call(null,c.data),t===w&&r===A)return f.next=c,s?s[M]=f:e._root=f,e;do s=s?s[M]=new Array(4):e._root=new Array(4),(L=t>=(m=(d+p)/2))?d=m:p=m,(E=r>=(b=(h+v)/2))?h=b:v=b;while((M=E<<1|L)===($=(A>=b)<<1|w>=m));return s[$]=c,s[M]=f,e}function Npe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)$x(this,f[r],d[r],e[r]);return this}function Ope(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 Ppe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Rpe(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 Pn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function zpe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],w=this._root,A,L;for(w&&b.push(new Pn(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);A=b.pop();)if(!(!(w=A.node)||(f=A.x0)>v||(d=A.y0)>m||(h=A.x1)<s||(p=A.y1)<c))if(w.length){var E=(f+h)/2,M=(d+p)/2;b.push(new Pn(w[3],E,M,h,p),new Pn(w[2],f,M,E,p),new Pn(w[1],E,d,h,M),new Pn(w[0],f,d,E,M)),(L=(t>=M)<<1|e>=E)&&(A=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=A)}else{var $=e-+this._x.call(null,w.data),R=t-+this._y.call(null,w.data),T=$*$+R*R;if(T<r){var I=Math.sqrt(r=T);s=e-I,c=t-I,v=e+I,m=t+I,o=w.data}}return o}function Ipe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,w,A,L,E,M;if(!r)return this;if(r.length)for(;;){if((A=v>=(b=(f+h)/2))?f=b:h=b,(L=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[E=L<<1|A]))return this;if(!r.length)break;(t[E+1&3]||t[E+2&3]||t[E+3&3])&&(o=t,M=E)}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[E]=c:delete t[E],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[M]=r:this._root=r),this):(this._root=c,this)}function Dpe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Fpe(){return this._root}function Hpe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Bpe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Pn(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new Pn(s,p,v,d,h)),(s=o[2])&&t.push(new Pn(s,c,v,p,h)),(s=o[1])&&t.push(new Pn(s,p,f,d,v)),(s=o[0])&&t.push(new Pn(s,c,f,p,v))}return this}function Wpe(e){var t=[],r=[],o;for(this._root&&t.push(new Pn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new Pn(c,f,d,v,m)),(c=s[1])&&t.push(new Pn(c,v,d,h,m)),(c=s[2])&&t.push(new Pn(c,f,m,v,p)),(c=s[3])&&t.push(new Pn(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function qpe(e){return e[0]}function jpe(e){return arguments.length?(this._x=e,this):this._x}function Upe(e){return e[1]}function Vpe(e){return arguments.length?(this._y=e,this):this._y}function fp(e,t,r){var o=new dp(t??qpe,r??Upe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function dp(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 T0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var In=fp.prototype=dp.prototype;In.copy=function(){var e=new dp(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=T0(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]=T0(o));return e};In.add=$pe;In.addAll=Npe;In.cover=Ope;In.data=Ppe;In.extent=Rpe;In.find=zpe;In.remove=Ipe;In.removeAll=Dpe;In.root=Fpe;In.size=Hpe;In.visit=Bpe;In.visitAfter=Wpe;In.x=jpe;In.y=Vpe;function zn(e){return function(){return e}}function Zi(e){return(e()-.5)*1e-6}function Gpe(e){return e.x+e.vx}function Kpe(e){return e.y+e.vy}function Xpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=zn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,A,L,E,M=0;M<c;++M)for(m=fp(t,Gpe,Kpe).visitAfter(d),p=0;p<v;++p)b=t[p],L=r[b.index],E=L*L,w=b.x+b.vx,A=b.y+b.vy,m.visit($);function $(R,T,I,F,re){var se=R.data,J=R.r,G=L+J;if(se){if(se.index>b.index){var K=w-se.x-se.vx,N=A-se.y-se.vy,O=K*K+N*N;O<G*G&&(K===0&&(K=Zi(o),O+=K*K),N===0&&(N=Zi(o),O+=N*N),O=(G-(O=Math.sqrt(O)))/O*s,b.vx+=(K*=O)*(G=(J*=J)/(E+J)),b.vy+=(N*=O)*G,se.vx-=K*(G=1-G),se.vy-=N*G)}return}return T>w+G||F<w-G||I>A+G||re<A-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:zn(+p),h(),f):e},f}function Ype(e){return e.index}function C0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Zpe(e){var t=Ype,r=m,o,s=zn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(E){return 1/Math.min(d[E.source.index],d[E.target.index])}function b(E){for(var M=0,$=e.length;M<v;++M)for(var R=0,T,I,F,re,se,J,G;R<$;++R)T=e[R],I=T.source,F=T.target,re=F.x+F.vx-I.x-I.vx||Zi(p),se=F.y+F.vy-I.y-I.vy||Zi(p),J=Math.sqrt(re*re+se*se),J=(J-c[R])/J*E*o[R],re*=J,se*=J,F.vx-=re*(G=h[R]),F.vy-=se*G,I.vx+=re*(G=1-G),I.vy+=se*G}function w(){if(f){var E,M=f.length,$=e.length,R=new Map(f.map((I,F)=>[t(I,F,f),I])),T;for(E=0,d=new Array(M);E<$;++E)T=e[E],T.index=E,typeof T.source!="object"&&(T.source=C0(R,T.source)),typeof T.target!="object"&&(T.target=C0(R,T.target)),d[T.source.index]=(d[T.source.index]||0)+1,d[T.target.index]=(d[T.target.index]||0)+1;for(E=0,h=new Array($);E<$;++E)T=e[E],h[E]=d[T.source.index]/(d[T.source.index]+d[T.target.index]);o=new Array($),A(),c=new Array($),L()}}function A(){if(f)for(var E=0,M=e.length;E<M;++E)o[E]=+r(e[E],E,e)}function L(){if(f)for(var E=0,M=e.length;E<M;++E)c[E]=+s(e[E],E,e)}return b.initialize=function(E,M){f=E,p=M,w()},b.links=function(E){return arguments.length?(e=E,w(),b):e},b.id=function(E){return arguments.length?(t=E,b):t},b.iterations=function(E){return arguments.length?(v=+E,b):v},b.strength=function(E){return arguments.length?(r=typeof E=="function"?E:zn(+E),A(),b):r},b.distance=function(E){return arguments.length?(s=typeof E=="function"?E:zn(+E),L(),b):s},b}const Jpe=1664525,Qpe=1013904223,E0=4294967296;function ege(){let e=1;return()=>(e=(Jpe*e+Qpe)%E0)/E0}function tge(e){return e.x}function nge(e){return e.y}var rge=10,ige=Math.PI*(3-Math.sqrt(5));function oge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=lp(m),p=Ra("tick","end"),v=ege();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(L){var E,M=e.length,$;L===void 0&&(L=1);for(var R=0;R<L;++R)for(r+=(c-r)*s,d.forEach(function(T){T(r)}),E=0;E<M;++E)$=e[E],$.fx==null?$.x+=$.vx*=f:($.x=$.fx,$.vx=0),$.fy==null?$.y+=$.vy*=f:($.y=$.fy,$.vy=0);return t}function w(){for(var L=0,E=e.length,M;L<E;++L){if(M=e[L],M.index=L,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),isNaN(M.x)||isNaN(M.y)){var $=rge*Math.sqrt(.5+L),R=L*ige;M.x=$*Math.cos(R),M.y=$*Math.sin(R)}(isNaN(M.vx)||isNaN(M.vy))&&(M.vx=M.vy=0)}}function A(L){return L.initialize&&L.initialize(e,v),L}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(L){return arguments.length?(e=L,w(),d.forEach(A),t):e},alpha:function(L){return arguments.length?(r=+L,t):r},alphaMin:function(L){return arguments.length?(o=+L,t):o},alphaDecay:function(L){return arguments.length?(s=+L,t):+s},alphaTarget:function(L){return arguments.length?(c=+L,t):c},velocityDecay:function(L){return arguments.length?(f=1-L,t):1-f},randomSource:function(L){return arguments.length?(v=L,d.forEach(A),t):v},force:function(L,E){return arguments.length>1?(E==null?d.delete(L):d.set(L,A(E)),t):d.get(L)},find:function(L,E,M){var $=0,R=e.length,T,I,F,re,se;for(M==null?M=1/0:M*=M,$=0;$<R;++$)re=e[$],T=L-re.x,I=E-re.y,F=T*T+I*I,F<M&&(se=re,M=F);return se},on:function(L,E){return arguments.length>1?(p.on(L,E),t):p.on(L)}}}function sge(){var e,t,r,o,s=zn(-30),c,f=1,d=1/0,h=.81;function p(w){var A,L=e.length,E=fp(e,tge,nge).visitAfter(m);for(o=w,A=0;A<L;++A)t=e[A],E.visit(b)}function v(){if(e){var w,A=e.length,L;for(c=new Array(A),w=0;w<A;++w)L=e[w],c[L.index]=+s(L,w,e)}}function m(w){var A=0,L,E,M=0,$,R,T;if(w.length){for($=R=T=0;T<4;++T)(L=w[T])&&(E=Math.abs(L.value))&&(A+=L.value,M+=E,$+=E*L.x,R+=E*L.y);w.x=$/M,w.y=R/M}else{L=w,L.x=L.data.x,L.y=L.data.y;do A+=c[L.data.index];while(L=L.next)}w.value=A}function b(w,A,L,E){if(!w.value)return!0;var M=w.x-t.x,$=w.y-t.y,R=E-A,T=M*M+$*$;if(R*R/h<T)return T<d&&(M===0&&(M=Zi(r),T+=M*M),$===0&&($=Zi(r),T+=$*$),T<f&&(T=Math.sqrt(f*T)),t.vx+=M*w.value*o/T,t.vy+=$*w.value*o/T),!0;if(w.length||T>=d)return;(w.data!==t||w.next)&&(M===0&&(M=Zi(r),T+=M*M),$===0&&($=Zi(r),T+=$*$),T<f&&(T=Math.sqrt(f*T)));do w.data!==t&&(R=c[w.data.index]*o/T,t.vx+=M*R,t.vy+=$*R);while(w=w.next)}return p.initialize=function(w,A){e=w,r=A,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:zn(+w),v(),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 lge(e){var t=zn(.1),r,o,s;typeof e!="function"&&(e=zn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:zn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:zn(+d),f(),c):e},c}function age(e){var t=zn(.1),r,o,s;typeof e!="function"&&(e=zn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:zn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:zn(+d),f(),c):e},c}function cge(){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 A0(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 Ji(...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]=Ji.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:A0(t[o])&&A0(r[o])?t[o]=Ji(t[o],r[o]):t[o]=r[o])}),t},{})}const Nx={mergeArrays:!0};Ji.options=Nx;Ji.withOptions=(e,...t)=>{Ji.options={mergeArrays:!0,...e};const r=Ji(...t);return Ji.options=Nx,r};function uge(){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 fge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Ox(e){e.preventDefault(),e.stopPropagation()}function Px(e){return typeof e=="number"}function uo(e,t){return Px(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function dge(e){return`${e.source.id}-${e.target.id}`}function Rx(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function hge(e){return`url(#${Rx(e.color)})`}function pge(e){return{size:e,padding:(t,r)=>uo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const zx={Arrow:e=>pge(e)},gge=(e,t,r)=>[t/2,r/2],vge=(e,t,r)=>[L0(0,t),L0(0,r)];function L0(e,t){return Math.random()*(t-e)+e}const ah={Centered:gge,Randomized:vge};function mge(){return{autoResize:!1,callbacks:{},hooks:{},initial:fge(),nodeRadius:16,marker:zx.Arrow(4),modifiers:{},positionInitializer:ah.Centered,simulation:{alphas:cge(),forces:uge()},zoom:{initial:1,min:.1,max:2}}}function yge(e={}){return Ji.withOptions({mergeArrays:!1},mge(),e)}function bge({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>Ox(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,up.translate(c,f).scale(d)),p.append("g")}function wge({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function xge({config:e,onDragStart:t,onDragEnd:r}){var s,c;const o=Hde().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Gn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Gn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(c=(s=e.modifiers).drag)==null||c.call(s,o),o}function _ge({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}:Sge({links:c},r)}function Sge(e,t){const r=[...kge(e,t),...Tge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function kge(e,t){return Ix(e,t,(r,o)=>r.target.id===o.id)}function Tge(e,t){return Ix(e,t,(r,o)=>r.source.id===o.id)}function Ix(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 ch(e){return e.x??0}function uh(e){return e.y??0}function hp({source:e,target:t}){const r=new Nn(ch(e),uh(e)),o=new Nn(ch(t),uh(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function Dx({center:e,node:t}){const r=new Nn(ch(t),uh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Nn(0,1))),{n:r,c:o}}function Fx({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=hp({source:t,target:r}),f=o.add(c.multiply(uo(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function Cge(e){const{start:t,end:r}=Fx(e);return`M${t.x},${t.y}
46
- L${r.x},${r.y}`}function Ege(e){const{start:t,end:r}=Fx(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Age({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=hp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(uo(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(uo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
47
- A${m},${m},0,0,1,${v.x},${v.y}`}function Lge({center:e,config:t,node:r}){const{n:o,c:s}=Dx({center:e,node:r}),c=uo(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
48
- A${c},${c},0,1,0,${v.x},${v.y}`}function Mge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=hp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function $ge({center:e,config:t,node:r}){const{n:o,c:s}=Dx({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*uo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Is={line:{labelTransform:Ege,path:Cge},arc:{labelTransform:Mge,path:Age},reflexive:{labelTransform:$ge,path:Lge}};function Nge(e){return e.append("g").classed("links",!0).selectAll("path")}function Oge({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>dge(c)).join(c=>{var p,v,m,b;const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",w=>hge(w)).style("stroke",w=>w.color);(v=(p=e.modifiers).link)==null||v.call(p,d);const h=f.append("text").classed("link__label",!0).style("fill",w=>w.label?w.label.color:null).style("font-size",w=>w.label?w.label.fontSize:null).text(w=>w.label?w.label.text:null);return(b=(m=e.modifiers).linkLabel)==null||b.call(m,h),f});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Pge(e){Rge(e),zge(e)}function Rge({center:e,config:t,graph:r,selection:o}){o==null||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?Is.reflexive.path({config:t,node:s.source,center:e}):Hx(r,s.source,s.target)?Is.arc.path({config:t,source:s.source,target:s.target}):Is.line.path({config:t,source:s.source,target:s.target}))}function zge({config:e,center:t,graph:r,selection:o}){o==null||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?Is.reflexive.labelTransform({config:e,node:s.source,center:t}):Hx(r,s.source,s.target)?Is.arc.labelTransform({config:e,source:s.source,target:s.target}):Is.line.labelTransform({config:e,source:s.source,target:s.target}))}function Hx(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 Ige(e){return e.append("defs").selectAll("marker")}function Dge({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Fge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>Rx(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",Hge(e.marker.path)),s})}function Fge(e){return[...new Set(e.links.map(t=>t.color))]}function Hge(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 Bge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Wge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var b,w,A,L;const p=h.append("g");t!==void 0&&p.call(t);const v=p.append("circle").classed("node",!0).attr("r",E=>uo(e,E)).on("contextmenu",(E,M)=>{Ox(E),o(M)}).on("pointerdown",(E,M)=>jge(E,M,s??o)).style("fill",E=>E.color);(w=(b=e.modifiers).node)==null||w.call(b,v);const m=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.label.text:null);return(L=(A=e.modifiers).nodeLabel)==null||L.call(A,m),p});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const qge=500;function jge(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>qge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Uge(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Vge({center:e,config:t,graph:r,onTick:o}){var p,v;const s=oge(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const m=c.strength;s.force("x",lge(()=>e().x).strength(m)).force("y",age(()=>e().y).strength(m))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",sge().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",Xpe().radius(m=>d.radiusMultiplier*uo(t,m)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Zpe(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),(v=(p=t.modifiers).simulation)==null||v.call(p,s),s}function Gge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var f,d;const c=Mpe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(d=(f=t.modifiers).zoom)==null||d.call(f,c),c}class Kge{constructor(t,r,o){bt(this,"nodeTypes");bt(this,"_nodeTypeFilter");bt(this,"_includeUnlinked",!0);bt(this,"_linkFilter",()=>!0);bt(this,"_showLinkLabels",!0);bt(this,"_showNodeLabels",!0);bt(this,"filteredGraph");bt(this,"width",0);bt(this,"height",0);bt(this,"simulation");bt(this,"canvas");bt(this,"linkSelection");bt(this,"nodeSelection");bt(this,"markerSelection");bt(this,"zoom");bt(this,"drag");bt(this,"xOffset",0);bt(this,"yOffset",0);bt(this,"scale");bt(this,"focusedNode");bt(this,"resizeObserver");bt(this,"container");bt(this,"graph");bt(this,"config");if(this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Yue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Nn.of([this.width,this.height]).divide(2).subtract(Nn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(Px(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Dge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Oge({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Wge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Vge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Gge({config:this.config,canvasContainer:()=>Gn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=bge({applyZoom:this.scale!==1,container:Gn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Nge(this.canvas),this.nodeSelection=Bge(this.canvas),this.markerSelection=Ige(this.canvas),this.drag=xge({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Uge(this.nodeSelection),Pge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Gn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){wge({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=_ge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function M0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Xge(e){return{...e}}function Bx(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Yge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Zge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Jge={flex:"~ gap-1","items-center":"","select-none":""},Qge=["id","checked","onChange"],eve=["for"],tve=at({__name:"ViewModuleGraph",props:ra({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Pu(e,"modelValue"),{graph:o}=qS(t),s=Ue(),c=Ue(!1),f=Ue(),d=Ue();Rh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),fo(()=>{v()}),Nu(()=>{var w;(w=d.value)==null||w.shutdown()}),St(o,()=>v());function h(w,A){var L;(L=d.value)==null||L.filterNodesByType(A,w)}function p(w){f.value=w,c.value=!0}function v(w=!1){var A;if((A=d.value)==null||A.shutdown(),w&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new Kge(s.value,o.value,yge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:L,newWidth:E})=>L===0&&E===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:zx.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?ah.Randomized:ah.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function b(w){if(hr)return;let A=0,L=0,E=0;w.on("pointerdown",(M,$)=>{$.type!=="external"&&(!$.x||!$.y||!m(M)||(A=$.x,L=$.y,E=Date.now()))}).on("pointerup",(M,$)=>{if($.type==="external"||!$.x||!$.y||!m(M)||Date.now()-E>500)return;const R=$.x-A,T=$.y-L;R**2+T**2<100&&p($.id)})}return(w,A)=>{var R;const L=Qr,E=Xue,M=np,$=zr("tooltip");return ie(),ye("div",Yge,[ee("div",null,[ee("div",Zge,[ee("div",Jge,[ct(ee("input",{id:"hide-node-modules","onUpdate:modelValue":A[0]||(A[0]=T=>r.value=T),type:"checkbox"},null,512),[[wb,r.value]]),A[4]||(A[4]=ee("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(ie(!0),ye(nt,null,dr((R=B(d))==null?void 0:R.nodeTypes.sort(),T=>{var I;return ie(),ye("div",{key:T,flex:"~ gap-1","items-center":"","select-none":""},[ee("input",{id:`type-${T}`,type:"checkbox",checked:(I=B(d))==null?void 0:I.nodeTypeFilter.includes(T),onChange:F=>h(T,F.target.checked)},null,40,Qge),ee("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${T}`,"border-b-2":"",style:tn({"border-color":`var(--color-node-${T})`})},ze(T)+" Modules",13,eve)])}),128)),A[5]||(A[5]=ee("div",{"flex-auto":""},null,-1)),ee("div",null,[ct(Oe(L,{icon:"i-carbon-reset",onClick:A[1]||(A[1]=T=>v(!0))},null,512),[[$,"Reset",void 0,{bottom:!0}]])])])]),ee("div",{ref_key:"el",ref:s},null,512),Oe(M,{modelValue:B(c),"onUpdate:modelValue":A[3]||(A[3]=T=>Tt(c)?c.value=T:null),direction:"right"},{default:it(()=>[B(f)?(ie(),Ze(Ih,{key:0},{default:it(()=>[Oe(E,{id:B(f),"project-name":w.projectName,onClose:A[2]||(A[2]=T=>c.value=!1)},null,8,["id","project-name"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])])}}}),nve={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},rve={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},ive={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},ove={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},sve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},lve={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Wx=at({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=zr("tooltip");return t.state==="pass"?(ie(),ye("div",nve)):t.failedSnapshot?ct((ie(),ye("div",rve,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(ie(),ye("div",ive)):t.mode==="todo"?ct((ie(),ye("div",ove,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?ct((ie(),ye("div",sve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ie(),ye("div",lve))}}});function ave(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.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 cve(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function uve(e){const t=e.map(o=>cve(o)),r=ave(t);return t.map(({raw:o,id:s})=>Bx({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function fve(e,t){return Bx({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 dve(e,t){if(!e)return M0({});const r=uve(e.externalized),o=e.inlined.map(d=>fve(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return Xge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return M0({nodes:s,links:f})}const hve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},pve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},gve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},vve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},mve={class:"flex text-lg"},yve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},bve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},wve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},xve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},_ve=["flex-1"],Sve=at({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),r=Ue(!1),o=Ue(!1),s=Ue(!1),c=Ue(void 0),f=Ue(!0),d=Se(()=>Ns.value?ht.state.idMap.get(Ns.value):void 0),h=Se(()=>{const T=jt.value;if(!(!T||!T.filepath))return{filepath:T.filepath,projectName:T.file.projectName||""}}),p=Se(()=>jt.value&&Zh(jt.value)),v=Se(()=>{var T,I;return!!((I=(T=jt.value)==null?void 0:T.meta)!=null&&I.typecheck)});function m(){var I;const T=(I=jt.value)==null?void 0:I.filepath;T&&fetch(`/__open-in-editor?file=${encodeURIComponent(T)}`)}function b(T){T==="graph"&&(o.value=!0),qn.value=T}const w=Se(()=>{var T;return((T=Kw.value)==null?void 0:T.reduce((I,{size:F})=>I+F,0))??0});function A(T){r.value=T}const L=/[/\\]node_modules[/\\]/;async function E(T=!1){var I;if(!(s.value||((I=h.value)==null?void 0:I.filepath)===c.value&&!T)){s.value=!0,await At();try{const F=h.value;if(!F){s.value=!1;return}if(T||!c.value||F.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let re=await ht.rpc.getModuleGraph(F.projectName,F.filepath,!!Ot);f.value&&(hr&&(re=typeof window.structuredClone<"u"?window.structuredClone(re):oA(re)),re.inlined=re.inlined.filter(se=>!L.test(se)),re.externalized=re.externalized.filter(se=>!L.test(se))),t.value=dve(re,F.filepath),c.value=F.filepath}b("graph")}finally{await new Promise(F=>setTimeout(F,100)),s.value=!1}}}Kh(()=>[h.value,qn.value,f.value],([,T,I],F)=>{T==="graph"&&E(F&&I!==F[2])},{debounce:100,immediate:!0});const M=Se(()=>{var I,F;const T=((I=jt.value)==null?void 0:I.file.projectName)||"";return Ae.colors.get(T)||Sw((F=jt.value)==null?void 0:F.file.projectName)}),$=Se(()=>kw(M.value)),R=Se(()=>{var re;const T=Ns.value;if(!T)return(re=jt.value)==null?void 0:re.name;const I=[];let F=ht.state.idMap.get(T);for(;F;)I.push(F.name),F=F.suite?F.suite:F===F.file?void 0:F.file;return I.reverse().join(" > ")});return(T,I)=>{var P,S,H;const F=Wx,re=Qr,se=tve,J=Bue,G=Hue,K=Pue,N=Cue,O=zr("tooltip");return B(jt)?(ie(),ye("div",hve,[ee("div",null,[ee("div",pve,[Oe(F,{state:(P=B(jt).result)==null?void 0:P.state,mode:B(jt).mode,"failed-snapshot":B(p)},null,8,["state","mode","failed-snapshot"]),B(v)?ct((ie(),ye("div",gve,null,512)),[[O,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):qe("",!0),(S=B(jt))!=null&&S.file.projectName?(ie(),ye("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:tn({backgroundColor:B(M),color:B($)})},ze(B(jt).file.projectName),5)):qe("",!0),ee("div",vve,ze(B(R)),1),ee("div",mve,[B(hr)?qe("",!0):ct((ie(),Ze(re,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((H=B(jt))!=null&&H.filepath),onClick:m},null,8,["disabled"])),[[O,"Open in editor",void 0,{bottom:!0}]])])]),ee("div",yve,[ee("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":B(qn)==null}]),"data-testid":"btn-report",onClick:I[0]||(I[0]=V=>b(null))},[...I[5]||(I[5]=[ee("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),dt(" Report ",-1)])],2),ee("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":B(qn)==="graph"}]),onClick:I[1]||(I[1]=V=>b("graph"))},[B(s)?(ie(),ye("span",bve)):(ie(),ye("span",wve)),I[6]||(I[6]=dt(" Module Graph ",-1))],2),ee("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":B(qn)==="editor"}]),onClick:I[2]||(I[2]=V=>b("editor"))},[I[7]||(I[7]=ee("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),dt(" "+ze(B(r)?"* ":"")+"Code ",1)],2),ee("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":B(qn)==="console",op20:B(qn)!=="console"&&B(w)===0}]),onClick:I[3]||(I[3]=V=>b("console"))},[I[8]||(I[8]=ee("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),dt(" Console ("+ze(B(w))+") ",1)],2)])]),ee("div",xve,[B(o)?(ie(),ye("div",{key:0,"flex-1":B(qn)==="graph"&&""},[ct(Oe(se,{modelValue:B(f),"onUpdate:modelValue":I[4]||(I[4]=V=>Tt(f)?f.value=V:null),graph:B(t),"data-testid":"graph","project-name":B(jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Yi,B(qn)==="graph"&&!B(s)]])],8,_ve)):qe("",!0),B(qn)==="editor"?(ie(),Ze(J,{key:B(jt).id,file:B(jt),"data-testid":"editor",onDraft:A},null,8,["file"])):B(qn)==="console"?(ie(),Ze(G,{key:2,file:B(jt),"data-testid":"console"},null,8,["file"])):!B(qn)&&!B(d)&&B(jt)?(ie(),Ze(K,{key:3,file:B(jt),"data-testid":"report"},null,8,["file"])):!B(qn)&&B(d)?(ie(),Ze(N,{key:4,test:B(d),"data-testid":"report"},null,8,["test"])):qe("",!0)])])):qe("",!0)}}}),kve={h:"full",flex:"~ col"},Tve={"flex-auto":"","py-1":"","bg-white":""},Cve=["src"],Eve=at({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ie(),ye("div",kve,[r[0]||(r[0]=ee("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ee("div",{class:"i-carbon:folder-details-reference"}),ee("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),ee("div",Tve,[ee("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,Cve)])]))}}),Ave={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Lve={"font-bold":""},Mve={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},$ve=["font-bold"],Nve={text:"red500/70"},Ove={key:1,text:"sm","mb-2":""},Pve={"font-bold":""},Rve={key:2,text:"sm","mb-2":""},zve={"font-bold":""},Ive={key:3,text:"sm","font-thin":""},Dve=at({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return ie(),ye(nt,null,[ee("h4",Ave,[ee("span",Lve,[dt(ze(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(ie(),ye(nt,{key:0},[dt(":")],64)):qe("",!0)]),dt(" "+ze(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(ie(),ye("p",Mve,[(ie(!0),ye(nt,null,dr(t.error.stacks,(s,c)=>(ie(),ye("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[dt("❯ "+ze(s.method)+" "+ze(s.file)+":",1),ee("span",Nve,ze(s.line)+":"+ze(s.column),1),r[0]||(r[0]=ee("br",null,null,-1))],8,$ve))),128))])):qe("",!0),t.error.VITEST_TEST_PATH?(ie(),ye("p",Ove,[r[1]||(r[1]=dt(" This error originated in ",-1)),ee("span",Pve,ze(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=dt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):qe("",!0),t.error.VITEST_TEST_NAME?(ie(),ye("div",Rve,[r[3]||(r[3]=dt(" The latest test that might've caused the error is ",-1)),ee("span",zve,ze(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=dt(". It might mean one of the following:",-1)),r[5]||(r[5]=ee("br",null,null,-1)),r[6]||(r[6]=ee("ul",null,[ee("li",null," The error was thrown, while Vitest was running this test. "),ee("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):qe("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(ie(),ye("div",Ive,[...r[7]||(r[7]=[dt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:",-1),ee("br",null,null,-1),ee("ul",null,[ee("li",null," Cancel timeouts using clearTimeout and clearInterval. "),ee("li",null," Wait for promises to resolve using the await keyword. ")],-1)])])):qe("",!0)],64)}}}),Fve={"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:""},Hve={class:"number","data-testid":"num-files"},Bve={class:"number"},Wve={class:"number","text-red5":""},qve={class:"number","text-red5":""},jve={class:"number","text-red5":""},Uve={class:"number","data-testid":"run-time"},Vve={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Gve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Kve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Xve=at({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Dve;return ie(),ye(nt,null,[ee("div",Fve,[r[8]||(r[8]=ee("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=ee("div",null,"Files",-1)),ee("div",Hve,ze(B(Ae).summary.files),1),B(Ae).summary.filesSuccess?(ie(),ye(nt,{key:0},[r[0]||(r[0]=ee("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=ee("div",null,"Pass",-1)),ee("div",Bve,ze(B(Ae).summary.filesSuccess),1)],64)):qe("",!0),B(Ae).summary.filesFailed?(ie(),ye(nt,{key:1},[r[2]||(r[2]=ee("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=ee("div",null," Fail ",-1)),ee("div",Wve,ze(B(Ae).summary.filesFailed),1)],64)):qe("",!0),B(Ae).summary.filesSnapshotFailed?(ie(),ye(nt,{key:2},[r[4]||(r[4]=ee("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=ee("div",null," Snapshot Fail ",-1)),ee("div",qve,ze(B(Ae).summary.filesSnapshotFailed),1)],64)):qe("",!0),B(Gi).length?(ie(),ye(nt,{key:3},[r[6]||(r[6]=ee("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=ee("div",null," Errors ",-1)),ee("div",jve,ze(B(Gi).length),1)],64)):qe("",!0),r[10]||(r[10]=ee("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=ee("div",null,"Time",-1)),ee("div",Uve,ze(B(Ae).summary.time),1)]),B(Gi).length?(ie(),ye("div",Vve,[r[15]||(r[15]=ee("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),ee("p",Gve,[dt(" Vitest caught "+ze(B(Gi).length)+" error"+ze(B(Gi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=ee("br",null,null,-1)),r[13]||(r[13]=dt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),ee("details",Kve,[r[14]||(r[14]=ee("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ie(!0),ye(nt,null,dr(B(Gi),(s,c)=>(ie(),Ze(o,{key:c,error:s},null,8,["error"]))),128))])])):qe("",!0)],64)}}}),Yve=Jr(Xve,[["__scopeId","data-v-0178ddee"]]),Zve={"p-2":"","text-center":"",flex:""},Jve={"text-4xl":"","min-w-2em":""},Qve={"text-md":""},eme=at({__name:"DashboardEntry",setup(e){return(t,r)=>(ie(),ye("div",Zve,[ee("div",null,[ee("div",Jve,[xn(t.$slots,"body")]),ee("div",Qve,[xn(t.$slots,"header")])])]))}}),tme={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},nme=at({__name:"TestsEntry",setup(e){return(t,r)=>{const o=eme;return ie(),ye("div",tme,[Oe(o,{"text-green5":"","data-testid":"pass-entry"},{header:it(()=>[...r[0]||(r[0]=[dt(" Pass ",-1)])]),body:it(()=>[dt(ze(B(Ae).summary.testsSuccess),1)]),_:1}),Oe(o,{class:ot({"text-red5":B(Ae).summary.testsFailed,op50:!B(Ae).summary.testsFailed}),"data-testid":"fail-entry"},{header:it(()=>[...r[1]||(r[1]=[dt(" Fail ",-1)])]),body:it(()=>[dt(ze(B(Ae).summary.testsFailed),1)]),_:1},8,["class"]),B(Ae).summary.testsSkipped?(ie(),Ze(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:it(()=>[...r[2]||(r[2]=[dt(" Skip ",-1)])]),body:it(()=>[dt(ze(B(Ae).summary.testsSkipped),1)]),_:1})):qe("",!0),B(Ae).summary.testsTodo?(ie(),Ze(o,{key:1,op50:"","data-testid":"todo-entry"},{header:it(()=>[...r[3]||(r[3]=[dt(" Todo ",-1)])]),body:it(()=>[dt(ze(B(Ae).summary.testsTodo),1)]),_:1})):qe("",!0),Oe(o,{tail:!0,"data-testid":"total-entry"},{header:it(()=>[...r[4]||(r[4]=[dt(" Total ",-1)])]),body:it(()=>[dt(ze(B(Ae).summary.totalTests),1)]),_:1})])}}}),rme={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},ime={key:0,class:"text-gray-5"},ome={"aria-labelledby":"tests",m:"y-4 x-2"},sme=at({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=nme,s=Yve;return ie(),ye("div",rme,[B(Ae).summary.files===0&&B(ws)?(ie(),ye("div",ime," No tests found ")):qe("",!0),ee("section",ome,[Oe(o)]),Oe(s)])}}}),lme={},ame={h:"full",flex:"~ col"},cme={class:"scrolls","flex-auto":"","py-1":""};function ume(e,t){const r=sme;return ie(),ye("div",ame,[t[0]||(t[0]=ee("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ee("div",{class:"i-carbon-dashboard"}),ee("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),ee("div",cme,[Oe(r)])])}const fme=Jr(lme,[["render",ume]]),dme=["open"],hme=at({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(r,o)=>(ie(),ye("div",{open:B(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[ee("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=ee("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),xn(r.$slots,"summary",{open:B(t)}),o[2]||(o[2]=ee("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),xn(r.$slots,"default")],40,dme))}}),pme={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},gme={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(ie(),ye("button",pme,[ee("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},vme=["aria-label","data-current"],mme={key:1,"w-4":""},yme={flex:"","items-end":"","gap-2":"","overflow-hidden":""},bme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},wme={"text-sm":"",truncate:"","font-light":""},xme=["text","innerHTML"],_me={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Sme={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},kme={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Tme={key:1},Cme=at({__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=Se(()=>ht.state.idMap.get(e.taskId)),r=Se(()=>{if(hr)return!1;const E=t.value;return E&&Zh(E)});function o(){var E;if(!e.expandable){(E=e.onItemClick)==null||E.call(e,t.value);return}e.opened?Ae.collapseNode(e.taskId):Ae.expandNode(e.taskId)}async function s(E){var M;(M=e.onItemClick)==null||M.call(e,E),_s.value&&(du.value=!0,await At()),e.type==="file"?await tp([E.file]):await yce(E)}function c(E){return ht.rpc.updateSnapshot(E.file)}const f=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(E,M)=>`${e.taskId}-${M}`)),d=Se(()=>{const E=f.value,M=[];return(e.type==="file"||e.type==="suite")&&M.push("min-content"),M.push("min-content"),e.type==="suite"&&e.typecheck&&M.push("min-content"),M.push("minmax(0, 1fr)"),M.push("min-content"),`grid-template-columns: ${E.map(()=>"1rem").join(" ")} ${M.join(" ")};`}),h=Se(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>xw(e.name)),v=Se(()=>{const E=NA.value,M=p.value;return E?M.replace(E,$=>`<span class="highlight">${$}</span>`):M}),m=Se(()=>e.type!=="file"&&e.disableTaskLocation),b=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Se(()=>m.value?"color-red5 dark:color-#f43f5e":null);function A(){var M;const E=t.value;e.type==="file"?(M=e.onItemClick)==null||M.call(e,E):eue(E)}const L=Se(()=>kw(e.projectNameColor));return(E,M)=>{const $=Wx,R=gme,T=Qr,I=zr("tooltip");return B(t)?(ie(),ye("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:tn(B(d)),"aria-label":E.name,"data-current":E.current,onClick:M[2]||(M[2]=F=>o())},[E.indent>0?(ie(!0),ye(nt,{key:0},dr(B(f),F=>(ie(),ye("div",{key:F,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):qe("",!0),E.type==="file"||E.type==="suite"?(ie(),ye("div",mme,[ee("div",{class:ot(E.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):qe("",!0),Oe($,{state:E.state,mode:B(t).mode,"failed-snapshot":B(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),ee("div",yme,[E.type==="file"&&E.typecheck?ct((ie(),ye("div",bme,null,512)),[[I,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):qe("",!0),ee("span",wme,[E.type==="file"&&E.projectName?(ie(),ye("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:tn({backgroundColor:E.projectNameColor,color:B(L)})},ze(E.projectName),5)):qe("",!0),ee("span",{text:E.state==="fail"?"red-500":"",innerHTML:B(v)},null,8,xme)]),typeof E.duration=="number"?(ie(),ye("span",_me,ze(E.duration>0?E.duration:"< 1")+"ms ",1)):qe("",!0)]),ee("div",Sme,[!B(hr)&&B(r)?ct((ie(),Ze(R,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:M[0]||(M[0]=zc(F=>c(B(t)),["prevent","stop"]))},null,512)),[[I,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):qe("",!0),Oe(B(qb),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",B(w)])},{popper:it(()=>[B(m)?(ie(),ye("div",kme,[M[5]||(M[5]=ee("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),ee("div",null,[dt(ze(B(b))+": this feature is not available, you have disabled ",1),M[3]||(M[3]=ee("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),M[4]||(M[4]=dt(" in your configuration file.",-1))]),M[6]||(M[6]=ee("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(ie(),ye("div",Tme,ze(B(b)),1))]),default:it(()=>[Oe(T,{"data-testid":"btn-open-details",icon:E.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:zc(A,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),B(hr)?qe("",!0):ct((ie(),Ze(T,{key:1,"data-testid":"btn-run-test",title:B(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:M[1]||(M[1]=zc(F=>s(B(t)),["prevent","stop"]))},null,8,["title"])),[[I,B(h),void 0,{bottom:!0}]])])],12,vme)):qe("",!0)}}}),Eme=Jr(Cme,[["__scopeId","data-v-5b954324"]]),Ame={"flex-1":"","ms-2":"","select-none":""},Lme=at({__name:"FilterStatus",props:ra({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Pu(e,"modelValue");return(r,o)=>(ie(),ye("label",bi({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=zc(s=>t.value=!t.value,["prevent"]))}),[ee("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ct(ee("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[wb,t.value]]),ee("span",Ame,ze(r.label),1)],16))}});function Mme(){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 qc;function fh(){fh.init||(fh.init=!0,qc=Mme()!==-1)}var Yu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){fh(),At(()=>{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",qc&&this.$el.appendChild(e),e.data="about:blank",qc||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&&(!qc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const $me=Oy();$y("data-v-b329ee4c");const Nme={class:"resize-observer",tabindex:"-1"};Ny();const Ome=$me((e,t,r,o,s,c)=>(ie(),Ze("div",Nme)));Yu.render=Ome;Yu.__scopeId="data-v-b329ee4c";Yu.__file="src/components/ResizeObserver.vue";function jc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jc=function(t){return typeof t}:jc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}function Pme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rme(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 zme(e,t,r){return t&&Rme(e.prototype,t),e}function $0(e){return Ime(e)||Dme(e)||Fme(e)||Hme()}function Ime(e){if(Array.isArray(e))return dh(e)}function Dme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Fme(e,t){if(e){if(typeof e=="string")return dh(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 dh(e,t)}}function dh(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 Hme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
49
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Wme(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat($0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat($0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function qx(e,t){if(e===t)return!0;if(jc(e)==="object"){for(var r in e)if(!qx(e[r],t[r]))return!1;return!0}return!1}var qme=function(){function e(t,r,o){Pme(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return zme(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Bme(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=Wme(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),At(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 jx(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 qme(e,o,r);e._vue_visibilityState=s}}function jme(e,t,r){var o=t.value,s=t.oldValue;if(!qx(o,s)){var c=e._vue_visibilityState;if(!o){Ux(e);return}c?c.createObserver(o,r):jx(e,{value:o},r)}}function Ux(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Ume={beforeMount:jx,updated:jme,unmounted:Ux},Vme={itemsLimit:1e3},Gme=/(auto|scroll)/;function Vx(e,t){return e.parentNode===null?t:Vx(e.parentNode,t.concat([e]))}var wd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},Kme=function(t){return wd(t,"overflow")+wd(t,"overflow-y")+wd(t,"overflow-x")},Xme=function(t){return Gme.test(Kme(t))};function N0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Vx(e.parentNode,[]),r=0;r<t.length;r+=1)if(Xme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function hh(e){"@babel/helpers - typeof";return hh=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},hh(e)}var Yme={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 Zme(){return this.items.length&&hh(this.items[0])!=="object"}var ph=!1;if(typeof window<"u"){ph=!1;try{var Jme=Object.defineProperty({},"passive",{get:function(){ph=!0}});window.addEventListener("test",null,Jme)}catch{}}let Qme=0;var pp={name:"RecycleScroller",components:{ResizeObserver:Yu},directives:{ObserveVisibility:Ume},props:{...Yme,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:Zme,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=Lh({id:Qme++,index:t,used:!0,key:o,type:s}),f=Ch({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,w=this.pool,A=this.itemIndexByKey;let L,E,M,$,R;if(!p)L=E=$=R=M=0;else if(this.$_prerender)L=$=0,E=R=Math.min(this.prerender,h.length),M=null;else{const G=this.getScroll();if(t){let O=G.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),r===null&&O<c||O<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const K=this.buffer;G.start-=K,G.end+=K;let N=0;if(this.$refs.before&&(N=this.$refs.before.scrollHeight,G.start-=N),this.$refs.after){const O=this.$refs.after.scrollHeight;G.end+=O}if(r===null){let O,P=0,S=p-1,H=~~(p/2),V;do V=H,O=v[H].accumulator,O<G.start?P=H:H<p-1&&v[H+1].accumulator>G.start&&(S=H),H=~~((P+S)/2);while(H!==V);for(H<0&&(H=0),L=H,M=v[p-1].accumulator,E=H;E<p&&v[E].accumulator<G.end;E++);for(E===-1?E=h.length-1:(E++,E>p&&(E=p)),$=L;$<p&&N+v[$].accumulator<G.start;$++);for(R=$;R<p&&N+v[R].accumulator<G.end;R++);}else{L=~~(G.start/r*o);const O=L%o;L-=O,E=Math.ceil(G.end/r*o),$=Math.max(0,Math.floor((G.start-N)/r*o)),R=Math.floor((G.end-N)/r*o),L<0&&(L=0),E>p&&(E=p),$<0&&($=0),R>p&&(R=p),M=Math.ceil(p/o)*r}}E-L>Vme.itemsLimit&&this.itemsLimitError(),this.totalSize=M;let T;const I=L<=this.$_endIndex&&E>=this.$_startIndex;if(I)for(let G=0,K=w.length;G<K;G++)T=w[G],T.nr.used&&(e&&(T.nr.index=A[T.item[d]]),(T.nr.index==null||T.nr.index<L||T.nr.index>=E)&&this.unuseView(T));const F=I?null:new Map;let re,se,J;for(let G=L;G<E;G++){re=h[G];const K=d?re[d]:re;if(K==null)throw new Error(`Key is ${K} on item (keyField is '${d}')`);if(T=m.get(K),!r&&!v[G].size){T&&this.unuseView(T);continue}se=re[f];let N=b.get(se),O=!1;if(!T)I?N&&N.length?T=N.pop():T=this.addView(w,G,re,K,se):(J=F.get(se)||0,(!N||J>=N.length)&&(T=this.addView(w,G,re,K,se),this.unuseView(T,!0),N=b.get(se)),T=N[J],F.set(se,J+1)),m.delete(T.nr.key),T.nr.used=!0,T.nr.index=G,T.nr.key=K,T.nr.type=se,m.set(K,T),O=!0;else if(!T.nr.used&&(T.nr.used=!0,O=!0,N)){const P=N.indexOf(T);P!==-1&&N.splice(P,1)}T.item=re,O&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(T.position=v[G-1].accumulator,T.offset=0):(T.position=Math.floor(G/o)*r,T.offset=G%o*s)}return this.$_startIndex=L,this.$_endIndex=E,this.emitUpdate&&this.$emit("update",L,E,$,R),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=N0(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,ph?{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=N0(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 e0e={key:0,ref:"before",class:"vue-recycle-scroller__slot"},t0e={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function n0e(e,t,r,o,s,c){const f=Fo("ResizeObserver"),d=zr("observe-visibility");return ct((ie(),ye("div",{class:ot(["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?(ie(),ye("div",e0e,[xn(e.$slots,"before")],512)):qe("v-if",!0),(ie(),Ze(Md(r.listTag),{ref:"wrapper",style:tn({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:it(()=>[(ie(!0),ye(nt,null,dr(s.pool,h=>(ie(),Ze(Md(r.itemTag),bi({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},pk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:it(()=>[xn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),xn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(ie(),ye("div",t0e,[xn(e.$slots,"after")],512)):qe("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}pp.render=n0e;pp.__file="src/components/RecycleScroller.vue";function r0e(e){const t=Se(()=>Kd.value?!1:!et.onlyTests),r=Se(()=>Un.value===""),o=Ue(Un.value);Kh(()=>Un.value,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;Un.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;et.failed=!1,et.success=!1,et.skipped=!1,et.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Bs.value&&(dn.value.search=(h==null?void 0:h.trim())??"",dn.value.failed=p,dn.value.success=v,dn.value.skipped=m,dn.value.onlyTests=b)}return St(()=>[o.value,et.failed,et.success,et.skipped,et.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ae.filterNodes()},{flush:"post"}),St(()=>Pr.value.length,h=>{h&&(dn.value.expandAll=void 0)},{flush:"post"}),{initialized:Bs,filter:et,search:Un,disableFilter:t,isFiltered:_w,isFilteredByStatus:Kd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:ju,testsTotal:OA,uiEntries:Yn}}const i0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},o0e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},s0e=["op"],l0e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},a0e={"text-red5":""},c0e={"text-yellow5":""},u0e={"text-green5":""},f0e={class:"text-purple5:50"},d0e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},h0e=["disabled"],p0e=["disabled"],g0e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},v0e=at({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Se(()=>qs.value.includeTaskLocation),s=Ue(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:A,filteredFiles:L,testsTotal:E,uiEntries:M}=r0e(s),$=Ue("grid-cols-2"),R=Ue("grid-col-span-2"),T=Ue();return bw(()=>T.value,([{contentRect:I}])=>{I.width<420?($.value="grid-cols-2",R.value="grid-col-span-2"):($.value="grid-cols-4",R.value="grid-col-span-4")}),(I,F)=>{const re=Qr,se=Lme,J=Eme,G=hme,K=zr("tooltip");return ie(),ye("div",{ref_key:"testExplorerRef",ref:T,h:"full",flex:"~ col"},[ee("div",null,[ee("div",i0e,[xn(I.$slots,"header",{filteredFiles:B(p)||B(v)?B(L):void 0})]),ee("div",o0e,[F[13]||(F[13]=ee("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ct(ee("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":F[0]||(F[0]=N=>Tt(d)?d.value=N:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:B(d).length?"100":"50",onKeydown:[F[1]||(F[1]=Fd(N=>B(w)(!1),["esc"])),F[2]||(F[2]=Fd(N=>r("run",B(p)||B(v)?B(L):void 0),["enter"]))]},null,40,s0e),[[NT,B(d)]]),ct(Oe(re,{disabled:B(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:F[3]||(F[3]=N=>B(w)(!0))},null,8,["disabled"]),[[K,"Clear search",void 0,{bottom:!0}]])]),ee("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:ot(B($))},[ee("div",{class:ot(B(R)),flex:"~ gap-2 items-center"},[F[14]||(F[14]=ee("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),F[15]||(F[15]=ee("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ct(Oe(re,{disabled:B(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:F[4]||(F[4]=N=>B(A)(!1))},null,8,["disabled"]),[[K,"Clear Filter",void 0,{bottom:!0}]])],2),Oe(se,{modelValue:B(f).failed,"onUpdate:modelValue":F[5]||(F[5]=N=>B(f).failed=N),label:"Fail"},null,8,["modelValue"]),Oe(se,{modelValue:B(f).success,"onUpdate:modelValue":F[6]||(F[6]=N=>B(f).success=N),label:"Pass"},null,8,["modelValue"]),Oe(se,{modelValue:B(f).skipped,"onUpdate:modelValue":F[7]||(F[7]=N=>B(f).skipped=N),label:"Skip"},null,8,["modelValue"]),Oe(se,{modelValue:B(f).onlyTests,"onUpdate:modelValue":F[8]||(F[8]=N=>B(f).onlyTests=N),label:"Only Tests"},null,8,["modelValue"])],2)]),ee("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:F[12]||(F[12]=(...N)=>B(gm)&&B(gm)(...N))},[Oe(G,null,hk({default:it(()=>[(B(p)||B(v))&&B(M).length===0?(ie(),ye(nt,{key:0},[B(c)?(ie(),ye("div",d0e,[F[18]||(F[18]=ee("div",{op30:""}," No matched test ",-1)),ee("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(B(m)?null:"hover:op100"),disabled:B(m),onClickPassive:F[9]||(F[9]=N=>B(w)(!0))}," Clear Search ",42,h0e),ee("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(B(h)?null:"hover:op100"),disabled:B(h),onClickPassive:F[10]||(F[10]=N=>B(A)(!0))}," Clear Filter ",42,p0e),ee("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:F[11]||(F[11]=(...N)=>B(b)&&B(b)(...N))}," Clear All ",32)])):(ie(),ye("div",g0e,[...F[19]||(F[19]=[ee("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),ee("div",{op30:""}," Loading... ",-1)])]))],64)):(ie(),Ze(B(pp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:B(M),buffer:100},{default:it(({item:N})=>[Oe(J,{class:ot(["h-28px m-0 p-0",B(ao)===N.id?"bg-active":""]),"task-id":N.id,expandable:N.expandable,type:N.type,current:B(ao)===N.id,indent:N.indent,name:N.name,typecheck:N.typecheck===!0,"project-name":N.projectName??"","project-name-color":N.projectNameColor??"",state:N.state,duration:N.duration,opened:N.expanded,"disable-task-location":!B(o),"on-item-click":I.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},[B(c)?{name:"summary",fn:it(()=>[ee("div",l0e,[ee("span",a0e," FAIL ("+ze(B(E).failed)+") ",1),F[16]||(F[16]=ee("span",null,"/",-1)),ee("span",c0e," RUNNING ("+ze(B(E).running)+") ",1),ee("span",u0e," PASS ("+ze(B(E).success)+") ",1),F[17]||(F[17]=ee("span",null,"/",-1)),ee("span",f0e," SKIP ("+ze(B(f).onlyTests?B(E).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),m0e=""+new URL("../favicon.svg",import.meta.url).href,y0e={class:"flex text-lg"},b0e=at({__name:"Navigation",setup(e){function t(){return ht.rpc.updateSnapshot()}const r=Se(()=>Ys.value?"light":"dark");async function o(f){_s.value&&(du.value=!0,await At(),co.value&&(hu(!0),await At())),f!=null&&f.length?await tp(f):await vce()}function s(){Ae.collapseAllNodes()}function c(){Ae.expandAllNodes()}return(f,d)=>{const h=Qr,p=v0e,v=zr("tooltip");return ie(),Ze(p,{border:"r base","on-item-click":B(cL),nested:!0,onRun:o},{header:it(({filteredFiles:m})=>[d[8]||(d[8]=ee("img",{"w-6":"","h-6":"",src:m0e,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=ee("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),ee("div",y0e,[ct(Oe(h,{title:"Collapse tests",disabled:!B(Bs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Yi,!B(zm)],[v,"Collapse tests",void 0,{bottom:!0}]]),ct(Oe(h,{disabled:!B(Bs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Yi,B(zm)],[v,"Expand tests",void 0,{bottom:!0}]]),ct(Oe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>B(hu)(!0))},null,512),[[Yi,B(Zd)&&!B(_s)||!B(Os)],[v,"Dashboard",void 0,{bottom:!0}]]),B(Zd)&&!B(_s)?(ie(),Ze(B(qb),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:it(()=>[...d[6]||(d[6]=[ee("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ee("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ee("div",null,"Coverage enabled but missing html reporter."),ee("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:it(()=>[d[7]||(d[7]=ee("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):qe("",!0),B(_s)?ct((ie(),Ze(h,{key:1,disabled:B(du),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>B(uL)())},null,8,["disabled"])),[[Yi,!B(co)],[v,"Coverage",void 0,{bottom:!0}]]):qe("",!0),B(Ae).summary.failedSnapshot&&!B(hr)?ct((ie(),Ze(h,{key:2,icon:"i-carbon:result-old",disabled:!B(Ae).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>B(Ae).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):qe("",!0),B(hr)?qe("",!0):ct((ie(),Ze(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),ct(Oe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>B(rue)())},null,512),[[v,`Toggle to ${B(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),w0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},x0e=at({__name:"ProgressBar",setup(e){const{width:t}=ww(),r=Se(()=>[Ae.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ws.value&&"in-progress"].filter(Boolean).join(" ")),o=Se(()=>{const d=Ae.summary.files;return d>0?t.value*Ae.summary.filesSuccess/d:0}),s=Se(()=>{const d=Ae.summary.files;return d>0?t.value*Ae.summary.filesFailed/d:0}),c=Se(()=>Ae.summary.files-Ae.summary.filesFailed-Ae.summary.filesSuccess),f=Se(()=>{const d=Ae.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(ie(),ye("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:ot(B(r))},[ee("div",w0e,[ee("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ot(B(r)),style:tn(`width: ${B(s)}px;`)},"   ",6),ee("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ot(B(r)),style:tn(`left: ${B(s)}px; width: ${B(o)}px;`)},"   ",6),ee("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ot(B(r)),style:tn(`left: ${B(o)+B(s)}px; width: ${B(f)}px;`)},"   ",6)])],2))}}),_0e=Jr(x0e,[["__scopeId","data-v-16879415"]]),O0={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const r=t,o=e,s=vk(),c=Ue([]),f=Se(()=>c.value.reduce((ne,W)=>(ne[~~W.id]=W)&&ne,{})),d=Se(()=>c.value.length),h=Ue(null),p=Ue(!1),v=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ue({splitter:null,timeoutId:null}),b=Se(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),w=()=>{document.addEventListener("mousemove",E,{passive:!1}),document.addEventListener("mouseup",M),"ontouchstart"in window&&(document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",M))},A=()=>{document.removeEventListener("mousemove",E,{passive:!1}),document.removeEventListener("mouseup",M),"ontouchstart"in window&&(document.removeEventListener("touchmove",E,{passive:!1}),document.removeEventListener("touchend",M))},L=(ne,W)=>{const Q=ne.target.closest(".splitpanes__splitter");if(Q){const{left:X,top:ae}=Q.getBoundingClientRect(),{clientX:pe,clientY:z}="ontouchstart"in window&&ne.touches?ne.touches[0]:ne;v.value.cursorOffset=o.horizontal?z-ae:pe-X}w(),v.value.mouseDown=!0,v.value.activeSplitter=W},E=ne=>{v.value.mouseDown&&(ne.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{re(I(ne)),r("resize",c.value.map(W=>({min:W.min,max:W.max,size:W.size})))}))},M=()=>{v.value.dragging&&r("resized",c.value.map(ne=>({min:ne.min,max:ne.max,size:ne.size}))),v.value.mouseDown=!1,setTimeout(()=>{v.value.dragging=!1,A()},100)},$=(ne,W)=>{"ontouchstart"in window&&(ne.preventDefault(),o.dblClickSplitter&&(m.value.splitter===W?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,R(ne,W),m.value.splitter=null):(m.value.splitter=W,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500)))),v.value.dragging||r("splitter-click",c.value[W])},R=(ne,W)=>{let Q=0;c.value=c.value.map((X,ae)=>(X.size=ae===W?X.max:X.min,ae!==W&&(Q+=X.min),X)),c.value[W].size-=Q,r("pane-maximize",c.value[W]),r("resized",c.value.map(X=>({min:X.min,max:X.max,size:X.size})))},T=(ne,W)=>{r("pane-click",f.value[W])},I=ne=>{const W=h.value.getBoundingClientRect(),{clientX:Q,clientY:X}="ontouchstart"in window&&ne.touches?ne.touches[0]:ne;return{x:Q-(o.horizontal?0:v.value.cursorOffset)-W.left,y:X-(o.horizontal?v.value.cursorOffset:0)-W.top}},F=ne=>{ne=ne[o.horizontal?"y":"x"];const W=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(ne=W-ne),ne*100/W},re=ne=>{const W=v.value.activeSplitter;let Q={prevPanesSize:J(W),nextPanesSize:G(W),prevReachedMinPanes:0,nextReachedMinPanes:0};const X=0+(o.pushOtherPanes?0:Q.prevPanesSize),ae=100-(o.pushOtherPanes?0:Q.nextPanesSize),pe=Math.max(Math.min(F(ne),ae),X);let z=[W,W+1],U=c.value[z[0]]||null,Y=c.value[z[1]]||null;const ue=U.max<100&&pe>=U.max+Q.prevPanesSize,he=Y.max<100&&pe<=100-(Y.max+G(W+1));if(ue||he){ue?(U.size=U.max,Y.size=Math.max(100-U.max-Q.prevPanesSize-Q.nextPanesSize,0)):(U.size=Math.max(100-Y.max-Q.prevPanesSize-G(W+1),0),Y.size=Y.max);return}if(o.pushOtherPanes){const fe=se(Q,pe);if(!fe)return;({sums:Q,panesToResize:z}=fe),U=c.value[z[0]]||null,Y=c.value[z[1]]||null}U!==null&&(U.size=Math.min(Math.max(pe-Q.prevPanesSize-Q.prevReachedMinPanes,U.min),U.max)),Y!==null&&(Y.size=Math.min(Math.max(100-pe-Q.nextPanesSize-Q.nextReachedMinPanes,Y.min),Y.max))},se=(ne,W)=>{const Q=v.value.activeSplitter,X=[Q,Q+1];return W<ne.prevPanesSize+c.value[X[0]].min&&(X[0]=K(Q).index,ne.prevReachedMinPanes=0,X[0]<Q&&c.value.forEach((ae,pe)=>{pe>X[0]&&pe<=Q&&(ae.size=ae.min,ne.prevReachedMinPanes+=ae.min)}),ne.prevPanesSize=J(X[0]),X[0]===void 0)?(ne.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ae,pe)=>{pe>0&&pe<=Q&&(ae.size=ae.min,ne.prevReachedMinPanes+=ae.min)}),c.value[X[1]].size=100-ne.prevReachedMinPanes-c.value[0].min-ne.prevPanesSize-ne.nextPanesSize,null):W>100-ne.nextPanesSize-c.value[X[1]].min&&(X[1]=N(Q).index,ne.nextReachedMinPanes=0,X[1]>Q+1&&c.value.forEach((ae,pe)=>{pe>Q&&pe<X[1]&&(ae.size=ae.min,ne.nextReachedMinPanes+=ae.min)}),ne.nextPanesSize=G(X[1]-1),X[1]===void 0)?(ne.nextReachedMinPanes=0,c.value.forEach((ae,pe)=>{pe<d.value-1&&pe>=Q+1&&(ae.size=ae.min,ne.nextReachedMinPanes+=ae.min)}),c.value[X[0]].size=100-ne.prevPanesSize-G(X[0]-1),null):{sums:ne,panesToResize:X}},J=ne=>c.value.reduce((W,Q,X)=>W+(X<ne?Q.size:0),0),G=ne=>c.value.reduce((W,Q,X)=>W+(X>ne+1?Q.size:0),0),K=ne=>[...c.value].reverse().find(W=>W.index<ne&&W.size>W.min)||{},N=ne=>c.value.find(W=>W.index>ne+1&&W.size>W.min)||{},O=()=>{var ne;Array.from(((ne=h.value)==null?void 0:ne.children)||[]).forEach(W=>{const Q=W.classList.contains("splitpanes__pane"),X=W.classList.contains("splitpanes__splitter");!Q&&!X&&(W.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},P=(ne,W,Q=!1)=>{const X=ne-1,ae=document.createElement("div");ae.classList.add("splitpanes__splitter"),Q||(ae.onmousedown=pe=>L(pe,X),typeof window<"u"&&"ontouchstart"in window&&(ae.ontouchstart=pe=>L(pe,X)),ae.onclick=pe=>$(pe,X+1)),o.dblClickSplitter&&(ae.ondblclick=pe=>R(pe,X+1)),W.parentNode.insertBefore(ae,W)},S=ne=>{ne.onmousedown=void 0,ne.onclick=void 0,ne.ondblclick=void 0,ne.remove()},H=()=>{var ne;const W=Array.from(((ne=h.value)==null?void 0:ne.children)||[]);W.forEach(X=>{X.className.includes("splitpanes__splitter")&&S(X)});let Q=0;W.forEach(X=>{X.className.includes("splitpanes__pane")&&(!Q&&o.firstSplitter?P(Q,X,!0):Q&&P(Q,X),Q++)})},V=({uid:ne,...W})=>{const Q=f.value[ne];Object.entries(W).forEach(([X,ae])=>Q[X]=ae)},oe=ne=>{var W;let Q=-1;Array.from(((W=h.value)==null?void 0:W.children)||[]).some(X=>(X.className.includes("splitpanes__pane")&&Q++,X.isSameNode(ne.el))),c.value.splice(Q,0,{...ne,index:Q}),c.value.forEach((X,ae)=>X.index=ae),p.value&&At(()=>{H(),we({addedPane:c.value[Q]}),r("pane-add",{index:Q,panes:c.value.map(X=>({min:X.min,max:X.max,size:X.size}))})})},ve=ne=>{const W=c.value.findIndex(X=>X.id===ne),Q=c.value.splice(W,1)[0];c.value.forEach((X,ae)=>X.index=ae),At(()=>{H(),we({removedPane:{...Q}}),r("pane-remove",{removed:Q,panes:c.value.map(X=>({min:X.min,max:X.max,size:X.size}))})})},we=(ne={})=>{!ne.addedPane&&!ne.removedPane?je():c.value.some(W=>W.givenSize!==null||W.min||W.max<100)?Je(ne):Pe(),p.value&&r("resized",c.value.map(W=>({min:W.min,max:W.max,size:W.size})))},Pe=()=>{const ne=100/d.value;let W=0;const Q=[],X=[];c.value.forEach(ae=>{ae.size=Math.max(Math.min(ne,ae.max),ae.min),W-=ae.size,ae.size>=ae.max&&Q.push(ae.id),ae.size<=ae.min&&X.push(ae.id)}),W>.1&&Xe(W,Q,X)},je=()=>{let ne=100;const W=[],Q=[];let X=0;c.value.forEach(pe=>{ne-=pe.size,pe.givenSize!==null&&X++,pe.size>=pe.max&&W.push(pe.id),pe.size<=pe.min&&Q.push(pe.id)});let ae=100;ne>.1&&(c.value.forEach(pe=>{pe.givenSize===null&&(pe.size=Math.max(Math.min(ne/(d.value-X),pe.max),pe.min)),ae-=pe.size}),ae>.1&&Xe(ae,W,Q))},Je=({addedPane:ne,removedPane:W}={})=>{let Q=100/d.value,X=0;const ae=[],pe=[];((ne==null?void 0:ne.givenSize)??null)!==null&&(Q=(100-ne.givenSize)/(d.value-1).value),c.value.forEach(z=>{X-=z.size,z.size>=z.max&&ae.push(z.id),z.size<=z.min&&pe.push(z.id)}),!(Math.abs(X)<.1)&&(c.value.forEach(z=>{(ne==null?void 0:ne.givenSize)!==null&&(ne==null?void 0:ne.id)===z.id||(z.size=Math.max(Math.min(Q,z.max),z.min)),X-=z.size,z.size>=z.max&&ae.push(z.id),z.size<=z.min&&pe.push(z.id)}),X>.1&&Xe(X,ae,pe))},Xe=(ne,W,Q)=>{let X;ne>0?X=ne/(d.value-W.length):X=ne/(d.value-Q.length),c.value.forEach((ae,pe)=>{if(ne>0&&!W.includes(ae.id)){const z=Math.max(Math.min(ae.size+X,ae.max),ae.min),U=z-ae.size;ne-=U,ae.size=z}else if(!Q.includes(ae.id)){const z=Math.max(Math.min(ae.size+X,ae.max),ae.min),U=z-ae.size;ne-=U,ae.size=z}}),Math.abs(ne)>.1&&At(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};St(()=>o.firstSplitter,()=>H()),St(()=>o.dblClickSplitter,ne=>{[...h.value.querySelectorAll(".splitpanes__splitter")].forEach((W,Q)=>{W.ondblclick=ne?X=>R(X,Q):void 0})}),Ca(()=>p.value=!1),fo(()=>{O(),H(),we(),r("ready"),p.value=!0});const Ye=()=>{var ne;return Aa("div",{ref:h,class:b.value},(ne=s.default)==null?void 0:ne.call(s))};return Cr("panes",c),Cr("indexedPanes",f),Cr("horizontal",Se(()=>o.horizontal)),Cr("requestUpdate",V),Cr("onPaneAdd",oe),Cr("onPaneRemove",ve),Cr("onPaneClick",T),(ne,W)=>(ie(),Ze(Md(Ye)))}},$c={__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=bn("requestUpdate"),s=bn("onPaneAdd"),c=bn("horizontal"),f=bn("onPaneRemove"),d=bn("onPaneClick"),h=(t=Ci())==null?void 0:t.uid,p=bn("indexedPanes"),v=Se(()=>p.value[h]),m=Ue(null),b=Se(()=>{const E=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(E,A.value),w.value)}),w=Se(()=>{const E=parseFloat(r.minSize);return isNaN(E)?0:E}),A=Se(()=>{const E=parseFloat(r.maxSize);return isNaN(E)?100:E}),L=Se(()=>{var E;return`${c.value?"height":"width"}: ${(E=v.value)==null?void 0:E.size}%`});return fo(()=>{s({id:h,el:m.value,min:w.value,max:A.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),St(()=>b.value,E=>o({uid:h,size:E})),St(()=>w.value,E=>o({uid:h,min:E})),St(()=>A.value,E=>o({uid:h,max:E})),Ca(()=>f(h)),(E,M)=>(ie(),ye("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:M[0]||(M[0]=$=>B(d)($,E._.uid)),style:tn(L.value)},[xn(E.$slots,"default")],4))}},S0e={"h-screen":"","w-screen":"",overflow:"hidden"},k0e=at({__name:"index",setup(e){const t=aL(),r=Sc(v=>{h(),d(v)},0),o=Sc(v=>{v.forEach((m,b)=>{Ps.value[b]=m.size}),f(v),p()},0),s=Sc(v=>{v.forEach((m,b)=>{no.value[b]=m.size}),d(v),p()},0),c=Sc(v=>{f(v),h()},0);function f(v){Lt.navigation=v[0].size,Lt.details.size=v[1].size}function d(v){Lt.details.browser=v[0].size,Lt.details.main=v[1].size}function h(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="none")}function p(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="")}return(v,m)=>{const b=_0e,w=b0e,A=fme,L=Eve,E=Sve,M=Nce,$=xce;return ie(),ye(nt,null,[Oe(b),ee("div",S0e,[Oe(B(O0),{class:"pt-4px",onResized:B(o),onResize:B(c)},{default:it(()=>[Oe(B($c),{size:B(Ps)[0]},{default:it(()=>[Oe(w)]),_:1},8,["size"]),Oe(B($c),{size:B(Ps)[1]},{default:it(()=>[B(Ot)?(ie(),Ze(B(O0),{id:"details-splitpanes",key:"browser-detail",onResize:B(r),onResized:B(s)},{default:it(()=>[Oe(B($c),{size:B(no)[0],"min-size":"10"},{default:it(()=>[m[0]||(Jc(-1,!0),(m[0]=Oe(M)).cacheIndex=0,Jc(1),m[0])]),_:1},8,["size"]),Oe(B($c),{size:B(no)[1]},{default:it(()=>[B(t)?(ie(),Ze(A,{key:"summary"})):B(co)?(ie(),Ze(L,{key:"coverage",src:B(Hm)},null,8,["src"])):(ie(),Ze(E,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(ie(),Ze(dT,{key:"ui-detail"},{default:it(()=>[B(t)?(ie(),Ze(A,{key:"summary"})):B(co)?(ie(),Ze(L,{key:"coverage",src:B(Hm)},null,8,["src"])):(ie(),Ze(E,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Oe($)],64)}}}),T0e=[{name:"index",path:"/",component:k0e,props:!0}];/*!
50
- * vue-router v4.5.1
51
- * (c) 2025 Eduardo San Martin Morote
52
- * @license MIT
53
- */const bs=typeof document<"u";function Gx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function C0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Gx(e.default)}const wt=Object.assign;function xd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Rr(s)?s.map(e):e(s)}return r}const Zl=()=>{},Rr=Array.isArray,Kx=/#/g,E0e=/&/g,A0e=/\//g,L0e=/=/g,M0e=/\?/g,Xx=/\+/g,$0e=/%5B/g,N0e=/%5D/g,Yx=/%5E/g,O0e=/%60/g,Zx=/%7B/g,P0e=/%7C/g,Jx=/%7D/g,R0e=/%20/g;function gp(e){return encodeURI(""+e).replace(P0e,"|").replace($0e,"[").replace(N0e,"]")}function z0e(e){return gp(e).replace(Zx,"{").replace(Jx,"}").replace(Yx,"^")}function gh(e){return gp(e).replace(Xx,"%2B").replace(R0e,"+").replace(Kx,"%23").replace(E0e,"%26").replace(O0e,"`").replace(Zx,"{").replace(Jx,"}").replace(Yx,"^")}function I0e(e){return gh(e).replace(L0e,"%3D")}function D0e(e){return gp(e).replace(Kx,"%23").replace(M0e,"%3F")}function F0e(e){return e==null?"":D0e(e).replace(A0e,"%2F")}function wa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const H0e=/\/$/,B0e=e=>e.replace(H0e,"");function _d(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=U0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:wa(f)}}function W0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function P0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function q0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Vs(t.matched[o],r.matched[s])&&Qx(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Vs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!j0e(e[r],t[r]))return!1;return!0}function j0e(e,t){return Rr(e)?R0(e,t):Rr(t)?R0(t,e):e===t}function R0(e,t){return Rr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function U0e(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 Wi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var xa;(function(e){e.pop="pop",e.push="push"})(xa||(xa={}));var Jl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Jl||(Jl={}));function V0e(e){if(!e)if(bs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),B0e(e)}const G0e=/^[^#]+#/;function K0e(e,t){return e.replace(G0e,"#")+t}function X0e(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 Zu=()=>({left:window.scrollX,top:window.scrollY});function Y0e(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=X0e(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 z0(e,t){return(history.state?history.state.position-t:-1)+e}const vh=new Map;function Z0e(e,t){vh.set(e,t)}function J0e(e){const t=vh.get(e);return vh.delete(e),t}let Q0e=()=>location.protocol+"//"+location.host;function e1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),P0(h,"")}return P0(r,e)+o+s}function eye(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=e1(e,location),A=r.value,L=t.value;let E=0;if(b){if(r.value=w,t.value=b,f&&f===A){f=null;return}E=L?b.position-L.position:0}else o(w);s.forEach(M=>{M(r.value,A,{delta:E,type:xa.pop,direction:E?E>0?Jl.forward:Jl.back:Jl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const A=s.indexOf(b);A>-1&&s.splice(A,1)};return c.push(w),w}function v(){const{history:b}=window;b.state&&b.replaceState(wt({},b.state,{scroll:Zu()}),"")}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function I0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Zu():null}}function tye(e){const{history:t,location:r}=window,o={value:e1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:Q0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[v?"replace":"assign"](b)}}function f(h,p){const v=wt({},t.state,I0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=wt({},s.value,t.state,{forward:h,scroll:Zu()});c(v.current,v,!0);const m=wt({},I0(o.value,h,null),{position:v.position+1},p);c(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function nye(e){e=V0e(e);const t=tye(e),r=eye(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:K0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function rye(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nye(e)}function iye(e){return typeof e=="string"||e&&typeof e=="object"}function t1(e){return typeof e=="string"||typeof e=="symbol"}const n1=Symbol("");var D0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(D0||(D0={}));function Gs(e,t){return wt(new Error,{type:e,[n1]:!0},t)}function di(e,t){return e instanceof Error&&n1 in e&&(t==null||!!(e.type&t))}const F0="[^/]+?",oye={sensitive:!1,strict:!1,start:!0,end:!0},sye=/[.+*?^${}()[\]/\\]/g;function lye(e,t){const r=wt({},oye,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let w=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(sye,"\\$&"),w+=40;else if(b.type===1){const{value:A,repeatable:L,optional:E,regexp:M}=b;c.push({name:A,repeatable:L,optional:E});const $=M||F0;if($!==F0){w+=10;try{new RegExp(`(${$})`)}catch(T){throw new Error(`Invalid custom RegExp for param "${A}" (${$}): `+T.message)}}let R=L?`((?:${$})(?:/(?:${$}))*)`:`(${$})`;m||(R=E&&p.length<2?`(?:/${R})`:"/"+R),E&&(R+="?"),s+=R,w+=20,E&&(w+=-8),L&&(w+=-20),$===".*"&&(w+=-50)}v.push(w)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const w=v[b]||"",A=c[b-1];m[A.name]=w&&A.repeatable?w.split("/"):w}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const w of b)if(w.type===0)v+=w.value;else if(w.type===1){const{value:A,repeatable:L,optional:E}=w,M=A in p?p[A]:"";if(Rr(M)&&!L)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const $=Rr(M)?M.join("/"):M;if(!$)if(E)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${A}"`);v+=$}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function aye(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]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function r1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=aye(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(H0(o))return 1;if(H0(s))return-1}return s.length-o.length}function H0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const cye={type:0,value:""},uye=/[a-zA-Z0-9_]/;function fye(e){if(!e)return[[]];if(e==="/")return[[cye]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&m(),f()):h===":"?(m(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:uye.test(h)?b():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}function dye(e,t,r){const o=lye(fye(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 hye(e,t){const r=[],o=new Map;t=j0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const A=!w,L=W0(m);L.aliasOf=w&&w.record;const E=j0(t,m),M=[L];if("alias"in m){const T=typeof m.alias=="string"?[m.alias]:m.alias;for(const I of T)M.push(W0(wt({},L,{components:w?w.record.components:L.components,path:I,aliasOf:w?w.record:L})))}let $,R;for(const T of M){const{path:I}=T;if(b&&I[0]!=="/"){const F=b.record.path,re=F[F.length-1]==="/"?"":"/";T.path=b.record.path+(I&&re+I)}if($=dye(T,b,E),w?w.alias.push($):(R=R||$,R!==$&&R.alias.push($),A&&m.name&&!q0($)&&f(m.name)),i1($)&&h($),L.children){const F=L.children;for(let re=0;re<F.length;re++)c(F[re],$,w&&w.children[re])}w=w||$}return R?()=>{f(R)}:Zl}function f(m){if(t1(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=vye(m,r);r.splice(b,0,m),m.record.name&&!q0(m)&&o.set(m.record.name,m)}function p(m,b){let w,A={},L,E;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Gs(1,{location:m});E=w.record.name,A=wt(B0(b.params,w.keys.filter(R=>!R.optional).concat(w.parent?w.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),m.params&&B0(m.params,w.keys.map(R=>R.name))),L=w.stringify(A)}else if(m.path!=null)L=m.path,w=r.find(R=>R.re.test(L)),w&&(A=w.parse(L),E=w.record.name);else{if(w=b.name?o.get(b.name):r.find(R=>R.re.test(b.path)),!w)throw Gs(1,{location:m,currentLocation:b});E=w.record.name,A=wt({},b.params,m.params),L=w.stringify(A)}const M=[];let $=w;for(;$;)M.unshift($.record),$=$.parent;return{name:E,path:L,params:A,matched:M,meta:gye(M)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function B0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function W0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:pye(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 pye(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function q0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gye(e){return e.reduce((t,r)=>wt(t,r.meta),{})}function j0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function vye(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;r1(e,t[c])<0?o=c:r=c+1}const s=mye(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function mye(e){let t=e;for(;t=t.parent;)if(i1(t)&&r1(e,t)===0)return t}function i1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function yye(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(Xx," "),f=c.indexOf("="),d=wa(f<0?c:c.slice(0,f)),h=f<0?null:wa(c.slice(f+1));if(d in t){let p=t[d];Rr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function U0(e){let t="";for(let r in e){const o=e[r];if(r=I0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Rr(o)?o.map(c=>c&&gh(c)):[o&&gh(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function bye(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Rr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const wye=Symbol(""),V0=Symbol(""),vp=Symbol(""),o1=Symbol(""),mh=Symbol("");function Pl(){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 Xi(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(Gs(4,{from:r,to:t})):b instanceof Error?h(b):iye(b)?h(Gs(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function Sd(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(Gx(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Xi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=C0e(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const w=(m.__vccOpts||m)[t];return w&&Xi(w,r,o,f,d,s)()}))}}return c}function G0(e){const t=bn(vp),r=bn(o1),o=Se(()=>{const h=B(e.to);return t.resolve(h)}),s=Se(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Vs.bind(null,v));if(b>-1)return b;const w=K0(h[p-2]);return p>1&&K0(v)===w&&m[m.length-1].path!==w?m.findIndex(Vs.bind(null,h[p-2])):b}),c=Se(()=>s.value>-1&&Tye(r.params,o.value.params)),f=Se(()=>s.value>-1&&s.value===r.matched.length-1&&Qx(r.params,o.value.params));function d(h={}){if(kye(h)){const p=t[B(e.replace)?"replace":"push"](B(e.to)).catch(Zl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:Se(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function xye(e){return e.length===1?e[0]:e}const _ye=at({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:G0,setup(e,{slots:t}){const r=rr(G0(e)),{options:o}=bn(vp),s=Se(()=>({[X0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[X0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&xye(t.default(r));return e.custom?c:Aa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),Sye=_ye;function kye(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 Tye(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(!Rr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function K0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const X0=(e,t,r)=>e??t??r,Cye=at({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=bn(mh),s=Se(()=>e.route||o.value),c=bn(V0,0),f=Se(()=>{let p=B(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=Se(()=>s.value.matched[f.value]);Cr(V0,Se(()=>f.value+1)),Cr(wye,d),Cr(mh,s);const h=Ue();return St(()=>[h.value,d.value,e.name],([p,v,m],[b,w,A])=>{v&&(v.instances[m]=p,w&&w!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=w.leaveGuards),v.updateGuards.size||(v.updateGuards=w.updateGuards))),p&&v&&(!w||!Vs(v,w)||!b)&&(v.enterCallbacks[m]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return Y0(r.default,{Component:b,route:p});const w=m.props[v],A=w?w===!0?p.params:typeof w=="function"?w(p):w:null,E=Aa(b,wt({},A,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return Y0(r.default,{Component:E,route:p})||E}}});function Y0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Eye=Cye;function Aye(e){const t=hye(e.routes,e),r=e.parseQuery||yye,o=e.stringifyQuery||U0,s=e.history,c=Pl(),f=Pl(),d=Pl(),h=nn(Wi);let p=Wi;bs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=xd.bind(null,W=>""+W),m=xd.bind(null,F0e),b=xd.bind(null,wa);function w(W,Q){let X,ae;return t1(W)?(X=t.getRecordMatcher(W),ae=Q):ae=W,t.addRoute(ae,X)}function A(W){const Q=t.getRecordMatcher(W);Q&&t.removeRoute(Q)}function L(){return t.getRoutes().map(W=>W.record)}function E(W){return!!t.getRecordMatcher(W)}function M(W,Q){if(Q=wt({},Q||h.value),typeof W=="string"){const Y=_d(r,W,Q.path),ue=t.resolve({path:Y.path},Q),he=s.createHref(Y.fullPath);return wt(Y,ue,{params:b(ue.params),hash:wa(Y.hash),redirectedFrom:void 0,href:he})}let X;if(W.path!=null)X=wt({},W,{path:_d(r,W.path,Q.path).path});else{const Y=wt({},W.params);for(const ue in Y)Y[ue]==null&&delete Y[ue];X=wt({},W,{params:m(Y)}),Q.params=m(Q.params)}const ae=t.resolve(X,Q),pe=W.hash||"";ae.params=v(b(ae.params));const z=W0e(o,wt({},W,{hash:z0e(pe),path:ae.path})),U=s.createHref(z);return wt({fullPath:z,hash:pe,query:o===U0?bye(W.query):W.query||{}},ae,{redirectedFrom:void 0,href:U})}function $(W){return typeof W=="string"?_d(r,W,h.value.path):wt({},W)}function R(W,Q){if(p!==W)return Gs(8,{from:Q,to:W})}function T(W){return re(W)}function I(W){return T(wt($(W),{replace:!0}))}function F(W){const Q=W.matched[W.matched.length-1];if(Q&&Q.redirect){const{redirect:X}=Q;let ae=typeof X=="function"?X(W):X;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=$(ae):{path:ae},ae.params={}),wt({query:W.query,hash:W.hash,params:ae.path!=null?{}:W.params},ae)}}function re(W,Q){const X=p=M(W),ae=h.value,pe=W.state,z=W.force,U=W.replace===!0,Y=F(X);if(Y)return re(wt($(Y),{state:typeof Y=="object"?wt({},pe,Y.state):pe,force:z,replace:U}),Q||X);const ue=X;ue.redirectedFrom=Q;let he;return!z&&q0e(o,ae,X)&&(he=Gs(16,{to:ue,from:ae}),Pe(ae,ae,!0,!1)),(he?Promise.resolve(he):G(ue,ae)).catch(fe=>di(fe)?di(fe,2)?fe:we(fe):oe(fe,ue,ae)).then(fe=>{if(fe){if(di(fe,2))return re(wt({replace:U},$(fe.to),{state:typeof fe.to=="object"?wt({},pe,fe.to.state):pe,force:z}),Q||ue)}else fe=N(ue,ae,!0,U,pe);return K(ue,ae,fe),fe})}function se(W,Q){const X=R(W,Q);return X?Promise.reject(X):Promise.resolve()}function J(W){const Q=Xe.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(W):W()}function G(W,Q){let X;const[ae,pe,z]=Lye(W,Q);X=Sd(ae.reverse(),"beforeRouteLeave",W,Q);for(const Y of ae)Y.leaveGuards.forEach(ue=>{X.push(Xi(ue,W,Q))});const U=se.bind(null,W,Q);return X.push(U),ne(X).then(()=>{X=[];for(const Y of c.list())X.push(Xi(Y,W,Q));return X.push(U),ne(X)}).then(()=>{X=Sd(pe,"beforeRouteUpdate",W,Q);for(const Y of pe)Y.updateGuards.forEach(ue=>{X.push(Xi(ue,W,Q))});return X.push(U),ne(X)}).then(()=>{X=[];for(const Y of z)if(Y.beforeEnter)if(Rr(Y.beforeEnter))for(const ue of Y.beforeEnter)X.push(Xi(ue,W,Q));else X.push(Xi(Y.beforeEnter,W,Q));return X.push(U),ne(X)}).then(()=>(W.matched.forEach(Y=>Y.enterCallbacks={}),X=Sd(z,"beforeRouteEnter",W,Q,J),X.push(U),ne(X))).then(()=>{X=[];for(const Y of f.list())X.push(Xi(Y,W,Q));return X.push(U),ne(X)}).catch(Y=>di(Y,8)?Y:Promise.reject(Y))}function K(W,Q,X){d.list().forEach(ae=>J(()=>ae(W,Q,X)))}function N(W,Q,X,ae,pe){const z=R(W,Q);if(z)return z;const U=Q===Wi,Y=bs?history.state:{};X&&(ae||U?s.replace(W.fullPath,wt({scroll:U&&Y&&Y.scroll},pe)):s.push(W.fullPath,pe)),h.value=W,Pe(W,Q,X,U),we()}let O;function P(){O||(O=s.listen((W,Q,X)=>{if(!Ye.listening)return;const ae=M(W),pe=F(ae);if(pe){re(wt(pe,{replace:!0,force:!0}),ae).catch(Zl);return}p=ae;const z=h.value;bs&&Z0e(z0(z.fullPath,X.delta),Zu()),G(ae,z).catch(U=>di(U,12)?U:di(U,2)?(re(wt($(U.to),{force:!0}),ae).then(Y=>{di(Y,20)&&!X.delta&&X.type===xa.pop&&s.go(-1,!1)}).catch(Zl),Promise.reject()):(X.delta&&s.go(-X.delta,!1),oe(U,ae,z))).then(U=>{U=U||N(ae,z,!1),U&&(X.delta&&!di(U,8)?s.go(-X.delta,!1):X.type===xa.pop&&di(U,20)&&s.go(-1,!1)),K(ae,z,U)}).catch(Zl)}))}let S=Pl(),H=Pl(),V;function oe(W,Q,X){we(W);const ae=H.list();return ae.length?ae.forEach(pe=>pe(W,Q,X)):console.error(W),Promise.reject(W)}function ve(){return V&&h.value!==Wi?Promise.resolve():new Promise((W,Q)=>{S.add([W,Q])})}function we(W){return V||(V=!W,P(),S.list().forEach(([Q,X])=>W?X(W):Q()),S.reset()),W}function Pe(W,Q,X,ae){const{scrollBehavior:pe}=e;if(!bs||!pe)return Promise.resolve();const z=!X&&J0e(z0(W.fullPath,0))||(ae||!X)&&history.state&&history.state.scroll||null;return At().then(()=>pe(W,Q,z)).then(U=>U&&Y0e(U)).catch(U=>oe(U,W,Q))}const je=W=>s.go(W);let Je;const Xe=new Set,Ye={currentRoute:h,listening:!0,addRoute:w,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:L,resolve:M,options:e,push:T,replace:I,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:H.add,isReady:ve,install(W){const Q=this;W.component("RouterLink",Sye),W.component("RouterView",Eye),W.config.globalProperties.$router=Q,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>B(h)}),bs&&!Je&&h.value===Wi&&(Je=!0,T(s.location).catch(pe=>{}));const X={};for(const pe in Wi)Object.defineProperty(X,pe,{get:()=>h.value[pe],enumerable:!0});W.provide(vp,Q),W.provide(o1,Ch(X)),W.provide(mh,h);const ae=W.unmount;Xe.add(W),W.unmount=function(){Xe.delete(W),Xe.size<1&&(p=Wi,O&&O(),O=null,h.value=Wi,Je=!1,V=!1),ae()}}};function ne(W){return W.reduce((Q,X)=>Q.then(()=>J(X)),Promise.resolve())}return Ye}function Lye(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=>Vs(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Vs(p,h))||s.push(h))}return[r,o,s]}const Mye={tooltip:HC};jb.options.instantMove=!0;jb.options.distance=10;function $ye(){return Aye({history:rye(),routes:T0e})}const Nye=[$ye],mp=_b(qT);Nye.forEach(e=>{mp.use(e())});Object.entries(Mye).forEach(([e,t])=>{mp.directive(e,t)});mp.mount("#app");