@vitest/browser 3.2.2 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/.vite/manifest.json +2 -2
- package/dist/client/__vitest__/assets/index-D_ryMEPs.js +58 -0
- package/dist/client/__vitest__/assets/index-X8b7Z_4p.css +1 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{orchestrator-D711E7wO.js → orchestrator-Bo1OwGWc.js} +538 -51
- package/dist/client/__vitest_browser__/{tester-Dvc2TYoi.js → tester-BYDMHqQ9.js} +0 -7
- package/dist/client/orchestrator.html +1 -1
- package/dist/client/tester/tester.html +1 -1
- package/dist/client.js +4 -2
- package/dist/expect-element.js +1 -1
- package/dist/{index-DWYk8Kxv.js → index-W1MM53zC.js} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15 -9
- package/dist/locators/index.d.ts +1 -0
- package/dist/locators/index.js +1 -1
- package/dist/locators/playwright.js +1 -1
- package/dist/locators/preview.js +1 -1
- package/dist/locators/webdriverio.js +1 -1
- package/dist/providers.js +1 -1
- package/dist/{public-utils-CoUmok1j.js → public-utils-Kx5DUGWa.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{webdriver-B1QbgqhC.js → webdriver-KA1WiV0q.js} +2 -3
- package/package.json +12 -12
- package/dist/client/__vitest__/assets/index-BXfDBrdK.css +0 -1
- package/dist/client/__vitest__/assets/index-DYikzJUp.js +0 -58
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var ik=Object.defineProperty;var ok=(e,t,r)=>t in e?ik(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Wi=(e,t,r)=>ok(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 l of s)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(s){if(s.ep)return;s.ep=!0;const l=r(s);fetch(s.href,l)}})();/**
|
|
2
|
-
* @vue/shared v3.5.16
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function Wh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const mt={},$s=[],Kr=()=>{},sk=()=>!1,Iu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qh=e=>e.startsWith("onUpdate:"),on=Object.assign,Uh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},lk=Object.prototype.hasOwnProperty,wt=(e,t)=>lk.call(e,t),Fe=Array.isArray,Ns=e=>Aa(e)==="[object Map]",Pu=e=>Aa(e)==="[object Set]",Hv=e=>Aa(e)==="[object Date]",Ge=e=>typeof e=="function",zt=e=>typeof e=="string",Mr=e=>typeof e=="symbol",_t=e=>e!==null&&typeof e=="object",By=e=>(_t(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch),Wy=Object.prototype.toString,Aa=e=>Wy.call(e),ak=e=>Aa(e).slice(8,-1),qy=e=>Aa(e)==="[object Object]",jh=e=>zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ul=Wh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ru=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},ck=/-(\w)/g,ir=Ru(e=>e.replace(ck,(t,r)=>r?r.toUpperCase():"")),uk=/\B([A-Z])/g,Ti=Ru(e=>e.replace(uk,"-$1").toLowerCase()),zu=Ru(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wc=Ru(e=>e?`on${zu(e)}`:""),jn=(e,t)=>!Object.is(e,t),qc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Uy=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},qd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},jy=e=>{const t=zt(e)?Number(e):NaN;return isNaN(t)?e:t};let Bv;const Du=()=>Bv||(Bv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nn(e){if(Fe(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=zt(o)?pk(o):nn(o);if(s)for(const l in s)t[l]=s[l]}return t}else if(zt(e)||_t(e))return e}const fk=/;(?![^(]*\))/g,dk=/:([^]+)/,hk=/\/\*[^]*?\*\//g;function pk(e){const t={};return e.replace(hk,"").split(fk).forEach(r=>{if(r){const o=r.split(dk);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function it(e){let t="";if(zt(e))t=e;else if(Fe(e))for(let r=0;r<e.length;r++){const o=it(e[r]);o&&(t+=o+" ")}else if(_t(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function gk(e){if(!e)return null;let{class:t,style:r}=e;return t&&!zt(t)&&(e.class=it(t)),r&&(e.style=nn(r)),e}const vk="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",mk=Wh(vk);function Vy(e){return!!e||e===""}function yk(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=Fu(e[o],t[o]);return r}function Fu(e,t){if(e===t)return!0;let r=Hv(e),o=Hv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Mr(e),o=Mr(t),r||o)return e===t;if(r=Fe(e),o=Fe(t),r||o)return r&&o?yk(e,t):!1;if(r=_t(e),o=_t(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,l=Object.keys(t).length;if(s!==l)return!1;for(const u in e){const d=e.hasOwnProperty(u),h=t.hasOwnProperty(u);if(d&&!h||!d&&h||!Fu(e[u],t[u]))return!1}}return String(e)===String(t)}function Gy(e,t){return e.findIndex(r=>Fu(r,t))}const Ky=e=>!!(e&&e.__v_isRef===!0),qe=e=>zt(e)?e:e==null?"":Fe(e)||_t(e)&&(e.toString===Wy||!Ge(e.toString))?Ky(e)?qe(e.value):JSON.stringify(e,Xy,2):String(e),Xy=(e,t)=>Ky(t)?Xy(e,t.value):Ns(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],l)=>(r[ad(o,l)+" =>"]=s,r),{})}:Pu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>ad(r))}:Mr(t)?ad(t):_t(t)&&!Fe(t)&&!qy(t)?String(t):t,ad=(e,t="")=>{var r;return Mr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.16
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let yn;class bk{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=yn,!t&&yn&&(this.index=(yn.scopes||(yn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=yn;try{return yn=this,t()}finally{yn=r}}}on(){++this._on===1&&(this.prevScope=yn,yn=this)}off(){this._on>0&&--this._on===0&&(yn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Yy(){return yn}function wk(e,t=!1){yn&&yn.cleanups.push(e)}let kt;const cd=new WeakSet;class Jy{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,yn&&yn.active&&yn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,cd.has(this)&&(cd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Qy(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Wv(this),eb(this);const t=kt,r=Ar;kt=this,Ar=!0;try{return this.fn()}finally{tb(this),kt=t,Ar=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,Wv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?cd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ud(this)&&this.run()}get dirty(){return Ud(this)}}let Zy=0,jl,Vl;function Qy(e,t=!1){if(e.flags|=8,t){e.next=Vl,Vl=e;return}e.next=jl,jl=e}function Vh(){Zy++}function Gh(){if(--Zy>0)return;if(Vl){let t=Vl;for(Vl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;jl;){let t=jl;for(jl=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 eb(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function tb(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Kh(o),xk(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function Ud(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(nb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function nb(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ra)||(e.globalVersion=ra,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ud(e))))return;e.flags|=2;const t=e.dep,r=kt,o=Ar;kt=e,Ar=!0;try{eb(e);const s=e.fn(e._value);(t.version===0||jn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{kt=r,Ar=o,tb(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 l=r.computed.deps;l;l=l.nextDep)Kh(l,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function xk(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Ar=!0;const rb=[];function wi(){rb.push(Ar),Ar=!1}function xi(){const e=rb.pop();Ar=e===void 0?!0:e}function Wv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let ra=0;class Sk{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 Hu{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}track(t){if(!kt||!Ar||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new Sk(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,ib(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,ra++,this.notify(t)}notify(t){Vh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Gh()}}}function ib(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)ib(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const ru=new WeakMap,Bo=Symbol(""),jd=Symbol(""),ia=Symbol("");function bn(e,t,r){if(Ar&&kt){let o=ru.get(e);o||ru.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Hu),s.map=o,s.key=r),s.track()}}function vi(e,t,r,o,s,l){const u=ru.get(e);if(!u){ra++;return}const d=h=>{h&&h.trigger()};if(Vh(),t==="clear")u.forEach(d);else{const h=Fe(e),p=h&&jh(r);if(h&&r==="length"){const g=Number(o);u.forEach((m,y)=>{(y==="length"||y===ia||!Mr(y)&&y>=g)&&d(m)})}else switch((r!==void 0||u.has(void 0))&&d(u.get(r)),p&&d(u.get(ia)),t){case"add":h?p&&d(u.get("length")):(d(u.get(Bo)),Ns(e)&&d(u.get(jd)));break;case"delete":h||(d(u.get(Bo)),Ns(e)&&d(u.get(jd)));break;case"set":Ns(e)&&d(u.get(Bo));break}}Gh()}function _k(e,t){const r=ru.get(e);return r&&r.get(t)}function xs(e){const t=ht(e);return t===e?t:(bn(t,"iterate",ia),fr(e)?t:t.map(hn))}function Bu(e){return bn(e=ht(e),"iterate",ia),e}const kk={__proto__:null,[Symbol.iterator](){return ud(this,Symbol.iterator,hn)},concat(...e){return xs(this).concat(...e.map(t=>Fe(t)?xs(t):t))},entries(){return ud(this,"entries",e=>(e[1]=hn(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(hn),arguments)},find(e,t){return ci(this,"find",e,t,hn,arguments)},findIndex(e,t){return ci(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ci(this,"findLast",e,t,hn,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 fd(this,"includes",e)},indexOf(...e){return fd(this,"indexOf",e)},join(e){return xs(this).join(e)},lastIndexOf(...e){return fd(this,"lastIndexOf",e)},map(e,t){return ci(this,"map",e,t,void 0,arguments)},pop(){return Ol(this,"pop")},push(...e){return Ol(this,"push",e)},reduce(e,...t){return qv(this,"reduce",e,t)},reduceRight(e,...t){return qv(this,"reduceRight",e,t)},shift(){return Ol(this,"shift")},some(e,t){return ci(this,"some",e,t,void 0,arguments)},splice(...e){return Ol(this,"splice",e)},toReversed(){return xs(this).toReversed()},toSorted(e){return xs(this).toSorted(e)},toSpliced(...e){return xs(this).toSpliced(...e)},unshift(...e){return Ol(this,"unshift",e)},values(){return ud(this,"values",hn)}};function ud(e,t,r){const o=Bu(e),s=o[t]();return o!==e&&!fr(e)&&(s._next=s.next,s.next=()=>{const l=s._next();return l.value&&(l.value=r(l.value)),l}),s}const Tk=Array.prototype;function ci(e,t,r,o,s,l){const u=Bu(e),d=u!==e&&!fr(e),h=u[t];if(h!==Tk[t]){const m=h.apply(e,l);return d?hn(m):m}let p=r;u!==e&&(d?p=function(m,y){return r.call(this,hn(m),y,e)}:r.length>2&&(p=function(m,y){return r.call(this,m,y,e)}));const g=h.call(u,p,o);return d&&s?s(g):g}function qv(e,t,r,o){const s=Bu(e);let l=r;return s!==e&&(fr(e)?r.length>3&&(l=function(u,d,h){return r.call(this,u,d,h,e)}):l=function(u,d,h){return r.call(this,u,hn(d),h,e)}),s[t](l,...o)}function fd(e,t,r){const o=ht(e);bn(o,"iterate",ia);const s=o[t](...r);return(s===-1||s===!1)&&Zh(r[0])?(r[0]=ht(r[0]),o[t](...r)):s}function Ol(e,t,r=[]){wi(),Vh();const o=ht(e)[t].apply(e,r);return Gh(),xi(),o}const Ck=Wh("__proto__,__v_isRef,__isVue"),ob=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Mr));function Ek(e){Mr(e)||(e=String(e));const t=ht(this);return bn(t,"has",e),t.hasOwnProperty(e)}class sb{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,l=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return l;if(r==="__v_raw")return o===(s?l?zk:ub:l?cb:ab).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const u=Fe(t);if(!s){let h;if(u&&(h=kk[r]))return h;if(r==="hasOwnProperty")return Ek}const d=Reflect.get(t,r,Ct(t)?t:o);return(Mr(r)?ob.has(r):Ck(r))||(s||bn(t,"get",r),l)?d:Ct(d)?u&&jh(r)?d:d.value:_t(d)?s?La(d):rr(d):d}}class lb extends sb{constructor(t=!1){super(!1,t)}set(t,r,o,s){let l=t[r];if(!this._isShallow){const h=co(l);if(!fr(o)&&!co(o)&&(l=ht(l),o=ht(o)),!Fe(t)&&Ct(l)&&!Ct(o))return h?!1:(l.value=o,!0)}const u=Fe(t)&&jh(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,Ct(t)?t:s);return t===ht(s)&&(u?jn(o,l)&&vi(t,"set",r,o):vi(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&vi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Mr(r)||!ob.has(r))&&bn(t,"has",r),o}ownKeys(t){return bn(t,"iterate",Fe(t)?"length":Bo),Reflect.ownKeys(t)}}class Ak extends sb{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const Lk=new lb,Mk=new Ak,$k=new lb(!0);const Vd=e=>e,kc=e=>Reflect.getPrototypeOf(e);function Nk(e,t,r){return function(...o){const s=this.__v_raw,l=ht(s),u=Ns(l),d=e==="entries"||e===Symbol.iterator&&u,h=e==="keys"&&u,p=s[e](...o),g=r?Vd:t?iu:hn;return!t&&bn(l,"iterate",h?jd:Bo),{next(){const{value:m,done:y}=p.next();return y?{value:m,done:y}:{value:d?[g(m[0]),g(m[1])]:g(m),done:y}},[Symbol.iterator](){return this}}}}function Tc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ok(e,t){const r={get(s){const l=this.__v_raw,u=ht(l),d=ht(s);e||(jn(s,d)&&bn(u,"get",s),bn(u,"get",d));const{has:h}=kc(u),p=t?Vd:e?iu:hn;if(h.call(u,s))return p(l.get(s));if(h.call(u,d))return p(l.get(d));l!==u&&l.get(s)},get size(){const s=this.__v_raw;return!e&&bn(ht(s),"iterate",Bo),Reflect.get(s,"size",s)},has(s){const l=this.__v_raw,u=ht(l),d=ht(s);return e||(jn(s,d)&&bn(u,"has",s),bn(u,"has",d)),s===d?l.has(s):l.has(s)||l.has(d)},forEach(s,l){const u=this,d=u.__v_raw,h=ht(d),p=t?Vd:e?iu:hn;return!e&&bn(h,"iterate",Bo),d.forEach((g,m)=>s.call(l,p(g),p(m),u))}};return on(r,e?{add:Tc("add"),set:Tc("set"),delete:Tc("delete"),clear:Tc("clear")}:{add(s){!t&&!fr(s)&&!co(s)&&(s=ht(s));const l=ht(this);return kc(l).has.call(l,s)||(l.add(s),vi(l,"add",s,s)),this},set(s,l){!t&&!fr(l)&&!co(l)&&(l=ht(l));const u=ht(this),{has:d,get:h}=kc(u);let p=d.call(u,s);p||(s=ht(s),p=d.call(u,s));const g=h.call(u,s);return u.set(s,l),p?jn(l,g)&&vi(u,"set",s,l):vi(u,"add",s,l),this},delete(s){const l=ht(this),{has:u,get:d}=kc(l);let h=u.call(l,s);h||(s=ht(s),h=u.call(l,s)),d&&d.call(l,s);const p=l.delete(s);return h&&vi(l,"delete",s,void 0),p},clear(){const s=ht(this),l=s.size!==0,u=s.clear();return l&&vi(s,"clear",void 0,void 0),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=Nk(s,e,t)}),r}function Xh(e,t){const r=Ok(e,t);return(o,s,l)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,l)}const Ik={get:Xh(!1,!1)},Pk={get:Xh(!1,!0)},Rk={get:Xh(!0,!1)};const ab=new WeakMap,cb=new WeakMap,ub=new WeakMap,zk=new WeakMap;function Dk(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fk(e){return e.__v_skip||!Object.isExtensible(e)?0:Dk(ak(e))}function rr(e){return co(e)?e:Jh(e,!1,Lk,Ik,ab)}function Yh(e){return Jh(e,!1,$k,Pk,cb)}function La(e){return Jh(e,!0,Mk,Rk,ub)}function Jh(e,t,r,o,s){if(!_t(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=Fk(e);if(l===0)return e;const u=s.get(e);if(u)return u;const d=new Proxy(e,l===2?o:r);return s.set(e,d),d}function Os(e){return co(e)?Os(e.__v_raw):!!(e&&e.__v_isReactive)}function co(e){return!!(e&&e.__v_isReadonly)}function fr(e){return!!(e&&e.__v_isShallow)}function Zh(e){return e?!!e.__v_raw:!1}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function Qh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&Uy(e,"__v_skip",!0),e}const hn=e=>_t(e)?rr(e):e,iu=e=>_t(e)?La(e):e;function Ct(e){return e?e.__v_isRef===!0:!1}function Ue(e){return fb(e,!1)}function rn(e){return fb(e,!0)}function fb(e,t){return Ct(e)?e:new Hk(e,t)}class Hk{constructor(t,r){this.dep=new Hu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ht(t),this._value=r?t:hn(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)||co(t);t=o?t:ht(t),jn(t,r)&&(this._rawValue=t,this._value=o?t:hn(t),this.dep.trigger())}}function V(e){return Ct(e)?e.value:e}function Vt(e){return Ge(e)?e():V(e)}const Bk={get:(e,t,r)=>t==="__v_raw"?e:V(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Ct(s)&&!Ct(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function db(e){return Os(e)?e:new Proxy(e,Bk)}class Wk{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Hu,{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 hb(e){return new Wk(e)}function qk(e){const t=Fe(e)?new Array(e.length):{};for(const r in e)t[r]=pb(e,r);return t}class Uk{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return _k(ht(this._object),this._key)}}class jk{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 Ma(e,t,r){return Ct(e)?e:Ge(e)?new jk(e):_t(e)&&arguments.length>1?pb(e,t,r):Ue(e)}function pb(e,t,r){const o=e[t];return Ct(o)?o:new Uk(e,t,r)}class Vk{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Hu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ra-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return Qy(this,!0),!0}get value(){const t=this.dep.track();return nb(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Gk(e,t,r=!1){let o,s;return Ge(e)?o=e:(o=e.get,s=e.set),new Vk(o,s,r)}const Cc={},ou=new WeakMap;let Ro;function Kk(e,t=!1,r=Ro){if(r){let o=ou.get(r);o||ou.set(r,o=[]),o.push(e)}}function Xk(e,t,r=mt){const{immediate:o,deep:s,once:l,scheduler:u,augmentJob:d,call:h}=r,p=L=>s?L:fr(L)||s===!1||s===0?mi(L,1):mi(L);let g,m,y,w,C=!1,$=!1;if(Ct(e)?(m=()=>e.value,C=fr(e)):Os(e)?(m=()=>p(e),C=!0):Fe(e)?($=!0,C=e.some(L=>Os(L)||fr(L)),m=()=>e.map(L=>{if(Ct(L))return L.value;if(Os(L))return p(L);if(Ge(L))return h?h(L,2):L()})):Ge(e)?t?m=h?()=>h(e,2):e:m=()=>{if(y){wi();try{y()}finally{xi()}}const L=Ro;Ro=g;try{return h?h(e,3,[w]):e(w)}finally{Ro=L}}:m=Kr,t&&s){const L=m,H=s===!0?1/0:s;m=()=>mi(L(),H)}const E=Yy(),T=()=>{g.stop(),E&&E.active&&Uh(E.effects,g)};if(l&&t){const L=t;t=(...H)=>{L(...H),T()}}let A=$?new Array(e.length).fill(Cc):Cc;const I=L=>{if(!(!(g.flags&1)||!g.dirty&&!L))if(t){const H=g.run();if(s||C||($?H.some((G,oe)=>jn(G,A[oe])):jn(H,A))){y&&y();const G=Ro;Ro=g;try{const oe=[H,A===Cc?void 0:$&&A[0]===Cc?[]:A,w];A=H,h?h(t,3,oe):t(...oe)}finally{Ro=G}}}else g.run()};return d&&d(I),g=new Jy(m),g.scheduler=u?()=>u(I,!1):I,w=L=>Kk(L,!1,g),y=g.onStop=()=>{const L=ou.get(g);if(L){if(h)h(L,4);else for(const H of L)H();ou.delete(g)}},t?o?I(!0):A=g.run():u?u(I.bind(null,!0),!0):g.run(),T.pause=g.pause.bind(g),T.resume=g.resume.bind(g),T.stop=T,T}function mi(e,t=1/0,r){if(t<=0||!_t(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Ct(e))mi(e.value,t,r);else if(Fe(e))for(let o=0;o<e.length;o++)mi(e[o],t,r);else if(Pu(e)||Ns(e))e.forEach(o=>{mi(o,t,r)});else if(qy(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.16
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function $a(e,t,r,o){try{return o?e(...o):e()}catch(s){Na(s,t,r)}}function $r(e,t,r,o){if(Ge(e)){const s=$a(e,t,r,o);return s&&By(s)&&s.catch(l=>{Na(l,t,r)}),s}if(Fe(e)){const s=[];for(let l=0;l<e.length;l++)s.push($r(e[l],t,r,o));return s}}function Na(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:u}=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 g=d.ec;if(g){for(let m=0;m<g.length;m++)if(g[m](e,h,p)===!1)return}d=d.parent}if(l){wi(),$a(l,null,10,[e,h,p]),xi();return}}Yk(e,r,s,o,u)}function Yk(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const On=[];let Ur=-1;const Is=[];let Ki=null,_s=0;const gb=Promise.resolve();let su=null;function Tt(e){const t=su||gb;return e?t.then(this?e.bind(this):e):t}function Jk(e){let t=Ur+1,r=On.length;for(;t<r;){const o=t+r>>>1,s=On[o],l=oa(s);l<e||l===e&&s.flags&2?t=o+1:r=o}return t}function ep(e){if(!(e.flags&1)){const t=oa(e),r=On[On.length-1];!r||!(e.flags&2)&&t>=oa(r)?On.push(e):On.splice(Jk(t),0,e),e.flags|=1,vb()}}function vb(){su||(su=gb.then(yb))}function Gd(e){Fe(e)?Is.push(...e):Ki&&e.id===-1?Ki.splice(_s+1,0,e):e.flags&1||(Is.push(e),e.flags|=1),vb()}function Uv(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 mb(e){if(Is.length){const t=[...new Set(Is)].sort((r,o)=>oa(r)-oa(o));if(Is.length=0,Ki){Ki.push(...t);return}for(Ki=t,_s=0;_s<Ki.length;_s++){const r=Ki[_s];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Ki=null,_s=0}}const oa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function yb(e){try{for(Ur=0;Ur<On.length;Ur++){const t=On[Ur];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),$a(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,mb(),su=null,(On.length||Is.length)&&yb()}}let tn=null,Wu=null;function lu(e){const t=tn;return tn=e,Wu=e&&e.type.__scopeId||null,t}function bb(e){Wu=e}function wb(){Wu=null}const xb=e=>rt;function rt(e,t=tn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&fu(-1);const l=lu(t);let u;try{u=e(...s)}finally{lu(l),o._d&&fu(1)}return u};return o._n=!0,o._c=!0,o._d=!0,o}function vt(e,t){if(tn===null)return e;const r=Yu(tn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,u,d,h=mt]=t[s];l&&(Ge(l)&&(l={mounted:l,updated:l}),l.deep&&mi(u),o.push({dir:l,instance:r,value:u,oldValue:void 0,arg:d,modifiers:h}))}return e}function $o(e,t,r,o){const s=e.dirs,l=t&&t.dirs;for(let u=0;u<s.length;u++){const d=s[u];l&&(d.oldValue=l[u].value);let h=d.dir[o];h&&(wi(),$r(h,r,8,[e.el,d,e,t]),xi())}}const Zk=Symbol("_vte"),Sb=e=>e.__isTeleport,Xi=Symbol("_leaveCb"),Ec=Symbol("_enterCb");function Qk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yo(()=>{e.isMounted=!0}),Oa(()=>{e.isUnmounting=!0}),e}const ar=[Function,Array],_b={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},kb=e=>{const t=e.subTree;return t.component?kb(t.component):t},eT={name:"BaseTransition",props:_b,setup(e,{slots:t}){const r=Vo(),o=Qk();return()=>{const s=t.default&&Eb(t.default(),!0);if(!s||!s.length)return;const l=Tb(s),u=ht(e),{mode:d}=u;if(o.isLeaving)return dd(l);const h=jv(l);if(!h)return dd(l);let p=Kd(h,u,o,r,m=>p=m);h.type!==ln&&sa(h,p);let g=r.subTree&&jv(r.subTree);if(g&&g.type!==ln&&!Vr(h,g)&&kb(r).type!==ln){let m=Kd(g,u,o,r);if(sa(g,m),d==="out-in"&&h.type!==ln)return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete m.afterLeave,g=void 0},dd(l);d==="in-out"&&h.type!==ln?m.delayLeave=(y,w,C)=>{const $=Cb(o,g);$[String(g.key)]=g,y[Xi]=()=>{w(),y[Xi]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{C(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return l}}};function Tb(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==ln){t=r;break}}return t}const tT=eT;function Cb(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 Kd(e,t,r,o,s){const{appear:l,mode:u,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:m,onBeforeLeave:y,onLeave:w,onAfterLeave:C,onLeaveCancelled:$,onBeforeAppear:E,onAppear:T,onAfterAppear:A,onAppearCancelled:I}=t,L=String(e.key),H=Cb(r,e),G=(Z,Q)=>{Z&&$r(Z,o,9,Q)},oe=(Z,Q)=>{const F=Q[1];G(Z,Q),Fe(Z)?Z.every(N=>N.length<=1)&&F():Z.length<=1&&F()},ee={mode:u,persisted:d,beforeEnter(Z){let Q=h;if(!r.isMounted)if(l)Q=E||h;else return;Z[Xi]&&Z[Xi](!0);const F=H[L];F&&Vr(e,F)&&F.el[Xi]&&F.el[Xi](),G(Q,[Z])},enter(Z){let Q=p,F=g,N=m;if(!r.isMounted)if(l)Q=T||p,F=A||g,N=I||m;else return;let P=!1;const O=Z[Ec]=S=>{P||(P=!0,S?G(N,[Z]):G(F,[Z]),ee.delayedLeave&&ee.delayedLeave(),Z[Ec]=void 0)};Q?oe(Q,[Z,O]):O()},leave(Z,Q){const F=String(e.key);if(Z[Ec]&&Z[Ec](!0),r.isUnmounting)return Q();G(y,[Z]);let N=!1;const P=Z[Xi]=O=>{N||(N=!0,Q(),O?G($,[Z]):G(C,[Z]),Z[Xi]=void 0,H[F]===e&&delete H[F])};H[F]=e,w?oe(w,[Z,P]):P()},clone(Z){const Q=Kd(Z,t,r,o,s);return s&&s(Q),Q}};return ee}function dd(e){if(qu(e))return e=uo(e),e.children=null,e}function jv(e){if(!qu(e))return Sb(e.type)&&e.children?Tb(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 sa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sa(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Eb(e,t=!1,r){let o=[],s=0;for(let l=0;l<e.length;l++){let u=e[l];const d=r==null?u.key:String(r)+String(u.key!=null?u.key:l);u.type===ct?(u.patchFlag&128&&s++,o=o.concat(Eb(u.children,t,d))):(t||u.type!==ln)&&o.push(d!=null?uo(u,{key:d}):u)}if(s>1)for(let l=0;l<o.length;l++)o[l].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ut(e,t){return Ge(e)?on({name:e.name},t,{setup:e}):e}function Ab(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function au(e,t,r,o,s=!1){if(Fe(e)){e.forEach((C,$)=>au(C,t&&(Fe(t)?t[$]:t),r,o,s));return}if(Ps(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&au(e,t,r,o.component.subTree);return}const l=o.shapeFlag&4?Yu(o.component):o.el,u=s?null:l,{i:d,r:h}=e,p=t&&t.r,g=d.refs===mt?d.refs={}:d.refs,m=d.setupState,y=ht(m),w=m===mt?()=>!1:C=>wt(y,C);if(p!=null&&p!==h&&(zt(p)?(g[p]=null,w(p)&&(m[p]=null)):Ct(p)&&(p.value=null)),Ge(h))$a(h,d,12,[u,g]);else{const C=zt(h),$=Ct(h);if(C||$){const E=()=>{if(e.f){const T=C?w(h)?m[h]:g[h]:h.value;s?Fe(T)&&Uh(T,l):Fe(T)?T.includes(l)||T.push(l):C?(g[h]=[l],w(h)&&(m[h]=g[h])):(h.value=[l],e.k&&(g[e.k]=h.value))}else C?(g[h]=u,w(h)&&(m[h]=u)):$&&(h.value=u,e.k&&(g[e.k]=u))};u?(E.id=-1,Qn(E,r)):E()}}}Du().requestIdleCallback;Du().cancelIdleCallback;const Ps=e=>!!e.type.__asyncLoader,qu=e=>e.type.__isKeepAlive;function nT(e,t){Lb(e,"a",t)}function rT(e,t){Lb(e,"da",t)}function Lb(e,t,r=an){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Uu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)qu(s.parent.vnode)&&iT(o,t,r,s),s=s.parent}}function iT(e,t,r,o){const s=Uu(t,e,o,!0);ju(()=>{Uh(o[t],s)},r)}function Uu(e,t,r=an,o=!1){if(r){const s=r[e]||(r[e]=[]),l=t.__weh||(t.__weh=(...u)=>{wi();const d=Ia(r),h=$r(t,r,e,u);return d(),xi(),h});return o?s.unshift(l):s.push(l),l}}const Ci=e=>(t,r=an)=>{(!ca||e==="sp")&&Uu(e,(...o)=>t(...o),r)},oT=Ci("bm"),yo=Ci("m"),sT=Ci("bu"),lT=Ci("u"),Oa=Ci("bum"),ju=Ci("um"),aT=Ci("sp"),cT=Ci("rtg"),uT=Ci("rtc");function fT(e,t=an){Uu("ec",e,t)}const tp="components",dT="directives";function Uo(e,t){return np(tp,e,!0,t)||e}const Mb=Symbol.for("v-ndc");function Xd(e){return zt(e)?np(tp,e,!1)||e:e||Mb}function Qr(e){return np(dT,e)}function np(e,t,r=!0,o=!1){const s=tn||an;if(s){const l=s.type;if(e===tp){const d=iC(l,!1);if(d&&(d===t||d===ir(t)||d===zu(ir(t))))return l}const u=Vv(s[e]||l[e],t)||Vv(s.appContext[e],t);return!u&&o?l:u}}function Vv(e,t){return e&&(e[t]||e[ir(t)]||e[zu(ir(t))])}function Si(e,t,r,o){let s;const l=r,u=Fe(e);if(u||zt(e)){const d=u&&Os(e);let h=!1,p=!1;d&&(h=!fr(e),p=co(e),e=Bu(e)),s=new Array(e.length);for(let g=0,m=e.length;g<m;g++)s[g]=t(h?p?iu(hn(e[g])):hn(e[g]):e[g],g,void 0,l)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,l)}else if(_t(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,l));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const g=d[h];s[h]=t(e[g],g,h,l)}}else s=[];return s}function hT(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Fe(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 l=o.fn(...s);return l&&(l.key=o.key),l}:o.fn)}return e}function xn(e,t,r={},o,s){if(tn.ce||tn.parent&&Ps(tn.parent)&&tn.parent.ce)return t!=="default"&&(r.name=t),ce(),nt(ct,null,[Ie("slot",r,o&&o())],64);let l=e[t];l&&l._c&&(l._d=!1),ce();const u=l&&$b(l(r)),d=r.key||u&&u.key,h=nt(ct,{key:(d&&!Mr(d)?d:`_${t}`)+(!u&&o?"_fb":"")},u||(o?o():[]),u&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),l&&l._c&&(l._d=!0),h}function $b(e){return e.some(t=>Gs(t)?!(t.type===ln||t.type===ct&&!$b(t.children)):!0)?e:null}function pT(e,t){const r={};for(const o in e)r[Wc(o)]=e[o];return r}const Yd=e=>e?rw(e)?Yu(e):Yd(e.parent):null,Gl=on(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=>Yd(e.parent),$root:e=>Yd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ib(e),$forceUpdate:e=>e.f||(e.f=()=>{ep(e.update)}),$nextTick:e=>e.n||(e.n=Tt.bind(e.proxy)),$watch:e=>DT.bind(e)}),hd=(e,t)=>e!==mt&&!e.__isScriptSetup&&wt(e,t),gT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:l,accessCache:u,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const w=u[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 l[t]}else{if(hd(o,t))return u[t]=1,o[t];if(s!==mt&&wt(s,t))return u[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return u[t]=3,l[t];if(r!==mt&&wt(r,t))return u[t]=4,r[t];Jd&&(u[t]=0)}}const g=Gl[t];let m,y;if(g)return t==="$attrs"&&bn(e.attrs,"get",""),g(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==mt&&wt(r,t))return u[t]=4,r[t];if(y=h.config.globalProperties,wt(y,t))return y[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:l}=e;return hd(s,t)?(s[t]=r,!0):o!==mt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:l}},u){let d;return!!r[u]||e!==mt&&wt(e,u)||hd(t,u)||(d=l[0])&&wt(d,u)||wt(o,u)||wt(Gl,u)||wt(s.config.globalProperties,u)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function vT(){return Nb().slots}function mT(){return Nb().attrs}function Nb(){const e=Vo();return e.setupContext||(e.setupContext=ow(e))}function cu(e){return Fe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function la(e,t){return!e||!t?e||t:Fe(e)&&Fe(t)?e.concat(t):on({},cu(e),cu(t))}let Jd=!0;function yT(e){const t=Ib(e),r=e.proxy,o=e.ctx;Jd=!1,t.beforeCreate&&Gv(t.beforeCreate,e,"bc");const{data:s,computed:l,methods:u,watch:d,provide:h,inject:p,created:g,beforeMount:m,mounted:y,beforeUpdate:w,updated:C,activated:$,deactivated:E,beforeDestroy:T,beforeUnmount:A,destroyed:I,unmounted:L,render:H,renderTracked:G,renderTriggered:oe,errorCaptured:ee,serverPrefetch:Z,expose:Q,inheritAttrs:F,components:N,directives:P,filters:O}=t;if(p&&bT(p,o,null),u)for(const j in u){const ne=u[j];Ge(ne)&&(o[j]=ne.bind(r))}if(s){const j=s.call(r,r);_t(j)&&(e.data=rr(j))}if(Jd=!0,l)for(const j in l){const ne=l[j],me=Ge(ne)?ne.bind(r,r):Ge(ne.get)?ne.get.bind(r,r):Kr,xe=!Ge(ne)&&Ge(ne.set)?ne.set.bind(r):Kr,Ne=_e({get:me,set:xe});Object.defineProperty(o,j,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:Re=>Ne.value=Re})}if(d)for(const j in d)Ob(d[j],o,r,j);if(h){const j=Ge(h)?h.call(r):h;Reflect.ownKeys(j).forEach(ne=>{Tr(ne,j[ne])})}g&&Gv(g,e,"c");function R(j,ne){Fe(ne)?ne.forEach(me=>j(me.bind(r))):ne&&j(ne.bind(r))}if(R(oT,m),R(yo,y),R(sT,w),R(lT,C),R(nT,$),R(rT,E),R(fT,ee),R(uT,G),R(cT,oe),R(Oa,A),R(ju,L),R(aT,Z),Fe(Q))if(Q.length){const j=e.exposed||(e.exposed={});Q.forEach(ne=>{Object.defineProperty(j,ne,{get:()=>r[ne],set:me=>r[ne]=me})})}else e.exposed||(e.exposed={});H&&e.render===Kr&&(e.render=H),F!=null&&(e.inheritAttrs=F),N&&(e.components=N),P&&(e.directives=P),Z&&Ab(e)}function bT(e,t,r=Kr){Fe(e)&&(e=Zd(e));for(const o in e){const s=e[o];let l;_t(s)?"default"in s?l=wn(s.from||o,s.default,!0):l=wn(s.from||o):l=wn(s),Ct(l)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[o]=l}}function Gv(e,t,r){$r(Fe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ob(e,t,r,o){let s=o.includes(".")?Gb(r,o):()=>r[o];if(zt(e)){const l=t[e];Ge(l)&&xt(s,l)}else if(Ge(e))xt(s,e.bind(r));else if(_t(e))if(Fe(e))e.forEach(l=>Ob(l,t,r,o));else{const l=Ge(e.handler)?e.handler.bind(r):t[e.handler];Ge(l)&&xt(s,l,e)}}function Ib(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:l,config:{optionMergeStrategies:u}}=e.appContext,d=l.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>uu(h,p,u,!0)),uu(h,t,u)),_t(t)&&l.set(t,h),h}function uu(e,t,r,o=!1){const{mixins:s,extends:l}=t;l&&uu(e,l,r,!0),s&&s.forEach(u=>uu(e,u,r,!0));for(const u in t)if(!(o&&u==="expose")){const d=wT[u]||r&&r[u];e[u]=d?d(e[u],t[u]):t[u]}return e}const wT={data:Kv,props:Xv,emits:Xv,methods:Bl,computed:Bl,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:Bl,directives:Bl,watch:ST,provide:Kv,inject:xT};function Kv(e,t){return t?e?function(){return on(Ge(e)?e.call(this,this):e,Ge(t)?t.call(this,this):t)}:t:e}function xT(e,t){return Bl(Zd(e),Zd(t))}function Zd(e){if(Fe(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 Bl(e,t){return e?on(Object.create(null),e,t):t}function Xv(e,t){return e?Fe(e)&&Fe(t)?[...new Set([...e,...t])]:on(Object.create(null),cu(e),cu(t??{})):t}function ST(e,t){if(!e)return t;if(!t)return e;const r=on(Object.create(null),e);for(const o in t)r[o]=Mn(e[o],t[o]);return r}function Pb(){return{app:null,config:{isNativeTag:sk,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 _T=0;function kT(e,t){return function(o,s=null){Ge(o)||(o=on({},o)),s!=null&&!_t(s)&&(s=null);const l=Pb(),u=new WeakSet,d=[];let h=!1;const p=l.app={_uid:_T++,_component:o,_props:s,_container:null,_context:l,_instance:null,version:sC,get config(){return l.config},set config(g){},use(g,...m){return u.has(g)||(g&&Ge(g.install)?(u.add(g),g.install(p,...m)):Ge(g)&&(u.add(g),g(p,...m))),p},mixin(g){return l.mixins.includes(g)||l.mixins.push(g),p},component(g,m){return m?(l.components[g]=m,p):l.components[g]},directive(g,m){return m?(l.directives[g]=m,p):l.directives[g]},mount(g,m,y){if(!h){const w=p._ceVNode||Ie(o,s);return w.appContext=l,y===!0?y="svg":y===!1&&(y=void 0),e(w,g,y),h=!0,p._container=g,g.__vue_app__=p,Yu(w.component)}},onUnmount(g){d.push(g)},unmount(){h&&($r(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(g,m){return l.provides[g]=m,p},runWithContext(g){const m=Wo;Wo=p;try{return g()}finally{Wo=m}}};return p}}let Wo=null;function Tr(e,t){if(an){let r=an.provides;const o=an.parent&&an.parent.provides;o===r&&(r=an.provides=Object.create(o)),r[e]=t}}function wn(e,t,r=!1){const o=an||tn;if(o||Wo){let s=Wo?Wo._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 Rb(){return!!(an||tn||Wo)}const zb={},Db=()=>Object.create(zb),Fb=e=>Object.getPrototypeOf(e)===zb;function TT(e,t,r,o=!1){const s={},l=Db();e.propsDefaults=Object.create(null),Hb(e,t,s,l);for(const u in e.propsOptions[0])u in s||(s[u]=void 0);r?e.props=o?s:Yh(s):e.type.props?e.props=s:e.props=l,e.attrs=l}function CT(e,t,r,o){const{props:s,attrs:l,vnode:{patchFlag:u}}=e,d=ht(s),[h]=e.propsOptions;let p=!1;if((o||u>0)&&!(u&16)){if(u&8){const g=e.vnode.dynamicProps;for(let m=0;m<g.length;m++){let y=g[m];if(Ku(e.emitsOptions,y))continue;const w=t[y];if(h)if(wt(l,y))w!==l[y]&&(l[y]=w,p=!0);else{const C=ir(y);s[C]=Qd(h,d,C,w,e,!1)}else w!==l[y]&&(l[y]=w,p=!0)}}}else{Hb(e,t,s,l)&&(p=!0);let g;for(const m in d)(!t||!wt(t,m)&&((g=Ti(m))===m||!wt(t,g)))&&(h?r&&(r[m]!==void 0||r[g]!==void 0)&&(s[m]=Qd(h,d,m,void 0,e,!0)):delete s[m]);if(l!==d)for(const m in l)(!t||!wt(t,m))&&(delete l[m],p=!0)}p&&vi(e.attrs,"set","")}function Hb(e,t,r,o){const[s,l]=e.propsOptions;let u=!1,d;if(t)for(let h in t){if(Ul(h))continue;const p=t[h];let g;s&&wt(s,g=ir(h))?!l||!l.includes(g)?r[g]=p:(d||(d={}))[g]=p:Ku(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,u=!0)}if(l){const h=ht(r),p=d||mt;for(let g=0;g<l.length;g++){const m=l[g];r[m]=Qd(s,h,m,p[m],e,!wt(p,m))}}return u}function Qd(e,t,r,o,s,l){const u=e[r];if(u!=null){const d=wt(u,"default");if(d&&o===void 0){const h=u.default;if(u.type!==Function&&!u.skipFactory&&Ge(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const g=Ia(s);o=p[r]=h.call(null,t),g()}}else o=h;s.ce&&s.ce._setProp(r,o)}u[0]&&(l&&!d?o=!1:u[1]&&(o===""||o===Ti(r))&&(o=!0))}return o}const ET=new WeakMap;function Bb(e,t,r=!1){const o=r?ET:t.propsCache,s=o.get(e);if(s)return s;const l=e.props,u={},d=[];let h=!1;if(!Ge(e)){const g=m=>{h=!0;const[y,w]=Bb(m,t,!0);on(u,y),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!l&&!h)return _t(e)&&o.set(e,$s),$s;if(Fe(l))for(let g=0;g<l.length;g++){const m=ir(l[g]);Yv(m)&&(u[m]=mt)}else if(l)for(const g in l){const m=ir(g);if(Yv(m)){const y=l[g],w=u[m]=Fe(y)||Ge(y)?{type:y}:on({},y),C=w.type;let $=!1,E=!0;if(Fe(C))for(let T=0;T<C.length;++T){const A=C[T],I=Ge(A)&&A.name;if(I==="Boolean"){$=!0;break}else I==="String"&&(E=!1)}else $=Ge(C)&&C.name==="Boolean";w[0]=$,w[1]=E,($||wt(w,"default"))&&d.push(m)}}const p=[u,d];return _t(e)&&o.set(e,p),p}function Yv(e){return e[0]!=="$"&&!Ul(e)}const rp=e=>e[0]==="_"||e==="$stable",ip=e=>Fe(e)?e.map(Cr):[Cr(e)],AT=(e,t,r)=>{if(t._n)return t;const o=rt((...s)=>ip(t(...s)),r);return o._c=!1,o},Wb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(rp(s))continue;const l=e[s];if(Ge(l))t[s]=AT(s,l,o);else if(l!=null){const u=ip(l);t[s]=()=>u}}},qb=(e,t)=>{const r=ip(t);e.slots.default=()=>r},Ub=(e,t,r)=>{for(const o in t)(r||!rp(o))&&(e[o]=t[o])},LT=(e,t,r)=>{const o=e.slots=Db();if(e.vnode.shapeFlag&32){const s=t._;s?(Ub(o,t,r),r&&Uy(o,"_",s,!0)):Wb(t,o)}else t&&qb(e,t)},MT=(e,t,r)=>{const{vnode:o,slots:s}=e;let l=!0,u=mt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?l=!1:Ub(s,t,r):(l=!t.$stable,Wb(t,s)),u=t}else t&&(qb(e,t),u={default:1});if(l)for(const d in s)!rp(d)&&u[d]==null&&delete s[d]},Qn=XT;function $T(e){return NT(e)}function NT(e,t){const r=Du();r.__VUE__=!0;const{insert:o,remove:s,patchProp:l,createElement:u,createText:d,createComment:h,setText:p,setElementText:g,parentNode:m,nextSibling:y,setScopeId:w=Kr,insertStaticContent:C}=e,$=(z,W,X,ue=null,he=null,de=null,Ce=void 0,Ee=null,ve=!!W.dynamicChildren)=>{if(z===W)return;z&&!Vr(z,W)&&(ue=B(z),Re(z,he,de,!0),z=null),W.patchFlag===-2&&(ve=!1,W.dynamicChildren=null);const{type:ye,ref:We,shapeFlag:$e}=W;switch(ye){case Xu:E(z,W,X,ue);break;case ln:T(z,W,X,ue);break;case gd:z==null&&A(W,X,ue,Ce);break;case ct:N(z,W,X,ue,he,de,Ce,Ee,ve);break;default:$e&1?H(z,W,X,ue,he,de,Ce,Ee,ve):$e&6?P(z,W,X,ue,he,de,Ce,Ee,ve):($e&64||$e&128)&&ye.process(z,W,X,ue,he,de,Ce,Ee,ve,le)}We!=null&&he&&au(We,z&&z.ref,de,W||z,!W)},E=(z,W,X,ue)=>{if(z==null)o(W.el=d(W.children),X,ue);else{const he=W.el=z.el;W.children!==z.children&&p(he,W.children)}},T=(z,W,X,ue)=>{z==null?o(W.el=h(W.children||""),X,ue):W.el=z.el},A=(z,W,X,ue)=>{[z.el,z.anchor]=C(z.children,W,X,ue,z.el,z.anchor)},I=({el:z,anchor:W},X,ue)=>{let he;for(;z&&z!==W;)he=y(z),o(z,X,ue),z=he;o(W,X,ue)},L=({el:z,anchor:W})=>{let X;for(;z&&z!==W;)X=y(z),s(z),z=X;s(W)},H=(z,W,X,ue,he,de,Ce,Ee,ve)=>{W.type==="svg"?Ce="svg":W.type==="math"&&(Ce="mathml"),z==null?G(W,X,ue,he,de,Ce,Ee,ve):Z(z,W,he,de,Ce,Ee,ve)},G=(z,W,X,ue,he,de,Ce,Ee)=>{let ve,ye;const{props:We,shapeFlag:$e,transition:De,dirs:Ve}=z;if(ve=z.el=u(z.type,de,We&&We.is,We),$e&8?g(ve,z.children):$e&16&&ee(z.children,ve,null,ue,he,pd(z,de),Ce,Ee),Ve&&$o(z,null,ue,"created"),oe(ve,z,z.scopeId,Ce,ue),We){for(const ot in We)ot!=="value"&&!Ul(ot)&&l(ve,ot,null,We[ot],de,ue);"value"in We&&l(ve,"value",null,We.value,de),(ye=We.onVnodeBeforeMount)&&qr(ye,ue,z)}Ve&&$o(z,null,ue,"beforeMount");const tt=OT(he,De);tt&&De.beforeEnter(ve),o(ve,W,X),((ye=We&&We.onVnodeMounted)||tt||Ve)&&Qn(()=>{ye&&qr(ye,ue,z),tt&&De.enter(ve),Ve&&$o(z,null,ue,"mounted")},he)},oe=(z,W,X,ue,he)=>{if(X&&w(z,X),ue)for(let de=0;de<ue.length;de++)w(z,ue[de]);if(he){let de=he.subTree;if(W===de||Yb(de.type)&&(de.ssContent===W||de.ssFallback===W)){const Ce=he.vnode;oe(z,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},ee=(z,W,X,ue,he,de,Ce,Ee,ve=0)=>{for(let ye=ve;ye<z.length;ye++){const We=z[ye]=Ee?Yi(z[ye]):Cr(z[ye]);$(null,We,W,X,ue,he,de,Ce,Ee)}},Z=(z,W,X,ue,he,de,Ce)=>{const Ee=W.el=z.el;let{patchFlag:ve,dynamicChildren:ye,dirs:We}=W;ve|=z.patchFlag&16;const $e=z.props||mt,De=W.props||mt;let Ve;if(X&&No(X,!1),(Ve=De.onVnodeBeforeUpdate)&&qr(Ve,X,W,z),We&&$o(W,z,X,"beforeUpdate"),X&&No(X,!0),($e.innerHTML&&De.innerHTML==null||$e.textContent&&De.textContent==null)&&g(Ee,""),ye?Q(z.dynamicChildren,ye,Ee,X,ue,pd(W,he),de):Ce||ne(z,W,Ee,null,X,ue,pd(W,he),de,!1),ve>0){if(ve&16)F(Ee,$e,De,X,he);else if(ve&2&&$e.class!==De.class&&l(Ee,"class",null,De.class,he),ve&4&&l(Ee,"style",$e.style,De.style,he),ve&8){const tt=W.dynamicProps;for(let ot=0;ot<tt.length;ot++){const lt=tt[ot],Nt=$e[lt],st=De[lt];(st!==Nt||lt==="value")&&l(Ee,lt,Nt,st,he,X)}}ve&1&&z.children!==W.children&&g(Ee,W.children)}else!Ce&&ye==null&&F(Ee,$e,De,X,he);((Ve=De.onVnodeUpdated)||We)&&Qn(()=>{Ve&&qr(Ve,X,W,z),We&&$o(W,z,X,"updated")},ue)},Q=(z,W,X,ue,he,de,Ce)=>{for(let Ee=0;Ee<W.length;Ee++){const ve=z[Ee],ye=W[Ee],We=ve.el&&(ve.type===ct||!Vr(ve,ye)||ve.shapeFlag&198)?m(ve.el):X;$(ve,ye,We,null,ue,he,de,Ce,!0)}},F=(z,W,X,ue,he)=>{if(W!==X){if(W!==mt)for(const de in W)!Ul(de)&&!(de in X)&&l(z,de,W[de],null,he,ue);for(const de in X){if(Ul(de))continue;const Ce=X[de],Ee=W[de];Ce!==Ee&&de!=="value"&&l(z,de,Ee,Ce,he,ue)}"value"in X&&l(z,"value",W.value,X.value,he)}},N=(z,W,X,ue,he,de,Ce,Ee,ve)=>{const ye=W.el=z?z.el:d(""),We=W.anchor=z?z.anchor:d("");let{patchFlag:$e,dynamicChildren:De,slotScopeIds:Ve}=W;Ve&&(Ee=Ee?Ee.concat(Ve):Ve),z==null?(o(ye,X,ue),o(We,X,ue),ee(W.children||[],X,We,he,de,Ce,Ee,ve)):$e>0&&$e&64&&De&&z.dynamicChildren?(Q(z.dynamicChildren,De,X,he,de,Ce,Ee),(W.key!=null||he&&W===he.subTree)&&jb(z,W,!0)):ne(z,W,X,We,he,de,Ce,Ee,ve)},P=(z,W,X,ue,he,de,Ce,Ee,ve)=>{W.slotScopeIds=Ee,z==null?W.shapeFlag&512?he.ctx.activate(W,X,ue,Ce,ve):O(W,X,ue,he,de,Ce,ve):S(z,W,ve)},O=(z,W,X,ue,he,de,Ce)=>{const Ee=z.component=eC(z,ue,he);if(qu(z)&&(Ee.ctx.renderer=le),tC(Ee,!1,Ce),Ee.asyncDep){if(he&&he.registerDep(Ee,R,Ce),!z.el){const ve=Ee.subTree=Ie(ln);T(null,ve,W,X)}}else R(Ee,z,W,X,he,de,Ce)},S=(z,W,X)=>{const ue=W.component=z.component;if(qT(z,W,X))if(ue.asyncDep&&!ue.asyncResolved){j(ue,W,X);return}else ue.next=W,ue.update();else W.el=z.el,ue.vnode=W},R=(z,W,X,ue,he,de,Ce)=>{const Ee=()=>{if(z.isMounted){let{next:$e,bu:De,u:Ve,parent:tt,vnode:ot}=z;{const Bt=Vb(z);if(Bt){$e&&($e.el=ot.el,j(z,$e,Ce)),Bt.asyncDep.then(()=>{z.isUnmounted||Ee()});return}}let lt=$e,Nt;No(z,!1),$e?($e.el=ot.el,j(z,$e,Ce)):$e=ot,De&&qc(De),(Nt=$e.props&&$e.props.onVnodeBeforeUpdate)&&qr(Nt,tt,$e,ot),No(z,!0);const st=Zv(z),Gt=z.subTree;z.subTree=st,$(Gt,st,m(Gt.el),B(Gt),z,he,de),$e.el=st.el,lt===null&&sp(z,st.el),Ve&&Qn(Ve,he),(Nt=$e.props&&$e.props.onVnodeUpdated)&&Qn(()=>qr(Nt,tt,$e,ot),he)}else{let $e;const{el:De,props:Ve}=W,{bm:tt,m:ot,parent:lt,root:Nt,type:st}=z,Gt=Ps(W);No(z,!1),tt&&qc(tt),!Gt&&($e=Ve&&Ve.onVnodeBeforeMount)&&qr($e,lt,W),No(z,!0);{Nt.ce&&Nt.ce._injectChildStyle(st);const Bt=z.subTree=Zv(z);$(null,Bt,X,ue,z,he,de),W.el=Bt.el}if(ot&&Qn(ot,he),!Gt&&($e=Ve&&Ve.onVnodeMounted)){const Bt=W;Qn(()=>qr($e,lt,Bt),he)}(W.shapeFlag&256||lt&&Ps(lt.vnode)&<.vnode.shapeFlag&256)&&z.a&&Qn(z.a,he),z.isMounted=!0,W=X=ue=null}};z.scope.on();const ve=z.effect=new Jy(Ee);z.scope.off();const ye=z.update=ve.run.bind(ve),We=z.job=ve.runIfDirty.bind(ve);We.i=z,We.id=z.uid,ve.scheduler=()=>ep(We),No(z,!0),ye()},j=(z,W,X)=>{W.component=z;const ue=z.vnode.props;z.vnode=W,z.next=null,CT(z,W.props,ue,X),MT(z,W.children,X),wi(),Uv(z),xi()},ne=(z,W,X,ue,he,de,Ce,Ee,ve=!1)=>{const ye=z&&z.children,We=z?z.shapeFlag:0,$e=W.children,{patchFlag:De,shapeFlag:Ve}=W;if(De>0){if(De&128){xe(ye,$e,X,ue,he,de,Ce,Ee,ve);return}else if(De&256){me(ye,$e,X,ue,he,de,Ce,Ee,ve);return}}Ve&8?(We&16&&re(ye,he,de),$e!==ye&&g(X,$e)):We&16?Ve&16?xe(ye,$e,X,ue,he,de,Ce,Ee,ve):re(ye,he,de,!0):(We&8&&g(X,""),Ve&16&&ee($e,X,ue,he,de,Ce,Ee,ve))},me=(z,W,X,ue,he,de,Ce,Ee,ve)=>{z=z||$s,W=W||$s;const ye=z.length,We=W.length,$e=Math.min(ye,We);let De;for(De=0;De<$e;De++){const Ve=W[De]=ve?Yi(W[De]):Cr(W[De]);$(z[De],Ve,X,null,he,de,Ce,Ee,ve)}ye>We?re(z,he,de,!0,!1,$e):ee(W,X,ue,he,de,Ce,Ee,ve,$e)},xe=(z,W,X,ue,he,de,Ce,Ee,ve)=>{let ye=0;const We=W.length;let $e=z.length-1,De=We-1;for(;ye<=$e&&ye<=De;){const Ve=z[ye],tt=W[ye]=ve?Yi(W[ye]):Cr(W[ye]);if(Vr(Ve,tt))$(Ve,tt,X,null,he,de,Ce,Ee,ve);else break;ye++}for(;ye<=$e&&ye<=De;){const Ve=z[$e],tt=W[De]=ve?Yi(W[De]):Cr(W[De]);if(Vr(Ve,tt))$(Ve,tt,X,null,he,de,Ce,Ee,ve);else break;$e--,De--}if(ye>$e){if(ye<=De){const Ve=De+1,tt=Ve<We?W[Ve].el:ue;for(;ye<=De;)$(null,W[ye]=ve?Yi(W[ye]):Cr(W[ye]),X,tt,he,de,Ce,Ee,ve),ye++}}else if(ye>De)for(;ye<=$e;)Re(z[ye],he,de,!0),ye++;else{const Ve=ye,tt=ye,ot=new Map;for(ye=tt;ye<=De;ye++){const Dt=W[ye]=ve?Yi(W[ye]):Cr(W[ye]);Dt.key!=null&&ot.set(Dt.key,ye)}let lt,Nt=0;const st=De-tt+1;let Gt=!1,Bt=0;const Dn=new Array(st);for(ye=0;ye<st;ye++)Dn[ye]=0;for(ye=Ve;ye<=$e;ye++){const Dt=z[ye];if(Nt>=st){Re(Dt,he,de,!0);continue}let Fn;if(Dt.key!=null)Fn=ot.get(Dt.key);else for(lt=tt;lt<=De;lt++)if(Dn[lt-tt]===0&&Vr(Dt,W[lt])){Fn=lt;break}Fn===void 0?Re(Dt,he,de,!0):(Dn[Fn-tt]=ye+1,Fn>=Bt?Bt=Fn:Gt=!0,$(Dt,W[Fn],X,null,he,de,Ce,Ee,ve),Nt++)}const zr=Gt?IT(Dn):$s;for(lt=zr.length-1,ye=st-1;ye>=0;ye--){const Dt=tt+ye,Fn=W[Dt],et=Dt+1<We?W[Dt+1].el:ue;Dn[ye]===0?$(null,Fn,X,et,he,de,Ce,Ee,ve):Gt&&(lt<0||ye!==zr[lt]?Ne(Fn,X,et,2):lt--)}}},Ne=(z,W,X,ue,he=null)=>{const{el:de,type:Ce,transition:Ee,children:ve,shapeFlag:ye}=z;if(ye&6){Ne(z.component.subTree,W,X,ue);return}if(ye&128){z.suspense.move(W,X,ue);return}if(ye&64){Ce.move(z,W,X,le);return}if(Ce===ct){o(de,W,X);for(let $e=0;$e<ve.length;$e++)Ne(ve[$e],W,X,ue);o(z.anchor,W,X);return}if(Ce===gd){I(z,W,X);return}if(ue!==2&&ye&1&&Ee)if(ue===0)Ee.beforeEnter(de),o(de,W,X),Qn(()=>Ee.enter(de),he);else{const{leave:$e,delayLeave:De,afterLeave:Ve}=Ee,tt=()=>{z.ctx.isUnmounted?s(de):o(de,W,X)},ot=()=>{$e(de,()=>{tt(),Ve&&Ve()})};De?De(de,tt,ot):ot()}else o(de,W,X)},Re=(z,W,X,ue=!1,he=!1)=>{const{type:de,props:Ce,ref:Ee,children:ve,dynamicChildren:ye,shapeFlag:We,patchFlag:$e,dirs:De,cacheIndex:Ve}=z;if($e===-2&&(he=!1),Ee!=null&&(wi(),au(Ee,null,X,z,!0),xi()),Ve!=null&&(W.renderCache[Ve]=void 0),We&256){W.ctx.deactivate(z);return}const tt=We&1&&De,ot=!Ps(z);let lt;if(ot&&(lt=Ce&&Ce.onVnodeBeforeUnmount)&&qr(lt,W,z),We&6)Ye(z.component,X,ue);else{if(We&128){z.suspense.unmount(X,ue);return}tt&&$o(z,null,W,"beforeUnmount"),We&64?z.type.remove(z,W,X,le,ue):ye&&!ye.hasOnce&&(de!==ct||$e>0&&$e&64)?re(ye,W,X,!1,!0):(de===ct&&$e&384||!he&&We&16)&&re(ve,W,X),ue&&je(z)}(ot&&(lt=Ce&&Ce.onVnodeUnmounted)||tt)&&Qn(()=>{lt&&qr(lt,W,z),tt&&$o(z,null,W,"unmounted")},X)},je=z=>{const{type:W,el:X,anchor:ue,transition:he}=z;if(W===ct){Xe(X,ue);return}if(W===gd){L(z);return}const de=()=>{s(X),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(z.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ee}=he,ve=()=>Ce(X,de);Ee?Ee(z.el,de,ve):ve()}else de()},Xe=(z,W)=>{let X;for(;z!==W;)X=y(z),s(z),z=X;s(W)},Ye=(z,W,X)=>{const{bum:ue,scope:he,job:de,subTree:Ce,um:Ee,m:ve,a:ye,parent:We,slots:{__:$e}}=z;Jv(ve),Jv(ye),ue&&qc(ue),We&&Fe($e)&&$e.forEach(De=>{We.renderCache[De]=void 0}),he.stop(),de&&(de.flags|=8,Re(Ce,z,W,X)),Ee&&Qn(Ee,W),Qn(()=>{z.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&z.asyncDep&&!z.asyncResolved&&z.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},re=(z,W,X,ue=!1,he=!1,de=0)=>{for(let Ce=de;Ce<z.length;Ce++)Re(z[Ce],W,X,ue,he)},B=z=>{if(z.shapeFlag&6)return B(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const W=y(z.anchor||z.el),X=W&&W[Zk];return X?y(X):W};let J=!1;const K=(z,W,X)=>{z==null?W._vnode&&Re(W._vnode,null,null,!0):$(W._vnode||null,z,W,null,null,null,X),W._vnode=z,J||(J=!0,Uv(),mb(),J=!1)},le={p:$,um:Re,m:Ne,r:je,mt:O,mc:ee,pc:ne,pbc:Q,n:B,o:e};return{render:K,hydrate:void 0,createApp:kT(K)}}function pd({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 No({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function OT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jb(e,t,r=!1){const o=e.children,s=t.children;if(Fe(o)&&Fe(s))for(let l=0;l<o.length;l++){const u=o[l];let d=s[l];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[l]=Yi(s[l]),d.el=u.el),!r&&d.patchFlag!==-2&&jb(u,d)),d.type===Xu&&(d.el=u.el),d.type===ln&&!d.el&&(d.el=u.el)}}function IT(e){const t=e.slice(),r=[0];let o,s,l,u,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(l=0,u=r.length-1;l<u;)d=l+u>>1,e[r[d]]<p?l=d+1:u=d;p<e[r[l]]&&(l>0&&(t[o]=r[l-1]),r[l]=o)}}for(l=r.length,u=r[l-1];l-- >0;)r[l]=u,u=t[u];return r}function Vb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vb(t)}function Jv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const PT=Symbol.for("v-scx"),RT=()=>wn(PT);function op(e,t){return Vu(e,null,t)}function zT(e,t){return Vu(e,null,{flush:"sync"})}function xt(e,t,r){return Vu(e,t,r)}function Vu(e,t,r=mt){const{immediate:o,deep:s,flush:l,once:u}=r,d=on({},r),h=t&&o||!t&&l!=="post";let p;if(ca){if(l==="sync"){const w=RT();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Kr,w.resume=Kr,w.pause=Kr,w}}const g=an;d.call=(w,C,$)=>$r(w,g,C,$);let m=!1;l==="post"?d.scheduler=w=>{Qn(w,g&&g.suspense)}:l!=="sync"&&(m=!0,d.scheduler=(w,C)=>{C?w():ep(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,g&&(w.id=g.uid,w.i=g))};const y=Xk(e,t,d);return ca&&(p?p.push(y):h&&y()),y}function DT(e,t,r){const o=this.proxy,s=zt(e)?e.includes(".")?Gb(o,e):()=>o[e]:e.bind(o,o);let l;Ge(t)?l=t:(l=t.handler,r=t);const u=Ia(this),d=Vu(s,l.bind(o),r);return u(),d}function Gb(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 Gu(e,t,r=mt){const o=Vo(),s=ir(t),l=Ti(t),u=Kb(e,s),d=hb((h,p)=>{let g,m=mt,y;return zT(()=>{const w=e[s];jn(g,w)&&(g=w,p())}),{get(){return h(),r.get?r.get(g):g},set(w){const C=r.set?r.set(w):w;if(!jn(C,g)&&!(m!==mt&&jn(w,m)))return;const $=o.vnode.props;$&&(t in $||s in $||l in $)&&(`onUpdate:${t}`in $||`onUpdate:${s}`in $||`onUpdate:${l}`in $)||(g=w,p()),o.emit(`update:${t}`,C),jn(w,C)&&jn(w,m)&&!jn(C,y)&&p(),m=w,y=C}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?u||mt:d,done:!1}:{done:!0}}}},d}const Kb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ir(t)}Modifiers`]||e[`${Ti(t)}Modifiers`];function FT(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||mt;let s=r;const l=t.startsWith("update:"),u=l&&Kb(o,t.slice(7));u&&(u.trim&&(s=r.map(g=>zt(g)?g.trim():g)),u.number&&(s=r.map(qd)));let d,h=o[d=Wc(t)]||o[d=Wc(ir(t))];!h&&l&&(h=o[d=Wc(Ti(t))]),h&&$r(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,$r(p,e,6,s)}}function Xb(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const l=e.emits;let u={},d=!1;if(!Ge(e)){const h=p=>{const g=Xb(p,t,!0);g&&(d=!0,on(u,g))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!l&&!d?(_t(e)&&o.set(e,null),null):(Fe(l)?l.forEach(h=>u[h]=null):on(u,l),_t(e)&&o.set(e,u),u)}function Ku(e,t){return!e||!Iu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Ti(t))||wt(e,t))}function Zv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[l],slots:u,attrs:d,emit:h,render:p,renderCache:g,props:m,data:y,setupState:w,ctx:C,inheritAttrs:$}=e,E=lu(e);let T,A;try{if(r.shapeFlag&4){const L=s||o,H=L;T=Cr(p.call(H,L,g,m,w,y,C)),A=d}else{const L=t;T=Cr(L.length>1?L(m,{attrs:d,slots:u,emit:h}):L(m,null)),A=t.props?d:BT(d)}}catch(L){Kl.length=0,Na(L,e,1),T=Ie(ln)}let I=T;if(A&&$!==!1){const L=Object.keys(A),{shapeFlag:H}=I;L.length&&H&7&&(l&&L.some(qh)&&(A=WT(A,l)),I=uo(I,A,!1,!0))}return r.dirs&&(I=uo(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(r.dirs):r.dirs),r.transition&&sa(I,r.transition),T=I,lu(E),T}function HT(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Gs(s)){if(s.type!==ln||s.children==="v-if"){if(r)return;r=s}}else return}return r}const BT=e=>{let t;for(const r in e)(r==="class"||r==="style"||Iu(r))&&((t||(t={}))[r]=e[r]);return t},WT=(e,t)=>{const r={};for(const o in e)(!qh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function qT(e,t,r){const{props:o,children:s,component:l}=e,{props:u,children:d,patchFlag:h}=t,p=l.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Qv(o,u,p):!!u;if(h&8){const g=t.dynamicProps;for(let m=0;m<g.length;m++){const y=g[m];if(u[y]!==o[y]&&!Ku(p,y))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===u?!1:o?u?Qv(o,u,p):!0:!!u;return!1}function Qv(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 l=o[s];if(t[l]!==e[l]&&!Ku(r,l))return!0}return!1}function sp({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 Yb=e=>e.__isSuspense;let eh=0;const UT={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,l,u,d,h,p){if(e==null)jT(t,r,o,s,l,u,d,h,p);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}VT(e,t,r,o,s,u,d,h,p)}},hydrate:GT,normalize:KT},Jb=UT;function aa(e,t){const r=e.props&&e.props[t];Ge(r)&&r()}function jT(e,t,r,o,s,l,u,d,h){const{p,o:{createElement:g}}=h,m=g("div"),y=e.suspense=Zb(e,s,o,t,m,r,l,u,d,h);p(null,y.pendingBranch=e.ssContent,m,null,o,y,l,u),y.deps>0?(aa(e,"onPending"),aa(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,l,u),Rs(y,e.ssFallback)):y.resolve(!1,!0)}function VT(e,t,r,o,s,l,u,d,{p:h,um:p,o:{createElement:g}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const y=t.ssContent,w=t.ssFallback,{activeBranch:C,pendingBranch:$,isInFallback:E,isHydrating:T}=m;if($)m.pendingBranch=y,Vr(y,$)?(h($,y,m.hiddenContainer,null,s,m,l,u,d),m.deps<=0?m.resolve():E&&(T||(h(C,w,r,o,s,null,l,u,d),Rs(m,w)))):(m.pendingId=eh++,T?(m.isHydrating=!1,m.activeBranch=$):p($,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=g("div"),E?(h(null,y,m.hiddenContainer,null,s,m,l,u,d),m.deps<=0?m.resolve():(h(C,w,r,o,s,null,l,u,d),Rs(m,w))):C&&Vr(y,C)?(h(C,y,r,o,s,m,l,u,d),m.resolve(!0)):(h(null,y,m.hiddenContainer,null,s,m,l,u,d),m.deps<=0&&m.resolve()));else if(C&&Vr(y,C))h(C,y,r,o,s,m,l,u,d),Rs(m,y);else if(aa(t,"onPending"),m.pendingBranch=y,y.shapeFlag&512?m.pendingId=y.component.suspenseId:m.pendingId=eh++,h(null,y,m.hiddenContainer,null,s,m,l,u,d),m.deps<=0)m.resolve();else{const{timeout:A,pendingId:I}=m;A>0?setTimeout(()=>{m.pendingId===I&&m.fallback(w)},A):A===0&&m.fallback(w)}}function Zb(e,t,r,o,s,l,u,d,h,p,g=!1){const{p:m,m:y,um:w,n:C,o:{parentNode:$,remove:E}}=p;let T;const A=YT(e);A&&t&&t.pendingBranch&&(T=t.pendingId,t.deps++);const I=e.props?jy(e.props.timeout):void 0,L=l,H={vnode:e,parent:t,parentComponent:r,namespace:u,container:o,hiddenContainer:s,deps:0,pendingId:eh++,timeout:typeof I=="number"?I:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(G=!1,oe=!1){const{vnode:ee,activeBranch:Z,pendingBranch:Q,pendingId:F,effects:N,parentComponent:P,container:O}=H;let S=!1;H.isHydrating?H.isHydrating=!1:G||(S=Z&&Q.transition&&Q.transition.mode==="out-in",S&&(Z.transition.afterLeave=()=>{F===H.pendingId&&(y(Q,O,l===L?C(Z):l,0),Gd(N))}),Z&&($(Z.el)===O&&(l=C(Z)),w(Z,P,H,!0)),S||y(Q,O,l,0)),Rs(H,Q),H.pendingBranch=null,H.isInFallback=!1;let R=H.parent,j=!1;for(;R;){if(R.pendingBranch){R.effects.push(...N),j=!0;break}R=R.parent}!j&&!S&&Gd(N),H.effects=[],A&&t&&t.pendingBranch&&T===t.pendingId&&(t.deps--,t.deps===0&&!oe&&t.resolve()),aa(ee,"onResolve")},fallback(G){if(!H.pendingBranch)return;const{vnode:oe,activeBranch:ee,parentComponent:Z,container:Q,namespace:F}=H;aa(oe,"onFallback");const N=C(ee),P=()=>{H.isInFallback&&(m(null,G,Q,N,Z,null,F,d,h),Rs(H,G))},O=G.transition&&G.transition.mode==="out-in";O&&(ee.transition.afterLeave=P),H.isInFallback=!0,w(ee,Z,null,!0),O||P()},move(G,oe,ee){H.activeBranch&&y(H.activeBranch,G,oe,ee),H.container=G},next(){return H.activeBranch&&C(H.activeBranch)},registerDep(G,oe,ee){const Z=!!H.pendingBranch;Z&&H.deps++;const Q=G.vnode.el;G.asyncDep.catch(F=>{Na(F,G,0)}).then(F=>{if(G.isUnmounted||H.isUnmounted||H.pendingId!==G.suspenseId)return;G.asyncResolved=!0;const{vnode:N}=G;nh(G,F),Q&&(N.el=Q);const P=!Q&&G.subTree.el;oe(G,N,$(Q||G.subTree.el),Q?null:C(G.subTree),H,u,ee),P&&E(P),sp(G,N.el),Z&&--H.deps===0&&H.resolve()})},unmount(G,oe){H.isUnmounted=!0,H.activeBranch&&w(H.activeBranch,r,G,oe),H.pendingBranch&&w(H.pendingBranch,r,G,oe)}};return H}function GT(e,t,r,o,s,l,u,d,h){const p=t.suspense=Zb(t,o,r,e.parentNode,document.createElement("div"),null,s,l,u,d,!0),g=h(e,p.pendingBranch=t.ssContent,r,p,l,u);return p.deps===0&&p.resolve(!1,!0),g}function KT(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=em(o?r.default:r),e.ssFallback=o?em(r.fallback):Ie(ln)}function em(e){let t;if(Ge(e)){const r=Vs&&e._c;r&&(e._d=!1,ce()),e=e(),r&&(e._d=!0,t=Gn,Qb())}return Fe(e)&&(e=HT(e)),e=Cr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function XT(e,t){t&&t.pendingBranch?Fe(e)?t.effects.push(...e):t.effects.push(e):Gd(e)}function Rs(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,sp(o,s))}function YT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ct=Symbol.for("v-fgt"),Xu=Symbol.for("v-txt"),ln=Symbol.for("v-cmt"),gd=Symbol.for("v-stc"),Kl=[];let Gn=null;function ce(e=!1){Kl.push(Gn=e?null:[])}function Qb(){Kl.pop(),Gn=Kl[Kl.length-1]||null}let Vs=1;function fu(e,t=!1){Vs+=e,e<0&&Gn&&t&&(Gn.hasOnce=!0)}function ew(e){return e.dynamicChildren=Vs>0?Gn||$s:null,Qb(),Vs>0&&Gn&&Gn.push(e),e}function Se(e,t,r,o,s,l){return ew(ie(e,t,r,o,s,l,!0))}function nt(e,t,r,o,s){return ew(Ie(e,t,r,o,s,!0))}function Gs(e){return e?e.__v_isVNode===!0:!1}function Vr(e,t){return e.type===t.type&&e.key===t.key}const tw=({key:e})=>e??null,Uc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?zt(e)||Ct(e)||Ge(e)?{i:tn,r:e,k:t,f:!!r}:e:null);function ie(e,t=null,r=null,o=0,s=null,l=e===ct?0:1,u=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tw(t),ref:t&&Uc(t),scopeId:Wu,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:l,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:tn};return d?(lp(h,r),l&128&&e.normalize(h)):r&&(h.shapeFlag|=zt(r)?8:16),Vs>0&&!u&&Gn&&(h.patchFlag>0||l&6)&&h.patchFlag!==32&&Gn.push(h),h}const Ie=JT;function JT(e,t=null,r=null,o=0,s=null,l=!1){if((!e||e===Mb)&&(e=ln),Gs(e)){const d=uo(e,t,!0);return r&&lp(d,r),Vs>0&&!l&&Gn&&(d.shapeFlag&6?Gn[Gn.indexOf(e)]=d:Gn.push(d)),d.patchFlag=-2,d}if(oC(e)&&(e=e.__vccOpts),t){t=nw(t);let{class:d,style:h}=t;d&&!zt(d)&&(t.class=it(d)),_t(h)&&(Zh(h)&&!Fe(h)&&(h=on({},h)),t.style=nn(h))}const u=zt(e)?1:Yb(e)?128:Sb(e)?64:_t(e)?4:Ge(e)?2:0;return ie(e,t,r,o,s,u,l,!0)}function nw(e){return e?Zh(e)||Fb(e)?on({},e):e:null}function uo(e,t,r=!1,o=!1){const{props:s,ref:l,patchFlag:u,children:d,transition:h}=e,p=t?bi(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&tw(p),ref:t&&t.ref?r&&l?Fe(l)?l.concat(Uc(t)):[l,Uc(t)]:Uc(t):l,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!==ct?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&uo(e.ssContent),ssFallback:e.ssFallback&&uo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&sa(g,h.clone(g)),g}function pt(e=" ",t=0){return Ie(Xu,null,e,t)}function Je(e="",t=!1){return t?(ce(),nt(ln,null,e)):Ie(ln,null,e)}function Cr(e){return e==null||typeof e=="boolean"?Ie(ln):Fe(e)?Ie(ct,null,e.slice()):Gs(e)?Yi(e):Ie(Xu,null,String(e))}function Yi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:uo(e)}function lp(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Fe(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),lp(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Fb(t)?t._ctx=tn:s===3&&tn&&(tn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ge(t)?(t={default:t,_ctx:tn},r=32):(t=String(t),o&64?(r=16,t=[pt(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=it([t.class,o.class]));else if(s==="style")t.style=nn([t.style,o.style]);else if(Iu(s)){const l=t[s],u=o[s];u&&l!==u&&!(Fe(l)&&l.includes(u))&&(t[s]=l?[].concat(l,u):u)}else s!==""&&(t[s]=o[s])}return t}function qr(e,t,r,o=null){$r(e,t,7,[r,o])}const ZT=Pb();let QT=0;function eC(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||ZT,l={uid:QT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new bk(!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:Bb(o,s),emitsOptions:Xb(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 l.ctx={_:l},l.root=t?t.root:l,l.emit=FT.bind(null,l),e.ce&&e.ce(l),l}let an=null;const Vo=()=>an||tn;let du,th;{const e=Du(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),l=>{s.length>1?s.forEach(u=>u(l)):s[0](l)}};du=t("__VUE_INSTANCE_SETTERS__",r=>an=r),th=t("__VUE_SSR_SETTERS__",r=>ca=r)}const Ia=e=>{const t=an;return du(e),e.scope.on(),()=>{e.scope.off(),du(t)}},tm=()=>{an&&an.scope.off(),du(null)};function rw(e){return e.vnode.shapeFlag&4}let ca=!1;function tC(e,t=!1,r=!1){t&&th(t);const{props:o,children:s}=e.vnode,l=rw(e);TT(e,o,l,t),LT(e,s,r||t);const u=l?nC(e,t):void 0;return t&&th(!1),u}function nC(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,gT);const{setup:o}=r;if(o){wi();const s=e.setupContext=o.length>1?ow(e):null,l=Ia(e),u=$a(o,e,0,[e.props,s]),d=By(u);if(xi(),l(),(d||e.sp)&&!Ps(e)&&Ab(e),d){if(u.then(tm,tm),t)return u.then(h=>{nh(e,h)}).catch(h=>{Na(h,e,0)});e.asyncDep=u}else nh(e,u)}else iw(e)}function nh(e,t,r){Ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_t(t)&&(e.setupState=db(t)),iw(e)}function iw(e,t,r){const o=e.type;e.render||(e.render=o.render||Kr);{const s=Ia(e);wi();try{yT(e)}finally{xi(),s()}}}const rC={get(e,t){return bn(e,"get",""),e[t]}};function ow(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,rC),slots:e.slots,emit:e.emit,expose:t}}function Yu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(db(Qh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Gl)return Gl[r](e)},has(t,r){return r in t||r in Gl}})):e.proxy}function iC(e,t=!0){return Ge(e)?e.displayName||e.name:e.name||t&&e.__name}function oC(e){return Ge(e)&&"__vccOpts"in e}const _e=(e,t)=>Gk(e,t,ca);function Pa(e,t,r){const o=arguments.length;return o===2?_t(t)&&!Fe(t)?Gs(t)?Ie(e,null,[t]):Ie(e,t):Ie(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Gs(r)&&(r=[r]),Ie(e,t,r))}const sC="3.5.16";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.16
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let rh;const nm=typeof window<"u"&&window.trustedTypes;if(nm)try{rh=nm.createPolicy("vue",{createHTML:e=>e})}catch{}const sw=rh?e=>rh.createHTML(e):e=>e,lC="http://www.w3.org/2000/svg",aC="http://www.w3.org/1998/Math/MathML",pi=typeof document<"u"?document:null,rm=pi&&pi.createElement("template"),cC={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"?pi.createElementNS(lC,e):t==="mathml"?pi.createElementNS(aC,e):r?pi.createElement(e,{is:r}):pi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>pi.createTextNode(e),createComment:e=>pi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,l){const u=r?r.previousSibling:t.lastChild;if(s&&(s===l||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===l||!(s=s.nextSibling)););else{rm.innerHTML=sw(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=rm.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[u?u.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},qi="transition",Il="animation",ua=Symbol("_vtc"),lw={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},uC=on({},_b,lw),fC=e=>(e.displayName="Transition",e.props=uC,e),dC=fC((e,{slots:t})=>Pa(tT,hC(e),t)),Oo=(e,t=[])=>{Fe(e)?e.forEach(r=>r(...t)):e&&e(...t)},im=e=>e?Fe(e)?e.some(t=>t.length>1):e.length>1:!1;function hC(e){const t={};for(const N in e)N in lw||(t[N]=e[N]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:l=`${r}-enter-from`,enterActiveClass:u=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=l,appearActiveClass:p=u,appearToClass:g=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:y=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,C=pC(s),$=C&&C[0],E=C&&C[1],{onBeforeEnter:T,onEnter:A,onEnterCancelled:I,onLeave:L,onLeaveCancelled:H,onBeforeAppear:G=T,onAppear:oe=A,onAppearCancelled:ee=I}=t,Z=(N,P,O,S)=>{N._enterCancelled=S,Io(N,P?g:d),Io(N,P?p:u),O&&O()},Q=(N,P)=>{N._isLeaving=!1,Io(N,m),Io(N,w),Io(N,y),P&&P()},F=N=>(P,O)=>{const S=N?oe:A,R=()=>Z(P,N,O);Oo(S,[P,R]),om(()=>{Io(P,N?h:l),ui(P,N?g:d),im(S)||sm(P,o,$,R)})};return on(t,{onBeforeEnter(N){Oo(T,[N]),ui(N,l),ui(N,u)},onBeforeAppear(N){Oo(G,[N]),ui(N,h),ui(N,p)},onEnter:F(!1),onAppear:F(!0),onLeave(N,P){N._isLeaving=!0;const O=()=>Q(N,P);ui(N,m),N._enterCancelled?(ui(N,y),cm()):(cm(),ui(N,y)),om(()=>{N._isLeaving&&(Io(N,m),ui(N,w),im(L)||sm(N,o,E,O))}),Oo(L,[N,O])},onEnterCancelled(N){Z(N,!1,void 0,!0),Oo(I,[N])},onAppearCancelled(N){Z(N,!0,void 0,!0),Oo(ee,[N])},onLeaveCancelled(N){Q(N),Oo(H,[N])}})}function pC(e){if(e==null)return null;if(_t(e))return[vd(e.enter),vd(e.leave)];{const t=vd(e);return[t,t]}}function vd(e){return jy(e)}function ui(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ua]||(e[ua]=new Set)).add(t)}function Io(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ua];r&&(r.delete(t),r.size||(e[ua]=void 0))}function om(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gC=0;function sm(e,t,r,o){const s=e._endId=++gC,l=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(l,r);const{type:u,timeout:d,propCount:h}=vC(e,t);if(!u)return o();const p=u+"end";let g=0;const m=()=>{e.removeEventListener(p,y),l()},y=w=>{w.target===e&&++g>=h&&m()};setTimeout(()=>{g<h&&m()},d+1),e.addEventListener(p,y)}function vC(e,t){const r=window.getComputedStyle(e),o=C=>(r[C]||"").split(", "),s=o(`${qi}Delay`),l=o(`${qi}Duration`),u=lm(s,l),d=o(`${Il}Delay`),h=o(`${Il}Duration`),p=lm(d,h);let g=null,m=0,y=0;t===qi?u>0&&(g=qi,m=u,y=l.length):t===Il?p>0&&(g=Il,m=p,y=h.length):(m=Math.max(u,p),g=m>0?u>p?qi:Il:null,y=g?g===qi?l.length:h.length:0);const w=g===qi&&/\b(transform|all)(,|$)/.test(o(`${qi}Property`).toString());return{type:g,timeout:m,propCount:y,hasTransform:w}}function lm(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>am(r)+am(e[o])))}function am(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function cm(){return document.body.offsetHeight}function mC(e,t,r){const o=e[ua];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const hu=Symbol("_vod"),aw=Symbol("_vsh"),eo={beforeMount(e,{value:t},{transition:r}){e[hu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Pl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Pl(e,!0),o.enter(e)):o.leave(e,()=>{Pl(e,!1)}):Pl(e,t))},beforeUnmount(e,{value:t}){Pl(e,t)}};function Pl(e,t){e.style.display=t?e[hu]:"none",e[aw]=!t}const yC=Symbol(""),bC=/(^|;)\s*display\s*:/;function wC(e,t,r){const o=e.style,s=zt(r);let l=!1;if(r&&!s){if(t)if(zt(t))for(const u of t.split(";")){const d=u.slice(0,u.indexOf(":")).trim();r[d]==null&&jc(o,d,"")}else for(const u in t)r[u]==null&&jc(o,u,"");for(const u in r)u==="display"&&(l=!0),jc(o,u,r[u])}else if(s){if(t!==r){const u=o[yC];u&&(r+=";"+u),o.cssText=r,l=bC.test(r)}}else t&&e.removeAttribute("style");hu in e&&(e[hu]=l?o.display:"",e[aw]&&(o.display="none"))}const um=/\s*!important$/;function jc(e,t,r){if(Fe(r))r.forEach(o=>jc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=xC(e,t);um.test(r)?e.setProperty(Ti(o),r.replace(um,""),"important"):e[o]=r}}const fm=["Webkit","Moz","ms"],md={};function xC(e,t){const r=md[t];if(r)return r;let o=ir(t);if(o!=="filter"&&o in e)return md[t]=o;o=zu(o);for(let s=0;s<fm.length;s++){const l=fm[s]+o;if(l in e)return md[t]=l}return t}const dm="http://www.w3.org/1999/xlink";function hm(e,t,r,o,s,l=mk(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(dm,t.slice(6,t.length)):e.setAttributeNS(dm,t,r):r==null||l&&!Vy(r)?e.removeAttribute(t):e.setAttribute(t,l?"":Mr(r)?String(r):r)}function pm(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?sw(r):r);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const d=l==="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 u=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=Vy(r):r==null&&d==="string"?(r="",u=!0):d==="number"&&(r=0,u=!0)}try{e[t]=r}catch{}u&&e.removeAttribute(s||t)}function Do(e,t,r,o){e.addEventListener(t,r,o)}function SC(e,t,r,o){e.removeEventListener(t,r,o)}const gm=Symbol("_vei");function _C(e,t,r,o,s=null){const l=e[gm]||(e[gm]={}),u=l[t];if(o&&u)u.value=o;else{const[d,h]=kC(t);if(o){const p=l[t]=EC(o,s);Do(e,d,p,h)}else u&&(SC(e,d,u,h),l[t]=void 0)}}const vm=/(?:Once|Passive|Capture)$/;function kC(e){let t;if(vm.test(e)){t={};let o;for(;o=e.match(vm);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ti(e.slice(2)),t]}let yd=0;const TC=Promise.resolve(),CC=()=>yd||(TC.then(()=>yd=0),yd=Date.now());function EC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;$r(AC(o,r.value),t,5,[o])};return r.value=e,r.attached=CC(),r}function AC(e,t){if(Fe(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 mm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,LC=(e,t,r,o,s,l)=>{const u=s==="svg";t==="class"?mC(e,o,u):t==="style"?wC(e,r,o):Iu(t)?qh(t)||_C(e,t,r,o,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):MC(e,t,o,u))?(pm(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&hm(e,t,o,u,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!zt(o))?pm(e,ir(t),o,l,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),hm(e,t,o,u))};function MC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&mm(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 mm(t)&&zt(r)?!1:t in e}const pu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Fe(t)?r=>qc(t,r):t};function $C(e){e.target.composing=!0}function ym(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zs=Symbol("_assign"),NC={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[zs]=pu(s);const l=o||s.props&&s.props.type==="number";Do(e,t?"change":"input",u=>{if(u.target.composing)return;let d=e.value;r&&(d=d.trim()),l&&(d=qd(d)),e[zs](d)}),r&&Do(e,"change",()=>{e.value=e.value.trim()}),t||(Do(e,"compositionstart",$C),Do(e,"compositionend",ym),Do(e,"change",ym))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:l}},u){if(e[zs]=pu(u),e.composing)return;const d=(l||e.type==="number")&&!/^0\d/.test(e.value)?qd(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))}},cw={deep:!0,created(e,t,r){e[zs]=pu(r),Do(e,"change",()=>{const o=e._modelValue,s=OC(e),l=e.checked,u=e[zs];if(Fe(o)){const d=Gy(o,s),h=d!==-1;if(l&&!h)u(o.concat(s));else if(!l&&h){const p=[...o];p.splice(d,1),u(p)}}else if(Pu(o)){const d=new Set(o);l?d.add(s):d.delete(s),u(d)}else u(uw(e,l))})},mounted:bm,beforeUpdate(e,t,r){e[zs]=pu(r),bm(e,t,r)}};function bm(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Fe(t))s=Gy(t,o.props.value)>-1;else if(Pu(t))s=t.has(o.props.value);else{if(t===r)return;s=Fu(t,uw(e,!0))}e.checked!==s&&(e.checked=s)}function OC(e){return"_value"in e?e._value:e.value}function uw(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const IC=["ctrl","shift","alt","meta"],PC={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)=>IC.some(r=>e[`${r}Key`]&&!t.includes(r))},Vc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...l)=>{for(let u=0;u<t.length;u++){const d=PC[t[u]];if(d&&d(s,t))return}return e(s,...l)})},RC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ih=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const l=Ti(s.key);if(t.some(u=>u===l||RC[u]===l))return e(s)})},zC=on({patchProp:LC},cC);let wm;function DC(){return wm||(wm=$T(zC))}const fw=(...e)=>{const t=DC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=HC(o);if(!s)return;const l=t._component;!Ge(l)&&!l.render&&!l.template&&(l.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const u=r(s,!1,FC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),u},t};function FC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function HC(e){return zt(e)?document.querySelector(e):e}const Ei=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},BC={};function WC(e,t){const r=Uo("RouterView");return ce(),nt(r)}const qC=Ei(BC,[["render",WC]]),UC=["top","right","bottom","left"],xm=["start","end"],Sm=UC.reduce((e,t)=>e.concat(t,t+"-"+xm[0],t+"-"+xm[1]),[]),fa=Math.min,zo=Math.max,jC={left:"right",right:"left",bottom:"top",top:"bottom"},VC={start:"end",end:"start"};function oh(e,t,r){return zo(e,fa(t,r))}function Go(e,t){return typeof e=="function"?e(t):e}function Zr(e){return e.split("-")[0]}function Lr(e){return e.split("-")[1]}function dw(e){return e==="x"?"y":"x"}function ap(e){return e==="y"?"height":"width"}function Ra(e){return["top","bottom"].includes(Zr(e))?"y":"x"}function cp(e){return dw(Ra(e))}function hw(e,t,r){r===void 0&&(r=!1);const o=Lr(e),s=cp(e),l=ap(s);let u=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=vu(u)),[u,vu(u)]}function GC(e){const t=vu(e);return[gu(e),t,gu(t)]}function gu(e){return e.replace(/start|end/g,t=>VC[t])}function KC(e,t,r){const o=["left","right"],s=["right","left"],l=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?l:u;default:return[]}}function XC(e,t,r,o){const s=Lr(e);let l=KC(Zr(e),r==="start",o);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(gu)))),l}function vu(e){return e.replace(/left|right|bottom|top/g,t=>jC[t])}function YC(e){return{top:0,right:0,bottom:0,left:0,...e}}function pw(e){return typeof e!="number"?YC(e):{top:e,right:e,bottom:e,left:e}}function Xl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function _m(e,t,r){let{reference:o,floating:s}=e;const l=Ra(t),u=cp(t),d=ap(u),h=Zr(t),p=l==="y",g=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,y=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:g,y:o.y-s.height};break;case"bottom":w={x:g,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(Lr(t)){case"start":w[u]-=y*(r&&p?-1:1);break;case"end":w[u]+=y*(r&&p?-1:1);break}return w}const JC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:l=[],platform:u}=r,d=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:m}=_m(p,o,h),y=o,w={},C=0;for(let $=0;$<d.length;$++){const{name:E,fn:T}=d[$],{x:A,y:I,data:L,reset:H}=await T({x:g,y:m,initialPlacement:o,placement:y,strategy:s,middlewareData:w,rects:p,platform:u,elements:{reference:e,floating:t}});g=A??g,m=I??m,w={...w,[E]:{...w[E],...L}},H&&C<=50&&(C++,typeof H=="object"&&(H.placement&&(y=H.placement),H.rects&&(p=H.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):H.rects),{x:g,y:m}=_m(p,y,h)),$=-1)}return{x:g,y:m,placement:y,strategy:s,middlewareData:w}};async function Ju(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:l,rects:u,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:y=!1,padding:w=0}=Go(t,e),C=pw(w),E=d[y?m==="floating"?"reference":"floating":m],T=Xl(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(E)))==null||r?E:E.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),A=m==="floating"?{...u.floating,x:o,y:s}:u.reference,I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),L=await(l.isElement==null?void 0:l.isElement(I))?await(l.getScale==null?void 0:l.getScale(I))||{x:1,y:1}:{x:1,y:1},H=Xl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:I,strategy:h}):A);return{top:(T.top-H.top+C.top)/L.y,bottom:(H.bottom-T.bottom+C.bottom)/L.y,left:(T.left-H.left+C.left)/L.x,right:(H.right-T.right+C.right)/L.x}}const ZC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:l,platform:u,elements:d,middlewareData:h}=t,{element:p,padding:g=0}=Go(e,t)||{};if(p==null)return{};const m=pw(g),y={x:r,y:o},w=cp(s),C=ap(w),$=await u.getDimensions(p),E=w==="y",T=E?"top":"left",A=E?"bottom":"right",I=E?"clientHeight":"clientWidth",L=l.reference[C]+l.reference[w]-y[w]-l.floating[C],H=y[w]-l.reference[w],G=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let oe=G?G[I]:0;(!oe||!await(u.isElement==null?void 0:u.isElement(G)))&&(oe=d.floating[I]||l.floating[C]);const ee=L/2-H/2,Z=oe/2-$[C]/2-1,Q=fa(m[T],Z),F=fa(m[A],Z),N=Q,P=oe-$[C]-F,O=oe/2-$[C]/2+ee,S=oh(N,O,P),R=!h.arrow&&Lr(s)!=null&&O!==S&&l.reference[C]/2-(O<N?Q:F)-$[C]/2<0,j=R?O<N?O-N:O-P:0;return{[w]:y[w]+j,data:{[w]:S,centerOffset:O-S-j,...R&&{alignmentOffset:j}},reset:R}}});function QC(e,t,r){return(e?[...r.filter(s=>Lr(s)===e),...r.filter(s=>Lr(s)!==e)]:r.filter(s=>Zr(s)===s)).filter(s=>e?Lr(s)===e||(t?gu(s)!==s:!1):!0)}const eE=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:l,middlewareData:u,placement:d,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:m,allowedPlacements:y=Sm,autoAlignment:w=!0,...C}=Go(e,t),$=m!==void 0||y===Sm?QC(m||null,w,y):y,E=await Ju(t,C),T=((r=u.autoPlacement)==null?void 0:r.index)||0,A=$[T];if(A==null)return{};const I=hw(A,l,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==A)return{reset:{placement:$[0]}};const L=[E[Zr(A)],E[I[0]],E[I[1]]],H=[...((o=u.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:L}],G=$[T+1];if(G)return{data:{index:T+1,overflows:H},reset:{placement:G}};const oe=H.map(Q=>{const F=Lr(Q.placement);return[Q.placement,F&&g?Q.overflows.slice(0,2).reduce((N,P)=>N+P,0):Q.overflows[0],Q.overflows]}).sort((Q,F)=>Q[1]-F[1]),Z=((s=oe.filter(Q=>Q[2].slice(0,Lr(Q[0])?2:3).every(F=>F<=0))[0])==null?void 0:s[0])||oe[0][0];return Z!==d?{data:{index:T+1,overflows:H},reset:{placement:Z}}:{}}}},tE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:l,rects:u,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:$=!0,...E}=Go(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const T=Zr(s),A=Zr(d)===d,I=await(h.isRTL==null?void 0:h.isRTL(p.floating)),L=y||(A||!$?[vu(d)]:GC(d));!y&&C!=="none"&&L.push(...XC(d,$,C,I));const H=[d,...L],G=await Ju(t,E),oe=[];let ee=((o=l.flip)==null?void 0:o.overflows)||[];if(g&&oe.push(G[T]),m){const N=hw(s,u,I);oe.push(G[N[0]],G[N[1]])}if(ee=[...ee,{placement:s,overflows:oe}],!oe.every(N=>N<=0)){var Z,Q;const N=(((Z=l.flip)==null?void 0:Z.index)||0)+1,P=H[N];if(P)return{data:{index:N,overflows:ee},reset:{placement:P}};let O=(Q=ee.filter(S=>S.overflows[0]<=0).sort((S,R)=>S.overflows[1]-R.overflows[1])[0])==null?void 0:Q.placement;if(!O)switch(w){case"bestFit":{var F;const S=(F=ee.map(R=>[R.placement,R.overflows.filter(j=>j>0).reduce((j,ne)=>j+ne,0)]).sort((R,j)=>R[1]-j[1])[0])==null?void 0:F[0];S&&(O=S);break}case"initialPlacement":O=d;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function nE(e,t){const{placement:r,platform:o,elements:s}=e,l=await(o.isRTL==null?void 0:o.isRTL(s.floating)),u=Zr(r),d=Lr(r),h=Ra(r)==="y",p=["left","top"].includes(u)?-1:1,g=l&&h?-1:1,m=Go(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof C=="number"&&(w=d==="end"?C*-1:C),h?{x:w*g,y:y*p}:{x:y*p,y:w*g}}const rE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:l,placement:u,middlewareData:d}=t,h=await nE(t,e);return u===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:l+h.y,data:{...h,placement:u}}}}},iE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:E=>{let{x:T,y:A}=E;return{x:T,y:A}}},...h}=Go(e,t),p={x:r,y:o},g=await Ju(t,h),m=Ra(Zr(s)),y=dw(m);let w=p[y],C=p[m];if(l){const E=y==="y"?"top":"left",T=y==="y"?"bottom":"right",A=w+g[E],I=w-g[T];w=oh(A,w,I)}if(u){const E=m==="y"?"top":"left",T=m==="y"?"bottom":"right",A=C+g[E],I=C-g[T];C=oh(A,C,I)}const $=d.fn({...t,[y]:w,[m]:C});return{...$,data:{x:$.x-r,y:$.y-o}}}}},oE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:l}=t,{apply:u=()=>{},...d}=Go(e,t),h=await Ju(t,d),p=Zr(r),g=Lr(r),m=Ra(r)==="y",{width:y,height:w}=o.floating;let C,$;p==="top"||p==="bottom"?(C=p,$=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):($=p,C=g==="end"?"top":"bottom");const E=w-h[C],T=y-h[$],A=!t.middlewareData.shift;let I=E,L=T;if(m){const G=y-h.left-h.right;L=g||A?fa(T,G):G}else{const G=w-h.top-h.bottom;I=g||A?fa(E,G):G}if(A&&!g){const G=zo(h.left,0),oe=zo(h.right,0),ee=zo(h.top,0),Z=zo(h.bottom,0);m?L=y-2*(G!==0||oe!==0?G+oe:zo(h.left,h.right)):I=w-2*(ee!==0||Z!==0?ee+Z:zo(h.top,h.bottom))}await u({...t,availableWidth:L,availableHeight:I});const H=await s.getDimensions(l.floating);return y!==H.width||w!==H.height?{reset:{rects:!0}}:{}}}};function ur(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xr(e){return ur(e).getComputedStyle(e)}const km=Math.min,Yl=Math.max,mu=Math.round;function gw(e){const t=Xr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,l=e.offsetHeight,u=mu(r)!==s||mu(o)!==l;return u&&(r=s,o=l),{width:r,height:o,fallback:u}}function fo(e){return mw(e)?(e.nodeName||"").toLowerCase():""}let Ac;function vw(){if(Ac)return Ac;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Ac=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Ac):navigator.userAgent}function Yr(e){return e instanceof ur(e).HTMLElement}function ro(e){return e instanceof ur(e).Element}function mw(e){return e instanceof ur(e).Node}function Tm(e){return typeof ShadowRoot>"u"?!1:e instanceof ur(e).ShadowRoot||e instanceof ShadowRoot}function Zu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function sE(e){return["table","td","th"].includes(fo(e))}function sh(e){const t=/firefox/i.test(vw()),r=Xr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const l=r.contain;return l!=null&&l.includes(s)})}function yw(){return!/^((?!chrome|android).)*safari/i.test(vw())}function up(e){return["html","body","#document"].includes(fo(e))}function bw(e){return ro(e)?e:e.contextElement}const ww={x:1,y:1};function Ds(e){const t=bw(e);if(!Yr(t))return ww;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:l}=gw(t);let u=(l?mu(r.width):r.width)/o,d=(l?mu(r.height):r.height)/s;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}function da(e,t,r,o){var s,l;t===void 0&&(t=!1),r===void 0&&(r=!1);const u=e.getBoundingClientRect(),d=bw(e);let h=ww;t&&(o?ro(o)&&(h=Ds(o)):h=Ds(e));const p=d?ur(d):window,g=!yw()&&r;let m=(u.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,y=(u.top+(g&&((l=p.visualViewport)==null?void 0:l.offsetTop)||0))/h.y,w=u.width/h.x,C=u.height/h.y;if(d){const $=ur(d),E=o&&ro(o)?ur(o):o;let T=$.frameElement;for(;T&&o&&E!==$;){const A=Ds(T),I=T.getBoundingClientRect(),L=getComputedStyle(T);I.x+=(T.clientLeft+parseFloat(L.paddingLeft))*A.x,I.y+=(T.clientTop+parseFloat(L.paddingTop))*A.y,m*=A.x,y*=A.y,w*=A.x,C*=A.y,m+=I.x,y+=I.y,T=ur(T).frameElement}}return{width:w,height:C,top:y,right:m+w,bottom:y+C,left:m,x:m,y}}function io(e){return((mw(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qu(e){return ro(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xw(e){return da(io(e)).left+Qu(e).scrollLeft}function ha(e){if(fo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tm(e)&&e.host||io(e);return Tm(t)?t.host:t}function Sw(e){const t=ha(e);return up(t)?t.ownerDocument.body:Yr(t)&&Zu(t)?t:Sw(t)}function yu(e,t){var r;t===void 0&&(t=[]);const o=Sw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=ur(o);return s?t.concat(l,l.visualViewport||[],Zu(o)?o:[]):t.concat(o,yu(o))}function Cm(e,t,r){return t==="viewport"?Xl(function(o,s){const l=ur(o),u=io(o),d=l.visualViewport;let h=u.clientWidth,p=u.clientHeight,g=0,m=0;if(d){h=d.width,p=d.height;const y=yw();(y||!y&&s==="fixed")&&(g=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:g,y:m}}(e,r)):ro(t)?Xl(function(o,s){const l=da(o,!0,s==="fixed"),u=l.top+o.clientTop,d=l.left+o.clientLeft,h=Yr(o)?Ds(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:u*h.y}}(t,r)):Xl(function(o){const s=io(o),l=Qu(o),u=o.ownerDocument.body,d=Yl(s.scrollWidth,s.clientWidth,u.scrollWidth,u.clientWidth),h=Yl(s.scrollHeight,s.clientHeight,u.scrollHeight,u.clientHeight);let p=-l.scrollLeft+xw(o);const g=-l.scrollTop;return Xr(u).direction==="rtl"&&(p+=Yl(s.clientWidth,u.clientWidth)-d),{width:d,height:h,x:p,y:g}}(io(e)))}function Em(e){return Yr(e)&&Xr(e).position!=="fixed"?e.offsetParent:null}function Am(e){const t=ur(e);let r=Em(e);for(;r&&sE(r)&&Xr(r).position==="static";)r=Em(r);return r&&(fo(r)==="html"||fo(r)==="body"&&Xr(r).position==="static"&&!sh(r))?t:r||function(o){let s=ha(o);for(;Yr(s)&&!up(s);){if(sh(s))return s;s=ha(s)}return null}(e)||t}function lE(e,t,r){const o=Yr(t),s=io(t),l=da(e,!0,r==="fixed",t);let u={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((fo(t)!=="body"||Zu(s))&&(u=Qu(t)),Yr(t)){const h=da(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=xw(s));return{x:l.left+u.scrollLeft-d.x,y:l.top+u.scrollTop-d.y,width:l.width,height:l.height}}const aE={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const l=r==="clippingAncestors"?function(p,g){const m=g.get(p);if(m)return m;let y=yu(p).filter(E=>ro(E)&&fo(E)!=="body"),w=null;const C=Xr(p).position==="fixed";let $=C?ha(p):p;for(;ro($)&&!up($);){const E=Xr($),T=sh($);(C?T||w:T||E.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=E:y=y.filter(A=>A!==$),$=ha($)}return g.set(p,y),y}(t,this._c):[].concat(r),u=[...l,o],d=u[0],h=u.reduce((p,g)=>{const m=Cm(t,g,s);return p.top=Yl(m.top,p.top),p.right=km(m.right,p.right),p.bottom=km(m.bottom,p.bottom),p.left=Yl(m.left,p.left),p},Cm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Yr(r),l=io(r);if(r===l)return t;let u={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((fo(r)!=="body"||Zu(l))&&(u=Qu(r)),Yr(r))){const p=da(r);d=Ds(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-u.scrollLeft*d.x+h.x,y:t.y*d.y-u.scrollTop*d.y+h.y}},isElement:ro,getDimensions:function(e){return Yr(e)?gw(e):e.getBoundingClientRect()},getOffsetParent:Am,getDocumentElement:io,getScale:Ds,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Am,l=this.getDimensions;return{reference:lE(t,await s(r),o),floating:{x:0,y:0,...await l(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Xr(e).direction==="rtl"},cE=(e,t,r)=>{const o=new Map,s={platform:aE,...r},l={...s.platform,_c:o};return JC(e,t,{...s,platform:l})},oo={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function pa(e,t){let r=oo.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=oo.themes[r.$extend]||{}:(r=null,o=oo[t]):r=null;while(r);return o}function uE(e){const t=[e];let r=oo.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=oo.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Lm(e){const t=[e];let r=oo.themes[e]||{};do r.$extend?(t.push(r.$extend),r=oo.themes[r.$extend]||{}):r=null;while(r);return t}let ga=!1;if(typeof window<"u"){ga=!1;try{const e=Object.defineProperty({},"passive",{get(){ga=!0}});window.addEventListener("test",null,e)}catch{}}let _w=!1;typeof window<"u"&&typeof navigator<"u"&&(_w=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const kw=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Mm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},$m={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Nm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function bd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const tr=[];let Po=null;const Om={};function Im(e){let t=Om[e];return t||(t=Om[e]=[]),t}let lh=function(){};typeof window<"u"&&(lh=window.Element);function at(e){return function(t){return pa(t.theme,e)}}const wd="__floating-vue__popper",Tw=()=>ut({name:"VPopper",provide(){return{[wd]:{parentPopper:this}}},inject:{[wd]:{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:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>kw.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,lh,Boolean],default:at("container")},boundary:{type:[String,lh],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("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[wd])==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(rE({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(eE({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(iE({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(tE({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ZC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:l})=>{let u;const{centerOffset:d}=l.arrow;return o.startsWith("top")||o.startsWith("bottom")?u=Math.abs(d)>s.reference.width/2:u=Math.abs(d)>s.reference.height/2,{data:{overflow:u}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:l,middlewareData:u})=>{var d;if((d=u.autoSize)!=null&&d.skip)return{};let h,p;return l.startsWith("top")||l.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(oE({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 cE(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),Po&&this.instantMove&&Po.instantMove&&Po!==this.parentPopper){Po.$_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&&(Po=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 bd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...yu(this.$_referenceNode),...yu(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),l=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${l}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 Lm(this.theme))Im(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 bd(),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,Nm(tr,this),tr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Lm(this.theme)){const o=Im(r);Nm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Po===this&&(Po=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 bd(),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,Mm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Mm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,$m,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],$m,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ga?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let l=r;o!=null&&(l=typeof o=="function"?o(l):o),l.forEach(u=>{const d=t[u];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:l}=r;!e||e===s?o.forEach(u=>u.removeEventListener(s,l)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Jl>=e.left&&Jl<=e.right&&Zl>=e.top&&Zl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Jl-Vi,o=Zl-Gi,s=t.left+t.width/2-Vi+(t.top+t.height/2)-Gi+t.width+t.height,l=Vi+r*s,u=Gi+o*s;return Lc(Vi,Gi,l,u,t.left,t.top,t.left,t.bottom)||Lc(Vi,Gi,l,u,t.left,t.top,t.right,t.top)||Lc(Vi,Gi,l,u,t.right,t.top,t.right,t.bottom)||Lc(Vi,Gi,l,u,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(_w){const e=ga?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Pm(t),e),document.addEventListener("touchend",t=>Rm(t,!0),e)}else window.addEventListener("mousedown",e=>Pm(e),!0),window.addEventListener("click",e=>Rm(e,!1),!0);window.addEventListener("resize",hE)}function Pm(e,t){for(let r=0;r<tr.length;r++){const o=tr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Rm(e,t){fE(e,t)}function fE(e,t){const r={};for(let o=tr.length-1;o>=0;o--){const s=tr[o];try{const l=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&zm(s,l,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let u=s.parentPopper;for(;u&&zm(u,u.containsGlobalTarget,e);)u.$_handleGlobalClose(e,t),u=u.parentPopper}})}catch{}}}function zm(e,t,r){return r.closeAllPopover||r.closePopover&&t||dE(e,r)&&!t}function dE(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function hE(){for(let e=0;e<tr.length;e++)tr[e].$_computePosition()}function Dm(){for(let e=0;e<tr.length;e++)tr[e].hide()}let Vi=0,Gi=0,Jl=0,Zl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Vi=Jl,Gi=Zl,Jl=e.clientX,Zl=e.clientY},ga?{passive:!0}:void 0);function Lc(e,t,r,o,s,l,u,d){const h=((u-s)*(t-l)-(d-l)*(e-s))/((d-l)*(r-e)-(u-s)*(o-t)),p=((r-e)*(t-l)-(o-t)*(e-s))/((d-l)*(r-e)-(u-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const pE={extends:Tw()},ef=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function gE(e,t,r,o,s,l){return ce(),Se("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[xn(e.$slots,"default",gk(nw(e.slotData)))],2)}const vE=ef(pE,[["render",gE]]);function mE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Gc;function ah(){ah.init||(ah.init=!0,Gc=mE()!==-1)}var tf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ah(),Tt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Gc&&this.$el.appendChild(e),e.data="about:blank",Gc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Gc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const yE=xb();bb("data-v-b329ee4c");const bE={class:"resize-observer",tabindex:"-1"};wb();const wE=yE((e,t,r,o,s,l)=>(ce(),nt("div",bE)));tf.render=wE;tf.__scopeId="data-v-b329ee4c";tf.__file="src/components/ResizeObserver.vue";const Cw=(e="theme")=>({computed:{themeClass(){return uE(this[e])}}}),xE=ut({name:"VPopperContent",components:{ResizeObserver:tf},mixins:[Cw()],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}}}),SE=["id","aria-hidden","tabindex","data-popper-placement"],_E={ref:"inner",class:"v-popper__inner"},kE=ie("div",{class:"v-popper__arrow-outer"},null,-1),TE=ie("div",{class:"v-popper__arrow-inner"},null,-1),CE=[kE,TE];function EE(e,t,r,o,s,l){const u=Uo("ResizeObserver");return ce(),Se("div",{id:e.popperId,ref:"popover",class:it(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:nn(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]=ih(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[ie("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),ie("div",{class:"v-popper__wrapper",style:nn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ie("div",_E,[e.mounted?(ce(),Se(ct,{key:0},[ie("div",null,[xn(e.$slots,"default")]),e.handleResize?(ce(),nt(u,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Je("",!0)],64)):Je("",!0)],512),ie("div",{ref:"arrow",class:"v-popper__arrow-container",style:nn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},CE,4)],4)],46,SE)}const Ew=ef(xE,[["render",EE]]),Aw={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 ch=function(){};typeof window<"u"&&(ch=window.Element);const AE=ut({name:"VPopperWrapper",components:{Popper:vE,PopperContent:Ew},mixins:[Aw,Cw("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,ch,Boolean],default:void 0},boundary:{type:[String,ch],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 LE(e,t,r,o,s,l){const u=Uo("PopperContent"),d=Uo("Popper");return ce(),nt(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:rt(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:m,autoHide:y,show:w,hide:C,handleResize:$,onResize:E,classes:T,result:A})=>[xn(e.$slots,"default",{shown:p,show:w,hide:C}),Ie(u,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":m,"auto-hide":y,"handle-resize":$,classes:T,result:A,onHide:C,onResize:E},{default:rt(()=>[xn(e.$slots,"popper",{shown:p,hide:C})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const fp=ef(AE,[["render",LE]]);({...fp});({...fp});const ME={...fp,name:"VTooltip",vPopperTheme:"tooltip"},$E=ut({name:"VTooltipDirective",components:{Popper:Tw(),PopperContent:Ew},mixins:[Aw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>pa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>pa(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),NE=["innerHTML"],OE=["textContent"];function IE(e,t,r,o,s,l){const u=Uo("PopperContent"),d=Uo("Popper");return ce(),nt(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:rt(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:m,autoHide:y,hide:w,handleResize:C,onResize:$,classes:E,result:T})=>[Ie(u,{ref:"popperContent",class:it({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":m,"auto-hide":y,"handle-resize":C,classes:E,result:T,onHide:w,onResize:$},{default:rt(()=>[e.html?(ce(),Se("div",{key:0,innerHTML:e.finalContent},null,8,NE)):(ce(),Se("div",{key:1,textContent:qe(e.finalContent)},null,8,OE))]),_: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 PE=ef($E,[["render",IE]]),Lw="v-popper--has-tooltip";function RE(e,t){let r=e.placement;if(!r&&t)for(const o of kw)t[o]&&(r=o);return r||(r=pa(e.theme||"tooltip","placement")),r}function Mw(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=RE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let xd,va,zE=0;function DE(){if(xd)return;va=Ue([]),xd=fw({name:"VTooltipDirectiveApp",setup(){return{directives:va}},render(){return this.directives.map(t=>Pa(PE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),xd.mount(e)}function $w(e,t,r){DE();const o=Ue(Mw(e,t,r)),s=Ue(!1),l={id:zE++,options:o,shown:s};return va.value.push(l),e.classList&&e.classList.add(Lw),e.$_popper={options:o,item:l,show(){s.value=!0},hide(){s.value=!1}}}function dp(e){if(e.$_popper){const t=va.value.indexOf(e.$_popper.item);t!==-1&&va.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Lw)}function Fm(e,{value:t,modifiers:r}){const o=Mw(e,t,r);if(!o.content||pa(o.theme||"tooltip","disabled"))dp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=$w(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const FE={beforeMount:Fm,updated:Fm,beforeUnmount(e){dp(e)}},HE=FE,Nw=ME,Ow={options:oo};var BE={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},WE=Object.entries(BE);function hp(e){return String(e)}hp.open="";hp.close="";function qE(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},o=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||o.includes("--no-color"))&&("FORCE_COLOR"in r||o.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function UE(e=!1){let t=qE(e),r=(u,d,h,p)=>{let g="",m=0;do g+=u.substring(m,p)+h,m=p+d.length,p=u.indexOf(d,m);while(~p);return g+u.substring(m)},o=(u,d,h=u)=>{let p=g=>{let m=String(g),y=m.indexOf(d,u.length);return~y?u+r(m,d,h,y)+d:u+m+d};return p.open=u,p.close=d,p},s={isColorSupported:t},l=u=>`\x1B[${u}m`;for(let[u,d]of WE)s[u]=t?o(l(d[0]),l(d[1]),d[2]):hp;return s}UE();const Hm={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},jE={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Ks="…";function VE(e,t){const r=Hm[jE[t]]||Hm[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function GE({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:o=!0,showProxy:s=!1,maxArrayLength:l=1/0,breakLength:u=1/0,seen:d=[],truncate:h=1/0,stylize:p=String}={},g){const m={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!o,showProxy:!!s,maxArrayLength:Number(l),breakLength:Number(u),truncate:Number(h),seen:d,inspect:g,stylize:p};return m.colors&&(m.stylize=VE),m}function KE(e){return e>="\uD800"&&e<="\uDBFF"}function bo(e,t,r=Ks){e=String(e);const o=r.length,s=e.length;if(o>t&&s>o)return r;if(s>t&&s>o){let l=t-o;return l>0&&KE(e[l-1])&&(l=l-1),`${e.slice(0,l)}${r}`}return e}function Nr(e,t,r,o=", "){r=r||t.inspect;const s=e.length;if(s===0)return"";const l=t.truncate;let u="",d="",h="";for(let p=0;p<s;p+=1){const g=p+1===e.length,m=p+2===e.length;h=`${Ks}(${e.length-p})`;const y=e[p];t.truncate=l-u.length-(g?0:o.length);const w=d||r(y,t)+(g?"":o),C=u.length+w.length,$=C+h.length;if(g&&C>l&&u.length+h.length<=l||!g&&!m&&$>l||(d=g?"":r(e[p+1],t)+(m?"":o),!g&&m&&$>l&&C+d.length>l))break;if(u+=w,!g&&!m&&C+d.length>=l){h=`${Ks}(${e.length-p-1})`;break}h=""}return`${u}${h}`}function XE(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ma([e,t],r){return r.truncate-=2,typeof e=="string"?e=XE(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function YE(e,t){const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;const o=Nr(e,t);t.truncate-=o.length;let s="";return r.length&&(s=Nr(r.map(l=>[l,e[l]]),t,ma)),`[ ${o}${s?`, ${s}`:""} ]`}const JE=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function fi(e,t){const r=JE(e);t.truncate-=r.length+4;const o=Object.keys(e).slice(e.length);if(!e.length&&!o.length)return`${r}[]`;let s="";for(let u=0;u<e.length;u++){const d=`${t.stylize(bo(e[u],t.truncate),"number")}${u===e.length-1?"":", "}`;if(t.truncate-=d.length,e[u]!==e.length&&t.truncate<=3){s+=`${Ks}(${e.length-e[u]+1})`;break}s+=d}let l="";return o.length&&(l=Nr(o.map(u=>[u,e[u]]),t,ma)),`${r}[ ${s}${l?`, ${l}`:""} ]`}function ZE(e,t){const r=e.toJSON();if(r===null)return"Invalid Date";const o=r.split("T"),s=o[0];return t.stylize(`${s}T${bo(o[1],t.truncate-s.length-1)}`,"date")}function Bm(e,t){const r=e[Symbol.toStringTag]||"Function",o=e.name;return o?t.stylize(`[${r} ${bo(o,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function QE([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function eA(e){const t=[];return e.forEach((r,o)=>{t.push([o,r])}),t}function tA(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Nr(eA(e),t,QE)} }`)}const nA=Number.isNaN||(e=>e!==e);function Wm(e,t){return nA(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(bo(String(e),t.truncate),"number")}function qm(e,t){let r=bo(e.toString(),t.truncate-1);return r!==Ks&&(r+="n"),t.stylize(r,"bigint")}function rA(e,t){const r=e.toString().split("/")[2],o=t.truncate-(2+r.length),s=e.source;return t.stylize(`/${bo(s,o)}/${r}`,"regexp")}function iA(e){const t=[];return e.forEach(r=>{t.push(r)}),t}function oA(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Nr(iA(e),t)} }`)}const Um=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),sA={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},lA=16;function aA(e){return sA[e]||`\\u${`0000${e.charCodeAt(0).toString(lA)}`.slice(-4)}`}function jm(e,t){return Um.test(e)&&(e=e.replace(Um,aA)),t.stylize(`'${bo(e,t.truncate-2)}'`,"string")}function Vm(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}let Iw=()=>"Promise{…}";try{const{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Iw=(o,s)=>{const[l,u]=e(o);return l===t?"Promise{<pending>}":`Promise${l===r?"!":""}{${s.inspect(u,s)}}`})}catch{}function Kc(e,t){const r=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&o.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const s=Nr(r.map(d=>[d,e[d]]),t,ma),l=Nr(o.map(d=>[d,e[d]]),t,ma);t.seen.pop();let u="";return s&&l&&(u=", "),`{ ${s}${u}${l} }`}const Sd=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function cA(e,t){let r="";return Sd&&Sd in e&&(r=e[Sd]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Kc(e,t)}`}function uA(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Nr(e,t)} ]`)}const fA=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function dA(e,t){const r=Object.getOwnPropertyNames(e).filter(u=>fA.indexOf(u)===-1),o=e.name;t.truncate-=o.length;let s="";if(typeof e.message=="string"?s=bo(e.message,t.truncate):r.unshift("message"),s=s?`: ${s}`:"",t.truncate-=s.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const l=Nr(r.map(u=>[u,e[u]]),t,ma);return`${o}${s}${l?` { ${l} }`:""}`}function hA([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function uh(e,t){return Nr(e,t,Pw,`
|
|
18
|
-
`)}function Pw(e,t){const r=e.getAttributeNames(),o=e.tagName.toLowerCase(),s=t.stylize(`<${o}`,"special"),l=t.stylize(">","special"),u=t.stylize(`</${o}>`,"special");t.truncate-=o.length*2+5;let d="";r.length>0&&(d+=" ",d+=Nr(r.map(g=>[g,e.getAttribute(g)]),t,hA," ")),t.truncate-=d.length;const h=t.truncate;let p=uh(e.children,t);return p&&p.length>h&&(p=`${Ks}(${e.children.length})`),`${s}${d}${l}${p}${u}`}const pA=typeof Symbol=="function"&&typeof Symbol.for=="function",_d=pA?Symbol.for("chai/inspect"):"@@chai/inspect";let Cs=!1;try{const e=require("util");Cs=e.inspect?e.inspect.custom:!1}catch{Cs=!1}const Gm=new WeakMap,Km={},Xm={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Wm,Number:Wm,bigint:qm,BigInt:qm,string:jm,String:jm,function:Bm,Function:Bm,symbol:Vm,Symbol:Vm,Array:YE,Date:ZE,Map:tA,Set:oA,RegExp:rA,Promise:Iw,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:uA,Int8Array:fi,Uint8Array:fi,Uint8ClampedArray:fi,Int16Array:fi,Uint16Array:fi,Int32Array:fi,Uint32Array:fi,Float32Array:fi,Float64Array:fi,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:dA,HTMLCollection:uh,NodeList:uh},gA=(e,t,r)=>_d in e&&typeof e[_d]=="function"?e[_d](t):Cs&&Cs in e&&typeof e[Cs]=="function"?e[Cs](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Gm.has(e.constructor)?Gm.get(e.constructor)(e,t):Km[r]?Km[r](e,t):"",vA=Object.prototype.toString;function fh(e,t={}){const r=GE(t,fh),{customInspect:o}=r;let s=e===null?"null":typeof e;if(s==="object"&&(s=vA.call(e).slice(8,-1)),s in Xm)return Xm[s](e,r);if(o&&e){const u=gA(e,r,s);if(u)return typeof u=="string"?u:fh(u,r)}const l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?Kc(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Pw(e,r):"constructor"in e?e.constructor!==Object?cA(e,r):Kc(e,r):e===Object(e)?Kc(e,r):r.stylize(String(e),s)}const mA=/%[sdjifoOc%]/g;function yA(...e){if(typeof e[0]!="string"){const l=[];for(let u=0;u<e.length;u++)l.push(ks(e[u],{depth:0,colors:!1}));return l.join(" ")}const t=e.length;let r=1;const o=e[0];let s=String(o).replace(mA,l=>{if(l==="%%")return"%";if(r>=t)return l;switch(l){case"%s":{const u=e[r++];return typeof u=="bigint"?`${u.toString()}n`:typeof u=="number"&&u===0&&1/u<0?"-0":typeof u=="object"&&u!==null?typeof u.toString=="function"&&u.toString!==Object.prototype.toString?u.toString():ks(u,{depth:0,colors:!1}):String(u)}case"%d":{const u=e[r++];return typeof u=="bigint"?`${u.toString()}n`:Number(u).toString()}case"%i":{const u=e[r++];return typeof u=="bigint"?`${u.toString()}n`:Number.parseInt(String(u)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return ks(e[r++],{showHidden:!0,showProxy:!0});case"%O":return ks(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(u){const d=u.message;if(d.includes("circular structure")||d.includes("cyclic structures")||d.includes("cyclic object"))return"[Circular]";throw u}default:return l}});for(let l=e[r];r<t;l=e[++r])l===null||typeof l!="object"?s+=` ${l}`:s+=` ${ks(l)}`;return s}function ks(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),fh(e,t)}function bA(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);const r=ks(e,t),o=Object.prototype.toString.call(e);if(t.truncate&&r.length>=t.truncate)if(o==="[object Function]"){const s=e;return s.name?`[Function: ${s.name}]`:"[Function]"}else{if(o==="[object Array]")return`[ Array(${e.length}) ]`;if(o==="[object Object]"){const s=Object.keys(e);return`{ Object (${s.length>2?`${s.splice(0,2).join(", ")}, ...`:s.join(", ")}) }`}else return r}return r}function Rw(e){return e!=null}function za(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function zw(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Ym(e,t,r=void 0){const o=t.replace(/\[(\d+)\]/g,".$1").split(".");let s=e;for(const l of o)if(s=new Object(s)[l],s===void 0)return r;return s}function Jm(){let e=null,t=null;const r=new Promise((o,s)=>{e=o,t=s});return r.resolve=e,r.reject=t,r}function wA(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}var kd,Zm;function xA(){if(Zm)return kd;Zm=1;var e,t,r,o,s,l,u,d,h,p,g,m,y,w,C,$,E,T,A;return y=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,m=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,C=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,g=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,$=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,A=/[\t\v\f\ufeff\p{Zs}]+/yu,d=/\r?\n|[\r\u2028\u2029]/y,h=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,w=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,o=/(['"])(?:(?!\1)[^])*(\1)?/y,s=/[^<>{}]+/y,T=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,E=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,l=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,p=RegExp(d.source),kd=function*(I,{jsx:L=!1}={}){var H,G,oe,ee,Z,Q,F,N,P,O,S,R,j,ne;for({length:Q}=I,ee=0,Z="",ne=[{tag:"JS"}],H=[],S=0,R=!1;ee<Q;){switch(N=ne[ne.length-1],N.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(I[ee]==="/"&&(T.test(Z)||l.test(Z))&&(y.lastIndex=ee,F=y.exec(I))){ee=y.lastIndex,Z=F[0],R=!0,yield{type:"RegularExpressionLiteral",value:F[0],closed:F[1]!==void 0&&F[1]!=="\\"};continue}if(m.lastIndex=ee,F=m.exec(I)){switch(j=F[0],P=m.lastIndex,O=j,j){case"(":Z==="?NonExpressionParenKeyword"&&ne.push({tag:"JSNonExpressionParen",nesting:S}),S++,R=!1;break;case")":S--,R=!0,N.tag==="JSNonExpressionParen"&&S===N.nesting&&(ne.pop(),O="?NonExpressionParenEnd",R=!1);break;case"{":m.lastIndex=0,oe=!E.test(Z)&&(T.test(Z)||l.test(Z)),H.push(oe),R=!1;break;case"}":switch(N.tag){case"InterpolationInTemplate":if(H.length===N.nesting){$.lastIndex=ee,F=$.exec(I),ee=$.lastIndex,Z=F[0],F[1]==="${"?(Z="?InterpolationInTemplate",R=!1,yield{type:"TemplateMiddle",value:F[0]}):(ne.pop(),R=!0,yield{type:"TemplateTail",value:F[0],closed:F[1]==="`"});continue}break;case"InterpolationInJSX":if(H.length===N.nesting){ne.pop(),ee+=1,Z="}",yield{type:"JSXPunctuator",value:"}"};continue}}R=H.pop(),O=R?"?ExpressionBraceEnd":"}";break;case"]":R=!0;break;case"++":case"--":O=R?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(L&&(T.test(Z)||l.test(Z))){ne.push({tag:"JSXTag"}),ee+=1,Z="<",yield{type:"JSXPunctuator",value:j};continue}R=!1;break;default:R=!1}ee=P,Z=O,yield{type:"Punctuator",value:j};continue}if(e.lastIndex=ee,F=e.exec(I)){switch(ee=e.lastIndex,O=F[0],F[0]){case"for":case"if":case"while":case"with":Z!=="."&&Z!=="?."&&(O="?NonExpressionParenKeyword")}Z=O,R=!l.test(F[0]),yield{type:F[1]==="#"?"PrivateIdentifier":"IdentifierName",value:F[0]};continue}if(C.lastIndex=ee,F=C.exec(I)){ee=C.lastIndex,Z=F[0],R=!0,yield{type:"StringLiteral",value:F[0],closed:F[2]!==void 0};continue}if(g.lastIndex=ee,F=g.exec(I)){ee=g.lastIndex,Z=F[0],R=!0,yield{type:"NumericLiteral",value:F[0]};continue}if($.lastIndex=ee,F=$.exec(I)){ee=$.lastIndex,Z=F[0],F[1]==="${"?(Z="?InterpolationInTemplate",ne.push({tag:"InterpolationInTemplate",nesting:H.length}),R=!1,yield{type:"TemplateHead",value:F[0]}):(R=!0,yield{type:"NoSubstitutionTemplate",value:F[0],closed:F[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=ee,F=r.exec(I)){switch(ee=r.lastIndex,O=F[0],F[0]){case"<":ne.push({tag:"JSXTag"});break;case">":ne.pop(),Z==="/"||N.tag==="JSXTagEnd"?(O="?JSX",R=!0):ne.push({tag:"JSXChildren"});break;case"{":ne.push({tag:"InterpolationInJSX",nesting:H.length}),O="?InterpolationInJSX",R=!1;break;case"/":Z==="<"&&(ne.pop(),ne[ne.length-1].tag==="JSXChildren"&&ne.pop(),ne.push({tag:"JSXTagEnd"}))}Z=O,yield{type:"JSXPunctuator",value:F[0]};continue}if(t.lastIndex=ee,F=t.exec(I)){ee=t.lastIndex,Z=F[0],yield{type:"JSXIdentifier",value:F[0]};continue}if(o.lastIndex=ee,F=o.exec(I)){ee=o.lastIndex,Z=F[0],yield{type:"JSXString",value:F[0],closed:F[2]!==void 0};continue}break;case"JSXChildren":if(s.lastIndex=ee,F=s.exec(I)){ee=s.lastIndex,Z=F[0],yield{type:"JSXText",value:F[0]};continue}switch(I[ee]){case"<":ne.push({tag:"JSXTag"}),ee++,Z="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":ne.push({tag:"InterpolationInJSX",nesting:H.length}),ee++,Z="?InterpolationInJSX",R=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(A.lastIndex=ee,F=A.exec(I)){ee=A.lastIndex,yield{type:"WhiteSpace",value:F[0]};continue}if(d.lastIndex=ee,F=d.exec(I)){ee=d.lastIndex,R=!1,u.test(Z)&&(Z="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:F[0]};continue}if(h.lastIndex=ee,F=h.exec(I)){ee=h.lastIndex,p.test(F[0])&&(R=!1,u.test(Z)&&(Z="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:F[0],closed:F[1]!==void 0};continue}if(w.lastIndex=ee,F=w.exec(I)){ee=w.lastIndex,R=!1,yield{type:"SingleLineComment",value:F[0]};continue}G=String.fromCodePoint(I.codePointAt(ee)),ee+=G.length,Z=G,R=!1,yield{type:N.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:G}}},kd}xA();var Dw={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Dw.keyword);new Set(Dw.strict);const Qm=Symbol("vitest:SAFE_TIMERS");function SA(){const{setTimeout:e,setInterval:t,clearInterval:r,clearTimeout:o,setImmediate:s,clearImmediate:l,queueMicrotask:u}=globalThis[Qm]||globalThis,{nextTick:d}=globalThis[Qm]||globalThis.process||{nextTick:h=>h()};return{nextTick:d,setTimeout:e,setInterval:t,clearInterval:r,clearTimeout:o,setImmediate:s,clearImmediate:l,queueMicrotask:u}}const _A=44,e0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kA=new Uint8Array(64),Fw=new Uint8Array(128);for(let e=0;e<e0.length;e++){const t=e0.charCodeAt(e);kA[e]=t,Fw[t]=e}function Rl(e,t){let r=0,o=0,s=0;do{const u=e.next();s=Fw[u],r|=(s&31)<<o,o+=5}while(s&32);const l=r&1;return r>>>=1,l&&(r=-2147483648|-r),t+r}function t0(e,t){return e.pos>=t?!1:e.peek()!==_A}class TA{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 CA(e){const{length:t}=e,r=new TA(e),o=[];let s=0,l=0,u=0,d=0,h=0;do{const p=r.indexOf(";"),g=[];let m=!0,y=0;for(s=0;r.pos<p;){let w;s=Rl(r,s),s<y&&(m=!1),y=s,t0(r,p)?(l=Rl(r,l),u=Rl(r,u),d=Rl(r,d),t0(r,p)?(h=Rl(r,h),w=[s,l,u,d,h]):w=[s,l,u,d]):w=[s],g.push(w),r.pos++}m||EA(g),o.push(g),r.pos=p+1}while(r.pos<=t);return o}function EA(e){e.sort(AA)}function AA(e,t){return e[0]-t[0]}const LA=/^[\w+.-]+:\/\//,MA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,$A=/^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 NA(e){return LA.test(e)}function OA(e){return e.startsWith("//")}function Hw(e){return e.startsWith("/")}function IA(e){return e.startsWith("file:")}function n0(e){return/^[.?#]/.test(e)}function Mc(e){const t=MA.exec(e);return Bw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function PA(e){const t=$A.exec(e),r=t[2];return Bw("file:","",t[1]||"","",Hw(r)?r:"/"+r,t[3]||"",t[4]||"")}function Bw(e,t,r,o,s,l,u){return{scheme:e,user:t,host:r,port:o,path:s,query:l,hash:u,type:Ut.Absolute}}function r0(e){if(OA(e)){const r=Mc("http:"+e);return r.scheme="",r.type=Ut.SchemeRelative,r}if(Hw(e)){const r=Mc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Ut.AbsolutePath,r}if(IA(e))return PA(e);if(NA(e))return Mc(e);const t=Mc("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 RA(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function zA(e,t){Ww(t,t.type),e.path==="/"?e.path=t.path:e.path=RA(t.path)+e.path}function Ww(e,t){const r=t<=Ut.RelativePath,o=e.path.split("/");let s=1,l=0,u=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){u=!0;continue}if(u=!1,p!=="."){if(p===".."){l?(u=!0,l--,s--):r&&(o[s++]=p);continue}o[s++]=p,l++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||u&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function DA(e,t){if(!e&&!t)return"";const r=r0(e);let o=r.type;if(t&&o!==Ut.Absolute){const l=r0(t),u=l.type;switch(o){case Ut.Empty:r.hash=l.hash;case Ut.Hash:r.query=l.query;case Ut.Query:case Ut.RelativePath:zA(r,l);case Ut.AbsolutePath:r.user=l.user,r.host=l.host,r.port=l.port;case Ut.SchemeRelative:r.scheme=l.scheme}u>o&&(o=u)}Ww(r,o);const s=r.query+r.hash;switch(o){case Ut.Hash:case Ut.Query:return s;case Ut.RelativePath:{const l=r.path.slice(1);return l?n0(t||e)&&!n0(l)?"./"+l+s:l+s:s||"."}case Ut.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function i0(e,t){return t&&!t.endsWith("/")&&(t+="/"),DA(e,t)}function FA(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const ho=0,HA=1,BA=2,WA=3,qA=4;function UA(e,t){const r=o0(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=o0(e,o+1))e[o]=VA(e[o],t);return e}function o0(e,t){for(let r=t;r<e.length;r++)if(!jA(e[r]))return r;return e.length}function jA(e){for(let t=1;t<e.length;t++)if(e[t][ho]<e[t-1][ho])return!1;return!0}function VA(e,t){return t||(e=e.slice()),e.sort(GA)}function GA(e,t){return e[ho]-t[ho]}let bu=!1;function KA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),l=e[s][ho]-t;if(l===0)return bu=!0,s;l<0?r=s+1:o=s-1}return bu=!1,r-1}function XA(e,t,r){for(let o=r+1;o<e.length&&e[o][ho]===t;r=o++);return r}function YA(e,t,r){for(let o=r-1;o>=0&&e[o][ho]===t;r=o--);return r}function JA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ZA(e,t,r,o){const{lastKey:s,lastNeedle:l,lastIndex:u}=r;let d=0,h=e.length-1;if(o===s){if(t===l)return bu=u!==-1&&e[u][ho]===t,u;t>=l?d=u===-1?0:u:h=u}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=KA(e,t,d,h)}const QA="`line` must be greater than 0 (lines start at line 1)",eL="`column` must be greater than or equal to 0 (columns start at column 0)",s0=-1,tL=1;class nL{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:l,file:u,names:d,sourceRoot:h,sources:p,sourcesContent:g}=s;this.version=l,this.file=u,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=g,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const m=i0(h||"",FA(r));this.resolvedSources=p.map(w=>i0(w||"",m));const{mappings:y}=s;typeof y=="string"?(this._encoded=y,this._decoded=void 0):(this._encoded=void 0,this._decoded=UA(y,o)),this._decodedMemo=JA(),this._bySources=void 0,this._bySourceMemos=void 0}}function rL(e){var t;return(t=e)._decoded||(t._decoded=CA(e._encoded))}function iL(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(QA);if(o<0)throw new Error(eL);const l=rL(e);if(r>=l.length)return $c(null,null,null,null);const u=l[r],d=oL(u,e._decodedMemo,r,o,s||tL);if(d===-1)return $c(null,null,null,null);const h=u[d];if(h.length===1)return $c(null,null,null,null);const{names:p,resolvedSources:g}=e;return $c(g[h[HA]],h[BA]+1,h[WA],h.length===5?p[h[qA]]:null)}function $c(e,t,r,o){return{source:e,line:t,column:r,name:o}}function oL(e,t,r,o,s){let l=ZA(e,o,t,r);return bu?l=(s===s0?XA:YA)(e,o,l):s===s0&&l++,l===-1||l===e.length?-1:l}const sL=/^[A-Za-z]:\//;function lL(e=""){return e&&e.replace(/\\/g,"/").replace(sL,t=>t.toUpperCase())}const aL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function cL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const uL=function(...e){e=e.map(o=>lL(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:cL();!s||s.length===0||(t=`${s}/${t}`,r=l0(s))}return t=fL(t,!r),r&&!l0(t)?`/${t}`:t.length>0?t:"."};function fL(e,t){let r="",o=0,s=-1,l=0,u=null;for(let d=0;d<=e.length;++d){if(d<e.length)u=e[d];else{if(u==="/")break;u="/"}if(u==="/"){if(!(s===d-1||l===1))if(l===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,l=0;continue}else if(r.length>0){r="",o=0,s=d,l=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,l=0}else u==="."&&l!==-1?++l:l=-1}return r}const l0=function(e){return aL.test(e)},pp=/^\s*at .*(?:\S:\d+|\(native\))/m,dL=/^(?:eval@)?(?:\[native code\])?$/,hL=["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/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function qw(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 Uw(e){let t=e.trim();if(dL.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,[l,u,d]=qw(t.replace(r,""));return!l||!u||!d?null:{file:l,method:s||"",line:Number.parseInt(u),column:Number.parseInt(d)}}function jw(e){const t=e.trim();return pp.test(t)?Vw(t):Uw(t)}function Vw(e){let t=e.trim();if(!pp.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,l,u]=qw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!l||!u?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:uL(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function pL(e,t={}){const{ignoreStackEntries:r=hL}=t;return(pp.test(e)?vL(e):gL(e)).map(s=>{var l;t.getUrlId&&(s.file=t.getUrlId(s.file));const u=(l=t.getSourceMap)===null||l===void 0?void 0:l.call(t,s.file);if(!u||typeof u!="object"||!u.version)return a0(r,s.file)?null:s;const d=new nL(u),{line:h,column:p,source:g,name:m}=iL(d,s);let y=s.file;if(g){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,C=u.sourceRoot?new URL(u.sourceRoot,w):w;y=new URL(g,C).pathname,y.match(/\/\w:\//)&&(y=y.slice(1))}return a0(r,y)?null:h!=null&&p!=null?{line:h,column:p,file:y,method:m||s.method}:s}).filter(s=>s!=null)}function a0(e,t){return e.some(r=>t.match(r))}function gL(e){return e.split(`
|
|
19
|
-
`).map(t=>Uw(t)).filter(Rw)}function vL(e){return e.split(`
|
|
20
|
-
`).map(t=>Vw(t)).filter(Rw)}const mL=/^[A-Za-z]:\//;function yL(e=""){return e&&e.replace(/\\/g,"/").replace(mL,t=>t.toUpperCase())}const bL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,c0=/^\/([A-Za-z]:)?$/;function wL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const u0=function(...e){e=e.map(o=>yL(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:wL();!s||s.length===0||(t=`${s}/${t}`,r=f0(s))}return t=xL(t,!r),r&&!f0(t)?`/${t}`:t.length>0?t:"."};function xL(e,t){let r="",o=0,s=-1,l=0,u=null;for(let d=0;d<=e.length;++d){if(d<e.length)u=e[d];else{if(u==="/")break;u="/"}if(u==="/"){if(!(s===d-1||l===1))if(l===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,l=0;continue}else if(r.length>0){r="",o=0,s=d,l=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,l=0}else u==="."&&l!==-1?++l:l=-1}return r}const f0=function(e){return bL.test(e)},SL=function(e,t){const r=u0(e).replace(c0,"$1").split("/"),o=u0(t).replace(c0,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const l of s){if(o[0]!==l)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};class _L extends Error{constructor(r,o,s){super(r);Wi(this,"code","VITEST_PENDING");Wi(this,"taskId");this.message=r,this.note=s,this.taskId=o.id}}const kL=new WeakMap,Gw=new WeakMap,Kw=new WeakMap;function TL(e,t){kL.set(e,t)}function CL(e,t){Gw.set(e,t)}function EL(e){return Gw.get(e)}function AL(e,t){Kw.set(e,t)}function LL(e){return Kw.get(e)}function ML(e,t){const r=t.reduce((l,u)=>(l[u.prop]=u,l),{}),o={};e.forEach(l=>{const u=r[l.prop]||{...l};o[u.prop]=u});for(const l in o){var s;const u=o[l];u.deps=(s=u.deps)===null||s===void 0?void 0:s.map(d=>o[d.prop])}return Object.values(o)}function Xw(e,t,r){const o=["auto","injected","scope"],s=Object.entries(e).map(([l,u])=>{const d={value:u};if(Array.isArray(u)&&u.length>=2&&zw(u[1])&&Object.keys(u[1]).some(p=>o.includes(p))){var h;Object.assign(d,u[1]);const p=u[0];d.value=d.injected?((h=r.injectValue)===null||h===void 0?void 0:h.call(r,l))??p:p}return d.scope=d.scope||"test",d.scope==="worker"&&!r.getWorkerContext&&(d.scope="file"),d.prop=l,d.isFn=typeof d.value=="function",d});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(s):t.fixtures=s,s.forEach(l=>{if(l.isFn){const d=Jw(l.value);if(d.length&&(l.deps=t.fixtures.filter(({prop:h})=>h!==l.prop&&d.includes(h))),l.scope!=="test"){var u;(u=l.deps)===null||u===void 0||u.forEach(h=>{if(h.isFn&&!(l.scope==="worker"&&h.scope==="worker")&&!(l.scope==="file"&&h.scope!=="test"))throw new SyntaxError(`cannot use the ${h.scope} fixture "${h.prop}" inside the ${l.scope} fixture "${l.prop}"`)})}}}),t}const Td=new Map,Fs=new Map;function $L(e,t,r){return o=>{const s=o||r;if(!s)return t({});const l=EL(s);if(!(l!=null&&l.length))return t(s);const u=Jw(t),d=l.some(({auto:w})=>w);if(!u.length&&!d)return t(s);Td.get(s)||Td.set(s,new Map);const h=Td.get(s);Fs.has(s)||Fs.set(s,[]);const p=Fs.get(s),g=l.filter(({prop:w,auto:C})=>C||u.includes(w)),m=Yw(g);if(!m.length)return t(s);async function y(){for(const w of m){if(h.has(w))continue;const C=await NL(e,w,s,p);s[w.prop]=C,h.set(w,C),w.scope==="test"&&p.unshift(()=>{h.delete(w)})}}return y().then(()=>t(s))}}const Nc=new WeakMap;function NL(e,t,r,o){var s;const l=QL(r.task.file),u=(s=e.getWorkerContext)===null||s===void 0?void 0:s.call(e);if(!t.isFn){var d;if(l[d=t.prop]??(l[d]=t.value),u){var h;u[h=t.prop]??(u[h]=t.value)}return t.value}if(t.scope==="test")return d0(t.value,r,o);if(Nc.has(t))return Nc.get(t);let p;if(t.scope==="worker"){if(!u)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");p=u}else p=l;if(t.prop in p)return p[t.prop];Fs.has(p)||Fs.set(p,[]);const g=Fs.get(p),m=d0(t.value,p,g).then(y=>(p[t.prop]=y,Nc.delete(t),y));return Nc.set(t,m),m}async function d0(e,t,r){const o=Jm();let s=!1;const l=e(t,async u=>{s=!0,o.resolve(u);const d=Jm();r.push(async()=>{d.resolve(),await l}),await d}).catch(u=>{if(!s){o.reject(u);return}throw u});return o}function Yw(e,t=new Set,r=[]){return e.forEach(o=>{if(!r.includes(o)){if(!o.isFn||!o.deps){r.push(o);return}if(t.has(o))throw new Error(`Circular fixture dependency detected: ${o.prop} <- ${[...t].reverse().map(s=>s.prop).join(" <- ")}`);t.add(o),Yw(o.deps,t,r),r.push(o),t.clear()}}),r}function Jw(e){let t=e.toString();/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);const r=t.match(/[^(]*\(([^)]*)/);if(!r)return[];const o=h0(r[1]);if(!o.length)return[];let s=o[0];if("__VITEST_FIXTURE_INDEX__"in e&&(s=o[e.__VITEST_FIXTURE_INDEX__],!s))return[];if(!(s.startsWith("{")&&s.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${s}".`);const l=s.slice(1,-1).replace(/\s/g,""),u=h0(l).map(h=>h.replace(/:.*|=.*/g,"")),d=u.at(-1);if(d&&d.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${d}".`);return u}function h0(e){const t=[],r=[];let o=0;for(let l=0;l<e.length;l++)if(e[l]==="{"||e[l]==="[")r.push(e[l]==="{"?"}":"]");else if(e[l]===r[r.length-1])r.pop();else if(!r.length&&e[l]===","){const u=e.substring(o,l).trim();u&&t.push(u),o=l+1}const s=e.substring(o).trim();return s&&t.push(s),t}function Zw(e,t){function r(s){const l=function(...u){return t.apply(s,u)};Object.assign(l,t),l.withContext=()=>l.bind(s),l.setContext=(u,d)=>{s[u]=d},l.mergeContext=u=>{Object.assign(s,u)};for(const u of e)Object.defineProperty(l,u,{get(){return r({...s,[u]:!0})}});return l}const o=r({});return o.fn=t,o}const zl=FL();gp(function(e,t,r){dh().test.fn.call(this,so(e),t,r)});let jr,Qw,OL;function e1(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function IL(){return OL}function PL(){return e1(jr,"the runner"),jr}function dh(){const e=lo.currentSuite||Qw;return e1(e,"the current suite"),e}function RL(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function Hs(e,t){let r={},o=()=>{};if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),r=t}else typeof t=="number"?r={timeout:t}:typeof e=="object"&&(r=e);if(typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");o=e}else typeof t=="function"&&(o=t);return{options:r,handler:o}}function zL(e,t=()=>{},r,o,s,l){const u=[];let d;w();const h=function(E="",T={}){var A;const I=(T==null?void 0:T.timeout)??jr.config.testTimeout,L={id:"",name:E,suite:(A=lo.currentSuite)===null||A===void 0?void 0:A.suite,each:T.each,fails:T.fails,context:void 0,type:"test",file:void 0,timeout:I,retry:T.retry??jr.config.retry,repeats:T.repeats,mode:T.only?"only":T.skip?"skip":T.todo?"todo":"run",meta:T.meta??Object.create(null),annotations:[]},H=T.handler;(T.concurrent||!T.sequential&&jr.config.sequence.concurrent)&&(L.concurrent=!0),L.shuffle=s==null?void 0:s.shuffle;const G=JL(L,jr);Object.defineProperty(L,"context",{value:G,enumerable:!1}),CL(G,T.fixtures);const oe=Error.stackTraceLimit;Error.stackTraceLimit=15;const ee=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=oe,H&&TL(L,hh(DL($L(jr,H,G),L),I,!1,ee,(Z,Q)=>XL([G],Q))),jr.config.includeTaskLocation){const Z=ee.stack,Q=BL(Z);Q&&(L.location=Q)}return u.push(L),L},p=gp(function(E,T,A){let{options:I,handler:L}=Hs(T,A);typeof s=="object"&&(I=Object.assign({},s,I)),I.concurrent=this.concurrent||!this.sequential&&(I==null?void 0:I.concurrent),I.sequential=this.sequential||!this.concurrent&&(I==null?void 0:I.sequential);const H=h(so(E),{...this,...I,handler:L});H.type="test"});let g=l;const m={type:"collector",name:e,mode:r,suite:d,options:s,test:p,tasks:u,collect:$,task:h,clear:C,on:y,fixtures(){return g},scoped(E){const T=Xw(E,{fixtures:g},jr);T.fixtures&&(g=T.fixtures)}};function y(E,...T){LL(d)[E].push(...T)}function w(E){var T;typeof s=="number"&&(s={timeout:s}),d={id:"",type:"suite",name:e,suite:(T=lo.currentSuite)===null||T===void 0?void 0:T.suite,mode:r,each:o,file:void 0,shuffle:s==null?void 0:s.shuffle,tasks:[],meta:Object.create(null),concurrent:s==null?void 0:s.concurrent},AL(d,RL())}function C(){u.length=0,w()}async function $(E){if(!E)throw new TypeError("File is required to collect tasks.");t&&await KL(m,()=>t(p));const T=[];for(const A of u)T.push(A.type==="collector"?await A.collect(E):A);return d.file=E,d.tasks=T,T.forEach(A=>{A.file=E}),d}return GL(m),m}function DL(e,t){return async(...r)=>{const o=await e(...r);if(t.promises){const l=(await Promise.allSettled(t.promises)).map(u=>u.status==="rejected"?u.reason:void 0).filter(Boolean);if(l.length)throw l}return o}}function FL(){function e(t,r,o){var s;const l=this.only?"only":this.skip?"skip":this.todo?"todo":"run",u=lo.currentSuite||Qw;let{options:d,handler:h}=Hs(r,o);const p=d.concurrent||this.concurrent||d.sequential===!1,g=d.sequential||this.sequential||d.concurrent===!1;d={...u==null?void 0:u.options,...d,shuffle:this.shuffle??d.shuffle??(u==null||(s=u.options)===null||s===void 0?void 0:s.shuffle)??void 0};const m=p||d.concurrent&&!g,y=g||d.sequential&&!p;return d.concurrent=m&&!y,d.sequential=y&&!m,zL(so(t),h,l,this.each,d,u==null?void 0:u.fixtures())}return e.each=function(t,...r){const o=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&r.length&&(t=wu(t,r)),(s,l,u)=>{const d=so(s),h=t.every(Array.isArray),{options:p,handler:g}=Hs(l,u),m=typeof l=="function"&&typeof u=="object";t.forEach((y,w)=>{const C=Array.isArray(y)?y:[y];m?h?o(Gr(d,C,w),()=>g(...C),p):o(Gr(d,C,w),()=>g(y),p):h?o(Gr(d,C,w),p,()=>g(...C)):o(Gr(d,C,w),p,()=>g(y))}),this.setContext("each",void 0)}},e.for=function(t,...r){return Array.isArray(t)&&r.length&&(t=wu(t,r)),(o,s,l)=>{const u=so(o),{options:d,handler:h}=Hs(s,l);t.forEach((p,g)=>{zl(Gr(u,za(p),g),d,()=>h(p))})}},e.skipIf=t=>t?zl.skip:zl,e.runIf=t=>t?zl:zl.skip,Zw(["concurrent","sequential","shuffle","skip","only","todo"],e)}function HL(e,t){const r=e;r.each=function(s,...l){const u=this.withContext();return this.setContext("each",!0),Array.isArray(s)&&l.length&&(s=wu(s,l)),(d,h,p)=>{const g=so(d),m=s.every(Array.isArray),{options:y,handler:w}=Hs(h,p),C=typeof h=="function"&&typeof p=="object";s.forEach(($,E)=>{const T=Array.isArray($)?$:[$];C?m?u(Gr(g,T,E),()=>w(...T),y):u(Gr(g,T,E),()=>w($),y):m?u(Gr(g,T,E),y,()=>w(...T)):u(Gr(g,T,E),y,()=>w($))}),this.setContext("each",void 0)}},r.for=function(s,...l){const u=this.withContext();return Array.isArray(s)&&l.length&&(s=wu(s,l)),(d,h,p)=>{const g=so(d),{options:m,handler:y}=Hs(h,p);s.forEach((w,C)=>{const $=E=>y(w,E);$.__VITEST_FIXTURE_INDEX__=1,$.toString=()=>y.toString(),u(Gr(g,za(w),C),m,$)})}},r.skipIf=function(s){return s?this.skip:this},r.runIf=function(s){return s?this:this.skip},r.scoped=function(s){dh().scoped(s)},r.extend=function(s){const l=Xw(s,t||{},jr);return gp(function(d,h,p){const g=dh(),m=g.fixtures(),y={...this};m&&(y.fixtures=ML(y.fixtures||[],m)),g.test.fn.call(y,so(d),h,p)},l)};const o=Zw(["concurrent","sequential","skip","only","todo","fails"],r);return t&&o.mergeContext(t),o}function gp(e,t){return HL(e,t)}function so(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function Gr(e,t,r){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${r}`).replace(/%\$/g,`${r+1}`).replace(/__vitest_escaped_%__/g,"%%"));const o=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((d,h)=>{if(wA(t[h])||Object.is(t[h],-0)){let p=0;e=e.replace(/%f/g,g=>(p++,p===h+1?"-%f":g))}});let s=yA(e,...t.slice(0,o));const l=zw(t[0]);return s=s.replace(/\$([$\w.]+)/g,(u,d)=>{const h=/^\d+$/.test(d);if(!l&&!h)return`$${d}`;const p=h?Ym(t,d):void 0,g=l?Ym(t[0],d,p):p;return bA(g,{truncate:void 0})}),s}function wu(e,t){const r=e.join("").trim().replace(/ /g,"").split(`
|
|
21
|
-
`).map(s=>s.split("|"))[0],o=[];for(let s=0;s<Math.floor(t.length/r.length);s++){const l={};for(let u=0;u<r.length;u++)l[r[u]]=t[s*r.length+u];o.push(l)}return o}function BL(e){const t=IL(),r=e.split(`
|
|
22
|
-
`).slice(1);for(const o of r){const s=jw(o);if(s&&s.file===t)return{line:s.line,column:s.column}}}function WL(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 t1(e,t,r,o){const s=SL(t,e),l={id:qL(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return l.file=l,eM(l,Object.create(null)),l}function qL(e,t){return WL(`${e}${t||""}`)}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;function n1(e){return ya(e)}function ya(e){return e.type==="test"}function r1(e){const t=[],r=za(e);for(const o of r)if(ya(o))t.push(o);else for(const s of o.tasks)if(ya(s))t.push(s);else{const l=r1(s);for(const u of l)t.push(u)}return t}function vp(e=[]){return za(e).flatMap(t=>ya(t)?[t]:[t,...vp(t.tasks)])}function UL(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}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;const Cd=new Map,p0=[],Xc=[];function jL(e){if(Cd.size){var t;const r=Array.from(Cd).map(([s,l])=>[s,l[0],l[1]]),o=(t=e.onTaskUpdate)===null||t===void 0?void 0:t.call(e,r,p0);o&&(Xc.push(o),o.then(()=>Xc.splice(Xc.indexOf(o),1),()=>{})),p0.length=0,Cd.clear()}}async function VL(e){jL(e),await Promise.all(Xc)}const g0=Date.now,lo={currentSuite:null};function GL(e){var t;(t=lo.currentSuite)===null||t===void 0||t.tasks.push(e)}async function KL(e,t){const r=lo.currentSuite;lo.currentSuite=e,await t(),lo.currentSuite=r}function hh(e,t,r=!1,o,s){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:l,clearTimeout:u}=SA();return function(...h){const p=g0(),g=PL();return g._currentTaskStartTime=p,g._currentTaskTimeout=t,new Promise((m,y)=>{var w;const C=l(()=>{u(C),$()},t);(w=C.unref)===null||w===void 0||w.call(C);function $(){const A=ZL(r,t,o);s==null||s(h,A),y(A)}function E(A){if(g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(C),g0()-p>=t){$();return}m(A)}function T(A){g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(C),y(A)}try{const A=e(...h);typeof A=="object"&&A!=null&&typeof A.then=="function"?A.then(E,T):E(A)}catch(A){T(A)}})}}const ph=new WeakMap;function XL([e],t){e&&YL(e,t)}function YL(e,t){const r=ph.get(e);r==null||r.abort(t)}function JL(e,t){var r;const o=function(){throw new Error("done() callback is deprecated, use promise instead")};let s=ph.get(o);s||(s=new AbortController,ph.set(o,s)),o.signal=s.signal,o.task=e,o.skip=(u,d)=>{if(u!==!1)throw e.result??(e.result={state:"skip"}),e.result.pending=!0,new _L("test is skipped; abort execution",e,typeof u=="string"?u:d)};async function l(u,d,h,p){const g={message:u,type:h||"notice"};if(p){if(!p.body&&!p.path)throw new TypeError("Test attachment requires body or path to be set. Both are missing.");if(p.body&&p.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');g.attachment=p,p.body instanceof Uint8Array&&(p.body=tM(p.body))}if(d&&(g.location=d),!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await VL(t);const m=await t.onTestAnnotate(e,g);return e.annotations.push(m),m}return o.annotate=(u,d,h)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let p;const g=new Error("STACK_TRACE").stack,m=g.includes("STACK_TRACE")?2:1,y=g.split(`
|
|
23
|
-
`)[m],w=jw(y);return w&&(p={file:w.file,line:w.line,column:w.column}),typeof d=="object"?v0(e,l(u,p,void 0,d)):v0(e,l(u,p,d,h))},o.onTestFailed=(u,d)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(hh(u,d??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(h,p)=>s.abort(p)))},o.onTestFinished=(u,d)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(hh(u,d??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(h,p)=>s.abort(p)))},((r=t.extendTaskContext)===null||r===void 0?void 0:r.call(t,o))||o}function ZL(e,t,r){const o=`${e?"Hook":"Test"} timed out in ${t}ms.
|
|
24
|
-
If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,s=new Error(o);return r!=null&&r.stack&&(s.stack=r.stack.replace(s.message,r.message)),s}const i1=new WeakMap;function QL(e){const t=i1.get(e);if(!t)throw new Error(`Cannot find file context for ${e.name}`);return t}function eM(e,t){i1.set(e,t)}const cr=[];for(let e=65;e<91;e++)cr.push(String.fromCharCode(e));for(let e=97;e<123;e++)cr.push(String.fromCharCode(e));for(let e=0;e<10;e++)cr.push(e.toString(10));function tM(e){let t="";const r=e.byteLength;for(let o=0;o<r;o+=3)if(r===o+1){const s=(e[o]&252)>>2,l=(e[o]&3)<<4;t+=cr[s],t+=cr[l],t+="=="}else if(r===o+2){const s=(e[o]&252)>>2,l=(e[o]&3)<<4|(e[o+1]&240)>>4,u=(e[o+1]&15)<<2;t+=cr[s],t+=cr[l],t+=cr[u],t+="="}else{const s=(e[o]&252)>>2,l=(e[o]&3)<<4|(e[o+1]&240)>>4,u=(e[o+1]&15)<<2|(e[o+2]&192)>>6,d=e[o+2]&63;t+=cr[s],t+=cr[l],t+=cr[u],t+=cr[d]}return t}function v0(e,t){return t=t.finally(()=>{if(!e.promises)return;const r=e.promises.indexOf(t);r!==-1&&e.promises.splice(r,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}const m0="q",y0="s",nM=6e4;function o1(e){return e}const rM=o1,{clearTimeout:iM,setTimeout:oM}=globalThis,sM=Math.random.bind(Math);function lM(e,t){const{post:r,on:o,off:s=()=>{},eventNames:l=[],serialize:u=o1,deserialize:d=rM,resolver:h,bind:p="rpc",timeout:g=nM}=t,m=new Map;let y,w=!1;const C=new Proxy({},{get(T,A){if(A==="$functions")return e;if(A==="$close")return $;if(A==="then"&&!l.includes("then")&&!("then"in e))return;const I=(...H)=>{r(u({m:A,a:H,t:m0}))};if(l.includes(A))return I.asEvent=I,I;const L=async(...H)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${A}"`);if(y)try{await y}finally{y=void 0}return new Promise((G,oe)=>{var Q;const ee=cM();let Z;g>=0&&(Z=oM(()=>{var F;try{if(((F=t.onTimeoutError)==null?void 0:F.call(t,A,H))!==!0)throw new Error(`[birpc] timeout on calling "${A}"`)}catch(N){oe(N)}m.delete(ee)},g),typeof Z=="object"&&(Z=(Q=Z.unref)==null?void 0:Q.call(Z))),m.set(ee,{resolve:G,reject:oe,timeoutId:Z,method:A}),r(u({m:A,a:H,i:ee,t:"q"}))})};return L.asEvent=I,L}});function $(T){w=!0,m.forEach(({reject:A,method:I})=>{A(T||new Error(`[birpc] rpc is closed, cannot call "${I}"`))}),m.clear(),s(E)}async function E(T,...A){var L,H,G;let I;try{I=d(T)}catch(oe){if(((L=t.onGeneralError)==null?void 0:L.call(t,oe))!==!0)throw oe;return}if(I.t===m0){const{m:oe,a:ee}=I;let Z,Q;const F=h?h(oe,e[oe]):e[oe];if(!F)Q=new Error(`[birpc] function "${oe}" not found`);else try{Z=await F.apply(p==="rpc"?C:e,ee)}catch(N){Q=N}if(I.i){if(Q&&t.onError&&t.onError(Q,oe,ee),Q&&t.onFunctionError&&t.onFunctionError(Q,oe,ee)===!0)return;if(!Q)try{r(u({t:y0,i:I.i,r:Z}),...A);return}catch(N){if(Q=N,((H=t.onGeneralError)==null?void 0:H.call(t,N,oe,ee))!==!0)throw N}try{r(u({t:y0,i:I.i,e:Q}),...A)}catch(N){if(((G=t.onGeneralError)==null?void 0:G.call(t,N,oe,ee))!==!0)throw N}}}else{const{i:oe,r:ee,e:Z}=I,Q=m.get(oe);Q&&(iM(Q.timeoutId),Z?Q.reject(Z):Q.resolve(ee)),m.delete(oe)}}return y=o(E),C}const aM="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function cM(e=21){let t="",r=e;for(;r--;)t+=aM[sM()*64|0];return t}const{parse:s1,stringify:uM}=JSON,{keys:fM}=Object,ba=String,l1="string",b0={},xu="object",a1=(e,t)=>t,dM=e=>e instanceof ba?ba(e):e,hM=(e,t)=>typeof t===l1?new ba(t):t,c1=(e,t,r,o)=>{const s=[];for(let l=fM(r),{length:u}=l,d=0;d<u;d++){const h=l[d],p=r[h];if(p instanceof ba){const g=e[p];typeof g===xu&&!t.has(g)?(t.add(g),r[h]=b0,s.push({k:h,a:[e,t,g,o]})):r[h]=o.call(r,h,g)}else r[h]!==b0&&(r[h]=o.call(r,h,p))}for(let{length:l}=s,u=0;u<l;u++){const{k:d,a:h}=s[u];r[d]=o.call(r,d,c1.apply(null,h))}return r},w0=(e,t,r)=>{const o=ba(t.push(r)-1);return e.set(r,o),o},gh=(e,t)=>{const r=s1(e,hM).map(dM),o=r[0],s=t||a1,l=typeof o===xu&&o?c1(r,new Set,o,s):o;return s.call({"":l},"",l)},u1=(e,t,r)=>{const o=t&&typeof t===xu?(g,m)=>g===""||-1<t.indexOf(g)?m:void 0:t||a1,s=new Map,l=[],u=[];let d=+w0(s,l,o.call({"":e},"",e)),h=!d;for(;d<l.length;)h=!0,u[d]=uM(l[d++],p,r);return"["+u.join(",")+"]";function p(g,m){if(h)return h=!h,m;const y=o.call(this,g,m);switch(typeof y){case xu:if(y===null)return y;case l1:return s.get(y)||w0(s,l,y)}return y}},pM=e=>s1(u1(e));class f1{constructor(){Wi(this,"filesMap",new Map);Wi(this,"pathsSet",new Set);Wi(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(u=>u.projectName!==r.projectName||u.meta.typecheck!==r.meta.typecheck),l=o.find(u=>u.projectName===r.projectName);l&&(r.logs=l.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const l=this.filesMap.get(s),u=t1(s,o.config.root,o.config.name||"");if(u.local=!0,this.idMap.set(u.id,u),!l){this.filesMap.set(s,[u]);return}const d=l.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,u]):this.filesMap.set(s,[u])})}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 l=this.idMap.get(r);l&&(l.result=o,l.meta=s,(o==null?void 0:o.state)==="skip"&&(l.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function gM(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:l=10,connectTimeout:u=6e4,reactive:d=A=>A,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=l;const g=d({ws:new h(e),state:new f1,waitForConnection:T,reconnect:$},"state");g.state.filesMap=d(g.state.filesMap,"filesMap"),g.state.idMap=d(g.state.idMap,"idMap");let m;const y={onTestAnnotate(A,I){var L;(L=r.onTestAnnotate)==null||L.call(r,A,I)},onSpecsCollected(A){var I;A==null||A.forEach(([L,H])=>{g.state.clearFiles({config:L},[H])}),(I=r.onSpecsCollected)==null||I.call(r,A)},onPathsCollected(A){var I;g.state.collectPaths(A),(I=r.onPathsCollected)==null||I.call(r,A)},onCollected(A){var I;g.state.collectFiles(A),(I=r.onCollected)==null||I.call(r,A)},onTaskUpdate(A,I){var L;g.state.updateTasks(A),(L=r.onTaskUpdate)==null||L.call(r,A,I)},onUserConsoleLog(A){var I;g.state.updateUserLog(A),(I=r.onUserConsoleLog)==null||I.call(r,A)},onFinished(A,I){var L;(L=r.onFinished)==null||L.call(r,A,I)},onFinishedReportCoverage(){var A;(A=r.onFinishedReportCoverage)==null||A.call(r)}},w={post:A=>g.ws.send(A),on:A=>m=A,serialize:A=>u1(A,(I,L)=>L instanceof Error?{name:L.name,message:L.message,stack:L.stack}:L),deserialize:gh,onTimeoutError(A){throw new Error(`[vitest-ws-client]: Timeout calling "${A}"`)}};g.rpc=lM(y,w);let C;function $(A=!1){A&&(p=l),g.ws=new h(e),E()}function E(){C=new Promise((A,I)=>{var H,G;const L=(G=(H=setTimeout(()=>{I(new Error(`Cannot connect to the server in ${u/1e3} seconds`))},u))==null?void 0:H.unref)==null?void 0:G.call(H);g.ws.OPEN===g.ws.readyState&&A(),g.ws.addEventListener("open",()=>{p=l,A(),clearTimeout(L)})}),g.ws.addEventListener("message",A=>{m(A.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout($,s)})}E();function T(){return C}return g}function mp(e){return Yy()?(wk(e),!0):!1}const Ed=new WeakMap,vM=(...e)=>{var t;const r=e[0],o=(t=Vo())==null?void 0:t.proxy;if(o==null&&!Rb())throw new Error("injectLocal must be called in setup");return o&&Ed.has(o)&&r in Ed.get(o)?Ed.get(o)[r]:wn(...e)},mM=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yM=Object.prototype.toString,bM=e=>yM.call(e)==="[object Object]",Su=()=>{};function d1(e,t){function r(...o){return new Promise((s,l)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(l)})}return r}const h1=e=>e();function p1(e,t={}){let r,o,s=Su;const l=h=>{clearTimeout(h),s(),s=Su};let u;return h=>{const p=Vt(e),g=Vt(t.maxWait);return r&&l(r),p<=0||g!==void 0&&g<=0?(o&&(l(o),o=null),Promise.resolve(h())):new Promise((m,y)=>{s=t.rejectOnCancel?y:m,u=h,g&&!o&&(o=setTimeout(()=>{r&&l(r),o=null,m(u())},g)),r=setTimeout(()=>{o&&l(o),o=null,m(h())},p)})}}function wM(e=h1,t={}){const{initialState:r="active"}=t,o=g1(r==="active");function s(){o.value=!1}function l(){o.value=!0}const u=(...d)=>{o.value&&e(...d)};return{isActive:La(o),pause:s,resume:l,eventFilter:u}}function x0(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function S0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function xM(e){return Vo()}function Ad(e){return Array.isArray(e)?e:[e]}function g1(...e){if(e.length!==1)return Ma(...e);const t=e[0];return typeof t=="function"?La(hb(()=>({get:t,set:Su}))):Ue(t)}function Oc(e,t=200,r={}){return d1(p1(t,r),e)}function v1(e,t,r={}){const{eventFilter:o=h1,...s}=r;return xt(e,d1(o,t),s)}function m1(e,t,r={}){const{eventFilter:o,initialState:s="active",...l}=r,{eventFilter:u,pause:d,resume:h,isActive:p}=wM(o,{initialState:s});return{stop:v1(e,t,{...l,eventFilter:u}),pause:d,resume:h,isActive:p}}function yp(e,t=!0,r){xM()?yo(e,r):t?e():Tt(e)}function vh(e,t=!1){function r(m,{flush:y="sync",deep:w=!1,timeout:C,throwOnTimeout:$}={}){let E=null;const A=[new Promise(I=>{E=xt(e,L=>{m(L)!==t&&(E?E():Tt(()=>E==null?void 0:E()),I(L))},{flush:y,deep:w,immediate:!0})})];return C!=null&&A.push(x0(C,$).then(()=>Vt(e)).finally(()=>E==null?void 0:E())),Promise.race(A)}function o(m,y){if(!Ct(m))return r(L=>L===m,y);const{flush:w="sync",deep:C=!1,timeout:$,throwOnTimeout:E}=y??{};let T=null;const I=[new Promise(L=>{T=xt([e,m],([H,G])=>{t!==(H===G)&&(T?T():Tt(()=>T==null?void 0:T()),L(H))},{flush:w,deep:C,immediate:!0})})];return $!=null&&I.push(x0($,E).then(()=>Vt(e)).finally(()=>(T==null||T(),Vt(e)))),Promise.race(I)}function s(m){return r(y=>!!y,m)}function l(m){return o(null,m)}function u(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,y){return r(w=>{const C=Array.from(w);return C.includes(m)||C.includes(Vt(m))},y)}function p(m){return g(1,m)}function g(m=1,y){let w=-1;return r(()=>(w+=1,w>=m),y)}return Array.isArray(Vt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:g,get not(){return vh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:l,toBeNaN:d,toBeUndefined:u,changed:p,changedTimes:g,get not(){return vh(e,!t)}}}function _0(e){return vh(e)}function SM(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Ct(e),l=rn(e);function u(d){if(arguments.length)return l.value=d,l.value;{const h=Vt(r);return l.value=l.value===h?Vt(o):h,l.value}}return s?u:[l,u]}function bp(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...l}=r;return v1(e,t,{...l,eventFilter:p1(o,{maxWait:s})})}function _M(e,t,r){return xt(e,t,{...r,immediate:!0})}function kM(e,t,r){const o=xt(e,(...s)=>(Tt(()=>o()),t(...s)),r);return o}function TM(e,t,r){let o;Ct(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:l=void 0,shallow:u=!0,onError:d=Su}=o,h=rn(!s),p=u?rn(t):Ue(t);let g=0;return op(async m=>{if(!h.value)return;g++;const y=g;let w=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const C=await e($=>{m(()=>{l&&(l.value=!1),w||$()})});y===g&&(p.value=C)}catch(C){d(C)}finally{l&&y===g&&(l.value=!1),w=!0}}),s?_e(()=>(h.value=!0,p.value)):p}const Or=mM?window:void 0;function _u(e){var t;const r=Vt(e);return(t=r==null?void 0:r.$el)!=null?t:r}function po(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,g)=>(d.addEventListener(h,p,g),()=>d.removeEventListener(h,p,g)),s=_e(()=>{const d=Ad(Vt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),l=_M(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>_u(p)))!=null?h:[Or].filter(p=>p!=null),Ad(Vt(s.value?e[1]:e[0])),Ad(V(s.value?e[2]:e[1])),Vt(s.value?e[3]:e[2])]},([d,h,p,g])=>{if(r(),!(d!=null&&d.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const m=bM(g)?{...g}:g;t.push(...d.flatMap(y=>h.flatMap(w=>p.map(C=>o(y,w,C,m)))))},{flush:"post"}),u=()=>{l(),r()};return mp(r),u}function CM(){const e=rn(!1),t=Vo();return t&&yo(()=>{e.value=!0},t),e}function y1(e){const t=CM();return _e(()=>(t.value,!!e()))}function EM(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function b1(...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:l="keydown",passive:u=!1,dedupe:d=!1}=o,h=EM(t);return po(s,l,g=>{g.repeat&&Vt(d)||h(g)&&r(g)},u)}function AM(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Or,once:l=!1}=t,u=rn(!1),d=_e(()=>o?1e3/Vt(o):null);let h=0,p=null;function g(w){if(!u.value||!s)return;h||(h=w);const C=w-h;if(d.value&&C<d.value){p=s.requestAnimationFrame(g);return}if(h=w,e({delta:C,timestamp:w}),l){u.value=!1,p=null;return}p=s.requestAnimationFrame(g)}function m(){!u.value&&s&&(u.value=!0,h=0,p=s.requestAnimationFrame(g))}function y(){u.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),mp(y),{isActive:La(u),pause:y,resume:m}}const LM=Symbol("vueuse-ssr-width");function MM(){const e=Rb()?vM(LM,null):null;return typeof e=="number"?e:void 0}function w1(e,t={}){const{window:r=Or,ssrWidth:o=MM()}=t,s=y1(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),l=rn(typeof o=="number"),u=rn(),d=rn(!1),h=p=>{d.value=p.matches};return op(()=>{if(l.value){l.value=!s.value;const p=Vt(e).split(",");d.value=p.some(g=>{const m=g.includes("not all"),y=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let C=!!(y||w);return y&&C&&(C=o>=S0(y[1])),w&&C&&(C=o<=S0(w[1])),m?!C:C});return}s.value&&(u.value=r.matchMedia(Vt(e)),d.value=u.value.matches)}),po(u,"change",h,{passive:!0}),_e(()=>d.value)}const Ic=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pc="__vueuse_ssr_handlers__",$M=NM();function NM(){return Pc in Ic||(Ic[Pc]=Ic[Pc]||{}),Ic[Pc]}function x1(e,t){return $M[e]||t}function OM(e){return w1("(prefers-color-scheme: dark)",e)}function IM(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 PM={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()}},k0="vueuse-storage";function S1(e,t,r,o={}){var s;const{flush:l="pre",deep:u=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:m=Or,eventFilter:y,onError:w=F=>{console.error(F)},initOnMounted:C}=o,$=(g?rn:Ue)(typeof t=="function"?t():t),E=_e(()=>Vt(e));if(!r)try{r=x1("getDefaultStorage",()=>{var F;return(F=Or)==null?void 0:F.localStorage})()}catch(F){w(F)}if(!r)return $;const T=Vt(t),A=IM(T),I=(s=o.serializer)!=null?s:PM[A],{pause:L,resume:H}=m1($,()=>oe($.value),{flush:l,deep:u,eventFilter:y});xt(E,()=>Z(),{flush:l}),m&&d&&yp(()=>{r instanceof Storage?po(m,"storage",Z,{passive:!0}):po(m,k0,Q),C&&Z()}),C||Z();function G(F,N){if(m){const P={key:E.value,oldValue:F,newValue:N,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",P):new CustomEvent(k0,{detail:P}))}}function oe(F){try{const N=r.getItem(E.value);if(F==null)G(N,null),r.removeItem(E.value);else{const P=I.write(F);N!==P&&(r.setItem(E.value,P),G(N,P))}}catch(N){w(N)}}function ee(F){const N=F?F.newValue:r.getItem(E.value);if(N==null)return h&&T!=null&&r.setItem(E.value,I.write(T)),T;if(!F&&p){const P=I.read(N);return typeof p=="function"?p(P,T):A==="object"&&!Array.isArray(P)?{...T,...P}:P}else return typeof N!="string"?N:I.read(N)}function Z(F){if(!(F&&F.storageArea!==r)){if(F&&F.key==null){$.value=T;return}if(!(F&&F.key!==E.value)){L();try{(F==null?void 0:F.newValue)!==I.write($.value)&&($.value=ee(F))}catch(N){w(N)}finally{F?Tt(H):H()}}}}function Q(F){Z(F.detail)}return $}const RM="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function zM(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Or,storage:l,storageKey:u="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},y=OM({window:s}),w=_e(()=>y.value?"dark":"light"),C=h||(u==null?g1(o):S1(u,o,l,{window:s,listenToStorageChanges:d})),$=_e(()=>C.value==="auto"?w.value:C.value),E=x1("updateHTMLAttrs",(L,H,G)=>{const oe=typeof L=="string"?s==null?void 0:s.document.querySelector(L):_u(L);if(!oe)return;const ee=new Set,Z=new Set;let Q=null;if(H==="class"){const N=G.split(/\s/g);Object.values(m).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{N.includes(P)?ee.add(P):Z.add(P)})}else Q={key:H,value:G};if(ee.size===0&&Z.size===0&&Q===null)return;let F;g&&(F=s.document.createElement("style"),F.appendChild(document.createTextNode(RM)),s.document.head.appendChild(F));for(const N of ee)oe.classList.add(N);for(const N of Z)oe.classList.remove(N);Q&&oe.setAttribute(Q.key,Q.value),g&&(s.getComputedStyle(F).opacity,document.head.removeChild(F))});function T(L){var H;E(t,r,(H=m[L])!=null?H:L)}function A(L){e.onChanged?e.onChanged(L,T):T(L)}xt($,A,{flush:"post",immediate:!0}),yp(()=>A($.value));const I=_e({get(){return p?C.value:$.value},set(L){C.value=L}});return Object.assign(I,{store:C,system:w,state:$})}function DM(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=zM({...e,onChanged:(u,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,u==="dark",d,u):d(u)},modes:{dark:t,light:r}}),s=_e(()=>o.system.value);return _e({get(){return o.value==="dark"},set(u){const d=u?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function _1(e,t,r={}){const{window:o=Or,...s}=r;let l;const u=y1(()=>o&&"ResizeObserver"in o),d=()=>{l&&(l.disconnect(),l=void 0)},h=_e(()=>{const m=Vt(e);return Array.isArray(m)?m.map(y=>_u(y)):[_u(m)]}),p=xt(h,m=>{if(d(),u.value&&o){l=new ResizeObserver(t);for(const y of m)y&&l.observe(y,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),p()};return mp(g),{isSupported:u,stop:g}}function nf(e,t,r={}){const{window:o=Or}=r;return S1(e,t,o==null?void 0:o.localStorage,r)}function FM(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:l=!0,writeMode:u="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 I=d.location.hash||"",L=I.indexOf("?");return L>0?I.slice(L):""}else return(d.location.hash||"").replace(/^#/,"")}function g(I){const L=I.toString();if(e==="history")return`${L?`?${L}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${L?`#${L}`:""}`;const H=d.location.hash||"#",G=H.indexOf("?");return G>0?`${d.location.search||""}${H.slice(0,G)}${L?`?${L}`:""}`:`${d.location.search||""}${H}${L?`?${L}`:""}`}function m(){return new URLSearchParams(p())}function y(I){const L=new Set(Object.keys(h));for(const H of I.keys()){const G=I.getAll(H);h[H]=G.length>1?G:I.get(H)||"",L.delete(H)}Array.from(L).forEach(H=>delete h[H])}const{pause:w,resume:C}=m1(h,()=>{const I=new URLSearchParams("");Object.keys(h).forEach(L=>{const H=h[L];Array.isArray(H)?H.forEach(G=>I.append(L,G)):o&&H==null||s&&!H?I.delete(L):I.set(L,H)}),$(I,!1)},{deep:!0});function $(I,L){w(),L&&y(I),u==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+g(I)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+g(I)),C()}function E(){l&&$(m(),!0)}const T={passive:!0};po(d,"popstate",E,T),e!=="history"&&po(d,"hashchange",E,T);const A=m();return A.keys().next().value?y(A):Object.assign(h,r),h}function k1(e={}){const{window:t=Or,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:l=!0,type:u="inner"}=e,d=rn(r),h=rn(o),p=()=>{if(t)if(u==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(u==="visual"&&t.visualViewport){const{width:m,height:y,scale:w}=t.visualViewport;d.value=Math.round(m*w),h.value=Math.round(y*w)}else l?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),yp(p);const g={passive:!0};if(po("resize",p,g),t&&u==="visual"&&t.visualViewport&&po(t.visualViewport,"resize",p,g),s){const m=w1("(orientation: portrait)");xt(m,()=>p())}return{width:d,height:h}}const mh=rn([]),Xn=rn([]),Ir=nf("vitest-ui_task-tree-opened",[],{shallow:!0}),ku=_e(()=>new Set(Ir.value)),pn=nf("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Un=Ue(pn.value.search),HM={"&":"&","<":"<",">":">",'"':""","'":"'"};function T1(e){return e.replace(/[&<>"']/g,t=>HM[t])}const BM=_e(()=>{const e=Un.value.toLowerCase();return e.length?new RegExp(`(${T1(e)})`,"gi"):null}),C1=_e(()=>Un.value.trim()!==""),Qe=rr({failed:pn.value.failed,success:pn.value.success,skipped:pn.value.skipped,onlyTests:pn.value.onlyTests}),yh=_e(()=>!!(Qe.failed||Qe.success||Qe.skipped)),rf=rn([]),Xs=Ue(!1),T0=_e(()=>{const e=pn.value.expandAll;return Ir.value.length>0?e!==!0:e!==!1}),WM=_e(()=>{const e=C1.value,t=yh.value,r=Qe.onlyTests,o=Ae.summary.filesFailed,s=Ae.summary.filesSuccess,l=Ae.summary.filesSkipped,u=Ae.summary.filesRunning,d=rf.value;return Ae.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:l,running:u})});function Da(e){return Object.hasOwnProperty.call(e,"tasks")}function qM(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function E1(e){if(!e)return"";const t=e.split("").reduce((o,s,l)=>o+s.charCodeAt(0)+l,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function UM(e){return e.type==="test"}function jM(e){return e.mode==="run"&&e.type==="test"}function Pn(e){return e.type==="file"}function _i(e){return e.type==="file"||e.type==="suite"}function VM(e=Ae.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function wa(e,t=!1){var o,s,l,u,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:ku.value.size>0&&ku.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((l=e.result)==null?void 0:l.duration)!=null?Math.round((u=e.result)==null?void 0:u.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ae.colors.get(e.projectName||"")||E1(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++)Fa(e.id,e.tasks[h],!0)}function A1(e,t){const r=Ae.nodes.get(e);if(!r||!_i(r))return;const o=gt.state.idMap.get(e);if(!(!o||!Da(o)))return Fa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function GM(e){const t=Ae.nodes.get(e);if(!t)return;const r=gt.state.idMap.get(e);!r||!n1(r)||Fa(t.parentId,r,!1)}function Fa(e,t,r){var u,d,h,p,g;const o=Ae.nodes.get(e);let s;const l=((u=t.result)==null?void 0:u.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.mode=t.mode,s.duration=l,s.state=(h=t.result)==null?void 0:h.state):(n1(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:l,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:ku.value.size>0&&ku.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:l,state:(g=t.result)==null?void 0:g.state},Ae.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Da(t)))for(let m=0;m<t.tasks.length;m++)Fa(s.id,t.tasks[m],r)}function KM(e){const t=Ae.nodes.get(e);if(!t||!_i(t))return;const r=new Set(Ir.value);r.delete(t.id);const o=[...YM(t)];Ir.value=Array.from(r),Xn.value=o}function XM(){bh(Ae.root.tasks);const e=[...Xn.value.filter(Pn)];bh(e),Ir.value=[],pn.value.expandAll=!0,Xn.value=e}function bh(e){for(const t of e)_i(t)&&(t.expanded=!1,bh(t.tasks))}function*L1(e,t){if(t&&(yield e.id),_i(e))for(let r=0;r<e.tasks.length;r++)yield*L1(e.tasks[r],!0)}function*YM(e){const t=e.id,r=new Set(L1(e,!1));for(let o=0;o<Xn.value.length;o++){const s=Xn.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 of=Ue("idle"),Es=_e(()=>of.value==="idle"),Ji=Ue([]);function JM(e,t,r){return e?N1(e,t,r):!1}function wp(e,t){const r=[...M1(e,t)];Xn.value=r,rf.value=r.filter(Pn).map(o=>hr(o.id))}function*M1(e,t){for(const r of VM())yield*$1(r,e,t)}function*$1(e,t,r){const o=new Set,s=new Map,l=[];let u;if(r.onlyTests)for(const[m,y]of wh(e,o,w=>C0(w,t,r)))l.push([m,y]);else{for(const[m,y]of wh(e,o,w=>C0(w,t,r)))_i(y)?(s.set(y.id,m),Pn(y)?(m&&(u=y.id),l.push([m,y])):l.push([m||s.get(y.parentId)===!0,y])):l.push([m||s.get(y.parentId)===!0,y]);!u&&!Pn(e)&&"fileId"in e&&(u=e.fileId)}const d=new Set,h=[...QM(l,r.onlyTests,o,d,u)].reverse(),p=Ae.nodes,g=new Set(h.filter(m=>{var y;return Pn(m)||_i(m)&&((y=p.get(m.parentId))==null?void 0:y.expanded)}).map(m=>m.id));yield*h.filter(m=>{var y;return Pn(m)||g.has(m.parentId)&&((y=p.get(m.parentId))==null?void 0:y.expanded)})}function ZM(e,t,r,o,s){if(o){if(Pn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const l=Ae.nodes.get(t.parentId);return l&&Pn(l)&&s.add(l.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const l=Ae.nodes.get(t.parentId);return l&&Pn(l)&&s.add(l.id),t}}function*QM(e,t,r,o,s){for(let l=e.length-1;l>=0;l--){const[u,d]=e[l],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),Pn(p)&&o.add(p.id),p=Ae.nodes.get(p.parentId);yield d;continue}if(h){const p=ZM(u,d,r,t,o);p&&(yield p)}else if(u){const p=Ae.nodes.get(d.parentId);p&&Pn(p)&&o.add(p.id),yield d}}}function e$(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 N1(e,t,r){if(t.length===0||qM(e.name,t))if(r.success||r.failed||r.skipped){if(e$(e,r))return!0}else return!0;return!1}function*wh(e,t,r){const o=r(e);if(o)if(UM(e)){let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}else if(Pn(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*wh(e.tasks[s],t,r)}function C0(e,t,r){const o=gt.state.idMap.get(e.id);return o?N1(o,t,r):!1}function t$(e,t,r){const o=A1(e,!1);if(!o)return;const[s,l]=o;for(const p of l.tasks)Fa(s.id,p,!1);s.expanded=!0;const u=new Set(Ir.value);u.add(s.id);const d=new Set($1(s,t,r)),h=[...i$(s,d)];Ir.value=Array.from(u),Xn.value=h}function n$(e,t){xp(Ae.root.tasks,!1);const r=[...M1(e,t)];pn.value.expandAll=!1,Ir.value=[],Xn.value=r,rf.value=r.filter(Pn).map(o=>hr(o.id))}function r$(e,t){if(e.size)for(const r of Xn.value)e.has(r.id)&&(r.expanded=!0);else t&&xp(Xn.value.filter(Pn),!0)}function xp(e,t){for(const r of e)_i(r)&&(r.expanded=!0,xp(r.tasks,!1));t&&(pn.value.expandAll=!1,Ir.value=[])}function*i$(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Xn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Sp(e){return r1(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 o$(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[l])=>s.localeCompare(l)).map(([,s])=>wa(s,t)),mh.value=[...Ae.root.tasks],wp(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function s$(e){queueMicrotask(()=>{const t=Ae.pendingTasks,r=gt.state.idMap;for(const o of e)if(o[1]){const l=r.get(o[0]);if(l){let u=t.get(l.file.id);u||(u=new Set,t.set(l.file.id,u)),u.add(l.id)}}})}function l$(e,t){const r=Ae.pendingTasks,s=gt.state.idMap.get(e);if((s==null?void 0:s.type)==="test"){let l=r.get(s.file.id);l||(l=new Set,r.set(s.file.id,l)),l.add(s.id),s.annotations.push(t)}}function E0(e,t,r,o,s){e&&h$(r);const l=!e;queueMicrotask(()=>{t?u$(l):f$(l)}),queueMicrotask(()=>{p$(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=mh.value&&Sp(mh.value.map(u=>hr(u.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{d$(o,s,t)})}function*a$(){yield*Xn.value.filter(jM)}function c$(){const e=gt.state.idMap;let t;for(const r of a$())t=e.get(r.parentId),t&&Da(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function u$(e){const t=gt.state.getFiles(),r=Ae.nodes,o=t.filter(l=>!r.has(l.id));for(let l=0;l<o.length;l++)wa(o[l],e),Tu(o[l].tasks);const s=Ae.root.tasks;for(let l=0;l<s.length;l++){const u=s[l],d=hr(u.id);if(!d)continue;wa(d,e);const h=d.tasks;h!=null&&h.length&&Tu(d.tasks)}}function f$(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=>hr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],wa(s,!1),Tu(s.tasks),t.delete(s.id);const l=gt.state.idMap,u=Ae.root.tasks;for(let d=0;d<u.length;d++){const h=u[d],p=hr(h.id);if(!p)continue;const g=t.get(p.id);g&&(wa(p,e),Tu(Array.from(g).map(m=>l.get(m)).filter(Boolean)))}}function d$(e,t,r=!1){const o=pn.value.expandAll,s=o!==!0,l=new Set(Ir.value),u=l.size>0&&o===!1||s;queueMicrotask(()=>{A0(e,t,r)}),Xs.value||queueMicrotask(()=>{(Xn.value.length||r)&&(Xs.value=!0)}),u&&(queueMicrotask(()=>{r$(l,r),s&&(pn.value.expandAll=!1)}),queueMicrotask(()=>{A0(e,t,r)}))}function A0(e,t,r){wp(e,t),r&&(c$(),of.value="idle")}function Tu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Da(t)?A1(t.id,!0):GM(t.id)}function h$(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 p$(e){var u,d,h,p,g,m;const t=gt.state.idMap,r=new Map(Ae.root.tasks.filter(y=>t.has(y.id)).map(y=>[y.id,y])),o=Array.from(r.values()).map(y=>[y.id,hr(y.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 l=0;for(const[y,w]of o){if(!w)continue;const C=r.get(y);C&&(C.mode=w.mode,C.setupDuration=w.setupDuration,C.prepareDuration=w.prepareDuration,C.environmentLoad=w.environmentLoad,C.collectDuration=w.collectDuration,C.duration=((u=w.result)==null?void 0:u.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,C.state=(h=w.result)==null?void 0:h.state),l+=Math.max(0,w.collectDuration||0),l+=Math.max(0,w.setupDuration||0),l+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),l+=Math.max(0,w.environmentLoad||0),l+=Math.max(0,w.prepareDuration||0),s.time=l>1e3?`${(l/1e3).toFixed(2)}s`:`${Math.round(l)}ms`,((g=w.result)==null?void 0:g.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:$,success:E,skipped:T,total:A,ignored:I,todo:L}=O1(w);s.totalTests+=A,s.testsFailed+=$,s.testsSuccess+=E,s.testsSkipped+=T,s.testsTodo+=L,s.testsIgnore+=I}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 O1(e,t="",r){var s,l;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const u of I1(e))(!r||JM(u,t,r))&&(o.total++,((s=u.result)==null?void 0:s.state)==="fail"?o.failed++:((l=u.result)==null?void 0:l.state)==="pass"?o.success++:u.mode==="skip"?(o.ignored++,o.skipped++):u.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function g$(e,t,r,o,s,l){var u,d;if(t)return r.map(h=>O1(h,s,l)).reduce((h,{failed:p,success:g,ignored:m,running:y})=>(h.failed+=p,h.success+=g,h.skipped+=m,h.running+=y,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!l.success&&!l.failed,g=l.failed||p,m=l.success||p;for(const y of r)((u=y.result)==null?void 0:u.state)==="fail"?h.failed+=g?1:0:((d=y.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:y.mode==="skip"||y.mode==="todo"||h.running++;return h}return o}function*I1(e){const t=za(e);let r;for(let o=0;o<t.length;o++)r=t[o],ya(r)?yield r:yield*I1(r.tasks)}class v${constructor(t=[],r=new Map,o=!1,s=500,l={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},u=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})){Wi(this,"rafCollector");Wi(this,"resumeEndRunId");this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=l,this.pendingTasks=u,this.nodes=d,this.summary=h,this.rafCollector=AM(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])),o$(t,!0,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}annotateTest(t,r){l$(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){s$(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(()=>{E0(t,r,this.summary,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}):E0(t,r,this.summary,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collectTestsTotal(t,r,o,s){return g$(t,r,o,s,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collapseNode(t){queueMicrotask(()=>{KM(t)})}expandNode(t){queueMicrotask(()=>{t$(t,Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{XM()})}expandAllNodes(){queueMicrotask(()=>{n$(Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}filterNodes(){queueMicrotask(()=>{wp(Un.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}}const Ae=new v$,er=Ue([414,896]),sf=FM("hash",{initialValue:{file:"",view:null,line:null,test:null}}),go=Ma(sf,"file"),Zn=Ma(sf,"view"),P1=Ma(sf,"line"),R1=Ma(sf,"test"),Ys=Ue(),Bs=Ue(!0),vo=Ue(!1),Cu=Ue(!0),As=_e(()=>{var e;return(e=lf.value)==null?void 0:e.coverage}),xh=_e(()=>{var e;return(e=As.value)==null?void 0:e.enabled}),Ls=_e(()=>xh.value&&!!As.value.htmlReporter),Ws=nf("vitest-ui_splitpanes-mainSizes",[33,67]);var Hy;const ao=nf("vitest-ui_splitpanes-detailSizes",[((Hy=window.__vitest_browser_runner__)==null?void 0:Hy.provider)==="webdriverio"?er.value[0]/window.outerWidth*100:33,67]),At=rr({navigation:Ws.value[0],details:{size:Ws.value[1],browser:ao.value[0],main:ao.value[1]}}),L0=_e(()=>{var e;if(Ls.value){const t=As.value.reportsDirectory.lastIndexOf("/"),r=(e=As.value.htmlReporter)==null?void 0:e.subdir;return r?`/${As.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${As.value.reportsDirectory.slice(t+1)}/index.html`}});xt(of,e=>{Cu.value=e==="running"},{immediate:!0});function m$(){const e=go.value;if(e&&e.length>0){const t=hr(e);t?(Ys.value=t,Bs.value=!1,vo.value=!1):kM(()=>gt.state.getFiles(),()=>{Ys.value=hr(e),Bs.value=!1,vo.value=!1})}return Bs}function Eu(e){Bs.value=e,vo.value=!1,e&&(Ys.value=void 0,go.value="")}function z1({file:e,line:t,view:r,test:o}){go.value=e,P1.value=t,Zn.value=r,R1.value=o,Ys.value=hr(e),Eu(!1)}function y$(e){z1({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null})}function b$(){vo.value=!0,Bs.value=!1,Ys.value=void 0,go.value=""}function w$(){At.details.browser=100,At.details.main=0,ao.value=[100,0]}function D1(){if((Ht==null?void 0:Ht.provider)==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(er.value[0]+20)/e*100}return 33}function x$(){At.details.browser=D1(),At.details.main=100-At.details.browser,ao.value=[At.details.browser,At.details.main]}function S$(){At.navigation=33,At.details.size=67,Ws.value=[33,67]}function F1(){At.details.main!==0&&(At.details.browser=D1(),At.details.main=100-At.details.browser,ao.value=[At.details.browser,At.details.main])}const _$={setCurrentFileId(e){go.value=e,Ys.value=hr(e),Eu(!1)},async setIframeViewport(e,t){er.value=[e,t],(Ht==null?void 0:Ht.provider)==="webdriverio"&&F1(),await new Promise(r=>requestAnimationFrame(r))}},k$=location.port,T$=[location.hostname,k$].filter(Boolean).join(":"),C$=`${location.protocol==="https:"?"wss:":"ws:"}//${T$}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,dr=!!window.METADATA_PATH;function H1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ld={},_r={};const E$="Á",A$="á",L$="Ă",M$="ă",$$="∾",N$="∿",O$="∾̳",I$="Â",P$="â",R$="´",z$="А",D$="а",F$="Æ",H$="æ",B$="",W$="𝔄",q$="𝔞",U$="À",j$="à",V$="ℵ",G$="ℵ",K$="Α",X$="α",Y$="Ā",J$="ā",Z$="⨿",Q$="&",eN="&",tN="⩕",nN="⩓",rN="∧",iN="⩜",oN="⩘",sN="⩚",lN="∠",aN="⦤",cN="∠",uN="⦨",fN="⦩",dN="⦪",hN="⦫",pN="⦬",gN="⦭",vN="⦮",mN="⦯",yN="∡",bN="∟",wN="⊾",xN="⦝",SN="∢",_N="Å",kN="⍼",TN="Ą",CN="ą",EN="𝔸",AN="𝕒",LN="⩯",MN="≈",$N="⩰",NN="≊",ON="≋",IN="'",PN="",RN="≈",zN="≊",DN="Å",FN="å",HN="𝒜",BN="𝒶",WN="≔",qN="*",UN="≈",jN="≍",VN="Ã",GN="ã",KN="Ä",XN="ä",YN="∳",JN="⨑",ZN="≌",QN="϶",eO="‵",tO="∽",nO="⋍",rO="∖",iO="⫧",oO="⊽",sO="⌅",lO="⌆",aO="⌅",cO="⎵",uO="⎶",fO="≌",dO="Б",hO="б",pO="„",gO="∵",vO="∵",mO="∵",yO="⦰",bO="϶",wO="ℬ",xO="ℬ",SO="Β",_O="β",kO="ℶ",TO="≬",CO="𝔅",EO="𝔟",AO="⋂",LO="◯",MO="⋃",$O="⨀",NO="⨁",OO="⨂",IO="⨆",PO="★",RO="▽",zO="△",DO="⨄",FO="⋁",HO="⋀",BO="⤍",WO="⧫",qO="▪",UO="▴",jO="▾",VO="◂",GO="▸",KO="␣",XO="▒",YO="░",JO="▓",ZO="█",QO="=⃥",eI="≡⃥",tI="⫭",nI="⌐",rI="𝔹",iI="𝕓",oI="⊥",sI="⊥",lI="⋈",aI="⧉",cI="┐",uI="╕",fI="╖",dI="╗",hI="┌",pI="╒",gI="╓",vI="╔",mI="─",yI="═",bI="┬",wI="╤",xI="╥",SI="╦",_I="┴",kI="╧",TI="╨",CI="╩",EI="⊟",AI="⊞",LI="⊠",MI="┘",$I="╛",NI="╜",OI="╝",II="└",PI="╘",RI="╙",zI="╚",DI="│",FI="║",HI="┼",BI="╪",WI="╫",qI="╬",UI="┤",jI="╡",VI="╢",GI="╣",KI="├",XI="╞",YI="╟",JI="╠",ZI="‵",QI="˘",eP="˘",tP="¦",nP="𝒷",rP="ℬ",iP="⁏",oP="∽",sP="⋍",lP="⧅",aP="\\",cP="⟈",uP="•",fP="•",dP="≎",hP="⪮",pP="≏",gP="≎",vP="≏",mP="Ć",yP="ć",bP="⩄",wP="⩉",xP="⩋",SP="∩",_P="⋒",kP="⩇",TP="⩀",CP="ⅅ",EP="∩︀",AP="⁁",LP="ˇ",MP="ℭ",$P="⩍",NP="Č",OP="č",IP="Ç",PP="ç",RP="Ĉ",zP="ĉ",DP="∰",FP="⩌",HP="⩐",BP="Ċ",WP="ċ",qP="¸",UP="¸",jP="⦲",VP="¢",GP="·",KP="·",XP="𝔠",YP="ℭ",JP="Ч",ZP="ч",QP="✓",e2="✓",t2="Χ",n2="χ",r2="ˆ",i2="≗",o2="↺",s2="↻",l2="⊛",a2="⊚",c2="⊝",u2="⊙",f2="®",d2="Ⓢ",h2="⊖",p2="⊕",g2="⊗",v2="○",m2="⧃",y2="≗",b2="⨐",w2="⫯",x2="⧂",S2="∲",_2="”",k2="’",T2="♣",C2="♣",E2=":",A2="∷",L2="⩴",M2="≔",$2="≔",N2=",",O2="@",I2="∁",P2="∘",R2="∁",z2="ℂ",D2="≅",F2="⩭",H2="≡",B2="∮",W2="∯",q2="∮",U2="𝕔",j2="ℂ",V2="∐",G2="∐",K2="©",X2="©",Y2="℗",J2="∳",Z2="↵",Q2="✗",eR="⨯",tR="𝒞",nR="𝒸",rR="⫏",iR="⫑",oR="⫐",sR="⫒",lR="⋯",aR="⤸",cR="⤵",uR="⋞",fR="⋟",dR="↶",hR="⤽",pR="⩈",gR="⩆",vR="≍",mR="∪",yR="⋓",bR="⩊",wR="⊍",xR="⩅",SR="∪︀",_R="↷",kR="⤼",TR="⋞",CR="⋟",ER="⋎",AR="⋏",LR="¤",MR="↶",$R="↷",NR="⋎",OR="⋏",IR="∲",PR="∱",RR="⌭",zR="†",DR="‡",FR="ℸ",HR="↓",BR="↡",WR="⇓",qR="‐",UR="⫤",jR="⊣",VR="⤏",GR="˝",KR="Ď",XR="ď",YR="Д",JR="д",ZR="‡",QR="⇊",ez="ⅅ",tz="ⅆ",nz="⤑",rz="⩷",iz="°",oz="∇",sz="Δ",lz="δ",az="⦱",cz="⥿",uz="𝔇",fz="𝔡",dz="⥥",hz="⇃",pz="⇂",gz="´",vz="˙",mz="˝",yz="`",bz="˜",wz="⋄",xz="⋄",Sz="⋄",_z="♦",kz="♦",Tz="¨",Cz="ⅆ",Ez="ϝ",Az="⋲",Lz="÷",Mz="÷",$z="⋇",Nz="⋇",Oz="Ђ",Iz="ђ",Pz="⌞",Rz="⌍",zz="$",Dz="𝔻",Fz="𝕕",Hz="¨",Bz="˙",Wz="⃜",qz="≐",Uz="≑",jz="≐",Vz="∸",Gz="∔",Kz="⊡",Xz="⌆",Yz="∯",Jz="¨",Zz="⇓",Qz="⇐",eD="⇔",tD="⫤",nD="⟸",rD="⟺",iD="⟹",oD="⇒",sD="⊨",lD="⇑",aD="⇕",cD="∥",uD="⤓",fD="↓",dD="↓",hD="⇓",pD="⇵",gD="̑",vD="⇊",mD="⇃",yD="⇂",bD="⥐",wD="⥞",xD="⥖",SD="↽",_D="⥟",kD="⥗",TD="⇁",CD="↧",ED="⊤",AD="⤐",LD="⌟",MD="⌌",$D="𝒟",ND="𝒹",OD="Ѕ",ID="ѕ",PD="⧶",RD="Đ",zD="đ",DD="⋱",FD="▿",HD="▾",BD="⇵",WD="⥯",qD="⦦",UD="Џ",jD="џ",VD="⟿",GD="É",KD="é",XD="⩮",YD="Ě",JD="ě",ZD="Ê",QD="ê",eF="≖",tF="≕",nF="Э",rF="э",iF="⩷",oF="Ė",sF="ė",lF="≑",aF="ⅇ",cF="≒",uF="𝔈",fF="𝔢",dF="⪚",hF="È",pF="è",gF="⪖",vF="⪘",mF="⪙",yF="∈",bF="⏧",wF="ℓ",xF="⪕",SF="⪗",_F="Ē",kF="ē",TF="∅",CF="∅",EF="◻",AF="∅",LF="▫",MF=" ",$F=" ",NF=" ",OF="Ŋ",IF="ŋ",PF=" ",RF="Ę",zF="ę",DF="𝔼",FF="𝕖",HF="⋕",BF="⧣",WF="⩱",qF="ε",UF="Ε",jF="ε",VF="ϵ",GF="≖",KF="≕",XF="≂",YF="⪖",JF="⪕",ZF="⩵",QF="=",eH="≂",tH="≟",nH="⇌",rH="≡",iH="⩸",oH="⧥",sH="⥱",lH="≓",aH="ℯ",cH="ℰ",uH="≐",fH="⩳",dH="≂",hH="Η",pH="η",gH="Ð",vH="ð",mH="Ë",yH="ë",bH="€",wH="!",xH="∃",SH="∃",_H="ℰ",kH="ⅇ",TH="ⅇ",CH="≒",EH="Ф",AH="ф",LH="♀",MH="ffi",$H="ff",NH="ffl",OH="𝔉",IH="𝔣",PH="fi",RH="◼",zH="▪",DH="fj",FH="♭",HH="fl",BH="▱",WH="ƒ",qH="𝔽",UH="𝕗",jH="∀",VH="∀",GH="⋔",KH="⫙",XH="ℱ",YH="⨍",JH="½",ZH="⅓",QH="¼",e3="⅕",t3="⅙",n3="⅛",r3="⅔",i3="⅖",o3="¾",s3="⅗",l3="⅜",a3="⅘",c3="⅚",u3="⅝",f3="⅞",d3="⁄",h3="⌢",p3="𝒻",g3="ℱ",v3="ǵ",m3="Γ",y3="γ",b3="Ϝ",w3="ϝ",x3="⪆",S3="Ğ",_3="ğ",k3="Ģ",T3="Ĝ",C3="ĝ",E3="Г",A3="г",L3="Ġ",M3="ġ",$3="≥",N3="≧",O3="⪌",I3="⋛",P3="≥",R3="≧",z3="⩾",D3="⪩",F3="⩾",H3="⪀",B3="⪂",W3="⪄",q3="⋛︀",U3="⪔",j3="𝔊",V3="𝔤",G3="≫",K3="⋙",X3="⋙",Y3="ℷ",J3="Ѓ",Z3="ѓ",Q3="⪥",eB="≷",tB="⪒",nB="⪤",rB="⪊",iB="⪊",oB="⪈",sB="≩",lB="⪈",aB="≩",cB="⋧",uB="𝔾",fB="𝕘",dB="`",hB="≥",pB="⋛",gB="≧",vB="⪢",mB="≷",yB="⩾",bB="≳",wB="𝒢",xB="ℊ",SB="≳",_B="⪎",kB="⪐",TB="⪧",CB="⩺",EB=">",AB=">",LB="≫",MB="⋗",$B="⦕",NB="⩼",OB="⪆",IB="⥸",PB="⋗",RB="⋛",zB="⪌",DB="≷",FB="≳",HB="≩︀",BB="≩︀",WB="ˇ",qB=" ",UB="½",jB="ℋ",VB="Ъ",GB="ъ",KB="⥈",XB="↔",YB="⇔",JB="↭",ZB="^",QB="ℏ",e5="Ĥ",t5="ĥ",n5="♥",r5="♥",i5="…",o5="⊹",s5="𝔥",l5="ℌ",a5="ℋ",c5="⤥",u5="⤦",f5="⇿",d5="∻",h5="↩",p5="↪",g5="𝕙",v5="ℍ",m5="―",y5="─",b5="𝒽",w5="ℋ",x5="ℏ",S5="Ħ",_5="ħ",k5="≎",T5="≏",C5="⁃",E5="‐",A5="Í",L5="í",M5="",$5="Î",N5="î",O5="И",I5="и",P5="İ",R5="Е",z5="е",D5="¡",F5="⇔",H5="𝔦",B5="ℑ",W5="Ì",q5="ì",U5="ⅈ",j5="⨌",V5="∭",G5="⧜",K5="℩",X5="IJ",Y5="ij",J5="Ī",Z5="ī",Q5="ℑ",e4="ⅈ",t4="ℐ",n4="ℑ",r4="ı",i4="ℑ",o4="⊷",s4="Ƶ",l4="⇒",a4="℅",c4="∞",u4="⧝",f4="ı",d4="⊺",h4="∫",p4="∬",g4="ℤ",v4="∫",m4="⊺",y4="⋂",b4="⨗",w4="⨼",x4="",S4="",_4="Ё",k4="ё",T4="Į",C4="į",E4="𝕀",A4="𝕚",L4="Ι",M4="ι",$4="⨼",N4="¿",O4="𝒾",I4="ℐ",P4="∈",R4="⋵",z4="⋹",D4="⋴",F4="⋳",H4="∈",B4="",W4="Ĩ",q4="ĩ",U4="І",j4="і",V4="Ï",G4="ï",K4="Ĵ",X4="ĵ",Y4="Й",J4="й",Z4="𝔍",Q4="𝔧",eW="ȷ",tW="𝕁",nW="𝕛",rW="𝒥",iW="𝒿",oW="Ј",sW="ј",lW="Є",aW="є",cW="Κ",uW="κ",fW="ϰ",dW="Ķ",hW="ķ",pW="К",gW="к",vW="𝔎",mW="𝔨",yW="ĸ",bW="Х",wW="х",xW="Ќ",SW="ќ",_W="𝕂",kW="𝕜",TW="𝒦",CW="𝓀",EW="⇚",AW="Ĺ",LW="ĺ",MW="⦴",$W="ℒ",NW="Λ",OW="λ",IW="⟨",PW="⟪",RW="⦑",zW="⟨",DW="⪅",FW="ℒ",HW="«",BW="⇤",WW="⤟",qW="←",UW="↞",jW="⇐",VW="⤝",GW="↩",KW="↫",XW="⤹",YW="⥳",JW="↢",ZW="⤙",QW="⤛",e8="⪫",t8="⪭",n8="⪭︀",r8="⤌",i8="⤎",o8="❲",s8="{",l8="[",a8="⦋",c8="⦏",u8="⦍",f8="Ľ",d8="ľ",h8="Ļ",p8="ļ",g8="⌈",v8="{",m8="Л",y8="л",b8="⤶",w8="“",x8="„",S8="⥧",_8="⥋",k8="↲",T8="≤",C8="≦",E8="⟨",A8="⇤",L8="←",M8="←",$8="⇐",N8="⇆",O8="↢",I8="⌈",P8="⟦",R8="⥡",z8="⥙",D8="⇃",F8="⌊",H8="↽",B8="↼",W8="⇇",q8="↔",U8="↔",j8="⇔",V8="⇆",G8="⇋",K8="↭",X8="⥎",Y8="↤",J8="⊣",Z8="⥚",Q8="⋋",eq="⧏",tq="⊲",nq="⊴",rq="⥑",iq="⥠",oq="⥘",sq="↿",lq="⥒",aq="↼",cq="⪋",uq="⋚",fq="≤",dq="≦",hq="⩽",pq="⪨",gq="⩽",vq="⩿",mq="⪁",yq="⪃",bq="⋚︀",wq="⪓",xq="⪅",Sq="⋖",_q="⋚",kq="⪋",Tq="⋚",Cq="≦",Eq="≶",Aq="≶",Lq="⪡",Mq="≲",$q="⩽",Nq="≲",Oq="⥼",Iq="⌊",Pq="𝔏",Rq="𝔩",zq="≶",Dq="⪑",Fq="⥢",Hq="↽",Bq="↼",Wq="⥪",qq="▄",Uq="Љ",jq="љ",Vq="⇇",Gq="≪",Kq="⋘",Xq="⌞",Yq="⇚",Jq="⥫",Zq="◺",Qq="Ŀ",e6="ŀ",t6="⎰",n6="⎰",r6="⪉",i6="⪉",o6="⪇",s6="≨",l6="⪇",a6="≨",c6="⋦",u6="⟬",f6="⇽",d6="⟦",h6="⟵",p6="⟵",g6="⟸",v6="⟷",m6="⟷",y6="⟺",b6="⟼",w6="⟶",x6="⟶",S6="⟹",_6="↫",k6="↬",T6="⦅",C6="𝕃",E6="𝕝",A6="⨭",L6="⨴",M6="∗",$6="_",N6="↙",O6="↘",I6="◊",P6="◊",R6="⧫",z6="(",D6="⦓",F6="⇆",H6="⌟",B6="⇋",W6="⥭",q6="",U6="⊿",j6="‹",V6="𝓁",G6="ℒ",K6="↰",X6="↰",Y6="≲",J6="⪍",Z6="⪏",Q6="[",eU="‘",tU="‚",nU="Ł",rU="ł",iU="⪦",oU="⩹",sU="<",lU="<",aU="≪",cU="⋖",uU="⋋",fU="⋉",dU="⥶",hU="⩻",pU="◃",gU="⊴",vU="◂",mU="⦖",yU="⥊",bU="⥦",wU="≨︀",xU="≨︀",SU="¯",_U="♂",kU="✠",TU="✠",CU="↦",EU="↦",AU="↧",LU="↤",MU="↥",$U="▮",NU="⨩",OU="М",IU="м",PU="—",RU="∺",zU="∡",DU=" ",FU="ℳ",HU="𝔐",BU="𝔪",WU="℧",qU="µ",UU="*",jU="⫰",VU="∣",GU="·",KU="⊟",XU="−",YU="∸",JU="⨪",ZU="∓",QU="⫛",ej="…",tj="∓",nj="⊧",rj="𝕄",ij="𝕞",oj="∓",sj="𝓂",lj="ℳ",aj="∾",cj="Μ",uj="μ",fj="⊸",dj="⊸",hj="∇",pj="Ń",gj="ń",vj="∠⃒",mj="≉",yj="⩰̸",bj="≋̸",wj="ʼn",xj="≉",Sj="♮",_j="ℕ",kj="♮",Tj=" ",Cj="≎̸",Ej="≏̸",Aj="⩃",Lj="Ň",Mj="ň",$j="Ņ",Nj="ņ",Oj="≇",Ij="⩭̸",Pj="⩂",Rj="Н",zj="н",Dj="–",Fj="⤤",Hj="↗",Bj="⇗",Wj="↗",qj="≠",Uj="≐̸",jj="",Vj="",Gj="",Kj="",Xj="≢",Yj="⤨",Jj="≂̸",Zj="≫",Qj="≪",e9=`
|
|
25
|
-
`,t9="∄",n9="∄",r9="𝔑",i9="𝔫",o9="≧̸",s9="≱",l9="≱",a9="≧̸",c9="⩾̸",u9="⩾̸",f9="⋙̸",d9="≵",h9="≫⃒",p9="≯",g9="≯",v9="≫̸",m9="↮",y9="⇎",b9="⫲",w9="∋",x9="⋼",S9="⋺",_9="∋",k9="Њ",T9="њ",C9="↚",E9="⇍",A9="‥",L9="≦̸",M9="≰",$9="↚",N9="⇍",O9="↮",I9="⇎",P9="≰",R9="≦̸",z9="⩽̸",D9="⩽̸",F9="≮",H9="⋘̸",B9="≴",W9="≪⃒",q9="≮",U9="⋪",j9="⋬",V9="≪̸",G9="∤",K9="",X9=" ",Y9="𝕟",J9="ℕ",Z9="⫬",Q9="¬",eV="≢",tV="≭",nV="∦",rV="∉",iV="≠",oV="≂̸",sV="∄",lV="≯",aV="≱",cV="≧̸",uV="≫̸",fV="≹",dV="⩾̸",hV="≵",pV="≎̸",gV="≏̸",vV="∉",mV="⋵̸",yV="⋹̸",bV="∉",wV="⋷",xV="⋶",SV="⧏̸",_V="⋪",kV="⋬",TV="≮",CV="≰",EV="≸",AV="≪̸",LV="⩽̸",MV="≴",$V="⪢̸",NV="⪡̸",OV="∌",IV="∌",PV="⋾",RV="⋽",zV="⊀",DV="⪯̸",FV="⋠",HV="∌",BV="⧐̸",WV="⋫",qV="⋭",UV="⊏̸",jV="⋢",VV="⊐̸",GV="⋣",KV="⊂⃒",XV="⊈",YV="⊁",JV="⪰̸",ZV="⋡",QV="≿̸",eG="⊃⃒",tG="⊉",nG="≁",rG="≄",iG="≇",oG="≉",sG="∤",lG="∦",aG="∦",cG="⫽⃥",uG="∂̸",fG="⨔",dG="⊀",hG="⋠",pG="⊀",gG="⪯̸",vG="⪯̸",mG="⤳̸",yG="↛",bG="⇏",wG="↝̸",xG="↛",SG="⇏",_G="⋫",kG="⋭",TG="⊁",CG="⋡",EG="⪰̸",AG="𝒩",LG="𝓃",MG="∤",$G="∦",NG="≁",OG="≄",IG="≄",PG="∤",RG="∦",zG="⋢",DG="⋣",FG="⊄",HG="⫅̸",BG="⊈",WG="⊂⃒",qG="⊈",UG="⫅̸",jG="⊁",VG="⪰̸",GG="⊅",KG="⫆̸",XG="⊉",YG="⊃⃒",JG="⊉",ZG="⫆̸",QG="≹",e7="Ñ",t7="ñ",n7="≸",r7="⋪",i7="⋬",o7="⋫",s7="⋭",l7="Ν",a7="ν",c7="#",u7="№",f7=" ",d7="≍⃒",h7="⊬",p7="⊭",g7="⊮",v7="⊯",m7="≥⃒",y7=">⃒",b7="⤄",w7="⧞",x7="⤂",S7="≤⃒",_7="<⃒",k7="⊴⃒",T7="⤃",C7="⊵⃒",E7="∼⃒",A7="⤣",L7="↖",M7="⇖",$7="↖",N7="⤧",O7="Ó",I7="ó",P7="⊛",R7="Ô",z7="ô",D7="⊚",F7="О",H7="о",B7="⊝",W7="Ő",q7="ő",U7="⨸",j7="⊙",V7="⦼",G7="Œ",K7="œ",X7="⦿",Y7="𝔒",J7="𝔬",Z7="˛",Q7="Ò",eK="ò",tK="⧁",nK="⦵",rK="Ω",iK="∮",oK="↺",sK="⦾",lK="⦻",aK="‾",cK="⧀",uK="Ō",fK="ō",dK="Ω",hK="ω",pK="Ο",gK="ο",vK="⦶",mK="⊖",yK="𝕆",bK="𝕠",wK="⦷",xK="“",SK="‘",_K="⦹",kK="⊕",TK="↻",CK="⩔",EK="∨",AK="⩝",LK="ℴ",MK="ℴ",$K="ª",NK="º",OK="⊶",IK="⩖",PK="⩗",RK="⩛",zK="Ⓢ",DK="𝒪",FK="ℴ",HK="Ø",BK="ø",WK="⊘",qK="Õ",UK="õ",jK="⨶",VK="⨷",GK="⊗",KK="Ö",XK="ö",YK="⌽",JK="‾",ZK="⏞",QK="⎴",eX="⏜",tX="¶",nX="∥",rX="∥",iX="⫳",oX="⫽",sX="∂",lX="∂",aX="П",cX="п",uX="%",fX=".",dX="‰",hX="⊥",pX="‱",gX="𝔓",vX="𝔭",mX="Φ",yX="φ",bX="ϕ",wX="ℳ",xX="☎",SX="Π",_X="π",kX="⋔",TX="ϖ",CX="ℏ",EX="ℎ",AX="ℏ",LX="⨣",MX="⊞",$X="⨢",NX="+",OX="∔",IX="⨥",PX="⩲",RX="±",zX="±",DX="⨦",FX="⨧",HX="±",BX="ℌ",WX="⨕",qX="𝕡",UX="ℙ",jX="£",VX="⪷",GX="⪻",KX="≺",XX="≼",YX="⪷",JX="≺",ZX="≼",QX="≺",eY="⪯",tY="≼",nY="≾",rY="⪯",iY="⪹",oY="⪵",sY="⋨",lY="⪯",aY="⪳",cY="≾",uY="′",fY="″",dY="ℙ",hY="⪹",pY="⪵",gY="⋨",vY="∏",mY="∏",yY="⌮",bY="⌒",wY="⌓",xY="∝",SY="∝",_Y="∷",kY="∝",TY="≾",CY="⊰",EY="𝒫",AY="𝓅",LY="Ψ",MY="ψ",$Y=" ",NY="𝔔",OY="𝔮",IY="⨌",PY="𝕢",RY="ℚ",zY="⁗",DY="𝒬",FY="𝓆",HY="ℍ",BY="⨖",WY="?",qY="≟",UY='"',jY='"',VY="⇛",GY="∽̱",KY="Ŕ",XY="ŕ",YY="√",JY="⦳",ZY="⟩",QY="⟫",eJ="⦒",tJ="⦥",nJ="⟩",rJ="»",iJ="⥵",oJ="⇥",sJ="⤠",lJ="⤳",aJ="→",cJ="↠",uJ="⇒",fJ="⤞",dJ="↪",hJ="↬",pJ="⥅",gJ="⥴",vJ="⤖",mJ="↣",yJ="↝",bJ="⤚",wJ="⤜",xJ="∶",SJ="ℚ",_J="⤍",kJ="⤏",TJ="⤐",CJ="❳",EJ="}",AJ="]",LJ="⦌",MJ="⦎",$J="⦐",NJ="Ř",OJ="ř",IJ="Ŗ",PJ="ŗ",RJ="⌉",zJ="}",DJ="Р",FJ="р",HJ="⤷",BJ="⥩",WJ="”",qJ="”",UJ="↳",jJ="ℜ",VJ="ℛ",GJ="ℜ",KJ="ℝ",XJ="ℜ",YJ="▭",JJ="®",ZJ="®",QJ="∋",eZ="⇋",tZ="⥯",nZ="⥽",rZ="⌋",iZ="𝔯",oZ="ℜ",sZ="⥤",lZ="⇁",aZ="⇀",cZ="⥬",uZ="Ρ",fZ="ρ",dZ="ϱ",hZ="⟩",pZ="⇥",gZ="→",vZ="→",mZ="⇒",yZ="⇄",bZ="↣",wZ="⌉",xZ="⟧",SZ="⥝",_Z="⥕",kZ="⇂",TZ="⌋",CZ="⇁",EZ="⇀",AZ="⇄",LZ="⇌",MZ="⇉",$Z="↝",NZ="↦",OZ="⊢",IZ="⥛",PZ="⋌",RZ="⧐",zZ="⊳",DZ="⊵",FZ="⥏",HZ="⥜",BZ="⥔",WZ="↾",qZ="⥓",UZ="⇀",jZ="˚",VZ="≓",GZ="⇄",KZ="⇌",XZ="",YZ="⎱",JZ="⎱",ZZ="⫮",QZ="⟭",eQ="⇾",tQ="⟧",nQ="⦆",rQ="𝕣",iQ="ℝ",oQ="⨮",sQ="⨵",lQ="⥰",aQ=")",cQ="⦔",uQ="⨒",fQ="⇉",dQ="⇛",hQ="›",pQ="𝓇",gQ="ℛ",vQ="↱",mQ="↱",yQ="]",bQ="’",wQ="’",xQ="⋌",SQ="⋊",_Q="▹",kQ="⊵",TQ="▸",CQ="⧎",EQ="⧴",AQ="⥨",LQ="℞",MQ="Ś",$Q="ś",NQ="‚",OQ="⪸",IQ="Š",PQ="š",RQ="⪼",zQ="≻",DQ="≽",FQ="⪰",HQ="⪴",BQ="Ş",WQ="ş",qQ="Ŝ",UQ="ŝ",jQ="⪺",VQ="⪶",GQ="⋩",KQ="⨓",XQ="≿",YQ="С",JQ="с",ZQ="⊡",QQ="⋅",eee="⩦",tee="⤥",nee="↘",ree="⇘",iee="↘",oee="§",see=";",lee="⤩",aee="∖",cee="∖",uee="✶",fee="𝔖",dee="𝔰",hee="⌢",pee="♯",gee="Щ",vee="щ",mee="Ш",yee="ш",bee="↓",wee="←",xee="∣",See="∥",_ee="→",kee="↑",Tee="",Cee="Σ",Eee="σ",Aee="ς",Lee="ς",Mee="∼",$ee="⩪",Nee="≃",Oee="≃",Iee="⪞",Pee="⪠",Ree="⪝",zee="⪟",Dee="≆",Fee="⨤",Hee="⥲",Bee="←",Wee="∘",qee="∖",Uee="⨳",jee="⧤",Vee="∣",Gee="⌣",Kee="⪪",Xee="⪬",Yee="⪬︀",Jee="Ь",Zee="ь",Qee="⌿",ete="⧄",tte="/",nte="𝕊",rte="𝕤",ite="♠",ote="♠",ste="∥",lte="⊓",ate="⊓︀",cte="⊔",ute="⊔︀",fte="√",dte="⊏",hte="⊑",pte="⊏",gte="⊑",vte="⊐",mte="⊒",yte="⊐",bte="⊒",wte="□",xte="□",Ste="⊓",_te="⊏",kte="⊑",Tte="⊐",Cte="⊒",Ete="⊔",Ate="▪",Lte="□",Mte="▪",$te="→",Nte="𝒮",Ote="𝓈",Ite="∖",Pte="⌣",Rte="⋆",zte="⋆",Dte="☆",Fte="★",Hte="ϵ",Bte="ϕ",Wte="¯",qte="⊂",Ute="⋐",jte="⪽",Vte="⫅",Gte="⊆",Kte="⫃",Xte="⫁",Yte="⫋",Jte="⊊",Zte="⪿",Qte="⥹",ene="⊂",tne="⋐",nne="⊆",rne="⫅",ine="⊆",one="⊊",sne="⫋",lne="⫇",ane="⫕",cne="⫓",une="⪸",fne="≻",dne="≽",hne="≻",pne="⪰",gne="≽",vne="≿",mne="⪰",yne="⪺",bne="⪶",wne="⋩",xne="≿",Sne="∋",_ne="∑",kne="∑",Tne="♪",Cne="¹",Ene="²",Ane="³",Lne="⊃",Mne="⋑",$ne="⪾",Nne="⫘",One="⫆",Ine="⊇",Pne="⫄",Rne="⊃",zne="⊇",Dne="⟉",Fne="⫗",Hne="⥻",Bne="⫂",Wne="⫌",qne="⊋",Une="⫀",jne="⊃",Vne="⋑",Gne="⊇",Kne="⫆",Xne="⊋",Yne="⫌",Jne="⫈",Zne="⫔",Qne="⫖",ere="⤦",tre="↙",nre="⇙",rre="↙",ire="⤪",ore="ß",sre=" ",lre="⌖",are="Τ",cre="τ",ure="⎴",fre="Ť",dre="ť",hre="Ţ",pre="ţ",gre="Т",vre="т",mre="⃛",yre="⌕",bre="𝔗",wre="𝔱",xre="∴",Sre="∴",_re="∴",kre="Θ",Tre="θ",Cre="ϑ",Ere="ϑ",Are="≈",Lre="∼",Mre=" ",$re=" ",Nre=" ",Ore="≈",Ire="∼",Pre="Þ",Rre="þ",zre="˜",Dre="∼",Fre="≃",Hre="≅",Bre="≈",Wre="⨱",qre="⊠",Ure="×",jre="⨰",Vre="∭",Gre="⤨",Kre="⌶",Xre="⫱",Yre="⊤",Jre="𝕋",Zre="𝕥",Qre="⫚",eie="⤩",tie="‴",nie="™",rie="™",iie="▵",oie="▿",sie="◃",lie="⊴",aie="≜",cie="▹",uie="⊵",fie="◬",die="≜",hie="⨺",pie="⃛",gie="⨹",vie="⧍",mie="⨻",yie="⏢",bie="𝒯",wie="𝓉",xie="Ц",Sie="ц",_ie="Ћ",kie="ћ",Tie="Ŧ",Cie="ŧ",Eie="≬",Aie="↞",Lie="↠",Mie="Ú",$ie="ú",Nie="↑",Oie="↟",Iie="⇑",Pie="⥉",Rie="Ў",zie="ў",Die="Ŭ",Fie="ŭ",Hie="Û",Bie="û",Wie="У",qie="у",Uie="⇅",jie="Ű",Vie="ű",Gie="⥮",Kie="⥾",Xie="𝔘",Yie="𝔲",Jie="Ù",Zie="ù",Qie="⥣",eoe="↿",toe="↾",noe="▀",roe="⌜",ioe="⌜",ooe="⌏",soe="◸",loe="Ū",aoe="ū",coe="¨",uoe="_",foe="⏟",doe="⎵",hoe="⏝",poe="⋃",goe="⊎",voe="Ų",moe="ų",yoe="𝕌",boe="𝕦",woe="⤒",xoe="↑",Soe="↑",_oe="⇑",koe="⇅",Toe="↕",Coe="↕",Eoe="⇕",Aoe="⥮",Loe="↿",Moe="↾",$oe="⊎",Noe="↖",Ooe="↗",Ioe="υ",Poe="ϒ",Roe="ϒ",zoe="Υ",Doe="υ",Foe="↥",Hoe="⊥",Boe="⇈",Woe="⌝",qoe="⌝",Uoe="⌎",joe="Ů",Voe="ů",Goe="◹",Koe="𝒰",Xoe="𝓊",Yoe="⋰",Joe="Ũ",Zoe="ũ",Qoe="▵",ese="▴",tse="⇈",nse="Ü",rse="ü",ise="⦧",ose="⦜",sse="ϵ",lse="ϰ",ase="∅",cse="ϕ",use="ϖ",fse="∝",dse="↕",hse="⇕",pse="ϱ",gse="ς",vse="⊊︀",mse="⫋︀",yse="⊋︀",bse="⫌︀",wse="ϑ",xse="⊲",Sse="⊳",_se="⫨",kse="⫫",Tse="⫩",Cse="В",Ese="в",Ase="⊢",Lse="⊨",Mse="⊩",$se="⊫",Nse="⫦",Ose="⊻",Ise="∨",Pse="⋁",Rse="≚",zse="⋮",Dse="|",Fse="‖",Hse="|",Bse="‖",Wse="∣",qse="|",Use="❘",jse="≀",Vse=" ",Gse="𝔙",Kse="𝔳",Xse="⊲",Yse="⊂⃒",Jse="⊃⃒",Zse="𝕍",Qse="𝕧",ele="∝",tle="⊳",nle="𝒱",rle="𝓋",ile="⫋︀",ole="⊊︀",sle="⫌︀",lle="⊋︀",ale="⊪",cle="⦚",ule="Ŵ",fle="ŵ",dle="⩟",hle="∧",ple="⋀",gle="≙",vle="℘",mle="𝔚",yle="𝔴",ble="𝕎",wle="𝕨",xle="℘",Sle="≀",_le="≀",kle="𝒲",Tle="𝓌",Cle="⋂",Ele="◯",Ale="⋃",Lle="▽",Mle="𝔛",$le="𝔵",Nle="⟷",Ole="⟺",Ile="Ξ",Ple="ξ",Rle="⟵",zle="⟸",Dle="⟼",Fle="⋻",Hle="⨀",Ble="𝕏",Wle="𝕩",qle="⨁",Ule="⨂",jle="⟶",Vle="⟹",Gle="𝒳",Kle="𝓍",Xle="⨆",Yle="⨄",Jle="△",Zle="⋁",Qle="⋀",eae="Ý",tae="ý",nae="Я",rae="я",iae="Ŷ",oae="ŷ",sae="Ы",lae="ы",aae="¥",cae="𝔜",uae="𝔶",fae="Ї",dae="ї",hae="𝕐",pae="𝕪",gae="𝒴",vae="𝓎",mae="Ю",yae="ю",bae="ÿ",wae="Ÿ",xae="Ź",Sae="ź",_ae="Ž",kae="ž",Tae="З",Cae="з",Eae="Ż",Aae="ż",Lae="ℨ",Mae="",$ae="Ζ",Nae="ζ",Oae="𝔷",Iae="ℨ",Pae="Ж",Rae="ж",zae="⇝",Dae="𝕫",Fae="ℤ",Hae="𝒵",Bae="𝓏",Wae="",qae="",B1={Aacute:E$,aacute:A$,Abreve:L$,abreve:M$,ac:$$,acd:N$,acE:O$,Acirc:I$,acirc:P$,acute:R$,Acy:z$,acy:D$,AElig:F$,aelig:H$,af:B$,Afr:W$,afr:q$,Agrave:U$,agrave:j$,alefsym:V$,aleph:G$,Alpha:K$,alpha:X$,Amacr:Y$,amacr:J$,amalg:Z$,amp:Q$,AMP:eN,andand:tN,And:nN,and:rN,andd:iN,andslope:oN,andv:sN,ang:lN,ange:aN,angle:cN,angmsdaa:uN,angmsdab:fN,angmsdac:dN,angmsdad:hN,angmsdae:pN,angmsdaf:gN,angmsdag:vN,angmsdah:mN,angmsd:yN,angrt:bN,angrtvb:wN,angrtvbd:xN,angsph:SN,angst:_N,angzarr:kN,Aogon:TN,aogon:CN,Aopf:EN,aopf:AN,apacir:LN,ap:MN,apE:$N,ape:NN,apid:ON,apos:IN,ApplyFunction:PN,approx:RN,approxeq:zN,Aring:DN,aring:FN,Ascr:HN,ascr:BN,Assign:WN,ast:qN,asymp:UN,asympeq:jN,Atilde:VN,atilde:GN,Auml:KN,auml:XN,awconint:YN,awint:JN,backcong:ZN,backepsilon:QN,backprime:eO,backsim:tO,backsimeq:nO,Backslash:rO,Barv:iO,barvee:oO,barwed:sO,Barwed:lO,barwedge:aO,bbrk:cO,bbrktbrk:uO,bcong:fO,Bcy:dO,bcy:hO,bdquo:pO,becaus:gO,because:vO,Because:mO,bemptyv:yO,bepsi:bO,bernou:wO,Bernoullis:xO,Beta:SO,beta:_O,beth:kO,between:TO,Bfr:CO,bfr:EO,bigcap:AO,bigcirc:LO,bigcup:MO,bigodot:$O,bigoplus:NO,bigotimes:OO,bigsqcup:IO,bigstar:PO,bigtriangledown:RO,bigtriangleup:zO,biguplus:DO,bigvee:FO,bigwedge:HO,bkarow:BO,blacklozenge:WO,blacksquare:qO,blacktriangle:UO,blacktriangledown:jO,blacktriangleleft:VO,blacktriangleright:GO,blank:KO,blk12:XO,blk14:YO,blk34:JO,block:ZO,bne:QO,bnequiv:eI,bNot:tI,bnot:nI,Bopf:rI,bopf:iI,bot:oI,bottom:sI,bowtie:lI,boxbox:aI,boxdl:cI,boxdL:uI,boxDl:fI,boxDL:dI,boxdr:hI,boxdR:pI,boxDr:gI,boxDR:vI,boxh:mI,boxH:yI,boxhd:bI,boxHd:wI,boxhD:xI,boxHD:SI,boxhu:_I,boxHu:kI,boxhU:TI,boxHU:CI,boxminus:EI,boxplus:AI,boxtimes:LI,boxul:MI,boxuL:$I,boxUl:NI,boxUL:OI,boxur:II,boxuR:PI,boxUr:RI,boxUR:zI,boxv:DI,boxV:FI,boxvh:HI,boxvH:BI,boxVh:WI,boxVH:qI,boxvl:UI,boxvL:jI,boxVl:VI,boxVL:GI,boxvr:KI,boxvR:XI,boxVr:YI,boxVR:JI,bprime:ZI,breve:QI,Breve:eP,brvbar:tP,bscr:nP,Bscr:rP,bsemi:iP,bsim:oP,bsime:sP,bsolb:lP,bsol:aP,bsolhsub:cP,bull:uP,bullet:fP,bump:dP,bumpE:hP,bumpe:pP,Bumpeq:gP,bumpeq:vP,Cacute:mP,cacute:yP,capand:bP,capbrcup:wP,capcap:xP,cap:SP,Cap:_P,capcup:kP,capdot:TP,CapitalDifferentialD:CP,caps:EP,caret:AP,caron:LP,Cayleys:MP,ccaps:$P,Ccaron:NP,ccaron:OP,Ccedil:IP,ccedil:PP,Ccirc:RP,ccirc:zP,Cconint:DP,ccups:FP,ccupssm:HP,Cdot:BP,cdot:WP,cedil:qP,Cedilla:UP,cemptyv:jP,cent:VP,centerdot:GP,CenterDot:KP,cfr:XP,Cfr:YP,CHcy:JP,chcy:ZP,check:QP,checkmark:e2,Chi:t2,chi:n2,circ:r2,circeq:i2,circlearrowleft:o2,circlearrowright:s2,circledast:l2,circledcirc:a2,circleddash:c2,CircleDot:u2,circledR:f2,circledS:d2,CircleMinus:h2,CirclePlus:p2,CircleTimes:g2,cir:v2,cirE:m2,cire:y2,cirfnint:b2,cirmid:w2,cirscir:x2,ClockwiseContourIntegral:S2,CloseCurlyDoubleQuote:_2,CloseCurlyQuote:k2,clubs:T2,clubsuit:C2,colon:E2,Colon:A2,Colone:L2,colone:M2,coloneq:$2,comma:N2,commat:O2,comp:I2,compfn:P2,complement:R2,complexes:z2,cong:D2,congdot:F2,Congruent:H2,conint:B2,Conint:W2,ContourIntegral:q2,copf:U2,Copf:j2,coprod:V2,Coproduct:G2,copy:K2,COPY:X2,copysr:Y2,CounterClockwiseContourIntegral:J2,crarr:Z2,cross:Q2,Cross:eR,Cscr:tR,cscr:nR,csub:rR,csube:iR,csup:oR,csupe:sR,ctdot:lR,cudarrl:aR,cudarrr:cR,cuepr:uR,cuesc:fR,cularr:dR,cularrp:hR,cupbrcap:pR,cupcap:gR,CupCap:vR,cup:mR,Cup:yR,cupcup:bR,cupdot:wR,cupor:xR,cups:SR,curarr:_R,curarrm:kR,curlyeqprec:TR,curlyeqsucc:CR,curlyvee:ER,curlywedge:AR,curren:LR,curvearrowleft:MR,curvearrowright:$R,cuvee:NR,cuwed:OR,cwconint:IR,cwint:PR,cylcty:RR,dagger:zR,Dagger:DR,daleth:FR,darr:HR,Darr:BR,dArr:WR,dash:qR,Dashv:UR,dashv:jR,dbkarow:VR,dblac:GR,Dcaron:KR,dcaron:XR,Dcy:YR,dcy:JR,ddagger:ZR,ddarr:QR,DD:ez,dd:tz,DDotrahd:nz,ddotseq:rz,deg:iz,Del:oz,Delta:sz,delta:lz,demptyv:az,dfisht:cz,Dfr:uz,dfr:fz,dHar:dz,dharl:hz,dharr:pz,DiacriticalAcute:gz,DiacriticalDot:vz,DiacriticalDoubleAcute:mz,DiacriticalGrave:yz,DiacriticalTilde:bz,diam:wz,diamond:xz,Diamond:Sz,diamondsuit:_z,diams:kz,die:Tz,DifferentialD:Cz,digamma:Ez,disin:Az,div:Lz,divide:Mz,divideontimes:$z,divonx:Nz,DJcy:Oz,djcy:Iz,dlcorn:Pz,dlcrop:Rz,dollar:zz,Dopf:Dz,dopf:Fz,Dot:Hz,dot:Bz,DotDot:Wz,doteq:qz,doteqdot:Uz,DotEqual:jz,dotminus:Vz,dotplus:Gz,dotsquare:Kz,doublebarwedge:Xz,DoubleContourIntegral:Yz,DoubleDot:Jz,DoubleDownArrow:Zz,DoubleLeftArrow:Qz,DoubleLeftRightArrow:eD,DoubleLeftTee:tD,DoubleLongLeftArrow:nD,DoubleLongLeftRightArrow:rD,DoubleLongRightArrow:iD,DoubleRightArrow:oD,DoubleRightTee:sD,DoubleUpArrow:lD,DoubleUpDownArrow:aD,DoubleVerticalBar:cD,DownArrowBar:uD,downarrow:fD,DownArrow:dD,Downarrow:hD,DownArrowUpArrow:pD,DownBreve:gD,downdownarrows:vD,downharpoonleft:mD,downharpoonright:yD,DownLeftRightVector:bD,DownLeftTeeVector:wD,DownLeftVectorBar:xD,DownLeftVector:SD,DownRightTeeVector:_D,DownRightVectorBar:kD,DownRightVector:TD,DownTeeArrow:CD,DownTee:ED,drbkarow:AD,drcorn:LD,drcrop:MD,Dscr:$D,dscr:ND,DScy:OD,dscy:ID,dsol:PD,Dstrok:RD,dstrok:zD,dtdot:DD,dtri:FD,dtrif:HD,duarr:BD,duhar:WD,dwangle:qD,DZcy:UD,dzcy:jD,dzigrarr:VD,Eacute:GD,eacute:KD,easter:XD,Ecaron:YD,ecaron:JD,Ecirc:ZD,ecirc:QD,ecir:eF,ecolon:tF,Ecy:nF,ecy:rF,eDDot:iF,Edot:oF,edot:sF,eDot:lF,ee:aF,efDot:cF,Efr:uF,efr:fF,eg:dF,Egrave:hF,egrave:pF,egs:gF,egsdot:vF,el:mF,Element:yF,elinters:bF,ell:wF,els:xF,elsdot:SF,Emacr:_F,emacr:kF,empty:TF,emptyset:CF,EmptySmallSquare:EF,emptyv:AF,EmptyVerySmallSquare:LF,emsp13:MF,emsp14:$F,emsp:NF,ENG:OF,eng:IF,ensp:PF,Eogon:RF,eogon:zF,Eopf:DF,eopf:FF,epar:HF,eparsl:BF,eplus:WF,epsi:qF,Epsilon:UF,epsilon:jF,epsiv:VF,eqcirc:GF,eqcolon:KF,eqsim:XF,eqslantgtr:YF,eqslantless:JF,Equal:ZF,equals:QF,EqualTilde:eH,equest:tH,Equilibrium:nH,equiv:rH,equivDD:iH,eqvparsl:oH,erarr:sH,erDot:lH,escr:aH,Escr:cH,esdot:uH,Esim:fH,esim:dH,Eta:hH,eta:pH,ETH:gH,eth:vH,Euml:mH,euml:yH,euro:bH,excl:wH,exist:xH,Exists:SH,expectation:_H,exponentiale:kH,ExponentialE:TH,fallingdotseq:CH,Fcy:EH,fcy:AH,female:LH,ffilig:MH,fflig:$H,ffllig:NH,Ffr:OH,ffr:IH,filig:PH,FilledSmallSquare:RH,FilledVerySmallSquare:zH,fjlig:DH,flat:FH,fllig:HH,fltns:BH,fnof:WH,Fopf:qH,fopf:UH,forall:jH,ForAll:VH,fork:GH,forkv:KH,Fouriertrf:XH,fpartint:YH,frac12:JH,frac13:ZH,frac14:QH,frac15:e3,frac16:t3,frac18:n3,frac23:r3,frac25:i3,frac34:o3,frac35:s3,frac38:l3,frac45:a3,frac56:c3,frac58:u3,frac78:f3,frasl:d3,frown:h3,fscr:p3,Fscr:g3,gacute:v3,Gamma:m3,gamma:y3,Gammad:b3,gammad:w3,gap:x3,Gbreve:S3,gbreve:_3,Gcedil:k3,Gcirc:T3,gcirc:C3,Gcy:E3,gcy:A3,Gdot:L3,gdot:M3,ge:$3,gE:N3,gEl:O3,gel:I3,geq:P3,geqq:R3,geqslant:z3,gescc:D3,ges:F3,gesdot:H3,gesdoto:B3,gesdotol:W3,gesl:q3,gesles:U3,Gfr:j3,gfr:V3,gg:G3,Gg:K3,ggg:X3,gimel:Y3,GJcy:J3,gjcy:Z3,gla:Q3,gl:eB,glE:tB,glj:nB,gnap:rB,gnapprox:iB,gne:oB,gnE:sB,gneq:lB,gneqq:aB,gnsim:cB,Gopf:uB,gopf:fB,grave:dB,GreaterEqual:hB,GreaterEqualLess:pB,GreaterFullEqual:gB,GreaterGreater:vB,GreaterLess:mB,GreaterSlantEqual:yB,GreaterTilde:bB,Gscr:wB,gscr:xB,gsim:SB,gsime:_B,gsiml:kB,gtcc:TB,gtcir:CB,gt:EB,GT:AB,Gt:LB,gtdot:MB,gtlPar:$B,gtquest:NB,gtrapprox:OB,gtrarr:IB,gtrdot:PB,gtreqless:RB,gtreqqless:zB,gtrless:DB,gtrsim:FB,gvertneqq:HB,gvnE:BB,Hacek:WB,hairsp:qB,half:UB,hamilt:jB,HARDcy:VB,hardcy:GB,harrcir:KB,harr:XB,hArr:YB,harrw:JB,Hat:ZB,hbar:QB,Hcirc:e5,hcirc:t5,hearts:n5,heartsuit:r5,hellip:i5,hercon:o5,hfr:s5,Hfr:l5,HilbertSpace:a5,hksearow:c5,hkswarow:u5,hoarr:f5,homtht:d5,hookleftarrow:h5,hookrightarrow:p5,hopf:g5,Hopf:v5,horbar:m5,HorizontalLine:y5,hscr:b5,Hscr:w5,hslash:x5,Hstrok:S5,hstrok:_5,HumpDownHump:k5,HumpEqual:T5,hybull:C5,hyphen:E5,Iacute:A5,iacute:L5,ic:M5,Icirc:$5,icirc:N5,Icy:O5,icy:I5,Idot:P5,IEcy:R5,iecy:z5,iexcl:D5,iff:F5,ifr:H5,Ifr:B5,Igrave:W5,igrave:q5,ii:U5,iiiint:j5,iiint:V5,iinfin:G5,iiota:K5,IJlig:X5,ijlig:Y5,Imacr:J5,imacr:Z5,image:Q5,ImaginaryI:e4,imagline:t4,imagpart:n4,imath:r4,Im:i4,imof:o4,imped:s4,Implies:l4,incare:a4,in:"∈",infin:c4,infintie:u4,inodot:f4,intcal:d4,int:h4,Int:p4,integers:g4,Integral:v4,intercal:m4,Intersection:y4,intlarhk:b4,intprod:w4,InvisibleComma:x4,InvisibleTimes:S4,IOcy:_4,iocy:k4,Iogon:T4,iogon:C4,Iopf:E4,iopf:A4,Iota:L4,iota:M4,iprod:$4,iquest:N4,iscr:O4,Iscr:I4,isin:P4,isindot:R4,isinE:z4,isins:D4,isinsv:F4,isinv:H4,it:B4,Itilde:W4,itilde:q4,Iukcy:U4,iukcy:j4,Iuml:V4,iuml:G4,Jcirc:K4,jcirc:X4,Jcy:Y4,jcy:J4,Jfr:Z4,jfr:Q4,jmath:eW,Jopf:tW,jopf:nW,Jscr:rW,jscr:iW,Jsercy:oW,jsercy:sW,Jukcy:lW,jukcy:aW,Kappa:cW,kappa:uW,kappav:fW,Kcedil:dW,kcedil:hW,Kcy:pW,kcy:gW,Kfr:vW,kfr:mW,kgreen:yW,KHcy:bW,khcy:wW,KJcy:xW,kjcy:SW,Kopf:_W,kopf:kW,Kscr:TW,kscr:CW,lAarr:EW,Lacute:AW,lacute:LW,laemptyv:MW,lagran:$W,Lambda:NW,lambda:OW,lang:IW,Lang:PW,langd:RW,langle:zW,lap:DW,Laplacetrf:FW,laquo:HW,larrb:BW,larrbfs:WW,larr:qW,Larr:UW,lArr:jW,larrfs:VW,larrhk:GW,larrlp:KW,larrpl:XW,larrsim:YW,larrtl:JW,latail:ZW,lAtail:QW,lat:e8,late:t8,lates:n8,lbarr:r8,lBarr:i8,lbbrk:o8,lbrace:s8,lbrack:l8,lbrke:a8,lbrksld:c8,lbrkslu:u8,Lcaron:f8,lcaron:d8,Lcedil:h8,lcedil:p8,lceil:g8,lcub:v8,Lcy:m8,lcy:y8,ldca:b8,ldquo:w8,ldquor:x8,ldrdhar:S8,ldrushar:_8,ldsh:k8,le:T8,lE:C8,LeftAngleBracket:E8,LeftArrowBar:A8,leftarrow:L8,LeftArrow:M8,Leftarrow:$8,LeftArrowRightArrow:N8,leftarrowtail:O8,LeftCeiling:I8,LeftDoubleBracket:P8,LeftDownTeeVector:R8,LeftDownVectorBar:z8,LeftDownVector:D8,LeftFloor:F8,leftharpoondown:H8,leftharpoonup:B8,leftleftarrows:W8,leftrightarrow:q8,LeftRightArrow:U8,Leftrightarrow:j8,leftrightarrows:V8,leftrightharpoons:G8,leftrightsquigarrow:K8,LeftRightVector:X8,LeftTeeArrow:Y8,LeftTee:J8,LeftTeeVector:Z8,leftthreetimes:Q8,LeftTriangleBar:eq,LeftTriangle:tq,LeftTriangleEqual:nq,LeftUpDownVector:rq,LeftUpTeeVector:iq,LeftUpVectorBar:oq,LeftUpVector:sq,LeftVectorBar:lq,LeftVector:aq,lEg:cq,leg:uq,leq:fq,leqq:dq,leqslant:hq,lescc:pq,les:gq,lesdot:vq,lesdoto:mq,lesdotor:yq,lesg:bq,lesges:wq,lessapprox:xq,lessdot:Sq,lesseqgtr:_q,lesseqqgtr:kq,LessEqualGreater:Tq,LessFullEqual:Cq,LessGreater:Eq,lessgtr:Aq,LessLess:Lq,lesssim:Mq,LessSlantEqual:$q,LessTilde:Nq,lfisht:Oq,lfloor:Iq,Lfr:Pq,lfr:Rq,lg:zq,lgE:Dq,lHar:Fq,lhard:Hq,lharu:Bq,lharul:Wq,lhblk:qq,LJcy:Uq,ljcy:jq,llarr:Vq,ll:Gq,Ll:Kq,llcorner:Xq,Lleftarrow:Yq,llhard:Jq,lltri:Zq,Lmidot:Qq,lmidot:e6,lmoustache:t6,lmoust:n6,lnap:r6,lnapprox:i6,lne:o6,lnE:s6,lneq:l6,lneqq:a6,lnsim:c6,loang:u6,loarr:f6,lobrk:d6,longleftarrow:h6,LongLeftArrow:p6,Longleftarrow:g6,longleftrightarrow:v6,LongLeftRightArrow:m6,Longleftrightarrow:y6,longmapsto:b6,longrightarrow:w6,LongRightArrow:x6,Longrightarrow:S6,looparrowleft:_6,looparrowright:k6,lopar:T6,Lopf:C6,lopf:E6,loplus:A6,lotimes:L6,lowast:M6,lowbar:$6,LowerLeftArrow:N6,LowerRightArrow:O6,loz:I6,lozenge:P6,lozf:R6,lpar:z6,lparlt:D6,lrarr:F6,lrcorner:H6,lrhar:B6,lrhard:W6,lrm:q6,lrtri:U6,lsaquo:j6,lscr:V6,Lscr:G6,lsh:K6,Lsh:X6,lsim:Y6,lsime:J6,lsimg:Z6,lsqb:Q6,lsquo:eU,lsquor:tU,Lstrok:nU,lstrok:rU,ltcc:iU,ltcir:oU,lt:sU,LT:lU,Lt:aU,ltdot:cU,lthree:uU,ltimes:fU,ltlarr:dU,ltquest:hU,ltri:pU,ltrie:gU,ltrif:vU,ltrPar:mU,lurdshar:yU,luruhar:bU,lvertneqq:wU,lvnE:xU,macr:SU,male:_U,malt:kU,maltese:TU,Map:"⤅",map:CU,mapsto:EU,mapstodown:AU,mapstoleft:LU,mapstoup:MU,marker:$U,mcomma:NU,Mcy:OU,mcy:IU,mdash:PU,mDDot:RU,measuredangle:zU,MediumSpace:DU,Mellintrf:FU,Mfr:HU,mfr:BU,mho:WU,micro:qU,midast:UU,midcir:jU,mid:VU,middot:GU,minusb:KU,minus:XU,minusd:YU,minusdu:JU,MinusPlus:ZU,mlcp:QU,mldr:ej,mnplus:tj,models:nj,Mopf:rj,mopf:ij,mp:oj,mscr:sj,Mscr:lj,mstpos:aj,Mu:cj,mu:uj,multimap:fj,mumap:dj,nabla:hj,Nacute:pj,nacute:gj,nang:vj,nap:mj,napE:yj,napid:bj,napos:wj,napprox:xj,natural:Sj,naturals:_j,natur:kj,nbsp:Tj,nbump:Cj,nbumpe:Ej,ncap:Aj,Ncaron:Lj,ncaron:Mj,Ncedil:$j,ncedil:Nj,ncong:Oj,ncongdot:Ij,ncup:Pj,Ncy:Rj,ncy:zj,ndash:Dj,nearhk:Fj,nearr:Hj,neArr:Bj,nearrow:Wj,ne:qj,nedot:Uj,NegativeMediumSpace:jj,NegativeThickSpace:Vj,NegativeThinSpace:Gj,NegativeVeryThinSpace:Kj,nequiv:Xj,nesear:Yj,nesim:Jj,NestedGreaterGreater:Zj,NestedLessLess:Qj,NewLine:e9,nexist:t9,nexists:n9,Nfr:r9,nfr:i9,ngE:o9,nge:s9,ngeq:l9,ngeqq:a9,ngeqslant:c9,nges:u9,nGg:f9,ngsim:d9,nGt:h9,ngt:p9,ngtr:g9,nGtv:v9,nharr:m9,nhArr:y9,nhpar:b9,ni:w9,nis:x9,nisd:S9,niv:_9,NJcy:k9,njcy:T9,nlarr:C9,nlArr:E9,nldr:A9,nlE:L9,nle:M9,nleftarrow:$9,nLeftarrow:N9,nleftrightarrow:O9,nLeftrightarrow:I9,nleq:P9,nleqq:R9,nleqslant:z9,nles:D9,nless:F9,nLl:H9,nlsim:B9,nLt:W9,nlt:q9,nltri:U9,nltrie:j9,nLtv:V9,nmid:G9,NoBreak:K9,NonBreakingSpace:X9,nopf:Y9,Nopf:J9,Not:Z9,not:Q9,NotCongruent:eV,NotCupCap:tV,NotDoubleVerticalBar:nV,NotElement:rV,NotEqual:iV,NotEqualTilde:oV,NotExists:sV,NotGreater:lV,NotGreaterEqual:aV,NotGreaterFullEqual:cV,NotGreaterGreater:uV,NotGreaterLess:fV,NotGreaterSlantEqual:dV,NotGreaterTilde:hV,NotHumpDownHump:pV,NotHumpEqual:gV,notin:vV,notindot:mV,notinE:yV,notinva:bV,notinvb:wV,notinvc:xV,NotLeftTriangleBar:SV,NotLeftTriangle:_V,NotLeftTriangleEqual:kV,NotLess:TV,NotLessEqual:CV,NotLessGreater:EV,NotLessLess:AV,NotLessSlantEqual:LV,NotLessTilde:MV,NotNestedGreaterGreater:$V,NotNestedLessLess:NV,notni:OV,notniva:IV,notnivb:PV,notnivc:RV,NotPrecedes:zV,NotPrecedesEqual:DV,NotPrecedesSlantEqual:FV,NotReverseElement:HV,NotRightTriangleBar:BV,NotRightTriangle:WV,NotRightTriangleEqual:qV,NotSquareSubset:UV,NotSquareSubsetEqual:jV,NotSquareSuperset:VV,NotSquareSupersetEqual:GV,NotSubset:KV,NotSubsetEqual:XV,NotSucceeds:YV,NotSucceedsEqual:JV,NotSucceedsSlantEqual:ZV,NotSucceedsTilde:QV,NotSuperset:eG,NotSupersetEqual:tG,NotTilde:nG,NotTildeEqual:rG,NotTildeFullEqual:iG,NotTildeTilde:oG,NotVerticalBar:sG,nparallel:lG,npar:aG,nparsl:cG,npart:uG,npolint:fG,npr:dG,nprcue:hG,nprec:pG,npreceq:gG,npre:vG,nrarrc:mG,nrarr:yG,nrArr:bG,nrarrw:wG,nrightarrow:xG,nRightarrow:SG,nrtri:_G,nrtrie:kG,nsc:TG,nsccue:CG,nsce:EG,Nscr:AG,nscr:LG,nshortmid:MG,nshortparallel:$G,nsim:NG,nsime:OG,nsimeq:IG,nsmid:PG,nspar:RG,nsqsube:zG,nsqsupe:DG,nsub:FG,nsubE:HG,nsube:BG,nsubset:WG,nsubseteq:qG,nsubseteqq:UG,nsucc:jG,nsucceq:VG,nsup:GG,nsupE:KG,nsupe:XG,nsupset:YG,nsupseteq:JG,nsupseteqq:ZG,ntgl:QG,Ntilde:e7,ntilde:t7,ntlg:n7,ntriangleleft:r7,ntrianglelefteq:i7,ntriangleright:o7,ntrianglerighteq:s7,Nu:l7,nu:a7,num:c7,numero:u7,numsp:f7,nvap:d7,nvdash:h7,nvDash:p7,nVdash:g7,nVDash:v7,nvge:m7,nvgt:y7,nvHarr:b7,nvinfin:w7,nvlArr:x7,nvle:S7,nvlt:_7,nvltrie:k7,nvrArr:T7,nvrtrie:C7,nvsim:E7,nwarhk:A7,nwarr:L7,nwArr:M7,nwarrow:$7,nwnear:N7,Oacute:O7,oacute:I7,oast:P7,Ocirc:R7,ocirc:z7,ocir:D7,Ocy:F7,ocy:H7,odash:B7,Odblac:W7,odblac:q7,odiv:U7,odot:j7,odsold:V7,OElig:G7,oelig:K7,ofcir:X7,Ofr:Y7,ofr:J7,ogon:Z7,Ograve:Q7,ograve:eK,ogt:tK,ohbar:nK,ohm:rK,oint:iK,olarr:oK,olcir:sK,olcross:lK,oline:aK,olt:cK,Omacr:uK,omacr:fK,Omega:dK,omega:hK,Omicron:pK,omicron:gK,omid:vK,ominus:mK,Oopf:yK,oopf:bK,opar:wK,OpenCurlyDoubleQuote:xK,OpenCurlyQuote:SK,operp:_K,oplus:kK,orarr:TK,Or:CK,or:EK,ord:AK,order:LK,orderof:MK,ordf:$K,ordm:NK,origof:OK,oror:IK,orslope:PK,orv:RK,oS:zK,Oscr:DK,oscr:FK,Oslash:HK,oslash:BK,osol:WK,Otilde:qK,otilde:UK,otimesas:jK,Otimes:VK,otimes:GK,Ouml:KK,ouml:XK,ovbar:YK,OverBar:JK,OverBrace:ZK,OverBracket:QK,OverParenthesis:eX,para:tX,parallel:nX,par:rX,parsim:iX,parsl:oX,part:sX,PartialD:lX,Pcy:aX,pcy:cX,percnt:uX,period:fX,permil:dX,perp:hX,pertenk:pX,Pfr:gX,pfr:vX,Phi:mX,phi:yX,phiv:bX,phmmat:wX,phone:xX,Pi:SX,pi:_X,pitchfork:kX,piv:TX,planck:CX,planckh:EX,plankv:AX,plusacir:LX,plusb:MX,pluscir:$X,plus:NX,plusdo:OX,plusdu:IX,pluse:PX,PlusMinus:RX,plusmn:zX,plussim:DX,plustwo:FX,pm:HX,Poincareplane:BX,pointint:WX,popf:qX,Popf:UX,pound:jX,prap:VX,Pr:GX,pr:KX,prcue:XX,precapprox:YX,prec:JX,preccurlyeq:ZX,Precedes:QX,PrecedesEqual:eY,PrecedesSlantEqual:tY,PrecedesTilde:nY,preceq:rY,precnapprox:iY,precneqq:oY,precnsim:sY,pre:lY,prE:aY,precsim:cY,prime:uY,Prime:fY,primes:dY,prnap:hY,prnE:pY,prnsim:gY,prod:vY,Product:mY,profalar:yY,profline:bY,profsurf:wY,prop:xY,Proportional:SY,Proportion:_Y,propto:kY,prsim:TY,prurel:CY,Pscr:EY,pscr:AY,Psi:LY,psi:MY,puncsp:$Y,Qfr:NY,qfr:OY,qint:IY,qopf:PY,Qopf:RY,qprime:zY,Qscr:DY,qscr:FY,quaternions:HY,quatint:BY,quest:WY,questeq:qY,quot:UY,QUOT:jY,rAarr:VY,race:GY,Racute:KY,racute:XY,radic:YY,raemptyv:JY,rang:ZY,Rang:QY,rangd:eJ,range:tJ,rangle:nJ,raquo:rJ,rarrap:iJ,rarrb:oJ,rarrbfs:sJ,rarrc:lJ,rarr:aJ,Rarr:cJ,rArr:uJ,rarrfs:fJ,rarrhk:dJ,rarrlp:hJ,rarrpl:pJ,rarrsim:gJ,Rarrtl:vJ,rarrtl:mJ,rarrw:yJ,ratail:bJ,rAtail:wJ,ratio:xJ,rationals:SJ,rbarr:_J,rBarr:kJ,RBarr:TJ,rbbrk:CJ,rbrace:EJ,rbrack:AJ,rbrke:LJ,rbrksld:MJ,rbrkslu:$J,Rcaron:NJ,rcaron:OJ,Rcedil:IJ,rcedil:PJ,rceil:RJ,rcub:zJ,Rcy:DJ,rcy:FJ,rdca:HJ,rdldhar:BJ,rdquo:WJ,rdquor:qJ,rdsh:UJ,real:jJ,realine:VJ,realpart:GJ,reals:KJ,Re:XJ,rect:YJ,reg:JJ,REG:ZJ,ReverseElement:QJ,ReverseEquilibrium:eZ,ReverseUpEquilibrium:tZ,rfisht:nZ,rfloor:rZ,rfr:iZ,Rfr:oZ,rHar:sZ,rhard:lZ,rharu:aZ,rharul:cZ,Rho:uZ,rho:fZ,rhov:dZ,RightAngleBracket:hZ,RightArrowBar:pZ,rightarrow:gZ,RightArrow:vZ,Rightarrow:mZ,RightArrowLeftArrow:yZ,rightarrowtail:bZ,RightCeiling:wZ,RightDoubleBracket:xZ,RightDownTeeVector:SZ,RightDownVectorBar:_Z,RightDownVector:kZ,RightFloor:TZ,rightharpoondown:CZ,rightharpoonup:EZ,rightleftarrows:AZ,rightleftharpoons:LZ,rightrightarrows:MZ,rightsquigarrow:$Z,RightTeeArrow:NZ,RightTee:OZ,RightTeeVector:IZ,rightthreetimes:PZ,RightTriangleBar:RZ,RightTriangle:zZ,RightTriangleEqual:DZ,RightUpDownVector:FZ,RightUpTeeVector:HZ,RightUpVectorBar:BZ,RightUpVector:WZ,RightVectorBar:qZ,RightVector:UZ,ring:jZ,risingdotseq:VZ,rlarr:GZ,rlhar:KZ,rlm:XZ,rmoustache:YZ,rmoust:JZ,rnmid:ZZ,roang:QZ,roarr:eQ,robrk:tQ,ropar:nQ,ropf:rQ,Ropf:iQ,roplus:oQ,rotimes:sQ,RoundImplies:lQ,rpar:aQ,rpargt:cQ,rppolint:uQ,rrarr:fQ,Rrightarrow:dQ,rsaquo:hQ,rscr:pQ,Rscr:gQ,rsh:vQ,Rsh:mQ,rsqb:yQ,rsquo:bQ,rsquor:wQ,rthree:xQ,rtimes:SQ,rtri:_Q,rtrie:kQ,rtrif:TQ,rtriltri:CQ,RuleDelayed:EQ,ruluhar:AQ,rx:LQ,Sacute:MQ,sacute:$Q,sbquo:NQ,scap:OQ,Scaron:IQ,scaron:PQ,Sc:RQ,sc:zQ,sccue:DQ,sce:FQ,scE:HQ,Scedil:BQ,scedil:WQ,Scirc:qQ,scirc:UQ,scnap:jQ,scnE:VQ,scnsim:GQ,scpolint:KQ,scsim:XQ,Scy:YQ,scy:JQ,sdotb:ZQ,sdot:QQ,sdote:eee,searhk:tee,searr:nee,seArr:ree,searrow:iee,sect:oee,semi:see,seswar:lee,setminus:aee,setmn:cee,sext:uee,Sfr:fee,sfr:dee,sfrown:hee,sharp:pee,SHCHcy:gee,shchcy:vee,SHcy:mee,shcy:yee,ShortDownArrow:bee,ShortLeftArrow:wee,shortmid:xee,shortparallel:See,ShortRightArrow:_ee,ShortUpArrow:kee,shy:Tee,Sigma:Cee,sigma:Eee,sigmaf:Aee,sigmav:Lee,sim:Mee,simdot:$ee,sime:Nee,simeq:Oee,simg:Iee,simgE:Pee,siml:Ree,simlE:zee,simne:Dee,simplus:Fee,simrarr:Hee,slarr:Bee,SmallCircle:Wee,smallsetminus:qee,smashp:Uee,smeparsl:jee,smid:Vee,smile:Gee,smt:Kee,smte:Xee,smtes:Yee,SOFTcy:Jee,softcy:Zee,solbar:Qee,solb:ete,sol:tte,Sopf:nte,sopf:rte,spades:ite,spadesuit:ote,spar:ste,sqcap:lte,sqcaps:ate,sqcup:cte,sqcups:ute,Sqrt:fte,sqsub:dte,sqsube:hte,sqsubset:pte,sqsubseteq:gte,sqsup:vte,sqsupe:mte,sqsupset:yte,sqsupseteq:bte,square:wte,Square:xte,SquareIntersection:Ste,SquareSubset:_te,SquareSubsetEqual:kte,SquareSuperset:Tte,SquareSupersetEqual:Cte,SquareUnion:Ete,squarf:Ate,squ:Lte,squf:Mte,srarr:$te,Sscr:Nte,sscr:Ote,ssetmn:Ite,ssmile:Pte,sstarf:Rte,Star:zte,star:Dte,starf:Fte,straightepsilon:Hte,straightphi:Bte,strns:Wte,sub:qte,Sub:Ute,subdot:jte,subE:Vte,sube:Gte,subedot:Kte,submult:Xte,subnE:Yte,subne:Jte,subplus:Zte,subrarr:Qte,subset:ene,Subset:tne,subseteq:nne,subseteqq:rne,SubsetEqual:ine,subsetneq:one,subsetneqq:sne,subsim:lne,subsub:ane,subsup:cne,succapprox:une,succ:fne,succcurlyeq:dne,Succeeds:hne,SucceedsEqual:pne,SucceedsSlantEqual:gne,SucceedsTilde:vne,succeq:mne,succnapprox:yne,succneqq:bne,succnsim:wne,succsim:xne,SuchThat:Sne,sum:_ne,Sum:kne,sung:Tne,sup1:Cne,sup2:Ene,sup3:Ane,sup:Lne,Sup:Mne,supdot:$ne,supdsub:Nne,supE:One,supe:Ine,supedot:Pne,Superset:Rne,SupersetEqual:zne,suphsol:Dne,suphsub:Fne,suplarr:Hne,supmult:Bne,supnE:Wne,supne:qne,supplus:Une,supset:jne,Supset:Vne,supseteq:Gne,supseteqq:Kne,supsetneq:Xne,supsetneqq:Yne,supsim:Jne,supsub:Zne,supsup:Qne,swarhk:ere,swarr:tre,swArr:nre,swarrow:rre,swnwar:ire,szlig:ore,Tab:sre,target:lre,Tau:are,tau:cre,tbrk:ure,Tcaron:fre,tcaron:dre,Tcedil:hre,tcedil:pre,Tcy:gre,tcy:vre,tdot:mre,telrec:yre,Tfr:bre,tfr:wre,there4:xre,therefore:Sre,Therefore:_re,Theta:kre,theta:Tre,thetasym:Cre,thetav:Ere,thickapprox:Are,thicksim:Lre,ThickSpace:Mre,ThinSpace:$re,thinsp:Nre,thkap:Ore,thksim:Ire,THORN:Pre,thorn:Rre,tilde:zre,Tilde:Dre,TildeEqual:Fre,TildeFullEqual:Hre,TildeTilde:Bre,timesbar:Wre,timesb:qre,times:Ure,timesd:jre,tint:Vre,toea:Gre,topbot:Kre,topcir:Xre,top:Yre,Topf:Jre,topf:Zre,topfork:Qre,tosa:eie,tprime:tie,trade:nie,TRADE:rie,triangle:iie,triangledown:oie,triangleleft:sie,trianglelefteq:lie,triangleq:aie,triangleright:cie,trianglerighteq:uie,tridot:fie,trie:die,triminus:hie,TripleDot:pie,triplus:gie,trisb:vie,tritime:mie,trpezium:yie,Tscr:bie,tscr:wie,TScy:xie,tscy:Sie,TSHcy:_ie,tshcy:kie,Tstrok:Tie,tstrok:Cie,twixt:Eie,twoheadleftarrow:Aie,twoheadrightarrow:Lie,Uacute:Mie,uacute:$ie,uarr:Nie,Uarr:Oie,uArr:Iie,Uarrocir:Pie,Ubrcy:Rie,ubrcy:zie,Ubreve:Die,ubreve:Fie,Ucirc:Hie,ucirc:Bie,Ucy:Wie,ucy:qie,udarr:Uie,Udblac:jie,udblac:Vie,udhar:Gie,ufisht:Kie,Ufr:Xie,ufr:Yie,Ugrave:Jie,ugrave:Zie,uHar:Qie,uharl:eoe,uharr:toe,uhblk:noe,ulcorn:roe,ulcorner:ioe,ulcrop:ooe,ultri:soe,Umacr:loe,umacr:aoe,uml:coe,UnderBar:uoe,UnderBrace:foe,UnderBracket:doe,UnderParenthesis:hoe,Union:poe,UnionPlus:goe,Uogon:voe,uogon:moe,Uopf:yoe,uopf:boe,UpArrowBar:woe,uparrow:xoe,UpArrow:Soe,Uparrow:_oe,UpArrowDownArrow:koe,updownarrow:Toe,UpDownArrow:Coe,Updownarrow:Eoe,UpEquilibrium:Aoe,upharpoonleft:Loe,upharpoonright:Moe,uplus:$oe,UpperLeftArrow:Noe,UpperRightArrow:Ooe,upsi:Ioe,Upsi:Poe,upsih:Roe,Upsilon:zoe,upsilon:Doe,UpTeeArrow:Foe,UpTee:Hoe,upuparrows:Boe,urcorn:Woe,urcorner:qoe,urcrop:Uoe,Uring:joe,uring:Voe,urtri:Goe,Uscr:Koe,uscr:Xoe,utdot:Yoe,Utilde:Joe,utilde:Zoe,utri:Qoe,utrif:ese,uuarr:tse,Uuml:nse,uuml:rse,uwangle:ise,vangrt:ose,varepsilon:sse,varkappa:lse,varnothing:ase,varphi:cse,varpi:use,varpropto:fse,varr:dse,vArr:hse,varrho:pse,varsigma:gse,varsubsetneq:vse,varsubsetneqq:mse,varsupsetneq:yse,varsupsetneqq:bse,vartheta:wse,vartriangleleft:xse,vartriangleright:Sse,vBar:_se,Vbar:kse,vBarv:Tse,Vcy:Cse,vcy:Ese,vdash:Ase,vDash:Lse,Vdash:Mse,VDash:$se,Vdashl:Nse,veebar:Ose,vee:Ise,Vee:Pse,veeeq:Rse,vellip:zse,verbar:Dse,Verbar:Fse,vert:Hse,Vert:Bse,VerticalBar:Wse,VerticalLine:qse,VerticalSeparator:Use,VerticalTilde:jse,VeryThinSpace:Vse,Vfr:Gse,vfr:Kse,vltri:Xse,vnsub:Yse,vnsup:Jse,Vopf:Zse,vopf:Qse,vprop:ele,vrtri:tle,Vscr:nle,vscr:rle,vsubnE:ile,vsubne:ole,vsupnE:sle,vsupne:lle,Vvdash:ale,vzigzag:cle,Wcirc:ule,wcirc:fle,wedbar:dle,wedge:hle,Wedge:ple,wedgeq:gle,weierp:vle,Wfr:mle,wfr:yle,Wopf:ble,wopf:wle,wp:xle,wr:Sle,wreath:_le,Wscr:kle,wscr:Tle,xcap:Cle,xcirc:Ele,xcup:Ale,xdtri:Lle,Xfr:Mle,xfr:$le,xharr:Nle,xhArr:Ole,Xi:Ile,xi:Ple,xlarr:Rle,xlArr:zle,xmap:Dle,xnis:Fle,xodot:Hle,Xopf:Ble,xopf:Wle,xoplus:qle,xotime:Ule,xrarr:jle,xrArr:Vle,Xscr:Gle,xscr:Kle,xsqcup:Xle,xuplus:Yle,xutri:Jle,xvee:Zle,xwedge:Qle,Yacute:eae,yacute:tae,YAcy:nae,yacy:rae,Ycirc:iae,ycirc:oae,Ycy:sae,ycy:lae,yen:aae,Yfr:cae,yfr:uae,YIcy:fae,yicy:dae,Yopf:hae,yopf:pae,Yscr:gae,yscr:vae,YUcy:mae,yucy:yae,yuml:bae,Yuml:wae,Zacute:xae,zacute:Sae,Zcaron:_ae,zcaron:kae,Zcy:Tae,zcy:Cae,Zdot:Eae,zdot:Aae,zeetrf:Lae,ZeroWidthSpace:Mae,Zeta:$ae,zeta:Nae,zfr:Oae,Zfr:Iae,ZHcy:Pae,zhcy:Rae,zigrarr:zae,zopf:Dae,Zopf:Fae,Zscr:Hae,zscr:Bae,zwj:Wae,zwnj:qae},Uae="Á",jae="á",Vae="Â",Gae="â",Kae="´",Xae="Æ",Yae="æ",Jae="À",Zae="à",Qae="&",ece="&",tce="Å",nce="å",rce="Ã",ice="ã",oce="Ä",sce="ä",lce="¦",ace="Ç",cce="ç",uce="¸",fce="¢",dce="©",hce="©",pce="¤",gce="°",vce="÷",mce="É",yce="é",bce="Ê",wce="ê",xce="È",Sce="è",_ce="Ð",kce="ð",Tce="Ë",Cce="ë",Ece="½",Ace="¼",Lce="¾",Mce=">",$ce=">",Nce="Í",Oce="í",Ice="Î",Pce="î",Rce="¡",zce="Ì",Dce="ì",Fce="¿",Hce="Ï",Bce="ï",Wce="«",qce="<",Uce="<",jce="¯",Vce="µ",Gce="·",Kce=" ",Xce="¬",Yce="Ñ",Jce="ñ",Zce="Ó",Qce="ó",eue="Ô",tue="ô",nue="Ò",rue="ò",iue="ª",oue="º",sue="Ø",lue="ø",aue="Õ",cue="õ",uue="Ö",fue="ö",due="¶",hue="±",pue="£",gue='"',vue='"',mue="»",yue="®",bue="®",wue="§",xue="",Sue="¹",_ue="²",kue="³",Tue="ß",Cue="Þ",Eue="þ",Aue="×",Lue="Ú",Mue="ú",$ue="Û",Nue="û",Oue="Ù",Iue="ù",Pue="¨",Rue="Ü",zue="ü",Due="Ý",Fue="ý",Hue="¥",Bue="ÿ",Wue={Aacute:Uae,aacute:jae,Acirc:Vae,acirc:Gae,acute:Kae,AElig:Xae,aelig:Yae,Agrave:Jae,agrave:Zae,amp:Qae,AMP:ece,Aring:tce,aring:nce,Atilde:rce,atilde:ice,Auml:oce,auml:sce,brvbar:lce,Ccedil:ace,ccedil:cce,cedil:uce,cent:fce,copy:dce,COPY:hce,curren:pce,deg:gce,divide:vce,Eacute:mce,eacute:yce,Ecirc:bce,ecirc:wce,Egrave:xce,egrave:Sce,ETH:_ce,eth:kce,Euml:Tce,euml:Cce,frac12:Ece,frac14:Ace,frac34:Lce,gt:Mce,GT:$ce,Iacute:Nce,iacute:Oce,Icirc:Ice,icirc:Pce,iexcl:Rce,Igrave:zce,igrave:Dce,iquest:Fce,Iuml:Hce,iuml:Bce,laquo:Wce,lt:qce,LT:Uce,macr:jce,micro:Vce,middot:Gce,nbsp:Kce,not:Xce,Ntilde:Yce,ntilde:Jce,Oacute:Zce,oacute:Qce,Ocirc:eue,ocirc:tue,Ograve:nue,ograve:rue,ordf:iue,ordm:oue,Oslash:sue,oslash:lue,Otilde:aue,otilde:cue,Ouml:uue,ouml:fue,para:due,plusmn:hue,pound:pue,quot:gue,QUOT:vue,raquo:mue,reg:yue,REG:bue,sect:wue,shy:xue,sup1:Sue,sup2:_ue,sup3:kue,szlig:Tue,THORN:Cue,thorn:Eue,times:Aue,Uacute:Lue,uacute:Mue,Ucirc:$ue,ucirc:Nue,Ugrave:Oue,ugrave:Iue,uml:Pue,Uuml:Rue,uuml:zue,Yacute:Due,yacute:Fue,yen:Hue,yuml:Bue},que="&",Uue="'",jue=">",Vue="<",Gue='"',W1={amp:que,apos:Uue,gt:jue,lt:Vue,quot:Gue};var Ss={};const Kue={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 M0;function Xue(){if(M0)return Ss;M0=1;var e=Ss&&Ss.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ss,"__esModule",{value:!0});var t=e(Kue),r=String.fromCodePoint||function(s){var l="";return s>65535&&(s-=65536,l+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),l+=String.fromCharCode(s),l};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return Ss.default=o,Ss}var $0;function N0(){if($0)return _r;$0=1;var e=_r&&_r.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(_r,"__esModule",{value:!0}),_r.decodeHTML=_r.decodeHTMLStrict=_r.decodeXML=void 0;var t=e(B1),r=e(Wue),o=e(W1),s=e(Xue()),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;_r.decodeXML=u(o.default),_r.decodeHTMLStrict=u(t.default);function u(p){var g=h(p);return function(m){return String(m).replace(l,g)}}var d=function(p,g){return p<g?1:-1};_r.decodeHTML=function(){for(var p=Object.keys(r.default).sort(d),g=Object.keys(t.default).sort(d),m=0,y=0;m<g.length;m++)p[y]===g[m]?(g[m]+=";?",y++):g[m]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),C=h(t.default);function $(E){return E.substr(-1)!==";"&&(E+=";"),C(E)}return function(E){return String(E).replace(w,$)}}();function h(p){return function(m){if(m.charAt(1)==="#"){var y=m.charAt(2);return y==="X"||y==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return _r}var Ln={},O0;function I0(){if(O0)return Ln;O0=1;var e=Ln&&Ln.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.escapeUTF8=Ln.escape=Ln.encodeNonAsciiHTML=Ln.encodeHTML=Ln.encodeXML=void 0;var t=e(W1),r=d(t.default),o=h(r);Ln.encodeXML=E(r);var s=e(B1),l=d(s.default),u=h(l);Ln.encodeHTML=y(l,u),Ln.encodeNonAsciiHTML=E(l);function d(T){return Object.keys(T).sort().reduce(function(A,I){return A[T[I]]="&"+I+";",A},{})}function h(T){for(var A=[],I=[],L=0,H=Object.keys(T);L<H.length;L++){var G=H[L];G.length===1?A.push("\\"+G):I.push(G)}A.sort();for(var oe=0;oe<A.length-1;oe++){for(var ee=oe;ee<A.length-1&&A[ee].charCodeAt(1)+1===A[ee+1].charCodeAt(1);)ee+=1;var Z=1+ee-oe;Z<3||A.splice(oe,Z,A[oe]+"-"+A[ee])}return I.unshift("["+A.join("")+"]"),new RegExp(I.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(T){return T.codePointAt(0)}:function(T){return(T.charCodeAt(0)-55296)*1024+T.charCodeAt(1)-56320+65536};function m(T){return"&#x"+(T.length>1?g(T):T.charCodeAt(0)).toString(16).toUpperCase()+";"}function y(T,A){return function(I){return I.replace(A,function(L){return T[L]}).replace(p,m)}}var w=new RegExp(o.source+"|"+p.source,"g");function C(T){return T.replace(w,m)}Ln.escape=C;function $(T){return T.replace(o,m)}Ln.escapeUTF8=$;function E(T){return function(A){return A.replace(w,function(I){return T[I]||m(I)})}}return Ln}var P0;function Yue(){return P0||(P0=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=N0(),r=I0();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 l(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=l;var u=I0();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var d=N0();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}})}(Ld)),Ld}var Md,R0;function Jue(){if(R0)return Md;R0=1;function e(N,P){if(!(N instanceof P))throw new TypeError("Cannot call a class as a function")}function t(N,P){for(var O=0;O<P.length;O++){var S=P[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(N,S.key,S)}}function r(N,P,O){return P&&t(N.prototype,P),N}function o(N,P){var O=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!O){if(Array.isArray(N)||(O=s(N))||P){O&&(N=O);var S=0,R=function(){};return{s:R,n:function(){return S>=N.length?{done:!0}:{done:!1,value:N[S++]}},e:function(Ne){throw Ne},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
26
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,ne=!1,me;return{s:function(){O=O.call(N)},n:function(){var Ne=O.next();return j=Ne.done,Ne},e:function(Ne){ne=!0,me=Ne},f:function(){try{!j&&O.return!=null&&O.return()}finally{if(ne)throw me}}}}function s(N,P){if(N){if(typeof N=="string")return l(N,P);var O=Object.prototype.toString.call(N).slice(8,-1);if(O==="Object"&&N.constructor&&(O=N.constructor.name),O==="Map"||O==="Set")return Array.from(N);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return l(N,P)}}function l(N,P){(P==null||P>N.length)&&(P=N.length);for(var O=0,S=new Array(P);O<P;O++)S[O]=N[O];return S}var u=Yue(),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(P){E(0,5).forEach(function(O){E(0,5).forEach(function(S){return p(P,O,S,N)})})}),E(0,23).forEach(function(P){var O=P+232,S=g(P*10+8);N[O]="#"+S+S+S}),N}function p(N,P,O,S){var R=16+N*36+P*6+O,j=N>0?N*40+55:0,ne=P>0?P*40+55:0,me=O>0?O*40+55:0;S[R]=m([j,ne,me])}function g(N){for(var P=N.toString(16);P.length<2;)P="0"+P;return P}function m(N){var P=[],O=o(N),S;try{for(O.s();!(S=O.n()).done;){var R=S.value;P.push(g(R))}}catch(j){O.e(j)}finally{O.f()}return"#"+P.join("")}function y(N,P,O,S){var R;return P==="text"?R=I(O,S):P==="display"?R=C(N,O,S):P==="xterm256Foreground"?R=G(N,S.colors[O]):P==="xterm256Background"?R=oe(N,S.colors[O]):P==="rgb"&&(R=w(N,O)),R}function w(N,P){P=P.substring(2).slice(0,-1);var O=+P.substr(0,2),S=P.substring(5).split(";"),R=S.map(function(j){return("0"+Number(j).toString(16)).substr(-2)}).join("");return H(N,(O===38?"color:#":"background-color:#")+R)}function C(N,P,O){P=parseInt(P,10);var S={"-1":function(){return"<br/>"},0:function(){return N.length&&$(N)},1:function(){return L(N,"b")},3:function(){return L(N,"i")},4:function(){return L(N,"u")},8:function(){return H(N,"display:none")},9:function(){return L(N,"strike")},22:function(){return H(N,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ee(N,"i")},24:function(){return ee(N,"u")},39:function(){return G(N,O.fg)},49:function(){return oe(N,O.bg)},53:function(){return H(N,"text-decoration:overline")}},R;return S[P]?R=S[P]():4<P&&P<7?R=L(N,"blink"):29<P&&P<38?R=G(N,O.colors[P-30]):39<P&&P<48?R=oe(N,O.colors[P-40]):89<P&&P<98?R=G(N,O.colors[8+(P-90)]):99<P&&P<108&&(R=oe(N,O.colors[8+(P-100)])),R}function $(N){var P=N.slice(0);return N.length=0,P.reverse().map(function(O){return"</"+O+">"}).join("")}function E(N,P){for(var O=[],S=N;S<=P;S++)O.push(S);return O}function T(N){return function(P){return(N===null||P.category!==N)&&N!=="all"}}function A(N){N=parseInt(N,10);var P=null;return N===0?P="all":N===1?P="bold":2<N&&N<5?P="underline":4<N&&N<7?P="blink":N===8?P="hide":N===9?P="strike":29<N&&N<38||N===39||89<N&&N<98?P="foreground-color":(39<N&&N<48||N===49||99<N&&N<108)&&(P="background-color"),P}function I(N,P){return P.escapeXML?u.encodeXML(N):N}function L(N,P,O){return O||(O=""),N.push(P),"<".concat(P).concat(O?' style="'.concat(O,'"'):"",">")}function H(N,P){return L(N,"span",P)}function G(N,P){return L(N,"span","color:"+P)}function oe(N,P){return L(N,"span","background-color:"+P)}function ee(N,P){var O;if(N.slice(-1)[0]===P&&(O=N.pop()),O)return"</"+P+">"}function Z(N,P,O){var S=!1,R=3;function j(){return""}function ne(W,X){return O("xterm256Foreground",X),""}function me(W,X){return O("xterm256Background",X),""}function xe(W){return P.newline?O("display",-1):O("text",W),""}function Ne(W,X){S=!0,X.trim().length===0&&(X="0"),X=X.trimRight(";").split(";");var ue=o(X),he;try{for(ue.s();!(he=ue.n()).done;){var de=he.value;O("display",de)}}catch(Ce){ue.e(Ce)}finally{ue.f()}return""}function Re(W){return O("text",W),""}function je(W){return O("rgb",W),""}var Xe=[{pattern:/^\x08+/,sub:j},{pattern:/^\x1b\[[012]?K/,sub:j},{pattern:/^\x1b\[\(B/,sub:j},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:je},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ne},{pattern:/^\x1b\[48;5;(\d+)m/,sub:me},{pattern:/^\n/,sub:xe},{pattern:/^\r+\n/,sub:xe},{pattern:/^\r/,sub:xe},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Ne},{pattern:/^\x1b\[\d?J/,sub:j},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:j},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:j},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Re}];function Ye(W,X){X>R&&S||(S=!1,N=N.replace(W.pattern,W.sub))}var re=[],B=N,J=B.length;e:for(;J>0;){for(var K=0,le=0,pe=Xe.length;le<pe;K=++le){var z=Xe[K];if(Ye(z,K),N.length!==J){J=N.length;continue e}}if(N.length===J)break;re.push(0),J=N.length}return re}function Q(N,P,O){return P!=="text"&&(N=N.filter(T(A(O))),N.push({token:P,data:O,category:A(O)})),N}var F=function(){function N(P){e(this,N),P=P||{},P.colors&&(P.colors=Object.assign({},d.colors,P.colors)),this.options=Object.assign({},d,P),this.stack=[],this.stickyStack=[]}return r(N,[{key:"toHtml",value:function(O){var S=this;O=typeof O=="string"?[O]:O;var R=this.stack,j=this.options,ne=[];return this.stickyStack.forEach(function(me){var xe=y(R,me.token,me.data,j);xe&&ne.push(xe)}),Z(O.join(""),j,function(me,xe){var Ne=y(R,me,xe,j);Ne&&ne.push(Ne),j.stream&&(S.stickyStack=Q(S.stickyStack,me,xe))}),R.length&&ne.push($(R)),ne.join("")}}]),N}();return Md=F,Md}var Zue=Jue();const Que=H1(Zue);function efe(e,t){return t&&e.endsWith(t)}async function q1(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function _p(e){return new Que({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function tfe(e){return e===null||typeof e!="function"&&typeof e!="object"}function U1(e){let t=e;if(tfe(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=pL(t.stack||"",{ignoreStackEntries:[]}),t}var nr=Uint8Array,Ms=Uint16Array,nfe=Int32Array,j1=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]),V1=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]),rfe=new nr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),G1=function(e,t){for(var r=new Ms(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new nfe(r[30]),o=1;o<30;++o)for(var l=r[o];l<r[o+1];++l)s[l]=l-r[o]<<5|o;return{b:r,r:s}},K1=G1(j1,2),X1=K1.b,ife=K1.r;X1[28]=258,ife[258]=28;var ofe=G1(V1,0),sfe=ofe.b,Sh=new Ms(32768);for(var Lt=0;Lt<32768;++Lt){var Ui=(Lt&43690)>>1|(Lt&21845)<<1;Ui=(Ui&52428)>>2|(Ui&13107)<<2,Ui=(Ui&61680)>>4|(Ui&3855)<<4,Sh[Lt]=((Ui&65280)>>8|(Ui&255)<<8)>>1}var Ql=function(e,t,r){for(var o=e.length,s=0,l=new Ms(t);s<o;++s)e[s]&&++l[e[s]-1];var u=new Ms(t);for(s=1;s<t;++s)u[s]=u[s-1]+l[s-1]<<1;var d;if(r){d=new Ms(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],g=t-e[s],m=u[e[s]-1]++<<g,y=m|(1<<g)-1;m<=y;++m)d[Sh[m]>>h]=p}else for(d=new Ms(o),s=0;s<o;++s)e[s]&&(d[s]=Sh[u[e[s]-1]++]>>15-e[s]);return d},Ha=new nr(288);for(var Lt=0;Lt<144;++Lt)Ha[Lt]=8;for(var Lt=144;Lt<256;++Lt)Ha[Lt]=9;for(var Lt=256;Lt<280;++Lt)Ha[Lt]=7;for(var Lt=280;Lt<288;++Lt)Ha[Lt]=8;var Y1=new nr(32);for(var Lt=0;Lt<32;++Lt)Y1[Lt]=5;var lfe=Ql(Ha,9,1),afe=Ql(Y1,5,1),$d=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},kr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},Nd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},cfe=function(e){return(e+7)/8|0},J1=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))},ufe=["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"],qn=function(e,t,r){var o=new Error(t||ufe[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,qn),!r)throw o;return o},kp=function(e,t,r,o){var s=e.length,l=0;if(!s||t.f&&!t.l)return r||new nr(0);var u=!r,d=u||t.i!=2,h=t.i;u&&(r=new nr(s*3));var p=function(pe){var z=r.length;if(pe>z){var W=new nr(Math.max(z*2,pe));W.set(r),r=W}},g=t.f||0,m=t.p||0,y=t.b||0,w=t.l,C=t.d,$=t.m,E=t.n,T=s*8;do{if(!w){g=kr(e,m,1);var A=kr(e,m+1,3);if(m+=3,A)if(A==1)w=lfe,C=afe,$=9,E=5;else if(A==2){var G=kr(e,m,31)+257,oe=kr(e,m+10,15)+4,ee=G+kr(e,m+5,31)+1;m+=14;for(var Z=new nr(ee),Q=new nr(19),F=0;F<oe;++F)Q[rfe[F]]=kr(e,m+F*3,7);m+=oe*3;for(var N=$d(Q),P=(1<<N)-1,O=Ql(Q,N,1),F=0;F<ee;){var S=O[kr(e,m,P)];m+=S&15;var I=S>>4;if(I<16)Z[F++]=I;else{var R=0,j=0;for(I==16?(j=3+kr(e,m,3),m+=2,R=Z[F-1]):I==17?(j=3+kr(e,m,7),m+=3):I==18&&(j=11+kr(e,m,127),m+=7);j--;)Z[F++]=R}}var ne=Z.subarray(0,G),me=Z.subarray(G);$=$d(ne),E=$d(me),w=Ql(ne,$,1),C=Ql(me,E,1)}else qn(1);else{var I=cfe(m)+4,L=e[I-4]|e[I-3]<<8,H=I+L;if(H>s){h&&qn(0);break}d&&p(y+L),r.set(e.subarray(I,H),y),t.b=y+=L,t.p=m=H*8,t.f=g;continue}if(m>T){h&&qn(0);break}}d&&p(y+131072);for(var xe=(1<<$)-1,Ne=(1<<E)-1,Re=m;;Re=m){var R=w[Nd(e,m)&xe],je=R>>4;if(m+=R&15,m>T){h&&qn(0);break}if(R||qn(2),je<256)r[y++]=je;else if(je==256){Re=m,w=null;break}else{var Xe=je-254;if(je>264){var F=je-257,Ye=j1[F];Xe=kr(e,m,(1<<Ye)-1)+X1[F],m+=Ye}var re=C[Nd(e,m)&Ne],B=re>>4;re||qn(3),m+=re&15;var me=sfe[B];if(B>3){var Ye=V1[B];me+=Nd(e,m)&(1<<Ye)-1,m+=Ye}if(m>T){h&&qn(0);break}d&&p(y+131072);var J=y+Xe;if(y<me){var K=l-me,le=Math.min(me,J);for(K+y<0&&qn(3);y<le;++y)r[y]=o[K+y]}for(;y<J;++y)r[y]=r[y-me]}}t.l=w,t.p=Re,t.b=y,t.f=g,w&&(g=1,t.m=$,t.d=C,t.n=E)}while(!g);return y!=r.length&&u?J1(r,0,y):r.subarray(0,y)},ffe=new nr(0),dfe=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&qn(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)},hfe=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},pfe=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&qn(6,"invalid zlib data"),(e[1]>>5&1)==1&&qn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function gfe(e,t){return kp(e,{i:2},t,t)}function vfe(e,t){var r=dfe(e);return r+8>e.length&&qn(6,"invalid gzip data"),kp(e.subarray(r,-8),{i:2},new nr(hfe(e)),t)}function mfe(e,t){return kp(e.subarray(pfe(e),-4),{i:2},t,t)}function yfe(e,t){return e[0]==31&&e[1]==139&&e[2]==8?vfe(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?gfe(e,t):mfe(e,t)}var _h=typeof TextDecoder<"u"&&new TextDecoder,bfe=0;try{_h.decode(ffe,{stream:!0}),bfe=1}catch{}var wfe=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:J1(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 xfe(e,t){var r;if(_h)return _h.decode(e);var o=wfe(e),s=o.s,r=o.r;return r.length&&qn(8),s}const Od=()=>{},mn=()=>Promise.resolve();function Sfe(){const e=rr({state:new f1,waitForConnection:u,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:mn,onDone:Od,onTaskUpdate:Od,writeFile:mn,rerun:mn,rerunTask:mn,updateSnapshot:mn,resolveSnapshotPath:mn,snapshotSaved:mn,onAfterSuiteRun:mn,onCancel:mn,getCountOfFailedTests:()=>0,sendLog:mn,resolveSnapshotRawPath:mn,readSnapshotFile:mn,saveSnapshotFile:mn,readTestFile:async d=>t.sources[d],removeSnapshotFile:mn,onUnhandledError:Od,saveTestFile:mn,getProvidedContext:()=>({}),getTestFiles:mn};e.rpc=r;const o=Promise.resolve();function s(){l()}async function l(){var g;const d=await fetch(window.METADATA_PATH),h=((g=d.headers.get("content-type"))==null?void 0:g.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),y=xfe(yfe(m));t=gh(y)}else t=gh(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}l();function u(){return o}return e}const gt=function(){return dr?Sfe():gM(C$,{reactive:(t,r)=>r==="state"?rr(t):rn(t),handlers:{onTestAnnotate(t,r){Ae.annotateTest(t,r)},onTaskUpdate(t,r){Ae.resumeRun(t,r),of.value="running"},onFinished(t,r){Ae.endRun(),Ji.value=(r||[]).map(U1)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),lf=rn({}),Fo=Ue("CONNECTING"),en=_e(()=>{const e=go.value;return e?hr(e):void 0}),Z1=_e(()=>vp(en.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function hr(e){const t=gt.state.idMap.get(e);return t||void 0}const _fe=_e(()=>Fo.value==="OPEN"),Id=_e(()=>Fo.value==="CONNECTING");_e(()=>Fo.value==="CLOSED");function kfe(){return Tp(gt.state.getFiles())}function Q1(e){delete e.result;const t=Ae.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Da(e)))for(const r of e.tasks)Q1(r)}function Tfe(e){const t=Ae.nodes;e.forEach(r=>{delete r.result,vp(r).forEach(s=>{if(delete s.result,t.has(s.id)){const l=t.get(s.id);l&&(l.state=void 0,l.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Pn(o)&&(o.collectDuration=void 0))})}function Tp(e){return Tfe(e),Ae.startRun(),gt.rpc.rerun(e.map(t=>t.filepath),!0)}function Cfe(e){return Q1(e),Ae.startRun(),gt.rpc.rerunTask(e.id)}const Ht=window.__vitest_browser_runner__;window.__vitest_ui_api__=_$;xt(()=>gt.ws,e=>{Fo.value=dr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Fo.value="OPEN",gt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([gt.rpc.getFiles(),gt.rpc.getConfig(),gt.rpc.getUnhandledErrors(),gt.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await gt.rpc.getTestFiles()).map(([{name:u,root:d},h])=>{const p=t1(h,d,u);return p.mode="skip",p})),Ae.loadFiles(t,s),gt.state.collectFiles(t),Ae.startRun(),Ji.value=(o||[]).map(U1),lf.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Fo.value==="CONNECTING"&&(Fo.value="CLOSED")},1e3)})},{immediate:!0});const Efe={"text-2xl":""},Afe={"text-lg":"",op50:""},Lfe=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>V(_fe)?Je("",!0):(ce(),Se("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)=>V(gt).reconnect&&V(gt).reconnect(...o))},[ie("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:it(V(Id)?"animate-pulse":"")},[ie("div",{text:"5xl",class:it(V(Id)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ie("div",Efe,qe(V(Id)?"Connecting...":"Disconnected"),1),ie("div",Afe," Check your terminal or start a new server with `"+qe(V(Ht)?`vitest --browser=${V(Ht).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Mfe=["aria-label","opacity","disabled","hover"],Ai=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ce(),Se("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:it(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[xn(t.$slots,"default",{},()=>[ie("span",{class:it(t.icon),ma:"",block:""},null,2)])],10,Mfe))}}),$fe={h:"full",flex:"~ col"},Nfe={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Ofe={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Ife={class:"pointer-events-none","text-sm":""},Pfe={key:0},Rfe={id:"tester-container",relative:""},zfe=["data-scale"],z0=20,Dfe=100,Ffe=ut({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const g=t[p];return er.value[0]===g[0]&&er.value[1]===g[1]}const{width:o,height:s}=k1();async function l(p){er.value=t[p],(Ht==null?void 0:Ht.provider)==="webdriverio"&&F1()}const u=_e(()=>{if((Ht==null?void 0:Ht.provider)==="webdriverio"){const[w,C]=er.value;return{width:w,height:C}}const m=o.value*(At.details.size/100)*(At.details.browser/100)-z0,y=s.value-Dfe;return{width:m,height:y}}),d=_e(()=>{if((Ht==null?void 0:Ht.provider)==="webdriverio")return 1;const[p,g]=er.value,{width:m,height:y}=u.value,w=m>p?1:m/p,C=y>g?1:y/g;return Math.min(1,w,C)}),h=_e(()=>{const p=u.value.width,g=er.value[0];return`${Math.trunc((p+z0-g)/2)}px`});return(p,g)=>{const m=Ai,y=Qr("tooltip");return ce(),Se("div",$fe,[ie("div",Nfe,[vt(Ie(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=w=>V(S$)())},null,512),[[eo,V(At).navigation<=15],[y,"Show Navigation Panel",void 0,{bottom:!0}]]),g[6]||(g[6]=ie("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[7]||(g[7]=ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),vt(Ie(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:g[1]||(g[1]=w=>V(w$)())},null,512),[[eo,V(At).details.main>0],[y,"Hide Right Panel",void 0,{bottom:!0}]]),vt(Ie(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:g[2]||(g[2]=w=>V(x$)())},null,512),[[eo,V(At).details.main===0],[y,"Show Right Panel",void 0,{bottom:!0}]])]),ie("div",Ofe,[vt(Ie(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:g[3]||(g[3]=w=>l("small-mobile"))},null,8,["active"]),[[y,"Small mobile",void 0,{bottom:!0}]]),vt(Ie(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:g[4]||(g[4]=w=>l("large-mobile"))},null,8,["active"]),[[y,"Large mobile",void 0,{bottom:!0}]]),vt(Ie(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:g[5]||(g[5]=w=>l("tablet"))},null,8,["active"]),[[y,"Tablet",void 0,{bottom:!0}]]),ie("span",Ife,[pt(qe(V(er)[0])+"x"+qe(V(er)[1])+"px ",1),V(d)<1?(ce(),Se("span",Pfe,"("+qe((V(d)*100).toFixed(0))+"%)",1)):Je("",!0)])]),ie("div",Rfe,[ie("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":V(d),style:nn({"--viewport-width":`${V(er)[0]}px`,"--viewport-height":`${V(er)[1]}px`,"--tester-transform":`scale(${V(d)})`,"--tester-margin-left":V(h)})}," Select a test to run ",12,zfe)])])}}}),Hfe=Ei(Ffe,[["__scopeId","data-v-9fd23e63"]]),ex=ut({__name:"Modal",props:la({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Gu(e,"modelValue"),r=_e(()=>{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=_e(()=>{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(l,u)=>(ce(),Se("div",{class:it(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[ie("div",{class:it(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),ie("div",{class:it(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[V(r)]]),style:nn(t.value?{}:{transform:V(o)})},[xn(l.$slots,"default")],6)],2))}}),Bfe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Wfe={"p-4":"",relative:"",border:"base b"},qfe={op50:"","font-mono":"","text-sm":""},Ufe={op50:"","font-mono":"","text-sm":""},jfe={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Vfe=["src","alt"],Gfe={key:1},Kfe=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return b1("Escape",()=>{r("close")}),(o,s)=>{const l=Ai;return ce(),Se("div",Bfe,[ie("div",Wfe,[s[1]||(s[1]=ie("p",null,"Screenshot error",-1)),ie("p",qfe,qe(o.file),1),ie("p",Ufe,qe(o.name),1),Ie(l,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=u=>r("close"))})]),ie("div",jfe,[o.url?(ce(),Se("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,Vfe)):(ce(),Se("div",Gfe," Something was wrong, the image cannot be resolved. "))])])}}}),Xfe=Ei(Kfe,[["__scopeId","data-v-93900314"]]);function ea(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Ba=DM(),Yfe=SM(Ba),Jfe={class:"scrolls scrolls-rounded task-error"},Zfe=["onClickPassive"],Qfe=["innerHTML"],ede=ut({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(u){return u.startsWith(t.root)?u.slice(t.root.length):u}const o=_e(()=>_p(Ba.value)),s=_e(()=>{var u;return!!((u=t.error)!=null&&u.diff)}),l=_e(()=>t.error.diff?o.value.toHtml(ea(t.error.diff)):void 0);return(u,d)=>{const h=Qr("tooltip");return ce(),Se("div",Jfe,[ie("pre",null,[ie("b",null,qe(u.error.name||u.error.nameStr),1),pt(": "+qe(u.error.message),1)]),(ce(!0),Se(ct,null,Si(u.error.stacks,(p,g)=>(ce(),Se("div",{key:g,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ie("pre",null," - "+qe(r(p.file))+":"+qe(p.line)+":"+qe(p.column),1),V(efe)(p.file,u.filename)?vt((ce(),Se("div",{key:0,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:m=>V(q1)(p.file,p.line,p.column)},null,40,Zfe)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Je("",!0)]))),128)),V(s)?(ce(),Se("pre",{key:0,"data-testid":"diff",innerHTML:V(l)},null,8,Qfe)):Je("",!0)])}}}),tde=Ei(ede,[["__scopeId","data-v-9dd6eaea"]]),nde={"h-full":"",class:"scrolls"},rde=["id"],ide={flex:"~ gap-2 items-center"},ode={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},sde=["innerHTML"],lde={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},ade=ut({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(y,w){var C;return((C=y.result)==null?void 0:C.state)!=="fail"?[]:y.type==="test"?[{...y,level:w}]:[{...y,level:w},...y.tasks.flatMap($=>r($,w+1))]}function o(y,w){var E,T;let C="";return(E=w.message)!=null&&E.includes("\x1B")&&(C=`<b>${w.name}</b>: ${y.toHtml(ea(w.message))}`),((T=w.stack)==null?void 0:T.includes("\x1B"))&&(C.length>0?C+=y.toHtml(ea(w.stack)):C=`<b>${w.name}</b>: ${w.message}${y.toHtml(ea(w.stack))}`),C.length>0?C:null}function s(y,w){const C=_p(y);return w.map($=>{var A;const E=$.result;if(!E)return $;const T=(A=E.errors)==null?void 0:A.map(I=>o(C,I)).filter(I=>I!=null).join("<br><br>");return T!=null&&T.length&&(E.htmlError=T),$})}const l=_e(()=>{var E,T;const y=t.file,w=((E=y==null?void 0:y.tasks)==null?void 0:E.flatMap(A=>r(A,0)))??[],C=y==null?void 0:y.result;if((T=C==null?void 0:C.errors)==null?void 0:T[0]){const A={id:y.id,file:y,name:y.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:C};w.unshift(A)}return w.length>0?s(Ba.value,w):w});function u(y){var C;const w=(C=y.meta)==null?void 0:C.failScreenshotPath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}const d=Ue(!1),h=Ue(Date.now()),p=Ue(),g=_e(()=>{var C;const y=(C=p.value)==null?void 0:C.id,w=h.value;return y?`/__screenshot-error?id=${encodeURIComponent(y)}&t=${w}`:void 0});function m(y){p.value=y,h.value=Date.now(),d.value=!0}return xt(()=>[R1.value],([y])=>{if(y!=null){const w=document.querySelector(`[id='${y}'`);w!=null&&Tt(()=>{w.scrollIntoView()})}},{flush:"post"}),(y,w)=>{const C=Ai,$=tde,E=Xfe,T=ex,A=Qr("tooltip");return ce(),Se("div",nde,[V(l).length?(ce(!0),Se(ct,{key:0},Si(V(l),I=>{var L,H,G,oe;return ce(),Se("div",{id:I.id,key:I.id},[ie("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:nn({"margin-left":`${(L=I.result)!=null&&L.htmlError?.5:2*I.level+.5}rem`})},[ie("div",ide,[ie("span",null,qe(I.name),1),V(Ht)&&((H=I.meta)!=null&&H.failScreenshotPath)?(ce(),Se(ct,{key:0},[vt(Ie(C,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:ee=>m(I)},null,8,["onClick"]),[[A,"View screenshot error",void 0,{bottom:!0}]]),vt(Ie(C,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:ee=>u(I)},null,8,["onClick"]),[[A,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Je("",!0)]),(G=I.result)!=null&&G.htmlError?(ce(),Se("div",ode,[ie("pre",{innerHTML:I.result.htmlError},null,8,sde)])):(oe=I.result)!=null&&oe.errors?(ce(!0),Se(ct,{key:1},Si(I.result.errors,(ee,Z)=>{var Q;return ce(),nt($,{key:Z,error:ee,filename:(Q=y.file)==null?void 0:Q.name,root:V(lf).root},null,8,["error","filename","root"])}),128)):Je("",!0)],4)],8,rde)}),128)):(ce(),Se("div",lde," All tests passed in this file ")),V(Ht)?(ce(),nt(T,{key:2,modelValue:V(d),"onUpdate:modelValue":w[1]||(w[1]=I=>Ct(d)?d.value=I:null),direction:"right"},{default:rt(()=>[V(p)?(ce(),nt(Jb,{key:0},{default:rt(()=>[Ie(E,{file:V(p).file.filepath,name:V(p).name,url:V(g),onClose:w[0]||(w[0]=I=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Je("",!0)]),_:1},8,["modelValue"])):Je("",!0)])}}}),cde=Ei(ade,[["__scopeId","data-v-a8dae29b"]]),ude={border:"b base","p-4":""},fde=["innerHTML"],dde=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ce(),Se("div",ude,[ie("div",{"text-xs":"","mb-1":"",class:it(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},qe(t(r.time))+" | "+qe(r.taskName)+" | "+qe(r.type),3),ie("pre",{"data-type":"html",innerHTML:r.content},null,8,fde)]))}}),hde={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},pde={key:1,p6:""},gde=ut({__name:"ViewConsoleOutput",setup(e){const t=_e(()=>{const o=Z1.value;if(o){const s=_p(Ba.value);return o.map(({taskId:l,type:u,time:d,content:h})=>({taskId:l,type:u,time:d,content:s.toHtml(ea(h))}))}});function r(o){const s=o&>.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?UL(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var u;const l=dde;return(u=V(t))!=null&&u.length?(ce(),Se("div",hde,[(ce(!0),Se(ct,null,Si(V(t),({taskId:d,type:h,time:p,content:g})=>(ce(),Se("div",{key:d,"font-mono":""},[Ie(l,{"task-name":r(d),type:h,time:p,content:g},null,8,["task-name","type","time","content"])]))),128))])):(ce(),Se("div",pde,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),ie("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var Yc={exports:{}},vde=Yc.exports,D0;function tl(){return D0||(D0=1,function(e,t){(function(r,o){e.exports=o()})(vde,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),l=/MSIE \d/.test(r),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=l||u||d,p=h&&(l?document.documentMode||6:+(d||u)[1]),g=!d&&/WebKit\//.test(r),m=g&&/Qt\/\d+\.\d+/.test(r),y=!d&&/Chrome\/(\d+)/.exec(r),w=y&&+y[1],C=/Opera\//.test(r),$=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),T=/PhantomJS/.test(r),A=$&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),I=/Android/.test(r),L=A||I||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),H=A||/Mac/.test(o),G=/\bCrOS\b/.test(r),oe=/win/i.test(o),ee=C&&r.match(/Version\/(\d*\.\d*)/);ee&&(ee=Number(ee[1])),ee&&ee>=15&&(C=!1,g=!0);var Z=H&&(m||C&&(ee==null||ee<12.11)),Q=s||h&&p>=9;function F(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var N=function(n,i){var c=n.className,a=F(i).exec(c);if(a){var f=c.slice(a.index+a[0].length);n.className=c.slice(0,a.index)+(f?a[1]+f:"")}};function P(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function O(n,i){return P(n).appendChild(i)}function S(n,i,c,a){var f=document.createElement(n);if(c&&(f.className=c),a&&(f.style.cssText=a),typeof i=="string")f.appendChild(document.createTextNode(i));else if(i)for(var v=0;v<i.length;++v)f.appendChild(i[v]);return f}function R(n,i,c,a){var f=S(n,i,c,a);return f.setAttribute("role","presentation"),f}var j;document.createRange?j=function(n,i,c,a){var f=document.createRange();return f.setEnd(a||n,c),f.setStart(n,i),f}:j=function(n,i,c){var a=document.body.createTextRange();try{a.moveToElementText(n.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",c),a.moveStart("character",i),a};function ne(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 me(n){var i=n.ownerDocument||n,c;try{c=n.activeElement}catch{c=i.body||null}for(;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;return c}function xe(n,i){var c=n.className;F(i).test(c)||(n.className+=(c?" ":"")+i)}function Ne(n,i){for(var c=n.split(" "),a=0;a<c.length;a++)c[a]&&!F(c[a]).test(i)&&(i+=" "+c[a]);return i}var Re=function(n){n.select()};A?Re=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Re=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 re(n){return je(n).defaultView}function B(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function J(n,i,c){i||(i={});for(var a in n)n.hasOwnProperty(a)&&(c!==!1||!i.hasOwnProperty(a))&&(i[a]=n[a]);return i}function K(n,i,c,a,f){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var v=a||0,b=f||0;;){var x=n.indexOf(" ",v);if(x<0||x>=i)return b+(i-v);b+=x-v,b+=c-b%c,v=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var c=+new Date+n;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=c)};function pe(n,i){for(var c=0;c<n.length;++c)if(n[c]==i)return c;return-1}var z=50,W={toString:function(){return"CodeMirror.Pass"}},X={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function de(n,i,c){for(var a=0,f=0;;){var v=n.indexOf(" ",a);v==-1&&(v=n.length);var b=v-a;if(v==n.length||f+b>=i)return a+Math.min(b,i-f);if(f+=v-a,f+=c-f%c,a=v+1,f>=i)return a}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(ve(Ce)+" ");return Ce[n]}function ve(n){return n[n.length-1]}function ye(n,i){for(var c=[],a=0;a<n.length;a++)c[a]=i(n[a],a);return c}function We(n,i,c){for(var a=0,f=c(i);a<n.length&&c(n[a])<=f;)a++;n.splice(a,0,i)}function $e(){}function De(n,i){var c;return Object.create?c=Object.create(n):($e.prototype=n,c=new $e),i&&J(i,c),c}var Ve=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Ve.test(n))}function ot(n,i){return i?i.source.indexOf("\\w")>-1&&tt(n)?!0:i.test(n):tt(n)}function lt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function st(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Gt(n,i,c){for(;(c<0?i>0:i<n.length)&&st(n.charAt(i));)i+=c;return i}function Bt(n,i,c){for(var a=i>c?-1:1;;){if(i==c)return i;var f=(i+c)/2,v=a<0?Math.ceil(f):Math.floor(f);if(v==i)return n(v)?i:c;n(v)?c=v:i=v+a}}function Dn(n,i,c,a){if(!n)return a(i,c,"ltr",0);for(var f=!1,v=0;v<n.length;++v){var b=n[v];(b.from<c&&b.to>i||i==c&&b.to==i)&&(a(Math.max(b.from,i),Math.min(b.to,c),b.level==1?"rtl":"ltr",v),f=!0)}f||a(i,c,"ltr")}var zr=null;function Dt(n,i,c){var a;zr=null;for(var f=0;f<n.length;++f){var v=n[f];if(v.from<i&&v.to>i)return f;v.to==i&&(v.from!=v.to&&c=="before"?a=f:zr=f),v.from==i&&(v.from!=v.to&&c!="before"?a=f:zr=f)}return a??zr}var Fn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(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 a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,v=/[LRr]/,b=/[Lb1n]/,x=/[1n]/;function _(k,D,U){this.level=k,this.from=D,this.to=U}return function(k,D){var U=D=="ltr"?"L":"R";if(k.length==0||D=="ltr"&&!a.test(k))return!1;for(var te=k.length,Y=[],ae=0;ae<te;++ae)Y.push(c(k.charCodeAt(ae)));for(var ge=0,we=U;ge<te;++ge){var ke=Y[ge];ke=="m"?Y[ge]=we:we=ke}for(var Me=0,Te=U;Me<te;++Me){var Oe=Y[Me];Oe=="1"&&Te=="r"?Y[Me]="n":v.test(Oe)&&(Te=Oe,Oe=="r"&&(Y[Me]="R"))}for(var Be=1,ze=Y[0];Be<te-1;++Be){var Ze=Y[Be];Ze=="+"&&ze=="1"&&Y[Be+1]=="1"?Y[Be]="1":Ze==","&&ze==Y[Be+1]&&(ze=="1"||ze=="n")&&(Y[Be]=ze),ze=Ze}for(var St=0;St<te;++St){var Zt=Y[St];if(Zt==",")Y[St]="N";else if(Zt=="%"){var Mt=void 0;for(Mt=St+1;Mt<te&&Y[Mt]=="%";++Mt);for(var Wn=St&&Y[St-1]=="!"||Mt<te&&Y[Mt]=="1"?"1":"N",Cn=St;Cn<Mt;++Cn)Y[Cn]=Wn;St=Mt-1}}for(var Wt=0,En=U;Wt<te;++Wt){var sn=Y[Wt];En=="L"&&sn=="1"?Y[Wt]="L":v.test(sn)&&(En=sn)}for(var jt=0;jt<te;++jt)if(f.test(Y[jt])){var qt=void 0;for(qt=jt+1;qt<te&&f.test(Y[qt]);++qt);for(var Rt=(jt?Y[jt-1]:U)=="L",An=(qt<te?Y[qt]:U)=="L",bs=Rt==An?Rt?"L":"R":U,Bi=jt;Bi<qt;++Bi)Y[Bi]=bs;jt=qt-1}for(var dn=[],Wr,Qt=0;Qt<te;)if(b.test(Y[Qt])){var sd=Qt;for(++Qt;Qt<te&&b.test(Y[Qt]);++Qt);dn.push(new _(0,sd,Qt))}else{var ai=Qt,Lo=dn.length,Mo=D=="rtl"?1:0;for(++Qt;Qt<te&&Y[Qt]!="L";++Qt);for(var vn=ai;vn<Qt;)if(x.test(Y[vn])){ai<vn&&(dn.splice(Lo,0,new _(1,ai,vn)),Lo+=Mo);var ws=vn;for(++vn;vn<Qt&&x.test(Y[vn]);++vn);dn.splice(Lo,0,new _(2,ws,vn)),Lo+=Mo,ai=vn}else++vn;ai<Qt&&dn.splice(Lo,0,new _(1,ai,Qt))}return D=="ltr"&&(dn[0].level==1&&(Wr=k.match(/^\s+/))&&(dn[0].from=Wr[0].length,dn.unshift(new _(0,0,Wr[0].length))),ve(dn).level==1&&(Wr=k.match(/\s+$/))&&(ve(dn).to-=Wr[0].length,dn.push(new _(0,te-Wr[0].length,te)))),D=="rtl"?dn.reverse():dn}}();function et(n,i){var c=n.order;return c==null&&(c=n.order=Fn(n.text,i)),c}var ja=[],He=function(n,i,c){if(n.addEventListener)n.addEventListener(i,c,!1);else if(n.attachEvent)n.attachEvent("on"+i,c);else{var a=n._handlers||(n._handlers={});a[i]=(a[i]||ja).concat(c)}};function ti(n,i){return n._handlers&&n._handlers[i]||ja}function cn(n,i,c){if(n.removeEventListener)n.removeEventListener(i,c,!1);else if(n.detachEvent)n.detachEvent("on"+i,c);else{var a=n._handlers,f=a&&a[i];if(f){var v=pe(f,c);v>-1&&(a[i]=f.slice(0,v).concat(f.slice(v+1)))}}}function Ot(n,i){var c=ti(n,i);if(c.length)for(var a=Array.prototype.slice.call(arguments,2),f=0;f<c.length;++f)c[f].apply(null,a)}function It(n,i,c){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ot(n,c||i.type,n,i),Sn(i)||i.codemirrorIgnore}function sr(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var c=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),a=0;a<i.length;++a)pe(c,i[a])==-1&&c.push(i[a])}function Hn(n,i){return ti(n,i).length>0}function pr(n){n.prototype.on=function(i,c){He(this,i,c)},n.prototype.off=function(i,c){cn(this,i,c)}}function un(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Ko(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function Sn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Li(n){un(n),Ko(n)}function nl(n){return n.target||n.srcElement}function gr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),H&&n.ctrlKey&&i==1&&(i=3),i}var hf=function(){if(h&&p<9)return!1;var n=S("div");return"draggable"in n||"dragDrop"in n}(),Xo;function Va(n){if(Xo==null){var i=S("span","");O(n,S("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Xo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var c=Xo?S("span",""):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var rl;function Mi(n){if(rl!=null)return rl;var i=O(n,document.createTextNode("AخA")),c=j(i,0,1).getBoundingClientRect(),a=j(i,1,2).getBoundingClientRect();return P(n),!c||c.left==c.right?!1:rl=a.right-c.right<3}var lr=`
|
|
27
|
-
|
|
28
|
-
b`.split(/\n/).length!=3?function(n){for(var i=0,c=[],a=n.length;i<=a;){var f=n.indexOf(`
|
|
29
|
-
`,i);f==-1&&(f=n.length);var v=n.slice(i,n.charAt(f-1)=="\r"?f-1:f),b=v.indexOf("\r");b!=-1?(c.push(v.slice(0,b)),i+=b+1):(c.push(v),i=f+1)}return c}:function(n){return n.split(/\r\n?|\n/)},$i=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},Ga=function(){var n=S("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),vr=null;function pf(n){if(vr!=null)return vr;var i=O(n,S("span","x")),c=i.getBoundingClientRect(),a=j(i,0,1).getBoundingClientRect();return vr=Math.abs(c.left-a.left)>1}var Yo={},mr={};function yr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Yo[n]=i}function wo(n,i){mr[n]=i}function Jo(n){if(typeof n=="string"&&mr.hasOwnProperty(n))n=mr[n];else if(n&&typeof n.name=="string"&&mr.hasOwnProperty(n.name)){var i=mr[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 Jo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Jo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Zo(n,i){i=Jo(i);var c=Yo[i.name];if(!c)return Zo(n,"text/plain");var a=c(n,i);if(Ni.hasOwnProperty(i.name)){var f=Ni[i.name];for(var v in f)f.hasOwnProperty(v)&&(a.hasOwnProperty(v)&&(a["_"+v]=a[v]),a[v]=f[v])}if(a.name=i.name,i.helperType&&(a.helperType=i.helperType),i.modeProps)for(var b in i.modeProps)a[b]=i.modeProps[b];return a}var Ni={};function Qo(n,i){var c=Ni.hasOwnProperty(n)?Ni[n]:Ni[n]={};J(i,c)}function Dr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var c={};for(var a in i){var f=i[a];f instanceof Array&&(f=f.concat([])),c[a]=f}return c}function il(n,i){for(var c;n.innerMode&&(c=n.innerMode(i),!(!c||c.mode==n));)i=c.state,n=c.mode;return c||{mode:n,state:i}}function es(n,i,c){return n.startState?n.startState(i,c):!0}var Pt=function(n,i,c){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=c};Pt.prototype.eol=function(){return this.pos>=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Pt.prototype.eat=function(n){var i=this.string.charAt(this.pos),c;if(typeof n=="string"?c=i==n:c=i&&(n.test?n.test(i):n(i)),c)return++this.pos,i},Pt.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Pt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Pt.prototype.backUp=function(n){this.pos-=n},Pt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=K(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Pt.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Pt.prototype.match=function(n,i,c){if(typeof n=="string"){var a=function(b){return c?b.toLowerCase():b},f=this.string.substr(this.pos,n.length);if(a(f)==a(n))return i!==!1&&(this.pos+=n.length),!0}else{var v=this.string.slice(this.pos).match(n);return v&&v.index>0?null:(v&&i!==!1&&(this.pos+=v[0].length),v)}},Pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pt.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Pt.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Pt.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Pe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var c=n;!c.lines;)for(var a=0;;++a){var f=c.children[a],v=f.chunkSize();if(i<v){c=f;break}i-=v}return c.lines[i]}function ni(n,i,c){var a=[],f=i.line;return n.iter(i.line,c.line+1,function(v){var b=v.text;f==c.line&&(b=b.slice(0,c.ch)),f==i.line&&(b=b.slice(i.ch)),a.push(b),++f}),a}function ol(n,i,c){var a=[];return n.iter(i,c,function(f){a.push(f.text)}),a}function Yn(n,i){var c=i-n.height;if(c)for(var a=n;a;a=a.parent)a.height+=c}function M(n){if(n.parent==null)return null;for(var i=n.parent,c=pe(i.lines,n),a=i.parent;a;i=a,a=a.parent)for(var f=0;a.children[f]!=i;++f)c+=a.children[f].chunkSize();return c+i.first}function q(n,i){var c=n.first;e:do{for(var a=0;a<n.children.length;++a){var f=n.children[a],v=f.height;if(i<v){n=f;continue e}i-=v,c+=f.chunkSize()}return c}while(!n.lines);for(var b=0;b<n.lines.length;++b){var x=n.lines[b],_=x.height;if(i<_)break;i-=_}return c+b}function fe(n,i){return i>=n.first&&i<n.first+n.size}function be(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function se(n,i,c){if(c===void 0&&(c=null),!(this instanceof se))return new se(n,i,c);this.line=n,this.ch=i,this.sticky=c}function Le(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&Le(n,i)==0}function Kt(n){return se(n.line,n.ch)}function _n(n,i){return Le(n,i)<0?i:n}function ts(n,i){return Le(n,i)<0?n:i}function Bp(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 se(n.first,0);var c=n.first+n.size-1;return i.line>c?se(c,Pe(n,c).text.length):oS(i,Pe(n,i.line).text.length)}function oS(n,i){var c=n.ch;return c==null||c>i?se(n.line,i):c<0?se(n.line,0):n}function Wp(n,i){for(var c=[],a=0;a<i.length;a++)c[a]=Ke(n,i[a]);return c}var Ka=function(n,i){this.state=n,this.lookAhead=i},Fr=function(n,i,c,a){this.state=i,this.doc=n,this.line=c,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Fr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Fr.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}},Fr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Fr.fromSaved=function(n,i,c){return i instanceof Ka?new Fr(n,Dr(n.mode,i.state),c,i.lookAhead):new Fr(n,Dr(n.mode,i),c)},Fr.prototype.save=function(n){var i=n!==!1?Dr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ka(i,this.maxLookAhead):i};function qp(n,i,c,a){var f=[n.state.modeGen],v={};Xp(n,i.text,n.doc.mode,c,function(k,D){return f.push(k,D)},v,a);for(var b=c.state,x=function(k){c.baseTokens=f;var D=n.state.overlays[k],U=1,te=0;c.state=!0,Xp(n,i.text,D.mode,c,function(Y,ae){for(var ge=U;te<Y;){var we=f[U];we>Y&&f.splice(U,1,Y,f[U+1],we),U+=2,te=Math.min(Y,we)}if(ae)if(D.opaque)f.splice(ge,U-ge,Y,"overlay "+ae),U=ge+2;else for(;ge<U;ge+=2){var ke=f[ge+1];f[ge+1]=(ke?ke+" ":"")+"overlay "+ae}},v),c.state=b,c.baseTokens=null,c.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)x(_);return{styles:f,classes:v.bgClass||v.textClass?v:null}}function Up(n,i,c){if(!i.styles||i.styles[0]!=n.state.modeGen){var a=sl(n,M(i)),f=i.text.length>n.options.maxHighlightLength&&Dr(n.doc.mode,a.state),v=qp(n,i,a);f&&(a.state=f),i.stateAfter=a.save(!f),i.styles=v.styles,v.classes?i.styleClasses=v.classes:i.styleClasses&&(i.styleClasses=null),c===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function sl(n,i,c){var a=n.doc,f=n.display;if(!a.mode.startState)return new Fr(a,!0,i);var v=sS(n,i,c),b=v>a.first&&Pe(a,v-1).stateAfter,x=b?Fr.fromSaved(a,b,v):new Fr(a,es(a.mode),v);return a.iter(v,i,function(_){gf(n,_.text,x);var k=x.line;_.stateAfter=k==i-1||k%5==0||k>=f.viewFrom&&k<f.viewTo?x.save():null,x.nextLine()}),c&&(a.modeFrontier=x.line),x}function gf(n,i,c,a){var f=n.doc.mode,v=new Pt(i,n.options.tabSize,c);for(v.start=v.pos=a||0,i==""&&jp(f,c.state);!v.eol();)vf(f,v,c.state),v.start=v.pos}function jp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var c=il(n,i);if(c.mode.blankLine)return c.mode.blankLine(c.state)}}function vf(n,i,c,a){for(var f=0;f<10;f++){a&&(a[0]=il(n,c).mode);var v=n.token(i,c);if(i.pos>i.start)return v}throw new Error("Mode "+n.name+" failed to advance stream.")}var Vp=function(n,i,c){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=c};function Gp(n,i,c,a){var f=n.doc,v=f.mode,b;i=Ke(f,i);var x=Pe(f,i.line),_=sl(n,i.line,c),k=new Pt(x.text,n.options.tabSize,_),D;for(a&&(D=[]);(a||k.pos<i.ch)&&!k.eol();)k.start=k.pos,b=vf(v,k,_.state),a&&D.push(new Vp(k,b,Dr(f.mode,_.state)));return a?D:new Vp(k,b,_.state)}function Kp(n,i){if(n)for(;;){var c=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!c)break;n=n.slice(0,c.index)+n.slice(c.index+c[0].length);var a=c[1]?"bgClass":"textClass";i[a]==null?i[a]=c[2]:new RegExp("(?:^|\\s)"+c[2]+"(?:$|\\s)").test(i[a])||(i[a]+=" "+c[2])}return n}function Xp(n,i,c,a,f,v,b){var x=c.flattenSpans;x==null&&(x=n.options.flattenSpans);var _=0,k=null,D=new Pt(i,n.options.tabSize,a),U,te=n.options.addModeClass&&[null];for(i==""&&Kp(jp(c,a.state),v);!D.eol();){if(D.pos>n.options.maxHighlightLength?(x=!1,b&&gf(n,i,a,D.pos),D.pos=i.length,U=null):U=Kp(vf(c,D,a.state,te),v),te){var Y=te[0].name;Y&&(U="m-"+(U?Y+" "+U:Y))}if(!x||k!=U){for(;_<D.start;)_=Math.min(D.start,_+5e3),f(_,k);k=U}D.start=D.pos}for(;_<D.pos;){var ae=Math.min(D.pos,_+5e3);f(ae,k),_=ae}}function sS(n,i,c){for(var a,f,v=n.doc,b=c?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>b;--x){if(x<=v.first)return v.first;var _=Pe(v,x-1),k=_.stateAfter;if(k&&(!c||x+(k instanceof Ka?k.lookAhead:0)<=v.modeFrontier))return x;var D=K(_.text,null,n.options.tabSize);(f==null||a>D)&&(f=x-1,a=D)}return f}function lS(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var c=n.first,a=i-1;a>c;a--){var f=Pe(n,a).stateAfter;if(f&&(!(f instanceof Ka)||a+f.lookAhead<i)){c=a+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,c)}}var Yp=!1,ri=!1;function aS(){Yp=!0}function cS(){ri=!0}function Xa(n,i,c){this.marker=n,this.from=i,this.to=c}function ll(n,i){if(n)for(var c=0;c<n.length;++c){var a=n[c];if(a.marker==i)return a}}function uS(n,i){for(var c,a=0;a<n.length;++a)n[a]!=i&&(c||(c=[])).push(n[a]);return c}function fS(n,i,c){var a=c&&window.WeakSet&&(c.markedSpans||(c.markedSpans=new WeakSet));a&&n.markedSpans&&a.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],a&&a.add(n.markedSpans)),i.marker.attachLine(n)}function dS(n,i,c){var a;if(n)for(var f=0;f<n.length;++f){var v=n[f],b=v.marker,x=v.from==null||(b.inclusiveLeft?v.from<=i:v.from<i);if(x||v.from==i&&b.type=="bookmark"&&(!c||!v.marker.insertLeft)){var _=v.to==null||(b.inclusiveRight?v.to>=i:v.to>i);(a||(a=[])).push(new Xa(b,v.from,_?null:v.to))}}return a}function hS(n,i,c){var a;if(n)for(var f=0;f<n.length;++f){var v=n[f],b=v.marker,x=v.to==null||(b.inclusiveRight?v.to>=i:v.to>i);if(x||v.from==i&&b.type=="bookmark"&&(!c||v.marker.insertLeft)){var _=v.from==null||(b.inclusiveLeft?v.from<=i:v.from<i);(a||(a=[])).push(new Xa(b,_?null:v.from-i,v.to==null?null:v.to-i))}}return a}function mf(n,i){if(i.full)return null;var c=fe(n,i.from.line)&&Pe(n,i.from.line).markedSpans,a=fe(n,i.to.line)&&Pe(n,i.to.line).markedSpans;if(!c&&!a)return null;var f=i.from.ch,v=i.to.ch,b=Le(i.from,i.to)==0,x=dS(c,f,b),_=hS(a,v,b),k=i.text.length==1,D=ve(i.text).length+(k?f:0);if(x)for(var U=0;U<x.length;++U){var te=x[U];if(te.to==null){var Y=ll(_,te.marker);Y?k&&(te.to=Y.to==null?null:Y.to+D):te.to=f}}if(_)for(var ae=0;ae<_.length;++ae){var ge=_[ae];if(ge.to!=null&&(ge.to+=D),ge.from==null){var we=ll(x,ge.marker);we||(ge.from=D,k&&(x||(x=[])).push(ge))}else ge.from+=D,k&&(x||(x=[])).push(ge)}x&&(x=Jp(x)),_&&_!=x&&(_=Jp(_));var ke=[x];if(!k){var Me=i.text.length-2,Te;if(Me>0&&x)for(var Oe=0;Oe<x.length;++Oe)x[Oe].to==null&&(Te||(Te=[])).push(new Xa(x[Oe].marker,null,null));for(var Be=0;Be<Me;++Be)ke.push(Te);ke.push(_)}return ke}function Jp(n){for(var i=0;i<n.length;++i){var c=n[i];c.from!=null&&c.from==c.to&&c.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function pS(n,i,c){var a=null;if(n.iter(i.line,c.line+1,function(Y){if(Y.markedSpans)for(var ae=0;ae<Y.markedSpans.length;++ae){var ge=Y.markedSpans[ae].marker;ge.readOnly&&(!a||pe(a,ge)==-1)&&(a||(a=[])).push(ge)}}),!a)return null;for(var f=[{from:i,to:c}],v=0;v<a.length;++v)for(var b=a[v],x=b.find(0),_=0;_<f.length;++_){var k=f[_];if(!(Le(k.to,x.from)<0||Le(k.from,x.to)>0)){var D=[_,1],U=Le(k.from,x.from),te=Le(k.to,x.to);(U<0||!b.inclusiveLeft&&!U)&&D.push({from:k.from,to:x.from}),(te>0||!b.inclusiveRight&&!te)&&D.push({from:x.to,to:k.to}),f.splice.apply(f,D),_+=D.length-3}}return f}function Zp(n){var i=n.markedSpans;if(i){for(var c=0;c<i.length;++c)i[c].marker.detachLine(n);n.markedSpans=null}}function Qp(n,i){if(i){for(var c=0;c<i.length;++c)i[c].marker.attachLine(n);n.markedSpans=i}}function Ya(n){return n.inclusiveLeft?-1:0}function Ja(n){return n.inclusiveRight?1:0}function yf(n,i){var c=n.lines.length-i.lines.length;if(c!=0)return c;var a=n.find(),f=i.find(),v=Le(a.from,f.from)||Ya(n)-Ya(i);if(v)return-v;var b=Le(a.to,f.to)||Ja(n)-Ja(i);return b||i.id-n.id}function eg(n,i){var c=ri&&n.markedSpans,a;if(c)for(var f=void 0,v=0;v<c.length;++v)f=c[v],f.marker.collapsed&&(i?f.from:f.to)==null&&(!a||yf(a,f.marker)<0)&&(a=f.marker);return a}function tg(n){return eg(n,!0)}function Za(n){return eg(n,!1)}function gS(n,i){var c=ri&&n.markedSpans,a;if(c)for(var f=0;f<c.length;++f){var v=c[f];v.marker.collapsed&&(v.from==null||v.from<i)&&(v.to==null||v.to>i)&&(!a||yf(a,v.marker)<0)&&(a=v.marker)}return a}function ng(n,i,c,a,f){var v=Pe(n,i),b=ri&&v.markedSpans;if(b)for(var x=0;x<b.length;++x){var _=b[x];if(_.marker.collapsed){var k=_.marker.find(0),D=Le(k.from,c)||Ya(_.marker)-Ya(f),U=Le(k.to,a)||Ja(_.marker)-Ja(f);if(!(D>=0&&U<=0||D<=0&&U>=0)&&(D<=0&&(_.marker.inclusiveRight&&f.inclusiveLeft?Le(k.to,c)>=0:Le(k.to,c)>0)||D>=0&&(_.marker.inclusiveRight&&f.inclusiveLeft?Le(k.from,a)<=0:Le(k.from,a)<0)))return!0}}}function br(n){for(var i;i=tg(n);)n=i.find(-1,!0).line;return n}function vS(n){for(var i;i=Za(n);)n=i.find(1,!0).line;return n}function mS(n){for(var i,c;i=Za(n);)n=i.find(1,!0).line,(c||(c=[])).push(n);return c}function bf(n,i){var c=Pe(n,i),a=br(c);return c==a?i:M(a)}function rg(n,i){if(i>n.lastLine())return i;var c=Pe(n,i),a;if(!Oi(n,c))return i;for(;a=Za(c);)c=a.find(1,!0).line;return M(c)+1}function Oi(n,i){var c=ri&&i.markedSpans;if(c){for(var a=void 0,f=0;f<c.length;++f)if(a=c[f],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&wf(n,i,a))return!0}}}function wf(n,i,c){if(c.to==null){var a=c.marker.find(1,!0);return wf(n,a.line,ll(a.line.markedSpans,c.marker))}if(c.marker.inclusiveRight&&c.to==i.text.length)return!0;for(var f=void 0,v=0;v<i.markedSpans.length;++v)if(f=i.markedSpans[v],f.marker.collapsed&&!f.marker.widgetNode&&f.from==c.to&&(f.to==null||f.to!=c.from)&&(f.marker.inclusiveLeft||c.marker.inclusiveRight)&&wf(n,i,f))return!0}function ii(n){n=br(n);for(var i=0,c=n.parent,a=0;a<c.lines.length;++a){var f=c.lines[a];if(f==n)break;i+=f.height}for(var v=c.parent;v;c=v,v=c.parent)for(var b=0;b<v.children.length;++b){var x=v.children[b];if(x==c)break;i+=x.height}return i}function Qa(n){if(n.height==0)return 0;for(var i=n.text.length,c,a=n;c=tg(a);){var f=c.find(0,!0);a=f.from.line,i+=f.from.ch-f.to.ch}for(a=n;c=Za(a);){var v=c.find(0,!0);i-=a.text.length-v.from.ch,a=v.to.line,i+=a.text.length-v.to.ch}return i}function xf(n){var i=n.display,c=n.doc;i.maxLine=Pe(c,c.first),i.maxLineLength=Qa(i.maxLine),i.maxLineChanged=!0,c.iter(function(a){var f=Qa(a);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=a)})}var ns=function(n,i,c){this.text=n,Qp(this,i),this.height=c?c(this):1};ns.prototype.lineNo=function(){return M(this)},pr(ns);function yS(n,i,c,a){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Zp(n),Qp(n,c);var f=a?a(n):1;f!=n.height&&Yn(n,f)}function bS(n){n.parent=null,Zp(n)}var wS={},xS={};function ig(n,i){if(!n||/^\s*$/.test(n))return null;var c=i.addModeClass?xS:wS;return c[n]||(c[n]=n.replace(/\S+/g,"cm-$&"))}function og(n,i){var c=R("span",null,null,g?"padding-right: .1px":null),a={pre:R("pre",[c],"CodeMirror-line"),content:c,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var f=0;f<=(i.rest?i.rest.length:0);f++){var v=f?i.rest[f-1]:i.line,b=void 0;a.pos=0,a.addToken=_S,Mi(n.display.measure)&&(b=et(v,n.doc.direction))&&(a.addToken=TS(a.addToken,b)),a.map=[];var x=i!=n.display.externalMeasured&&M(v);CS(v,a,Up(n,v,x)),v.styleClasses&&(v.styleClasses.bgClass&&(a.bgClass=Ne(v.styleClasses.bgClass,a.bgClass||"")),v.styleClasses.textClass&&(a.textClass=Ne(v.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Va(n.display.measure))),f==0?(i.measure.map=a.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(a.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(g){var _=a.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Ot(n,"renderLine",n,i.line,a.pre),a.pre.className&&(a.textClass=Ne(a.pre.className,a.textClass||"")),a}function SS(n){var i=S("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function _S(n,i,c,a,f,v,b){if(i){var x=n.splitSpaces?kS(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 U=0;;){_.lastIndex=U;var te=_.exec(i),Y=te?te.index-U:i.length-U;if(Y){var ae=document.createTextNode(x.slice(U,U+Y));h&&p<9?D.appendChild(S("span",[ae])):D.appendChild(ae),n.map.push(n.pos,n.pos+Y,ae),n.col+=Y,n.pos+=Y}if(!te)break;U+=Y+1;var ge=void 0;if(te[0]==" "){var we=n.cm.options.tabSize,ke=we-n.col%we;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]==`
|
|
30
|
-
`?(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,c||a||f||k||v||b){var Me=c||"";a&&(Me+=a),f&&(Me+=f);var Te=S("span",[D],Me,v);if(b)for(var Oe in b)b.hasOwnProperty(Oe)&&Oe!="style"&&Oe!="class"&&Te.setAttribute(Oe,b[Oe]);return n.content.appendChild(Te)}n.content.appendChild(D)}}function kS(n,i){if(n.length>1&&!/ /.test(n))return n;for(var c=i,a="",f=0;f<n.length;f++){var v=n.charAt(f);v==" "&&c&&(f==n.length-1||n.charCodeAt(f+1)==32)&&(v=" "),a+=v,c=v==" "}return a}function TS(n,i){return function(c,a,f,v,b,x,_){f=f?f+" cm-force-border":"cm-force-border";for(var k=c.pos,D=k+a.length;;){for(var U=void 0,te=0;te<i.length&&(U=i[te],!(U.to>k&&U.from<=k));te++);if(U.to>=D)return n(c,a,f,v,b,x,_);n(c,a.slice(0,U.to-k),f,v,null,x,_),v=null,a=a.slice(U.to-k),k=U.to}}}function sg(n,i,c,a){var f=!a&&c.widgetNode;f&&n.map.push(n.pos,n.pos+i,f),!a&&n.cm.display.input.needsContentAttribute&&(f||(f=n.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",c.id)),f&&(n.cm.display.input.setUneditable(f),n.content.appendChild(f)),n.pos+=i,n.trailingSpace=!1}function CS(n,i,c){var a=n.markedSpans,f=n.text,v=0;if(!a){for(var b=1;b<c.length;b+=2)i.addToken(i,f.slice(v,v=c[b]),ig(c[b+1],i.cm.options));return}for(var x=f.length,_=0,k=1,D="",U,te,Y=0,ae,ge,we,ke,Me;;){if(Y==_){ae=ge=we=te="",Me=null,ke=null,Y=1/0;for(var Te=[],Oe=void 0,Be=0;Be<a.length;++Be){var ze=a[Be],Ze=ze.marker;if(Ze.type=="bookmark"&&ze.from==_&&Ze.widgetNode)Te.push(Ze);else if(ze.from<=_&&(ze.to==null||ze.to>_||Ze.collapsed&&ze.to==_&&ze.from==_)){if(ze.to!=null&&ze.to!=_&&Y>ze.to&&(Y=ze.to,ge=""),Ze.className&&(ae+=" "+Ze.className),Ze.css&&(te=(te?te+";":"")+Ze.css),Ze.startStyle&&ze.from==_&&(we+=" "+Ze.startStyle),Ze.endStyle&&ze.to==Y&&(Oe||(Oe=[])).push(Ze.endStyle,ze.to),Ze.title&&((Me||(Me={})).title=Ze.title),Ze.attributes)for(var St in Ze.attributes)(Me||(Me={}))[St]=Ze.attributes[St];Ze.collapsed&&(!ke||yf(ke.marker,Ze)<0)&&(ke=ze)}else ze.from>_&&Y>ze.from&&(Y=ze.from)}if(Oe)for(var Zt=0;Zt<Oe.length;Zt+=2)Oe[Zt+1]==Y&&(ge+=" "+Oe[Zt]);if(!ke||ke.from==_)for(var Mt=0;Mt<Te.length;++Mt)sg(i,0,Te[Mt]);if(ke&&(ke.from||0)==_){if(sg(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,Y);;){if(D){var Cn=_+D.length;if(!ke){var Wt=Cn>Wn?D.slice(0,Wn-_):D;i.addToken(i,Wt,U?U+ae:ae,we,_+Wt.length==Y?ge:"",te,Me)}if(Cn>=Wn){D=D.slice(Wn-_),_=Wn;break}_=Cn,we=""}D=f.slice(v,v=c[k++]),U=ig(c[k++],i.cm.options)}}}function lg(n,i,c){this.line=i,this.rest=mS(i),this.size=this.rest?M(ve(this.rest))-c+1:1,this.node=this.text=null,this.hidden=Oi(n,i)}function ec(n,i,c){for(var a=[],f,v=i;v<c;v=f){var b=new lg(n.doc,Pe(n.doc,v),v);f=v+b.size,a.push(b)}return a}var rs=null;function ES(n){rs?rs.ops.push(n):n.ownsGroup=rs={ops:[n],delayedCallbacks:[]}}function AS(n){var i=n.delayedCallbacks,c=0;do{for(;c<i.length;c++)i[c].call(null);for(var a=0;a<n.ops.length;a++){var f=n.ops[a];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(c<i.length)}function LS(n,i){var c=n.ownsGroup;if(c)try{AS(c)}finally{rs=null,i(c)}}var al=null;function Xt(n,i){var c=ti(n,i);if(c.length){var a=Array.prototype.slice.call(arguments,2),f;rs?f=rs.delayedCallbacks:al?f=al:(f=al=[],setTimeout(MS,0));for(var v=function(x){f.push(function(){return c[x].apply(null,a)})},b=0;b<c.length;++b)v(b)}}function MS(){var n=al;al=null;for(var i=0;i<n.length;++i)n[i]()}function ag(n,i,c,a){for(var f=0;f<i.changes.length;f++){var v=i.changes[f];v=="text"?NS(n,i):v=="gutter"?ug(n,i,c,a):v=="class"?Sf(n,i):v=="widget"&&OS(n,i,a)}i.changes=null}function cl(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 $S(n,i){var c=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(c&&(c+=" CodeMirror-linebackground"),i.background)c?i.background.className=c:(i.background.parentNode.removeChild(i.background),i.background=null);else if(c){var a=cl(i);i.background=a.insertBefore(S("div",null,c),a.firstChild),n.display.input.setUneditable(i.background)}}function cg(n,i){var c=n.display.externalMeasured;return c&&c.line==i.line?(n.display.externalMeasured=null,i.measure=c.measure,c.built):og(n,i)}function NS(n,i){var c=i.text.className,a=cg(n,i);i.text==i.node&&(i.node=a.pre),i.text.parentNode.replaceChild(a.pre,i.text),i.text=a.pre,a.bgClass!=i.bgClass||a.textClass!=i.textClass?(i.bgClass=a.bgClass,i.textClass=a.textClass,Sf(n,i)):c&&(i.text.className=c)}function Sf(n,i){$S(n,i),i.line.wrapClass?cl(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var c=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=c||""}function ug(n,i,c,a){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 f=cl(i);i.gutterBackground=S("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),f.insertBefore(i.gutterBackground,i.text)}var v=i.line.gutterMarkers;if(n.options.lineNumbers||v){var b=cl(i),x=i.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),n.display.input.setUneditable(x),b.insertBefore(x,i.text),i.line.gutterClass&&(x.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!v||!v["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(S("div",be(n.options,c),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),v)for(var _=0;_<n.display.gutterSpecs.length;++_){var k=n.display.gutterSpecs[_].className,D=v.hasOwnProperty(k)&&v[k];D&&x.appendChild(S("div",[D],"CodeMirror-gutter-elt","left: "+a.gutterLeft[k]+"px; width: "+a.gutterWidth[k]+"px"))}}}function OS(n,i,c){i.alignable&&(i.alignable=null);for(var a=F("CodeMirror-linewidget"),f=i.node.firstChild,v=void 0;f;f=v)v=f.nextSibling,a.test(f.className)&&i.node.removeChild(f);fg(n,i,c)}function IS(n,i,c,a){var f=cg(n,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),Sf(n,i),ug(n,i,c,a),fg(n,i,a),i.node}function fg(n,i,c){if(dg(n,i.line,i,c,!0),i.rest)for(var a=0;a<i.rest.length;a++)dg(n,i.rest[a],i,c,!1)}function dg(n,i,c,a,f){if(i.widgets)for(var v=cl(c),b=0,x=i.widgets;b<x.length;++b){var _=x[b],k=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),PS(_,k,c,a),n.display.input.setUneditable(k),f&&_.above?v.insertBefore(k,c.gutter||c.text):v.appendChild(k),Xt(_,"redraw")}}function PS(n,i,c,a){if(n.noHScroll){(c.alignable||(c.alignable=[])).push(i);var f=a.wrapperWidth;i.style.left=a.fixedPos+"px",n.coverGutter||(f-=a.gutterTotalWidth,i.style.paddingLeft=a.gutterTotalWidth+"px"),i.style.width=f+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-a.gutterTotalWidth+"px"))}function ul(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ne(document.body,n.node)){var c="position: relative;";n.coverGutter&&(c+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(c+="width: "+i.display.wrapper.clientWidth+"px;"),O(i.display.measure,S("div",[n.node],null,c))}return n.height=n.node.parentNode.offsetHeight}function oi(n,i){for(var c=nl(i);c!=n.wrapper;c=c.parentNode)if(!c||c.nodeType==1&&c.getAttribute("cm-ignore-events")=="true"||c.parentNode==n.sizer&&c!=n.mover)return!0}function tc(n){return n.lineSpace.offsetTop}function _f(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function hg(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=O(n.measure,S("pre","x","CodeMirror-line-like")),c=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,a={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(n.cachedPaddingH=a),a}function Hr(n){return z-n.display.nativeBarWidth}function xo(n){return n.display.scroller.clientWidth-Hr(n)-n.display.barWidth}function kf(n){return n.display.scroller.clientHeight-Hr(n)-n.display.barHeight}function RS(n,i,c){var a=n.options.lineWrapping,f=a&&xo(n);if(!i.measure.heights||a&&i.measure.width!=f){var v=i.measure.heights=[];if(a){i.measure.width=f;for(var b=i.text.firstChild.getClientRects(),x=0;x<b.length-1;x++){var _=b[x],k=b[x+1];Math.abs(_.bottom-k.bottom)>2&&v.push((_.bottom+k.top)/2-c.top)}}v.push(c.bottom-c.top)}}function pg(n,i,c){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var a=0;a<n.rest.length;a++)if(n.rest[a]==i)return{map:n.measure.maps[a],cache:n.measure.caches[a]};for(var f=0;f<n.rest.length;f++)if(M(n.rest[f])>c)return{map:n.measure.maps[f],cache:n.measure.caches[f],before:!0}}}function zS(n,i){i=br(i);var c=M(i),a=n.display.externalMeasured=new lg(n.doc,i,c);a.lineN=c;var f=a.built=og(n,a);return a.text=f.pre,O(n.display.lineMeasure,f.pre),a}function gg(n,i,c,a){return Br(n,is(n,i),c,a)}function Tf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[ko(n,i)];var c=n.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size)return c}function is(n,i){var c=M(i),a=Tf(n,c);a&&!a.text?a=null:a&&a.changes&&(ag(n,a,c,Mf(n)),n.curOp.forceUpdate=!0),a||(a=zS(n,i));var f=pg(a,i,c);return{line:i,view:a,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Br(n,i,c,a,f){i.before&&(c=-1);var v=c+(a||""),b;return i.cache.hasOwnProperty(v)?b=i.cache[v]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(RS(n,i.view,i.rect),i.hasHeights=!0),b=FS(n,i,c,a),b.bogus||(i.cache[v]=b)),{left:b.left,right:b.right,top:f?b.rtop:b.top,bottom:f?b.rbottom:b.bottom}}var vg={left:0,right:0,top:0,bottom:0};function mg(n,i,c){for(var a,f,v,b,x,_,k=0;k<n.length;k+=3)if(x=n[k],_=n[k+1],i<x?(f=0,v=1,b="left"):i<_?(f=i-x,v=f+1):(k==n.length-3||i==_&&n[k+3]>i)&&(v=_-x,f=v-1,i>=_&&(b="right")),f!=null){if(a=n[k+2],x==_&&c==(a.insertLeft?"left":"right")&&(b=c),c=="left"&&f==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)a=n[(k-=3)+2],b="left";if(c=="right"&&f==_-x)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)a=n[(k+=3)+2],b="right";break}return{node:a,start:f,end:v,collapse:b,coverStart:x,coverEnd:_}}function DS(n,i){var c=vg;if(i=="left")for(var a=0;a<n.length&&(c=n[a]).left==c.right;a++);else for(var f=n.length-1;f>=0&&(c=n[f]).left==c.right;f--);return c}function FS(n,i,c,a){var f=mg(i.map,c,a),v=f.node,b=f.start,x=f.end,_=f.collapse,k;if(v.nodeType==3){for(var D=0;D<4;D++){for(;b&&st(i.line.text.charAt(f.coverStart+b));)--b;for(;f.coverStart+x<f.coverEnd&&st(i.line.text.charAt(f.coverStart+x));)++x;if(h&&p<9&&b==0&&x==f.coverEnd-f.coverStart?k=v.parentNode.getBoundingClientRect():k=DS(j(v,b,x).getClientRects(),a),k.left||k.right||b==0)break;x=b,b=b-1,_="right"}h&&p<11&&(k=HS(n.display.measure,k))}else{b>0&&(_=a="right");var U;n.options.lineWrapping&&(U=v.getClientRects()).length>1?k=U[a=="right"?U.length-1:0]:k=v.getBoundingClientRect()}if(h&&p<9&&!b&&(!k||!k.left&&!k.right)){var te=v.parentNode.getClientRects()[0];te?k={left:te.left,right:te.left+ss(n.display),top:te.top,bottom:te.bottom}:k=vg}for(var Y=k.top-i.rect.top,ae=k.bottom-i.rect.top,ge=(Y+ae)/2,we=i.view.measure.heights,ke=0;ke<we.length-1&&!(ge<we[ke]);ke++);var Me=ke?we[ke-1]:0,Te=we[ke],Oe={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&&(Oe.bogus=!0),n.options.singleCursorHeightPerLine||(Oe.rtop=Y,Oe.rbottom=ae),Oe}function HS(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!pf(n))return i;var c=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*c,right:i.right*c,top:i.top*a,bottom:i.bottom*a}}function yg(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 bg(n){n.display.externalMeasure=null,P(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)yg(n.display.view[i])}function fl(n){bg(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function wg(n){return y&&I?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function xg(n){return y&&I?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Cf(n){var i=br(n),c=i.widgets,a=0;if(c)for(var f=0;f<c.length;++f)c[f].above&&(a+=ul(c[f]));return a}function nc(n,i,c,a,f){if(!f){var v=Cf(i);c.top+=v,c.bottom+=v}if(a=="line")return c;a||(a="local");var b=ii(i);if(a=="local"?b+=tc(n.display):b-=n.display.viewOffset,a=="page"||a=="window"){var x=n.display.lineSpace.getBoundingClientRect();b+=x.top+(a=="window"?0:xg(je(n)));var _=x.left+(a=="window"?0:wg(je(n)));c.left+=_,c.right+=_}return c.top+=b,c.bottom+=b,c}function Sg(n,i,c){if(c=="div")return i;var a=i.left,f=i.top;if(c=="page")a-=wg(je(n)),f-=xg(je(n));else if(c=="local"||!c){var v=n.display.sizer.getBoundingClientRect();a+=v.left,f+=v.top}var b=n.display.lineSpace.getBoundingClientRect();return{left:a-b.left,top:f-b.top}}function rc(n,i,c,a,f){return a||(a=Pe(n.doc,i.line)),nc(n,a,gg(n,a,i.ch,f),c)}function wr(n,i,c,a,f,v){a=a||Pe(n.doc,i.line),f||(f=is(n,a));function b(ae,ge){var we=Br(n,f,ae,ge?"right":"left",v);return ge?we.left=we.right:we.right=we.left,nc(n,a,we,c)}var x=et(a,n.doc.direction),_=i.ch,k=i.sticky;if(_>=a.text.length?(_=a.text.length,k="before"):_<=0&&(_=0,k="after"),!x)return b(k=="before"?_-1:_,k=="before");function D(ae,ge,we){var ke=x[ge],Me=ke.level==1;return b(we?ae-1:ae,Me!=we)}var U=Dt(x,_,k),te=zr,Y=D(_,U,k=="before");return te!=null&&(Y.other=D(_,te,k!="before")),Y}function _g(n,i){var c=0;i=Ke(n.doc,i),n.options.lineWrapping||(c=ss(n.display)*i.ch);var a=Pe(n.doc,i.line),f=ii(a)+tc(n.display);return{left:c,right:c,top:f,bottom:f+a.height}}function Ef(n,i,c,a,f){var v=se(n,i,c);return v.xRel=f,a&&(v.outside=a),v}function Af(n,i,c){var a=n.doc;if(c+=n.display.viewOffset,c<0)return Ef(a.first,0,null,-1,-1);var f=q(a,c),v=a.first+a.size-1;if(f>v)return Ef(a.first+a.size-1,Pe(a,v).text.length,null,1,1);i<0&&(i=0);for(var b=Pe(a,f);;){var x=BS(n,b,f,i,c),_=gS(b,x.ch+(x.xRel>0||x.outside>0?1:0));if(!_)return x;var k=_.find(1);if(k.line==f)return k;b=Pe(a,f=k.line)}}function kg(n,i,c,a){a-=Cf(i);var f=i.text.length,v=Bt(function(b){return Br(n,c,b-1).bottom<=a},f,0);return f=Bt(function(b){return Br(n,c,b).top>a},v,f),{begin:v,end:f}}function Tg(n,i,c,a){c||(c=is(n,i));var f=nc(n,i,Br(n,c,a),"line").top;return kg(n,i,c,f)}function Lf(n,i,c,a){return n.bottom<=c?!1:n.top>c?!0:(a?n.left:n.right)>i}function BS(n,i,c,a,f){f-=ii(i);var v=is(n,i),b=Cf(i),x=0,_=i.text.length,k=!0,D=et(i,n.doc.direction);if(D){var U=(n.options.lineWrapping?qS:WS)(n,i,c,v,D,a,f);k=U.level!=1,x=k?U.from:U.to-1,_=k?U.to:U.from-1}var te=null,Y=null,ae=Bt(function(Be){var ze=Br(n,v,Be);return ze.top+=b,ze.bottom+=b,Lf(ze,a,f,!1)?(ze.top<=f&&ze.left<=a&&(te=Be,Y=ze),!0):!1},x,_),ge,we,ke=!1;if(Y){var Me=a-Y.left<Y.right-a,Te=Me==k;ae=te+(Te?0:1),we=Te?"after":"before",ge=Me?Y.left:Y.right}else{!k&&(ae==_||ae==x)&&ae++,we=ae==0?"after":ae==i.text.length?"before":Br(n,v,ae-(k?1:0)).bottom+b<=f==k?"after":"before";var Oe=wr(n,se(c,ae,we),"line",i,v);ge=Oe.left,ke=f<Oe.top?-1:f>=Oe.bottom?1:0}return ae=Gt(i.text,ae,1),Ef(c,ae,we,ke,a-ge)}function WS(n,i,c,a,f,v,b){var x=Bt(function(U){var te=f[U],Y=te.level!=1;return Lf(wr(n,se(c,Y?te.to:te.from,Y?"before":"after"),"line",i,a),v,b,!0)},0,f.length-1),_=f[x];if(x>0){var k=_.level!=1,D=wr(n,se(c,k?_.from:_.to,k?"after":"before"),"line",i,a);Lf(D,v,b,!0)&&D.top>b&&(_=f[x-1])}return _}function qS(n,i,c,a,f,v,b){var x=kg(n,i,a,b),_=x.begin,k=x.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var D=null,U=null,te=0;te<f.length;te++){var Y=f[te];if(!(Y.from>=k||Y.to<=_)){var ae=Y.level!=1,ge=Br(n,a,ae?Math.min(k,Y.to)-1:Math.max(_,Y.from)).right,we=ge<v?v-ge+1e9:ge-v;(!D||U>we)&&(D=Y,U=we)}}return D||(D=f[f.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 So;function os(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(So==null){So=S("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)So.appendChild(document.createTextNode("x")),So.appendChild(S("br"));So.appendChild(document.createTextNode("x"))}O(n.measure,So);var c=So.offsetHeight/50;return c>3&&(n.cachedTextHeight=c),P(n.measure),c||1}function ss(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=S("span","xxxxxxxxxx"),c=S("pre",[i],"CodeMirror-line-like");O(n.measure,c);var a=i.getBoundingClientRect(),f=(a.right-a.left)/10;return f>2&&(n.cachedCharWidth=f),f||10}function Mf(n){for(var i=n.display,c={},a={},f=i.gutters.clientLeft,v=i.gutters.firstChild,b=0;v;v=v.nextSibling,++b){var x=n.display.gutterSpecs[b].className;c[x]=v.offsetLeft+v.clientLeft+f,a[x]=v.clientWidth}return{fixedPos:$f(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:c,gutterWidth:a,wrapperWidth:i.wrapper.clientWidth}}function $f(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Cg(n){var i=os(n.display),c=n.options.lineWrapping,a=c&&Math.max(5,n.display.scroller.clientWidth/ss(n.display)-3);return function(f){if(Oi(n.doc,f))return 0;var v=0;if(f.widgets)for(var b=0;b<f.widgets.length;b++)f.widgets[b].height&&(v+=f.widgets[b].height);return c?v+(Math.ceil(f.text.length/a)||1)*i:v+i}}function Nf(n){var i=n.doc,c=Cg(n);i.iter(function(a){var f=c(a);f!=a.height&&Yn(a,f)})}function _o(n,i,c,a){var f=n.display;if(!c&&nl(i).getAttribute("cm-not-content")=="true")return null;var v,b,x=f.lineSpace.getBoundingClientRect();try{v=i.clientX-x.left,b=i.clientY-x.top}catch{return null}var _=Af(n,v,b),k;if(a&&_.xRel>0&&(k=Pe(n.doc,_.line).text).length==_.ch){var D=K(k,k.length,n.options.tabSize)-k.length;_=se(_.line,Math.max(0,Math.round((v-hg(n.display).left)/ss(n.display))-D))}return _}function ko(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var c=n.display.view,a=0;a<c.length;a++)if(i-=c[a].size,i<0)return a}function kn(n,i,c,a){i==null&&(i=n.doc.first),c==null&&(c=n.doc.first+n.doc.size),a||(a=0);var f=n.display;if(a&&c<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>i)&&(f.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=f.viewTo)ri&&bf(n.doc,i)<f.viewTo&&Pi(n);else if(c<=f.viewFrom)ri&&rg(n.doc,c+a)>f.viewFrom?Pi(n):(f.viewFrom+=a,f.viewTo+=a);else if(i<=f.viewFrom&&c>=f.viewTo)Pi(n);else if(i<=f.viewFrom){var v=ic(n,c,c+a,1);v?(f.view=f.view.slice(v.index),f.viewFrom=v.lineN,f.viewTo+=a):Pi(n)}else if(c>=f.viewTo){var b=ic(n,i,i,-1);b?(f.view=f.view.slice(0,b.index),f.viewTo=b.lineN):Pi(n)}else{var x=ic(n,i,i,-1),_=ic(n,c,c+a,1);x&&_?(f.view=f.view.slice(0,x.index).concat(ec(n,x.lineN,_.lineN)).concat(f.view.slice(_.index)),f.viewTo+=a):Pi(n)}var k=f.externalMeasured;k&&(c<k.lineN?k.lineN+=a:i<k.lineN+k.size&&(f.externalMeasured=null))}function Ii(n,i,c){n.curOp.viewChanged=!0;var a=n.display,f=n.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size&&(a.externalMeasured=null),!(i<a.viewFrom||i>=a.viewTo)){var v=a.view[ko(n,i)];if(v.node!=null){var b=v.changes||(v.changes=[]);pe(b,c)==-1&&b.push(c)}}}function Pi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function ic(n,i,c,a){var f=ko(n,i),v,b=n.display.view;if(!ri||c==n.doc.first+n.doc.size)return{index:f,lineN:c};for(var x=n.display.viewFrom,_=0;_<f;_++)x+=b[_].size;if(x!=i){if(a>0){if(f==b.length-1)return null;v=x+b[f].size-i,f++}else v=x-i;i+=v,c+=v}for(;bf(n.doc,c)!=c;){if(f==(a<0?0:b.length-1))return null;c+=a*b[f-(a<0?1:0)].size,f+=a}return{index:f,lineN:c}}function US(n,i,c){var a=n.display,f=a.view;f.length==0||i>=a.viewTo||c<=a.viewFrom?(a.view=ec(n,i,c),a.viewFrom=i):(a.viewFrom>i?a.view=ec(n,i,a.viewFrom).concat(a.view):a.viewFrom<i&&(a.view=a.view.slice(ko(n,i))),a.viewFrom=i,a.viewTo<c?a.view=a.view.concat(ec(n,a.viewTo,c)):a.viewTo>c&&(a.view=a.view.slice(0,ko(n,c)))),a.viewTo=c}function Eg(n){for(var i=n.display.view,c=0,a=0;a<i.length;a++){var f=i[a];!f.hidden&&(!f.node||f.changes)&&++c}return c}function dl(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Ag(n,i){i===void 0&&(i=!0);var c=n.doc,a={},f=a.cursors=document.createDocumentFragment(),v=a.selection=document.createDocumentFragment(),b=n.options.$customCursor;b&&(i=!0);for(var x=0;x<c.sel.ranges.length;x++)if(!(!i&&x==c.sel.primIndex)){var _=c.sel.ranges[x];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var k=_.empty();if(b){var D=b(n,_);D&&Of(n,D,f)}else(k||n.options.showCursorWhenSelecting)&&Of(n,_.head,f);k||jS(n,_,v)}}return a}function Of(n,i,c){var a=wr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),f=c.appendChild(S("div"," ","CodeMirror-cursor"));if(f.style.left=a.left+"px",f.style.top=a.top+"px",f.style.height=Math.max(0,a.bottom-a.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var v=rc(n,i,"div",null,null),b=v.right-v.left;f.style.width=(b>0?b:n.defaultCharWidth())+"px"}if(a.other){var x=c.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=a.other.left+"px",x.style.top=a.other.top+"px",x.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function oc(n,i){return n.top-i.top||n.left-i.left}function jS(n,i,c){var a=n.display,f=n.doc,v=document.createDocumentFragment(),b=hg(n.display),x=b.left,_=Math.max(a.sizerWidth,xo(n)-a.sizer.offsetLeft)-b.right,k=f.direction=="ltr";function D(Te,Oe,Be,ze){Oe<0&&(Oe=0),Oe=Math.round(Oe),ze=Math.round(ze),v.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
|
|
31
|
-
top: `+Oe+"px; width: "+(Be??_-Te)+`px;
|
|
32
|
-
height: `+(ze-Oe)+"px"))}function U(Te,Oe,Be){var ze=Pe(f,Te),Ze=ze.text.length,St,Zt;function Mt(Wt,En){return rc(n,se(Te,Wt),"div",ze,En)}function Wn(Wt,En,sn){var jt=Tg(n,ze,null,Wt),qt=En=="ltr"==(sn=="after")?"left":"right",Rt=sn=="after"?jt.begin:jt.end-(/\s/.test(ze.text.charAt(jt.end-1))?2:1);return Mt(Rt,qt)[qt]}var Cn=et(ze,f.direction);return Dn(Cn,Oe||0,Be??Ze,function(Wt,En,sn,jt){var qt=sn=="ltr",Rt=Mt(Wt,qt?"left":"right"),An=Mt(En-1,qt?"right":"left"),bs=Oe==null&&Wt==0,Bi=Be==null&&En==Ze,dn=jt==0,Wr=!Cn||jt==Cn.length-1;if(An.top-Rt.top<=3){var Qt=(k?bs:Bi)&&dn,sd=(k?Bi:bs)&&Wr,ai=Qt?x:(qt?Rt:An).left,Lo=sd?_:(qt?An:Rt).right;D(ai,Rt.top,Lo-ai,Rt.bottom)}else{var Mo,vn,ws,ld;qt?(Mo=k&&bs&&dn?x:Rt.left,vn=k?_:Wn(Wt,sn,"before"),ws=k?x:Wn(En,sn,"after"),ld=k&&Bi&&Wr?_:An.right):(Mo=k?Wn(Wt,sn,"before"):x,vn=!k&&bs&&dn?_:Rt.right,ws=!k&&Bi&&Wr?x:An.left,ld=k?Wn(En,sn,"after"):_),D(Mo,Rt.top,vn-Mo,Rt.bottom),Rt.bottom<An.top&&D(x,Rt.bottom,null,An.top),D(ws,An.top,ld-ws,An.bottom)}(!St||oc(Rt,St)<0)&&(St=Rt),oc(An,St)<0&&(St=An),(!Zt||oc(Rt,Zt)<0)&&(Zt=Rt),oc(An,Zt)<0&&(Zt=An)}),{start:St,end:Zt}}var te=i.from(),Y=i.to();if(te.line==Y.line)U(te.line,te.ch,Y.ch);else{var ae=Pe(f,te.line),ge=Pe(f,Y.line),we=br(ae)==br(ge),ke=U(te.line,te.ch,we?ae.text.length+1:null).end,Me=U(Y.line,we?0:null,Y.ch).start;we&&(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)}c.appendChild(v)}function If(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var c=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||ls(n),i.cursorDiv.style.visibility=(c=!c)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Lg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Rf(n))}function Pf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&ls(n))},100)}function Rf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Ot(n,"focus",n,i),n.state.focused=!0,xe(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),g&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),If(n))}function ls(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Ot(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 sc(n){for(var i=n.display,c=i.lineDiv.offsetTop,a=Math.max(0,i.scroller.getBoundingClientRect().top),f=i.lineDiv.getBoundingClientRect().top,v=0,b=0;b<i.view.length;b++){var x=i.view[b],_=n.options.lineWrapping,k=void 0,D=0;if(!x.hidden){if(f+=x.line.height,h&&p<8){var U=x.node.offsetTop+x.node.offsetHeight;k=U-c,c=U}else{var te=x.node.getBoundingClientRect();k=te.bottom-te.top,!_&&x.text.firstChild&&(D=x.text.firstChild.getBoundingClientRect().right-te.left-1)}var Y=x.line.height-k;if((Y>.005||Y<-.005)&&(f<a&&(v-=Y),Yn(x.line,k),Mg(x.line),x.rest))for(var ae=0;ae<x.rest.length;ae++)Mg(x.rest[ae]);if(D>n.display.sizerWidth){var ge=Math.ceil(D/ss(n.display));ge>n.display.maxLineLength&&(n.display.maxLineLength=ge,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(v)>2&&(i.scroller.scrollTop+=v)}function Mg(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var c=n.widgets[i],a=c.node.parentNode;a&&(c.height=a.offsetHeight)}}function lc(n,i,c){var a=c&&c.top!=null?Math.max(0,c.top):n.scroller.scrollTop;a=Math.floor(a-tc(n));var f=c&&c.bottom!=null?c.bottom:a+n.wrapper.clientHeight,v=q(i,a),b=q(i,f);if(c&&c.ensure){var x=c.ensure.from.line,_=c.ensure.to.line;x<v?(v=x,b=q(i,ii(Pe(i,x))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=b&&(v=q(i,ii(Pe(i,_))-n.wrapper.clientHeight),b=_)}return{from:v,to:Math.max(b,v+1)}}function VS(n,i){if(!It(n,"scrollCursorIntoView")){var c=n.display,a=c.sizer.getBoundingClientRect(),f=null,v=c.wrapper.ownerDocument;if(i.top+a.top<0?f=!0:i.bottom+a.top>(v.defaultView.innerHeight||v.documentElement.clientHeight)&&(f=!1),f!=null&&!T){var b=S("div","",null,`position: absolute;
|
|
33
|
-
top: `+(i.top-c.viewOffset-tc(n.display))+`px;
|
|
34
|
-
height: `+(i.bottom-i.top+Hr(n)+c.barHeight)+`px;
|
|
35
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(b),b.scrollIntoView(f),n.display.lineSpace.removeChild(b)}}}function GS(n,i,c,a){a==null&&(a=0);var f;!n.options.lineWrapping&&i==c&&(c=i.sticky=="before"?se(i.line,i.ch+1,"before"):i,i=i.ch?se(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var v=0;v<5;v++){var b=!1,x=wr(n,i),_=!c||c==i?x:wr(n,c);f={left:Math.min(x.left,_.left),top:Math.min(x.top,_.top)-a,right:Math.max(x.left,_.left),bottom:Math.max(x.bottom,_.bottom)+a};var k=zf(n,f),D=n.doc.scrollTop,U=n.doc.scrollLeft;if(k.scrollTop!=null&&(pl(n,k.scrollTop),Math.abs(n.doc.scrollTop-D)>1&&(b=!0)),k.scrollLeft!=null&&(To(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-U)>1&&(b=!0)),!b)break}return f}function KS(n,i){var c=zf(n,i);c.scrollTop!=null&&pl(n,c.scrollTop),c.scrollLeft!=null&&To(n,c.scrollLeft)}function zf(n,i){var c=n.display,a=os(n.display);i.top<0&&(i.top=0);var f=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:c.scroller.scrollTop,v=kf(n),b={};i.bottom-i.top>v&&(i.bottom=i.top+v);var x=n.doc.height+_f(c),_=i.top<a,k=i.bottom>x-a;if(i.top<f)b.scrollTop=_?0:i.top;else if(i.bottom>f+v){var D=Math.min(i.top,(k?x:i.bottom)-v);D!=f&&(b.scrollTop=D)}var U=n.options.fixedGutter?0:c.gutters.offsetWidth,te=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:c.scroller.scrollLeft-U,Y=xo(n)-c.gutters.offsetWidth,ae=i.right-i.left>Y;return ae&&(i.right=i.left+Y),i.left<10?b.scrollLeft=0:i.left<te?b.scrollLeft=Math.max(0,i.left+U-(ae?0:10)):i.right>Y+te-3&&(b.scrollLeft=i.right+(ae?0:10)-Y),b}function Df(n,i){i!=null&&(ac(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function as(n){ac(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function hl(n,i,c){(i!=null||c!=null)&&ac(n),i!=null&&(n.curOp.scrollLeft=i),c!=null&&(n.curOp.scrollTop=c)}function XS(n,i){ac(n),n.curOp.scrollToPos=i}function ac(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var c=_g(n,i.from),a=_g(n,i.to);$g(n,c,a,i.margin)}}function $g(n,i,c,a){var f=zf(n,{left:Math.min(i.left,c.left),top:Math.min(i.top,c.top)-a,right:Math.max(i.right,c.right),bottom:Math.max(i.bottom,c.bottom)+a});hl(n,f.scrollLeft,f.scrollTop)}function pl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Hf(n,{top:i}),Ng(n,i,!0),s&&Hf(n),ml(n,100))}function Ng(n,i,c){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!c)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function To(n,i,c,a){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((c?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!a)&&(n.doc.scrollLeft=i,zg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function gl(n){var i=n.display,c=i.gutters.offsetWidth,a=Math.round(n.doc.height+_f(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?c:0,docHeight:a,scrollHeight:a+Hr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:c}}var Co=function(n,i,c){this.cm=c;var a=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=f.tabIndex=-1,n(a),n(f),He(a,"scroll",function(){a.clientHeight&&i(a.scrollTop,"vertical")}),He(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Co.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,c=n.scrollHeight>n.clientHeight+1,a=n.nativeBarWidth;if(c){this.vert.style.display="block",this.vert.style.bottom=i?a+"px":"0";var f=n.viewHeight-(i?a:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+f)+"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=c?a+"px":"0",this.horiz.style.left=n.barLeft+"px";var v=n.viewWidth-n.barLeft-(c?a:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+v)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:c?a:0,bottom:i?a:0}},Co.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Co.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Co.prototype.zeroWidthHack=function(){var n=H&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},Co.prototype.enableZeroWidthBar=function(n,i,c){n.style.visibility="";function a(){var f=n.getBoundingClientRect(),v=c=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);v!=n?n.style.visibility="hidden":i.set(1e3,a)}i.set(1e3,a)},Co.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var vl=function(){};vl.prototype.update=function(){return{bottom:0,right:0}},vl.prototype.setScrollLeft=function(){},vl.prototype.setScrollTop=function(){},vl.prototype.clear=function(){};function cs(n,i){i||(i=gl(n));var c=n.display.barWidth,a=n.display.barHeight;Og(n,i);for(var f=0;f<4&&c!=n.display.barWidth||a!=n.display.barHeight;f++)c!=n.display.barWidth&&n.options.lineWrapping&&sc(n),Og(n,gl(n)),c=n.display.barWidth,a=n.display.barHeight}function Og(n,i){var c=n.display,a=c.scrollbars.update(i);c.sizer.style.paddingRight=(c.barWidth=a.right)+"px",c.sizer.style.paddingBottom=(c.barHeight=a.bottom)+"px",c.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(c.scrollbarFiller.style.display="block",c.scrollbarFiller.style.height=a.bottom+"px",c.scrollbarFiller.style.width=a.right+"px"):c.scrollbarFiller.style.display="",a.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(c.gutterFiller.style.display="block",c.gutterFiller.style.height=a.bottom+"px",c.gutterFiller.style.width=i.gutterWidth+"px"):c.gutterFiller.style.display=""}var Ig={native:Co,null:vl};function Pg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&N(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Ig[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),He(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,c){c=="horizontal"?To(n,i):pl(n,i)},n),n.display.scrollbars.addClass&&xe(n.display.wrapper,n.display.scrollbars.addClass)}var YS=0;function Eo(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:++YS,markArrays:null},ES(n.curOp)}function Ao(n){var i=n.curOp;i&&LS(i,function(c){for(var a=0;a<c.ops.length;a++)c.ops[a].cm.curOp=null;JS(c)})}function JS(n){for(var i=n.ops,c=0;c<i.length;c++)ZS(i[c]);for(var a=0;a<i.length;a++)QS(i[a]);for(var f=0;f<i.length;f++)e_(i[f]);for(var v=0;v<i.length;v++)t_(i[v]);for(var b=0;b<i.length;b++)n_(i[b])}function ZS(n){var i=n.cm,c=i.display;i_(i),n.updateMaxLine&&xf(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<c.viewFrom||n.scrollToPos.to.line>=c.viewTo)||c.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new cc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function QS(n){n.updatedDisplay=n.mustUpdate&&Ff(n.cm,n.update)}function e_(n){var i=n.cm,c=i.display;n.updatedDisplay&&sc(i),n.barMeasure=gl(i),c.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=gg(i,c.maxLine,c.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(c.scroller.clientWidth,c.sizer.offsetLeft+n.adjustWidthTo+Hr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,c.sizer.offsetLeft+n.adjustWidthTo-xo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=c.input.prepareSelection())}function t_(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&To(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var c=n.focus&&n.focus==me(Xe(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,c),(n.updatedDisplay||n.startHeight!=i.doc.height)&&cs(i,n.barMeasure),n.updatedDisplay&&Wf(i,n.barMeasure),n.selectionChanged&&If(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),c&&Lg(n.cm)}function n_(n){var i=n.cm,c=i.display,a=i.doc;if(n.updatedDisplay&&Rg(i,n.update),c.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(c.wheelStartX=c.wheelStartY=null),n.scrollTop!=null&&Ng(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&To(i,n.scrollLeft,!0,!0),n.scrollToPos){var f=GS(i,Ke(a,n.scrollToPos.from),Ke(a,n.scrollToPos.to),n.scrollToPos.margin);VS(i,f)}var v=n.maybeHiddenMarkers,b=n.maybeUnhiddenMarkers;if(v)for(var x=0;x<v.length;++x)v[x].lines.length||Ot(v[x],"hide");if(b)for(var _=0;_<b.length;++_)b[_].lines.length&&Ot(b[_],"unhide");c.wrapper.offsetHeight&&(a.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Ot(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Bn(n,i){if(n.curOp)return i();Eo(n);try{return i()}finally{Ao(n)}}function Yt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Eo(n);try{return i.apply(n,arguments)}finally{Ao(n)}}}function gn(n){return function(){if(this.curOp)return n.apply(this,arguments);Eo(this);try{return n.apply(this,arguments)}finally{Ao(this)}}}function Jt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Eo(i);try{return n.apply(this,arguments)}finally{Ao(i)}}}function ml(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,B(r_,n))}function r_(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var c=+new Date+n.options.workTime,a=sl(n,i.highlightFrontier),f=[];i.iter(a.line,Math.min(i.first+i.size,n.display.viewTo+500),function(v){if(a.line>=n.display.viewFrom){var b=v.styles,x=v.text.length>n.options.maxHighlightLength?Dr(i.mode,a.state):null,_=qp(n,v,a,!0);x&&(a.state=x),v.styles=_.styles;var k=v.styleClasses,D=_.classes;D?v.styleClasses=D:k&&(v.styleClasses=null);for(var U=!b||b.length!=v.styles.length||k!=D&&(!k||!D||k.bgClass!=D.bgClass||k.textClass!=D.textClass),te=0;!U&&te<b.length;++te)U=b[te]!=v.styles[te];U&&f.push(a.line),v.stateAfter=a.save(),a.nextLine()}else v.text.length<=n.options.maxHighlightLength&&gf(n,v.text,a),v.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>c)return ml(n,n.options.workDelay),!0}),i.highlightFrontier=a.line,i.modeFrontier=Math.max(i.modeFrontier,a.line),f.length&&Bn(n,function(){for(var v=0;v<f.length;v++)Ii(n,f[v],"text")})}}var cc=function(n,i,c){var a=n.display;this.viewport=i,this.visible=lc(a,n.doc,i),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=xo(n),this.force=c,this.dims=Mf(n),this.events=[]};cc.prototype.signal=function(n,i){Hn(n,i)&&this.events.push(arguments)},cc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Ot.apply(null,this.events[n])};function i_(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Hr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Hr(n)+"px",i.scrollbarsClipped=!0)}function o_(n){if(n.hasFocus())return null;var i=me(Xe(n));if(!i||!ne(n.display.lineDiv,i))return null;var c={activeElt:i};if(window.getSelection){var a=re(n).getSelection();a.anchorNode&&a.extend&&ne(n.display.lineDiv,a.anchorNode)&&(c.anchorNode=a.anchorNode,c.anchorOffset=a.anchorOffset,c.focusNode=a.focusNode,c.focusOffset=a.focusOffset)}return c}function s_(n){if(!(!n||!n.activeElt||n.activeElt==me(Ye(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ne(document.body,n.anchorNode)&&ne(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,c=i.defaultView.getSelection(),a=i.createRange();a.setEnd(n.anchorNode,n.anchorOffset),a.collapse(!1),c.removeAllRanges(),c.addRange(a),c.extend(n.focusNode,n.focusOffset)}}function Ff(n,i){var c=n.display,a=n.doc;if(i.editorIsHidden)return Pi(n),!1;if(!i.force&&i.visible.from>=c.viewFrom&&i.visible.to<=c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>=c.viewTo)&&c.renderedView==c.view&&Eg(n)==0)return!1;Dg(n)&&(Pi(n),i.dims=Mf(n));var f=a.first+a.size,v=Math.max(i.visible.from-n.options.viewportMargin,a.first),b=Math.min(f,i.visible.to+n.options.viewportMargin);c.viewFrom<v&&v-c.viewFrom<20&&(v=Math.max(a.first,c.viewFrom)),c.viewTo>b&&c.viewTo-b<20&&(b=Math.min(f,c.viewTo)),ri&&(v=bf(n.doc,v),b=rg(n.doc,b));var x=v!=c.viewFrom||b!=c.viewTo||c.lastWrapHeight!=i.wrapperHeight||c.lastWrapWidth!=i.wrapperWidth;US(n,v,b),c.viewOffset=ii(Pe(n.doc,c.viewFrom)),n.display.mover.style.top=c.viewOffset+"px";var _=Eg(n);if(!x&&_==0&&!i.force&&c.renderedView==c.view&&(c.updateLineNumbers==null||c.updateLineNumbers>=c.viewTo))return!1;var k=o_(n);return _>4&&(c.lineDiv.style.display="none"),l_(n,c.updateLineNumbers,i.dims),_>4&&(c.lineDiv.style.display=""),c.renderedView=c.view,s_(k),P(c.cursorDiv),P(c.selectionDiv),c.gutters.style.height=c.sizer.style.minHeight=0,x&&(c.lastWrapHeight=i.wrapperHeight,c.lastWrapWidth=i.wrapperWidth,ml(n,400)),c.updateLineNumbers=null,!0}function Rg(n,i){for(var c=i.viewport,a=!0;;a=!1){if(!a||!n.options.lineWrapping||i.oldDisplayWidth==xo(n)){if(c&&c.top!=null&&(c={top:Math.min(n.doc.height+_f(n.display)-kf(n),c.top)}),i.visible=lc(n.display,n.doc,c),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else a&&(i.visible=lc(n.display,n.doc,c));if(!Ff(n,i))break;sc(n);var f=gl(n);dl(n),cs(n,f),Wf(n,f),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 Hf(n,i){var c=new cc(n,i);if(Ff(n,c)){sc(n),Rg(n,c);var a=gl(n);dl(n),cs(n,a),Wf(n,a),c.finish()}}function l_(n,i,c){var a=n.display,f=n.options.lineNumbers,v=a.lineDiv,b=v.firstChild;function x(ae){var ge=ae.nextSibling;return g&&H&&n.display.currentWheelTarget==ae?ae.style.display="none":ae.parentNode.removeChild(ae),ge}for(var _=a.view,k=a.viewFrom,D=0;D<_.length;D++){var U=_[D];if(!U.hidden)if(!U.node||U.node.parentNode!=v){var te=IS(n,U,k,c);v.insertBefore(te,b)}else{for(;b!=U.node;)b=x(b);var Y=f&&i!=null&&i<=k&&U.lineNumber;U.changes&&(pe(U.changes,"gutter")>-1&&(Y=!1),ag(n,U,k,c)),Y&&(P(U.lineNumber),U.lineNumber.appendChild(document.createTextNode(be(n.options,k)))),b=U.node.nextSibling}k+=U.size}for(;b;)b=x(b)}function Bf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Xt(n,"gutterChanged",n)}function Wf(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+Hr(n)+"px"}function zg(n){var i=n.display,c=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var a=$f(i)-i.scroller.scrollLeft+n.doc.scrollLeft,f=i.gutters.offsetWidth,v=a+"px",b=0;b<c.length;b++)if(!c[b].hidden){n.options.fixedGutter&&(c[b].gutter&&(c[b].gutter.style.left=v),c[b].gutterBackground&&(c[b].gutterBackground.style.left=v));var x=c[b].alignable;if(x)for(var _=0;_<x.length;_++)x[_].style.left=v}n.options.fixedGutter&&(i.gutters.style.left=a+f+"px")}}function Dg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,c=be(n.options,i.first+i.size-1),a=n.display;if(c.length!=a.lineNumChars){var f=a.measure.appendChild(S("div",[S("div",c)],"CodeMirror-linenumber CodeMirror-gutter-elt")),v=f.firstChild.offsetWidth,b=f.offsetWidth-v;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(v,a.lineGutter.offsetWidth-b)+1,a.lineNumWidth=a.lineNumInnerWidth+b,a.lineNumChars=a.lineNumInnerWidth?c.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Bf(n.display),!0}return!1}function qf(n,i){for(var c=[],a=!1,f=0;f<n.length;f++){var v=n[f],b=null;if(typeof v!="string"&&(b=v.style,v=v.className),v=="CodeMirror-linenumbers")if(i)a=!0;else continue;c.push({className:v,style:b})}return i&&!a&&c.push({className:"CodeMirror-linenumbers",style:null}),c}function Fg(n){var i=n.gutters,c=n.gutterSpecs;P(i),n.lineGutter=null;for(var a=0;a<c.length;++a){var f=c[a],v=f.className,b=f.style,x=i.appendChild(S("div",null,"CodeMirror-gutter "+v));b&&(x.style.cssText=b),v=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=c.length?"":"none",Bf(n)}function yl(n){Fg(n.display),kn(n),zg(n)}function a_(n,i,c,a){var f=this;this.input=c,f.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=R("div",null,"CodeMirror-code"),f.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=S("div",null,"CodeMirror-cursors"),f.measure=S("div",null,"CodeMirror-measure"),f.lineMeasure=S("div",null,"CodeMirror-measure"),f.lineSpace=R("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var v=R("div",[f.lineSpace],"CodeMirror-lines");f.mover=S("div",[v],null,"position: relative"),f.sizer=S("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=S("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),f.gutters=S("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=S("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=S("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),y&&w>=105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),h&&p<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(s&&L)&&(f.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(f.wrapper):n(f.wrapper)),f.viewFrom=f.viewTo=i.first,f.reportedViewFrom=f.reportedViewTo=i.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=qf(a.gutters,a.lineNumbers),Fg(f),c.init(f)}var uc=0,si=null;h?si=-.53:s?si=15:y?si=-.7:$&&(si=-1/3);function Hg(n){var i=n.wheelDeltaX,c=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),c==null&&n.detail&&n.axis==n.VERTICAL_AXIS?c=n.detail:c==null&&(c=n.wheelDelta),{x:i,y:c}}function c_(n){var i=Hg(n);return i.x*=si,i.y*=si,i}function Bg(n,i){y&&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 c=Hg(i),a=c.x,f=c.y,v=si;i.deltaMode===0&&(a=i.deltaX,f=i.deltaY,v=1);var b=n.display,x=b.scroller,_=x.scrollWidth>x.clientWidth,k=x.scrollHeight>x.clientHeight;if(a&&_||f&&k){if(f&&H&&g){e:for(var D=i.target,U=b.view;D!=x;D=D.parentNode)for(var te=0;te<U.length;te++)if(U[te].node==D){n.display.currentWheelTarget=D;break e}}if(a&&!s&&!C&&v!=null){f&&k&&pl(n,Math.max(0,x.scrollTop+f*v)),To(n,Math.max(0,x.scrollLeft+a*v)),(!f||f&&k)&&un(i),b.wheelStartX=null;return}if(f&&v!=null){var Y=f*v,ae=n.doc.scrollTop,ge=ae+b.wrapper.clientHeight;Y<0?ae=Math.max(0,ae+Y-50):ge=Math.min(n.doc.height,ge+Y+50),Hf(n,{top:ae,bottom:ge})}uc<20&&i.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=x.scrollLeft,b.wheelStartY=x.scrollTop,b.wheelDX=a,b.wheelDY=f,setTimeout(function(){if(b.wheelStartX!=null){var we=x.scrollLeft-b.wheelStartX,ke=x.scrollTop-b.wheelStartY,Me=ke&&b.wheelDY&&ke/b.wheelDY||we&&b.wheelDX&&we/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Me&&(si=(si*uc+Me)/(uc+1),++uc)}},200)):(b.wheelDX+=a,b.wheelDY+=f))}}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 c=this.ranges[i],a=n.ranges[i];if(!ft(c.anchor,a.anchor)||!ft(c.head,a.head))return!1}return!0},Jn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new dt(Kt(this.ranges[i].anchor),Kt(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 c=0;c<this.ranges.length;c++){var a=this.ranges[c];if(Le(i,a.from())>=0&&Le(n,a.to())<=0)return c}return-1};var dt=function(n,i){this.anchor=n,this.head=i};dt.prototype.from=function(){return ts(this.anchor,this.head)},dt.prototype.to=function(){return _n(this.anchor,this.head)},dt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xr(n,i,c){var a=n&&n.options.selectionsMayTouch,f=i[c];i.sort(function(te,Y){return Le(te.from(),Y.from())}),c=pe(i,f);for(var v=1;v<i.length;v++){var b=i[v],x=i[v-1],_=Le(x.to(),b.from());if(a&&!b.empty()?_>0:_>=0){var k=ts(x.from(),b.from()),D=_n(x.to(),b.to()),U=x.empty()?b.from()==b.head:x.from()==x.head;v<=c&&--c,i.splice(--v,2,new dt(U?D:k,U?k:D))}}return new Jn(i,c)}function Ri(n,i){return new Jn([new dt(n,i||n)],0)}function zi(n){return n.text?se(n.from.line+n.text.length-1,ve(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function Wg(n,i){if(Le(n,i.from)<0)return n;if(Le(n,i.to)<=0)return zi(i);var c=n.line+i.text.length-(i.to.line-i.from.line)-1,a=n.ch;return n.line==i.to.line&&(a+=zi(i).ch-i.to.ch),se(c,a)}function Uf(n,i){for(var c=[],a=0;a<n.sel.ranges.length;a++){var f=n.sel.ranges[a];c.push(new dt(Wg(f.anchor,i),Wg(f.head,i)))}return xr(n.cm,c,n.sel.primIndex)}function qg(n,i,c){return n.line==i.line?se(c.line,n.ch-i.ch+c.ch):se(c.line+(n.line-i.line),n.ch)}function u_(n,i,c){for(var a=[],f=se(n.first,0),v=f,b=0;b<i.length;b++){var x=i[b],_=qg(x.from,f,v),k=qg(zi(x),f,v);if(f=x.to,v=k,c=="around"){var D=n.sel.ranges[b],U=Le(D.head,D.anchor)<0;a[b]=new dt(U?k:_,U?_:k)}else a[b]=new dt(_,_)}return new Jn(a,n.sel.primIndex)}function jf(n){n.doc.mode=Zo(n.options,n.doc.modeOption),bl(n)}function bl(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,ml(n,100),n.state.modeGen++,n.curOp&&kn(n)}function Ug(n,i){return i.from.ch==0&&i.to.ch==0&&ve(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Vf(n,i,c,a){function f(Me){return c?c[Me]:null}function v(Me,Te,Oe){yS(Me,Te,Oe,a),Xt(Me,"change",Me,i)}function b(Me,Te){for(var Oe=[],Be=Me;Be<Te;++Be)Oe.push(new ns(k[Be],f(Be),a));return Oe}var x=i.from,_=i.to,k=i.text,D=Pe(n,x.line),U=Pe(n,_.line),te=ve(k),Y=f(k.length-1),ae=_.line-x.line;if(i.full)n.insert(0,b(0,k.length)),n.remove(k.length,n.size-k.length);else if(Ug(n,i)){var ge=b(0,k.length-1);v(U,U.text,Y),ae&&n.remove(x.line,ae),ge.length&&n.insert(x.line,ge)}else if(D==U)if(k.length==1)v(D,D.text.slice(0,x.ch)+te+D.text.slice(_.ch),Y);else{var we=b(1,k.length-1);we.push(new ns(te+D.text.slice(_.ch),Y,a)),v(D,D.text.slice(0,x.ch)+k[0],f(0)),n.insert(x.line+1,we)}else if(k.length==1)v(D,D.text.slice(0,x.ch)+k[0]+U.text.slice(_.ch),f(0)),n.remove(x.line+1,ae);else{v(D,D.text.slice(0,x.ch)+k[0],f(0)),v(U,te+U.text.slice(_.ch),Y);var ke=b(1,k.length-1);ae>1&&n.remove(x.line+1,ae-1),n.insert(x.line+1,ke)}Xt(n,"change",n,i)}function Di(n,i,c){function a(f,v,b){if(f.linked)for(var x=0;x<f.linked.length;++x){var _=f.linked[x];if(_.doc!=v){var k=b&&_.sharedHist;c&&!k||(i(_.doc,k),a(_.doc,f,k))}}}a(n,null,!0)}function jg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Nf(n),jf(n),Vg(n),n.options.direction=i.direction,n.options.lineWrapping||xf(n),n.options.mode=i.modeOption,kn(n)}function Vg(n){(n.doc.direction=="rtl"?xe:N)(n.display.lineDiv,"CodeMirror-rtl")}function f_(n){Bn(n,function(){Vg(n),kn(n)})}function fc(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 Gf(n,i){var c={from:Kt(i.from),to:zi(i),text:ni(n,i.from,i.to)};return Xg(n,c,i.from.line,i.to.line+1),Di(n,function(a){return Xg(a,c,i.from.line,i.to.line+1)},!0),c}function Gg(n){for(;n.length;){var i=ve(n);if(i.ranges)n.pop();else break}}function d_(n,i){if(i)return Gg(n.done),ve(n.done);if(n.done.length&&!ve(n.done).ranges)return ve(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ve(n.done)}function Kg(n,i,c,a){var f=n.history;f.undone.length=0;var v=+new Date,b,x;if((f.lastOp==a||f.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&f.lastModTime>v-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(b=d_(f,f.lastOp==a)))x=ve(b.changes),Le(i.from,i.to)==0&&Le(i.from,x.to)==0?x.to=zi(i):b.changes.push(Gf(n,i));else{var _=ve(f.done);for((!_||!_.ranges)&&dc(n.sel,f.done),b={changes:[Gf(n,i)],generation:f.generation},f.done.push(b);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(c),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=v,f.lastOp=f.lastSelOp=a,f.lastOrigin=f.lastSelOrigin=i.origin,x||Ot(n,"historyAdded")}function h_(n,i,c,a){var f=i.charAt(0);return f=="*"||f=="+"&&c.ranges.length==a.ranges.length&&c.somethingSelected()==a.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function p_(n,i,c,a){var f=n.history,v=a&&a.origin;c==f.lastSelOp||v&&f.lastSelOrigin==v&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==v||h_(n,v,ve(f.done),i))?f.done[f.done.length-1]=i:dc(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=v,f.lastSelOp=c,a&&a.clearRedo!==!1&&Gg(f.undone)}function dc(n,i){var c=ve(i);c&&c.ranges&&c.equals(n)||i.push(n)}function Xg(n,i,c,a){var f=i["spans_"+n.id],v=0;n.iter(Math.max(n.first,c),Math.min(n.first+n.size,a),function(b){b.markedSpans&&((f||(f=i["spans_"+n.id]={}))[v]=b.markedSpans),++v})}function g_(n){if(!n)return null;for(var i,c=0;c<n.length;++c)n[c].marker.explicitlyCleared?i||(i=n.slice(0,c)):i&&i.push(n[c]);return i?i.length?i:null:n}function v_(n,i){var c=i["spans_"+n.id];if(!c)return null;for(var a=[],f=0;f<i.text.length;++f)a.push(g_(c[f]));return a}function Yg(n,i){var c=v_(n,i),a=mf(n,i);if(!c)return a;if(!a)return c;for(var f=0;f<c.length;++f){var v=c[f],b=a[f];if(v&&b)e:for(var x=0;x<b.length;++x){for(var _=b[x],k=0;k<v.length;++k)if(v[k].marker==_.marker)continue e;v.push(_)}else b&&(c[f]=b)}return c}function us(n,i,c){for(var a=[],f=0;f<n.length;++f){var v=n[f];if(v.ranges){a.push(c?Jn.prototype.deepCopy.call(v):v);continue}var b=v.changes,x=[];a.push({changes:x});for(var _=0;_<b.length;++_){var k=b[_],D=void 0;if(x.push({from:k.from,to:k.to,text:k.text}),i)for(var U in k)(D=U.match(/^spans_(\d+)$/))&&pe(i,Number(D[1]))>-1&&(ve(x)[U]=k[U],delete k[U])}}return a}function Kf(n,i,c,a){if(a){var f=n.anchor;if(c){var v=Le(i,f)<0;v!=Le(c,f)<0?(f=i,i=c):v!=Le(i,c)<0&&(i=c)}return new dt(f,i)}else return new dt(c||i,i)}function hc(n,i,c,a,f){f==null&&(f=n.cm&&(n.cm.display.shift||n.extend)),fn(n,new Jn([Kf(n.sel.primary(),i,c,f)],0),a)}function Jg(n,i,c){for(var a=[],f=n.cm&&(n.cm.display.shift||n.extend),v=0;v<n.sel.ranges.length;v++)a[v]=Kf(n.sel.ranges[v],i[v],null,f);var b=xr(n.cm,a,n.sel.primIndex);fn(n,b,c)}function Xf(n,i,c,a){var f=n.sel.ranges.slice(0);f[i]=c,fn(n,xr(n.cm,f,n.sel.primIndex),a)}function Zg(n,i,c,a){fn(n,Ri(i,c),a)}function m_(n,i,c){var a={ranges:i.ranges,update:function(f){this.ranges=[];for(var v=0;v<f.length;v++)this.ranges[v]=new dt(Ke(n,f[v].anchor),Ke(n,f[v].head))},origin:c&&c.origin};return Ot(n,"beforeSelectionChange",n,a),n.cm&&Ot(n.cm,"beforeSelectionChange",n.cm,a),a.ranges!=i.ranges?xr(n.cm,a.ranges,a.ranges.length-1):i}function Qg(n,i,c){var a=n.history.done,f=ve(a);f&&f.ranges?(a[a.length-1]=i,pc(n,i,c)):fn(n,i,c)}function fn(n,i,c){pc(n,i,c),p_(n,n.sel,n.cm?n.cm.curOp.id:NaN,c)}function pc(n,i,c){(Hn(n,"beforeSelectionChange")||n.cm&&Hn(n.cm,"beforeSelectionChange"))&&(i=m_(n,i,c));var a=c&&c.bias||(Le(i.primary().head,n.sel.primary().head)<0?-1:1);ev(n,nv(n,i,a,!0)),!(c&&c.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&as(n.cm)}function ev(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,sr(n.cm)),Xt(n,"cursorActivity",n))}function tv(n){ev(n,nv(n,n.sel,null,!1))}function nv(n,i,c,a){for(var f,v=0;v<i.ranges.length;v++){var b=i.ranges[v],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[v],_=gc(n,b.anchor,x&&x.anchor,c,a),k=b.head==b.anchor?_:gc(n,b.head,x&&x.head,c,a);(f||_!=b.anchor||k!=b.head)&&(f||(f=i.ranges.slice(0,v)),f[v]=new dt(_,k))}return f?xr(n.cm,f,i.primIndex):i}function fs(n,i,c,a,f){var v=Pe(n,i.line);if(v.markedSpans)for(var b=0;b<v.markedSpans.length;++b){var x=v.markedSpans[b],_=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(f&&(Ot(_,"beforeCursorEnter"),_.explicitlyCleared))if(v.markedSpans){--b;continue}else break;if(!_.atomic)continue;if(c){var U=_.find(a<0?1:-1),te=void 0;if((a<0?D:k)&&(U=rv(n,U,-a,U&&U.line==i.line?v:null)),U&&U.line==i.line&&(te=Le(U,c))&&(a<0?te<0:te>0))return fs(n,U,i,a,f)}var Y=_.find(a<0?-1:1);return(a<0?k:D)&&(Y=rv(n,Y,a,Y.line==i.line?v:null)),Y?fs(n,Y,i,a,f):null}}return i}function gc(n,i,c,a,f){var v=a||1,b=fs(n,i,c,v,f)||!f&&fs(n,i,c,v,!0)||fs(n,i,c,-v,f)||!f&&fs(n,i,c,-v,!0);return b||(n.cantEdit=!0,se(n.first,0))}function rv(n,i,c,a){return c<0&&i.ch==0?i.line>n.first?Ke(n,se(i.line-1)):null:c>0&&i.ch==(a||Pe(n,i.line)).text.length?i.line<n.first+n.size-1?se(i.line+1,0):null:new se(i.line,i.ch+c)}function iv(n){n.setSelection(se(n.firstLine(),0),se(n.lastLine()),X)}function ov(n,i,c){var a={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return a.canceled=!0}};return c&&(a.update=function(f,v,b,x){f&&(a.from=Ke(n,f)),v&&(a.to=Ke(n,v)),b&&(a.text=b),x!==void 0&&(a.origin=x)}),Ot(n,"beforeChange",n,a),n.cm&&Ot(n.cm,"beforeChange",n.cm,a),a.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function ds(n,i,c){if(n.cm){if(!n.cm.curOp)return Yt(n.cm,ds)(n,i,c);if(n.cm.state.suppressEdits)return}if(!((Hn(n,"beforeChange")||n.cm&&Hn(n.cm,"beforeChange"))&&(i=ov(n,i,!0),!i))){var a=Yp&&!c&&pS(n,i.from,i.to);if(a)for(var f=a.length-1;f>=0;--f)sv(n,{from:a[f].from,to:a[f].to,text:f?[""]:i.text,origin:i.origin});else sv(n,i)}}function sv(n,i){if(!(i.text.length==1&&i.text[0]==""&&Le(i.from,i.to)==0)){var c=Uf(n,i);Kg(n,i,c,n.cm?n.cm.curOp.id:NaN),wl(n,i,c,mf(n,i));var a=[];Di(n,function(f,v){!v&&pe(a,f.history)==-1&&(uv(f.history,i),a.push(f.history)),wl(f,i,null,mf(f,i))})}}function vc(n,i,c){var a=n.cm&&n.cm.state.suppressEdits;if(!(a&&!c)){for(var f=n.history,v,b=n.sel,x=i=="undo"?f.done:f.undone,_=i=="undo"?f.undone:f.done,k=0;k<x.length&&(v=x[k],!(c?v.ranges&&!v.equals(n.sel):!v.ranges));k++);if(k!=x.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(v=x.pop(),v.ranges){if(dc(v,_),c&&!v.equals(n.sel)){fn(n,v,{clearRedo:!1});return}b=v}else if(a){x.push(v);return}else break;var D=[];dc(b,_),_.push({changes:D,generation:f.generation}),f.generation=v.generation||++f.maxGeneration;for(var U=Hn(n,"beforeChange")||n.cm&&Hn(n.cm,"beforeChange"),te=function(ge){var we=v.changes[ge];if(we.origin=i,U&&!ov(n,we,!1))return x.length=0,{};D.push(Gf(n,we));var ke=ge?Uf(n,we):ve(x);wl(n,we,ke,Yg(n,we)),!ge&&n.cm&&n.cm.scrollIntoView({from:we.from,to:zi(we)});var Me=[];Di(n,function(Te,Oe){!Oe&&pe(Me,Te.history)==-1&&(uv(Te.history,we),Me.push(Te.history)),wl(Te,we,null,Yg(Te,we))})},Y=v.changes.length-1;Y>=0;--Y){var ae=te(Y);if(ae)return ae.v}}}}function lv(n,i){if(i!=0&&(n.first+=i,n.sel=new Jn(ye(n.sel.ranges,function(f){return new dt(se(f.anchor.line+i,f.anchor.ch),se(f.head.line+i,f.head.ch))}),n.sel.primIndex),n.cm)){kn(n.cm,n.first,n.first-i,i);for(var c=n.cm.display,a=c.viewFrom;a<c.viewTo;a++)Ii(n.cm,a,"gutter")}}function wl(n,i,c,a){if(n.cm&&!n.cm.curOp)return Yt(n.cm,wl)(n,i,c,a);if(i.to.line<n.first){lv(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 f=i.text.length-1-(n.first-i.from.line);lv(n,f),i={from:se(n.first,0),to:se(i.to.line+f,i.to.ch),text:[ve(i.text)],origin:i.origin}}var v=n.lastLine();i.to.line>v&&(i={from:i.from,to:se(v,Pe(n,v).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ni(n,i.from,i.to),c||(c=Uf(n,i)),n.cm?y_(n.cm,i,a):Vf(n,i,a),pc(n,c,X),n.cantEdit&&gc(n,se(n.firstLine(),0))&&(n.cantEdit=!1)}}function y_(n,i,c){var a=n.doc,f=n.display,v=i.from,b=i.to,x=!1,_=v.line;n.options.lineWrapping||(_=M(br(Pe(a,v.line))),a.iter(_,b.line+1,function(Y){if(Y==f.maxLine)return x=!0,!0})),a.sel.contains(i.from,i.to)>-1&&sr(n),Vf(a,i,c,Cg(n)),n.options.lineWrapping||(a.iter(_,v.line+i.text.length,function(Y){var ae=Qa(Y);ae>f.maxLineLength&&(f.maxLine=Y,f.maxLineLength=ae,f.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),lS(a,v.line),ml(n,400);var k=i.text.length-(b.line-v.line)-1;i.full?kn(n):v.line==b.line&&i.text.length==1&&!Ug(n.doc,i)?Ii(n,v.line,"text"):kn(n,v.line,b.line+1,k);var D=Hn(n,"changes"),U=Hn(n,"change");if(U||D){var te={from:v,to:b,text:i.text,removed:i.removed,origin:i.origin};U&&Xt(n,"change",n,te),D&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(te)}n.display.selForContextMenu=null}function hs(n,i,c,a,f){var v;a||(a=c),Le(a,c)<0&&(v=[a,c],c=v[0],a=v[1]),typeof i=="string"&&(i=n.splitLines(i)),ds(n,{from:c,to:a,text:i,origin:f})}function av(n,i,c,a){c<n.line?n.line+=a:i<n.line&&(n.line=i,n.ch=0)}function cv(n,i,c,a){for(var f=0;f<n.length;++f){var v=n[f],b=!0;if(v.ranges){v.copied||(v=n[f]=v.deepCopy(),v.copied=!0);for(var x=0;x<v.ranges.length;x++)av(v.ranges[x].anchor,i,c,a),av(v.ranges[x].head,i,c,a);continue}for(var _=0;_<v.changes.length;++_){var k=v.changes[_];if(c<k.from.line)k.from=se(k.from.line+a,k.from.ch),k.to=se(k.to.line+a,k.to.ch);else if(i<=k.to.line){b=!1;break}}b||(n.splice(0,f+1),f=0)}}function uv(n,i){var c=i.from.line,a=i.to.line,f=i.text.length-(a-c)-1;cv(n.done,c,a,f),cv(n.undone,c,a,f)}function xl(n,i,c,a){var f=i,v=i;return typeof i=="number"?v=Pe(n,Bp(n,i)):f=M(i),f==null?null:(a(v,f)&&n.cm&&Ii(n.cm,f,c),v)}function Sl(n){this.lines=n,this.parent=null;for(var i=0,c=0;c<n.length;++c)n[c].parent=this,i+=n[c].height;this.height=i}Sl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var c=n,a=n+i;c<a;++c){var f=this.lines[c];this.height-=f.height,bS(f),Xt(f,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,c){this.height+=c,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var a=0;a<i.length;++a)i[a].parent=this},iterN:function(n,i,c){for(var a=n+i;n<a;++n)if(c(this.lines[n]))return!0}};function _l(n){this.children=n;for(var i=0,c=0,a=0;a<n.length;++a){var f=n[a];i+=f.chunkSize(),c+=f.height,f.parent=this}this.size=i,this.height=c,this.parent=null}_l.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var c=0;c<this.children.length;++c){var a=this.children[c],f=a.chunkSize();if(n<f){var v=Math.min(i,f-n),b=a.height;if(a.removeInner(n,v),this.height-=b-a.height,f==v&&(this.children.splice(c--,1),a.parent=null),(i-=v)==0)break;n=0}else n-=f}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Sl))){var x=[];this.collapse(x),this.children=[new Sl(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,c){this.size+=i.length,this.height+=c;for(var a=0;a<this.children.length;++a){var f=this.children[a],v=f.chunkSize();if(n<=v){if(f.insertInner(n,i,c),f.lines&&f.lines.length>50){for(var b=f.lines.length%25+25,x=b;x<f.lines.length;){var _=new Sl(f.lines.slice(x,x+=25));f.height-=_.height,this.children.splice(++a,0,_),_.parent=this}f.lines=f.lines.slice(0,b),this.maybeSpill()}break}n-=v}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),c=new _l(i);if(n.parent){n.size-=c.size,n.height-=c.height;var f=pe(n.parent.children,n);n.parent.children.splice(f+1,0,c)}else{var a=new _l(n.children);a.parent=n,n.children=[a,c],n=a}c.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,c){for(var a=0;a<this.children.length;++a){var f=this.children[a],v=f.chunkSize();if(n<v){var b=Math.min(i,v-n);if(f.iterN(n,b,c))return!0;if((i-=b)==0)break;n=0}else n-=v}}};var kl=function(n,i,c){if(c)for(var a in c)c.hasOwnProperty(a)&&(this[a]=c[a]);this.doc=n,this.node=i};kl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,c=this.line,a=M(c);if(!(a==null||!i)){for(var f=0;f<i.length;++f)i[f]==this&&i.splice(f--,1);i.length||(c.widgets=null);var v=ul(this);Yn(c,Math.max(0,c.height-v)),n&&(Bn(n,function(){fv(n,c,-v),Ii(n,a,"widget")}),Xt(n,"lineWidgetCleared",n,this,a))}},kl.prototype.changed=function(){var n=this,i=this.height,c=this.doc.cm,a=this.line;this.height=null;var f=ul(this)-i;f&&(Oi(this.doc,a)||Yn(a,a.height+f),c&&Bn(c,function(){c.curOp.forceUpdate=!0,fv(c,a,f),Xt(c,"lineWidgetChanged",c,n,M(a))}))},pr(kl);function fv(n,i,c){ii(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Df(n,c)}function b_(n,i,c,a){var f=new kl(n,c,a),v=n.cm;return v&&f.noHScroll&&(v.display.alignWidgets=!0),xl(n,i,"widget",function(b){var x=b.widgets||(b.widgets=[]);if(f.insertAt==null?x.push(f):x.splice(Math.min(x.length,Math.max(0,f.insertAt)),0,f),f.line=b,v&&!Oi(n,b)){var _=ii(b)<n.scrollTop;Yn(b,b.height+ul(f)),_&&Df(v,f.height),v.curOp.forceUpdate=!0}return!0}),v&&Xt(v,"lineWidgetAdded",v,f,typeof i=="number"?i:M(i)),f}var dv=0,Fi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++dv};Fi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Eo(n),Hn(this,"clear")){var c=this.find();c&&Xt(this,"clear",c.from,c.to)}for(var a=null,f=null,v=0;v<this.lines.length;++v){var b=this.lines[v],x=ll(b.markedSpans,this);n&&!this.collapsed?Ii(n,M(b),"text"):n&&(x.to!=null&&(f=M(b)),x.from!=null&&(a=M(b))),b.markedSpans=uS(b.markedSpans,x),x.from==null&&this.collapsed&&!Oi(this.doc,b)&&n&&Yn(b,os(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var k=br(this.lines[_]),D=Qa(k);D>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=D,n.display.maxLineChanged=!0)}a!=null&&n&&this.collapsed&&kn(n,a,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&tv(n.doc)),n&&Xt(n,"markerCleared",n,this,a,f),i&&Ao(n),this.parent&&this.parent.clear()}},Fi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var c,a,f=0;f<this.lines.length;++f){var v=this.lines[f],b=ll(v.markedSpans,this);if(b.from!=null&&(c=se(i?v:M(v),b.from),n==-1))return c;if(b.to!=null&&(a=se(i?v:M(v),b.to),n==1))return a}return c&&{from:c,to:a}},Fi.prototype.changed=function(){var n=this,i=this.find(-1,!0),c=this,a=this.doc.cm;!i||!a||Bn(a,function(){var f=i.line,v=M(i.line),b=Tf(a,v);if(b&&(yg(b),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Oi(c.doc,f)&&c.height!=null){var x=c.height;c.height=null;var _=ul(c)-x;_&&Yn(f,f.height+_)}Xt(a,"markerChanged",a,n)})},Fi.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)},Fi.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)}},pr(Fi);function ps(n,i,c,a,f){if(a&&a.shared)return w_(n,i,c,a,f);if(n.cm&&!n.cm.curOp)return Yt(n.cm,ps)(n,i,c,a,f);var v=new Fi(n,f),b=Le(i,c);if(a&&J(a,v,!1),b>0||b==0&&v.clearWhenEmpty!==!1)return v;if(v.replacedWith&&(v.collapsed=!0,v.widgetNode=R("span",[v.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||v.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(v.widgetNode.insertLeft=!0)),v.collapsed){if(ng(n,i.line,i,c,v)||i.line!=c.line&&ng(n,c.line,i,c,v))throw new Error("Inserting collapsed marker partially overlapping an existing one");cS()}v.addToHistory&&Kg(n,{from:i,to:c,origin:"markText"},n.sel,NaN);var x=i.line,_=n.cm,k;if(n.iter(x,c.line+1,function(U){_&&v.collapsed&&!_.options.lineWrapping&&br(U)==_.display.maxLine&&(k=!0),v.collapsed&&x!=i.line&&Yn(U,0),fS(U,new Xa(v,x==i.line?i.ch:null,x==c.line?c.ch:null),n.cm&&n.cm.curOp),++x}),v.collapsed&&n.iter(i.line,c.line+1,function(U){Oi(n,U)&&Yn(U,0)}),v.clearOnEnter&&He(v,"beforeCursorEnter",function(){return v.clear()}),v.readOnly&&(aS(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),v.collapsed&&(v.id=++dv,v.atomic=!0),_){if(k&&(_.curOp.updateMaxLine=!0),v.collapsed)kn(_,i.line,c.line+1);else if(v.className||v.startStyle||v.endStyle||v.css||v.attributes||v.title)for(var D=i.line;D<=c.line;D++)Ii(_,D,"text");v.atomic&&tv(_.doc),Xt(_,"markerAdded",_,v)}return v}var Tl=function(n,i){this.markers=n,this.primary=i;for(var c=0;c<n.length;++c)n[c].parent=this};Tl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Xt(this,"clear")}},Tl.prototype.find=function(n,i){return this.primary.find(n,i)},pr(Tl);function w_(n,i,c,a,f){a=J(a),a.shared=!1;var v=[ps(n,i,c,a,f)],b=v[0],x=a.widgetNode;return Di(n,function(_){x&&(a.widgetNode=x.cloneNode(!0)),v.push(ps(_,Ke(_,i),Ke(_,c),a,f));for(var k=0;k<_.linked.length;++k)if(_.linked[k].isParent)return;b=ve(v)}),new Tl(v,b)}function hv(n){return n.findMarks(se(n.first,0),n.clipPos(se(n.lastLine())),function(i){return i.parent})}function x_(n,i){for(var c=0;c<i.length;c++){var a=i[c],f=a.find(),v=n.clipPos(f.from),b=n.clipPos(f.to);if(Le(v,b)){var x=ps(n,v,b,a.primary,a.primary.type);a.markers.push(x),x.parent=a}}}function S_(n){for(var i=function(a){var f=n[a],v=[f.primary.doc];Di(f.primary.doc,function(_){return v.push(_)});for(var b=0;b<f.markers.length;b++){var x=f.markers[b];pe(v,x.doc)==-1&&(x.parent=null,f.markers.splice(b--,1))}},c=0;c<n.length;c++)i(c)}var __=0,Tn=function(n,i,c,a,f){if(!(this instanceof Tn))return new Tn(n,i,c,a,f);c==null&&(c=0),_l.call(this,[new Sl([new ns("",null)])]),this.first=c,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=c;var v=se(c,0);this.sel=Ri(v),this.history=new fc(null),this.id=++__,this.modeOption=i,this.lineSep=a,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Vf(this,{from:v,to:v,text:n}),fn(this,Ri(v),X)};Tn.prototype=De(_l.prototype,{constructor:Tn,iter:function(n,i,c){c?this.iterN(n-this.first,i-n,c):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var c=0,a=0;a<i.length;++a)c+=i[a].height;this.insertInner(n-this.first,i,c)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=ol(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Jt(function(n){var i=se(this.first,0),c=this.first+this.size-1;ds(this,{from:i,to:se(c,Pe(this,c).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&hl(this.cm,0,0),fn(this,Ri(i),X)}),replaceRange:function(n,i,c,a){i=Ke(this,i),c=c?Ke(this,c):i,hs(this,n,i,c,a)},getRange:function(n,i,c){var a=ni(this,Ke(this,n),Ke(this,i));return c===!1?a:c===""?a.join(""):a.join(c||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(fe(this,n))return Pe(this,n)},getLineNumber:function(n){return M(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Pe(this,n)),br(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(),c;return n==null||n=="head"?c=i.head:n=="anchor"?c=i.anchor:n=="end"||n=="to"||n===!1?c=i.to():c=i.from(),c},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Jt(function(n,i,c){Zg(this,Ke(this,typeof n=="number"?se(n,i||0):n),null,c)}),setSelection:Jt(function(n,i,c){Zg(this,Ke(this,n),Ke(this,i||n),c)}),extendSelection:Jt(function(n,i,c){hc(this,Ke(this,n),i&&Ke(this,i),c)}),extendSelections:Jt(function(n,i){Jg(this,Wp(this,n),i)}),extendSelectionsBy:Jt(function(n,i){var c=ye(this.sel.ranges,n);Jg(this,Wp(this,c),i)}),setSelections:Jt(function(n,i,c){if(n.length){for(var a=[],f=0;f<n.length;f++)a[f]=new dt(Ke(this,n[f].anchor),Ke(this,n[f].head||n[f].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),fn(this,xr(this.cm,a,i),c)}}),addSelection:Jt(function(n,i,c){var a=this.sel.ranges.slice(0);a.push(new dt(Ke(this,n),Ke(this,i||n))),fn(this,xr(this.cm,a,a.length-1),c)}),getSelection:function(n){for(var i=this.sel.ranges,c,a=0;a<i.length;a++){var f=ni(this,i[a].from(),i[a].to());c=c?c.concat(f):f}return n===!1?c:c.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],c=this.sel.ranges,a=0;a<c.length;a++){var f=ni(this,c[a].from(),c[a].to());n!==!1&&(f=f.join(n||this.lineSeparator())),i[a]=f}return i},replaceSelection:function(n,i,c){for(var a=[],f=0;f<this.sel.ranges.length;f++)a[f]=n;this.replaceSelections(a,i,c||"+input")},replaceSelections:Jt(function(n,i,c){for(var a=[],f=this.sel,v=0;v<f.ranges.length;v++){var b=f.ranges[v];a[v]={from:b.from(),to:b.to(),text:this.splitLines(n[v]),origin:c}}for(var x=i&&i!="end"&&u_(this,a,i),_=a.length-1;_>=0;_--)ds(this,a[_]);x?Qg(this,x):this.cm&&as(this.cm)}),undo:Jt(function(){vc(this,"undo")}),redo:Jt(function(){vc(this,"redo")}),undoSelection:Jt(function(){vc(this,"undo",!0)}),redoSelection:Jt(function(){vc(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,c=0,a=0;a<n.done.length;a++)n.done[a].ranges||++i;for(var f=0;f<n.undone.length;f++)n.undone[f].ranges||++c;return{undo:i,redo:c}},clearHistory:function(){var n=this;this.history=new fc(this.history),Di(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:us(this.history.done),undone:us(this.history.undone)}},setHistory:function(n){var i=this.history=new fc(this.history);i.done=us(n.done.slice(0),null,!0),i.undone=us(n.undone.slice(0),null,!0)},setGutterMarker:Jt(function(n,i,c){return xl(this,n,"gutter",function(a){var f=a.gutterMarkers||(a.gutterMarkers={});return f[i]=c,!c&<(f)&&(a.gutterMarkers=null),!0})}),clearGutter:Jt(function(n){var i=this;this.iter(function(c){c.gutterMarkers&&c.gutterMarkers[n]&&xl(i,c,"gutter",function(){return c.gutterMarkers[n]=null,lt(c.gutterMarkers)&&(c.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!fe(this,n)||(i=n,n=Pe(this,n),!n))return null}else if(i=M(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,c){return xl(this,n,i=="gutter"?"gutter":"class",function(a){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!a[f])a[f]=c;else{if(F(c).test(a[f]))return!1;a[f]+=" "+c}return!0})}),removeLineClass:Jt(function(n,i,c){return xl(this,n,i=="gutter"?"gutter":"class",function(a){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",v=a[f];if(v)if(c==null)a[f]=null;else{var b=v.match(F(c));if(!b)return!1;var x=b.index+b[0].length;a[f]=v.slice(0,b.index)+(!b.index||x==v.length?"":" ")+v.slice(x)||null}else return!1;return!0})}),addLineWidget:Jt(function(n,i,c){return b_(this,n,i,c)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,c){return ps(this,Ke(this,n),Ke(this,i),c,c&&c.type||"range")},setBookmark:function(n,i){var c={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),ps(this,n,n,c,"bookmark")},findMarksAt:function(n){n=Ke(this,n);var i=[],c=Pe(this,n.line).markedSpans;if(c)for(var a=0;a<c.length;++a){var f=c[a];(f.from==null||f.from<=n.ch)&&(f.to==null||f.to>=n.ch)&&i.push(f.marker.parent||f.marker)}return i},findMarks:function(n,i,c){n=Ke(this,n),i=Ke(this,i);var a=[],f=n.line;return this.iter(n.line,i.line+1,function(v){var b=v.markedSpans;if(b)for(var x=0;x<b.length;x++){var _=b[x];!(_.to!=null&&f==n.line&&n.ch>=_.to||_.from==null&&f!=n.line||_.from!=null&&f==i.line&&_.from>=i.ch)&&(!c||c(_.marker))&&a.push(_.marker.parent||_.marker)}++f}),a},getAllMarks:function(){var n=[];return this.iter(function(i){var c=i.markedSpans;if(c)for(var a=0;a<c.length;++a)c[a].from!=null&&n.push(c[a].marker)}),n},posFromIndex:function(n){var i,c=this.first,a=this.lineSeparator().length;return this.iter(function(f){var v=f.text.length+a;if(v>n)return i=n,!0;n-=v,++c}),Ke(this,se(c,i))},indexFromPos:function(n){n=Ke(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var c=this.lineSeparator().length;return this.iter(this.first,n.line,function(a){i+=a.text.length+c}),i},copy:function(n){var i=new Tn(ol(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,c=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<c&&(c=n.to);var a=new Tn(ol(this,i,c),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:n.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],x_(a,hv(this)),a},unlinkDoc:function(n){if(n instanceof Et&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var c=this.linked[i];if(c.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),S_(hv(this));break}}if(n.history==this.history){var a=[n.id];Di(n,function(f){return a.push(f.id)},!0),n.history=new fc(null),n.history.done=us(this.history.done,a),n.history.undone=us(this.history.undone,a)}},iterLinkedDocs:function(n){Di(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):lr(n)},lineSeparator:function(){return this.lineSep||`
|
|
36
|
-
`},setDirection:Jt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&f_(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var pv=0;function k_(n){var i=this;if(gv(i),!(It(i,n)||oi(i.display,n))){un(n),h&&(pv=+new Date);var c=_o(i,n,!0),a=n.dataTransfer.files;if(!(!c||i.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var f=a.length,v=Array(f),b=0,x=function(){++b==f&&Yt(i,function(){c=Ke(i.doc,c);var Y={from:c,to:c,text:i.doc.splitLines(v.filter(function(ae){return ae!=null}).join(i.doc.lineSeparator())),origin:"paste"};ds(i.doc,Y),Qg(i.doc,Ri(Ke(i.doc,c),Ke(i.doc,zi(Y))))})()},_=function(Y,ae){if(i.options.allowDropFileTypes&&pe(i.options.allowDropFileTypes,Y.type)==-1){x();return}var ge=new FileReader;ge.onerror=function(){return x()},ge.onload=function(){var we=ge.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(we)){x();return}v[ae]=we,x()},ge.readAsText(Y)},k=0;k<a.length;k++)_(a[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(c)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var D=n.dataTransfer.getData("Text");if(D){var U;if(i.state.draggingText&&!i.state.draggingText.copy&&(U=i.listSelections()),pc(i.doc,Ri(c,c)),U)for(var te=0;te<U.length;++te)hs(i.doc,"",U[te].anchor,U[te].head,"drag");i.replaceSelection(D,"around","paste"),i.display.input.focus()}}catch{}}}}function T_(n,i){if(h&&(!n.state.draggingText||+new Date-pv<100)){Li(i);return}if(!(It(n,i)||oi(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!$)){var c=S("img",null,null,"position: fixed; left: 0; top: 0;");c.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(c.width=c.height=1,n.display.wrapper.appendChild(c),c._top=c.offsetTop),i.dataTransfer.setDragImage(c,0,0),C&&c.parentNode.removeChild(c)}}function C_(n,i){var c=_o(n,i);if(c){var a=document.createDocumentFragment();Of(n,c,a),n.display.dragCursor||(n.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),O(n.display.dragCursor,a)}}function gv(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function vv(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),c=[],a=0;a<i.length;a++){var f=i[a].CodeMirror;f&&c.push(f)}c.length&&c[0].operation(function(){for(var v=0;v<c.length;v++)n(c[v])})}}var mv=!1;function E_(){mv||(A_(),mv=!0)}function A_(){var n;He(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,vv(L_)},100))}),He(window,"blur",function(){return vv(ls)})}function L_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Hi={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"},Cl=0;Cl<10;Cl++)Hi[Cl+48]=Hi[Cl+96]=String(Cl);for(var mc=65;mc<=90;mc++)Hi[mc]=String.fromCharCode(mc);for(var El=1;El<=12;El++)Hi[El+111]=Hi[El+63235]="F"+El;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=H?li.macDefault:li.pcDefault;function M_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var c,a,f,v,b=0;b<i.length-1;b++){var x=i[b];if(/^(cmd|meta|m)$/i.test(x))v=!0;else if(/^a(lt)?$/i.test(x))c=!0;else if(/^(c|ctrl|control)$/i.test(x))a=!0;else if(/^s(hift)?$/i.test(x))f=!0;else throw new Error("Unrecognized modifier name: "+x)}return c&&(n="Alt-"+n),a&&(n="Ctrl-"+n),v&&(n="Cmd-"+n),f&&(n="Shift-"+n),n}function $_(n){var i={};for(var c in n)if(n.hasOwnProperty(c)){var a=n[c];if(/^(name|fallthrough|(de|at)tach)$/.test(c))continue;if(a=="..."){delete n[c];continue}for(var f=ye(c.split(" "),M_),v=0;v<f.length;v++){var b=void 0,x=void 0;v==f.length-1?(x=f.join(" "),b=a):(x=f.slice(0,v+1).join(" "),b="...");var _=i[x];if(!_)i[x]=b;else if(_!=b)throw new Error("Inconsistent bindings for "+x)}delete n[c]}for(var k in i)n[k]=i[k];return n}function gs(n,i,c,a){i=yc(i);var f=i.call?i.call(n,a):i[n];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&c(f))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return gs(n,i.fallthrough,c,a);for(var v=0;v<i.fallthrough.length;v++){var b=gs(n,i.fallthrough[v],c,a);if(b)return b}}}function yv(n){var i=typeof n=="string"?n:Hi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function bv(n,i,c){var a=n;return i.altKey&&a!="Alt"&&(n="Alt-"+n),(Z?i.metaKey:i.ctrlKey)&&a!="Ctrl"&&(n="Ctrl-"+n),(Z?i.ctrlKey:i.metaKey)&&a!="Mod"&&(n="Cmd-"+n),!c&&i.shiftKey&&a!="Shift"&&(n="Shift-"+n),n}function wv(n,i){if(C&&n.keyCode==34&&n.char)return!1;var c=Hi[n.keyCode];return c==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(c=n.code),bv(c,n,i))}function yc(n){return typeof n=="string"?li[n]:n}function vs(n,i){for(var c=n.doc.sel.ranges,a=[],f=0;f<c.length;f++){for(var v=i(c[f]);a.length&&Le(v.from,ve(a).to)<=0;){var b=a.pop();if(Le(b.from,v.from)<0){v.from=b.from;break}}a.push(v)}Bn(n,function(){for(var x=a.length-1;x>=0;x--)hs(n.doc,"",a[x].from,a[x].to,"+delete");as(n)})}function Yf(n,i,c){var a=Gt(n.text,i+c,c);return a<0||a>n.text.length?null:a}function Jf(n,i,c){var a=Yf(n,i.ch,c);return a==null?null:new se(i.line,a,c<0?"after":"before")}function Zf(n,i,c,a,f){if(n){i.doc.direction=="rtl"&&(f=-f);var v=et(c,i.doc.direction);if(v){var b=f<0?ve(v):v[0],x=f<0==(b.level==1),_=x?"after":"before",k;if(b.level>0||i.doc.direction=="rtl"){var D=is(i,c);k=f<0?c.text.length-1:0;var U=Br(i,D,k).top;k=Bt(function(te){return Br(i,D,te).top==U},f<0==(b.level==1)?b.from:b.to-1,k),_=="before"&&(k=Yf(c,k,1))}else k=f<0?b.to:b.from;return new se(a,k,_)}}return new se(a,f<0?c.text.length:0,f<0?"before":"after")}function N_(n,i,c,a){var f=et(i,n.doc.direction);if(!f)return Jf(i,c,a);c.ch>=i.text.length?(c.ch=i.text.length,c.sticky="before"):c.ch<=0&&(c.ch=0,c.sticky="after");var v=Dt(f,c.ch,c.sticky),b=f[v];if(n.doc.direction=="ltr"&&b.level%2==0&&(a>0?b.to>c.ch:b.from<c.ch))return Jf(i,c,a);var x=function(ke,Me){return Yf(i,ke instanceof se?ke.ch:ke,Me)},_,k=function(ke){return n.options.lineWrapping?(_=_||is(n,i),Tg(n,i,_,ke)):{begin:0,end:i.text.length}},D=k(c.sticky=="before"?x(c,-1):c.ch);if(n.doc.direction=="rtl"||b.level==1){var U=b.level==1==a<0,te=x(c,U?1:-1);if(te!=null&&(U?te<=b.to&&te<=D.end:te>=b.from&&te>=D.begin)){var Y=U?"before":"after";return new se(c.line,te,Y)}}var ae=function(ke,Me,Te){for(var Oe=function(St,Zt){return Zt?new se(c.line,x(St,1),"before"):new se(c.line,St,"after")};ke>=0&&ke<f.length;ke+=Me){var Be=f[ke],ze=Me>0==(Be.level!=1),Ze=ze?Te.begin:x(Te.end,-1);if(Be.from<=Ze&&Ze<Be.to||(Ze=ze?Be.from:x(Be.to,-1),Te.begin<=Ze&&Ze<Te.end))return Oe(Ze,ze)}},ge=ae(v+a,a,D);if(ge)return ge;var we=a>0?D.end:x(D.begin,-1);return we!=null&&!(a>0&&we==i.text.length)&&(ge=ae(a>0?0:f.length-1,a,k(we)),ge)?ge:null}var Al={selectAll:iv,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),X)},killLine:function(n){return vs(n,function(i){if(i.empty()){var c=Pe(n.doc,i.head.line).text.length;return i.head.ch==c&&i.head.line<n.lastLine()?{from:i.head,to:se(i.head.line+1,0)}:{from:i.head,to:se(i.head.line,c)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return vs(n,function(i){return{from:se(i.from().line,0),to:Ke(n.doc,se(i.to().line+1,0))}})},delLineLeft:function(n){return vs(n,function(i){return{from:se(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return vs(n,function(i){var c=n.charCoords(i.head,"div").top+5,a=n.coordsChar({left:0,top:c},"div");return{from:a,to:i.from()}})},delWrappedLineRight:function(n){return vs(n,function(i){var c=n.charCoords(i.head,"div").top+5,a=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:c},"div");return{from:i.from(),to:a}})},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(se(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(se(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return xv(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Sv(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return O_(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var c=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:c},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var c=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:c},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var c=n.cursorCoords(i.head,"div").top+5,a=n.coordsChar({left:0,top:c},"div");return a.ch<n.getLine(a.line).search(/\S/)?Sv(n,i.head):a},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=[],c=n.listSelections(),a=n.options.tabSize,f=0;f<c.length;f++){var v=c[f].from(),b=K(n.getLine(v.line),v.ch,a);i.push(Ee(a-b%a))}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(),c=[],a=0;a<i.length;a++)if(i[a].empty()){var f=i[a].head,v=Pe(n.doc,f.line).text;if(v){if(f.ch==v.length&&(f=new se(f.line,f.ch-1)),f.ch>0)f=new se(f.line,f.ch+1),n.replaceRange(v.charAt(f.ch-1)+v.charAt(f.ch-2),se(f.line,f.ch-2),f,"+transpose");else if(f.line>n.doc.first){var b=Pe(n.doc,f.line-1).text;b&&(f=new se(f.line,1),n.replaceRange(v.charAt(0)+n.doc.lineSeparator()+b.charAt(b.length-1),se(f.line-1,b.length-1),f,"+transpose"))}}c.push(new dt(f,f))}n.setSelections(c)})},newlineAndIndent:function(n){return Bn(n,function(){for(var i=n.listSelections(),c=i.length-1;c>=0;c--)n.replaceRange(n.doc.lineSeparator(),i[c].anchor,i[c].head,"+input");i=n.listSelections();for(var a=0;a<i.length;a++)n.indentLine(i[a].from().line,null,!0);as(n)})},openLine:function(n){return n.replaceSelection(`
|
|
37
|
-
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function xv(n,i){var c=Pe(n.doc,i),a=br(c);return a!=c&&(i=M(a)),Zf(!0,n,a,i,1)}function O_(n,i){var c=Pe(n.doc,i),a=vS(c);return a!=c&&(i=M(a)),Zf(!0,n,c,i,-1)}function Sv(n,i){var c=xv(n,i.line),a=Pe(n.doc,c.line),f=et(a,n.doc.direction);if(!f||f[0].level==0){var v=Math.max(c.ch,a.text.search(/\S/)),b=i.line==c.line&&i.ch<=v&&i.ch;return se(c.line,b?0:v,c.sticky)}return c}function bc(n,i,c){if(typeof i=="string"&&(i=Al[i],!i))return!1;n.display.input.ensurePolled();var a=n.display.shift,f=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),c&&(n.display.shift=!1),f=i(n)!=W}finally{n.display.shift=a,n.state.suppressEdits=!1}return f}function I_(n,i,c){for(var a=0;a<n.state.keyMaps.length;a++){var f=gs(i,n.state.keyMaps[a],c,n);if(f)return f}return n.options.extraKeys&&gs(i,n.options.extraKeys,c,n)||gs(i,n.options.keyMap,c,n)}var P_=new le;function Ll(n,i,c,a){var f=n.state.keySeq;if(f){if(yv(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:P_.set(50,function(){n.state.keySeq==f&&(n.state.keySeq=null,n.display.input.reset())}),_v(n,f+" "+i,c,a))return!0}return _v(n,i,c,a)}function _v(n,i,c,a){var f=I_(n,i,a);return f=="multi"&&(n.state.keySeq=i),f=="handled"&&Xt(n,"keyHandled",n,i,c),(f=="handled"||f=="multi")&&(un(c),If(n)),!!f}function kv(n,i){var c=wv(i,!0);return c?i.shiftKey&&!n.state.keySeq?Ll(n,"Shift-"+c,i,function(a){return bc(n,a,!0)})||Ll(n,c,i,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return bc(n,a)}):Ll(n,c,i,function(a){return bc(n,a)}):!1}function R_(n,i,c){return Ll(n,"'"+c+"'",i,function(a){return bc(n,a,!0)})}var Qf=null;function Tv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=me(Xe(i)),!It(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var c=n.keyCode;i.display.shift=c==16||n.shiftKey;var a=kv(i,n);C&&(Qf=a?c:null,!a&&c==88&&!Ga&&(H?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!H&&!a&&c==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),c==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&z_(i)}}function z_(n){var i=n.display.lineDiv;xe(i,"CodeMirror-crosshair");function c(a){(a.keyCode==18||!a.altKey)&&(N(i,"CodeMirror-crosshair"),cn(document,"keyup",c),cn(document,"mouseover",c))}He(document,"keyup",c),He(document,"mouseover",c)}function Cv(n){n.keyCode==16&&(this.doc.sel.shift=!1),It(this,n)}function Ev(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(oi(i.display,n)||It(i,n)||n.ctrlKey&&!n.altKey||H&&n.metaKey)){var c=n.keyCode,a=n.charCode;if(C&&c==Qf){Qf=null,un(n);return}if(!(C&&(!n.which||n.which<10)&&kv(i,n))){var f=String.fromCharCode(a??c);f!="\b"&&(R_(i,n,f)||i.display.input.onKeyPress(n))}}}var D_=400,ed=function(n,i,c){this.time=n,this.pos=i,this.button=c};ed.prototype.compare=function(n,i,c){return this.time+D_>n&&Le(i,this.pos)==0&&c==this.button};var Ml,$l;function F_(n,i){var c=+new Date;return $l&&$l.compare(c,n,i)?(Ml=$l=null,"triple"):Ml&&Ml.compare(c,n,i)?($l=new ed(c,n,i),Ml=null,"double"):(Ml=new ed(c,n,i),$l=null,"single")}function Av(n){var i=this,c=i.display;if(!(It(i,n)||c.activeTouch&&c.input.supportsTouch())){if(c.input.ensurePolled(),c.shift=n.shiftKey,oi(c,n)){g||(c.scroller.draggable=!1,setTimeout(function(){return c.scroller.draggable=!0},100));return}if(!td(i,n)){var a=_o(i,n),f=gr(n),v=a?F_(a,f):"single";re(i).focus(),f==1&&i.state.selectingText&&i.state.selectingText(n),!(a&&H_(i,f,a,v,n))&&(f==1?a?W_(i,a,v,n):nl(n)==c.scroller&&un(n):f==2?(a&&hc(i.doc,a),setTimeout(function(){return c.input.focus()},20)):f==3&&(Q?i.display.input.onContextMenu(n):Pf(i)))}}}function H_(n,i,c,a,f){var v="Click";return a=="double"?v="Double"+v:a=="triple"&&(v="Triple"+v),v=(i==1?"Left":i==2?"Middle":"Right")+v,Ll(n,bv(v,f),f,function(b){if(typeof b=="string"&&(b=Al[b]),!b)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=b(n,c)!=W}finally{n.state.suppressEdits=!1}return x})}function B_(n,i,c){var a=n.getOption("configureMouse"),f=a?a(n,i,c):{};if(f.unit==null){var v=G?c.shiftKey&&c.metaKey:c.altKey;f.unit=v?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(f.extend==null||n.doc.extend)&&(f.extend=n.doc.extend||c.shiftKey),f.addNew==null&&(f.addNew=H?c.metaKey:c.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(H?c.altKey:c.ctrlKey)),f}function W_(n,i,c,a){h?setTimeout(B(Lg,n),0):n.curOp.focus=me(Xe(n));var f=B_(n,c,a),v=n.doc.sel,b;n.options.dragDrop&&hf&&!n.isReadOnly()&&c=="single"&&(b=v.contains(i))>-1&&(Le((b=v.ranges[b]).from(),i)<0||i.xRel>0)&&(Le(b.to(),i)>0||i.xRel<0)?q_(n,a,i,f):U_(n,a,i,f)}function q_(n,i,c,a){var f=n.display,v=!1,b=Yt(n,function(k){g&&(f.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Pf(n)),cn(f.wrapper.ownerDocument,"mouseup",b),cn(f.wrapper.ownerDocument,"mousemove",x),cn(f.scroller,"dragstart",_),cn(f.scroller,"drop",b),v||(un(k),a.addNew||hc(n.doc,c,null,null,a.extend),g&&!$||h&&p==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),x=function(k){v=v||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},_=function(){return v=!0};g&&(f.scroller.draggable=!0),n.state.draggingText=b,b.copy=!a.moveOnDrag,He(f.wrapper.ownerDocument,"mouseup",b),He(f.wrapper.ownerDocument,"mousemove",x),He(f.scroller,"dragstart",_),He(f.scroller,"drop",b),n.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Lv(n,i,c){if(c=="char")return new dt(i,i);if(c=="word")return n.findWordAt(i);if(c=="line")return new dt(se(i.line,0),Ke(n.doc,se(i.line+1,0)));var a=c(n,i);return new dt(a.from,a.to)}function U_(n,i,c,a){h&&Pf(n);var f=n.display,v=n.doc;un(i);var b,x,_=v.sel,k=_.ranges;if(a.addNew&&!a.extend?(x=v.sel.contains(c),x>-1?b=k[x]:b=new dt(c,c)):(b=v.sel.primary(),x=v.sel.primIndex),a.unit=="rectangle")a.addNew||(b=new dt(c,c)),c=_o(n,i,!0,!0),x=-1;else{var D=Lv(n,c,a.unit);a.extend?b=Kf(b,D.anchor,D.head,a.extend):b=D}a.addNew?x==-1?(x=k.length,fn(v,xr(n,k.concat([b]),x),{scroll:!1,origin:"*mouse"})):k.length>1&&k[x].empty()&&a.unit=="char"&&!a.extend?(fn(v,xr(n,k.slice(0,x).concat(k.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),_=v.sel):Xf(v,x,b,ue):(x=0,fn(v,new Jn([b],0),ue),_=v.sel);var U=c;function te(Te){if(Le(U,Te)!=0)if(U=Te,a.unit=="rectangle"){for(var Oe=[],Be=n.options.tabSize,ze=K(Pe(v,c.line).text,c.ch,Be),Ze=K(Pe(v,Te.line).text,Te.ch,Be),St=Math.min(ze,Ze),Zt=Math.max(ze,Ze),Mt=Math.min(c.line,Te.line),Wn=Math.min(n.lastLine(),Math.max(c.line,Te.line));Mt<=Wn;Mt++){var Cn=Pe(v,Mt).text,Wt=de(Cn,St,Be);St==Zt?Oe.push(new dt(se(Mt,Wt),se(Mt,Wt))):Cn.length>Wt&&Oe.push(new dt(se(Mt,Wt),se(Mt,de(Cn,Zt,Be))))}Oe.length||Oe.push(new dt(c,c)),fn(v,xr(n,_.ranges.slice(0,x).concat(Oe),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var En=b,sn=Lv(n,Te,a.unit),jt=En.anchor,qt;Le(sn.anchor,jt)>0?(qt=sn.head,jt=ts(En.from(),sn.anchor)):(qt=sn.anchor,jt=_n(En.to(),sn.head));var Rt=_.ranges.slice(0);Rt[x]=j_(n,new dt(Ke(v,jt),qt)),fn(v,xr(n,Rt,x),ue)}}var Y=f.wrapper.getBoundingClientRect(),ae=0;function ge(Te){var Oe=++ae,Be=_o(n,Te,!0,a.unit=="rectangle");if(Be)if(Le(Be,U)!=0){n.curOp.focus=me(Xe(n)),te(Be);var ze=lc(f,v);(Be.line>=ze.to||Be.line<ze.from)&&setTimeout(Yt(n,function(){ae==Oe&&ge(Te)}),150)}else{var Ze=Te.clientY<Y.top?-20:Te.clientY>Y.bottom?20:0;Ze&&setTimeout(Yt(n,function(){ae==Oe&&(f.scroller.scrollTop+=Ze,ge(Te))}),50)}}function we(Te){n.state.selectingText=!1,ae=1/0,Te&&(un(Te),f.input.focus()),cn(f.wrapper.ownerDocument,"mousemove",ke),cn(f.wrapper.ownerDocument,"mouseup",Me),v.history.lastSelOrigin=null}var ke=Yt(n,function(Te){Te.buttons===0||!gr(Te)?we(Te):ge(Te)}),Me=Yt(n,we);n.state.selectingText=Me,He(f.wrapper.ownerDocument,"mousemove",ke),He(f.wrapper.ownerDocument,"mouseup",Me)}function j_(n,i){var c=i.anchor,a=i.head,f=Pe(n.doc,c.line);if(Le(c,a)==0&&c.sticky==a.sticky)return i;var v=et(f);if(!v)return i;var b=Dt(v,c.ch,c.sticky),x=v[b];if(x.from!=c.ch&&x.to!=c.ch)return i;var _=b+(x.from==c.ch==(x.level!=1)?0:1);if(_==0||_==v.length)return i;var k;if(a.line!=c.line)k=(a.line-c.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var D=Dt(v,a.ch,a.sticky),U=D-b||(a.ch-c.ch)*(x.level==1?-1:1);D==_-1||D==_?k=U<0:k=U>0}var te=v[_+(k?-1:0)],Y=k==(te.level==1),ae=Y?te.from:te.to,ge=Y?"after":"before";return c.ch==ae&&c.sticky==ge?i:new dt(new se(c.line,ae,ge),a)}function Mv(n,i,c,a){var f,v;if(i.touches)f=i.touches[0].clientX,v=i.touches[0].clientY;else try{f=i.clientX,v=i.clientY}catch{return!1}if(f>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;a&&un(i);var b=n.display,x=b.lineDiv.getBoundingClientRect();if(v>x.bottom||!Hn(n,c))return Sn(i);v-=x.top-b.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var k=b.gutters.childNodes[_];if(k&&k.getBoundingClientRect().right>=f){var D=q(n.doc,v),U=n.display.gutterSpecs[_];return Ot(n,c,n,D,U.className,i),Sn(i)}}}function td(n,i){return Mv(n,i,"gutterClick",!0)}function $v(n,i){oi(n.display,i)||V_(n,i)||It(n,i,"contextmenu")||Q||n.display.input.onContextMenu(i)}function V_(n,i){return Hn(n,"gutterContextMenu")?Mv(n,i,"gutterContextMenu",!1):!1}function Nv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fl(n)}var ms={toString:function(){return"CodeMirror.Init"}},Ov={},wc={};function G_(n){var i=n.optionHandlers;function c(a,f,v,b){n.defaults[a]=f,v&&(i[a]=b?function(x,_,k){k!=ms&&v(x,_,k)}:v)}n.defineOption=c,n.Init=ms,c("value","",function(a,f){return a.setValue(f)},!0),c("mode",null,function(a,f){a.doc.modeOption=f,jf(a)},!0),c("indentUnit",2,jf,!0),c("indentWithTabs",!1),c("smartIndent",!0),c("tabSize",4,function(a){bl(a),fl(a),kn(a)},!0),c("lineSeparator",null,function(a,f){if(a.doc.lineSep=f,!!f){var v=[],b=a.doc.first;a.doc.iter(function(_){for(var k=0;;){var D=_.text.indexOf(f,k);if(D==-1)break;k=D+f.length,v.push(se(b,D))}b++});for(var x=v.length-1;x>=0;x--)hs(a.doc,f,v[x],se(v[x].line,v[x].ch+f.length))}}),c("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(a,f,v){a.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),v!=ms&&a.refresh()}),c("specialCharPlaceholder",SS,function(a){return a.refresh()},!0),c("electricChars",!0),c("inputStyle",L?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),c("spellcheck",!1,function(a,f){return a.getInputField().spellcheck=f},!0),c("autocorrect",!1,function(a,f){return a.getInputField().autocorrect=f},!0),c("autocapitalize",!1,function(a,f){return a.getInputField().autocapitalize=f},!0),c("rtlMoveVisually",!oe),c("wholeLineUpdateBefore",!0),c("theme","default",function(a){Nv(a),yl(a)},!0),c("keyMap","default",function(a,f,v){var b=yc(f),x=v!=ms&&yc(v);x&&x.detach&&x.detach(a,b),b.attach&&b.attach(a,x||null)}),c("extraKeys",null),c("configureMouse",null),c("lineWrapping",!1,X_,!0),c("gutters",[],function(a,f){a.display.gutterSpecs=qf(f,a.options.lineNumbers),yl(a)},!0),c("fixedGutter",!0,function(a,f){a.display.gutters.style.left=f?$f(a.display)+"px":"0",a.refresh()},!0),c("coverGutterNextToScrollbar",!1,function(a){return cs(a)},!0),c("scrollbarStyle","native",function(a){Pg(a),cs(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),c("lineNumbers",!1,function(a,f){a.display.gutterSpecs=qf(a.options.gutters,f),yl(a)},!0),c("firstLineNumber",1,yl,!0),c("lineNumberFormatter",function(a){return a},yl,!0),c("showCursorWhenSelecting",!1,dl,!0),c("resetSelectionOnContextMenu",!0),c("lineWiseCopyCut",!0),c("pasteLinesPerSelection",!0),c("selectionsMayTouch",!1),c("readOnly",!1,function(a,f){f=="nocursor"&&(ls(a),a.display.input.blur()),a.display.input.readOnlyChanged(f)}),c("screenReaderLabel",null,function(a,f){f=f===""?null:f,a.display.input.screenReaderLabelChanged(f)}),c("disableInput",!1,function(a,f){f||a.display.input.reset()},!0),c("dragDrop",!0,K_),c("allowDropFileTypes",null),c("cursorBlinkRate",530),c("cursorScrollMargin",0),c("cursorHeight",1,dl,!0),c("singleCursorHeightPerLine",!0,dl,!0),c("workTime",100),c("workDelay",100),c("flattenSpans",!0,bl,!0),c("addModeClass",!1,bl,!0),c("pollInterval",100),c("undoDepth",200,function(a,f){return a.doc.history.undoDepth=f}),c("historyEventDelay",1250),c("viewportMargin",10,function(a){return a.refresh()},!0),c("maxHighlightLength",1e4,bl,!0),c("moveInputWithCursor",!0,function(a,f){f||a.display.input.resetPosition()}),c("tabindex",null,function(a,f){return a.display.input.getField().tabIndex=f||""}),c("autofocus",null),c("direction","ltr",function(a,f){return a.doc.setDirection(f)},!0),c("phrases",null)}function K_(n,i,c){var a=c&&c!=ms;if(!i!=!a){var f=n.display.dragFunctions,v=i?He:cn;v(n.display.scroller,"dragstart",f.start),v(n.display.scroller,"dragenter",f.enter),v(n.display.scroller,"dragover",f.over),v(n.display.scroller,"dragleave",f.leave),v(n.display.scroller,"drop",f.drop)}}function X_(n){n.options.lineWrapping?(xe(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(N(n.display.wrapper,"CodeMirror-wrap"),xf(n)),Nf(n),kn(n),fl(n),setTimeout(function(){return cs(n)},100)}function Et(n,i){var c=this;if(!(this instanceof Et))return new Et(n,i);this.options=i=i?J(i):{},J(Ov,i,!1);var a=i.value;typeof a=="string"?a=new Tn(a,i.mode,null,i.lineSeparator,i.direction):i.mode&&(a.modeOption=i.mode),this.doc=a;var f=new Et.inputStyles[i.inputStyle](this),v=this.display=new a_(n,a,f,i);v.wrapper.CodeMirror=this,Nv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Pg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!L&&v.input.focus(),h&&p<11&&setTimeout(function(){return c.display.input.reset(!0)},20),Y_(this),E_(),Eo(this),this.curOp.forceUpdate=!0,jg(this,a),i.autofocus&&!L||this.hasFocus()?setTimeout(function(){c.hasFocus()&&!c.state.focused&&Rf(c)},20):ls(this);for(var b in wc)wc.hasOwnProperty(b)&&wc[b](this,i[b],ms);Dg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<nd.length;++x)nd[x](this);Ao(this),g&&i.lineWrapping&&getComputedStyle(v.lineDiv).textRendering=="optimizelegibility"&&(v.lineDiv.style.textRendering="auto")}Et.defaults=Ov,Et.optionHandlers=wc;function Y_(n){var i=n.display;He(i.scroller,"mousedown",Yt(n,Av)),h&&p<11?He(i.scroller,"dblclick",Yt(n,function(_){if(!It(n,_)){var k=_o(n,_);if(!(!k||td(n,_)||oi(n.display,_))){un(_);var D=n.findWordAt(k);hc(n.doc,D.anchor,D.head)}}})):He(i.scroller,"dblclick",function(_){return It(n,_)||un(_)}),He(i.scroller,"contextmenu",function(_){return $v(n,_)}),He(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||$v(n,_)});var c,a={end:0};function f(){i.activeTouch&&(c=setTimeout(function(){return i.activeTouch=null},1e3),a=i.activeTouch,a.end=+new Date)}function v(_){if(_.touches.length!=1)return!1;var k=_.touches[0];return k.radiusX<=1&&k.radiusY<=1}function b(_,k){if(k.left==null)return!0;var D=k.left-_.left,U=k.top-_.top;return D*D+U*U>20*20}He(i.scroller,"touchstart",function(_){if(!It(n,_)&&!v(_)&&!td(n,_)){i.input.ensurePolled(),clearTimeout(c);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-a.end<=300?a:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),He(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),He(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"),U;!k.prev||b(k,k.prev)?U=new dt(D,D):!k.prev.prev||b(k,k.prev.prev)?U=n.findWordAt(D):U=new dt(se(D.line,0),Ke(n.doc,se(D.line+1,0))),n.setSelection(U.anchor,U.head),n.focus(),un(_)}f()}),He(i.scroller,"touchcancel",f),He(i.scroller,"scroll",function(){i.scroller.clientHeight&&(pl(n,i.scroller.scrollTop),To(n,i.scroller.scrollLeft,!0),Ot(n,"scroll",n))}),He(i.scroller,"mousewheel",function(_){return Bg(n,_)}),He(i.scroller,"DOMMouseScroll",function(_){return Bg(n,_)}),He(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){It(n,_)||Li(_)},over:function(_){It(n,_)||(C_(n,_),Li(_))},start:function(_){return T_(n,_)},drop:Yt(n,k_),leave:function(_){It(n,_)||gv(n)}};var x=i.input.getField();He(x,"keyup",function(_){return Cv.call(n,_)}),He(x,"keydown",Yt(n,Tv)),He(x,"keypress",Yt(n,Ev)),He(x,"focus",function(_){return Rf(n,_)}),He(x,"blur",function(_){return ls(n,_)})}var nd=[];Et.defineInitHook=function(n){return nd.push(n)};function Nl(n,i,c,a){var f=n.doc,v;c==null&&(c="add"),c=="smart"&&(f.mode.indent?v=sl(n,i).state:c="prev");var b=n.options.tabSize,x=Pe(f,i),_=K(x.text,null,b);x.stateAfter&&(x.stateAfter=null);var k=x.text.match(/^\s*/)[0],D;if(!a&&!/\S/.test(x.text))D=0,c="not";else if(c=="smart"&&(D=f.mode.indent(v,x.text.slice(k.length),x.text),D==W||D>150)){if(!a)return;c="prev"}c=="prev"?i>f.first?D=K(Pe(f,i-1).text,null,b):D=0:c=="add"?D=_+n.options.indentUnit:c=="subtract"?D=_-n.options.indentUnit:typeof c=="number"&&(D=_+c),D=Math.max(0,D);var U="",te=0;if(n.options.indentWithTabs)for(var Y=Math.floor(D/b);Y;--Y)te+=b,U+=" ";if(te<D&&(U+=Ee(D-te)),U!=k)return hs(f,U,se(i,0),se(i,k.length),"+input"),x.stateAfter=null,!0;for(var ae=0;ae<f.sel.ranges.length;ae++){var ge=f.sel.ranges[ae];if(ge.head.line==i&&ge.head.ch<k.length){var we=se(i,k.length);Xf(f,ae,new dt(we,we));break}}}var Sr=null;function xc(n){Sr=n}function rd(n,i,c,a,f){var v=n.doc;n.display.shift=!1,a||(a=v.sel);var b=+new Date-200,x=f=="paste"||n.state.pasteIncoming>b,_=lr(i),k=null;if(x&&a.ranges.length>1)if(Sr&&Sr.text.join(`
|
|
38
|
-
`)==i){if(a.ranges.length%Sr.text.length==0){k=[];for(var D=0;D<Sr.text.length;D++)k.push(v.splitLines(Sr.text[D]))}}else _.length==a.ranges.length&&n.options.pasteLinesPerSelection&&(k=ye(_,function(ke){return[ke]}));for(var U=n.curOp.updateInput,te=a.ranges.length-1;te>=0;te--){var Y=a.ranges[te],ae=Y.from(),ge=Y.to();Y.empty()&&(c&&c>0?ae=se(ae.line,ae.ch-c):n.state.overwrite&&!x?ge=se(ge.line,Math.min(Pe(v,ge.line).text.length,ge.ch+ve(_).length)):x&&Sr&&Sr.lineWise&&Sr.text.join(`
|
|
39
|
-
`)==_.join(`
|
|
40
|
-
`)&&(ae=ge=se(ae.line,0)));var we={from:ae,to:ge,text:k?k[te%k.length]:_,origin:f||(x?"paste":n.state.cutIncoming>b?"cut":"+input")};ds(n.doc,we),Xt(n,"inputRead",n,we)}i&&!x&&Pv(n,i),as(n),n.curOp.updateInput<2&&(n.curOp.updateInput=U),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function Iv(n,i){var c=n.clipboardData&&n.clipboardData.getData("Text");if(c)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Bn(i,function(){return rd(i,c,0,null,"paste")}),!0}function Pv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var c=n.doc.sel,a=c.ranges.length-1;a>=0;a--){var f=c.ranges[a];if(!(f.head.ch>100||a&&c.ranges[a-1].head.line==f.head.line)){var v=n.getModeAt(f.head),b=!1;if(v.electricChars){for(var x=0;x<v.electricChars.length;x++)if(i.indexOf(v.electricChars.charAt(x))>-1){b=Nl(n,f.head.line,"smart");break}}else v.electricInput&&v.electricInput.test(Pe(n.doc,f.head.line).text.slice(0,f.head.ch))&&(b=Nl(n,f.head.line,"smart"));b&&Xt(n,"electricInput",n,f.head.line)}}}function Rv(n){for(var i=[],c=[],a=0;a<n.doc.sel.ranges.length;a++){var f=n.doc.sel.ranges[a].head.line,v={anchor:se(f,0),head:se(f+1,0)};c.push(v),i.push(n.getRange(v.anchor,v.head))}return{text:i,ranges:c}}function id(n,i,c,a){n.setAttribute("autocorrect",c?"on":"off"),n.setAttribute("autocapitalize",a?"on":"off"),n.setAttribute("spellcheck",!!i)}function zv(){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 g?n.style.width="1000px":n.setAttribute("wrap","off"),A&&(n.style.border="1px solid black"),i}function J_(n){var i=n.optionHandlers,c=n.helpers={};n.prototype={constructor:n,focus:function(){re(this).focus(),this.display.input.focus()},setOption:function(a,f){var v=this.options,b=v[a];v[a]==f&&a!="mode"||(v[a]=f,i.hasOwnProperty(a)&&Yt(this,i[a])(this,f,b),Ot(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,f){this.state.keyMaps[f?"push":"unshift"](yc(a))},removeKeyMap:function(a){for(var f=this.state.keyMaps,v=0;v<f.length;++v)if(f[v]==a||f[v].name==a)return f.splice(v,1),!0},addOverlay:gn(function(a,f){var v=a.token?a:n.getMode(this.options,a);if(v.startState)throw new Error("Overlays may not be stateful.");We(this.state.overlays,{mode:v,modeSpec:a,opaque:f&&f.opaque,priority:f&&f.priority||0},function(b){return b.priority}),this.state.modeGen++,kn(this)}),removeOverlay:gn(function(a){for(var f=this.state.overlays,v=0;v<f.length;++v){var b=f[v].modeSpec;if(b==a||typeof a=="string"&&b.name==a){f.splice(v,1),this.state.modeGen++,kn(this);return}}}),indentLine:gn(function(a,f,v){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),fe(this.doc,a)&&Nl(this,a,f,v)}),indentSelection:gn(function(a){for(var f=this.doc.sel.ranges,v=-1,b=0;b<f.length;b++){var x=f[b];if(x.empty())x.head.line>v&&(Nl(this,x.head.line,a,!0),v=x.head.line,b==this.doc.sel.primIndex&&as(this));else{var _=x.from(),k=x.to(),D=Math.max(v,_.line);v=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var U=D;U<v;++U)Nl(this,U,a);var te=this.doc.sel.ranges;_.ch==0&&f.length==te.length&&te[b].from().ch>0&&Xf(this.doc,b,new dt(_,te[b].to()),X)}}}),getTokenAt:function(a,f){return Gp(this,a,f)},getLineTokens:function(a,f){return Gp(this,se(a),f,!0)},getTokenTypeAt:function(a){a=Ke(this.doc,a);var f=Up(this,Pe(this.doc,a.line)),v=0,b=(f.length-1)/2,x=a.ch,_;if(x==0)_=f[2];else for(;;){var k=v+b>>1;if((k?f[k*2-1]:0)>=x)b=k;else if(f[k*2+1]<x)v=k+1;else{_=f[k*2+2];break}}var D=_?_.indexOf("overlay "):-1;return D<0?_:D==0?null:_.slice(0,D-1)},getModeAt:function(a){var f=this.doc.mode;return f.innerMode?n.innerMode(f,this.getTokenAt(a).state).mode:f},getHelper:function(a,f){return this.getHelpers(a,f)[0]},getHelpers:function(a,f){var v=[];if(!c.hasOwnProperty(f))return v;var b=c[f],x=this.getModeAt(a);if(typeof x[f]=="string")b[x[f]]&&v.push(b[x[f]]);else if(x[f])for(var _=0;_<x[f].length;_++){var k=b[x[f][_]];k&&v.push(k)}else x.helperType&&b[x.helperType]?v.push(b[x.helperType]):b[x.name]&&v.push(b[x.name]);for(var D=0;D<b._global.length;D++){var U=b._global[D];U.pred(x,this)&&pe(v,U.val)==-1&&v.push(U.val)}return v},getStateAfter:function(a,f){var v=this.doc;return a=Bp(v,a??v.first+v.size-1),sl(this,a+1,f).state},cursorCoords:function(a,f){var v,b=this.doc.sel.primary();return a==null?v=b.head:typeof a=="object"?v=Ke(this.doc,a):v=a?b.from():b.to(),wr(this,v,f||"page")},charCoords:function(a,f){return rc(this,Ke(this.doc,a),f||"page")},coordsChar:function(a,f){return a=Sg(this,a,f||"page"),Af(this,a.left,a.top)},lineAtHeight:function(a,f){return a=Sg(this,{top:a,left:0},f||"page").top,q(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,f,v){var b=!1,x;if(typeof a=="number"){var _=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>_&&(a=_,b=!0),x=Pe(this.doc,a)}else x=a;return nc(this,x,{top:0,left:0},f||"page",v||b).top+(b?this.doc.height-ii(x):0)},defaultTextHeight:function(){return os(this.display)},defaultCharWidth:function(){return ss(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,f,v,b,x){var _=this.display;a=wr(this,Ke(this.doc,a));var k=a.bottom,D=a.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),_.sizer.appendChild(f),b=="over")k=a.top;else if(b=="above"||b=="near"){var U=Math.max(_.wrapper.clientHeight,this.doc.height),te=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(b=="above"||a.bottom+f.offsetHeight>U)&&a.top>f.offsetHeight?k=a.top-f.offsetHeight:a.bottom+f.offsetHeight<=U&&(k=a.bottom),D+f.offsetWidth>te&&(D=te-f.offsetWidth)}f.style.top=k+"px",f.style.left=f.style.right="",x=="right"?(D=_.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(x=="left"?D=0:x=="middle"&&(D=(_.sizer.clientWidth-f.offsetWidth)/2),f.style.left=D+"px"),v&&KS(this,{left:D,top:k,right:D+f.offsetWidth,bottom:k+f.offsetHeight})},triggerOnKeyDown:gn(Tv),triggerOnKeyPress:gn(Ev),triggerOnKeyUp:Cv,triggerOnMouseDown:gn(Av),execCommand:function(a){if(Al.hasOwnProperty(a))return Al[a].call(null,this)},triggerElectric:gn(function(a){Pv(this,a)}),findPosH:function(a,f,v,b){var x=1;f<0&&(x=-1,f=-f);for(var _=Ke(this.doc,a),k=0;k<f&&(_=od(this.doc,_,x,v,b),!_.hitSide);++k);return _},moveH:gn(function(a,f){var v=this;this.extendSelectionsBy(function(b){return v.display.shift||v.doc.extend||b.empty()?od(v.doc,b.head,a,f,v.options.rtlMoveVisually):a<0?b.from():b.to()},he)}),deleteH:gn(function(a,f){var v=this.doc.sel,b=this.doc;v.somethingSelected()?b.replaceSelection("",null,"+delete"):vs(this,function(x){var _=od(b,x.head,a,f,!1);return a<0?{from:_,to:x.head}:{from:x.head,to:_}})}),findPosV:function(a,f,v,b){var x=1,_=b;f<0&&(x=-1,f=-f);for(var k=Ke(this.doc,a),D=0;D<f;++D){var U=wr(this,k,"div");if(_==null?_=U.left:U.left=_,k=Dv(this,U,x,v),k.hitSide)break}return k},moveV:gn(function(a,f){var v=this,b=this.doc,x=[],_=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(D){if(_)return a<0?D.from():D.to();var U=wr(v,D.head,"div");D.goalColumn!=null&&(U.left=D.goalColumn),x.push(U.left);var te=Dv(v,U,a,f);return f=="page"&&D==b.sel.primary()&&Df(v,rc(v,te,"div").top-U.top),te},he),x.length)for(var k=0;k<b.sel.ranges.length;k++)b.sel.ranges[k].goalColumn=x[k]}),findWordAt:function(a){var f=this.doc,v=Pe(f,a.line).text,b=a.ch,x=a.ch;if(v){var _=this.getHelper(a,"wordChars");(a.sticky=="before"||x==v.length)&&b?--b:++x;for(var k=v.charAt(b),D=ot(k,_)?function(U){return ot(U,_)}:/\s/.test(k)?function(U){return/\s/.test(U)}:function(U){return!/\s/.test(U)&&!ot(U)};b>0&&D(v.charAt(b-1));)--b;for(;x<v.length&&D(v.charAt(x));)++x}return new dt(se(a.line,b),se(a.line,x))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?xe(this.display.cursorDiv,"CodeMirror-overwrite"):N(this.display.cursorDiv,"CodeMirror-overwrite"),Ot(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me(Xe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:gn(function(a,f){hl(this,a,f)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-Hr(this)-this.display.barHeight,width:a.scrollWidth-Hr(this)-this.display.barWidth,clientHeight:kf(this),clientWidth:xo(this)}},scrollIntoView:gn(function(a,f){a==null?(a={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof a=="number"?a={from:se(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=f||0,a.from.line!=null?XS(this,a):$g(this,a.from,a.to,a.margin)}),setSize:gn(function(a,f){var v=this,b=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};a!=null&&(this.display.wrapper.style.width=b(a)),f!=null&&(this.display.wrapper.style.height=b(f)),this.options.lineWrapping&&bg(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){Ii(v,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Ot(this,"refresh",this)}),operation:function(a){return Bn(this,a)},startOperation:function(){return Eo(this)},endOperation:function(){return Ao(this)},refresh:gn(function(){var a=this.display.cachedTextHeight;kn(this),this.curOp.forceUpdate=!0,fl(this),hl(this,this.doc.scrollLeft,this.doc.scrollTop),Bf(this.display),(a==null||Math.abs(a-os(this.display))>.5||this.options.lineWrapping)&&Nf(this),Ot(this,"refresh",this)}),swapDoc:gn(function(a){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),jg(this,a),fl(this),this.display.input.reset(),hl(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,Xt(this,"swapDoc",this,f),f}),phrase:function(a){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,a)?f[a]:a},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}},pr(n),n.registerHelper=function(a,f,v){c.hasOwnProperty(a)||(c[a]=n[a]={_global:[]}),c[a][f]=v},n.registerGlobalHelper=function(a,f,v,b){n.registerHelper(a,f,b),c[a]._global.push({pred:v,val:b})}}function od(n,i,c,a,f){var v=i,b=c,x=Pe(n,i.line),_=f&&n.direction=="rtl"?-c:c;function k(){var Me=i.line+_;return Me<n.first||Me>=n.first+n.size?!1:(i=new se(Me,i.ch,i.sticky),x=Pe(n,Me))}function D(Me){var Te;if(a=="codepoint"){var Oe=x.text.charCodeAt(i.ch+(c>0?0:-1));if(isNaN(Oe))Te=null;else{var Be=c>0?Oe>=55296&&Oe<56320:Oe>=56320&&Oe<57343;Te=new se(i.line,Math.max(0,Math.min(x.text.length,i.ch+c*(Be?2:1))),-c)}}else f?Te=N_(n.cm,x,i,c):Te=Jf(x,i,c);if(Te==null)if(!Me&&k())i=Zf(f,n.cm,x,i.line,_);else return!1;else i=Te;return!0}if(a=="char"||a=="codepoint")D();else if(a=="column")D(!0);else if(a=="word"||a=="group")for(var U=null,te=a=="group",Y=n.cm&&n.cm.getHelper(i,"wordChars"),ae=!0;!(c<0&&!D(!ae));ae=!1){var ge=x.text.charAt(i.ch)||`
|
|
41
|
-
`,we=ot(ge,Y)?"w":te&&ge==`
|
|
42
|
-
`?"n":!te||/\s/.test(ge)?null:"p";if(te&&!ae&&!we&&(we="s"),U&&U!=we){c<0&&(c=1,D(),i.sticky="after");break}if(we&&(U=we),c>0&&!D(!ae))break}var ke=gc(n,i,v,b,!0);return ft(v,ke)&&(ke.hitSide=!0),ke}function Dv(n,i,c,a){var f=n.doc,v=i.left,b;if(a=="page"){var x=Math.min(n.display.wrapper.clientHeight,re(n).innerHeight||f(n).documentElement.clientHeight),_=Math.max(x-.5*os(n.display),3);b=(c>0?i.bottom:i.top)+c*_}else a=="line"&&(b=c>0?i.bottom+3:i.top-3);for(var k;k=Af(n,v,b),!!k.outside;){if(c<0?b<=0:b>=f.height){k.hitSide=!0;break}b+=c*5}return k}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,c=this,a=c.cm,f=c.div=n.lineDiv;f.contentEditable=!0,id(f,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function v(x){for(var _=x.target;_;_=_.parentNode){if(_==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}He(f,"paste",function(x){!v(x)||It(a,x)||Iv(x,a)||p<=11&&setTimeout(Yt(a,function(){return i.updateFromDOM()}),20)}),He(f,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),He(f,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),He(f,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),He(f,"touchstart",function(){return c.forceCompositionEnd()}),He(f,"input",function(){i.composing||i.readFromDOMSoon()});function b(x){if(!(!v(x)||It(a,x))){if(a.somethingSelected())xc({lineWise:!1,text:a.getSelections()}),x.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var _=Rv(a);xc({lineWise:!0,text:_.text}),x.type=="cut"&&a.operation(function(){a.setSelections(_.ranges,0,X),a.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var k=Sr.text.join(`
|
|
43
|
-
`);if(x.clipboardData.setData("Text",k),x.clipboardData.getData("Text")==k){x.preventDefault();return}}var D=zv(),U=D.firstChild;id(U),a.display.lineSpace.insertBefore(D,a.display.lineSpace.firstChild),U.value=Sr.text.join(`
|
|
44
|
-
`);var te=me(Ye(f));Re(U),setTimeout(function(){a.display.lineSpace.removeChild(D),te.focus(),te==f&&c.showPrimarySelection()},50)}}He(f,"copy",b),He(f,"cut",b)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Ag(this.cm,!1);return n.focus=me(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,c=i.doc.sel.primary(),a=c.from(),f=c.to();if(i.display.viewTo==i.display.viewFrom||a.line>=i.display.viewTo||f.line<i.display.viewFrom){n.removeAllRanges();return}var v=Sc(i,n.anchorNode,n.anchorOffset),b=Sc(i,n.focusNode,n.focusOffset);if(!(v&&!v.bad&&b&&!b.bad&&Le(ts(v,b),a)==0&&Le(_n(v,b),f)==0)){var x=i.display.view,_=a.line>=i.display.viewFrom&&Fv(i,a)||{node:x[0].measure.map[2],offset:0},k=f.line<i.display.viewTo&&Fv(i,f);if(!k){var D=x[x.length-1].measure,U=D.maps?D.maps[D.maps.length-1]:D.map;k={node:U[U.length-1],offset:U[U.length-2]-U[U.length-3]}}if(!_||!k){n.removeAllRanges();return}var te=n.rangeCount&&n.getRangeAt(0),Y;try{Y=j(_.node,_.offset,k.offset,k.node)}catch{}Y&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),Y.collapsed||(n.removeAllRanges(),n.addRange(Y))):(n.removeAllRanges(),n.addRange(Y)),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){O(this.cm.display.cursorDiv,n.cursors),O(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 ne(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||me(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 c(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},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(I&&y&&this.cm.display.gutterSpecs.length&&Z_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var c=Sc(i,n.anchorNode,n.anchorOffset),a=Sc(i,n.focusNode,n.focusOffset);c&&a&&Bn(i,function(){fn(i.doc,Ri(c,a),X),(c.bad||a.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,c=n.doc.sel.primary(),a=c.from(),f=c.to();if(a.ch==0&&a.line>n.firstLine()&&(a=se(a.line-1,Pe(n.doc,a.line-1).length)),f.ch==Pe(n.doc,f.line).text.length&&f.line<n.lastLine()&&(f=se(f.line+1,0)),a.line<i.viewFrom||f.line>i.viewTo-1)return!1;var v,b,x;a.line==i.viewFrom||(v=ko(n,a.line))==0?(b=M(i.view[0].line),x=i.view[0].node):(b=M(i.view[v].line),x=i.view[v-1].node.nextSibling);var _=ko(n,f.line),k,D;if(_==i.view.length-1?(k=i.viewTo-1,D=i.lineDiv.lastChild):(k=M(i.view[_+1].line)-1,D=i.view[_+1].node.previousSibling),!x)return!1;for(var U=n.doc.splitLines(Q_(n,x,D,b,k)),te=ni(n.doc,se(b,0),se(k,Pe(n.doc,k).text.length));U.length>1&&te.length>1;)if(ve(U)==ve(te))U.pop(),te.pop(),k--;else if(U[0]==te[0])U.shift(),te.shift(),b++;else break;for(var Y=0,ae=0,ge=U[0],we=te[0],ke=Math.min(ge.length,we.length);Y<ke&&ge.charCodeAt(Y)==we.charCodeAt(Y);)++Y;for(var Me=ve(U),Te=ve(te),Oe=Math.min(Me.length-(U.length==1?Y:0),Te.length-(te.length==1?Y:0));ae<Oe&&Me.charCodeAt(Me.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)++ae;if(U.length==1&&te.length==1&&b==a.line)for(;Y&&Y>a.ch&&Me.charCodeAt(Me.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)Y--,ae++;U[U.length-1]=Me.slice(0,Me.length-ae).replace(/^\u200b+/,""),U[0]=U[0].slice(Y).replace(/\u200b+$/,"");var Be=se(b,Y),ze=se(k,te.length?ve(te).length-ae:0);if(U.length>1||U[0]||Le(Be,ze))return hs(n.doc,U,Be,ze,"+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()||Yt(this.cm,rd)(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 Fv(n,i){var c=Tf(n,i.line);if(!c||c.hidden)return null;var a=Pe(n.doc,i.line),f=pg(c,a,i.line),v=et(a,n.doc.direction),b="left";if(v){var x=Dt(v,i.ch);b=x%2?"right":"left"}var _=mg(f.map,i.ch,b);return _.offset=_.collapse=="right"?_.end:_.start,_}function Z_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ys(n,i){return i&&(n.bad=!0),n}function Q_(n,i,c,a,f){var v="",b=!1,x=n.doc.lineSeparator(),_=!1;function k(Y){return function(ae){return ae.id==Y}}function D(){b&&(v+=x,_&&(v+=x),b=_=!1)}function U(Y){Y&&(D(),v+=Y)}function te(Y){if(Y.nodeType==1){var ae=Y.getAttribute("cm-text");if(ae){U(ae);return}var ge=Y.getAttribute("cm-marker"),we;if(ge){var ke=n.findMarks(se(a,0),se(f+1,0),k(+ge));ke.length&&(we=ke[0].find(0))&&U(ni(n.doc,we.from,we.to).join(x));return}if(Y.getAttribute("contenteditable")=="false")return;var Me=/^(pre|div|p|li|table|br)$/i.test(Y.nodeName);if(!/^br$/i.test(Y.nodeName)&&Y.textContent.length==0)return;Me&&D();for(var Te=0;Te<Y.childNodes.length;Te++)te(Y.childNodes[Te]);/^(pre|p)$/i.test(Y.nodeName)&&(_=!0),Me&&(b=!0)}else Y.nodeType==3&&U(Y.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;te(i),i!=c;)i=i.nextSibling,_=!1;return v}function Sc(n,i,c){var a;if(i==n.display.lineDiv){if(a=n.display.lineDiv.childNodes[c],!a)return ys(n.clipPos(se(n.display.viewTo-1)),!0);i=null,c=0}else for(a=i;;a=a.parentNode){if(!a||a==n.display.lineDiv)return null;if(a.parentNode&&a.parentNode==n.display.lineDiv)break}for(var f=0;f<n.display.view.length;f++){var v=n.display.view[f];if(v.node==a)return ek(v,i,c)}}function ek(n,i,c){var a=n.text.firstChild,f=!1;if(!i||!ne(a,i))return ys(se(M(n.line),0),!0);if(i==a&&(f=!0,i=a.childNodes[c],c=0,!i)){var v=n.rest?ve(n.rest):n.line;return ys(se(M(v),v.text.length),f)}var b=i.nodeType==3?i:null,x=i;for(!b&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(b=i.firstChild,c&&(c=b.nodeValue.length));x.parentNode!=a;)x=x.parentNode;var _=n.measure,k=_.maps;function D(we,ke,Me){for(var Te=-1;Te<(k?k.length:0);Te++)for(var Oe=Te<0?_.map:k[Te],Be=0;Be<Oe.length;Be+=3){var ze=Oe[Be+2];if(ze==we||ze==ke){var Ze=M(Te<0?n.line:n.rest[Te]),St=Oe[Be]+Me;return(Me<0||ze!=we)&&(St=Oe[Be+(Me?1:0)]),se(Ze,St)}}}var U=D(b,x,c);if(U)return ys(U,f);for(var te=x.nextSibling,Y=b?b.nodeValue.length-c:0;te;te=te.nextSibling){if(U=D(te,te.firstChild,0),U)return ys(se(U.line,U.ch-Y),f);Y+=te.textContent.length}for(var ae=x.previousSibling,ge=c;ae;ae=ae.previousSibling){if(U=D(ae,ae.firstChild,-1),U)return ys(se(U.line,U.ch+ge),f);ge+=ae.textContent.length}}var Ft=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ft.prototype.init=function(n){var i=this,c=this,a=this.cm;this.createField(n);var f=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),A&&(f.style.width="0px"),He(f,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),c.poll()}),He(f,"paste",function(b){It(a,b)||Iv(b,a)||(a.state.pasteIncoming=+new Date,c.fastPoll())});function v(b){if(!It(a,b)){if(a.somethingSelected())xc({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var x=Rv(a);xc({lineWise:!0,text:x.text}),b.type=="cut"?a.setSelections(x.ranges,null,X):(c.prevInput="",f.value=x.text.join(`
|
|
45
|
-
`),Re(f))}else return;b.type=="cut"&&(a.state.cutIncoming=+new Date)}}He(f,"cut",v),He(f,"copy",v),He(n.scroller,"paste",function(b){if(!(oi(n,b)||It(a,b))){if(!f.dispatchEvent){a.state.pasteIncoming=+new Date,c.focus();return}var x=new Event("paste");x.clipboardData=b.clipboardData,f.dispatchEvent(x)}}),He(n.lineSpace,"selectstart",function(b){oi(n,b)||un(b)}),He(f,"compositionstart",function(){var b=a.getCursor("from");c.composing&&c.composing.range.clear(),c.composing={start:b,range:a.markText(b,a.getCursor("to"),{className:"CodeMirror-composing"})}}),He(f,"compositionend",function(){c.composing&&(c.poll(),c.composing.range.clear(),c.composing=null)})},Ft.prototype.createField=function(n){this.wrapper=zv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;id(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ft.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Ft.prototype.prepareSelection=function(){var n=this.cm,i=n.display,c=n.doc,a=Ag(n);if(n.options.moveInputWithCursor){var f=wr(n,c.sel.primary().head,"div"),v=i.wrapper.getBoundingClientRect(),b=i.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,f.top+b.top-v.top)),a.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,f.left+b.left-v.left))}return a},Ft.prototype.showSelection=function(n){var i=this.cm,c=i.display;O(c.cursorDiv,n.cursors),O(c.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Ft.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var c=i.getSelection();this.textarea.value=c,i.state.focused&&Re(this.textarea),h&&p>=9&&(this.hasSelection=c)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ft.prototype.getField=function(){return this.textarea},Ft.prototype.supportsTouch=function(){return!1},Ft.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!L||me(Ye(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ft.prototype.blur=function(){this.textarea.blur()},Ft.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ft.prototype.receivedFocus=function(){this.slowPoll()},Ft.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Ft.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function c(){var a=i.poll();!a&&!n?(n=!0,i.polling.set(60,c)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,c)},Ft.prototype.poll=function(){var n=this,i=this.cm,c=this.textarea,a=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||$i(c)&&!a&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var f=c.value;if(f==a&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===f||H&&/[\uf700-\uf7ff]/.test(f))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var v=f.charCodeAt(0);if(v==8203&&!a&&(a=""),v==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,x=Math.min(a.length,f.length);b<x&&a.charCodeAt(b)==f.charCodeAt(b);)++b;return Bn(i,function(){rd(i,f.slice(b),a.length-b,null,n.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
46
|
-
`)>-1?c.value=n.prevInput="":n.prevInput=f,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ft.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ft.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ft.prototype.onContextMenu=function(n){var i=this,c=i.cm,a=c.display,f=i.textarea;i.contextMenuPending&&i.contextMenuPending();var v=_o(c,n),b=a.scroller.scrollTop;if(!v||C)return;var x=c.options.resetSelectionOnContextMenu;x&&c.doc.sel.contains(v)==-1&&Yt(c,fn)(c.doc,Ri(v),X);var _=f.style.cssText,k=i.wrapper.style.cssText,D=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
47
|
-
top: `+(n.clientY-D.top-5)+"px; left: "+(n.clientX-D.left-5)+`px;
|
|
48
|
-
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
49
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var U;g&&(U=f.ownerDocument.defaultView.scrollY),a.input.focus(),g&&f.ownerDocument.defaultView.scrollTo(null,U),a.input.reset(),c.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=Y,a.selForContextMenu=c.doc.sel,clearTimeout(a.detectingSelectAll);function te(){if(f.selectionStart!=null){var ge=c.somethingSelected(),we=""+(ge?f.value:"");f.value="⇚",f.value=we,i.prevInput=ge?"":"",f.selectionStart=1,f.selectionEnd=we.length,a.selForContextMenu=c.doc.sel}}function Y(){if(i.contextMenuPending==Y&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,f.style.cssText=_,h&&p<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=b),f.selectionStart!=null)){(!h||h&&p<9)&&te();var ge=0,we=function(){a.selForContextMenu==c.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput==""?Yt(c,iv)(c):ge++<10?a.detectingSelectAll=setTimeout(we,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(we,200)}}if(h&&p>=9&&te(),Q){Li(n);var ae=function(){cn(window,"mouseup",ae),setTimeout(Y,20)};He(window,"mouseup",ae)}else setTimeout(Y,50)},Ft.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Ft.prototype.setUneditable=function(){},Ft.prototype.needsContentAttribute=!1;function tk(n,i){if(i=i?J(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var c=me(Ye(n));i.autofocus=c==n||n.getAttribute("autofocus")!=null&&c==document.body}function a(){n.value=x.getValue()}var f;if(n.form&&(He(n.form,"submit",a),!i.leaveSubmitMethodAlone)){var v=n.form;f=v.submit;try{var b=v.submit=function(){a(),v.submit=f,v.submit(),v.submit=b}}catch{}}i.finishInit=function(_){_.save=a,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,a(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(cn(n.form,"submit",a),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=f))}},n.style.display="none";var x=Et(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return x}function nk(n){n.off=cn,n.on=He,n.wheelEventPixels=c_,n.Doc=Tn,n.splitLines=lr,n.countColumn=K,n.findColumn=de,n.isWordChar=tt,n.Pass=W,n.signal=Ot,n.Line=ns,n.changeEnd=zi,n.scrollbarModel=Ig,n.Pos=se,n.cmpPos=Le,n.modes=Yo,n.mimeModes=mr,n.resolveMode=Jo,n.getMode=Zo,n.modeExtensions=Ni,n.extendMode=Qo,n.copyState=Dr,n.startState=es,n.innerMode=il,n.commands=Al,n.keyMap=li,n.keyName=wv,n.isModifierKey=yv,n.lookupKey=gs,n.normalizeKeyMap=$_,n.StringStream=Pt,n.SharedTextMarker=Tl,n.TextMarker=Fi,n.LineWidget=kl,n.e_preventDefault=un,n.e_stopPropagation=Ko,n.e_stop=Li,n.addClass=xe,n.contains=ne,n.rmClass=N,n.keyNames=Hi}G_(Et),J_(Et);var rk="iter insert remove copy getEditor constructor".split(" ");for(var _c in Tn.prototype)Tn.prototype.hasOwnProperty(_c)&&pe(rk,_c)<0&&(Et.prototype[_c]=function(n){return function(){return n.apply(this.doc,arguments)}}(Tn.prototype[_c]));return pr(Tn),Et.inputStyles={textarea:Ft,contenteditable:yt},Et.defineMode=function(n){!Et.defaults.mode&&n!="null"&&(Et.defaults.mode=n),yr.apply(this,arguments)},Et.defineMIME=wo,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=tk,nk(Et),Et.version="5.65.18",Et})}(Yc)),Yc.exports}var mde=tl();const yde=H1(mde);var F0={exports:{}},H0;function tx(){return H0||(H0=1,function(e,t){(function(r){r(tl())})(function(r){r.defineMode("javascript",function(o,s){var l=o.indentUnit,u=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,g=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,y=function(){function M(Kt){return{type:Kt,style:"keyword"}}var q=M("keyword a"),fe=M("keyword b"),be=M("keyword c"),se=M("keyword d"),Le=M("operator"),ft={type:"atom",style:"atom"};return{if:M("if"),while:q,with:q,else:fe,do:fe,try:fe,finally:fe,return:se,break:se,continue:se,new:M("new"),delete:be,void:be,throw:be,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Le,typeof:Le,instanceof:Le,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:M("this"),class:M("class"),super:M("atom"),yield:be,export:M("export"),import:M("import"),extends:be,await:be}}(),w=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function $(M){for(var q=!1,fe,be=!1;(fe=M.next())!=null;){if(!q){if(fe=="/"&&!be)return;fe=="["?be=!0:be&&fe=="]"&&(be=!1)}q=!q&&fe=="\\"}}var E,T;function A(M,q,fe){return E=M,T=fe,q}function I(M,q){var fe=M.next();if(fe=='"'||fe=="'")return q.tokenize=L(fe),q.tokenize(M,q);if(fe=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return A("number","number");if(fe=="."&&M.match(".."))return A("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return A(fe);if(fe=="="&&M.eat(">"))return A("=>","operator");if(fe=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return A("number","number");if(/\d/.test(fe))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),A("number","number");if(fe=="/")return M.eat("*")?(q.tokenize=H,H(M,q)):M.eat("/")?(M.skipToEnd(),A("comment","comment")):Yn(M,q,1)?($(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),A("regexp","string-2")):(M.eat("="),A("operator","operator",M.current()));if(fe=="`")return q.tokenize=G,G(M,q);if(fe=="#"&&M.peek()=="!")return M.skipToEnd(),A("meta","meta");if(fe=="#"&&M.eatWhile(m))return A("variable","property");if(fe=="<"&&M.match("!--")||fe=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),A("comment","comment");if(w.test(fe))return(fe!=">"||!q.lexical||q.lexical.type!=">")&&(M.eat("=")?(fe=="!"||fe=="=")&&M.eat("="):/[<>*+\-|&?]/.test(fe)&&(M.eat(fe),fe==">"&&M.eat(fe))),fe=="?"&&M.eat(".")?A("."):A("operator","operator",M.current());if(m.test(fe)){M.eatWhile(m);var be=M.current();if(q.lastType!="."){if(y.propertyIsEnumerable(be)){var se=y[be];return A(se.type,se.style,be)}if(be=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",be)}return A("variable","variable",be)}}function L(M){return function(q,fe){var be=!1,se;if(d&&q.peek()=="@"&&q.match(C))return fe.tokenize=I,A("jsonld-keyword","meta");for(;(se=q.next())!=null&&!(se==M&&!be);)be=!be&&se=="\\";return be||(fe.tokenize=I),A("string","string")}}function H(M,q){for(var fe=!1,be;be=M.next();){if(be=="/"&&fe){q.tokenize=I;break}fe=be=="*"}return A("comment","comment")}function G(M,q){for(var fe=!1,be;(be=M.next())!=null;){if(!fe&&(be=="`"||be=="$"&&M.eat("{"))){q.tokenize=I;break}fe=!fe&&be=="\\"}return A("quasi","string-2",M.current())}var oe="([{}])";function ee(M,q){q.fatArrowAt&&(q.fatArrowAt=null);var fe=M.string.indexOf("=>",M.start);if(!(fe<0)){if(g){var be=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,fe));be&&(fe=be.index)}for(var se=0,Le=!1,ft=fe-1;ft>=0;--ft){var Kt=M.string.charAt(ft),_n=oe.indexOf(Kt);if(_n>=0&&_n<3){if(!se){++ft;break}if(--se==0){Kt=="("&&(Le=!0);break}}else if(_n>=3&&_n<6)++se;else if(m.test(Kt))Le=!0;else if(/["'\/`]/.test(Kt))for(;;--ft){if(ft==0)return;var ts=M.string.charAt(ft-1);if(ts==Kt&&M.string.charAt(ft-2)!="\\"){ft--;break}}else if(Le&&!se){++ft;break}}Le&&!se&&(q.fatArrowAt=ft)}}var Z={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Q(M,q,fe,be,se,Le){this.indented=M,this.column=q,this.type=fe,this.prev=se,this.info=Le,be!=null&&(this.align=be)}function F(M,q){if(!p)return!1;for(var fe=M.localVars;fe;fe=fe.next)if(fe.name==q)return!0;for(var be=M.context;be;be=be.prev)for(var fe=be.vars;fe;fe=fe.next)if(fe.name==q)return!0}function N(M,q,fe,be,se){var Le=M.cc;for(P.state=M,P.stream=se,P.marked=null,P.cc=Le,P.style=q,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var ft=Le.length?Le.pop():h?pe:K;if(ft(fe,be)){for(;Le.length&&Le[Le.length-1].lex;)Le.pop()();return P.marked?P.marked:fe=="variable"&&F(M,be)?"variable-2":q}}}var P={state:null,marked:null,cc:null};function O(){for(var M=arguments.length-1;M>=0;M--)P.cc.push(arguments[M])}function S(){return O.apply(null,arguments),!0}function R(M,q){for(var fe=q;fe;fe=fe.next)if(fe.name==M)return!0;return!1}function j(M){var q=P.state;if(P.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var fe=ne(M,q.context);if(fe!=null){q.context=fe;return}}else if(!R(M,q.localVars)){q.localVars=new Ne(M,q.localVars);return}}s.globalVars&&!R(M,q.globalVars)&&(q.globalVars=new Ne(M,q.globalVars))}}function ne(M,q){if(q)if(q.block){var fe=ne(M,q.prev);return fe?fe==q.prev?q:new xe(fe,q.vars,!0):null}else return R(M,q.vars)?q:new xe(q.prev,new Ne(M,q.vars),!1);else return null}function me(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function xe(M,q,fe){this.prev=M,this.vars=q,this.block=fe}function Ne(M,q){this.name=M,this.next=q}var Re=new Ne("this",new Ne("arguments",null));function je(){P.state.context=new xe(P.state.context,P.state.localVars,!1),P.state.localVars=Re}function Xe(){P.state.context=new xe(P.state.context,P.state.localVars,!0),P.state.localVars=null}je.lex=Xe.lex=!0;function Ye(){P.state.localVars=P.state.context.vars,P.state.context=P.state.context.prev}Ye.lex=!0;function re(M,q){var fe=function(){var be=P.state,se=be.indented;if(be.lexical.type=="stat")se=be.lexical.indented;else for(var Le=be.lexical;Le&&Le.type==")"&&Le.align;Le=Le.prev)se=Le.indented;be.lexical=new Q(se,P.stream.column(),M,null,be.lexical,q)};return fe.lex=!0,fe}function B(){var M=P.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}B.lex=!0;function J(M){function q(fe){return fe==M?S():M==";"||fe=="}"||fe==")"||fe=="]"?O():S(q)}return q}function K(M,q){return M=="var"?S(re("vardef",q),Ko,J(";"),B):M=="keyword a"?S(re("form"),W,K,B):M=="keyword b"?S(re("form"),K,B):M=="keyword d"?P.stream.match(/^\s*$/,!1)?S():S(re("stat"),ue,J(";"),B):M=="debugger"?S(J(";")):M=="{"?S(re("}"),Xe,Bt,B,Ye):M==";"?S():M=="if"?(P.state.lexical.info=="else"&&P.state.cc[P.state.cc.length-1]==B&&P.state.cc.pop()(),S(re("form"),W,K,B,Xo)):M=="function"?S(lr):M=="for"?S(re("form"),Xe,Va,K,Ye,B):M=="class"||g&&q=="interface"?(P.marked="keyword",S(re("form",M=="class"?M:q),Yo,B)):M=="variable"?g&&q=="declare"?(P.marked="keyword",S(K)):g&&(q=="module"||q=="enum"||q=="type")&&P.stream.match(/^\s*\w/,!1)?(P.marked="keyword",q=="enum"?S(Pe):q=="type"?S(Ga,J("operator"),et,J(";")):S(re("form"),Sn,J("{"),re("}"),Bt,B,B)):g&&q=="namespace"?(P.marked="keyword",S(re("form"),pe,K,B)):g&&q=="abstract"?(P.marked="keyword",S(K)):S(re("stat"),Ve):M=="switch"?S(re("form"),W,J("{"),re("}","switch"),Xe,Bt,B,B,Ye):M=="case"?S(pe,J(":")):M=="default"?S(J(":")):M=="catch"?S(re("form"),je,le,K,B,Ye):M=="export"?S(re("stat"),Jo,B):M=="import"?S(re("stat"),Ni,B):M=="async"?S(K):q=="@"?S(pe,K):O(re("stat"),pe,J(";"),B)}function le(M){if(M=="(")return S(vr,J(")"))}function pe(M,q){return X(M,q,!1)}function z(M,q){return X(M,q,!0)}function W(M){return M!="("?O():S(re(")"),ue,J(")"),B)}function X(M,q,fe){if(P.state.fatArrowAt==P.stream.start){var be=fe?ye:ve;if(M=="(")return S(je,re(")"),st(vr,")"),B,J("=>"),be,Ye);if(M=="variable")return O(je,Sn,J("=>"),be,Ye)}var se=fe?de:he;return Z.hasOwnProperty(M)?S(se):M=="function"?S(lr,se):M=="class"||g&&q=="interface"?(P.marked="keyword",S(re("form"),pf,B)):M=="keyword c"||M=="async"?S(fe?z:pe):M=="("?S(re(")"),ue,J(")"),B,se):M=="operator"||M=="spread"?S(fe?z:pe):M=="["?S(re("]"),Pt,B,se):M=="{"?Gt(ot,"}",null,se):M=="quasi"?O(Ce,se):M=="new"?S(We(fe)):S()}function ue(M){return M.match(/[;\}\)\],]/)?O():O(pe)}function he(M,q){return M==","?S(ue):de(M,q,!1)}function de(M,q,fe){var be=fe==!1?he:de,se=fe==!1?pe:z;if(M=="=>")return S(je,fe?ye:ve,Ye);if(M=="operator")return/\+\+|--/.test(q)||g&&q=="!"?S(be):g&&q=="<"&&P.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(re(">"),st(et,">"),B,be):q=="?"?S(pe,J(":"),se):S(se);if(M=="quasi")return O(Ce,be);if(M!=";"){if(M=="(")return Gt(z,")","call",be);if(M==".")return S(tt,be);if(M=="[")return S(re("]"),ue,J("]"),B,be);if(g&&q=="as")return P.marked="keyword",S(et,be);if(M=="regexp")return P.state.lastType=P.marked="operator",P.stream.backUp(P.stream.pos-P.stream.start-1),S(se)}}function Ce(M,q){return M!="quasi"?O():q.slice(q.length-2)!="${"?S(Ce):S(ue,Ee)}function Ee(M){if(M=="}")return P.marked="string-2",P.state.tokenize=G,S(Ce)}function ve(M){return ee(P.stream,P.state),O(M=="{"?K:pe)}function ye(M){return ee(P.stream,P.state),O(M=="{"?K:z)}function We(M){return function(q){return q=="."?S(M?De:$e):q=="variable"&&g?S(Hn,M?de:he):O(M?z:pe)}}function $e(M,q){if(q=="target")return P.marked="keyword",S(he)}function De(M,q){if(q=="target")return P.marked="keyword",S(de)}function Ve(M){return M==":"?S(B,K):O(he,J(";"),B)}function tt(M){if(M=="variable")return P.marked="property",S()}function ot(M,q){if(M=="async")return P.marked="property",S(ot);if(M=="variable"||P.style=="keyword"){if(P.marked="property",q=="get"||q=="set")return S(lt);var fe;return g&&P.state.fatArrowAt==P.stream.start&&(fe=P.stream.match(/^\s*:\s*/,!1))&&(P.state.fatArrowAt=P.stream.pos+fe[0].length),S(Nt)}else{if(M=="number"||M=="string")return P.marked=d?"property":P.style+" property",S(Nt);if(M=="jsonld-keyword")return S(Nt);if(g&&me(q))return P.marked="keyword",S(ot);if(M=="[")return S(pe,Dn,J("]"),Nt);if(M=="spread")return S(z,Nt);if(q=="*")return P.marked="keyword",S(ot);if(M==":")return O(Nt)}}function lt(M){return M!="variable"?O(Nt):(P.marked="property",S(lr))}function Nt(M){if(M==":")return S(z);if(M=="(")return O(lr)}function st(M,q,fe){function be(se,Le){if(fe?fe.indexOf(se)>-1:se==","){var ft=P.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),S(function(Kt,_n){return Kt==q||_n==q?O():O(M)},be)}return se==q||Le==q?S():fe&&fe.indexOf(";")>-1?O(M):S(J(q))}return function(se,Le){return se==q||Le==q?S():O(M,be)}}function Gt(M,q,fe){for(var be=3;be<arguments.length;be++)P.cc.push(arguments[be]);return S(re(q,fe),st(M,q),B)}function Bt(M){return M=="}"?S():O(K,Bt)}function Dn(M,q){if(g){if(M==":")return S(et);if(q=="?")return S(Dn)}}function zr(M,q){if(g&&(M==":"||q=="in"))return S(et)}function Dt(M){if(g&&M==":")return P.stream.match(/^\s*\w+\s+is\b/,!1)?S(pe,Fn,et):S(et)}function Fn(M,q){if(q=="is")return P.marked="keyword",S()}function et(M,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return P.marked="keyword",S(q=="typeof"?z:et);if(M=="variable"||q=="void")return P.marked="type",S(sr);if(q=="|"||q=="&")return S(et);if(M=="string"||M=="number"||M=="atom")return S(sr);if(M=="[")return S(re("]"),st(et,"]",","),B,sr);if(M=="{")return S(re("}"),He,B,sr);if(M=="(")return S(st(It,")"),ja,sr);if(M=="<")return S(st(et,">"),et);if(M=="quasi")return O(cn,sr)}function ja(M){if(M=="=>")return S(et)}function He(M){return M.match(/[\}\)\]]/)?S():M==","||M==";"?S(He):O(ti,He)}function ti(M,q){if(M=="variable"||P.style=="keyword")return P.marked="property",S(ti);if(q=="?"||M=="number"||M=="string")return S(ti);if(M==":")return S(et);if(M=="[")return S(J("variable"),zr,J("]"),ti);if(M=="(")return O($i,ti);if(!M.match(/[;\}\)\],]/))return S()}function cn(M,q){return M!="quasi"?O():q.slice(q.length-2)!="${"?S(cn):S(et,Ot)}function Ot(M){if(M=="}")return P.marked="string-2",P.state.tokenize=G,S(cn)}function It(M,q){return M=="variable"&&P.stream.match(/^\s*[?:]/,!1)||q=="?"?S(It):M==":"?S(et):M=="spread"?S(It):O(et)}function sr(M,q){if(q=="<")return S(re(">"),st(et,">"),B,sr);if(q=="|"||M=="."||q=="&")return S(et);if(M=="[")return S(et,J("]"),sr);if(q=="extends"||q=="implements")return P.marked="keyword",S(et);if(q=="?")return S(et,J(":"),et)}function Hn(M,q){if(q=="<")return S(re(">"),st(et,">"),B,sr)}function pr(){return O(et,un)}function un(M,q){if(q=="=")return S(et)}function Ko(M,q){return q=="enum"?(P.marked="keyword",S(Pe)):O(Sn,Dn,gr,hf)}function Sn(M,q){if(g&&me(q))return P.marked="keyword",S(Sn);if(M=="variable")return j(q),S();if(M=="spread")return S(Sn);if(M=="[")return Gt(nl,"]");if(M=="{")return Gt(Li,"}")}function Li(M,q){return M=="variable"&&!P.stream.match(/^\s*:/,!1)?(j(q),S(gr)):(M=="variable"&&(P.marked="property"),M=="spread"?S(Sn):M=="}"?O():M=="["?S(pe,J("]"),J(":"),Li):S(J(":"),Sn,gr))}function nl(){return O(Sn,gr)}function gr(M,q){if(q=="=")return S(z)}function hf(M){if(M==",")return S(Ko)}function Xo(M,q){if(M=="keyword b"&&q=="else")return S(re("form","else"),K,B)}function Va(M,q){if(q=="await")return S(Va);if(M=="(")return S(re(")"),rl,B)}function rl(M){return M=="var"?S(Ko,Mi):M=="variable"?S(Mi):O(Mi)}function Mi(M,q){return M==")"?S():M==";"?S(Mi):q=="in"||q=="of"?(P.marked="keyword",S(pe,Mi)):O(pe,Mi)}function lr(M,q){if(q=="*")return P.marked="keyword",S(lr);if(M=="variable")return j(q),S(lr);if(M=="(")return S(je,re(")"),st(vr,")"),B,Dt,K,Ye);if(g&&q=="<")return S(re(">"),st(pr,">"),B,lr)}function $i(M,q){if(q=="*")return P.marked="keyword",S($i);if(M=="variable")return j(q),S($i);if(M=="(")return S(je,re(")"),st(vr,")"),B,Dt,Ye);if(g&&q=="<")return S(re(">"),st(pr,">"),B,$i)}function Ga(M,q){if(M=="keyword"||M=="variable")return P.marked="type",S(Ga);if(q=="<")return S(re(">"),st(pr,">"),B)}function vr(M,q){return q=="@"&&S(pe,vr),M=="spread"?S(vr):g&&me(q)?(P.marked="keyword",S(vr)):g&&M=="this"?S(Dn,gr):O(Sn,Dn,gr)}function pf(M,q){return M=="variable"?Yo(M,q):mr(M,q)}function Yo(M,q){if(M=="variable")return j(q),S(mr)}function mr(M,q){if(q=="<")return S(re(">"),st(pr,">"),B,mr);if(q=="extends"||q=="implements"||g&&M==",")return q=="implements"&&(P.marked="keyword"),S(g?et:pe,mr);if(M=="{")return S(re("}"),yr,B)}function yr(M,q){if(M=="async"||M=="variable"&&(q=="static"||q=="get"||q=="set"||g&&me(q))&&P.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return P.marked="keyword",S(yr);if(M=="variable"||P.style=="keyword")return P.marked="property",S(wo,yr);if(M=="number"||M=="string")return S(wo,yr);if(M=="[")return S(pe,Dn,J("]"),wo,yr);if(q=="*")return P.marked="keyword",S(yr);if(g&&M=="(")return O($i,yr);if(M==";"||M==",")return S(yr);if(M=="}")return S();if(q=="@")return S(pe,yr)}function wo(M,q){if(q=="!"||q=="?")return S(wo);if(M==":")return S(et,gr);if(q=="=")return S(z);var fe=P.state.lexical.prev,be=fe&&fe.info=="interface";return O(be?$i:lr)}function Jo(M,q){return q=="*"?(P.marked="keyword",S(es,J(";"))):q=="default"?(P.marked="keyword",S(pe,J(";"))):M=="{"?S(st(Zo,"}"),es,J(";")):O(K)}function Zo(M,q){if(q=="as")return P.marked="keyword",S(J("variable"));if(M=="variable")return O(z,Zo)}function Ni(M){return M=="string"?S():M=="("?O(pe):M=="."?O(he):O(Qo,Dr,es)}function Qo(M,q){return M=="{"?Gt(Qo,"}"):(M=="variable"&&j(q),q=="*"&&(P.marked="keyword"),S(il))}function Dr(M){if(M==",")return S(Qo,Dr)}function il(M,q){if(q=="as")return P.marked="keyword",S(Qo)}function es(M,q){if(q=="from")return P.marked="keyword",S(pe)}function Pt(M){return M=="]"?S():O(st(z,"]"))}function Pe(){return O(re("form"),Sn,J("{"),re("}"),st(ni,"}"),B,B)}function ni(){return O(Sn,gr)}function ol(M,q){return M.lastType=="operator"||M.lastType==","||w.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Yn(M,q,fe){return q.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(fe||0)))}return{startState:function(M){var q={tokenize:I,lastType:"sof",cc:[],lexical:new Q((M||0)-l,0,"block",!1),localVars:s.localVars,context:s.localVars&&new xe(null,null,!1),indented:M||0};return s.globalVars&&typeof s.globalVars=="object"&&(q.globalVars=s.globalVars),q},token:function(M,q){if(M.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=M.indentation(),ee(M,q)),q.tokenize!=H&&M.eatSpace())return null;var fe=q.tokenize(M,q);return E=="comment"?fe:(q.lastType=E=="operator"&&(T=="++"||T=="--")?"incdec":E,N(q,fe,E,T,M))},indent:function(M,q){if(M.tokenize==H||M.tokenize==G)return r.Pass;if(M.tokenize!=I)return 0;var fe=q&&q.charAt(0),be=M.lexical,se;if(!/^\s*else\b/.test(q))for(var Le=M.cc.length-1;Le>=0;--Le){var ft=M.cc[Le];if(ft==B)be=be.prev;else if(ft!=Xo&&ft!=Ye)break}for(;(be.type=="stat"||be.type=="form")&&(fe=="}"||(se=M.cc[M.cc.length-1])&&(se==he||se==de)&&!/^[,\.=+\-*:?[\(]/.test(q));)be=be.prev;u&&be.type==")"&&be.prev.type=="stat"&&(be=be.prev);var Kt=be.type,_n=fe==Kt;return Kt=="vardef"?be.indented+(M.lastType=="operator"||M.lastType==","?be.info.length+1:0):Kt=="form"&&fe=="{"?be.indented:Kt=="form"?be.indented+l:Kt=="stat"?be.indented+(ol(M,q)?u||l:0):be.info=="switch"&&!_n&&s.doubleIndentSwitch!=!1?be.indented+(/^(?:case|default)\b/.test(q)?l:2*l):be.align?be.column+(_n?0:1):be.indented+(_n?0:l)},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:Yn,skipExpression:function(M){N(M,"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})})}()),F0.exports}tx();var B0={exports:{}},W0;function nx(){return W0||(W0=1,function(e,t){(function(r){r(tl())})(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(l,u){var d=l.indentUnit,h={},p=u.htmlMode?o:s;for(var g in p)h[g]=p[g];for(var g in u)h[g]=u[g];var m,y;function w(S,R){function j(xe){return R.tokenize=xe,xe(S,R)}var ne=S.next();if(ne=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?j(E("atom","]]>")):null:S.match("--")?j(E("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),j(T(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=E("meta","?>"),"meta"):(m=S.eat("/")?"closeTag":"openTag",R.tokenize=C,"tag bracket");if(ne=="&"){var me;return S.eat("#")?S.eat("x")?me=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):me=S.eatWhile(/[\d]/)&&S.eat(";"):me=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),me?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function C(S,R){var j=S.next();if(j==">"||j=="/"&&S.eat(">"))return R.tokenize=w,m=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return m="equals",null;if(j=="<"){R.tokenize=w,R.state=G,R.tagName=R.tagStart=null;var ne=R.tokenize(S,R);return ne?ne+" tag error":"tag error"}else return/[\'\"]/.test(j)?(R.tokenize=$(j),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function $(S){var R=function(j,ne){for(;!j.eol();)if(j.next()==S){ne.tokenize=C;break}return"string"};return R.isInAttribute=!0,R}function E(S,R){return function(j,ne){for(;!j.eol();){if(j.match(R)){ne.tokenize=w;break}j.next()}return S}}function T(S){return function(R,j){for(var ne;(ne=R.next())!=null;){if(ne=="<")return j.tokenize=T(S+1),j.tokenize(R,j);if(ne==">")if(S==1){j.tokenize=w;break}else return j.tokenize=T(S-1),j.tokenize(R,j)}return"meta"}}function A(S){return S&&S.toLowerCase()}function I(S,R,j){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=j,(h.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function L(S){S.context&&(S.context=S.context.prev)}function H(S,R){for(var j;;){if(!S.context||(j=S.context.tagName,!h.contextGrabbers.hasOwnProperty(A(j))||!h.contextGrabbers[A(j)].hasOwnProperty(A(R))))return;L(S)}}function G(S,R,j){return S=="openTag"?(j.tagStart=R.column(),oe):S=="closeTag"?ee:G}function oe(S,R,j){return S=="word"?(j.tagName=R.current(),y="tag",F):h.allowMissingTagName&&S=="endTag"?(y="tag bracket",F(S,R,j)):(y="error",oe)}function ee(S,R,j){if(S=="word"){var ne=R.current();return j.context&&j.context.tagName!=ne&&h.implicitlyClosed.hasOwnProperty(A(j.context.tagName))&&L(j),j.context&&j.context.tagName==ne||h.matchClosing===!1?(y="tag",Z):(y="tag error",Q)}else return h.allowMissingTagName&&S=="endTag"?(y="tag bracket",Z(S,R,j)):(y="error",Q)}function Z(S,R,j){return S!="endTag"?(y="error",Z):(L(j),G)}function Q(S,R,j){return y="error",Z(S,R,j)}function F(S,R,j){if(S=="word")return y="attribute",N;if(S=="endTag"||S=="selfcloseTag"){var ne=j.tagName,me=j.tagStart;return j.tagName=j.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(A(ne))?H(j,ne):(H(j,ne),j.context=new I(j,ne,me==j.indented)),G}return y="error",F}function N(S,R,j){return S=="equals"?P:(h.allowMissing||(y="error"),F(S,R,j))}function P(S,R,j){return S=="string"?O:S=="word"&&h.allowUnquoted?(y="string",F):(y="error",F(S,R,j))}function O(S,R,j){return S=="string"?O:F(S,R,j)}return{startState:function(S){var R={tokenize:w,state:G,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;m=null;var j=R.tokenize(S,R);return(j||m)&&j!="comment"&&(y=null,R.state=R.state(m||j,S,R),y&&(j=y=="error"?j+" error":y)),j},indent:function(S,R,j){var ne=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+d;if(ne&&ne.noIndent)return r.Pass;if(S.tokenize!=C&&S.tokenize!=w)return j?j.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(R))return 0;var me=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(me&&me[1])for(;ne;)if(ne.tagName==me[2]){ne=ne.prev;break}else if(h.implicitlyClosed.hasOwnProperty(A(ne.tagName)))ne=ne.prev;else break;else if(me)for(;ne;){var xe=h.contextGrabbers[A(ne.tagName)];if(xe&&xe.hasOwnProperty(A(me[2])))ne=ne.prev;else break}for(;ne&&ne.prev&&!ne.startOfLine;)ne=ne.prev;return ne?ne.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==P&&(S.state=F)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],j=S.context;j;j=j.prev)R.push(j.tagName);return R.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),B0.exports}nx();var q0={exports:{}},U0;function bde(){return U0||(U0=1,function(e,t){(function(r){r(tl(),nx(),tx())})(function(r){function o(l,u,d,h){this.state=l,this.mode=u,this.depth=d,this.prev=h}function s(l){return new o(r.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&s(l.prev))}r.defineMode("jsx",function(l,u){var d=r.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(l,u&&u.base||"javascript");function p(w){var C=w.tagName;w.tagName=null;var $=d.indent(w,"","");return w.tagName=C,$}function g(w,C){return C.context.mode==d?m(w,C,C.context):y(w,C,C.context)}function m(w,C,$){if($.depth==2)return w.match(/^.*?\*\//)?$.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute($.state);var E=p($.state),T=$.state.context;if(T&&w.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.startOfLine?E-=l.indentUnit:$.prev.state.lexical&&(E=$.prev.state.lexical.indented)}else $.depth==1&&(E+=l.indentUnit);return C.context=new o(r.startState(h,E),h,0,C.context),null}if($.depth==1){if(w.peek()=="<")return d.skipAttribute($.state),C.context=new o(r.startState(d,p($.state)),d,0,C.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return $.depth=2,g(w,C)}var A=d.token(w,$.state),I=w.current(),L;return/\btag\b/.test(A)?/>$/.test(I)?$.state.context?$.depth=0:C.context=C.context.prev:/^</.test(I)&&($.depth=1):!A&&(L=I.indexOf("{"))>-1&&w.backUp(I.length-L),A}function y(w,C,$){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,$.state))return C.context=new o(r.startState(d,h.indent($.state,"","")),d,0,C.context),h.skipExpression($.state),null;var E=h.token(w,$.state);if(!E&&$.depth!=null){var T=w.current();T=="{"?$.depth++:T=="}"&&--$.depth==0&&(C.context=C.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,C,$){return w.context.mode.indent(w.context.state,C,$)},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}})})}()),q0.exports}bde();var j0={exports:{}},V0;function wde(){return V0||(V0=1,function(e,t){(function(r){r(tl())})(function(r){r.defineOption("placeholder","",function(p,g,m){var y=m&&m!=r.Init;if(g&&!y)p.on("blur",u),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){l(p)}),d(p);else if(!g&&y){p.off("blur",u),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","")}g&&!p.hasFocus()&&u(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 g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),g.appendChild(m),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function l(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var m=p.getInputField();g=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}g?s(p):o(p)},20)}function u(p){h(p)&&s(p)}function d(p){var g=p.getWrapperElement(),m=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),j0.exports}wde();var G0={exports:{}},K0;function xde(){return K0||(K0=1,function(e,t){(function(r){r(tl())})(function(r){function o(u,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=u+"-"+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 y=p.orientation=="horizontal"?"pageX":"pageY",w=m[y],C=p.pos;function $(){r.off(document,"mousemove",E),r.off(document,"mouseup",$)}function E(T){if(T.which!=1)return $();p.moveTo(C+(T[y]-w)*(p.total/p.size))}r.on(document,"mousemove",E),r.on(document,"mouseup",$)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var y=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<y.left?-1:m.clientX>y.right?1:0:w=m.clientY<y.top?-1:m.clientY>y.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(m){var y=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+y),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",g),r.on(this.node,"DOMMouseScroll",g)}o.prototype.setPos=function(u,d){return u<0&&(u=0),u>this.total-this.screen&&(u=this.total-this.screen),!d&&u==this.pos?!1:(this.pos=u,this.inner.style[this.orientation=="horizontal"?"left":"top"]=u*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(u){this.setPos(u)&&this.scroll(u,this.orientation)};var s=10;o.prototype.update=function(u,d,h){var p=this.screen!=d||this.total!=u||this.size!=h;p&&(this.screen=d,this.total=u,this.size=h);var g=this.screen*(this.size/this.total);g<s&&(this.size-=s-g,g=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function l(u,d,h){this.addClass=u,this.horiz=new o(u,"horizontal",h),d(this.horiz.node),this.vert=new o(u,"vertical",h),d(this.vert.node),this.width=null}l.prototype.update=function(u){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=u.scrollWidth>u.clientWidth+1,g=u.scrollHeight>u.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(u.scrollHeight,u.clientHeight,u.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(u.scrollWidth,u.clientWidth,u.viewWidth-(g?h:0)-u.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=u.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},l.prototype.setScrollTop=function(u){this.vert.setPos(u)},l.prototype.setScrollLeft=function(u){this.horiz.setPos(u)},l.prototype.clear=function(){var u=this.horiz.node.parentNode;u.removeChild(this.horiz.node),u.removeChild(this.vert.node)},r.scrollbarModel.simple=function(u,d){return new l("CodeMirror-simplescroll",u,d)},r.scrollbarModel.overlay=function(u,d){return new l("CodeMirror-overlayscroll",u,d)}})}()),G0.exports}xde();const $n=rn();function Sde(e,t,r={}){const o=yde.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),xt(t,l=>{if(l!==o.getValue()){s=!0;const u=o.listSelections();o.replaceRange(l,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(u)}},{immediate:!0}),ju(()=>{$n.value=void 0}),Qh(o)}async function _de(e){var t;z1({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null})}const rx=ut({__name:"CodeMirrorContainer",props:la({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:la(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Gu(e,"modelValue"),s=mT(),l={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}},u=Ue();return yo(async()=>{const d=Sde(u,o,{...s,mode:l[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)=>(ce(),Se("div",{relative:"","font-mono":"","text-sm":"",class:it(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[ie("textarea",{ref_key:"el",ref:u},null,512)],2))}}),kde=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ue(""),l=rn(void 0),u=Ue(!1),d=Ue(!0),h=Ue(!1),p=Ue();xt(()=>r.file,async()=>{var F;if(!h.value){d.value=!0;try{if(!r.file||!((F=r.file)!=null&&F.filepath)){s.value="",l.value=s.value,u.value=!1,d.value=!1;return}s.value=await gt.rpc.readTestFile(r.file.filepath)||"",l.value=s.value,u.value=!1}catch(N){console.error("cannot fetch file",N)}await Tt(),d.value=!1}},{immediate:!0}),xt(()=>[d.value,h.value,r.file,P1.value],([F,N,P,O])=>{!F&&!N&&(O!=null?Tt(()=>{var j;const S=p.value,R=S??{line:O??0,ch:0};S?p.value=void 0:((j=$n.value)==null||j.scrollIntoView(R,100),Tt(()=>{var ne,me;(ne=$n.value)==null||ne.focus(),(me=$n.value)==null||me.setCursor(R)}))}):Tt(()=>{var S;(S=$n.value)==null||S.focus()}))},{flush:"post"});const g=_e(()=>{var F,N;return((N=(F=r.file)==null?void 0:F.filepath)==null?void 0:N.split(/\./g).pop())||"js"}),m=Ue(),y=_e(()=>{var P;const F=[];function N(O){var S;(S=O.result)!=null&&S.errors&&F.push(...O.result.errors),O.type==="suite"&&O.tasks.forEach(N)}return(P=r.file)==null||P.tasks.forEach(N),F}),w=_e(()=>{var P;const F=[];function N(O){O.type==="test"&&F.push(...O.annotations),O.type==="suite"&&O.tasks.forEach(N)}return(P=r.file)==null||P.tasks.forEach(N),F}),C=[],$=[],E=[],T=Ue(!1);function A(){E.forEach(([F,N,P])=>{F.removeEventListener("click",N),P()}),E.length=0}_1(m,()=>{var F;(F=$n.value)==null||F.refresh()});function I(){u.value=l.value!==$n.value.getValue()}xt(u,F=>{o("draft",F)},{immediate:!0});function L(F){const N=((F==null?void 0:F.stacks)||[]).filter(ne=>{var me;return ne.file&&ne.file===((me=r.file)==null?void 0:me.filepath)}),P=N==null?void 0:N[0];if(!P)return;const O=document.createElement("div");O.className="op80 flex gap-x-2 items-center";const S=document.createElement("pre");S.className="c-red-600 dark:c-red-400",S.textContent=`${" ".repeat(P.column)}^ ${(F==null?void 0:F.nameStr)||F.name}: ${(F==null?void 0:F.message)||""}`,O.appendChild(S);const R=document.createElement("span");R.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",R.tabIndex=0,R.ariaLabel="Open in Editor",$w(R,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await q1(P.file,P.line,P.column)};R.addEventListener("click",j),O.appendChild(R),E.push([R,j,()=>dp(R)]),$.push($n.value.addLineClass(P.line-1,"wrap","bg-red-500/10")),C.push($n.value.addLineWidget(P.line-1,O))}function H(F){var me,xe;if(!F.location)return;const{line:N,file:P}=F.location;if(P!==((me=r.file)==null?void 0:me.filepath))return;const O=document.createElement("div");O.classList.add("wrap","bg-active","py-3","px-6","my-1"),O.role="note";const S=document.createElement("div");S.classList.add("block","text-black","dark:text-white");const R=document.createElement("span");R.textContent=`${F.type}: `,R.classList.add("font-bold");const j=document.createElement("span");j.classList.add("whitespace-pre"),j.textContent=F.message.replace(/[^\r]\n/,`\r
|
|
50
|
-
`),S.append(R,j),O.append(S);const ne=F.attachment;if(ne!=null&&ne.path||ne!=null&&ne.body)if((xe=ne.contentType)!=null&&xe.startsWith("image/")){const Ne=document.createElement("a"),Re=document.createElement("img");Re.classList.add("mt-3","inline-block"),Re.width=600,Re.width=400;const je=ne.path||ne.body;typeof je=="string"&&(je.startsWith("http://")||je.startsWith("https://"))?(Re.setAttribute("src",je),Ne.referrerPolicy="no-referrer"):Re.setAttribute("src",G(ne)),Ne.target="_blank",Ne.href=Re.src,Ne.append(Re),O.append(Ne)}else{const Ne=document.createElement("a");Ne.href=G(ne),Ne.download=Q(F.message),Ne.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const Re=document.createElement("div");Re.classList.add("i-carbon:download","block");const je=document.createElement("span");je.textContent="Download",Ne.append(Re,je),O.append(Ne)}C.push($n.value.addLineWidget(N-1,O))}function G(F){if(dr)return`/data/${F.path}`;const N=F.contentType??"application/octet-stream";return F.path?`/__vitest_attachment__?path=${encodeURIComponent(F.path)}&contentType=${N}&token=${window.VITEST_API_TOKEN}`:`data:${N};base64,${F.body}`}const{pause:oe,resume:ee}=xt([$n,y,w,Es],([F,N,P,O])=>{if(!F){C.length=0,$.length=0,A();return}O&&(F.off("changes",I),A(),C.forEach(S=>S.clear()),$.forEach(S=>F==null?void 0:F.removeLineClass(S,"wrap")),C.length=0,$.length=0,setTimeout(()=>{N.forEach(L),P.forEach(H),T.value||F.clearHistory(),F.on("changes",I)},100))},{flush:"post"});bp(()=>[Es.value,h.value,p.value],([F,N],P)=>{var O;F&&!N&&P&&P[2]&&((O=$n.value)==null||O.setCursor(P[2]))},{debounce:100,flush:"post"});async function Z(F){if(h.value)return;oe(),h.value=!0,await Tt();const N=$n.value;N&&(N.setOption("readOnly",!0),await Tt(),N.refresh()),p.value=N==null?void 0:N.getCursor(),N==null||N.off("changes",I),A(),C.forEach(P=>P.clear()),$.forEach(P=>N==null?void 0:N.removeLineClass(P,"wrap")),C.length=0,$.length=0;try{T.value=!0,await gt.rpc.saveTestFile(r.file.filepath,F),l.value=F,u.value=!1}catch(P){console.error("error saving file",P)}T.value||N==null||N.clearHistory();try{await _0(Es).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await _0(Es).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}y.value.forEach(L),w.value.forEach(H),N==null||N.on("changes",I),h.value=!1,await Tt(),N&&(N.setOption("readOnly",!1),await Tt(),N.refresh()),ee()}Oa(A);function Q(F){return F.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")}return(F,N)=>{const P=rx;return ce(),nt(P,bi({ref_key:"editor",ref:m,modelValue:V(s),"onUpdate:modelValue":N[0]||(N[0]=O=>Ct(s)?s.value=O:null),"h-full":""},{lineNumbers:!0,readOnly:V(dr),saving:V(h)},{mode:V(g),"data-testid":"code-mirror",onSave:Z}),null,16,["modelValue","mode"])}}}),Tde={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Cde={"p-4":"",relative:""},Ede={op50:"","font-mono":"","text-sm":""},Ade={key:0,"p-5":""},Lde={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Mde={key:0},$de={p:"x3 y-1","bg-overlay":"",border:"base b t"},Nde=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=TM(()=>gt.rpc.getTransformResult(r.projectName,r.id,!!Ht)),l=_e(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),u=_e(()=>{var p,g;return((g=(p=s.value)==null?void 0:p.source)==null?void 0:g.trim())||""}),d=_e(()=>{var p,g;return((g=(p=s.value)==null?void 0:p.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=_e(()=>{var p,g,m,y;return{mappings:((g=(p=s.value)==null?void 0:p.map)==null?void 0:g.mappings)??"",version:(y=(m=s.value)==null?void 0:m.map)==null?void 0:y.version}});return b1("Escape",()=>{o("close")}),(p,g)=>{const m=Ai,y=rx;return ce(),Se("div",Tde,[ie("div",Cde,[g[1]||(g[1]=ie("p",null,"Module Info",-1)),ie("p",Ede,qe(p.id),1),Ie(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=w=>o("close"))})]),V(s)?(ce(),Se(ct,{key:1},[ie("div",Lde,[g[2]||(g[2]=ie("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),g[3]||(g[3]=ie("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Ie(y,bi({"h-full":"","model-value":V(u),"read-only":""},{lineNumbers:!0},{mode:V(l)}),null,16,["model-value","mode"]),Ie(y,bi({"h-full":"","model-value":V(d),"read-only":""},{lineNumbers:!0},{mode:V(l)}),null,16,["model-value","mode"])]),V(h).mappings!==""?(ce(),Se("div",Mde,[ie("div",$de," Source map (v"+qe(V(h).version)+") ",1),Ie(y,bi({"model-value":V(h).mappings,"read-only":""},{lineNumbers:!0},{mode:V(l)}),null,16,["model-value","mode"])])):Je("",!0)],64)):(ce(),Se("div",Ade," No transform result found for this module. "))])}}});function Ode(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var kh="http://www.w3.org/1999/xhtml";const X0={svg:"http://www.w3.org/2000/svg",xhtml:kh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function af(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),X0.hasOwnProperty(t)?{space:X0[t],local:e}:e}function Ide(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===kh&&t.documentElement.namespaceURI===kh?t.createElement(e):t.createElementNS(r,e)}}function Pde(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ix(e){var t=af(e);return(t.local?Pde:Ide)(t)}function Rde(){}function Cp(e){return e==null?Rde:function(){return this.querySelector(e)}}function zde(e){typeof e!="function"&&(e=Cp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var l=t[s],u=l.length,d=o[s]=new Array(u),h,p,g=0;g<u;++g)(h=l[g])&&(p=e.call(h,h.__data__,g,l))&&("__data__"in h&&(p.__data__=h.__data__),d[g]=p);return new or(o,this._parents)}function Dde(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Fde(){return[]}function ox(e){return e==null?Fde:function(){return this.querySelectorAll(e)}}function Hde(e){return function(){return Dde(e.apply(this,arguments))}}function Bde(e){typeof e=="function"?e=Hde(e):e=ox(e);for(var t=this._groups,r=t.length,o=[],s=[],l=0;l<r;++l)for(var u=t[l],d=u.length,h,p=0;p<d;++p)(h=u[p])&&(o.push(e.call(h,h.__data__,p,u)),s.push(h));return new or(o,s)}function sx(e){return function(){return this.matches(e)}}function lx(e){return function(t){return t.matches(e)}}var Wde=Array.prototype.find;function qde(e){return function(){return Wde.call(this.children,e)}}function Ude(){return this.firstElementChild}function jde(e){return this.select(e==null?Ude:qde(typeof e=="function"?e:lx(e)))}var Vde=Array.prototype.filter;function Gde(){return Array.from(this.children)}function Kde(e){return function(){return Vde.call(this.children,e)}}function Xde(e){return this.selectAll(e==null?Gde:Kde(typeof e=="function"?e:lx(e)))}function Yde(e){typeof e!="function"&&(e=sx(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var l=t[s],u=l.length,d=o[s]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&d.push(h);return new or(o,this._parents)}function ax(e){return new Array(e.length)}function Jde(){return new or(this._enter||this._groups.map(ax),this._parents)}function Au(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Au.prototype={constructor:Au,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 Zde(e){return function(){return e}}function Qde(e,t,r,o,s,l){for(var u=0,d,h=t.length,p=l.length;u<p;++u)(d=t[u])?(d.__data__=l[u],o[u]=d):r[u]=new Au(e,l[u]);for(;u<h;++u)(d=t[u])&&(s[u]=d)}function ehe(e,t,r,o,s,l,u){var d,h,p=new Map,g=t.length,m=l.length,y=new Array(g),w;for(d=0;d<g;++d)(h=t[d])&&(y[d]=w=u.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<m;++d)w=u.call(e,l[d],d,l)+"",(h=p.get(w))?(o[d]=h,h.__data__=l[d],p.delete(w)):r[d]=new Au(e,l[d]);for(d=0;d<g;++d)(h=t[d])&&p.get(y[d])===h&&(s[d]=h)}function the(e){return e.__data__}function nhe(e,t){if(!arguments.length)return Array.from(this,the);var r=t?ehe:Qde,o=this._parents,s=this._groups;typeof e!="function"&&(e=Zde(e));for(var l=s.length,u=new Array(l),d=new Array(l),h=new Array(l),p=0;p<l;++p){var g=o[p],m=s[p],y=m.length,w=rhe(e.call(g,g&&g.__data__,p,o)),C=w.length,$=d[p]=new Array(C),E=u[p]=new Array(C),T=h[p]=new Array(y);r(g,m,$,E,T,w,t);for(var A=0,I=0,L,H;A<C;++A)if(L=$[A]){for(A>=I&&(I=A+1);!(H=E[I])&&++I<C;);L._next=H||null}}return u=new or(u,o),u._enter=d,u._exit=h,u}function rhe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ihe(){return new or(this._exit||this._groups.map(ax),this._parents)}function ohe(e,t,r){var o=this.enter(),s=this,l=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?l.remove():r(l),o&&s?o.merge(s).order():s}function she(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,l=o.length,u=Math.min(s,l),d=new Array(s),h=0;h<u;++h)for(var p=r[h],g=o[h],m=p.length,y=d[h]=new Array(m),w,C=0;C<m;++C)(w=p[C]||g[C])&&(y[C]=w);for(;h<s;++h)d[h]=r[h];return new or(d,this._parents)}function lhe(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,l=o[s],u;--s>=0;)(u=o[s])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function ahe(e){e||(e=che);function t(m,y){return m&&y?e(m.__data__,y.__data__):!m-!y}for(var r=this._groups,o=r.length,s=new Array(o),l=0;l<o;++l){for(var u=r[l],d=u.length,h=s[l]=new Array(d),p,g=0;g<d;++g)(p=u[g])&&(h[g]=p);h.sort(t)}return new or(s,this._parents).order()}function che(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function uhe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function fhe(){return Array.from(this)}function dhe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,l=o.length;s<l;++s){var u=o[s];if(u)return u}return null}function hhe(){let e=0;for(const t of this)++e;return e}function phe(){return!this.node()}function ghe(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],l=0,u=s.length,d;l<u;++l)(d=s[l])&&e.call(d,d.__data__,l,s);return this}function vhe(e){return function(){this.removeAttribute(e)}}function mhe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function yhe(e,t){return function(){this.setAttribute(e,t)}}function bhe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function whe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function xhe(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 She(e,t){var r=af(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?mhe:vhe:typeof t=="function"?r.local?xhe:whe:r.local?bhe:yhe)(r,t))}function cx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function _he(e){return function(){this.style.removeProperty(e)}}function khe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function The(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Che(e,t,r){return arguments.length>1?this.each((t==null?_he:typeof t=="function"?The:khe)(e,t,r??"")):Js(this.node(),e)}function Js(e,t){return e.style.getPropertyValue(t)||cx(e).getComputedStyle(e,null).getPropertyValue(t)}function Ehe(e){return function(){delete this[e]}}function Ahe(e,t){return function(){this[e]=t}}function Lhe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Mhe(e,t){return arguments.length>1?this.each((t==null?Ehe:typeof t=="function"?Lhe:Ahe)(e,t)):this.node()[e]}function ux(e){return e.trim().split(/^|\s+/)}function Ep(e){return e.classList||new fx(e)}function fx(e){this._node=e,this._names=ux(e.getAttribute("class")||"")}fx.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 dx(e,t){for(var r=Ep(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function hx(e,t){for(var r=Ep(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function $he(e){return function(){dx(this,e)}}function Nhe(e){return function(){hx(this,e)}}function Ohe(e,t){return function(){(t.apply(this,arguments)?dx:hx)(this,e)}}function Ihe(e,t){var r=ux(e+"");if(arguments.length<2){for(var o=Ep(this.node()),s=-1,l=r.length;++s<l;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Ohe:t?$he:Nhe)(r,t))}function Phe(){this.textContent=""}function Rhe(e){return function(){this.textContent=e}}function zhe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Dhe(e){return arguments.length?this.each(e==null?Phe:(typeof e=="function"?zhe:Rhe)(e)):this.node().textContent}function Fhe(){this.innerHTML=""}function Hhe(e){return function(){this.innerHTML=e}}function Bhe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Whe(e){return arguments.length?this.each(e==null?Fhe:(typeof e=="function"?Bhe:Hhe)(e)):this.node().innerHTML}function qhe(){this.nextSibling&&this.parentNode.appendChild(this)}function Uhe(){return this.each(qhe)}function jhe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Vhe(){return this.each(jhe)}function Ghe(e){var t=typeof e=="function"?e:ix(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Khe(){return null}function Xhe(e,t){var r=typeof e=="function"?e:ix(e),o=t==null?Khe:typeof t=="function"?t:Cp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Yhe(){var e=this.parentNode;e&&e.removeChild(this)}function Jhe(){return this.each(Yhe)}function Zhe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Qhe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function epe(e){return this.select(e?Qhe:Zhe)}function tpe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function npe(e){return function(t){e.call(this,t,this.__data__)}}function rpe(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 ipe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,l;r<s;++r)l=t[r],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++o]=l;++o?t.length=o:delete this.__on}}}function ope(e,t,r){return function(){var o=this.__on,s,l=npe(t);if(o){for(var u=0,d=o.length;u<d;++u)if((s=o[u]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=l,s.options=r),s.value=t;return}}this.addEventListener(e.type,l,r),s={type:e.type,name:e.name,value:t,listener:l,options:r},o?o.push(s):this.__on=[s]}}function spe(e,t,r){var o=rpe(e+""),s,l=o.length,u;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,g;h<p;++h)for(s=0,g=d[h];s<l;++s)if((u=o[s]).type===g.type&&u.name===g.name)return g.value}return}for(d=t?ope:ipe,s=0;s<l;++s)this.each(d(o[s],t,r));return this}function px(e,t,r){var o=cx(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 lpe(e,t){return function(){return px(this,e,t)}}function ape(e,t){return function(){return px(this,e,t.apply(this,arguments))}}function cpe(e,t){return this.each((typeof t=="function"?ape:lpe)(e,t))}function*upe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,l=o.length,u;s<l;++s)(u=o[s])&&(yield u)}var gx=[null];function or(e,t){this._groups=e,this._parents=t}function Wa(){return new or([[document.documentElement]],gx)}function fpe(){return this}or.prototype=Wa.prototype={constructor:or,select:zde,selectAll:Bde,selectChild:jde,selectChildren:Xde,filter:Yde,data:nhe,enter:Jde,exit:ihe,join:ohe,merge:she,selection:fpe,order:lhe,sort:ahe,call:uhe,nodes:fhe,node:dhe,size:hhe,empty:phe,each:ghe,attr:She,style:Che,property:Mhe,classed:Ihe,text:Dhe,html:Whe,raise:Uhe,lower:Vhe,append:Ghe,insert:Xhe,remove:Jhe,clone:epe,datum:tpe,on:spe,dispatch:cpe,[Symbol.iterator]:upe};function Vn(e){return typeof e=="string"?new or([[document.querySelector(e)]],[document.documentElement]):new or([[e]],gx)}function dpe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function gi(e,t){if(e=dpe(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 hpe=Object.defineProperty,ppe=(e,t,r)=>t in e?hpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y0=(e,t,r)=>ppe(e,typeof t!="symbol"?t+"":t,r);class Nn{constructor(t,r){Y0(this,"x"),Y0(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 gpe={value:()=>{}};function qa(){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 Jc(r)}function Jc(e){this._=e}function vpe(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}})}Jc.prototype=qa.prototype={constructor:Jc,on:function(e,t){var r=this._,o=vpe(e+"",r),s,l=-1,u=o.length;if(arguments.length<2){for(;++l<u;)if((s=(e=o[l]).type)&&(s=mpe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<u;)if(s=(e=o[l]).type)r[s]=J0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=J0(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 Jc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,l;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],o=0,s=l.length;o<s;++o)l[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,l=o.length;s<l;++s)o[s].value.apply(t,r)}};function mpe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function J0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=gpe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const ype={passive:!1},xa={capture:!0,passive:!1};function Pd(e){e.stopImmediatePropagation()}function qs(e){e.preventDefault(),e.stopImmediatePropagation()}function vx(e){var t=e.document.documentElement,r=Vn(e).on("dragstart.drag",qs,xa);"onselectstart"in t?r.on("selectstart.drag",qs,xa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function mx(e,t){var r=e.document.documentElement,o=Vn(e).on("dragstart.drag",null);t&&(o.on("click.drag",qs,xa),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 Rc=e=>()=>e;function Th(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:l,x:u,y:d,dx:h,dy:p,dispatch:g}){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:l,enumerable:!0,configurable:!0},x:{value:u,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:g}})}Th.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function bpe(e){return!e.ctrlKey&&!e.button}function wpe(){return this.parentNode}function xpe(e,t){return t??{x:e.x,y:e.y}}function Spe(){return navigator.maxTouchPoints||"ontouchstart"in this}function _pe(){var e=bpe,t=wpe,r=xpe,o=Spe,s={},l=qa("start","drag","end"),u=0,d,h,p,g,m=0;function y(L){L.on("mousedown.drag",w).filter(o).on("touchstart.drag",E).on("touchmove.drag",T,ype).on("touchend.drag touchcancel.drag",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(L,H){if(!(g||!e.call(this,L,H))){var G=I(this,t.call(this,L,H),L,H,"mouse");G&&(Vn(L.view).on("mousemove.drag",C,xa).on("mouseup.drag",$,xa),vx(L.view),Pd(L),p=!1,d=L.clientX,h=L.clientY,G("start",L))}}function C(L){if(qs(L),!p){var H=L.clientX-d,G=L.clientY-h;p=H*H+G*G>m}s.mouse("drag",L)}function $(L){Vn(L.view).on("mousemove.drag mouseup.drag",null),mx(L.view,p),qs(L),s.mouse("end",L)}function E(L,H){if(e.call(this,L,H)){var G=L.changedTouches,oe=t.call(this,L,H),ee=G.length,Z,Q;for(Z=0;Z<ee;++Z)(Q=I(this,oe,L,H,G[Z].identifier,G[Z]))&&(Pd(L),Q("start",L,G[Z]))}}function T(L){var H=L.changedTouches,G=H.length,oe,ee;for(oe=0;oe<G;++oe)(ee=s[H[oe].identifier])&&(qs(L),ee("drag",L,H[oe]))}function A(L){var H=L.changedTouches,G=H.length,oe,ee;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),oe=0;oe<G;++oe)(ee=s[H[oe].identifier])&&(Pd(L),ee("end",L,H[oe]))}function I(L,H,G,oe,ee,Z){var Q=l.copy(),F=gi(Z||G,H),N,P,O;if((O=r.call(L,new Th("beforestart",{sourceEvent:G,target:y,identifier:ee,active:u,x:F[0],y:F[1],dx:0,dy:0,dispatch:Q}),oe))!=null)return N=O.x-F[0]||0,P=O.y-F[1]||0,function S(R,j,ne){var me=F,xe;switch(R){case"start":s[ee]=S,xe=u++;break;case"end":delete s[ee],--u;case"drag":F=gi(ne||j,H),xe=u;break}Q.call(R,L,new Th(R,{sourceEvent:j,subject:O,target:y,identifier:ee,active:xe,x:F[0]+N,y:F[1]+P,dx:F[0]-me[0],dy:F[1]-me[1],dispatch:Q}),oe)}}return y.filter=function(L){return arguments.length?(e=typeof L=="function"?L:Rc(!!L),y):e},y.container=function(L){return arguments.length?(t=typeof L=="function"?L:Rc(L),y):t},y.subject=function(L){return arguments.length?(r=typeof L=="function"?L:Rc(L),y):r},y.touchable=function(L){return arguments.length?(o=typeof L=="function"?L:Rc(!!L),y):o},y.on=function(){var L=l.on.apply(l,arguments);return L===l?y:L},y.clickDistance=function(L){return arguments.length?(m=(L=+L)*L,y):Math.sqrt(m)},y}function Ap(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function yx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ua(){}var Sa=.7,Lu=1/Sa,Us="\\s*([+-]?\\d+)\\s*",_a="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kpe=/^#([0-9a-f]{3,8})$/,Tpe=new RegExp(`^rgb\\(${Us},${Us},${Us}\\)$`),Cpe=new RegExp(`^rgb\\(${Jr},${Jr},${Jr}\\)$`),Epe=new RegExp(`^rgba\\(${Us},${Us},${Us},${_a}\\)$`),Ape=new RegExp(`^rgba\\(${Jr},${Jr},${Jr},${_a}\\)$`),Lpe=new RegExp(`^hsl\\(${_a},${Jr},${Jr}\\)$`),Mpe=new RegExp(`^hsla\\(${_a},${Jr},${Jr},${_a}\\)$`),Z0={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};Ap(Ua,ka,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Q0,formatHex:Q0,formatHex8:$pe,formatHsl:Npe,formatRgb:ey,toString:ey});function Q0(){return this.rgb().formatHex()}function $pe(){return this.rgb().formatHex8()}function Npe(){return bx(this).formatHsl()}function ey(){return this.rgb().formatRgb()}function ka(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=kpe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ty(t):r===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?zc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?zc(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=Tpe.exec(e))?new Kn(t[1],t[2],t[3],1):(t=Cpe.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Epe.exec(e))?zc(t[1],t[2],t[3],t[4]):(t=Ape.exec(e))?zc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Lpe.exec(e))?iy(t[1],t[2]/100,t[3]/100,1):(t=Mpe.exec(e))?iy(t[1],t[2]/100,t[3]/100,t[4]):Z0.hasOwnProperty(e)?ty(Z0[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function ty(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function zc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Kn(e,t,r,o)}function Ope(e){return e instanceof Ua||(e=ka(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function Ch(e,t,r,o){return arguments.length===1?Ope(e):new Kn(e,t,r,o??1)}function Kn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Ap(Kn,Ch,yx(Ua,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Sa:Math.pow(Sa,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(qo(this.r),qo(this.g),qo(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:ny,formatHex:ny,formatHex8:Ipe,formatRgb:ry,toString:ry}));function ny(){return`#${Ho(this.r)}${Ho(this.g)}${Ho(this.b)}`}function Ipe(){return`#${Ho(this.r)}${Ho(this.g)}${Ho(this.b)}${Ho((isNaN(this.opacity)?1:this.opacity)*255)}`}function ry(){const e=Mu(this.opacity);return`${e===1?"rgb(":"rgba("}${qo(this.r)}, ${qo(this.g)}, ${qo(this.b)}${e===1?")":`, ${e})`}`}function Mu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ho(e){return e=qo(e),(e<16?"0":"")+e.toString(16)}function iy(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Er(e,t,r,o)}function bx(e){if(e instanceof Er)return new Er(e.h,e.s,e.l,e.opacity);if(e instanceof Ua||(e=ka(e)),!e)return new Er;if(e instanceof Er)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),l=Math.max(t,r,o),u=NaN,d=l-s,h=(l+s)/2;return d?(t===l?u=(r-o)/d+(r<o)*6:r===l?u=(o-t)/d+2:u=(t-r)/d+4,d/=h<.5?l+s:2-l-s,u*=60):d=h>0&&h<1?0:u,new Er(u,d,h,e.opacity)}function Ppe(e,t,r,o){return arguments.length===1?bx(e):new Er(e,t,r,o??1)}function Er(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Ap(Er,Ppe,yx(Ua,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Er(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Sa:Math.pow(Sa,e),new Er(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 Kn(Rd(e>=240?e-240:e+120,s,o),Rd(e,s,o),Rd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Er(oy(this.h),Dc(this.s),Dc(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("}${oy(this.h)}, ${Dc(this.s)*100}%, ${Dc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function oy(e){return e=(e||0)%360,e<0?e+360:e}function Dc(e){return Math.max(0,Math.min(1,e||0))}function Rd(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 wx=e=>()=>e;function Rpe(e,t){return function(r){return e+r*t}}function zpe(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 Dpe(e){return(e=+e)==1?xx:function(t,r){return r-t?zpe(t,r,e):wx(isNaN(t)?r:t)}}function xx(e,t){var r=t-e;return r?Rpe(e,r):wx(isNaN(e)?t:e)}const sy=function e(t){var r=Dpe(t);function o(s,l){var u=r((s=Ch(s)).r,(l=Ch(l)).r),d=r(s.g,l.g),h=r(s.b,l.b),p=xx(s.opacity,l.opacity);return function(g){return s.r=u(g),s.g=d(g),s.b=h(g),s.opacity=p(g),s+""}}return o.gamma=e,o}(1);function Zi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Eh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zd=new RegExp(Eh.source,"g");function Fpe(e){return function(){return e}}function Hpe(e){return function(t){return e(t)+""}}function Bpe(e,t){var r=Eh.lastIndex=zd.lastIndex=0,o,s,l,u=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Eh.exec(e))&&(s=zd.exec(t));)(l=s.index)>r&&(l=t.slice(r,l),d[u]?d[u]+=l:d[++u]=l),(o=o[0])===(s=s[0])?d[u]?d[u]+=s:d[++u]=s:(d[++u]=null,h.push({i:u,x:Zi(o,s)})),r=zd.lastIndex;return r<t.length&&(l=t.slice(r),d[u]?d[u]+=l:d[++u]=l),d.length<2?h[0]?Hpe(h[0].x):Fpe(t):(t=h.length,function(p){for(var g=0,m;g<t;++g)d[(m=h[g]).i]=m.x(p);return d.join("")})}var ly=180/Math.PI,Ah={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Sx(e,t,r,o,s,l){var u,d,h;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(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,u=-u),{translateX:s,translateY:l,rotate:Math.atan2(t,e)*ly,skewX:Math.atan(h)*ly,scaleX:u,scaleY:d}}var Fc;function Wpe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ah:Sx(t.a,t.b,t.c,t.d,t.e,t.f)}function qpe(e){return e==null||(Fc||(Fc=document.createElementNS("http://www.w3.org/2000/svg","g")),Fc.setAttribute("transform",e),!(e=Fc.transform.baseVal.consolidate()))?Ah:(e=e.matrix,Sx(e.a,e.b,e.c,e.d,e.e,e.f))}function _x(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function l(p,g,m,y,w,C){if(p!==m||g!==y){var $=w.push("translate(",null,t,null,r);C.push({i:$-4,x:Zi(p,m)},{i:$-2,x:Zi(g,y)})}else(m||y)&&w.push("translate("+m+t+y+r)}function u(p,g,m,y){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),y.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Zi(p,g)})):g&&m.push(s(m)+"rotate("+g+o)}function d(p,g,m,y){p!==g?y.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Zi(p,g)}):g&&m.push(s(m)+"skewX("+g+o)}function h(p,g,m,y,w,C){if(p!==m||g!==y){var $=w.push(s(w)+"scale(",null,",",null,")");C.push({i:$-4,x:Zi(p,m)},{i:$-2,x:Zi(g,y)})}else(m!==1||y!==1)&&w.push(s(w)+"scale("+m+","+y+")")}return function(p,g){var m=[],y=[];return p=e(p),g=e(g),l(p.translateX,p.translateY,g.translateX,g.translateY,m,y),u(p.rotate,g.rotate,m,y),d(p.skewX,g.skewX,m,y),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,m,y),p=g=null,function(w){for(var C=-1,$=y.length,E;++C<$;)m[(E=y[C]).i]=E.x(w);return m.join("")}}}var Upe=_x(Wpe,"px, ","px)","deg)"),jpe=_x(qpe,", ",")",")"),Vpe=1e-12;function ay(e){return((e=Math.exp(e))+1/e)/2}function Gpe(e){return((e=Math.exp(e))-1/e)/2}function Kpe(e){return((e=Math.exp(2*e))-1)/(e+1)}const Xpe=function e(t,r,o){function s(l,u){var d=l[0],h=l[1],p=l[2],g=u[0],m=u[1],y=u[2],w=g-d,C=m-h,$=w*w+C*C,E,T;if($<Vpe)T=Math.log(y/p)/t,E=function(oe){return[d+oe*w,h+oe*C,p*Math.exp(t*oe*T)]};else{var A=Math.sqrt($),I=(y*y-p*p+o*$)/(2*p*r*A),L=(y*y-p*p-o*$)/(2*y*r*A),H=Math.log(Math.sqrt(I*I+1)-I),G=Math.log(Math.sqrt(L*L+1)-L);T=(G-H)/t,E=function(oe){var ee=oe*T,Z=ay(H),Q=p/(r*A)*(Z*Kpe(t*ee+H)-Gpe(H));return[d+Q*w,h+Q*C,p*Z/ay(t*ee+H)]}}return E.duration=T*1e3*t/Math.SQRT2,E}return s.rho=function(l){var u=Math.max(.001,+l),d=u*u,h=d*d;return e(u,d,h)},s}(Math.SQRT2,2,4);var Zs=0,Wl=0,Dl=0,kx=1e3,$u,ql,Nu=0,jo=0,cf=0,Ta=typeof performance=="object"&&performance.now?performance:Date,Tx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Lp(){return jo||(Tx(Ype),jo=Ta.now()+cf)}function Ype(){jo=0}function Ou(){this._call=this._time=this._next=null}Ou.prototype=Mp.prototype={constructor:Ou,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Lp():+r)+(t==null?0:+t),!this._next&&ql!==this&&(ql?ql._next=this:$u=this,ql=this),this._call=e,this._time=r,Lh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Lh())}};function Mp(e,t,r){var o=new Ou;return o.restart(e,t,r),o}function Jpe(){Lp(),++Zs;for(var e=$u,t;e;)(t=jo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Zs}function cy(){jo=(Nu=Ta.now())+cf,Zs=Wl=0;try{Jpe()}finally{Zs=0,Qpe(),jo=0}}function Zpe(){var e=Ta.now(),t=e-Nu;t>kx&&(cf-=t,Nu=e)}function Qpe(){for(var e,t=$u,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:$u=r);ql=e,Lh(o)}function Lh(e){if(!Zs){Wl&&(Wl=clearTimeout(Wl));var t=e-jo;t>24?(e<1/0&&(Wl=setTimeout(cy,e-Ta.now()-cf)),Dl&&(Dl=clearInterval(Dl))):(Dl||(Nu=Ta.now(),Dl=setInterval(Zpe,kx)),Zs=1,Tx(cy))}}function uy(e,t,r){var o=new Ou;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var ege=qa("start","end","cancel","interrupt"),tge=[],Cx=0,fy=1,Mh=2,Zc=3,dy=4,$h=5,Qc=6;function uf(e,t,r,o,s,l){var u=e.__transition;if(!u)e.__transition={};else if(r in u)return;nge(e,r,{name:t,index:o,group:s,on:ege,tween:tge,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:Cx})}function $p(e,t){var r=Rr(e,t);if(r.state>Cx)throw new Error("too late; already scheduled");return r}function ei(e,t){var r=Rr(e,t);if(r.state>Zc)throw new Error("too late; already running");return r}function Rr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function nge(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Mp(l,0,r.time);function l(p){r.state=fy,r.timer.restart(u,r.delay,r.time),r.delay<=p&&u(p-r.delay)}function u(p){var g,m,y,w;if(r.state!==fy)return h();for(g in o)if(w=o[g],w.name===r.name){if(w.state===Zc)return uy(u);w.state===dy?(w.state=Qc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[g]):+g<t&&(w.state=Qc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[g])}if(uy(function(){r.state===Zc&&(r.state=dy,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Mh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Mh){for(r.state=Zc,s=new Array(y=r.tween.length),g=0,m=-1;g<y;++g)(w=r.tween[g].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var g=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=$h,1),m=-1,y=s.length;++m<y;)s[m].call(e,g);r.state===$h&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Qc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function eu(e,t){var r=e.__transition,o,s,l=!0,u;if(r){t=t==null?null:t+"";for(u in r){if((o=r[u]).name!==t){l=!1;continue}s=o.state>Mh&&o.state<$h,o.state=Qc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[u]}l&&delete e.__transition}}function rge(e){return this.each(function(){eu(this,e)})}function ige(e,t){var r,o;return function(){var s=ei(this,e),l=s.tween;if(l!==r){o=r=l;for(var u=0,d=o.length;u<d;++u)if(o[u].name===t){o=o.slice(),o.splice(u,1);break}}s.tween=o}}function oge(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var l=ei(this,e),u=l.tween;if(u!==o){s=(o=u).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)}l.tween=s}}function sge(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Rr(this.node(),r).tween,s=0,l=o.length,u;s<l;++s)if((u=o[s]).name===e)return u.value;return null}return this.each((t==null?ige:oge)(r,e,t))}function Np(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 Rr(s,o).value[t]}}function Ex(e,t){var r;return(typeof t=="number"?Zi:t instanceof ka?sy:(r=ka(t))?(t=r,sy):Bpe)(e,t)}function lge(e){return function(){this.removeAttribute(e)}}function age(e){return function(){this.removeAttributeNS(e.space,e.local)}}function cge(e,t,r){var o,s=r+"",l;return function(){var u=this.getAttribute(e);return u===s?null:u===o?l:l=t(o=u,r)}}function uge(e,t,r){var o,s=r+"",l;return function(){var u=this.getAttributeNS(e.space,e.local);return u===s?null:u===o?l:l=t(o=u,r)}}function fge(e,t,r){var o,s,l;return function(){var u,d=r(this),h;return d==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=d+"",u===h?null:u===o&&h===s?l:(s=h,l=t(o=u,d)))}}function dge(e,t,r){var o,s,l;return function(){var u,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=d+"",u===h?null:u===o&&h===s?l:(s=h,l=t(o=u,d)))}}function hge(e,t){var r=af(e),o=r==="transform"?jpe:Ex;return this.attrTween(e,typeof t=="function"?(r.local?dge:fge)(r,o,Np(this,"attr."+e,t)):t==null?(r.local?age:lge)(r):(r.local?uge:cge)(r,o,t))}function pge(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function gge(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function vge(e,t){var r,o;function s(){var l=t.apply(this,arguments);return l!==o&&(r=(o=l)&&gge(e,l)),r}return s._value=t,s}function mge(e,t){var r,o;function s(){var l=t.apply(this,arguments);return l!==o&&(r=(o=l)&&pge(e,l)),r}return s._value=t,s}function yge(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=af(e);return this.tween(r,(o.local?vge:mge)(o,t))}function bge(e,t){return function(){$p(this,e).delay=+t.apply(this,arguments)}}function wge(e,t){return t=+t,function(){$p(this,e).delay=t}}function xge(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?bge:wge)(t,e)):Rr(this.node(),t).delay}function Sge(e,t){return function(){ei(this,e).duration=+t.apply(this,arguments)}}function _ge(e,t){return t=+t,function(){ei(this,e).duration=t}}function kge(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Sge:_ge)(t,e)):Rr(this.node(),t).duration}function Tge(e,t){if(typeof t!="function")throw new Error;return function(){ei(this,e).ease=t}}function Cge(e){var t=this._id;return arguments.length?this.each(Tge(t,e)):Rr(this.node(),t).ease}function Ege(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ei(this,e).ease=r}}function Age(e){if(typeof e!="function")throw new Error;return this.each(Ege(this._id,e))}function Lge(e){typeof e!="function"&&(e=sx(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var l=t[s],u=l.length,d=o[s]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&d.push(h);return new ki(o,this._parents,this._name,this._id)}function Mge(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,l=Math.min(o,s),u=new Array(o),d=0;d<l;++d)for(var h=t[d],p=r[d],g=h.length,m=u[d]=new Array(g),y,w=0;w<g;++w)(y=h[w]||p[w])&&(m[w]=y);for(;d<o;++d)u[d]=t[d];return new ki(u,this._parents,this._name,this._id)}function $ge(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 Nge(e,t,r){var o,s,l=$ge(t)?$p:ei;return function(){var u=l(this,e),d=u.on;d!==o&&(s=(o=d).copy()).on(t,r),u.on=s}}function Oge(e,t){var r=this._id;return arguments.length<2?Rr(this.node(),r).on.on(e):this.each(Nge(r,e,t))}function Ige(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Pge(){return this.on("end.remove",Ige(this._id))}function Rge(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Cp(e));for(var o=this._groups,s=o.length,l=new Array(s),u=0;u<s;++u)for(var d=o[u],h=d.length,p=l[u]=new Array(h),g,m,y=0;y<h;++y)(g=d[y])&&(m=e.call(g,g.__data__,y,d))&&("__data__"in g&&(m.__data__=g.__data__),p[y]=m,uf(p[y],t,r,y,p,Rr(g,r)));return new ki(l,this._parents,t,r)}function zge(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ox(e));for(var o=this._groups,s=o.length,l=[],u=[],d=0;d<s;++d)for(var h=o[d],p=h.length,g,m=0;m<p;++m)if(g=h[m]){for(var y=e.call(g,g.__data__,m,h),w,C=Rr(g,r),$=0,E=y.length;$<E;++$)(w=y[$])&&uf(w,t,r,$,y,C);l.push(y),u.push(g)}return new ki(l,u,t,r)}var Dge=Wa.prototype.constructor;function Fge(){return new Dge(this._groups,this._parents)}function Hge(e,t){var r,o,s;return function(){var l=Js(this,e),u=(this.style.removeProperty(e),Js(this,e));return l===u?null:l===r&&u===o?s:s=t(r=l,o=u)}}function Ax(e){return function(){this.style.removeProperty(e)}}function Bge(e,t,r){var o,s=r+"",l;return function(){var u=Js(this,e);return u===s?null:u===o?l:l=t(o=u,r)}}function Wge(e,t,r){var o,s,l;return function(){var u=Js(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Js(this,e))),u===h?null:u===o&&h===s?l:(s=h,l=t(o=u,d))}}function qge(e,t){var r,o,s,l="style."+t,u="end."+l,d;return function(){var h=ei(this,e),p=h.on,g=h.value[l]==null?d||(d=Ax(t)):void 0;(p!==r||s!==g)&&(o=(r=p).copy()).on(u,s=g),h.on=o}}function Uge(e,t,r){var o=(e+="")=="transform"?Upe:Ex;return t==null?this.styleTween(e,Hge(e,o)).on("end.style."+e,Ax(e)):typeof t=="function"?this.styleTween(e,Wge(e,o,Np(this,"style."+e,t))).each(qge(this._id,e)):this.styleTween(e,Bge(e,o,t),r).on("end.style."+e,null)}function jge(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Vge(e,t,r){var o,s;function l(){var u=t.apply(this,arguments);return u!==s&&(o=(s=u)&&jge(e,u,r)),o}return l._value=t,l}function Gge(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,Vge(e,t,r??""))}function Kge(e){return function(){this.textContent=e}}function Xge(e){return function(){var t=e(this);this.textContent=t??""}}function Yge(e){return this.tween("text",typeof e=="function"?Xge(Np(this,"text",e)):Kge(e==null?"":e+""))}function Jge(e){return function(t){this.textContent=e.call(this,t)}}function Zge(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Jge(s)),t}return o._value=e,o}function Qge(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,Zge(e))}function eve(){for(var e=this._name,t=this._id,r=Lx(),o=this._groups,s=o.length,l=0;l<s;++l)for(var u=o[l],d=u.length,h,p=0;p<d;++p)if(h=u[p]){var g=Rr(h,t);uf(h,e,r,p,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new ki(o,this._parents,e,r)}function tve(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(l,u){var d={value:u},h={value:function(){--s===0&&l()}};r.each(function(){var p=ei(this,o),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&l()})}var nve=0;function ki(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function Lx(){return++nve}var di=Wa.prototype;ki.prototype={constructor:ki,select:Rge,selectAll:zge,selectChild:di.selectChild,selectChildren:di.selectChildren,filter:Lge,merge:Mge,selection:Fge,transition:eve,call:di.call,nodes:di.nodes,node:di.node,size:di.size,empty:di.empty,each:di.each,on:Oge,attr:hge,attrTween:yge,style:Uge,styleTween:Gge,text:Yge,textTween:Qge,remove:Pge,tween:sge,delay:xge,duration:kge,ease:Cge,easeVarying:Age,end:tve,[Symbol.iterator]:di[Symbol.iterator]};function rve(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var ive={time:null,delay:0,duration:250,ease:rve};function ove(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 sve(e){var t,r;e instanceof ki?(t=e._id,e=e._name):(t=Lx(),(r=ive).time=Lp(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,l=0;l<s;++l)for(var u=o[l],d=u.length,h,p=0;p<d;++p)(h=u[p])&&uf(h,e,t,p,u,r||ove(h,t));return new ki(o,this._parents,e,t)}Wa.prototype.interrupt=rge;Wa.prototype.transition=sve;const Hc=e=>()=>e;function lve(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 Op=new yi(1,0,0);yi.prototype;function Dd(e){e.stopImmediatePropagation()}function Fl(e){e.preventDefault(),e.stopImmediatePropagation()}function ave(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function cve(){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 hy(){return this.__zoom||Op}function uve(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function fve(){return navigator.maxTouchPoints||"ontouchstart"in this}function dve(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],l=e.invertY(t[0][1])-r[0][1],u=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function hve(){var e=ave,t=cve,r=dve,o=uve,s=fve,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Xpe,p=qa("start","zoom","end"),g,m,y,w=500,C=150,$=0,E=10;function T(O){O.property("__zoom",hy).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",Q).filter(s).on("touchstart.zoom",F).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(O,S,R,j){var ne=O.selection?O.selection():O;ne.property("__zoom",hy),O!==ne?H(O,S,R,j):ne.interrupt().each(function(){G(this,arguments).event(j).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},T.scaleBy=function(O,S,R,j){T.scaleTo(O,function(){var ne=this.__zoom.k,me=typeof S=="function"?S.apply(this,arguments):S;return ne*me},R,j)},T.scaleTo=function(O,S,R,j){T.transform(O,function(){var ne=t.apply(this,arguments),me=this.__zoom,xe=R==null?L(ne):typeof R=="function"?R.apply(this,arguments):R,Ne=me.invert(xe),Re=typeof S=="function"?S.apply(this,arguments):S;return r(I(A(me,Re),xe,Ne),ne,u)},R,j)},T.translateBy=function(O,S,R,j){T.transform(O,function(){return r(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),u)},null,j)},T.translateTo=function(O,S,R,j,ne){T.transform(O,function(){var me=t.apply(this,arguments),xe=this.__zoom,Ne=j==null?L(me):typeof j=="function"?j.apply(this,arguments):j;return r(Op.translate(Ne[0],Ne[1]).scale(xe.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),me,u)},j,ne)};function A(O,S){return S=Math.max(l[0],Math.min(l[1],S)),S===O.k?O:new yi(S,O.x,O.y)}function I(O,S,R){var j=S[0]-R[0]*O.k,ne=S[1]-R[1]*O.k;return j===O.x&&ne===O.y?O:new yi(O.k,j,ne)}function L(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function H(O,S,R,j){O.on("start.zoom",function(){G(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){G(this,arguments).event(j).end()}).tween("zoom",function(){var ne=this,me=arguments,xe=G(ne,me).event(j),Ne=t.apply(ne,me),Re=R==null?L(Ne):typeof R=="function"?R.apply(ne,me):R,je=Math.max(Ne[1][0]-Ne[0][0],Ne[1][1]-Ne[0][1]),Xe=ne.__zoom,Ye=typeof S=="function"?S.apply(ne,me):S,re=h(Xe.invert(Re).concat(je/Xe.k),Ye.invert(Re).concat(je/Ye.k));return function(B){if(B===1)B=Ye;else{var J=re(B),K=je/J[2];B=new yi(K,Re[0]-J[0]*K,Re[1]-J[1]*K)}xe.zoom(null,B)}})}function G(O,S,R){return!R&&O.__zooming||new oe(O,S)}function oe(O,S){this.that=O,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,S),this.taps=0}oe.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,S){return this.mouse&&O!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&O!=="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(O){var S=Vn(this.that).datum();p.call(O,this.that,new lve(O,{sourceEvent:this.sourceEvent,target:T,transform:this.that.__zoom,dispatch:p}),S)}};function ee(O,...S){if(!e.apply(this,arguments))return;var R=G(this,S).event(O),j=this.__zoom,ne=Math.max(l[0],Math.min(l[1],j.k*Math.pow(2,o.apply(this,arguments)))),me=gi(O);if(R.wheel)(R.mouse[0][0]!==me[0]||R.mouse[0][1]!==me[1])&&(R.mouse[1]=j.invert(R.mouse[0]=me)),clearTimeout(R.wheel);else{if(j.k===ne)return;R.mouse=[me,j.invert(me)],eu(this),R.start()}Fl(O),R.wheel=setTimeout(xe,C),R.zoom("mouse",r(I(A(j,ne),R.mouse[0],R.mouse[1]),R.extent,u));function xe(){R.wheel=null,R.end()}}function Z(O,...S){if(y||!e.apply(this,arguments))return;var R=O.currentTarget,j=G(this,S,!0).event(O),ne=Vn(O.view).on("mousemove.zoom",Re,!0).on("mouseup.zoom",je,!0),me=gi(O,R),xe=O.clientX,Ne=O.clientY;vx(O.view),Dd(O),j.mouse=[me,this.__zoom.invert(me)],eu(this),j.start();function Re(Xe){if(Fl(Xe),!j.moved){var Ye=Xe.clientX-xe,re=Xe.clientY-Ne;j.moved=Ye*Ye+re*re>$}j.event(Xe).zoom("mouse",r(I(j.that.__zoom,j.mouse[0]=gi(Xe,R),j.mouse[1]),j.extent,u))}function je(Xe){ne.on("mousemove.zoom mouseup.zoom",null),mx(Xe.view,j.moved),Fl(Xe),j.event(Xe).end()}}function Q(O,...S){if(e.apply(this,arguments)){var R=this.__zoom,j=gi(O.changedTouches?O.changedTouches[0]:O,this),ne=R.invert(j),me=R.k*(O.shiftKey?.5:2),xe=r(I(A(R,me),j,ne),t.apply(this,S),u);Fl(O),d>0?Vn(this).transition().duration(d).call(H,xe,j,O):Vn(this).call(T.transform,xe,j,O)}}function F(O,...S){if(e.apply(this,arguments)){var R=O.touches,j=R.length,ne=G(this,S,O.changedTouches.length===j).event(O),me,xe,Ne,Re;for(Dd(O),xe=0;xe<j;++xe)Ne=R[xe],Re=gi(Ne,this),Re=[Re,this.__zoom.invert(Re),Ne.identifier],ne.touch0?!ne.touch1&&ne.touch0[2]!==Re[2]&&(ne.touch1=Re,ne.taps=0):(ne.touch0=Re,me=!0,ne.taps=1+!!g);g&&(g=clearTimeout(g)),me&&(ne.taps<2&&(m=Re[0],g=setTimeout(function(){g=null},w)),eu(this),ne.start())}}function N(O,...S){if(this.__zooming){var R=G(this,S).event(O),j=O.changedTouches,ne=j.length,me,xe,Ne,Re;for(Fl(O),me=0;me<ne;++me)xe=j[me],Ne=gi(xe,this),R.touch0&&R.touch0[2]===xe.identifier?R.touch0[0]=Ne:R.touch1&&R.touch1[2]===xe.identifier&&(R.touch1[0]=Ne);if(xe=R.that.__zoom,R.touch1){var je=R.touch0[0],Xe=R.touch0[1],Ye=R.touch1[0],re=R.touch1[1],B=(B=Ye[0]-je[0])*B+(B=Ye[1]-je[1])*B,J=(J=re[0]-Xe[0])*J+(J=re[1]-Xe[1])*J;xe=A(xe,Math.sqrt(B/J)),Ne=[(je[0]+Ye[0])/2,(je[1]+Ye[1])/2],Re=[(Xe[0]+re[0])/2,(Xe[1]+re[1])/2]}else if(R.touch0)Ne=R.touch0[0],Re=R.touch0[1];else return;R.zoom("touch",r(I(xe,Ne,Re),R.extent,u))}}function P(O,...S){if(this.__zooming){var R=G(this,S).event(O),j=O.changedTouches,ne=j.length,me,xe;for(Dd(O),y&&clearTimeout(y),y=setTimeout(function(){y=null},w),me=0;me<ne;++me)xe=j[me],R.touch0&&R.touch0[2]===xe.identifier?delete R.touch0:R.touch1&&R.touch1[2]===xe.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(xe=gi(xe,this),Math.hypot(m[0]-xe[0],m[1]-xe[1])<E)){var Ne=Vn(this).on("dblclick.zoom");Ne&&Ne.apply(this,arguments)}}}return T.wheelDelta=function(O){return arguments.length?(o=typeof O=="function"?O:Hc(+O),T):o},T.filter=function(O){return arguments.length?(e=typeof O=="function"?O:Hc(!!O),T):e},T.touchable=function(O){return arguments.length?(s=typeof O=="function"?O:Hc(!!O),T):s},T.extent=function(O){return arguments.length?(t=typeof O=="function"?O:Hc([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),T):t},T.scaleExtent=function(O){return arguments.length?(l[0]=+O[0],l[1]=+O[1],T):[l[0],l[1]]},T.translateExtent=function(O){return arguments.length?(u[0][0]=+O[0][0],u[1][0]=+O[1][0],u[0][1]=+O[0][1],u[1][1]=+O[1][1],T):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},T.constrain=function(O){return arguments.length?(r=O,T):r},T.duration=function(O){return arguments.length?(d=+O,T):d},T.interpolate=function(O){return arguments.length?(h=O,T):h},T.on=function(){var O=p.on.apply(p,arguments);return O===p?T:O},T.clickDistance=function(O){return arguments.length?($=(O=+O)*O,T):Math.sqrt($)},T.tapDistance=function(O){return arguments.length?(E=+O,T):E},T}function pve(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Mx(this.cover(t,r),t,r,e)}function Mx(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,l=e._root,u={data:o},d=e._x0,h=e._y0,p=e._x1,g=e._y1,m,y,w,C,$,E,T,A;if(!l)return e._root=u,e;for(;l.length;)if(($=t>=(m=(d+p)/2))?d=m:p=m,(E=r>=(y=(h+g)/2))?h=y:g=y,s=l,!(l=l[T=E<<1|$]))return s[T]=u,e;if(w=+e._x.call(null,l.data),C=+e._y.call(null,l.data),t===w&&r===C)return u.next=l,s?s[T]=u:e._root=u,e;do s=s?s[T]=new Array(4):e._root=new Array(4),($=t>=(m=(d+p)/2))?d=m:p=m,(E=r>=(y=(h+g)/2))?h=y:g=y;while((T=E<<1|$)===(A=(C>=y)<<1|w>=m));return s[A]=l,s[T]=u,e}function gve(e){var t,r,o=e.length,s,l,u=new Array(o),d=new Array(o),h=1/0,p=1/0,g=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(l=+this._y.call(null,t))||(u[r]=s,d[r]=l,s<h&&(h=s),s>g&&(g=s),l<p&&(p=l),l>m&&(m=l));if(h>g||p>m)return this;for(this.cover(h,p).cover(g,m),r=0;r<o;++r)Mx(this,u[r],d[r],e[r]);return this}function vve(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,l=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,l=(o=Math.floor(t))+1;else{for(var u=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=l;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,u*=2,p){case 0:s=r+u,l=o+u;break;case 1:r=s-u,l=o+u;break;case 2:s=r+u,o=l-u;break;case 3:r=s-u,o=l-u;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=l,this}function mve(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function yve(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 In(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function bve(e,t,r){var o,s=this._x0,l=this._y0,u,d,h,p,g=this._x1,m=this._y1,y=[],w=this._root,C,$;for(w&&y.push(new In(w,s,l,g,m)),r==null?r=1/0:(s=e-r,l=t-r,g=e+r,m=t+r,r*=r);C=y.pop();)if(!(!(w=C.node)||(u=C.x0)>g||(d=C.y0)>m||(h=C.x1)<s||(p=C.y1)<l))if(w.length){var E=(u+h)/2,T=(d+p)/2;y.push(new In(w[3],E,T,h,p),new In(w[2],u,T,E,p),new In(w[1],E,d,h,T),new In(w[0],u,d,E,T)),($=(t>=T)<<1|e>=E)&&(C=y[y.length-1],y[y.length-1]=y[y.length-1-$],y[y.length-1-$]=C)}else{var A=e-+this._x.call(null,w.data),I=t-+this._y.call(null,w.data),L=A*A+I*I;if(L<r){var H=Math.sqrt(r=L);s=e-H,l=t-H,g=e+H,m=t+H,o=w.data}}return o}function wve(e){if(isNaN(g=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,l,u=this._x0,d=this._y0,h=this._x1,p=this._y1,g,m,y,w,C,$,E,T;if(!r)return this;if(r.length)for(;;){if((C=g>=(y=(u+h)/2))?u=y:h=y,($=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[E=$<<1|C]))return this;if(!r.length)break;(t[E+1&3]||t[E+2&3]||t[E+3&3])&&(o=t,T=E)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(l=r.next)&&delete r.next,s?(l?s.next=l:delete s.next,this):t?(l?t[E]=l: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[T]=r:this._root=r),this):(this._root=l,this)}function xve(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Sve(){return this._root}function _ve(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function kve(e){var t=[],r,o=this._root,s,l,u,d,h;for(o&&t.push(new In(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,l=r.x0,u=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(l+d)/2,g=(u+h)/2;(s=o[3])&&t.push(new In(s,p,g,d,h)),(s=o[2])&&t.push(new In(s,l,g,p,h)),(s=o[1])&&t.push(new In(s,p,u,d,g)),(s=o[0])&&t.push(new In(s,l,u,p,g))}return this}function Tve(e){var t=[],r=[],o;for(this._root&&t.push(new In(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var l,u=o.x0,d=o.y0,h=o.x1,p=o.y1,g=(u+h)/2,m=(d+p)/2;(l=s[0])&&t.push(new In(l,u,d,g,m)),(l=s[1])&&t.push(new In(l,g,d,h,m)),(l=s[2])&&t.push(new In(l,u,m,g,p)),(l=s[3])&&t.push(new In(l,g,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Cve(e){return e[0]}function Eve(e){return arguments.length?(this._x=e,this):this._x}function Ave(e){return e[1]}function Lve(e){return arguments.length?(this._y=e,this):this._y}function Ip(e,t,r){var o=new Pp(t??Cve,r??Ave,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Pp(e,t,r,o,s,l){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=l,this._root=void 0}function py(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var zn=Ip.prototype=Pp.prototype;zn.copy=function(){var e=new Pp(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=py(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]=py(o));return e};zn.add=pve;zn.addAll=gve;zn.cover=vve;zn.data=mve;zn.extent=yve;zn.find=bve;zn.remove=wve;zn.removeAll=xve;zn.root=Sve;zn.size=_ve;zn.visit=kve;zn.visitAfter=Tve;zn.x=Eve;zn.y=Lve;function Rn(e){return function(){return e}}function to(e){return(e()-.5)*1e-6}function Mve(e){return e.x+e.vx}function $ve(e){return e.y+e.vy}function Nve(e){var t,r,o,s=1,l=1;typeof e!="function"&&(e=Rn(e==null?1:+e));function u(){for(var p,g=t.length,m,y,w,C,$,E,T=0;T<l;++T)for(m=Ip(t,Mve,$ve).visitAfter(d),p=0;p<g;++p)y=t[p],$=r[y.index],E=$*$,w=y.x+y.vx,C=y.y+y.vy,m.visit(A);function A(I,L,H,G,oe){var ee=I.data,Z=I.r,Q=$+Z;if(ee){if(ee.index>y.index){var F=w-ee.x-ee.vx,N=C-ee.y-ee.vy,P=F*F+N*N;P<Q*Q&&(F===0&&(F=to(o),P+=F*F),N===0&&(N=to(o),P+=N*N),P=(Q-(P=Math.sqrt(P)))/P*s,y.vx+=(F*=P)*(Q=(Z*=Z)/(E+Z)),y.vy+=(N*=P)*Q,ee.vx-=F*(Q=1-Q),ee.vy-=N*Q)}return}return L>w+Q||G<w-Q||H>C+Q||oe<C-Q}}function d(p){if(p.data)return p.r=r[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,m;for(r=new Array(g),p=0;p<g;++p)m=t[p],r[m.index]=+e(m,p,t)}}return u.initialize=function(p,g){t=p,o=g,h()},u.iterations=function(p){return arguments.length?(l=+p,u):l},u.strength=function(p){return arguments.length?(s=+p,u):s},u.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Rn(+p),h(),u):e},u}function Ove(e){return e.index}function gy(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Ive(e){var t=Ove,r=m,o,s=Rn(30),l,u,d,h,p,g=1;e==null&&(e=[]);function m(E){return 1/Math.min(d[E.source.index],d[E.target.index])}function y(E){for(var T=0,A=e.length;T<g;++T)for(var I=0,L,H,G,oe,ee,Z,Q;I<A;++I)L=e[I],H=L.source,G=L.target,oe=G.x+G.vx-H.x-H.vx||to(p),ee=G.y+G.vy-H.y-H.vy||to(p),Z=Math.sqrt(oe*oe+ee*ee),Z=(Z-l[I])/Z*E*o[I],oe*=Z,ee*=Z,G.vx-=oe*(Q=h[I]),G.vy-=ee*Q,H.vx+=oe*(Q=1-Q),H.vy+=ee*Q}function w(){if(u){var E,T=u.length,A=e.length,I=new Map(u.map((H,G)=>[t(H,G,u),H])),L;for(E=0,d=new Array(T);E<A;++E)L=e[E],L.index=E,typeof L.source!="object"&&(L.source=gy(I,L.source)),typeof L.target!="object"&&(L.target=gy(I,L.target)),d[L.source.index]=(d[L.source.index]||0)+1,d[L.target.index]=(d[L.target.index]||0)+1;for(E=0,h=new Array(A);E<A;++E)L=e[E],h[E]=d[L.source.index]/(d[L.source.index]+d[L.target.index]);o=new Array(A),C(),l=new Array(A),$()}}function C(){if(u)for(var E=0,T=e.length;E<T;++E)o[E]=+r(e[E],E,e)}function $(){if(u)for(var E=0,T=e.length;E<T;++E)l[E]=+s(e[E],E,e)}return y.initialize=function(E,T){u=E,p=T,w()},y.links=function(E){return arguments.length?(e=E,w(),y):e},y.id=function(E){return arguments.length?(t=E,y):t},y.iterations=function(E){return arguments.length?(g=+E,y):g},y.strength=function(E){return arguments.length?(r=typeof E=="function"?E:Rn(+E),C(),y):r},y.distance=function(E){return arguments.length?(s=typeof E=="function"?E:Rn(+E),$(),y):s},y}const Pve=1664525,Rve=1013904223,vy=4294967296;function zve(){let e=1;return()=>(e=(Pve*e+Rve)%vy)/vy}function Dve(e){return e.x}function Fve(e){return e.y}var Hve=10,Bve=Math.PI*(3-Math.sqrt(5));function Wve(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),l=0,u=.6,d=new Map,h=Mp(m),p=qa("tick","end"),g=zve();e==null&&(e=[]);function m(){y(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function y($){var E,T=e.length,A;$===void 0&&($=1);for(var I=0;I<$;++I)for(r+=(l-r)*s,d.forEach(function(L){L(r)}),E=0;E<T;++E)A=e[E],A.fx==null?A.x+=A.vx*=u:(A.x=A.fx,A.vx=0),A.fy==null?A.y+=A.vy*=u:(A.y=A.fy,A.vy=0);return t}function w(){for(var $=0,E=e.length,T;$<E;++$){if(T=e[$],T.index=$,T.fx!=null&&(T.x=T.fx),T.fy!=null&&(T.y=T.fy),isNaN(T.x)||isNaN(T.y)){var A=Hve*Math.sqrt(.5+$),I=$*Bve;T.x=A*Math.cos(I),T.y=A*Math.sin(I)}(isNaN(T.vx)||isNaN(T.vy))&&(T.vx=T.vy=0)}}function C($){return $.initialize&&$.initialize(e,g),$}return w(),t={tick:y,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function($){return arguments.length?(e=$,w(),d.forEach(C),t):e},alpha:function($){return arguments.length?(r=+$,t):r},alphaMin:function($){return arguments.length?(o=+$,t):o},alphaDecay:function($){return arguments.length?(s=+$,t):+s},alphaTarget:function($){return arguments.length?(l=+$,t):l},velocityDecay:function($){return arguments.length?(u=1-$,t):1-u},randomSource:function($){return arguments.length?(g=$,d.forEach(C),t):g},force:function($,E){return arguments.length>1?(E==null?d.delete($):d.set($,C(E)),t):d.get($)},find:function($,E,T){var A=0,I=e.length,L,H,G,oe,ee;for(T==null?T=1/0:T*=T,A=0;A<I;++A)oe=e[A],L=$-oe.x,H=E-oe.y,G=L*L+H*H,G<T&&(ee=oe,T=G);return ee},on:function($,E){return arguments.length>1?(p.on($,E),t):p.on($)}}}function qve(){var e,t,r,o,s=Rn(-30),l,u=1,d=1/0,h=.81;function p(w){var C,$=e.length,E=Ip(e,Dve,Fve).visitAfter(m);for(o=w,C=0;C<$;++C)t=e[C],E.visit(y)}function g(){if(e){var w,C=e.length,$;for(l=new Array(C),w=0;w<C;++w)$=e[w],l[$.index]=+s($,w,e)}}function m(w){var C=0,$,E,T=0,A,I,L;if(w.length){for(A=I=L=0;L<4;++L)($=w[L])&&(E=Math.abs($.value))&&(C+=$.value,T+=E,A+=E*$.x,I+=E*$.y);w.x=A/T,w.y=I/T}else{$=w,$.x=$.data.x,$.y=$.data.y;do C+=l[$.data.index];while($=$.next)}w.value=C}function y(w,C,$,E){if(!w.value)return!0;var T=w.x-t.x,A=w.y-t.y,I=E-C,L=T*T+A*A;if(I*I/h<L)return L<d&&(T===0&&(T=to(r),L+=T*T),A===0&&(A=to(r),L+=A*A),L<u&&(L=Math.sqrt(u*L)),t.vx+=T*w.value*o/L,t.vy+=A*w.value*o/L),!0;if(w.length||L>=d)return;(w.data!==t||w.next)&&(T===0&&(T=to(r),L+=T*T),A===0&&(A=to(r),L+=A*A),L<u&&(L=Math.sqrt(u*L)));do w.data!==t&&(I=l[w.data.index]*o/L,t.vx+=T*I,t.vy+=A*I);while(w=w.next)}return p.initialize=function(w,C){e=w,r=C,g()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Rn(+w),g(),p):s},p.distanceMin=function(w){return arguments.length?(u=w*w,p):Math.sqrt(u)},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 Uve(e){var t=Rn(.1),r,o,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function l(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vx+=(s[h]-g.x)*o[h]*d}function u(){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 l.initialize=function(d){r=d,u()},l.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Rn(+d),u(),l):t},l.x=function(d){return arguments.length?(e=typeof d=="function"?d:Rn(+d),u(),l):e},l}function jve(e){var t=Rn(.1),r,o,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function l(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vy+=(s[h]-g.y)*o[h]*d}function u(){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 l.initialize=function(d){r=d,u()},l.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Rn(+d),u(),l):t},l.y=function(d){return arguments.length?(e=typeof d=="function"?d:Rn(+d),u(),l):e},l}var Vve=Object.defineProperty,Gve=(e,t,r)=>t in e?Vve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$t=(e,t,r)=>Gve(e,typeof t!="symbol"?t+"":t,r);function Kve(){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 my(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 no(...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]=no.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:my(t[o])&&my(r[o])?t[o]=no(t[o],r[o]):t[o]=r[o])}),t},{})}const $x={mergeArrays:!0};no.options=$x;no.withOptions=(e,...t)=>{no.options={mergeArrays:!0,...e};const r=no(...t);return no.options=$x,r};function Xve(){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 Yve(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Nx(e){e.preventDefault(),e.stopPropagation()}function Ox(e){return typeof e=="number"}function mo(e,t){return Ox(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Jve(e){return`${e.source.id}-${e.target.id}`}function Ix(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Zve(e){return`url(#${Ix(e.color)})`}function Qve(e){return{size:e,padding:(t,r)=>mo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const Px={Arrow:e=>Qve(e)},eme=(e,t,r)=>[t/2,r/2],tme=(e,t,r)=>[yy(0,t),yy(0,r)];function yy(e,t){return Math.random()*(t-e)+e}const Nh={Centered:eme,Randomized:tme};function nme(){return{autoResize:!1,callbacks:{},hooks:{},initial:Yve(),nodeRadius:16,marker:Px.Arrow(4),modifiers:{},positionInitializer:Nh.Centered,simulation:{alphas:Kve(),forces:Xve()},zoom:{initial:1,min:.1,max:2}}}function rme(e={}){return no.withOptions({mergeArrays:!1},nme(),e)}function ime({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[l,u],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>Nx(g)).on("dblclick",g=>r==null?void 0:r(g)).on("dblclick.zoom",null).on("pointermove",g=>o==null?void 0:o(g)).on("pointerup",g=>s==null?void 0:s(g)).style("cursor","grab");return e&&p.call(h.transform,Op.translate(l,u).scale(d)),p.append("g")}function ome({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function sme({config:e,onDragStart:t,onDragEnd:r}){var o,s;const l=_pe().filter(u=>u.type==="mousedown"?u.button===0:u.type==="touchstart"?u.touches.length===1:!1).on("start",(u,d)=>{u.active===0&&t(u,d),Vn(u.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(u,d)=>{d.fx=u.x,d.fy=u.y}).on("end",(u,d)=>{u.active===0&&r(u,d),Vn(u.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,l),l}function lme({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const l=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),u=h=>l.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||u(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:l}:ame({links:l},r)}function ame(e,t){const r=[...cme(e,t),...ume(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function cme(e,t){return Rx(e,t,(r,o)=>r.target.id===o.id)}function ume(e,t){return Rx(e,t,(r,o)=>r.source.id===o.id)}function Rx(e,t,r){const o=new Set(e.links),s=new Set([t]),l=[];for(;o.size>0;){const u=[...o].filter(d=>[...s].some(h=>r(d,h)));if(u.length===0)return l;u.forEach(d=>{s.add(d.source),s.add(d.target),l.push(d),o.delete(d)})}return l}function Oh(e){return e.x??0}function Ih(e){return e.y??0}function Rp({source:e,target:t}){const r=new Nn(Oh(e),Ih(e)),o=new Nn(Oh(t),Ih(t)),s=o.subtract(r),l=s.length(),u=s.normalize(),d=u.multiply(-1);return{s:r,t:o,dist:l,norm:u,endNorm:d}}function zx({center:e,node:t}){const r=new Nn(Oh(t),Ih(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 Dx({config:e,source:t,target:r}){const{s:o,t:s,norm:l}=Rp({source:t,target:r}),u=o.add(l.multiply(mo(e,t)-1)),d=s.subtract(l.multiply(e.marker.padding(r,e)));return{start:u,end:d}}function fme(e){const{start:t,end:r}=Dx(e);return`M${t.x},${t.y}
|
|
51
|
-
L${r.x},${r.y}`}function dme(e){const{start:t,end:r}=Dx(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function hme({config:e,source:t,target:r}){const{s:o,t:s,dist:l,norm:u,endNorm:d}=Rp({source:t,target:r}),h=10,p=u.rotateByDegrees(-10).multiply(mo(e,t)-1).add(o),g=d.rotateByDegrees(h).multiply(mo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*l;return`M${p.x},${p.y}
|
|
52
|
-
A${m},${m},0,0,1,${g.x},${g.y}`}function pme({center:e,config:t,node:r}){const{n:o,c:s}=zx({center:e,node:r}),l=mo(t,r),u=o.subtract(s),d=u.multiply(1/u.length()),h=d.rotateByDegrees(40).multiply(l-1).add(o),p=d.rotateByDegrees(-40).multiply(l).add(o).add(d.rotateByDegrees(-40).multiply(2*t.marker.size));return`M${h.x},${h.y}
|
|
53
|
-
A${l},${l},0,1,0,${p.x},${p.y}`}function gme({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:l}=Rp({source:t,target:r}),u=l.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${u.x},${u.y})`}function vme({center:e,config:t,node:r}){const{n:o,c:s}=zx({center:e,node:r}),l=o.subtract(s),u=l.multiply(1/l.length()).multiply(3*mo(t,r)+8).add(o);return`translate(${u.x},${u.y})`}const js={line:{labelTransform:dme,path:fme},arc:{labelTransform:gme,path:hme},reflexive:{labelTransform:vme,path:pme}};function mme(e){return e.append("g").classed("links",!0).selectAll("path")}function yme({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,l=>Jve(l)).join(l=>{var u,d,h,p;const g=l.append("g"),m=g.append("path").classed("link",!0).style("marker-end",w=>Zve(w)).style("stroke",w=>w.color);(d=(u=e.modifiers).link)==null||d.call(u,m);const y=g.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(p=(h=e.modifiers).linkLabel)==null||p.call(h,y),g});return s==null||s.select(".link__label").attr("opacity",l=>l.label&&o?1:0),s}function bme(e){wme(e),xme(e)}function wme({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?js.reflexive.path({config:t,node:s.source,center:e}):Fx(r,s.source,s.target)?js.arc.path({config:t,source:s.source,target:s.target}):js.line.path({config:t,source:s.source,target:s.target}))}function xme({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?js.reflexive.labelTransform({config:e,node:s.source,center:t}):Fx(r,s.source,s.target)?js.arc.labelTransform({config:e,source:s.source,target:s.target}):js.line.labelTransform({config:e,source:s.source,target:s.target}))}function Fx(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Sme(e){return e.append("defs").selectAll("marker")}function _me({config:e,graph:t,selection:r}){return r==null?void 0:r.data(kme(t),o=>o).join(o=>{const s=o.append("marker").attr("id",l=>Ix(l)).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",l=>l);return s.append("path").attr("d",Tme(e.marker.path)),s})}function kme(e){return[...new Set(e.links.map(t=>t.color))]}function Tme(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((l,[u,d])=>`${l}L${u},${d}`,`M${o},${s}`)}function Cme(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Eme({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:l,showLabels:u}){const d=l==null?void 0:l.data(r.nodes,h=>h.id).join(h=>{var p,g,m,y;const w=h.append("g");t!==void 0&&w.call(t);const C=w.append("circle").classed("node",!0).attr("r",E=>mo(e,E)).on("contextmenu",(E,T)=>{Nx(E),o(T)}).on("pointerdown",(E,T)=>Lme(E,T,s??o)).style("fill",E=>E.color);(g=(p=e.modifiers).node)==null||g.call(p,C);const $=w.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(y=(m=e.modifiers).nodeLabel)==null||y.call(m,$),w});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",u?1:0),d}const Ame=500;function Lme(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>Ame){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Mme(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function $me({center:e,config:t,graph:r,onTick:o}){var s,l;const u=Wve(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;u.force("x",Uve(()=>e().x).strength(m)).force("y",jve(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&u.force("charge",qve().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&u.force("collision",Nve().radius(m=>p.radiusMultiplier*mo(t,m)));const g=t.simulation.forces.link;return g&&g.enabled&&u.force("link",Ive(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(g.strength)),u.on("tick",()=>o()),(l=(s=t.modifiers).simulation)==null||l.call(s,u),u}function Nme({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var l,u;const d=hve().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(u=(l=t.modifiers).zoom)==null||u.call(l,d),d}class Ome{constructor(t,r,o){if($t(this,"nodeTypes"),$t(this,"_nodeTypeFilter"),$t(this,"_includeUnlinked",!0),$t(this,"_linkFilter",()=>!0),$t(this,"_showLinkLabels",!0),$t(this,"_showNodeLabels",!0),$t(this,"filteredGraph"),$t(this,"width",0),$t(this,"height",0),$t(this,"simulation"),$t(this,"canvas"),$t(this,"linkSelection"),$t(this,"nodeSelection"),$t(this,"markerSelection"),$t(this,"zoom"),$t(this,"drag"),$t(this,"xOffset",0),$t(this,"yOffset",0),$t(this,"scale"),$t(this,"focusedNode"),$t(this,"resizeObserver"),$t(this,"container"),$t(this,"graph"),$t(this,"config"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[l,u]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??l,s.y=s.y??u}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:l,linkFilter:u,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=l??this._nodeTypeFilter,this._linkFilter=u??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Ode(()=>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,l=t.toFixed()!==o.toFixed(),u=r.toFixed()!==s.toFixed();if(!l&&!u)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(Ox(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=_me({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=yme({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Eme({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=$me({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=Nme({config:this.config,canvasContainer:()=>Vn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=ime({applyZoom:this.scale!==1,container:Vn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=mme(this.canvas),this.nodeSelection=Cme(this.canvas),this.markerSelection=Sme(this.canvas),this.drag=sme({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(){Mme(this.nodeSelection),bme({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Vn(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(){ome({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=lme({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function by({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Ime(e){return{...e}}function Hx(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Pme={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Rme={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},zme={flex:"~ gap-1","items-center":"","select-none":""},Dme=["id","checked","onChange"],Fme=["for"],Hme=ut({__name:"ViewModuleGraph",props:la({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Gu(e,"modelValue"),{graph:o}=qk(t),s=Ue(),l=Ue(!1),u=Ue(),d=Ue();op(()=>{l.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),yo(()=>{g()}),ju(()=>{var w;(w=d.value)==null||w.shutdown()}),xt(o,()=>g());function h(w,C){var $;($=d.value)==null||$.filterNodesByType(C,w)}function p(w){u.value=w,l.value=!0}function g(w=!1){var C;if((C=d.value)==null||C.shutdown(),w&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new Ome(s.value,o.value,rme({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:$,newWidth:E})=>$===0&&E===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Px.Arrow(2),modifiers:{node:y},positionInitializer:o.value.nodes.length>1?Nh.Randomized:Nh.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function y(w){if(dr)return;let C=0,$=0,E=0;w.on("pointerdown",(T,A)=>{A.type!=="external"&&(!A.x||!A.y||!m(T)||(C=A.x,$=A.y,E=Date.now()))}).on("pointerup",(T,A)=>{if(A.type==="external"||!A.x||!A.y||!m(T)||Date.now()-E>500)return;const I=A.x-C,L=A.y-$;I**2+L**2<100&&p(A.id)})}return(w,C)=>{var I;const $=Ai,E=Nde,T=ex,A=Qr("tooltip");return ce(),Se("div",Pme,[ie("div",null,[ie("div",Rme,[ie("div",zme,[vt(ie("input",{id:"hide-node-modules","onUpdate:modelValue":C[0]||(C[0]=L=>r.value=L),type:"checkbox"},null,512),[[cw,r.value]]),C[4]||(C[4]=ie("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))]),(ce(!0),Se(ct,null,Si((I=V(d))==null?void 0:I.nodeTypes.sort(),L=>{var H;return ce(),Se("div",{key:L,flex:"~ gap-1","items-center":"","select-none":""},[ie("input",{id:`type-${L}`,type:"checkbox",checked:(H=V(d))==null?void 0:H.nodeTypeFilter.includes(L),onChange:G=>h(L,G.target.checked)},null,40,Dme),ie("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${L}`,"border-b-2":"",style:nn({"border-color":`var(--color-node-${L})`})},qe(L)+" Modules",13,Fme)])}),128)),C[5]||(C[5]=ie("div",{"flex-auto":""},null,-1)),ie("div",null,[vt(Ie($,{icon:"i-carbon-reset",onClick:C[1]||(C[1]=L=>g(!0))},null,512),[[A,"Reset",void 0,{bottom:!0}]])])])]),ie("div",{ref_key:"el",ref:s},null,512),Ie(T,{modelValue:V(l),"onUpdate:modelValue":C[3]||(C[3]=L=>Ct(l)?l.value=L:null),direction:"right"},{default:rt(()=>[V(u)?(ce(),nt(Jb,{key:0},{default:rt(()=>[Ie(E,{id:V(u),"project-name":w.projectName,onClose:C[2]||(C[2]=L=>l.value=!1)},null,8,["id","project-name"])]),_:1})):Je("",!0)]),_:1},8,["modelValue"])])}}}),Bme={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Wme={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},qme={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Ume={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},jme={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Vme={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Bx=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Qr("tooltip");return t.state==="pass"?(ce(),Se("div",Bme)):t.failedSnapshot?vt((ce(),Se("div",Wme,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(ce(),Se("div",qme)):t.mode==="todo"?vt((ce(),Se("div",Ume,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?vt((ce(),Se("div",jme,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ce(),Se("div",Vme))}}});function Gme(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((l,u)=>{var g;const{splits:d,finished:h}=l;if(h){s++;const{raw:m,candidate:y}=l;t.set(m,y);return}if(d.length===0){l.finished=!0;return}const p=d[0];r.has(p)?(l.candidate+=l.candidate===""?p:`/${p}`,(g=r.get(p))==null||g.push(u),d.shift()):(r.set(p,[u]),o.push(u))}),o.forEach(l=>{const u=e[l],d=u.splits.shift();u.candidate+=u.candidate===""?d:`/${d}`}),r.forEach(l=>{if(l.length===1){const u=l[0];e[u].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Kme(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 Xme(e){const t=e.map(o=>Kme(o)),r=Gme(t);return t.map(({raw:o,id:s})=>Hx({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 Yme(e,t){return Hx({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 Jme(e,t){if(!e)return by({});const r=Xme(e.externalized),o=e.inlined.map(d=>Yme(d,d===t))??[],s=[...r,...o],l=Object.fromEntries(s.map(d=>[d.id,d])),u=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const g=l[d],m=l[p];if(!(g===void 0||m===void 0))return Ime({source:g,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return by({nodes:s,links:u})}const Zme={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Qme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},e0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},t0e={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},n0e={class:"flex text-lg"},r0e={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},i0e={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},o0e={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},s0e={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},l0e=["flex-1"],a0e=ut({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),r=Ue(!1),o=Ue(!1),s=Ue(!1),l=Ue(void 0),u=Ue(!0),d=_e(()=>{const A=en.value;if(!(!A||!A.filepath))return{filepath:A.filepath,projectName:A.file.projectName||""}}),h=_e(()=>en.value&&Sp(en.value)),p=_e(()=>{var A,I;return!!((I=(A=en.value)==null?void 0:A.meta)!=null&&I.typecheck)});function g(){var I;const A=(I=en.value)==null?void 0:I.filepath;A&&fetch(`/__open-in-editor?file=${encodeURIComponent(A)}`)}function m(A){A==="graph"&&(o.value=!0),Zn.value=A}const y=_e(()=>{var A;return((A=Z1.value)==null?void 0:A.reduce((I,{size:L})=>I+L,0))??0});function w(A){r.value=A}const C=/[/\\]node_modules[/\\]/;async function $(A=!1){var I;if(!(s.value||((I=d.value)==null?void 0:I.filepath)===l.value&&!A)){s.value=!0,await Tt();try{const L=d.value;if(!L){s.value=!1;return}if(A||!l.value||L.filepath!==l.value||!t.value.nodes.length&&!t.value.links.length){let H=await gt.rpc.getModuleGraph(L.projectName,L.filepath,!!Ht);u.value&&(dr&&(H=typeof window.structuredClone<"u"?window.structuredClone(H):pM(H)),H.inlined=H.inlined.filter(G=>!C.test(G)),H.externalized=H.externalized.filter(G=>!C.test(G))),t.value=Jme(H,L.filepath),l.value=L.filepath}m("graph")}finally{await new Promise(L=>setTimeout(L,100)),s.value=!1}}}bp(()=>[d.value,Zn.value,u.value],([,A,I],L)=>{A==="graph"&&$(L&&I!==L[2])},{debounce:100,immediate:!0});const E=_e(()=>{var A;return E1((A=en.value)==null?void 0:A.file.projectName)}),T=_e(()=>{switch(E.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(A,I)=>{var F,N,P,O;const L=Bx,H=Ai,G=Hme,oe=kde,ee=gde,Z=cde,Q=Qr("tooltip");return V(en)?(ce(),Se("div",Zme,[ie("div",null,[ie("div",Qme,[Ie(L,{state:(F=V(en).result)==null?void 0:F.state,mode:V(en).mode,"failed-snapshot":V(h)},null,8,["state","mode","failed-snapshot"]),V(p)?vt((ce(),Se("div",e0e,null,512)),[[Q,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Je("",!0),(N=V(en))!=null&&N.file.projectName?(ce(),Se("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:nn({backgroundColor:V(E),color:V(T)})},qe(V(en).file.projectName),5)):Je("",!0),ie("div",t0e,qe((P=V(en))==null?void 0:P.name),1),ie("div",n0e,[V(dr)?Je("",!0):vt((ce(),nt(H,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=V(en))!=null&&O.filepath),onClick:g},null,8,["disabled"])),[[Q,"Open in editor",void 0,{bottom:!0}]])])]),ie("div",r0e,[ie("button",{"tab-button":"",class:it(["flex items-center gap-2",{"tab-button-active":V(Zn)==null}]),"data-testid":"btn-report",onClick:I[0]||(I[0]=S=>m(null))},I[5]||(I[5]=[ie("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),ie("button",{"tab-button":"","data-testid":"btn-graph",class:it(["flex items-center gap-2",{"tab-button-active":V(Zn)==="graph"}]),onClick:I[1]||(I[1]=S=>m("graph"))},[V(s)?(ce(),Se("span",i0e)):(ce(),Se("span",o0e)),I[6]||(I[6]=pt(" Module Graph "))],2),ie("button",{"tab-button":"","data-testid":"btn-code",class:it(["flex items-center gap-2",{"tab-button-active":V(Zn)==="editor"}]),onClick:I[2]||(I[2]=S=>m("editor"))},[I[7]||(I[7]=ie("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+qe(V(r)?"* ":"")+"Code ",1)],2),ie("button",{"tab-button":"","data-testid":"btn-console",class:it(["flex items-center gap-2",{"tab-button-active":V(Zn)==="console",op20:V(Zn)!=="console"&&V(y)===0}]),onClick:I[3]||(I[3]=S=>m("console"))},[I[8]||(I[8]=ie("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+qe(V(y))+") ",1)],2)])]),ie("div",s0e,[V(o)?(ce(),Se("div",{key:0,"flex-1":V(Zn)==="graph"&&""},[vt(Ie(G,{modelValue:V(u),"onUpdate:modelValue":I[4]||(I[4]=S=>Ct(u)?u.value=S:null),graph:V(t),"data-testid":"graph","project-name":V(en).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[eo,V(Zn)==="graph"&&!V(s)]])],8,l0e)):Je("",!0),V(Zn)==="editor"?(ce(),nt(oe,{key:V(en).id,file:V(en),"data-testid":"editor",onDraft:w},null,8,["file"])):V(Zn)==="console"?(ce(),nt(ee,{key:2,file:V(en),"data-testid":"console"},null,8,["file"])):V(Zn)?Je("",!0):(ce(),nt(Z,{key:3,file:V(en),"data-testid":"report"},null,8,["file"]))])])):Je("",!0)}}}),c0e={h:"full",flex:"~ col"},u0e={"flex-auto":"","py-1":"","bg-white":""},f0e=["src"],d0e=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ce(),Se("div",c0e,[r[0]||(r[0]=ie("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ie("div",{class:"i-carbon:folder-details-reference"}),ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),ie("div",u0e,[ie("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,f0e)])]))}}),h0e={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},p0e={"font-bold":""},g0e={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},v0e=["font-bold"],m0e={text:"red500/70"},y0e={key:1,text:"sm","mb-2":""},b0e={"font-bold":""},w0e={key:2,text:"sm","mb-2":""},x0e={"font-bold":""},S0e={key:3,text:"sm","font-thin":""},_0e=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return ce(),Se(ct,null,[ie("h4",h0e,[ie("span",p0e,[pt(qe(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(ce(),Se(ct,{key:0},[pt(":")],64)):Je("",!0)]),pt(" "+qe(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(ce(),Se("p",g0e,[(ce(!0),Se(ct,null,Si(t.error.stacks,(s,l)=>(ce(),Se("span",{key:l,"whitespace-pre":"","font-bold":l===0?"":null},[pt("❯ "+qe(s.method)+" "+qe(s.file)+":",1),ie("span",m0e,qe(s.line)+":"+qe(s.column),1),r[0]||(r[0]=ie("br",null,null,-1))],8,v0e))),128))])):Je("",!0),t.error.VITEST_TEST_PATH?(ce(),Se("p",y0e,[r[1]||(r[1]=pt(" This error originated in ")),ie("span",b0e,qe(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. "))])):Je("",!0),t.error.VITEST_TEST_NAME?(ce(),Se("div",w0e,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),ie("span",x0e,qe(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=ie("br",null,null,-1)),r[6]||(r[6]=ie("ul",null,[ie("li",null," The error was thrown, while Vitest was running this test. "),ie("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Je("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(ce(),Se("div",S0e,r[7]||(r[7]=[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),ie("br",null,null,-1),ie("ul",null,[ie("li",null," Cancel timeouts using clearTimeout and clearInterval. "),ie("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Je("",!0)],64)}}}),k0e={"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:""},T0e={class:"number","data-testid":"num-files"},C0e={class:"number"},E0e={class:"number","text-red5":""},A0e={class:"number","text-red5":""},L0e={class:"number","text-red5":""},M0e={class:"number","data-testid":"run-time"},$0e={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},N0e={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},O0e={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},I0e=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=_0e;return ce(),Se(ct,null,[ie("div",k0e,[r[8]||(r[8]=ie("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=ie("div",null,"Files",-1)),ie("div",T0e,qe(V(Ae).summary.files),1),V(Ae).summary.filesSuccess?(ce(),Se(ct,{key:0},[r[0]||(r[0]=ie("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=ie("div",null,"Pass",-1)),ie("div",C0e,qe(V(Ae).summary.filesSuccess),1)],64)):Je("",!0),V(Ae).summary.filesFailed?(ce(),Se(ct,{key:1},[r[2]||(r[2]=ie("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=ie("div",null," Fail ",-1)),ie("div",E0e,qe(V(Ae).summary.filesFailed),1)],64)):Je("",!0),V(Ae).summary.filesSnapshotFailed?(ce(),Se(ct,{key:2},[r[4]||(r[4]=ie("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=ie("div",null," Snapshot Fail ",-1)),ie("div",A0e,qe(V(Ae).summary.filesSnapshotFailed),1)],64)):Je("",!0),V(Ji).length?(ce(),Se(ct,{key:3},[r[6]||(r[6]=ie("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=ie("div",null," Errors ",-1)),ie("div",L0e,qe(V(Ji).length),1)],64)):Je("",!0),r[10]||(r[10]=ie("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=ie("div",null,"Time",-1)),ie("div",M0e,qe(V(Ae).summary.time),1)]),V(Ji).length?(ce(),Se("div",$0e,[r[15]||(r[15]=ie("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),ie("p",N0e,[pt(" Vitest caught "+qe(V(Ji).length)+" error"+qe(V(Ji).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=ie("br",null,null,-1)),r[13]||(r[13]=pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. "))]),ie("details",O0e,[r[14]||(r[14]=ie("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ce(!0),Se(ct,null,Si(V(Ji),(s,l)=>(ce(),nt(o,{key:l,error:s},null,8,["error"]))),128))])])):Je("",!0)],64)}}}),P0e=Ei(I0e,[["__scopeId","data-v-0178ddee"]]),R0e={"p-2":"","text-center":"",flex:""},z0e={"text-4xl":"","min-w-2em":""},D0e={"text-md":""},F0e=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(ce(),Se("div",R0e,[ie("div",null,[ie("div",z0e,[xn(t.$slots,"body")]),ie("div",D0e,[xn(t.$slots,"header")])])]))}}),H0e={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},B0e=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=F0e;return ce(),Se("div",H0e,[Ie(o,{"text-green5":"","data-testid":"pass-entry"},{header:rt(()=>r[0]||(r[0]=[pt(" Pass ")])),body:rt(()=>[pt(qe(V(Ae).summary.testsSuccess),1)]),_:1}),Ie(o,{class:it({"text-red5":V(Ae).summary.testsFailed,op50:!V(Ae).summary.testsFailed}),"data-testid":"fail-entry"},{header:rt(()=>r[1]||(r[1]=[pt(" Fail ")])),body:rt(()=>[pt(qe(V(Ae).summary.testsFailed),1)]),_:1},8,["class"]),V(Ae).summary.testsSkipped?(ce(),nt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:rt(()=>r[2]||(r[2]=[pt(" Skip ")])),body:rt(()=>[pt(qe(V(Ae).summary.testsSkipped),1)]),_:1})):Je("",!0),V(Ae).summary.testsTodo?(ce(),nt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:rt(()=>r[3]||(r[3]=[pt(" Todo ")])),body:rt(()=>[pt(qe(V(Ae).summary.testsTodo),1)]),_:1})):Je("",!0),Ie(o,{tail:!0,"data-testid":"total-entry"},{header:rt(()=>r[4]||(r[4]=[pt(" Total ")])),body:rt(()=>[pt(qe(V(Ae).summary.totalTests),1)]),_:1})])}}}),W0e={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},q0e={key:0,class:"text-gray-5"},U0e={"aria-labelledby":"tests",m:"y-4 x-2"},j0e=ut({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=B0e,s=P0e;return ce(),Se("div",W0e,[V(Ae).summary.files===0&&V(Es)?(ce(),Se("div",q0e," No tests found ")):Je("",!0),ie("section",U0e,[Ie(o)]),Ie(s)])}}}),V0e={},G0e={h:"full",flex:"~ col"},K0e={class:"scrolls","flex-auto":"","py-1":""};function X0e(e,t){const r=j0e;return ce(),Se("div",G0e,[t[0]||(t[0]=ie("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ie("div",{class:"i-carbon-dashboard"}),ie("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),ie("div",K0e,[Ie(r)])])}const Y0e=Ei(V0e,[["render",X0e]]),J0e=["open"],Z0e=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(r,o)=>(ce(),Se("div",{open:V(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[ie("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:it(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=ie("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),xn(r.$slots,"summary",{open:V(t)}),o[2]||(o[2]=ie("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),xn(r.$slots,"default")],40,J0e))}}),Q0e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},eye={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(ce(),Se("button",Q0e,[ie("span",{block:"",class:it([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},tye=["aria-label","data-current"],nye={key:1,"w-4":""},rye={flex:"","items-end":"","gap-2":"","overflow-hidden":""},iye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},oye={"text-sm":"",truncate:"","font-light":""},sye=["text","innerHTML"],lye={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},aye={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},cye={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},uye={key:1},fye=ut({__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=_e(()=>gt.state.idMap.get(e.taskId)),r=_e(()=>{if(dr)return!1;const E=t.value;return E&&Sp(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 T;(T=e.onItemClick)==null||T.call(e,E),Ls.value&&(Cu.value=!0,await Tt()),e.type==="file"?await Tp([E.file]):await Cfe(E)}function l(E){return gt.rpc.updateSnapshot(E.file)}const u=_e(()=>e.indent<=0?[]:Array.from({length:e.indent},(E,T)=>`${e.taskId}-${T}`)),d=_e(()=>{const E=u.value,T=[];return(e.type==="file"||e.type==="suite")&&T.push("min-content"),T.push("min-content"),e.type==="suite"&&e.typecheck&&T.push("min-content"),T.push("minmax(0, 1fr)"),T.push("min-content"),`grid-template-columns: ${E.map(()=>"1rem").join(" ")} ${T.join(" ")};`}),h=_e(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=_e(()=>T1(e.name)),g=_e(()=>{const E=BM.value,T=p.value;return E?T.replace(E,A=>`<span class="highlight">${A}</span>`):T}),m=_e(()=>e.type!=="file"&&e.disableTaskLocation),y=_e(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=_e(()=>m.value?"color-red5 dark:color-#f43f5e":null);function C(){var T;const E=t.value;e.type==="file"?(T=e.onItemClick)==null||T.call(e,E):_de(E)}const $=_e(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}});return(E,T)=>{const A=Bx,I=eye,L=Ai,H=Qr("tooltip");return V(t)?(ce(),Se("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:nn(V(d)),"aria-label":E.name,"data-current":E.current,onClick:T[2]||(T[2]=G=>o())},[E.indent>0?(ce(!0),Se(ct,{key:0},Si(V(u),G=>(ce(),Se("div",{key:G,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Je("",!0),E.type==="file"||E.type==="suite"?(ce(),Se("div",nye,[ie("div",{class:it(E.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Je("",!0),Ie(A,{state:E.state,mode:V(t).mode,"failed-snapshot":V(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),ie("div",rye,[E.type==="file"&&E.typecheck?vt((ce(),Se("div",iye,null,512)),[[H,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Je("",!0),ie("span",oye,[E.type==="file"&&E.projectName?(ce(),Se("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:nn({backgroundColor:E.projectNameColor,color:V($)})},qe(E.projectName),5)):Je("",!0),ie("span",{text:E.state==="fail"?"red-500":"",innerHTML:V(g)},null,8,sye)]),typeof E.duration=="number"?(ce(),Se("span",lye,qe(E.duration>0?E.duration:"< 1")+"ms ",1)):Je("",!0)]),ie("div",aye,[!V(dr)&&V(r)?vt((ce(),nt(I,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:T[0]||(T[0]=Vc(G=>l(V(t)),["prevent","stop"]))},null,512)),[[H,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Je("",!0),Ie(V(Nw),{placement:"bottom",class:it(["w-1.4em h-1.4em op100 rounded flex",V(w)])},{popper:rt(()=>[V(m)?(ce(),Se("div",cye,[T[5]||(T[5]=ie("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),ie("div",null,[pt(qe(V(y))+": this feature is not available, you have disabled ",1),T[3]||(T[3]=ie("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),T[4]||(T[4]=pt(" in your configuration file."))]),T[6]||(T[6]=ie("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))])):(ce(),Se("div",uye,qe(V(y)),1))]),default:rt(()=>[Ie(L,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Vc(C,["prevent","stop"])})]),_:1},8,["class"]),V(dr)?Je("",!0):vt((ce(),nt(L,{key:1,"data-testid":"btn-run-test",title:V(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:T[1]||(T[1]=Vc(G=>s(V(t)),["prevent","stop"]))},null,8,["title"])),[[H,V(h),void 0,{bottom:!0}]])])],12,tye)):Je("",!0)}}}),dye=Ei(fye,[["__scopeId","data-v-c13df361"]]),hye={"flex-1":"","ms-2":"","select-none":""},pye=ut({__name:"FilterStatus",props:la({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Gu(e,"modelValue");return(r,o)=>(ce(),Se("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]=Vc(s=>t.value=!t.value,["prevent"]))}),[ie("span",{class:it([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),vt(ie("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[cw,t.value]]),ie("span",hye,qe(r.label),1)],16))}});function gye(){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 tu;function Ph(){Ph.init||(Ph.init=!0,tu=gye()!==-1)}var ff={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ph(),Tt(()=>{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",tu&&this.$el.appendChild(e),e.data="about:blank",tu||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&&(!tu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const vye=xb();bb("data-v-b329ee4c");const mye={class:"resize-observer",tabindex:"-1"};wb();const yye=vye((e,t,r,o,s,l)=>(ce(),nt("div",mye)));ff.render=yye;ff.__scopeId="data-v-b329ee4c";ff.__file="src/components/ResizeObserver.vue";function nu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(t){return typeof t}:nu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function bye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wye(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 xye(e,t,r){return t&&wye(e.prototype,t),e}function wy(e){return Sye(e)||_ye(e)||kye(e)||Tye()}function Sye(e){if(Array.isArray(e))return Rh(e)}function _ye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function kye(e,t){if(e){if(typeof e=="string")return Rh(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 Rh(e,t)}}function Rh(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 Tye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
54
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Eye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,l,u=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),m=1;m<p;m++)g[m-1]=arguments[m];if(l=g,!(o&&h===s)){var y=r.leading;typeof y=="function"&&(y=y(h,s)),(!o||h!==s)&&y&&e.apply(void 0,[h].concat(wy(l))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(wy(l))),o=0},t)}};return u._clear=function(){clearTimeout(o),o=null},u}function Wx(e,t){if(e===t)return!0;if(nu(e)==="object"){for(var r in e)if(!Wx(e[r],t[r]))return!1;return!0}return!1}var Aye=function(){function e(t,r,o){bye(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return xye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Cye(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 l=this.options.throttleOptions||{},u=l.leading;this.callback=Eye(this.callback,this.options.throttle,{leading:function(h){return u==="both"||u==="visible"&&h||u==="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 g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Tt(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 qx(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 Aye(e,o,r);e._vue_visibilityState=s}}function Lye(e,t,r){var o=t.value,s=t.oldValue;if(!Wx(o,s)){var l=e._vue_visibilityState;if(!o){Ux(e);return}l?l.createObserver(o,r):qx(e,{value:o},r)}}function Ux(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Mye={beforeMount:qx,updated:Lye,unmounted:Ux},$ye={itemsLimit:1e3},Nye=/(auto|scroll)/;function jx(e,t){return e.parentNode===null?t:jx(e.parentNode,t.concat([e]))}var Fd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},Oye=function(t){return Fd(t,"overflow")+Fd(t,"overflow-y")+Fd(t,"overflow-x")},Iye=function(t){return Nye.test(Oye(t))};function xy(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=jx(e.parentNode,[]),r=0;r<t.length;r+=1)if(Iye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function zh(e){"@babel/helpers - typeof";return zh=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},zh(e)}var Pye={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 Rye(){return this.items.length&&zh(this.items[0])!=="object"}var Dh=!1;if(typeof window<"u"){Dh=!1;try{var zye=Object.defineProperty({},"passive",{get:function(){Dh=!0}});window.addEventListener("test",null,zye)}catch{}}let Dye=0;var zp={name:"RecycleScroller",components:{ResizeObserver:ff},directives:{ObserveVisibility:Mye},props:{...Pye,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,l=0,u;for(let d=0,h=t.length;d<h;d++)u=t[d][r]||o,u<s&&(s=u),l+=u,e[d]={accumulator:l,size:u};return this.$_computedMinItemSize=s,e}return[]},simpleArray:Rye,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 l=Qh({id:Dye++,index:t,used:!0,key:o,type:s}),u=Yh({item:r,position:0,nr:l});return e.push(u),u},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,l=this.$_computedMinItemSize,u=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,m=this.$_views,y=this.$_unusedViews,w=this.pool,C=this.itemIndexByKey;let $,E,T,A,I;if(!p)$=E=A=I=T=0;else if(this.$_prerender)$=A=0,E=I=Math.min(this.prerender,h.length),T=null;else{const Q=this.getScroll();if(t){let P=Q.start-this.$_lastUpdateScrollPosition;if(P<0&&(P=-P),r===null&&P<l||P<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=Q.start;const F=this.buffer;Q.start-=F,Q.end+=F;let N=0;if(this.$refs.before&&(N=this.$refs.before.scrollHeight,Q.start-=N),this.$refs.after){const P=this.$refs.after.scrollHeight;Q.end+=P}if(r===null){let P,O=0,S=p-1,R=~~(p/2),j;do j=R,P=g[R].accumulator,P<Q.start?O=R:R<p-1&&g[R+1].accumulator>Q.start&&(S=R),R=~~((O+S)/2);while(R!==j);for(R<0&&(R=0),$=R,T=g[p-1].accumulator,E=R;E<p&&g[E].accumulator<Q.end;E++);for(E===-1?E=h.length-1:(E++,E>p&&(E=p)),A=$;A<p&&N+g[A].accumulator<Q.start;A++);for(I=A;I<p&&N+g[I].accumulator<Q.end;I++);}else{$=~~(Q.start/r*o);const P=$%o;$-=P,E=Math.ceil(Q.end/r*o),A=Math.max(0,Math.floor((Q.start-N)/r*o)),I=Math.floor((Q.end-N)/r*o),$<0&&($=0),E>p&&(E=p),A<0&&(A=0),I>p&&(I=p),T=Math.ceil(p/o)*r}}E-$>$ye.itemsLimit&&this.itemsLimitError(),this.totalSize=T;let L;const H=$<=this.$_endIndex&&E>=this.$_startIndex;if(H)for(let Q=0,F=w.length;Q<F;Q++)L=w[Q],L.nr.used&&(e&&(L.nr.index=C[L.item[d]]),(L.nr.index==null||L.nr.index<$||L.nr.index>=E)&&this.unuseView(L));const G=H?null:new Map;let oe,ee,Z;for(let Q=$;Q<E;Q++){oe=h[Q];const F=d?oe[d]:oe;if(F==null)throw new Error(`Key is ${F} on item (keyField is '${d}')`);if(L=m.get(F),!r&&!g[Q].size){L&&this.unuseView(L);continue}ee=oe[u];let N=y.get(ee),P=!1;if(!L)H?N&&N.length?L=N.pop():L=this.addView(w,Q,oe,F,ee):(Z=G.get(ee)||0,(!N||Z>=N.length)&&(L=this.addView(w,Q,oe,F,ee),this.unuseView(L,!0),N=y.get(ee)),L=N[Z],G.set(ee,Z+1)),m.delete(L.nr.key),L.nr.used=!0,L.nr.index=Q,L.nr.key=F,L.nr.type=ee,m.set(F,L),P=!0;else if(!L.nr.used&&(L.nr.used=!0,P=!0,N)){const O=N.indexOf(L);O!==-1&&N.splice(O,1)}L.item=oe,P&&(Q===h.length-1&&this.$emit("scroll-end"),Q===0&&this.$emit("scroll-start")),r===null?(L.position=g[Q-1].accumulator,L.offset=0):(L.position=Math.floor(Q/o)*r,L.offset=Q%o*s)}return this.$_startIndex=$,this.$_endIndex=E,this.emitUpdate&&this.$emit("update",$,E,A,I),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:H}},getListenerTarget(){let e=xy(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(),l=r?s.height:s.width;let u=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;u<0&&(d+=u,u=0),u+d>l&&(d=l-u),o={start:u,end:u+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,Dh?{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 l=xy(this.$el),u=l.tagName==="HTML"?0:l[t.scroll],d=l.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=l,o=t.scroll,s=e+u+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 Fye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Hye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Bye(e,t,r,o,s,l){const u=Uo("ResizeObserver"),d=Qr("observe-visibility");return vt((ce(),Se("div",{class:it(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>l.handleScroll&&l.handleScroll(...h))},[e.$slots.before?(ce(),Se("div",Fye,[xn(e.$slots,"before")],512)):Je("v-if",!0),(ce(),nt(Xd(r.listTag),{ref:"wrapper",style:nn({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:it(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:rt(()=>[(ce(!0),Se(ct,null,Si(s.pool,h=>(ce(),nt(Xd(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}]]},pT(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:rt(()=>[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?(ce(),Se("div",Hye,[xn(e.$slots,"after")],512)):Je("v-if",!0),Ie(u,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[d,l.handleVisibilityChange]])}zp.render=Bye;zp.__file="src/components/RecycleScroller.vue";function Wye(e){const t=_e(()=>yh.value?!1:!Qe.onlyTests),r=_e(()=>Un.value===""),o=Ue(Un.value);bp(()=>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 l(h){var p;Qe.failed=!1,Qe.success=!1,Qe.skipped=!1,Qe.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function u(){l(!1),s(!0)}function d(h,p,g,m,y){Xs.value&&(pn.value.search=(h==null?void 0:h.trim())??"",pn.value.failed=p,pn.value.success=g,pn.value.skipped=m,pn.value.onlyTests=y)}return xt(()=>[o.value,Qe.failed,Qe.success,Qe.skipped,Qe.onlyTests],([h,p,g,m,y])=>{d(h,p,g,m,y),Ae.filterNodes()},{flush:"post"}),xt(()=>Ir.value.length,h=>{h&&(pn.value.expandAll=void 0)},{flush:"post"}),{initialized:Xs,filter:Qe,search:Un,disableFilter:t,isFiltered:C1,isFilteredByStatus:yh,disableClearSearch:r,clearAll:u,clearSearch:s,clearFilter:l,filteredFiles:rf,testsTotal:WM,uiEntries:Xn}}const qye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Uye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},jye=["op"],Vye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Gye={"text-red5":""},Kye={"text-yellow5":""},Xye={"text-green5":""},Yye={class:"text-purple5:50"},Jye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Zye=["disabled"],Qye=["disabled"],ebe={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},tbe=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=_e(()=>lf.value.includeTaskLocation),s=Ue(),{initialized:l,filter:u,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:g,disableClearSearch:m,clearAll:y,clearSearch:w,clearFilter:C,filteredFiles:$,testsTotal:E,uiEntries:T}=Wye(s),A=Ue("grid-cols-2"),I=Ue("grid-col-span-2"),L=Ue();return _1(()=>L.value,([{contentRect:H}])=>{H.width<420?(A.value="grid-cols-2",I.value="grid-col-span-2"):(A.value="grid-cols-4",I.value="grid-col-span-4")}),(H,G)=>{const oe=Ai,ee=pye,Z=dye,Q=Z0e,F=Qr("tooltip");return ce(),Se("div",{ref_key:"testExplorerRef",ref:L,h:"full",flex:"~ col"},[ie("div",null,[ie("div",qye,[xn(H.$slots,"header",{filteredFiles:V(p)||V(g)?V($):void 0})]),ie("div",Uye,[G[13]||(G[13]=ie("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),vt(ie("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":G[0]||(G[0]=N=>Ct(d)?d.value=N:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:V(d).length?"100":"50",onKeydown:[G[1]||(G[1]=ih(N=>V(w)(!1),["esc"])),G[2]||(G[2]=ih(N=>r("run",V(p)||V(g)?V($):void 0),["enter"]))]},null,40,jye),[[NC,V(d)]]),vt(Ie(oe,{disabled:V(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:G[3]||(G[3]=N=>V(w)(!0))},null,8,["disabled"]),[[F,"Clear search",void 0,{bottom:!0}]])]),ie("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:it(V(A))},[ie("div",{class:it(V(I)),flex:"~ gap-2 items-center"},[G[14]||(G[14]=ie("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),G[15]||(G[15]=ie("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),vt(Ie(oe,{disabled:V(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:G[4]||(G[4]=N=>V(C)(!1))},null,8,["disabled"]),[[F,"Clear Filter",void 0,{bottom:!0}]])],2),Ie(ee,{modelValue:V(u).failed,"onUpdate:modelValue":G[5]||(G[5]=N=>V(u).failed=N),label:"Fail"},null,8,["modelValue"]),Ie(ee,{modelValue:V(u).success,"onUpdate:modelValue":G[6]||(G[6]=N=>V(u).success=N),label:"Pass"},null,8,["modelValue"]),Ie(ee,{modelValue:V(u).skipped,"onUpdate:modelValue":G[7]||(G[7]=N=>V(u).skipped=N),label:"Skip"},null,8,["modelValue"]),Ie(ee,{modelValue:V(u).onlyTests,"onUpdate:modelValue":G[8]||(G[8]=N=>V(u).onlyTests=N),label:"Only Tests"},null,8,["modelValue"])],2)]),ie("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:G[12]||(G[12]=(...N)=>V(Dm)&&V(Dm)(...N))},[Ie(Q,null,hT({default:rt(()=>[(V(p)||V(g))&&V(T).length===0?(ce(),Se(ct,{key:0},[V(l)?(ce(),Se("div",Jye,[G[18]||(G[18]=ie("div",{op30:""}," No matched test ",-1)),ie("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(V(m)?null:"hover:op100"),disabled:V(m),onClickPassive:G[9]||(G[9]=N=>V(w)(!0))}," Clear Search ",42,Zye),ie("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(V(h)?null:"hover:op100"),disabled:V(h),onClickPassive:G[10]||(G[10]=N=>V(C)(!0))}," Clear Filter ",42,Qye),ie("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:G[11]||(G[11]=(...N)=>V(y)&&V(y)(...N))}," Clear All ",32)])):(ce(),Se("div",ebe,G[19]||(G[19]=[ie("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),ie("div",{op30:""}," Loading... ",-1)])))],64)):(ce(),nt(V(zp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:V(T),buffer:100},{default:rt(({item:N})=>[Ie(Z,{class:it(["h-28px m-0 p-0",V(go)===N.id?"bg-active":""]),"task-id":N.id,expandable:N.expandable,type:N.type,current:V(go)===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":!V(o),"on-item-click":H.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},[V(l)?{name:"summary",fn:rt(()=>[ie("div",Vye,[ie("span",Gye," FAIL ("+qe(V(E).failed)+") ",1),G[16]||(G[16]=ie("span",null,"/",-1)),ie("span",Kye," RUNNING ("+qe(V(E).running)+") ",1),ie("span",Xye," PASS ("+qe(V(E).success)+") ",1),G[17]||(G[17]=ie("span",null,"/",-1)),ie("span",Yye," SKIP ("+qe(V(u).onlyTests?V(E).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),nbe=""+new URL("../favicon.svg",import.meta.url).href,rbe={class:"flex text-lg"},ibe=ut({__name:"Navigation",setup(e){function t(){return gt.rpc.updateSnapshot()}const r=_e(()=>Ba.value?"light":"dark");async function o(u){Ls.value&&(Cu.value=!0,await Tt(),vo.value&&(Eu(!0),await Tt())),u!=null&&u.length?await Tp(u):await kfe()}function s(){Ae.collapseAllNodes()}function l(){Ae.expandAllNodes()}return(u,d)=>{const h=Ai,p=tbe,g=Qr("tooltip");return ce(),nt(p,{border:"r base","on-item-click":V(y$),nested:!0,onRun:o},{header:rt(({filteredFiles:m})=>[d[8]||(d[8]=ie("img",{"w-6":"","h-6":"",src:nbe,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=ie("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),ie("div",rbe,[vt(Ie(h,{title:"Collapse tests",disabled:!V(Xs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=y=>s())},null,8,["disabled"]),[[eo,!V(T0)],[g,"Collapse tests",void 0,{bottom:!0}]]),vt(Ie(h,{disabled:!V(Xs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=y=>l())},null,8,["disabled"]),[[eo,V(T0)],[g,"Expand tests",void 0,{bottom:!0}]]),vt(Ie(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=y=>V(Eu)(!0))},null,512),[[eo,V(xh)&&!V(Ls)||!V(Bs)],[g,"Dashboard",void 0,{bottom:!0}]]),V(xh)&&!V(Ls)?(ce(),nt(V(Nw),{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:rt(()=>d[6]||(d[6]=[ie("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ie("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ie("div",null,"Coverage enabled but missing html reporter."),ie("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:rt(()=>[d[7]||(d[7]=ie("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1,__:[7]})):Je("",!0),V(Ls)?vt((ce(),nt(h,{key:1,disabled:V(Cu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=y=>V(b$)())},null,8,["disabled"])),[[eo,!V(vo)],[g,"Coverage",void 0,{bottom:!0}]]):Je("",!0),V(Ae).summary.failedSnapshot&&!V(dr)?vt((ce(),nt(h,{key:2,icon:"i-carbon:result-old",disabled:!V(Ae).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=y=>V(Ae).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[g,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Je("",!0),V(dr)?Je("",!0):vt((ce(),nt(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:y=>o(m)},null,8,["disabled","onClick"])),[[g,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),vt(Ie(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=y=>V(Yfe)())},null,512),[[g,`Toggle to ${V(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),obe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},sbe=ut({__name:"ProgressBar",setup(e){const{width:t}=k1(),r=_e(()=>[Ae.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Es.value&&"in-progress"].filter(Boolean).join(" ")),o=_e(()=>{const d=Ae.summary.files;return d>0?t.value*Ae.summary.filesSuccess/d:0}),s=_e(()=>{const d=Ae.summary.files;return d>0?t.value*Ae.summary.filesFailed/d:0}),l=_e(()=>Ae.summary.files-Ae.summary.filesFailed-Ae.summary.filesSuccess),u=_e(()=>{const d=Ae.summary.files;return d>0?t.value*l.value/d:0});return(d,h)=>(ce(),Se("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:it(V(r))},[ie("div",obe,[ie("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:it(V(r)),style:nn(`width: ${V(s)}px;`)}," ",6),ie("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:it(V(r)),style:nn(`left: ${V(s)}px; width: ${V(o)}px;`)}," ",6),ie("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:it(V(r)),style:nn(`left: ${V(o)+V(s)}px; width: ${V(u)}px;`)}," ",6)])],2))}}),lbe=Ei(sbe,[["__scopeId","data-v-16879415"]]),Sy={__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=vT(),l=Ue([]),u=_e(()=>l.value.reduce((re,B)=>(re[~~B.id]=B)&&re,{})),d=_e(()=>l.value.length),h=Ue(null),p=Ue(!1),g=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ue({splitter:null,timeoutId:null}),y=_e(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",E,{passive:!1}),document.addEventListener("mouseup",T),"ontouchstart"in window&&(document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",T))},C=()=>{document.removeEventListener("mousemove",E,{passive:!1}),document.removeEventListener("mouseup",T),"ontouchstart"in window&&(document.removeEventListener("touchmove",E,{passive:!1}),document.removeEventListener("touchend",T))},$=(re,B)=>{const J=re.target.closest(".splitpanes__splitter");if(J){const{left:K,top:le}=J.getBoundingClientRect(),{clientX:pe,clientY:z}="ontouchstart"in window&&re.touches?re.touches[0]:re;g.value.cursorOffset=o.horizontal?z-le:pe-K}w(),g.value.mouseDown=!0,g.value.activeSplitter=B},E=re=>{g.value.mouseDown&&(re.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{oe(H(re)),r("resize",l.value.map(B=>({min:B.min,max:B.max,size:B.size})))}))},T=()=>{g.value.dragging&&r("resized",l.value.map(re=>({min:re.min,max:re.max,size:re.size}))),g.value.mouseDown=!1,setTimeout(()=>{g.value.dragging=!1,C()},100)},A=(re,B)=>{"ontouchstart"in window&&(re.preventDefault(),o.dblClickSplitter&&(m.value.splitter===B?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,I(re,B),m.value.splitter=null):(m.value.splitter=B,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500)))),g.value.dragging||r("splitter-click",l.value[B])},I=(re,B)=>{let J=0;l.value=l.value.map((K,le)=>(K.size=le===B?K.max:K.min,le!==B&&(J+=K.min),K)),l.value[B].size-=J,r("pane-maximize",l.value[B]),r("resized",l.value.map(K=>({min:K.min,max:K.max,size:K.size})))},L=(re,B)=>{r("pane-click",u.value[B])},H=re=>{const B=h.value.getBoundingClientRect(),{clientX:J,clientY:K}="ontouchstart"in window&&re.touches?re.touches[0]:re;return{x:J-(o.horizontal?0:g.value.cursorOffset)-B.left,y:K-(o.horizontal?g.value.cursorOffset:0)-B.top}},G=re=>{re=re[o.horizontal?"y":"x"];const B=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(re=B-re),re*100/B},oe=re=>{const B=g.value.activeSplitter;let J={prevPanesSize:Z(B),nextPanesSize:Q(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const K=0+(o.pushOtherPanes?0:J.prevPanesSize),le=100-(o.pushOtherPanes?0:J.nextPanesSize),pe=Math.max(Math.min(G(re),le),K);let z=[B,B+1],W=l.value[z[0]]||null,X=l.value[z[1]]||null;const ue=W.max<100&&pe>=W.max+J.prevPanesSize,he=X.max<100&&pe<=100-(X.max+Q(B+1));if(ue||he){ue?(W.size=W.max,X.size=Math.max(100-W.max-J.prevPanesSize-J.nextPanesSize,0)):(W.size=Math.max(100-X.max-J.prevPanesSize-Q(B+1),0),X.size=X.max);return}if(o.pushOtherPanes){const de=ee(J,pe);if(!de)return;({sums:J,panesToResize:z}=de),W=l.value[z[0]]||null,X=l.value[z[1]]||null}W!==null&&(W.size=Math.min(Math.max(pe-J.prevPanesSize-J.prevReachedMinPanes,W.min),W.max)),X!==null&&(X.size=Math.min(Math.max(100-pe-J.nextPanesSize-J.nextReachedMinPanes,X.min),X.max))},ee=(re,B)=>{const J=g.value.activeSplitter,K=[J,J+1];return B<re.prevPanesSize+l.value[K[0]].min&&(K[0]=F(J).index,re.prevReachedMinPanes=0,K[0]<J&&l.value.forEach((le,pe)=>{pe>K[0]&&pe<=J&&(le.size=le.min,re.prevReachedMinPanes+=le.min)}),re.prevPanesSize=Z(K[0]),K[0]===void 0)?(re.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((le,pe)=>{pe>0&&pe<=J&&(le.size=le.min,re.prevReachedMinPanes+=le.min)}),l.value[K[1]].size=100-re.prevReachedMinPanes-l.value[0].min-re.prevPanesSize-re.nextPanesSize,null):B>100-re.nextPanesSize-l.value[K[1]].min&&(K[1]=N(J).index,re.nextReachedMinPanes=0,K[1]>J+1&&l.value.forEach((le,pe)=>{pe>J&&pe<K[1]&&(le.size=le.min,re.nextReachedMinPanes+=le.min)}),re.nextPanesSize=Q(K[1]-1),K[1]===void 0)?(re.nextReachedMinPanes=0,l.value.forEach((le,pe)=>{pe<d.value-1&&pe>=J+1&&(le.size=le.min,re.nextReachedMinPanes+=le.min)}),l.value[K[0]].size=100-re.prevPanesSize-Q(K[0]-1),null):{sums:re,panesToResize:K}},Z=re=>l.value.reduce((B,J,K)=>B+(K<re?J.size:0),0),Q=re=>l.value.reduce((B,J,K)=>B+(K>re+1?J.size:0),0),F=re=>[...l.value].reverse().find(B=>B.index<re&&B.size>B.min)||{},N=re=>l.value.find(B=>B.index>re+1&&B.size>B.min)||{},P=()=>{var re;Array.from(((re=h.value)==null?void 0:re.children)||[]).forEach(B=>{const J=B.classList.contains("splitpanes__pane"),K=B.classList.contains("splitpanes__splitter");!J&&!K&&(B.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},O=(re,B,J=!1)=>{const K=re-1,le=document.createElement("div");le.classList.add("splitpanes__splitter"),J||(le.onmousedown=pe=>$(pe,K),typeof window<"u"&&"ontouchstart"in window&&(le.ontouchstart=pe=>$(pe,K)),le.onclick=pe=>A(pe,K+1)),o.dblClickSplitter&&(le.ondblclick=pe=>I(pe,K+1)),B.parentNode.insertBefore(le,B)},S=re=>{re.onmousedown=void 0,re.onclick=void 0,re.ondblclick=void 0,re.remove()},R=()=>{var re;const B=Array.from(((re=h.value)==null?void 0:re.children)||[]);B.forEach(K=>{K.className.includes("splitpanes__splitter")&&S(K)});let J=0;B.forEach(K=>{K.className.includes("splitpanes__pane")&&(!J&&o.firstSplitter?O(J,K,!0):J&&O(J,K),J++)})},j=({uid:re,...B})=>{const J=u.value[re];Object.entries(B).forEach(([K,le])=>J[K]=le)},ne=re=>{var B;let J=-1;Array.from(((B=h.value)==null?void 0:B.children)||[]).some(K=>(K.className.includes("splitpanes__pane")&&J++,K.isSameNode(re.el))),l.value.splice(J,0,{...re,index:J}),l.value.forEach((K,le)=>K.index=le),p.value&&Tt(()=>{R(),xe({addedPane:l.value[J]}),r("pane-add",{index:J,panes:l.value.map(K=>({min:K.min,max:K.max,size:K.size}))})})},me=re=>{const B=l.value.findIndex(K=>K.id===re),J=l.value.splice(B,1)[0];l.value.forEach((K,le)=>K.index=le),Tt(()=>{R(),xe({removedPane:{...J}}),r("pane-remove",{removed:J,panes:l.value.map(K=>({min:K.min,max:K.max,size:K.size}))})})},xe=(re={})=>{!re.addedPane&&!re.removedPane?Re():l.value.some(B=>B.givenSize!==null||B.min||B.max<100)?je(re):Ne(),p.value&&r("resized",l.value.map(B=>({min:B.min,max:B.max,size:B.size})))},Ne=()=>{const re=100/d.value;let B=0;const J=[],K=[];l.value.forEach(le=>{le.size=Math.max(Math.min(re,le.max),le.min),B-=le.size,le.size>=le.max&&J.push(le.id),le.size<=le.min&&K.push(le.id)}),B>.1&&Xe(B,J,K)},Re=()=>{let re=100;const B=[],J=[];let K=0;l.value.forEach(pe=>{re-=pe.size,pe.givenSize!==null&&K++,pe.size>=pe.max&&B.push(pe.id),pe.size<=pe.min&&J.push(pe.id)});let le=100;re>.1&&(l.value.forEach(pe=>{pe.givenSize===null&&(pe.size=Math.max(Math.min(re/(d.value-K),pe.max),pe.min)),le-=pe.size}),le>.1&&Xe(le,B,J))},je=({addedPane:re,removedPane:B}={})=>{let J=100/d.value,K=0;const le=[],pe=[];((re==null?void 0:re.givenSize)??null)!==null&&(J=(100-re.givenSize)/(d.value-1).value),l.value.forEach(z=>{K-=z.size,z.size>=z.max&&le.push(z.id),z.size<=z.min&&pe.push(z.id)}),!(Math.abs(K)<.1)&&(l.value.forEach(z=>{(re==null?void 0:re.givenSize)!==null&&(re==null?void 0:re.id)===z.id||(z.size=Math.max(Math.min(J,z.max),z.min)),K-=z.size,z.size>=z.max&&le.push(z.id),z.size<=z.min&&pe.push(z.id)}),K>.1&&Xe(K,le,pe))},Xe=(re,B,J)=>{let K;re>0?K=re/(d.value-B.length):K=re/(d.value-J.length),l.value.forEach((le,pe)=>{if(re>0&&!B.includes(le.id)){const z=Math.max(Math.min(le.size+K,le.max),le.min),W=z-le.size;re-=W,le.size=z}else if(!J.includes(le.id)){const z=Math.max(Math.min(le.size+K,le.max),le.min),W=z-le.size;re-=W,le.size=z}}),Math.abs(re)>.1&&Tt(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};xt(()=>o.firstSplitter,()=>R()),xt(()=>o.dblClickSplitter,re=>{[...h.value.querySelectorAll(".splitpanes__splitter")].forEach((B,J)=>{B.ondblclick=re?K=>I(K,J):void 0})}),Oa(()=>p.value=!1),yo(()=>{P(),R(),xe(),r("ready"),p.value=!0});const Ye=()=>{var re;return Pa("div",{ref:h,class:y.value},(re=s.default)==null?void 0:re.call(s))};return Tr("panes",l),Tr("indexedPanes",u),Tr("horizontal",_e(()=>o.horizontal)),Tr("requestUpdate",j),Tr("onPaneAdd",ne),Tr("onPaneRemove",me),Tr("onPaneClick",L),(re,B)=>(ce(),nt(Xd(Ye)))}},Bc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=wn("requestUpdate"),s=wn("onPaneAdd"),l=wn("horizontal"),u=wn("onPaneRemove"),d=wn("onPaneClick"),h=(t=Vo())==null?void 0:t.uid,p=wn("indexedPanes"),g=_e(()=>p.value[h]),m=Ue(null),y=_e(()=>{const E=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(E,C.value),w.value)}),w=_e(()=>{const E=parseFloat(r.minSize);return isNaN(E)?0:E}),C=_e(()=>{const E=parseFloat(r.maxSize);return isNaN(E)?100:E}),$=_e(()=>{var E;return`${l.value?"height":"width"}: ${(E=g.value)==null?void 0:E.size}%`});return yo(()=>{s({id:h,el:m.value,min:w.value,max:C.value,givenSize:r.size===void 0?null:y.value,size:y.value})}),xt(()=>y.value,E=>o({uid:h,size:E})),xt(()=>w.value,E=>o({uid:h,min:E})),xt(()=>C.value,E=>o({uid:h,max:E})),Oa(()=>u(h)),(E,T)=>(ce(),Se("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:T[0]||(T[0]=A=>V(d)(A,E._.uid)),style:nn($.value)},[xn(E.$slots,"default")],4))}},abe={"h-screen":"","w-screen":"",overflow:"hidden"},cbe=ut({__name:"index",setup(e){const t=m$(),r=Oc(g=>{h(),d(g)},0),o=Oc(g=>{g.forEach((m,y)=>{Ws.value[y]=m.size}),u(g),p()},0),s=Oc(g=>{g.forEach((m,y)=>{ao.value[y]=m.size}),d(g),p()},0),l=Oc(g=>{u(g),h()},0);function u(g){At.navigation=g[0].size,At.details.size=g[1].size}function d(g){At.details.browser=g[0].size,At.details.main=g[1].size}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,m)=>{const y=lbe,w=ibe,C=Y0e,$=d0e,E=a0e,T=Hfe,A=Lfe;return ce(),Se(ct,null,[Ie(y),ie("div",abe,[Ie(V(Sy),{class:"pt-4px",onResized:V(o),onResize:V(l)},{default:rt(()=>[Ie(V(Bc),{size:V(Ws)[0]},{default:rt(()=>[Ie(w)]),_:1},8,["size"]),Ie(V(Bc),{size:V(Ws)[1]},{default:rt(()=>[V(Ht)?(ce(),nt(V(Sy),{id:"details-splitpanes",key:"browser-detail",onResize:V(r),onResized:V(s)},{default:rt(()=>[Ie(V(Bc),{size:V(ao)[0],"min-size":"10"},{default:rt(()=>[m[0]||(fu(-1,!0),(m[0]=Ie(T)).cacheIndex=0,fu(1),m[0])]),_:1},8,["size"]),Ie(V(Bc),{size:V(ao)[1]},{default:rt(()=>[V(t)?(ce(),nt(C,{key:"summary"})):V(vo)?(ce(),nt($,{key:"coverage",src:V(L0)},null,8,["src"])):(ce(),nt(E,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(ce(),nt(dC,{key:"ui-detail"},{default:rt(()=>[V(t)?(ce(),nt(C,{key:"summary"})):V(vo)?(ce(),nt($,{key:"coverage",src:V(L0)},null,8,["src"])):(ce(),nt(E,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ie(A)],64)}}}),ube=[{name:"index",path:"/",component:cbe,props:!0}];/*!
|
|
55
|
-
* vue-router v4.5.1
|
|
56
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/const Ts=typeof document<"u";function Vx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fbe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Vx(e.default)}const bt=Object.assign;function Hd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Pr(s)?s.map(e):e(s)}return r}const ta=()=>{},Pr=Array.isArray,Gx=/#/g,dbe=/&/g,hbe=/\//g,pbe=/=/g,gbe=/\?/g,Kx=/\+/g,vbe=/%5B/g,mbe=/%5D/g,Xx=/%5E/g,ybe=/%60/g,Yx=/%7B/g,bbe=/%7C/g,Jx=/%7D/g,wbe=/%20/g;function Dp(e){return encodeURI(""+e).replace(bbe,"|").replace(vbe,"[").replace(mbe,"]")}function xbe(e){return Dp(e).replace(Yx,"{").replace(Jx,"}").replace(Xx,"^")}function Fh(e){return Dp(e).replace(Kx,"%2B").replace(wbe,"+").replace(Gx,"%23").replace(dbe,"%26").replace(ybe,"`").replace(Yx,"{").replace(Jx,"}").replace(Xx,"^")}function Sbe(e){return Fh(e).replace(pbe,"%3D")}function _be(e){return Dp(e).replace(Gx,"%23").replace(gbe,"%3F")}function kbe(e){return e==null?"":_be(e).replace(hbe,"%2F")}function Ca(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Tbe=/\/$/,Cbe=e=>e.replace(Tbe,"");function Bd(e,t,r="/"){let o,s={},l="",u="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),l=t.slice(h+1,d>-1?d:t.length),s=e(l)),d>-1&&(o=o||t.slice(0,d),u=t.slice(d,t.length)),o=Mbe(o??t,r),{fullPath:o+(l&&"?")+l+u,path:o,query:s,hash:Ca(u)}}function Ebe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function _y(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Abe(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Qs(t.matched[o],r.matched[s])&&Zx(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Qs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Zx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!Lbe(e[r],t[r]))return!1;return!0}function Lbe(e,t){return Pr(e)?ky(e,t):Pr(t)?ky(t,e):e===t}function ky(e,t){return Pr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function Mbe(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 l=r.length-1,u,d;for(u=0;u<o.length;u++)if(d=o[u],d!==".")if(d==="..")l>1&&l--;else break;return r.slice(0,l).join("/")+"/"+o.slice(u).join("/")}const ji={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ea;(function(e){e.pop="pop",e.push="push"})(Ea||(Ea={}));var na;(function(e){e.back="back",e.forward="forward",e.unknown=""})(na||(na={}));function $be(e){if(!e)if(Ts){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Cbe(e)}const Nbe=/^[^#]+#/;function Obe(e,t){return e.replace(Nbe,"#")+t}function Ibe(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 df=()=>({left:window.scrollX,top:window.scrollY});function Pbe(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=Ibe(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 Ty(e,t){return(history.state?history.state.position-t:-1)+e}const Hh=new Map;function Rbe(e,t){Hh.set(e,t)}function zbe(e){const t=Hh.get(e);return Hh.delete(e),t}let Dbe=()=>location.protocol+"//"+location.host;function Qx(e,t){const{pathname:r,search:o,hash:s}=t,l=e.indexOf("#");if(l>-1){let d=s.includes(e.slice(l))?e.slice(l).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),_y(h,"")}return _y(r,e)+o+s}function Fbe(e,t,r,o){let s=[],l=[],u=null;const d=({state:y})=>{const w=Qx(e,location),C=r.value,$=t.value;let E=0;if(y){if(r.value=w,t.value=y,u&&u===C){u=null;return}E=$?y.position-$.position:0}else o(w);s.forEach(T=>{T(r.value,C,{delta:E,type:Ea.pop,direction:E?E>0?na.forward:na.back:na.unknown})})};function h(){u=r.value}function p(y){s.push(y);const w=()=>{const C=s.indexOf(y);C>-1&&s.splice(C,1)};return l.push(w),w}function g(){const{history:y}=window;y.state&&y.replaceState(bt({},y.state,{scroll:df()}),"")}function m(){for(const y of l)y();l=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",g)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",g,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function Cy(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?df():null}}function Hbe(e){const{history:t,location:r}=window,o={value:Qx(e,r)},s={value:t.state};s.value||l(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(h,p,g){const m=e.indexOf("#"),y=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:Dbe()+e+h;try{t[g?"replaceState":"pushState"](p,"",y),s.value=p}catch(w){console.error(w),r[g?"replace":"assign"](y)}}function u(h,p){const g=bt({},t.state,Cy(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});l(h,g,!0),o.value=h}function d(h,p){const g=bt({},s.value,t.state,{forward:h,scroll:df()});l(g.current,g,!0);const m=bt({},Cy(o.value,h,null),{position:g.position+1},p);l(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:u}}function Bbe(e){e=$be(e);const t=Hbe(e),r=Fbe(e,t.state,t.location,t.replace);function o(l,u=!0){u||r.pauseListeners(),history.go(l)}const s=bt({location:"",base:e,go:o,createHref:Obe.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 Wbe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Bbe(e)}function qbe(e){return typeof e=="string"||e&&typeof e=="object"}function eS(e){return typeof e=="string"||typeof e=="symbol"}const tS=Symbol("");var Ey;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ey||(Ey={}));function el(e,t){return bt(new Error,{type:e,[tS]:!0},t)}function hi(e,t){return e instanceof Error&&tS in e&&(t==null||!!(e.type&t))}const Ay="[^/]+?",Ube={sensitive:!1,strict:!1,start:!0,end:!0},jbe=/[.+*?^${}()[\]/\\]/g;function Vbe(e,t){const r=bt({},Ube,t),o=[];let s=r.start?"^":"";const l=[];for(const p of e){const g=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const y=p[m];let w=40+(r.sensitive?.25:0);if(y.type===0)m||(s+="/"),s+=y.value.replace(jbe,"\\$&"),w+=40;else if(y.type===1){const{value:C,repeatable:$,optional:E,regexp:T}=y;l.push({name:C,repeatable:$,optional:E});const A=T||Ay;if(A!==Ay){w+=10;try{new RegExp(`(${A})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${C}" (${A}): `+L.message)}}let I=$?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;m||(I=E&&p.length<2?`(?:/${I})`:"/"+I),E&&(I+="?"),s+=I,w+=20,E&&(w+=-8),$&&(w+=-20),A===".*"&&(w+=-50)}g.push(w)}o.push(g)}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 u=new RegExp(s,r.sensitive?"":"i");function d(p){const g=p.match(u),m={};if(!g)return null;for(let y=1;y<g.length;y++){const w=g[y]||"",C=l[y-1];m[C.name]=w&&C.repeatable?w.split("/"):w}return m}function h(p){let g="",m=!1;for(const y of e){(!m||!g.endsWith("/"))&&(g+="/"),m=!1;for(const w of y)if(w.type===0)g+=w.value;else if(w.type===1){const{value:C,repeatable:$,optional:E}=w,T=C in p?p[C]:"";if(Pr(T)&&!$)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const A=Pr(T)?T.join("/"):T;if(!A)if(E)y.length<2&&(g.endsWith("/")?g=g.slice(0,-1):m=!0);else throw new Error(`Missing required param "${C}"`);g+=A}}return g||"/"}return{re:u,score:o,keys:l,parse:d,stringify:h}}function Gbe(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 nS(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const l=Gbe(o[r],s[r]);if(l)return l;r++}if(Math.abs(s.length-o.length)===1){if(Ly(o))return 1;if(Ly(s))return-1}return s.length-o.length}function Ly(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Kbe={type:0,value:""},Xbe=/[a-zA-Z0-9_]/;function Ybe(e){if(!e)return[[]];if(e==="/")return[[Kbe]];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 l;function u(){l&&s.push(l),l=[]}let d=0,h,p="",g="";function m(){p&&(r===0?l.push({type:0,value:p}):r===1||r===2||r===3?(l.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function y(){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(),u()):h===":"?(m(),r=1):y();break;case 4:y(),r=o;break;case 1:h==="("?r=2:Xbe.test(h)?y():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:r=3:g+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,g="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),u(),s}function Jbe(e,t,r){const o=Vbe(Ybe(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Zbe(e,t){const r=[],o=new Map;t=Oy({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function l(m,y,w){const C=!w,$=$y(m);$.aliasOf=w&&w.record;const E=Oy(t,m),T=[$];if("alias"in m){const L=typeof m.alias=="string"?[m.alias]:m.alias;for(const H of L)T.push($y(bt({},$,{components:w?w.record.components:$.components,path:H,aliasOf:w?w.record:$})))}let A,I;for(const L of T){const{path:H}=L;if(y&&H[0]!=="/"){const G=y.record.path,oe=G[G.length-1]==="/"?"":"/";L.path=y.record.path+(H&&oe+H)}if(A=Jbe(L,y,E),w?w.alias.push(A):(I=I||A,I!==A&&I.alias.push(A),C&&m.name&&!Ny(A)&&u(m.name)),rS(A)&&h(A),$.children){const G=$.children;for(let oe=0;oe<G.length;oe++)l(G[oe],A,w&&w.children[oe])}w=w||A}return I?()=>{u(I)}:ta}function u(m){if(eS(m)){const y=o.get(m);y&&(o.delete(m),r.splice(r.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{const y=r.indexOf(m);y>-1&&(r.splice(y,1),m.record.name&&o.delete(m.record.name),m.children.forEach(u),m.alias.forEach(u))}}function d(){return r}function h(m){const y=twe(m,r);r.splice(y,0,m),m.record.name&&!Ny(m)&&o.set(m.record.name,m)}function p(m,y){let w,C={},$,E;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw el(1,{location:m});E=w.record.name,C=bt(My(y.params,w.keys.filter(I=>!I.optional).concat(w.parent?w.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),m.params&&My(m.params,w.keys.map(I=>I.name))),$=w.stringify(C)}else if(m.path!=null)$=m.path,w=r.find(I=>I.re.test($)),w&&(C=w.parse($),E=w.record.name);else{if(w=y.name?o.get(y.name):r.find(I=>I.re.test(y.path)),!w)throw el(1,{location:m,currentLocation:y});E=w.record.name,C=bt({},y.params,m.params),$=w.stringify(C)}const T=[];let A=w;for(;A;)T.unshift(A.record),A=A.parent;return{name:E,path:$,params:C,matched:T,meta:ewe(T)}}e.forEach(m=>l(m));function g(){r.length=0,o.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:g,getRoutes:d,getRecordMatcher:s}}function My(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function $y(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Qbe(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 Qbe(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 Ny(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ewe(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function Oy(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function twe(e,t){let r=0,o=t.length;for(;r!==o;){const l=r+o>>1;nS(e,t[l])<0?o=l:r=l+1}const s=nwe(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function nwe(e){let t=e;for(;t=t.parent;)if(rS(t)&&nS(e,t)===0)return t}function rS({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function rwe(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 l=o[s].replace(Kx," "),u=l.indexOf("="),d=Ca(u<0?l:l.slice(0,u)),h=u<0?null:Ca(l.slice(u+1));if(d in t){let p=t[d];Pr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function Iy(e){let t="";for(let r in e){const o=e[r];if(r=Sbe(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Pr(o)?o.map(l=>l&&Fh(l)):[o&&Fh(o)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+r,l!=null&&(t+="="+l))})}return t}function iwe(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Pr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const owe=Symbol(""),Py=Symbol(""),Fp=Symbol(""),iS=Symbol(""),Bh=Symbol("");function Hl(){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 Qi(e,t,r,o,s,l=u=>u()){const u=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=y=>{y===!1?h(el(4,{from:r,to:t})):y instanceof Error?h(y):qbe(y)?h(el(2,{from:t,to:y})):(u&&o.enterCallbacks[s]===u&&typeof y=="function"&&u.push(y),d())},g=l(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(g);e.length<3&&(m=m.then(p)),m.catch(y=>h(y))})}function Wd(e,t,r,o,s=l=>l()){const l=[];for(const u of e)for(const d in u.components){let h=u.components[d];if(!(t!=="beforeRouteEnter"&&!u.instances[d]))if(Vx(h)){const g=(h.__vccOpts||h)[t];g&&l.push(Qi(g,r,o,u,d,s))}else{let p=h();l.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${d}" at "${u.path}"`);const m=fbe(g)?g.default:g;u.mods[d]=g,u.components[d]=m;const w=(m.__vccOpts||m)[t];return w&&Qi(w,r,o,u,d,s)()}))}}return l}function Ry(e){const t=wn(Fp),r=wn(iS),o=_e(()=>{const h=V(e.to);return t.resolve(h)}),s=_e(()=>{const{matched:h}=o.value,{length:p}=h,g=h[p-1],m=r.matched;if(!g||!m.length)return-1;const y=m.findIndex(Qs.bind(null,g));if(y>-1)return y;const w=zy(h[p-2]);return p>1&&zy(g)===w&&m[m.length-1].path!==w?m.findIndex(Qs.bind(null,h[p-2])):y}),l=_e(()=>s.value>-1&&uwe(r.params,o.value.params)),u=_e(()=>s.value>-1&&s.value===r.matched.length-1&&Zx(r.params,o.value.params));function d(h={}){if(cwe(h)){const p=t[V(e.replace)?"replace":"push"](V(e.to)).catch(ta);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:_e(()=>o.value.href),isActive:l,isExactActive:u,navigate:d}}function swe(e){return e.length===1?e[0]:e}const lwe=ut({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:Ry,setup(e,{slots:t}){const r=rr(Ry(e)),{options:o}=wn(Fp),s=_e(()=>({[Dy(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Dy(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const l=t.default&&swe(t.default(r));return e.custom?l:Pa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},l)}}}),awe=lwe;function cwe(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 uwe(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(!Pr(s)||s.length!==o.length||o.some((l,u)=>l!==s[u]))return!1}return!0}function zy(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Dy=(e,t,r)=>e??t??r,fwe=ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=wn(Bh),s=_e(()=>e.route||o.value),l=wn(Py,0),u=_e(()=>{let p=V(l);const{matched:g}=s.value;let m;for(;(m=g[p])&&!m.components;)p++;return p}),d=_e(()=>s.value.matched[u.value]);Tr(Py,_e(()=>u.value+1)),Tr(owe,d),Tr(Bh,s);const h=Ue();return xt(()=>[h.value,d.value,e.name],([p,g,m],[y,w,C])=>{g&&(g.instances[m]=p,w&&w!==g&&p&&p===y&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!Qs(g,w)||!y)&&(g.enterCallbacks[m]||[]).forEach($=>$(p))},{flush:"post"}),()=>{const p=s.value,g=e.name,m=d.value,y=m&&m.components[g];if(!y)return Fy(r.default,{Component:y,route:p});const w=m.props[g],C=w?w===!0?p.params:typeof w=="function"?w(p):w:null,E=Pa(y,bt({},C,t,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(m.instances[g]=null)},ref:h}));return Fy(r.default,{Component:E,route:p})||E}}});function Fy(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const dwe=fwe;function hwe(e){const t=Zbe(e.routes,e),r=e.parseQuery||rwe,o=e.stringifyQuery||Iy,s=e.history,l=Hl(),u=Hl(),d=Hl(),h=rn(ji);let p=ji;Ts&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Hd.bind(null,B=>""+B),m=Hd.bind(null,kbe),y=Hd.bind(null,Ca);function w(B,J){let K,le;return eS(B)?(K=t.getRecordMatcher(B),le=J):le=B,t.addRoute(le,K)}function C(B){const J=t.getRecordMatcher(B);J&&t.removeRoute(J)}function $(){return t.getRoutes().map(B=>B.record)}function E(B){return!!t.getRecordMatcher(B)}function T(B,J){if(J=bt({},J||h.value),typeof B=="string"){const X=Bd(r,B,J.path),ue=t.resolve({path:X.path},J),he=s.createHref(X.fullPath);return bt(X,ue,{params:y(ue.params),hash:Ca(X.hash),redirectedFrom:void 0,href:he})}let K;if(B.path!=null)K=bt({},B,{path:Bd(r,B.path,J.path).path});else{const X=bt({},B.params);for(const ue in X)X[ue]==null&&delete X[ue];K=bt({},B,{params:m(X)}),J.params=m(J.params)}const le=t.resolve(K,J),pe=B.hash||"";le.params=g(y(le.params));const z=Ebe(o,bt({},B,{hash:xbe(pe),path:le.path})),W=s.createHref(z);return bt({fullPath:z,hash:pe,query:o===Iy?iwe(B.query):B.query||{}},le,{redirectedFrom:void 0,href:W})}function A(B){return typeof B=="string"?Bd(r,B,h.value.path):bt({},B)}function I(B,J){if(p!==B)return el(8,{from:J,to:B})}function L(B){return oe(B)}function H(B){return L(bt(A(B),{replace:!0}))}function G(B){const J=B.matched[B.matched.length-1];if(J&&J.redirect){const{redirect:K}=J;let le=typeof K=="function"?K(B):K;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=A(le):{path:le},le.params={}),bt({query:B.query,hash:B.hash,params:le.path!=null?{}:B.params},le)}}function oe(B,J){const K=p=T(B),le=h.value,pe=B.state,z=B.force,W=B.replace===!0,X=G(K);if(X)return oe(bt(A(X),{state:typeof X=="object"?bt({},pe,X.state):pe,force:z,replace:W}),J||K);const ue=K;ue.redirectedFrom=J;let he;return!z&&Abe(o,le,K)&&(he=el(16,{to:ue,from:le}),Ne(le,le,!0,!1)),(he?Promise.resolve(he):Q(ue,le)).catch(de=>hi(de)?hi(de,2)?de:xe(de):ne(de,ue,le)).then(de=>{if(de){if(hi(de,2))return oe(bt({replace:W},A(de.to),{state:typeof de.to=="object"?bt({},pe,de.to.state):pe,force:z}),J||ue)}else de=N(ue,le,!0,W,pe);return F(ue,le,de),de})}function ee(B,J){const K=I(B,J);return K?Promise.reject(K):Promise.resolve()}function Z(B){const J=Xe.values().next().value;return J&&typeof J.runWithContext=="function"?J.runWithContext(B):B()}function Q(B,J){let K;const[le,pe,z]=pwe(B,J);K=Wd(le.reverse(),"beforeRouteLeave",B,J);for(const X of le)X.leaveGuards.forEach(ue=>{K.push(Qi(ue,B,J))});const W=ee.bind(null,B,J);return K.push(W),re(K).then(()=>{K=[];for(const X of l.list())K.push(Qi(X,B,J));return K.push(W),re(K)}).then(()=>{K=Wd(pe,"beforeRouteUpdate",B,J);for(const X of pe)X.updateGuards.forEach(ue=>{K.push(Qi(ue,B,J))});return K.push(W),re(K)}).then(()=>{K=[];for(const X of z)if(X.beforeEnter)if(Pr(X.beforeEnter))for(const ue of X.beforeEnter)K.push(Qi(ue,B,J));else K.push(Qi(X.beforeEnter,B,J));return K.push(W),re(K)}).then(()=>(B.matched.forEach(X=>X.enterCallbacks={}),K=Wd(z,"beforeRouteEnter",B,J,Z),K.push(W),re(K))).then(()=>{K=[];for(const X of u.list())K.push(Qi(X,B,J));return K.push(W),re(K)}).catch(X=>hi(X,8)?X:Promise.reject(X))}function F(B,J,K){d.list().forEach(le=>Z(()=>le(B,J,K)))}function N(B,J,K,le,pe){const z=I(B,J);if(z)return z;const W=J===ji,X=Ts?history.state:{};K&&(le||W?s.replace(B.fullPath,bt({scroll:W&&X&&X.scroll},pe)):s.push(B.fullPath,pe)),h.value=B,Ne(B,J,K,W),xe()}let P;function O(){P||(P=s.listen((B,J,K)=>{if(!Ye.listening)return;const le=T(B),pe=G(le);if(pe){oe(bt(pe,{replace:!0,force:!0}),le).catch(ta);return}p=le;const z=h.value;Ts&&Rbe(Ty(z.fullPath,K.delta),df()),Q(le,z).catch(W=>hi(W,12)?W:hi(W,2)?(oe(bt(A(W.to),{force:!0}),le).then(X=>{hi(X,20)&&!K.delta&&K.type===Ea.pop&&s.go(-1,!1)}).catch(ta),Promise.reject()):(K.delta&&s.go(-K.delta,!1),ne(W,le,z))).then(W=>{W=W||N(le,z,!1),W&&(K.delta&&!hi(W,8)?s.go(-K.delta,!1):K.type===Ea.pop&&hi(W,20)&&s.go(-1,!1)),F(le,z,W)}).catch(ta)}))}let S=Hl(),R=Hl(),j;function ne(B,J,K){xe(B);const le=R.list();return le.length?le.forEach(pe=>pe(B,J,K)):console.error(B),Promise.reject(B)}function me(){return j&&h.value!==ji?Promise.resolve():new Promise((B,J)=>{S.add([B,J])})}function xe(B){return j||(j=!B,O(),S.list().forEach(([J,K])=>B?K(B):J()),S.reset()),B}function Ne(B,J,K,le){const{scrollBehavior:pe}=e;if(!Ts||!pe)return Promise.resolve();const z=!K&&zbe(Ty(B.fullPath,0))||(le||!K)&&history.state&&history.state.scroll||null;return Tt().then(()=>pe(B,J,z)).then(W=>W&&Pbe(W)).catch(W=>ne(W,B,J))}const Re=B=>s.go(B);let je;const Xe=new Set,Ye={currentRoute:h,listening:!0,addRoute:w,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:$,resolve:T,options:e,push:L,replace:H,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:l.add,beforeResolve:u.add,afterEach:d.add,onError:R.add,isReady:me,install(B){const J=this;B.component("RouterLink",awe),B.component("RouterView",dwe),B.config.globalProperties.$router=J,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>V(h)}),Ts&&!je&&h.value===ji&&(je=!0,L(s.location).catch(pe=>{}));const K={};for(const pe in ji)Object.defineProperty(K,pe,{get:()=>h.value[pe],enumerable:!0});B.provide(Fp,J),B.provide(iS,Yh(K)),B.provide(Bh,h);const le=B.unmount;Xe.add(B),B.unmount=function(){Xe.delete(B),Xe.size<1&&(p=ji,P&&P(),P=null,h.value=ji,je=!1,j=!1),le()}}};function re(B){return B.reduce((J,K)=>J.then(()=>Z(K)),Promise.resolve())}return Ye}function pwe(e,t){const r=[],o=[],s=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;u<l;u++){const d=t.matched[u];d&&(e.matched.find(p=>Qs(p,d))?o.push(d):r.push(d));const h=e.matched[u];h&&(t.matched.find(p=>Qs(p,h))||s.push(h))}return[r,o,s]}const gwe={tooltip:HE};Ow.options.instantMove=!0;Ow.options.distance=10;function vwe(){return hwe({history:Wbe(),routes:ube})}const mwe=[vwe],Hp=fw(qC);mwe.forEach(e=>{Hp.use(e())});Object.entries(gwe).forEach(([e,t])=>{Hp.directive(e,t)});Hp.mount("#app");
|